xref: /freebsd/contrib/file/magic/Magdir/mail.news (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1#------------------------------------------------------------------------------
2# $File: mail.news,v 1.28 2021/09/11 19:20:15 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
70	string/t		Relay-Version: 	old news text
8!:mime	message/rfc822
90	string/t		#!\ rnews	batched news text
10!:mime	message/rfc822
110	string/t		N#!\ rnews	mailed, batched news text
12!:mime	message/rfc822
130	string/t		Forward\ to 	mail forwarding text
14!:mime	message/rfc822
150	string/t		Pipe\ to 	mail piping text
16!:mime	message/rfc822
170	string/tc		delivered-to:	SMTP mail text
18!:mime	message/rfc822
190	string/tc		return-path:	SMTP mail text
20!:mime	message/rfc822
210	string/t		Path:		news text
22!:mime	message/news
230	string/t		Xref:		news text
24!:mime	message/news
250	string/t		From:		news or mail text
26!:mime	message/rfc822
270	string/t		Date:		news or mail text
28!:mime	message/rfc822
290	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-_
350	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	/
410	string/t		Received:	RFC 822 mail text
42!:mime	message/rfc822
430	string/t		MIME-Version:	MIME entity text
44#0	string/t		Content-	MIME entity text
45
46# TNEF files...
470	lelong		0x223E9F78	Transport Neutral Encapsulation Format
48!:mime	application/vnd.ms-tnef
49
50# From: Kevin Sullivan <ksulliva@psc.edu>
510	string		*mbx*		MBX mail folder
52
53# From: Simon Matter <simon.matter@invoca.ch>
540	string		\241\002\213\015skiplist\ file\0\0\0	Cyrus skiplist DB
550	string		\241\002\213\015twoskip\ file\0\0\0\0	Cyrus twoskip DB
56
57# JAM(mbp) Fidonet message area databases
58# JHR file
590	string	JAM\0			JAM message area header file
60>12	leshort >0			(%d messages)
61
62# Squish Fidonet message area databases
63# SQD file (requires at least one message in the area)
64# XXX: Weak magic
65#256	leshort	0xAFAE4453		Squish message area data file
66#>4	leshort	>0			(%d messages)
67
68#0	string		\<!--\ MHonArc		text/html; x-type=mhonarc
69
70# Cyrus: file(1) magic for compiled Cyrus sieve scripts
71# URL: https://www.cyrusimap.org/docs/cyrus-imapd/2.4.6/internal/bytecode.php
72# URL: http://git.cyrusimap.org/cyrus-imapd/tree/sieve/bytecode.h?h=master
73# From: Philipp Hahn <hahn@univention.de>
74
75# Compiled Cyrus sieve script
760       string CyrSBytecode     Cyrus sieve bytecode data,
77>12     belong =1       version 1, big-endian
78>12     lelong =1       version 1, little-endian
79>12     belong x        version %d, network-endian
80
81# Dovecot mail server, version 2.2 and later.
82# Dovecot mailing list: dovecot@dovecot.org
83# File format spec: https://wiki.dovecot.org/Design/Dcrypt/#File_format
84# From: Stephen Gildea
850	string	CRYPTED\003\007		Dovecot encrypted message
86>9	byte	x			\b, dcrypt version %d
87