xref: /freebsd/contrib/file/magic/Magdir/mail.news (revision 4e99f45480598189d49d45a825533a6c9e12f02c)
1#------------------------------------------------------------------------------
2# $File: mail.news,v 1.25 2019/06/21 20:06:05 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		Article 	saved news text
28!:mime	message/news
29# Reference:	http://quimby.gnus.org/notes/BABYL
30# Update:	Joerg Jenderek
31# Note:		used by Rmail in Emacs version 22 and before
32#		is not text because of characters like Control-L Control-_
330	string/b		BABYL\ OPTIONS:	Emacs RMAIL
34#0	string/t		BABYL		Emacs RMAIL text
35# https://reposcope.com/mimetype/message/x-gnu-rmail
36!:mime	message/x-gnu-rmail
37# ~/RMAIL
38!:ext	/
390	string/t		Received:	RFC 822 mail text
40!:mime	message/rfc822
410	string/t		MIME-Version:	MIME entity text
42#0	string/t		Content-	MIME entity text
43
44# TNEF files...
450	lelong		0x223E9F78	Transport Neutral Encapsulation Format
46!:mime	application/vnd.ms-tnef
47
48# From: Kevin Sullivan <ksulliva@psc.edu>
490	string		*mbx*		MBX mail folder
50
51# From: Simon Matter <simon.matter@invoca.ch>
520	string		\241\002\213\015skiplist\ file\0\0\0	Cyrus skiplist DB
530	string		\241\002\213\015twoskip\ file\0\0\0\0	Cyrus twoskip DB
54
55# JAM(mbp) Fidonet message area databases
56# JHR file
570	string	JAM\0			JAM message area header file
58>12	leshort >0			(%d messages)
59
60# Squish Fidonet message area databases
61# SQD file (requires at least one message in the area)
62# XXX: Weak magic
63#256	leshort	0xAFAE4453		Squish message area data file
64#>4	leshort	>0			(%d messages)
65
66#0	string		\<!--\ MHonArc		text/html; x-type=mhonarc
67
68# Cyrus: file(1) magic for compiled Cyrus sieve scripts
69# URL: https://www.cyrusimap.org/docs/cyrus-imapd/2.4.6/internal/bytecode.php
70# URL: http://git.cyrusimap.org/cyrus-imapd/tree/sieve/bytecode.h?h=master
71# From: Philipp Hahn <hahn@univention.de>
72
73# Compiled Cyrus sieve script
740       string CyrSBytecode     Cyrus sieve bytecode data,
75>12     belong =1       version 1, big-endian
76>12     lelong =1       version 1, little-endian
77>12     belong x        version %d, network-endian
78