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