This file is indexed.

/usr/include/thunderbird-11.0.1/nsIMsgHdr.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
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
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mailnews/base/public/nsIMsgHdr.idl
 */

#ifndef __gen_nsIMsgHdr_h__
#define __gen_nsIMsgHdr_h__


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

#ifndef __gen_MailNewsTypes2_h__
#include "MailNewsTypes2.h"
#endif

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

class nsIUTF8StringEnumerator; /* forward declaration */


/* starting interface:    nsIMsgDBHdr */
#define NS_IMSGDBHDR_IID_STR "36adf826-73f4-48e7-a444-318242ea8a8e"

#define NS_IMSGDBHDR_IID \
  {0x36adf826, 0x73f4, 0x48e7, \
    { 0xa4, 0x44, 0x31, 0x82, 0x42, 0xea, 0x8a, 0x8e }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIMsgDBHdr : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMSGDBHDR_IID)

  /* AString getProperty (in string propertyName); */
  NS_SCRIPTABLE NS_IMETHOD GetProperty(const char * propertyName, nsAString & _retval NS_OUTPARAM) = 0;

  /* void setProperty (in string propertyName, in AString propertyStr); */
  NS_SCRIPTABLE NS_IMETHOD SetProperty(const char * propertyName, const nsAString & propertyStr) = 0;

  /* void setStringProperty (in string propertyName, in string propertyValue); */
  NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * propertyName, const char * propertyValue) = 0;

  /* string getStringProperty (in string propertyName); */
  NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const char * propertyName, char * *_retval NS_OUTPARAM) = 0;

  /* unsigned long getUint32Property (in string propertyName); */
  NS_SCRIPTABLE NS_IMETHOD GetUint32Property(const char * propertyName, PRUint32 *_retval NS_OUTPARAM) = 0;

  /* void setUint32Property (in string propertyName, in unsigned long propertyVal); */
  NS_SCRIPTABLE NS_IMETHOD SetUint32Property(const char * propertyName, PRUint32 propertyVal) = 0;

  /* readonly attribute boolean isRead; */
  NS_SCRIPTABLE NS_IMETHOD GetIsRead(bool *aIsRead) = 0;

  /* readonly attribute boolean isFlagged; */
  NS_SCRIPTABLE NS_IMETHOD GetIsFlagged(bool *aIsFlagged) = 0;

  /* readonly attribute boolean isKilled; */
  NS_SCRIPTABLE NS_IMETHOD GetIsKilled(bool *aIsKilled) = 0;

  /* void markRead (in boolean read); */
  NS_SCRIPTABLE NS_IMETHOD MarkRead(bool read) = 0;

  /* void markFlagged (in boolean flagged); */
  NS_SCRIPTABLE NS_IMETHOD MarkFlagged(bool flagged) = 0;

  /* void markHasAttachments (in boolean hasAttachments); */
  NS_SCRIPTABLE NS_IMETHOD MarkHasAttachments(bool hasAttachments) = 0;

  /* attribute nsMsgPriorityValue priority; */
  NS_SCRIPTABLE NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) = 0;

  /* void setPriorityString (in string priority); */
  NS_SCRIPTABLE NS_IMETHOD SetPriorityString(const char * priority) = 0;

  /* attribute unsigned long flags; */
  NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags) = 0;

  /* unsigned long OrFlags (in unsigned long flags); */
  NS_SCRIPTABLE NS_IMETHOD OrFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM) = 0;

  /* unsigned long AndFlags (in unsigned long flags); */
  NS_SCRIPTABLE NS_IMETHOD AndFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM) = 0;

  /* attribute nsMsgKey threadId; */
  NS_SCRIPTABLE NS_IMETHOD GetThreadId(nsMsgKey *aThreadId) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetThreadId(nsMsgKey aThreadId) = 0;

  /* attribute nsMsgKey messageKey; */
  NS_SCRIPTABLE NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) = 0;

  /* attribute nsMsgKey threadParent; */
  NS_SCRIPTABLE NS_IMETHOD GetThreadParent(nsMsgKey *aThreadParent) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetThreadParent(nsMsgKey aThreadParent) = 0;

  /* attribute unsigned long messageSize; */
  NS_SCRIPTABLE NS_IMETHOD GetMessageSize(PRUint32 *aMessageSize) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetMessageSize(PRUint32 aMessageSize) = 0;

  /* attribute unsigned long lineCount; */
  NS_SCRIPTABLE NS_IMETHOD GetLineCount(PRUint32 *aLineCount) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetLineCount(PRUint32 aLineCount) = 0;

  /* attribute unsigned long statusOffset; */
  NS_SCRIPTABLE NS_IMETHOD GetStatusOffset(PRUint32 *aStatusOffset) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetStatusOffset(PRUint32 aStatusOffset) = 0;

  /* attribute unsigned long long messageOffset; */
  NS_SCRIPTABLE NS_IMETHOD GetMessageOffset(PRUint64 *aMessageOffset) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetMessageOffset(PRUint64 aMessageOffset) = 0;

  /* attribute unsigned long offlineMessageSize; */
  NS_SCRIPTABLE NS_IMETHOD GetOfflineMessageSize(PRUint32 *aOfflineMessageSize) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetOfflineMessageSize(PRUint32 aOfflineMessageSize) = 0;

  /* attribute PRTime date; */
  NS_SCRIPTABLE NS_IMETHOD GetDate(PRTime *aDate) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetDate(PRTime aDate) = 0;

  /* readonly attribute unsigned long dateInSeconds; */
  NS_SCRIPTABLE NS_IMETHOD GetDateInSeconds(PRUint32 *aDateInSeconds) = 0;

  /* attribute string messageId; */
  NS_SCRIPTABLE NS_IMETHOD GetMessageId(char * *aMessageId) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetMessageId(const char * aMessageId) = 0;

  /* attribute string ccList; */
  NS_SCRIPTABLE NS_IMETHOD GetCcList(char * *aCcList) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetCcList(const char * aCcList) = 0;

  /* attribute string bccList; */
  NS_SCRIPTABLE NS_IMETHOD GetBccList(char * *aBccList) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetBccList(const char * aBccList) = 0;

  /* attribute string author; */
  NS_SCRIPTABLE NS_IMETHOD GetAuthor(char * *aAuthor) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetAuthor(const char * aAuthor) = 0;

  /* attribute string subject; */
  NS_SCRIPTABLE NS_IMETHOD GetSubject(char * *aSubject) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetSubject(const char * aSubject) = 0;

  /* attribute string recipients; */
  NS_SCRIPTABLE NS_IMETHOD GetRecipients(char * *aRecipients) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetRecipients(const char * aRecipients) = 0;

  /* void setReferences (in string references); */
  NS_SCRIPTABLE NS_IMETHOD SetReferences(const char * references) = 0;

  /* readonly attribute unsigned short numReferences; */
  NS_SCRIPTABLE NS_IMETHOD GetNumReferences(PRUint16 *aNumReferences) = 0;

  /* ACString getStringReference (in long refNum); */
  NS_SCRIPTABLE NS_IMETHOD GetStringReference(PRInt32 refNum, nsACString & _retval NS_OUTPARAM) = 0;

  /* void setRecipientsArray (in string names, in string addresses, in unsigned long numAddresses); */
  NS_SCRIPTABLE NS_IMETHOD SetRecipientsArray(const char * names, const char * addresses, PRUint32 numAddresses) = 0;

  /* void setCCListArray (in string names, in string addresses, in unsigned long numAddresses); */
  NS_SCRIPTABLE NS_IMETHOD SetCCListArray(const char * names, const char * addresses, PRUint32 numAddresses) = 0;

  /* void setBCCListArray (in string names, in string addresses, in unsigned long numAddresses); */
  NS_SCRIPTABLE NS_IMETHOD SetBCCListArray(const char * names, const char * addresses, PRUint32 numAddresses) = 0;

  /* readonly attribute AString mime2DecodedAuthor; */
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedAuthor(nsAString & aMime2DecodedAuthor) = 0;

  /* readonly attribute AString mime2DecodedSubject; */
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedSubject(nsAString & aMime2DecodedSubject) = 0;

  /* readonly attribute AString mime2DecodedRecipients; */
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedRecipients(nsAString & aMime2DecodedRecipients) = 0;

  /* void getAuthorCollationKey (out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
  NS_SCRIPTABLE NS_IMETHOD GetAuthorCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) = 0;

  /* void getSubjectCollationKey (out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
  NS_SCRIPTABLE NS_IMETHOD GetSubjectCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) = 0;

  /* void getRecipientsCollationKey (out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
  NS_SCRIPTABLE NS_IMETHOD GetRecipientsCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) = 0;

  /* attribute string Charset; */
  NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset) = 0;

  /* attribute nsMsgLabelValue label; */
  NS_SCRIPTABLE NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) = 0;

  /* attribute string accountKey; */
  NS_SCRIPTABLE NS_IMETHOD GetAccountKey(char * *aAccountKey) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetAccountKey(const char * aAccountKey) = 0;

  /* readonly attribute nsIMsgFolder folder; */
  NS_SCRIPTABLE NS_IMETHOD GetFolder(nsIMsgFolder * *aFolder) = 0;

  /* readonly attribute nsIUTF8StringEnumerator propertyEnumerator; */
  NS_SCRIPTABLE NS_IMETHOD GetPropertyEnumerator(nsIUTF8StringEnumerator * *aPropertyEnumerator) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIMsgDBHdr, NS_IMSGDBHDR_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIMSGDBHDR \
  NS_SCRIPTABLE NS_IMETHOD GetProperty(const char * propertyName, nsAString & _retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetProperty(const char * propertyName, const nsAString & propertyStr); \
  NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * propertyName, const char * propertyValue); \
  NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const char * propertyName, char * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetUint32Property(const char * propertyName, PRUint32 *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetUint32Property(const char * propertyName, PRUint32 propertyVal); \
  NS_SCRIPTABLE NS_IMETHOD GetIsRead(bool *aIsRead); \
  NS_SCRIPTABLE NS_IMETHOD GetIsFlagged(bool *aIsFlagged); \
  NS_SCRIPTABLE NS_IMETHOD GetIsKilled(bool *aIsKilled); \
  NS_SCRIPTABLE NS_IMETHOD MarkRead(bool read); \
  NS_SCRIPTABLE NS_IMETHOD MarkFlagged(bool flagged); \
  NS_SCRIPTABLE NS_IMETHOD MarkHasAttachments(bool hasAttachments); \
  NS_SCRIPTABLE NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority); \
  NS_SCRIPTABLE NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority); \
  NS_SCRIPTABLE NS_IMETHOD SetPriorityString(const char * priority); \
  NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags); \
  NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags); \
  NS_SCRIPTABLE NS_IMETHOD OrFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD AndFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetThreadId(nsMsgKey *aThreadId); \
  NS_SCRIPTABLE NS_IMETHOD SetThreadId(nsMsgKey aThreadId); \
  NS_SCRIPTABLE NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey); \
  NS_SCRIPTABLE NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey); \
  NS_SCRIPTABLE NS_IMETHOD GetThreadParent(nsMsgKey *aThreadParent); \
  NS_SCRIPTABLE NS_IMETHOD SetThreadParent(nsMsgKey aThreadParent); \
  NS_SCRIPTABLE NS_IMETHOD GetMessageSize(PRUint32 *aMessageSize); \
  NS_SCRIPTABLE NS_IMETHOD SetMessageSize(PRUint32 aMessageSize); \
  NS_SCRIPTABLE NS_IMETHOD GetLineCount(PRUint32 *aLineCount); \
  NS_SCRIPTABLE NS_IMETHOD SetLineCount(PRUint32 aLineCount); \
  NS_SCRIPTABLE NS_IMETHOD GetStatusOffset(PRUint32 *aStatusOffset); \
  NS_SCRIPTABLE NS_IMETHOD SetStatusOffset(PRUint32 aStatusOffset); \
  NS_SCRIPTABLE NS_IMETHOD GetMessageOffset(PRUint64 *aMessageOffset); \
  NS_SCRIPTABLE NS_IMETHOD SetMessageOffset(PRUint64 aMessageOffset); \
  NS_SCRIPTABLE NS_IMETHOD GetOfflineMessageSize(PRUint32 *aOfflineMessageSize); \
  NS_SCRIPTABLE NS_IMETHOD SetOfflineMessageSize(PRUint32 aOfflineMessageSize); \
  NS_SCRIPTABLE NS_IMETHOD GetDate(PRTime *aDate); \
  NS_SCRIPTABLE NS_IMETHOD SetDate(PRTime aDate); \
  NS_SCRIPTABLE NS_IMETHOD GetDateInSeconds(PRUint32 *aDateInSeconds); \
  NS_SCRIPTABLE NS_IMETHOD GetMessageId(char * *aMessageId); \
  NS_SCRIPTABLE NS_IMETHOD SetMessageId(const char * aMessageId); \
  NS_SCRIPTABLE NS_IMETHOD GetCcList(char * *aCcList); \
  NS_SCRIPTABLE NS_IMETHOD SetCcList(const char * aCcList); \
  NS_SCRIPTABLE NS_IMETHOD GetBccList(char * *aBccList); \
  NS_SCRIPTABLE NS_IMETHOD SetBccList(const char * aBccList); \
  NS_SCRIPTABLE NS_IMETHOD GetAuthor(char * *aAuthor); \
  NS_SCRIPTABLE NS_IMETHOD SetAuthor(const char * aAuthor); \
  NS_SCRIPTABLE NS_IMETHOD GetSubject(char * *aSubject); \
  NS_SCRIPTABLE NS_IMETHOD SetSubject(const char * aSubject); \
  NS_SCRIPTABLE NS_IMETHOD GetRecipients(char * *aRecipients); \
  NS_SCRIPTABLE NS_IMETHOD SetRecipients(const char * aRecipients); \
  NS_SCRIPTABLE NS_IMETHOD SetReferences(const char * references); \
  NS_SCRIPTABLE NS_IMETHOD GetNumReferences(PRUint16 *aNumReferences); \
  NS_SCRIPTABLE NS_IMETHOD GetStringReference(PRInt32 refNum, nsACString & _retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD SetRecipientsArray(const char * names, const char * addresses, PRUint32 numAddresses); \
  NS_SCRIPTABLE NS_IMETHOD SetCCListArray(const char * names, const char * addresses, PRUint32 numAddresses); \
  NS_SCRIPTABLE NS_IMETHOD SetBCCListArray(const char * names, const char * addresses, PRUint32 numAddresses); \
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedAuthor(nsAString & aMime2DecodedAuthor); \
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedSubject(nsAString & aMime2DecodedSubject); \
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedRecipients(nsAString & aMime2DecodedRecipients); \
  NS_SCRIPTABLE NS_IMETHOD GetAuthorCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetSubjectCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetRecipientsCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset); \
  NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset); \
  NS_SCRIPTABLE NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel); \
  NS_SCRIPTABLE NS_IMETHOD SetLabel(nsMsgLabelValue aLabel); \
  NS_SCRIPTABLE NS_IMETHOD GetAccountKey(char * *aAccountKey); \
  NS_SCRIPTABLE NS_IMETHOD SetAccountKey(const char * aAccountKey); \
  NS_SCRIPTABLE NS_IMETHOD GetFolder(nsIMsgFolder * *aFolder); \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyEnumerator(nsIUTF8StringEnumerator * *aPropertyEnumerator); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIMSGDBHDR(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetProperty(const char * propertyName, nsAString & _retval NS_OUTPARAM) { return _to GetProperty(propertyName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetProperty(const char * propertyName, const nsAString & propertyStr) { return _to SetProperty(propertyName, propertyStr); } \
  NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * propertyName, const char * propertyValue) { return _to SetStringProperty(propertyName, propertyValue); } \
  NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const char * propertyName, char * *_retval NS_OUTPARAM) { return _to GetStringProperty(propertyName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetUint32Property(const char * propertyName, PRUint32 *_retval NS_OUTPARAM) { return _to GetUint32Property(propertyName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetUint32Property(const char * propertyName, PRUint32 propertyVal) { return _to SetUint32Property(propertyName, propertyVal); } \
  NS_SCRIPTABLE NS_IMETHOD GetIsRead(bool *aIsRead) { return _to GetIsRead(aIsRead); } \
  NS_SCRIPTABLE NS_IMETHOD GetIsFlagged(bool *aIsFlagged) { return _to GetIsFlagged(aIsFlagged); } \
  NS_SCRIPTABLE NS_IMETHOD GetIsKilled(bool *aIsKilled) { return _to GetIsKilled(aIsKilled); } \
  NS_SCRIPTABLE NS_IMETHOD MarkRead(bool read) { return _to MarkRead(read); } \
  NS_SCRIPTABLE NS_IMETHOD MarkFlagged(bool flagged) { return _to MarkFlagged(flagged); } \
  NS_SCRIPTABLE NS_IMETHOD MarkHasAttachments(bool hasAttachments) { return _to MarkHasAttachments(hasAttachments); } \
  NS_SCRIPTABLE NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) { return _to GetPriority(aPriority); } \
  NS_SCRIPTABLE NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) { return _to SetPriority(aPriority); } \
  NS_SCRIPTABLE NS_IMETHOD SetPriorityString(const char * priority) { return _to SetPriorityString(priority); } \
  NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return _to GetFlags(aFlags); } \
  NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags) { return _to SetFlags(aFlags); } \
  NS_SCRIPTABLE NS_IMETHOD OrFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM) { return _to OrFlags(flags, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD AndFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM) { return _to AndFlags(flags, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetThreadId(nsMsgKey *aThreadId) { return _to GetThreadId(aThreadId); } \
  NS_SCRIPTABLE NS_IMETHOD SetThreadId(nsMsgKey aThreadId) { return _to SetThreadId(aThreadId); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) { return _to GetMessageKey(aMessageKey); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) { return _to SetMessageKey(aMessageKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetThreadParent(nsMsgKey *aThreadParent) { return _to GetThreadParent(aThreadParent); } \
  NS_SCRIPTABLE NS_IMETHOD SetThreadParent(nsMsgKey aThreadParent) { return _to SetThreadParent(aThreadParent); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageSize(PRUint32 *aMessageSize) { return _to GetMessageSize(aMessageSize); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageSize(PRUint32 aMessageSize) { return _to SetMessageSize(aMessageSize); } \
  NS_SCRIPTABLE NS_IMETHOD GetLineCount(PRUint32 *aLineCount) { return _to GetLineCount(aLineCount); } \
  NS_SCRIPTABLE NS_IMETHOD SetLineCount(PRUint32 aLineCount) { return _to SetLineCount(aLineCount); } \
  NS_SCRIPTABLE NS_IMETHOD GetStatusOffset(PRUint32 *aStatusOffset) { return _to GetStatusOffset(aStatusOffset); } \
  NS_SCRIPTABLE NS_IMETHOD SetStatusOffset(PRUint32 aStatusOffset) { return _to SetStatusOffset(aStatusOffset); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageOffset(PRUint64 *aMessageOffset) { return _to GetMessageOffset(aMessageOffset); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageOffset(PRUint64 aMessageOffset) { return _to SetMessageOffset(aMessageOffset); } \
  NS_SCRIPTABLE NS_IMETHOD GetOfflineMessageSize(PRUint32 *aOfflineMessageSize) { return _to GetOfflineMessageSize(aOfflineMessageSize); } \
  NS_SCRIPTABLE NS_IMETHOD SetOfflineMessageSize(PRUint32 aOfflineMessageSize) { return _to SetOfflineMessageSize(aOfflineMessageSize); } \
  NS_SCRIPTABLE NS_IMETHOD GetDate(PRTime *aDate) { return _to GetDate(aDate); } \
  NS_SCRIPTABLE NS_IMETHOD SetDate(PRTime aDate) { return _to SetDate(aDate); } \
  NS_SCRIPTABLE NS_IMETHOD GetDateInSeconds(PRUint32 *aDateInSeconds) { return _to GetDateInSeconds(aDateInSeconds); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageId(char * *aMessageId) { return _to GetMessageId(aMessageId); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageId(const char * aMessageId) { return _to SetMessageId(aMessageId); } \
  NS_SCRIPTABLE NS_IMETHOD GetCcList(char * *aCcList) { return _to GetCcList(aCcList); } \
  NS_SCRIPTABLE NS_IMETHOD SetCcList(const char * aCcList) { return _to SetCcList(aCcList); } \
  NS_SCRIPTABLE NS_IMETHOD GetBccList(char * *aBccList) { return _to GetBccList(aBccList); } \
  NS_SCRIPTABLE NS_IMETHOD SetBccList(const char * aBccList) { return _to SetBccList(aBccList); } \
  NS_SCRIPTABLE NS_IMETHOD GetAuthor(char * *aAuthor) { return _to GetAuthor(aAuthor); } \
  NS_SCRIPTABLE NS_IMETHOD SetAuthor(const char * aAuthor) { return _to SetAuthor(aAuthor); } \
  NS_SCRIPTABLE NS_IMETHOD GetSubject(char * *aSubject) { return _to GetSubject(aSubject); } \
  NS_SCRIPTABLE NS_IMETHOD SetSubject(const char * aSubject) { return _to SetSubject(aSubject); } \
  NS_SCRIPTABLE NS_IMETHOD GetRecipients(char * *aRecipients) { return _to GetRecipients(aRecipients); } \
  NS_SCRIPTABLE NS_IMETHOD SetRecipients(const char * aRecipients) { return _to SetRecipients(aRecipients); } \
  NS_SCRIPTABLE NS_IMETHOD SetReferences(const char * references) { return _to SetReferences(references); } \
  NS_SCRIPTABLE NS_IMETHOD GetNumReferences(PRUint16 *aNumReferences) { return _to GetNumReferences(aNumReferences); } \
  NS_SCRIPTABLE NS_IMETHOD GetStringReference(PRInt32 refNum, nsACString & _retval NS_OUTPARAM) { return _to GetStringReference(refNum, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetRecipientsArray(const char * names, const char * addresses, PRUint32 numAddresses) { return _to SetRecipientsArray(names, addresses, numAddresses); } \
  NS_SCRIPTABLE NS_IMETHOD SetCCListArray(const char * names, const char * addresses, PRUint32 numAddresses) { return _to SetCCListArray(names, addresses, numAddresses); } \
  NS_SCRIPTABLE NS_IMETHOD SetBCCListArray(const char * names, const char * addresses, PRUint32 numAddresses) { return _to SetBCCListArray(names, addresses, numAddresses); } \
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedAuthor(nsAString & aMime2DecodedAuthor) { return _to GetMime2DecodedAuthor(aMime2DecodedAuthor); } \
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedSubject(nsAString & aMime2DecodedSubject) { return _to GetMime2DecodedSubject(aMime2DecodedSubject); } \
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedRecipients(nsAString & aMime2DecodedRecipients) { return _to GetMime2DecodedRecipients(aMime2DecodedRecipients); } \
  NS_SCRIPTABLE NS_IMETHOD GetAuthorCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) { return _to GetAuthorCollationKey(aCount, aKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetSubjectCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) { return _to GetSubjectCollationKey(aCount, aKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetRecipientsCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) { return _to GetRecipientsCollationKey(aCount, aKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) { return _to GetCharset(aCharset); } \
  NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset) { return _to SetCharset(aCharset); } \
  NS_SCRIPTABLE NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) { return _to GetLabel(aLabel); } \
  NS_SCRIPTABLE NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) { return _to SetLabel(aLabel); } \
  NS_SCRIPTABLE NS_IMETHOD GetAccountKey(char * *aAccountKey) { return _to GetAccountKey(aAccountKey); } \
  NS_SCRIPTABLE NS_IMETHOD SetAccountKey(const char * aAccountKey) { return _to SetAccountKey(aAccountKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetFolder(nsIMsgFolder * *aFolder) { return _to GetFolder(aFolder); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyEnumerator(nsIUTF8StringEnumerator * *aPropertyEnumerator) { return _to GetPropertyEnumerator(aPropertyEnumerator); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIMSGDBHDR(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetProperty(const char * propertyName, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(propertyName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetProperty(const char * propertyName, const nsAString & propertyStr) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, propertyStr); } \
  NS_SCRIPTABLE NS_IMETHOD SetStringProperty(const char * propertyName, const char * propertyValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStringProperty(propertyName, propertyValue); } \
  NS_SCRIPTABLE NS_IMETHOD GetStringProperty(const char * propertyName, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringProperty(propertyName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetUint32Property(const char * propertyName, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUint32Property(propertyName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetUint32Property(const char * propertyName, PRUint32 propertyVal) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUint32Property(propertyName, propertyVal); } \
  NS_SCRIPTABLE NS_IMETHOD GetIsRead(bool *aIsRead) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsRead(aIsRead); } \
  NS_SCRIPTABLE NS_IMETHOD GetIsFlagged(bool *aIsFlagged) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFlagged(aIsFlagged); } \
  NS_SCRIPTABLE NS_IMETHOD GetIsKilled(bool *aIsKilled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsKilled(aIsKilled); } \
  NS_SCRIPTABLE NS_IMETHOD MarkRead(bool read) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkRead(read); } \
  NS_SCRIPTABLE NS_IMETHOD MarkFlagged(bool flagged) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkFlagged(flagged); } \
  NS_SCRIPTABLE NS_IMETHOD MarkHasAttachments(bool hasAttachments) { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkHasAttachments(hasAttachments); } \
  NS_SCRIPTABLE NS_IMETHOD GetPriority(nsMsgPriorityValue *aPriority) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPriority(aPriority); } \
  NS_SCRIPTABLE NS_IMETHOD SetPriority(nsMsgPriorityValue aPriority) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPriority(aPriority); } \
  NS_SCRIPTABLE NS_IMETHOD SetPriorityString(const char * priority) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPriorityString(priority); } \
  NS_SCRIPTABLE NS_IMETHOD GetFlags(PRUint32 *aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFlags(aFlags); } \
  NS_SCRIPTABLE NS_IMETHOD SetFlags(PRUint32 aFlags) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFlags(aFlags); } \
  NS_SCRIPTABLE NS_IMETHOD OrFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OrFlags(flags, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD AndFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->AndFlags(flags, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetThreadId(nsMsgKey *aThreadId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadId(aThreadId); } \
  NS_SCRIPTABLE NS_IMETHOD SetThreadId(nsMsgKey aThreadId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadId(aThreadId); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageKey(nsMsgKey *aMessageKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageKey(aMessageKey); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageKey(nsMsgKey aMessageKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageKey(aMessageKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetThreadParent(nsMsgKey *aThreadParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadParent(aThreadParent); } \
  NS_SCRIPTABLE NS_IMETHOD SetThreadParent(nsMsgKey aThreadParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadParent(aThreadParent); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageSize(PRUint32 *aMessageSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageSize(aMessageSize); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageSize(PRUint32 aMessageSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageSize(aMessageSize); } \
  NS_SCRIPTABLE NS_IMETHOD GetLineCount(PRUint32 *aLineCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineCount(aLineCount); } \
  NS_SCRIPTABLE NS_IMETHOD SetLineCount(PRUint32 aLineCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLineCount(aLineCount); } \
  NS_SCRIPTABLE NS_IMETHOD GetStatusOffset(PRUint32 *aStatusOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusOffset(aStatusOffset); } \
  NS_SCRIPTABLE NS_IMETHOD SetStatusOffset(PRUint32 aStatusOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatusOffset(aStatusOffset); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageOffset(PRUint64 *aMessageOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageOffset(aMessageOffset); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageOffset(PRUint64 aMessageOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageOffset(aMessageOffset); } \
  NS_SCRIPTABLE NS_IMETHOD GetOfflineMessageSize(PRUint32 *aOfflineMessageSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOfflineMessageSize(aOfflineMessageSize); } \
  NS_SCRIPTABLE NS_IMETHOD SetOfflineMessageSize(PRUint32 aOfflineMessageSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOfflineMessageSize(aOfflineMessageSize); } \
  NS_SCRIPTABLE NS_IMETHOD GetDate(PRTime *aDate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDate(aDate); } \
  NS_SCRIPTABLE NS_IMETHOD SetDate(PRTime aDate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDate(aDate); } \
  NS_SCRIPTABLE NS_IMETHOD GetDateInSeconds(PRUint32 *aDateInSeconds) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDateInSeconds(aDateInSeconds); } \
  NS_SCRIPTABLE NS_IMETHOD GetMessageId(char * *aMessageId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageId(aMessageId); } \
  NS_SCRIPTABLE NS_IMETHOD SetMessageId(const char * aMessageId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMessageId(aMessageId); } \
  NS_SCRIPTABLE NS_IMETHOD GetCcList(char * *aCcList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCcList(aCcList); } \
  NS_SCRIPTABLE NS_IMETHOD SetCcList(const char * aCcList) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCcList(aCcList); } \
  NS_SCRIPTABLE NS_IMETHOD GetBccList(char * *aBccList) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBccList(aBccList); } \
  NS_SCRIPTABLE NS_IMETHOD SetBccList(const char * aBccList) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBccList(aBccList); } \
  NS_SCRIPTABLE NS_IMETHOD GetAuthor(char * *aAuthor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthor(aAuthor); } \
  NS_SCRIPTABLE NS_IMETHOD SetAuthor(const char * aAuthor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAuthor(aAuthor); } \
  NS_SCRIPTABLE NS_IMETHOD GetSubject(char * *aSubject) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubject(aSubject); } \
  NS_SCRIPTABLE NS_IMETHOD SetSubject(const char * aSubject) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSubject(aSubject); } \
  NS_SCRIPTABLE NS_IMETHOD GetRecipients(char * *aRecipients) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecipients(aRecipients); } \
  NS_SCRIPTABLE NS_IMETHOD SetRecipients(const char * aRecipients) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRecipients(aRecipients); } \
  NS_SCRIPTABLE NS_IMETHOD SetReferences(const char * references) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReferences(references); } \
  NS_SCRIPTABLE NS_IMETHOD GetNumReferences(PRUint16 *aNumReferences) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumReferences(aNumReferences); } \
  NS_SCRIPTABLE NS_IMETHOD GetStringReference(PRInt32 refNum, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringReference(refNum, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD SetRecipientsArray(const char * names, const char * addresses, PRUint32 numAddresses) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRecipientsArray(names, addresses, numAddresses); } \
  NS_SCRIPTABLE NS_IMETHOD SetCCListArray(const char * names, const char * addresses, PRUint32 numAddresses) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCCListArray(names, addresses, numAddresses); } \
  NS_SCRIPTABLE NS_IMETHOD SetBCCListArray(const char * names, const char * addresses, PRUint32 numAddresses) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBCCListArray(names, addresses, numAddresses); } \
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedAuthor(nsAString & aMime2DecodedAuthor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMime2DecodedAuthor(aMime2DecodedAuthor); } \
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedSubject(nsAString & aMime2DecodedSubject) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMime2DecodedSubject(aMime2DecodedSubject); } \
  NS_SCRIPTABLE NS_IMETHOD GetMime2DecodedRecipients(nsAString & aMime2DecodedRecipients) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMime2DecodedRecipients(aMime2DecodedRecipients); } \
  NS_SCRIPTABLE NS_IMETHOD GetAuthorCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAuthorCollationKey(aCount, aKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetSubjectCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSubjectCollationKey(aCount, aKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetRecipientsCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecipientsCollationKey(aCount, aKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
  NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharset(aCharset); } \
  NS_SCRIPTABLE NS_IMETHOD GetLabel(nsMsgLabelValue *aLabel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
  NS_SCRIPTABLE NS_IMETHOD SetLabel(nsMsgLabelValue aLabel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLabel(aLabel); } \
  NS_SCRIPTABLE NS_IMETHOD GetAccountKey(char * *aAccountKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccountKey(aAccountKey); } \
  NS_SCRIPTABLE NS_IMETHOD SetAccountKey(const char * aAccountKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccountKey(aAccountKey); } \
  NS_SCRIPTABLE NS_IMETHOD GetFolder(nsIMsgFolder * *aFolder) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFolder(aFolder); } \
  NS_SCRIPTABLE NS_IMETHOD GetPropertyEnumerator(nsIUTF8StringEnumerator * *aPropertyEnumerator) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyEnumerator(aPropertyEnumerator); } 

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

/* Header file */
class nsMsgDBHdr : public nsIMsgDBHdr
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIMSGDBHDR

  nsMsgDBHdr();

private:
  ~nsMsgDBHdr();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsMsgDBHdr, nsIMsgDBHdr)

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

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

/* AString getProperty (in string propertyName); */
NS_IMETHODIMP nsMsgDBHdr::GetProperty(const char * propertyName, nsAString & _retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setProperty (in string propertyName, in AString propertyStr); */
NS_IMETHODIMP nsMsgDBHdr::SetProperty(const char * propertyName, const nsAString & propertyStr)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setStringProperty (in string propertyName, in string propertyValue); */
NS_IMETHODIMP nsMsgDBHdr::SetStringProperty(const char * propertyName, const char * propertyValue)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* string getStringProperty (in string propertyName); */
NS_IMETHODIMP nsMsgDBHdr::GetStringProperty(const char * propertyName, char * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long getUint32Property (in string propertyName); */
NS_IMETHODIMP nsMsgDBHdr::GetUint32Property(const char * propertyName, PRUint32 *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setUint32Property (in string propertyName, in unsigned long propertyVal); */
NS_IMETHODIMP nsMsgDBHdr::SetUint32Property(const char * propertyName, PRUint32 propertyVal)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isRead; */
NS_IMETHODIMP nsMsgDBHdr::GetIsRead(bool *aIsRead)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isFlagged; */
NS_IMETHODIMP nsMsgDBHdr::GetIsFlagged(bool *aIsFlagged)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean isKilled; */
NS_IMETHODIMP nsMsgDBHdr::GetIsKilled(bool *aIsKilled)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void markRead (in boolean read); */
NS_IMETHODIMP nsMsgDBHdr::MarkRead(bool read)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void markFlagged (in boolean flagged); */
NS_IMETHODIMP nsMsgDBHdr::MarkFlagged(bool flagged)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void markHasAttachments (in boolean hasAttachments); */
NS_IMETHODIMP nsMsgDBHdr::MarkHasAttachments(bool hasAttachments)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgPriorityValue priority; */
NS_IMETHODIMP nsMsgDBHdr::GetPriority(nsMsgPriorityValue *aPriority)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetPriority(nsMsgPriorityValue aPriority)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setPriorityString (in string priority); */
NS_IMETHODIMP nsMsgDBHdr::SetPriorityString(const char * priority)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long flags; */
NS_IMETHODIMP nsMsgDBHdr::GetFlags(PRUint32 *aFlags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetFlags(PRUint32 aFlags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long OrFlags (in unsigned long flags); */
NS_IMETHODIMP nsMsgDBHdr::OrFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* unsigned long AndFlags (in unsigned long flags); */
NS_IMETHODIMP nsMsgDBHdr::AndFlags(PRUint32 flags, PRUint32 *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgKey threadId; */
NS_IMETHODIMP nsMsgDBHdr::GetThreadId(nsMsgKey *aThreadId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetThreadId(nsMsgKey aThreadId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgKey messageKey; */
NS_IMETHODIMP nsMsgDBHdr::GetMessageKey(nsMsgKey *aMessageKey)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetMessageKey(nsMsgKey aMessageKey)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgKey threadParent; */
NS_IMETHODIMP nsMsgDBHdr::GetThreadParent(nsMsgKey *aThreadParent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetThreadParent(nsMsgKey aThreadParent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long messageSize; */
NS_IMETHODIMP nsMsgDBHdr::GetMessageSize(PRUint32 *aMessageSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetMessageSize(PRUint32 aMessageSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long lineCount; */
NS_IMETHODIMP nsMsgDBHdr::GetLineCount(PRUint32 *aLineCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetLineCount(PRUint32 aLineCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long statusOffset; */
NS_IMETHODIMP nsMsgDBHdr::GetStatusOffset(PRUint32 *aStatusOffset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetStatusOffset(PRUint32 aStatusOffset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long long messageOffset; */
NS_IMETHODIMP nsMsgDBHdr::GetMessageOffset(PRUint64 *aMessageOffset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetMessageOffset(PRUint64 aMessageOffset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long offlineMessageSize; */
NS_IMETHODIMP nsMsgDBHdr::GetOfflineMessageSize(PRUint32 *aOfflineMessageSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetOfflineMessageSize(PRUint32 aOfflineMessageSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute PRTime date; */
NS_IMETHODIMP nsMsgDBHdr::GetDate(PRTime *aDate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetDate(PRTime aDate)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long dateInSeconds; */
NS_IMETHODIMP nsMsgDBHdr::GetDateInSeconds(PRUint32 *aDateInSeconds)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string messageId; */
NS_IMETHODIMP nsMsgDBHdr::GetMessageId(char * *aMessageId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetMessageId(const char * aMessageId)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string ccList; */
NS_IMETHODIMP nsMsgDBHdr::GetCcList(char * *aCcList)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetCcList(const char * aCcList)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string bccList; */
NS_IMETHODIMP nsMsgDBHdr::GetBccList(char * *aBccList)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetBccList(const char * aBccList)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string author; */
NS_IMETHODIMP nsMsgDBHdr::GetAuthor(char * *aAuthor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetAuthor(const char * aAuthor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string subject; */
NS_IMETHODIMP nsMsgDBHdr::GetSubject(char * *aSubject)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetSubject(const char * aSubject)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string recipients; */
NS_IMETHODIMP nsMsgDBHdr::GetRecipients(char * *aRecipients)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetRecipients(const char * aRecipients)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setReferences (in string references); */
NS_IMETHODIMP nsMsgDBHdr::SetReferences(const char * references)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned short numReferences; */
NS_IMETHODIMP nsMsgDBHdr::GetNumReferences(PRUint16 *aNumReferences)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* ACString getStringReference (in long refNum); */
NS_IMETHODIMP nsMsgDBHdr::GetStringReference(PRInt32 refNum, nsACString & _retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setRecipientsArray (in string names, in string addresses, in unsigned long numAddresses); */
NS_IMETHODIMP nsMsgDBHdr::SetRecipientsArray(const char * names, const char * addresses, PRUint32 numAddresses)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setCCListArray (in string names, in string addresses, in unsigned long numAddresses); */
NS_IMETHODIMP nsMsgDBHdr::SetCCListArray(const char * names, const char * addresses, PRUint32 numAddresses)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setBCCListArray (in string names, in string addresses, in unsigned long numAddresses); */
NS_IMETHODIMP nsMsgDBHdr::SetBCCListArray(const char * names, const char * addresses, PRUint32 numAddresses)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString mime2DecodedAuthor; */
NS_IMETHODIMP nsMsgDBHdr::GetMime2DecodedAuthor(nsAString & aMime2DecodedAuthor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString mime2DecodedSubject; */
NS_IMETHODIMP nsMsgDBHdr::GetMime2DecodedSubject(nsAString & aMime2DecodedSubject)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString mime2DecodedRecipients; */
NS_IMETHODIMP nsMsgDBHdr::GetMime2DecodedRecipients(nsAString & aMime2DecodedRecipients)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getAuthorCollationKey (out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
NS_IMETHODIMP nsMsgDBHdr::GetAuthorCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getSubjectCollationKey (out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
NS_IMETHODIMP nsMsgDBHdr::GetSubjectCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getRecipientsCollationKey (out unsigned long aCount, [array, size_is (aCount)] out octet aKey); */
NS_IMETHODIMP nsMsgDBHdr::GetRecipientsCollationKey(PRUint32 *aCount NS_OUTPARAM, PRUint8 **aKey NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string Charset; */
NS_IMETHODIMP nsMsgDBHdr::GetCharset(char * *aCharset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetCharset(const char * aCharset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsMsgLabelValue label; */
NS_IMETHODIMP nsMsgDBHdr::GetLabel(nsMsgLabelValue *aLabel)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetLabel(nsMsgLabelValue aLabel)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute string accountKey; */
NS_IMETHODIMP nsMsgDBHdr::GetAccountKey(char * *aAccountKey)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsMsgDBHdr::SetAccountKey(const char * aAccountKey)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIMsgFolder folder; */
NS_IMETHODIMP nsMsgDBHdr::GetFolder(nsIMsgFolder * *aFolder)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIUTF8StringEnumerator propertyEnumerator; */
NS_IMETHODIMP nsMsgDBHdr::GetPropertyEnumerator(nsIUTF8StringEnumerator * *aPropertyEnumerator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIMsgHdr_h__ */