This file is indexed.

/usr/include/thunderbird/nsIMsgSearchTerm.h is in thunderbird-dev 1:52.8.0-1~deb8u1.

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
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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 "705a2b5a-5efc-495c-897a-bef1161cd3c0"

#define NS_IMSGSEARCHTERM_IID \
  {0x705a2b5a, 0x5efc, 0x495c, \
    { 0x89, 0x7a, 0xbe, 0xf1, 0x16, 0x1c, 0xd3, 0xc0 }}

class NS_NO_VTABLE nsIMsgSearchTerm : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGSEARCHTERM_IID)

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

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

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

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

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

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

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

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

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

  /* boolean matchRfc822String (in ACString aString, in string charset); */
  NS_IMETHOD MatchRfc822String(const nsACString & aString, const char * charset, bool *_retval) = 0;

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

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

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

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

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

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

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

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

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

  /* boolean matchJunkScoreOrigin (in string aJunkScoreOrigin); */
  NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval) = 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_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval) = 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, uint32_t aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, uint32_t aHeaderLength, bool aForFilters, bool *_retval) = 0;

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

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

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

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

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

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

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

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

  /* nsMsgSearchAttribValue getAttributeFromString (in string aAttribName); */
  NS_IMETHOD GetAttributeFromString(const char * aAttribName, nsMsgSearchAttribValue *_retval) = 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_IMETHOD GetAttrib(nsMsgSearchAttribValue *aAttrib) override; \
  NS_IMETHOD SetAttrib(nsMsgSearchAttribValue aAttrib) override; \
  NS_IMETHOD GetOp(nsMsgSearchOpValue *aOp) override; \
  NS_IMETHOD SetOp(nsMsgSearchOpValue aOp) override; \
  NS_IMETHOD GetValue(nsIMsgSearchValue * *aValue) override; \
  NS_IMETHOD SetValue(nsIMsgSearchValue *aValue) override; \
  NS_IMETHOD GetBooleanAnd(bool *aBooleanAnd) override; \
  NS_IMETHOD SetBooleanAnd(bool aBooleanAnd) override; \
  NS_IMETHOD GetArbitraryHeader(nsACString & aArbitraryHeader) override; \
  NS_IMETHOD SetArbitraryHeader(const nsACString & aArbitraryHeader) override; \
  NS_IMETHOD GetHdrProperty(nsACString & aHdrProperty) override; \
  NS_IMETHOD SetHdrProperty(const nsACString & aHdrProperty) override; \
  NS_IMETHOD GetCustomId(nsACString & aCustomId) override; \
  NS_IMETHOD SetCustomId(const nsACString & aCustomId) override; \
  NS_IMETHOD GetBeginsGrouping(bool *aBeginsGrouping) override; \
  NS_IMETHOD SetBeginsGrouping(bool aBeginsGrouping) override; \
  NS_IMETHOD GetEndsGrouping(bool *aEndsGrouping) override; \
  NS_IMETHOD SetEndsGrouping(bool aEndsGrouping) override; \
  NS_IMETHOD MatchRfc822String(const nsACString & aString, const char * charset, bool *_retval) override; \
  NS_IMETHOD MatchRfc2047String(const nsACString & aString, const char * charset, bool charsetOverride, bool *_retval) override; \
  NS_IMETHOD MatchDate(PRTime aTime, bool *_retval) override; \
  NS_IMETHOD MatchStatus(uint32_t aStatus, bool *_retval) override; \
  NS_IMETHOD MatchPriority(nsMsgPriorityValue priority, bool *_retval) override; \
  NS_IMETHOD MatchAge(PRTime days, bool *_retval) override; \
  NS_IMETHOD MatchSize(uint32_t size, bool *_retval) override; \
  NS_IMETHOD MatchLabel(nsMsgLabelValue aLabelValue, bool *_retval) override; \
  NS_IMETHOD MatchJunkStatus(const char * aJunkScore, bool *_retval) override; \
  NS_IMETHOD MatchJunkPercent(uint32_t aJunkPercent, bool *_retval) override; \
  NS_IMETHOD MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval) override; \
  NS_IMETHOD MatchBody(nsIMsgSearchScopeTerm *aScopeTerm, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval) override; \
  NS_IMETHOD MatchArbitraryHeader(nsIMsgSearchScopeTerm *aScopeTerm, uint32_t aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, uint32_t aHeaderLength, bool aForFilters, bool *_retval) override; \
  NS_IMETHOD MatchHdrProperty(nsIMsgDBHdr *msg, bool *_retval) override; \
  NS_IMETHOD MatchUint32HdrProperty(nsIMsgDBHdr *msg, bool *_retval) override; \
  NS_IMETHOD MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval) override; \
  NS_IMETHOD GetMatchAllBeforeDeciding(bool *aMatchAllBeforeDeciding) override; \
  NS_IMETHOD GetTermAsString(nsACString & aTermAsString) override; \
  NS_IMETHOD MatchKeyword(const nsACString & keyword, bool *_retval) override; \
  NS_IMETHOD GetMatchAll(bool *aMatchAll) override; \
  NS_IMETHOD SetMatchAll(bool aMatchAll) override; \
  NS_IMETHOD MatchCustom(nsIMsgDBHdr *msg, bool *_retval) override; \
  NS_IMETHOD GetAttributeFromString(const char * aAttribName, nsMsgSearchAttribValue *_retval) override; 

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

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

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

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

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

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

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

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

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

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

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

/* boolean matchJunkScoreOrigin (in string aJunkScoreOrigin); */
NS_IMETHODIMP nsMsgSearchTerm::MatchJunkScoreOrigin(const char * aJunkScoreOrigin, bool *_retval)
{
    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, uint64_t aOffset, uint32_t aLength, const char * aCharset, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, bool *_retval)
{
    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, uint32_t aLength, const char * aCharset, bool aCharsetOverride, nsIMsgDBHdr *aMsg, nsIMsgDatabase *aDb, const char * aHeaders, uint32_t aHeaderLength, bool aForFilters, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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

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

/* boolean matchFolderFlag (in nsIMsgDBHdr msg); */
NS_IMETHODIMP nsMsgSearchTerm::MatchFolderFlag(nsIMsgDBHdr *msg, bool *_retval)
{
    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)
{
    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)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsMsgSearchAttribValue getAttributeFromString (in string aAttribName); */
NS_IMETHODIMP nsMsgSearchTerm::GetAttributeFromString(const char * aAttribName, nsMsgSearchAttribValue *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIMsgSearchTerm_h__ */