This file is indexed.

/usr/include/thunderbird-11.0.1/nsIMsgSearchTerm.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/base/search/public/nsIMsgSearchTerm.idl
 */

#ifndef __gen_nsIMsgSearchTerm_h__
#define __gen_nsIMsgSearchTerm_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_nsMsgSearchCore_h__
#include "nsMsgSearchCore.h"
#endif

#ifndef __gen_nsIMsgSearchValue_h__
#include "nsIMsgSearchValue.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIMsgDBHdr; /* forward declaration */

class nsIMsgDatabase; /* forward declaration */

class nsIMsgSearchScopeTerm; /* forward declaration */


/* starting interface:    nsIMsgSearchTerm */
#define NS_IMSGSEARCHTERM_IID_STR "dfd25cbe-2e86-4ff0-b78e-494bc65d344e"

#define NS_IMSGSEARCHTERM_IID \
  {0xdfd25cbe, 0x2e86, 0x4ff0, \
    { 0xb7, 0x8e, 0x49, 0x4b, 0xc6, 0x5d, 0x34, 0x4e }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgSearchTerm : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSEARCHTERM_IID)

  /* attribute nsMsgSearchAttribValue attrib; */
  NS_SCRIPTABLE NS_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) = 0;

  /* attribute nsMsgSearchOpValue op; */
  NS_SCRIPTABLE NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) = 0;

  /* attribute nsIMsgSearchValue value; */
  NS_SCRIPTABLE NS_IMETHOD GetValue(nsIMsgSearchValue * *aValue) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) = 0;

  /* attribute boolean booleanAnd; */
  NS_SCRIPTABLE NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) = 0;

  /* attribute ACString arbitraryHeader; */
  NS_SCRIPTABLE NS_IMETHOD GetArbitraryHeader(nsACString & aArbitraryHeader) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetArbitraryHeader(const nsACString & aArbitraryHeader) = 0;

  /* attribute ACString hdrProperty; */
  NS_SCRIPTABLE NS_IMETHOD GetHdrProperty(nsACString & aHdrProperty) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetHdrProperty(const nsACString & aHdrProperty) = 0;

  /* attribute ACString customId; */
  NS_SCRIPTABLE NS_IMETHOD GetCustomId(nsACString & aCustomId) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetCustomId(const nsACString & aCustomId) = 0;

  /* attribute boolean beginsGrouping; */
  NS_SCRIPTABLE NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) = 0;

  /* attribute boolean endsGrouping; */
  NS_SCRIPTABLE NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) = 0;

  /* boolean matchRfc822String (in string aString, in string charset, in boolean charsetOverride); */
  NS_SCRIPTABLE NS_IMETHOD MatchRfc822String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchRfc2047String (in string aString, in string charset, in boolean charsetOverride); */
  NS_SCRIPTABLE NS_IMETHOD MatchRfc2047String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchDate (in PRTime aTime); */
  NS_SCRIPTABLE NS_IMETHOD MatchDate(PRTime aTime, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchStatus (in unsigned long aStatus); */
  NS_SCRIPTABLE NS_IMETHOD MatchStatus(PRUint32 aStatus, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchPriority (in nsMsgPriorityValue priority); */
  NS_SCRIPTABLE NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchAge (in PRTime days); */
  NS_SCRIPTABLE NS_IMETHOD MatchAge(PRTime days, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchSize (in unsigned long size); */
  NS_SCRIPTABLE NS_IMETHOD MatchSize(PRUint32 size, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchLabel (in nsMsgLabelValue aLabelValue); */
  NS_SCRIPTABLE NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchJunkStatus (in string aJunkScore); */
  NS_SCRIPTABLE NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchJunkPercent (in unsigned long aJunkPercent); */
  NS_SCRIPTABLE NS_IMETHOD MatchJunkPercent(PRUint32 aJunkPercent, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchJunkScoreOrigin (in string aJunkScoreOrigin); */
  NS_SCRIPTABLE NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchBody (in nsIMsgSearchScopeTerm aScopeTerm, in unsigned long long aOffset, in unsigned long aLength, in string aCharset, in nsIMsgDBHdr aMsg, in nsIMsgDatabase aDb); */
  NS_SCRIPTABLE NS_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, PRUint64 aOffset, PRUint32 aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval NS_OUTPARAM) = 0;

  /* [noscript] boolean matchArbitraryHeader (in nsIMsgSearchScopeTerm aScopeTerm, in unsigned long aLength, in string aCharset, in boolean aCharsetOverride, in nsIMsgDBHdr aMsg, in nsIMsgDatabase aDb, in string aHeaders, in unsigned long aHeaderLength, in boolean aForFilters); */
  NS_IMETHOD MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, PRUint32 aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, PRUint32 aHeaderLength, bool aForFilters, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchHdrProperty (in nsIMsgDBHdr msg); */
  NS_SCRIPTABLE NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchUint32HdrProperty (in nsIMsgDBHdr msg); */
  NS_SCRIPTABLE NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) = 0;

  /* boolean matchFolderFlag (in nsIMsgDBHdr msg); */
  NS_SCRIPTABLE NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) = 0;

  /* readonly attribute boolean matchAllBeforeDeciding; */
  NS_SCRIPTABLE NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) = 0;

  /* readonly attribute ACString termAsString; */
  NS_SCRIPTABLE NS_IMETHOD GetTermAsString(nsACString & aTermAsString) = 0;

  /* boolean matchKeyword (in ACString keyword); */
  NS_SCRIPTABLE NS_IMETHOD MatchKeyword(const nsACString & keyword, bool *_retval NS_OUTPARAM) = 0;

  /* attribute boolean matchAll; */
  NS_SCRIPTABLE NS_IMETHOD GetMatchAll(bool *aMatchAll) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetMatchAll(bool aMatchAll) = 0;

  /* boolean matchCustom (in nsIMsgDBHdr msg); */
  NS_SCRIPTABLE NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgSearchTerm, NS_IMSGSEARCHTERM_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGSEARCHTERM \
  NS_SCRIPTABLE NS_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib); \
  NS_SCRIPTABLE NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib); \
  NS_SCRIPTABLE NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp); \
  NS_SCRIPTABLE NS_IMETHOD SetOp(nsMsgSearchOpValue aOp); \
  NS_SCRIPTABLE NS_IMETHOD GetValue(nsIMsgSearchValue * *aValue); \
  NS_SCRIPTABLE NS_IMETHOD SetValue(nsIMsgSearchValue *aValue); \
  NS_SCRIPTABLE NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd); \
  NS_SCRIPTABLE NS_IMETHOD SetBooleanAnd(bool aBooleanAnd); \
  NS_SCRIPTABLE NS_IMETHOD GetArbitraryHeader(nsACString & aArbitraryHeader); \
  NS_SCRIPTABLE NS_IMETHOD SetArbitraryHeader(const nsACString & aArbitraryHeader); \
  NS_SCRIPTABLE NS_IMETHOD GetHdrProperty(nsACString & aHdrProperty); \
  NS_SCRIPTABLE NS_IMETHOD SetHdrProperty(const nsACString & aHdrProperty); \
  NS_SCRIPTABLE NS_IMETHOD GetCustomId(nsACString & aCustomId); \
  NS_SCRIPTABLE NS_IMETHOD SetCustomId(const nsACString & aCustomId); \
  NS_SCRIPTABLE NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping); \
  NS_SCRIPTABLE NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping); \
  NS_SCRIPTABLE NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping); \
  NS_SCRIPTABLE NS_IMETHOD SetEndsGrouping(bool aEndsGrouping); \
  NS_SCRIPTABLE NS_IMETHOD MatchRfc822String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchRfc2047String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchDate(PRTime aTime, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchStatus(PRUint32 aStatus, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchAge(PRTime days, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchSize(PRUint32 size, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchJunkPercent(PRUint32 aJunkPercent, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, PRUint64 aOffset, PRUint32 aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval NS_OUTPARAM); \
  NS_IMETHOD MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, PRUint32 aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, PRUint32 aHeaderLength, bool aForFilters, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding); \
  NS_SCRIPTABLE NS_IMETHOD GetTermAsString(nsACString & aTermAsString); \
  NS_SCRIPTABLE NS_IMETHOD MatchKeyword(const nsACString & keyword, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetMatchAll(bool *aMatchAll); \
  NS_SCRIPTABLE NS_IMETHOD SetMatchAll(bool aMatchAll); \
  NS_SCRIPTABLE NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGSEARCHTERM(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib) { return _to GetAttrib(aAttrib); } \
  NS_SCRIPTABLE NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) { return _to SetAttrib(aAttrib); } \
  NS_SCRIPTABLE NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) { return _to GetOp(aOp); } \
  NS_SCRIPTABLE NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) { return _to SetOp(aOp); } \
  NS_SCRIPTABLE NS_IMETHOD GetValue(nsIMsgSearchValue * *aValue) { return _to GetValue(aValue); } \
  NS_SCRIPTABLE NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) { return _to SetValue(aValue); } \
  NS_SCRIPTABLE NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) { return _to GetBooleanAnd(aBooleanAnd); } \
  NS_SCRIPTABLE NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) { return _to SetBooleanAnd(aBooleanAnd); } \
  NS_SCRIPTABLE NS_IMETHOD GetArbitraryHeader(nsACString & aArbitraryHeader) { return _to GetArbitraryHeader(aArbitraryHeader); } \
  NS_SCRIPTABLE NS_IMETHOD SetArbitraryHeader(const nsACString & aArbitraryHeader) { return _to SetArbitraryHeader(aArbitraryHeader); } \
  NS_SCRIPTABLE NS_IMETHOD GetHdrProperty(nsACString & aHdrProperty) { return _to GetHdrProperty(aHdrProperty); } \
  NS_SCRIPTABLE NS_IMETHOD SetHdrProperty(const nsACString & aHdrProperty) { return _to SetHdrProperty(aHdrProperty); } \
  NS_SCRIPTABLE NS_IMETHOD GetCustomId(nsACString & aCustomId) { return _to GetCustomId(aCustomId); } \
  NS_SCRIPTABLE NS_IMETHOD SetCustomId(const nsACString & aCustomId) { return _to SetCustomId(aCustomId); } \
  NS_SCRIPTABLE NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping) { return _to GetBeginsGrouping(aBeginsGrouping); } \
  NS_SCRIPTABLE NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) { return _to SetBeginsGrouping(aBeginsGrouping); } \
  NS_SCRIPTABLE NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) { return _to GetEndsGrouping(aEndsGrouping); } \
  NS_SCRIPTABLE NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) { return _to SetEndsGrouping(aEndsGrouping); } \
  NS_SCRIPTABLE NS_IMETHOD MatchRfc822String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM) { return _to MatchRfc822String(aString, charset, charsetOverride, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchRfc2047String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM) { return _to MatchRfc2047String(aString, charset, charsetOverride, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchDate(PRTime aTime, bool *_retval NS_OUTPARAM) { return _to MatchDate(aTime, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchStatus(PRUint32 aStatus, bool *_retval NS_OUTPARAM) { return _to MatchStatus(aStatus, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval NS_OUTPARAM) { return _to MatchPriority(priority, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchAge(PRTime days, bool *_retval NS_OUTPARAM) { return _to MatchAge(days, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchSize(PRUint32 size, bool *_retval NS_OUTPARAM) { return _to MatchSize(size, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval NS_OUTPARAM) { return _to MatchLabel(aLabelValue, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval NS_OUTPARAM) { return _to MatchJunkStatus(aJunkScore, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchJunkPercent(PRUint32 aJunkPercent, bool *_retval NS_OUTPARAM) { return _to MatchJunkPercent(aJunkPercent, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval NS_OUTPARAM) { return _to MatchJunkScoreOrigin(aJunkScoreOrigin, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, PRUint64 aOffset, PRUint32 aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval NS_OUTPARAM) { return _to MatchBody(aScopeTerm, aOffset, aLength, aCharset, aMsg, aDb, _retval); } \
  NS_IMETHOD MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, PRUint32 aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, PRUint32 aHeaderLength, bool aForFilters, bool *_retval NS_OUTPARAM) { return _to MatchArbitraryHeader(aScopeTerm, aLength, aCharset, aCharsetOverride, aMsg, aDb, aHeaders, aHeaderLength, aForFilters, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) { return _to MatchHdrProperty(msg, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) { return _to MatchUint32HdrProperty(msg, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) { return _to MatchFolderFlag(msg, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) { return _to GetMatchAllBeforeDeciding(aMatchAllBeforeDeciding); } \
  NS_SCRIPTABLE NS_IMETHOD GetTermAsString(nsACString & aTermAsString) { return _to GetTermAsString(aTermAsString); } \
  NS_SCRIPTABLE NS_IMETHOD MatchKeyword(const nsACString & keyword, bool *_retval NS_OUTPARAM) { return _to MatchKeyword(keyword, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetMatchAll(bool *aMatchAll) { return _to GetMatchAll(aMatchAll); } \
  NS_SCRIPTABLE NS_IMETHOD SetMatchAll(bool aMatchAll) { return _to SetMatchAll(aMatchAll); } \
  NS_SCRIPTABLE NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) { return _to MatchCustom(msg, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGSEARCHTERM(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttrib(aAttrib); } \
  NS_SCRIPTABLE NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttrib(aAttrib); } \
  NS_SCRIPTABLE NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOp(aOp); } \
  NS_SCRIPTABLE NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOp(aOp); } \
  NS_SCRIPTABLE NS_IMETHOD GetValue(nsIMsgSearchValue * *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  NS_SCRIPTABLE NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  NS_SCRIPTABLE NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBooleanAnd(aBooleanAnd); } \
  NS_SCRIPTABLE NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBooleanAnd(aBooleanAnd); } \
  NS_SCRIPTABLE NS_IMETHOD GetArbitraryHeader(nsACString & aArbitraryHeader) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArbitraryHeader(aArbitraryHeader); } \
  NS_SCRIPTABLE NS_IMETHOD SetArbitraryHeader(const nsACString & aArbitraryHeader) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetArbitraryHeader(aArbitraryHeader); } \
  NS_SCRIPTABLE NS_IMETHOD GetHdrProperty(nsACString & aHdrProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHdrProperty(aHdrProperty); } \
  NS_SCRIPTABLE NS_IMETHOD SetHdrProperty(const nsACString & aHdrProperty) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHdrProperty(aHdrProperty); } \
  NS_SCRIPTABLE NS_IMETHOD GetCustomId(nsACString & aCustomId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCustomId(aCustomId); } \
  NS_SCRIPTABLE NS_IMETHOD SetCustomId(const nsACString & aCustomId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCustomId(aCustomId); } \
  NS_SCRIPTABLE NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBeginsGrouping(aBeginsGrouping); } \
  NS_SCRIPTABLE NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBeginsGrouping(aBeginsGrouping); } \
  NS_SCRIPTABLE NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndsGrouping(aEndsGrouping); } \
  NS_SCRIPTABLE NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEndsGrouping(aEndsGrouping); } \
  NS_SCRIPTABLE NS_IMETHOD MatchRfc822String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchRfc822String(aString, charset, charsetOverride, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchRfc2047String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchRfc2047String(aString, charset, charsetOverride, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchDate(PRTime aTime, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchDate(aTime, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchStatus(PRUint32 aStatus, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchStatus(aStatus, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchPriority(priority, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchAge(PRTime days, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchAge(days, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchSize(PRUint32 size, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchSize(size, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchLabel(aLabelValue, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchJunkStatus(aJunkScore, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchJunkPercent(PRUint32 aJunkPercent, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchJunkPercent(aJunkPercent, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchJunkScoreOrigin(aJunkScoreOrigin, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, PRUint64 aOffset, PRUint32 aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchBody(aScopeTerm, aOffset, aLength, aCharset, aMsg, aDb, _retval); } \
  NS_IMETHOD MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, PRUint32 aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, PRUint32 aHeaderLength, bool aForFilters, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchArbitraryHeader(aScopeTerm, aLength, aCharset, aCharsetOverride, aMsg, aDb, aHeaders, aHeaderLength, aForFilters, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchHdrProperty(msg, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchUint32HdrProperty(msg, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchFolderFlag(msg, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchAllBeforeDeciding(aMatchAllBeforeDeciding); } \
  NS_SCRIPTABLE NS_IMETHOD GetTermAsString(nsACString & aTermAsString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTermAsString(aTermAsString); } \
  NS_SCRIPTABLE NS_IMETHOD MatchKeyword(const nsACString & keyword, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchKeyword(keyword, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetMatchAll(bool *aMatchAll) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchAll(aMatchAll); } \
  NS_SCRIPTABLE NS_IMETHOD SetMatchAll(bool aMatchAll) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMatchAll(aMatchAll); } \
  NS_SCRIPTABLE NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchCustom(msg, _retval); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsMsgSearchTerm : public nsIMsgSearchTerm
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGSEARCHTERM

  nsMsgSearchTerm();

private:
  ~nsMsgSearchTerm();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgSearchTerm, nsIMsgSearchTerm)

nsMsgSearchTerm::nsMsgSearchTerm()
{
  /* member initializers and constructor code */
}

nsMsgSearchTerm::~nsMsgSearchTerm()
{
  /* destructor code */
}

/* attribute nsMsgSearchAttribValue attrib; */
NS_IMETHODIMP nsMsgSearchTerm::GetAttrib(nsMsgSearchAttribValue *aAttrib)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetAttrib(nsMsgSearchAttribValue aAttrib)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgSearchOpValue op; */
NS_IMETHODIMP nsMsgSearchTerm::GetOp(nsMsgSearchOpValue *aOp)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetOp(nsMsgSearchOpValue aOp)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIMsgSearchValue value; */
NS_IMETHODIMP nsMsgSearchTerm::GetValue(nsIMsgSearchValue * *aValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetValue(nsIMsgSearchValue *aValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean booleanAnd; */
NS_IMETHODIMP nsMsgSearchTerm::GetBooleanAnd(bool *aBooleanAnd)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetBooleanAnd(bool aBooleanAnd)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString arbitraryHeader; */
NS_IMETHODIMP nsMsgSearchTerm::GetArbitraryHeader(nsACString & aArbitraryHeader)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetArbitraryHeader(const nsACString & aArbitraryHeader)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString hdrProperty; */
NS_IMETHODIMP nsMsgSearchTerm::GetHdrProperty(nsACString & aHdrProperty)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetHdrProperty(const nsACString & aHdrProperty)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute ACString customId; */
NS_IMETHODIMP nsMsgSearchTerm::GetCustomId(nsACString & aCustomId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetCustomId(const nsACString & aCustomId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean beginsGrouping; */
NS_IMETHODIMP nsMsgSearchTerm::GetBeginsGrouping(bool *aBeginsGrouping)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetBeginsGrouping(bool aBeginsGrouping)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean endsGrouping; */
NS_IMETHODIMP nsMsgSearchTerm::GetEndsGrouping(bool *aEndsGrouping)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetEndsGrouping(bool aEndsGrouping)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchRfc822String (in string aString, in string charset, in boolean charsetOverride); */
NS_IMETHODIMP nsMsgSearchTerm::MatchRfc822String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchRfc2047String (in string aString, in string charset, in boolean charsetOverride); */
NS_IMETHODIMP nsMsgSearchTerm::MatchRfc2047String(const char * aString, const char * charset, bool charsetOverride, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchDate (in PRTime aTime); */
NS_IMETHODIMP nsMsgSearchTerm::MatchDate(PRTime aTime, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchStatus (in unsigned long aStatus); */
NS_IMETHODIMP nsMsgSearchTerm::MatchStatus(PRUint32 aStatus, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchPriority (in nsMsgPriorityValue priority); */
NS_IMETHODIMP nsMsgSearchTerm::MatchPriority(nsMsgPriorityValue priority, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchAge (in PRTime days); */
NS_IMETHODIMP nsMsgSearchTerm::MatchAge(PRTime days, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchSize (in unsigned long size); */
NS_IMETHODIMP nsMsgSearchTerm::MatchSize(PRUint32 size, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchLabel (in nsMsgLabelValue aLabelValue); */
NS_IMETHODIMP nsMsgSearchTerm::MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchJunkStatus (in string aJunkScore); */
NS_IMETHODIMP nsMsgSearchTerm::MatchJunkStatus(const char * aJunkScore, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchJunkPercent (in unsigned long aJunkPercent); */
NS_IMETHODIMP nsMsgSearchTerm::MatchJunkPercent(PRUint32 aJunkPercent, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchJunkScoreOrigin (in string aJunkScoreOrigin); */
NS_IMETHODIMP nsMsgSearchTerm::MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchBody (in nsIMsgSearchScopeTerm aScopeTerm, in unsigned long long aOffset, in unsigned long aLength, in string aCharset, in nsIMsgDBHdr aMsg, in nsIMsgDatabase aDb); */
NS_IMETHODIMP nsMsgSearchTerm::MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, PRUint64 aOffset, PRUint32 aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] boolean matchArbitraryHeader (in nsIMsgSearchScopeTerm aScopeTerm, in unsigned long aLength, in string aCharset, in boolean aCharsetOverride, in nsIMsgDBHdr aMsg, in nsIMsgDatabase aDb, in string aHeaders, in unsigned long aHeaderLength, in boolean aForFilters); */
NS_IMETHODIMP nsMsgSearchTerm::MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, PRUint32 aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, PRUint32 aHeaderLength, bool aForFilters, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchHdrProperty (in nsIMsgDBHdr msg); */
NS_IMETHODIMP nsMsgSearchTerm::MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchUint32HdrProperty (in nsIMsgDBHdr msg); */
NS_IMETHODIMP nsMsgSearchTerm::MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchFolderFlag (in nsIMsgDBHdr msg); */
NS_IMETHODIMP nsMsgSearchTerm::MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean matchAllBeforeDeciding; */
NS_IMETHODIMP nsMsgSearchTerm::GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute ACString termAsString; */
NS_IMETHODIMP nsMsgSearchTerm::GetTermAsString(nsACString & aTermAsString)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchKeyword (in ACString keyword); */
NS_IMETHODIMP nsMsgSearchTerm::MatchKeyword(const nsACString & keyword, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute boolean matchAll; */
NS_IMETHODIMP nsMsgSearchTerm::GetMatchAll(bool *aMatchAll)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgSearchTerm::SetMatchAll(bool aMatchAll)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean matchCustom (in nsIMsgDBHdr msg); */
NS_IMETHODIMP nsMsgSearchTerm::MatchCustom(nsIMsgDBHdr *msg, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIMsgSearchTerm_h__ */