mail.news 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. #------------------------------------------------------------------------------
  2. # $File: mail.news,v 1.30 2022/10/31 13:22:26 christos Exp $
  3. # mail.news: file(1) magic for mail and news
  4. #
  5. # Unfortunately, saved netnews also has From line added in some news software.
  6. #0 string From mail text
  7. 0 string/t Relay-Version: old news text
  8. !:mime message/rfc822
  9. 0 string/t #!\ rnews batched news text
  10. !:mime message/rfc822
  11. 0 string/t N#!\ rnews mailed, batched news text
  12. !:mime message/rfc822
  13. 0 string/t Forward\ to mail forwarding text
  14. !:mime message/rfc822
  15. 0 string/t Pipe\ to mail piping text
  16. !:mime message/rfc822
  17. 0 string/tc delivered-to: SMTP mail text
  18. !:mime message/rfc822
  19. 0 string/tc return-path: SMTP mail text
  20. !:mime message/rfc822
  21. 0 string/t Path: news text
  22. !:mime message/news
  23. 0 string/t Xref: news text
  24. !:mime message/news
  25. 0 string/t From: news or mail text
  26. !:mime message/rfc822
  27. 0 string/t Date: news or mail text
  28. !:mime message/rfc822
  29. 0 string/t Article saved news text
  30. !:mime message/news
  31. # Reference: http://quimby.gnus.org/notes/BABYL
  32. # Update: Joerg Jenderek
  33. # Note: used by Rmail in Emacs version 22 and before
  34. # is not text because of characters like Control-L Control-_
  35. 0 string/b BABYL\ OPTIONS: Emacs RMAIL
  36. #0 string/t BABYL Emacs RMAIL text
  37. # https://reposcope.com/mimetype/message/x-gnu-rmail
  38. !:mime message/x-gnu-rmail
  39. # ~/RMAIL
  40. !:ext /
  41. 0 string/t Received: RFC 822 mail text
  42. !:mime message/rfc822
  43. 0 string/t MIME-Version: MIME entity text
  44. #0 string/t Content- MIME entity text
  45. # TNEF files...
  46. # URL: http://fileformats.archiveteam.org/wiki/Transport_Neutral_Encapsulation_Format
  47. # https://en.wikipedia.org/wiki/Transport_Neutral_Encapsulation_Format
  48. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/t/tnef.trid.xml
  49. # https://interoperability.blob.core.windows.net/files/MS-OXTNEF/%5bMS-OXTNEF%5d-210817.pdf
  50. # Update: Joerg Jenderek
  51. # Note: moved and merged from ./msdos (version 1.154) there just called "TNEF"
  52. # partly verified by `tnef --list -v -f voice.tnef` and `ytnef -v triples.tnef`
  53. # TNEF magic From "Joomy" <joomy@se-ed.net>
  54. # TNEF_SIGNATURE
  55. 0 lelong 0x223E9F78 Transport Neutral Encapsulation Format (TNEF)
  56. !:mime application/vnd.ms-tnef
  57. # winmail.dat or win.dat by Microsoft Outlook
  58. !:ext tnef/dat
  59. # https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxtnef/7fdb64ee-7f63-4d95-9af1-c672e7475c3a
  60. # LegacyKey
  61. #>4 uleshort x \b, key %#4.4x
  62. # attrLevelMessage; Level where attribute applies like: 1~attrLevelMessage 2~attrLevelAttachment
  63. >6 ubyte !1 \b, 1st level %#2.2x
  64. # other ID (like 02900000h) or TnefVersion ID (idTnefVersion=06900800h)
  65. >7 ubelong !0x06900800 \b, 1st id %#8.8x
  66. >7 ubelong =0x06900800
  67. # TnefVersion length like: 4
  68. >>11 ulelong !4 \b, TnefVersion length %x
  69. # TNEFVersionData; TnefVersion data like: 00010000h
  70. >>15 ulelong !0x00010000h \b, version %#8.8x
  71. # Checksum like: 1
  72. >>19 uleshort !1 \b, checksum %#4.4x
  73. # attrLevelMessage; level of attOemCodepage like: 1
  74. >>21 ubyte !1 \b, level %#2.2x
  75. # idOEMCodePage; OEMCodePage ID like: 07900600h
  76. >>22 ubelong =0x07900600 \b, OEM codepage
  77. # OEMCodePage length like: 8
  78. >>>26 ulelong =8
  79. # OEMCodePageData; PrimaryCodePage like: 1251 1252
  80. >>>>30 ulelong x %u
  81. # OEMCodePageData; SecondaryCodePage; unused and SHOULD contain zero
  82. >>>>34 ulelong !0 and %u
  83. # OEMCodePageData Checksum like: E7h E8h
  84. >>>>38 uleshort x (checksum %#x)
  85. # attrLevelMessage of attMessageClass like: 1
  86. >>40 ubyte !1 \b, level %u
  87. # idMessageClass; ID of attMessageClass like: 08800700h
  88. >>41 ubelong =0x08800700 \b, MessageAttribute
  89. # attMessageClass length like: 16 24 25
  90. #>>>45 ulelong x (length %u)
  91. # attMessageClass data like: "IPM.Microsoft Mail.Note" "IPM.Note.Portada Newseum"
  92. # "IPM.Appointment" "IPM.Note.Microsoft.Voicemail.UM.CA"
  93. >>>45 pstring/l x "%s"
  94. # From: Kevin Sullivan <ksulliva@psc.edu>
  95. 0 string *mbx* MBX mail folder
  96. # From: Simon Matter <simon.matter@invoca.ch>
  97. 0 string \241\002\213\015skiplist\ file\0\0\0 Cyrus skiplist DB
  98. 0 string \241\002\213\015twoskip\ file\0\0\0\0 Cyrus twoskip DB
  99. # JAM(mbp) Fidonet message area databases
  100. # JHR file
  101. 0 string JAM\0 JAM message area header file
  102. >12 leshort >0 (%d messages)
  103. # Squish Fidonet message area databases
  104. # SQD file (requires at least one message in the area)
  105. # XXX: Weak magic
  106. #256 leshort 0xAFAE4453 Squish message area data file
  107. #>4 leshort >0 (%d messages)
  108. #0 string \<!--\ MHonArc text/html; x-type=mhonarc
  109. # Cyrus: file(1) magic for compiled Cyrus sieve scripts
  110. # URL: https://www.cyrusimap.org/docs/cyrus-imapd/2.4.6/internal/bytecode.php
  111. # URL: http://git.cyrusimap.org/cyrus-imapd/tree/sieve/bytecode.h?h=master
  112. # From: Philipp Hahn <hahn@univention.de>
  113. # Compiled Cyrus sieve script
  114. 0 string CyrSBytecode Cyrus sieve bytecode data,
  115. >12 belong =1 version 1, big-endian
  116. >12 lelong =1 version 1, little-endian
  117. >12 belong x version %d, network-endian
  118. # Dovecot mail server, version 2.2 and later.
  119. # Dovecot mailing list: dovecot@dovecot.org
  120. # File format spec: https://wiki.dovecot.org/Design/Dcrypt/#File_format
  121. # From: Stephen Gildea
  122. 0 string CRYPTED\003\007 Dovecot encrypted message
  123. >9 byte x \b, dcrypt version %d