mmdf 1.4 KB

12345678910111213141516171819202122232425
  1. #------------------------------------------------------------------------------
  2. # $File: mmdf,v 1.7 2024/02/29 03:40:37 christos Exp $
  3. # mmdf: file(1) magic for MMDF mail files
  4. # Update: Joerg Jenderek Feb 2024
  5. # URL: https://en.wikipedia.org/wiki/MMDF
  6. # Reference: https://docs.oracle.com/cd/E88353_01/html/E37852/mmdf-5.html
  7. # Note: Multi-channel Memorandum Distribution Facility (MMDF) mailbox format is a legacy variant of mbox format
  8. # (handled by ./mail.news); each message is surrounded by lines containing 4 control-A
  9. #
  10. 0 string \001\001\001\001
  11. # GRR: MMDF mailbox (strength=70=70+0 ./mmdf) after D64 Image (strength=70=70+0 ./c64) Targa image data (strength=70=110-40 ./images)
  12. # and before "PDP-11 UNIX/RT ldp" (strength=50=50+0 ./pdp)
  13. #!:strength +0
  14. # skip few Commodore disc Image where first content are initialized with ^A like "The Great Gianna Sisters.d64"
  15. # by looking for following valid line terminator (10=0Ah~LineFeed or 13=0Dh~CarriageReturn)
  16. #>4 ubyte&0xF8 =0x08 MMDF mailbox
  17. # or by looking for MBOX Mailbox (/mail.news) characteristic like:
  18. # https://github.com/dfandrich/oldmailconvert/blob/master/testdata/uupc.input.1
  19. >5 search/610/b From\ MMDF mailbox
  20. #!:mime application/octet-stream
  21. !:mime message/x-mmdf
  22. # https://github.com/dfandrich/oldmailconvert/blob/master/testdata/maillog.expected.2
  23. # but default mailbox name is like /usr/spool/mail/username
  24. !:ext /mmdf