xref: /freebsd/contrib/file/magic/Magdir/mail.news (revision 9fc5c47f)
1b6cee71dSXin LI#------------------------------------------------------------------------------
2*9fc5c47fSXin LI# $File: mail.news,v 1.23 2015/06/29 14:44:26 christos Exp $
3b6cee71dSXin LI# mail.news:  file(1) magic for mail and news
4b6cee71dSXin LI#
5b6cee71dSXin LI# Unfortunately, saved netnews also has From line added in some news software.
6b6cee71dSXin LI#0	string		From 		mail text
7b6cee71dSXin LI0	string/t		Relay-Version: 	old news text
8b6cee71dSXin LI!:mime	message/rfc822
9b6cee71dSXin LI0	string/t		#!\ rnews	batched news text
10b6cee71dSXin LI!:mime	message/rfc822
11b6cee71dSXin LI0	string/t		N#!\ rnews	mailed, batched news text
12b6cee71dSXin LI!:mime	message/rfc822
13b6cee71dSXin LI0	string/t		Forward\ to 	mail forwarding text
14b6cee71dSXin LI!:mime	message/rfc822
15b6cee71dSXin LI0	string/t		Pipe\ to 	mail piping text
16b6cee71dSXin LI!:mime	message/rfc822
17b6cee71dSXin LI0	string/tc		delivered-to:	SMTP mail text
18b6cee71dSXin LI!:mime	message/rfc822
19b6cee71dSXin LI0	string/tc		return-path:	SMTP mail text
20b6cee71dSXin LI!:mime	message/rfc822
21b6cee71dSXin LI0	string/t		Path:		news text
22b6cee71dSXin LI!:mime	message/news
23b6cee71dSXin LI0	string/t		Xref:		news text
24b6cee71dSXin LI!:mime	message/news
25b6cee71dSXin LI0	string/t		From:		news or mail text
26b6cee71dSXin LI!:mime	message/rfc822
27b6cee71dSXin LI0	string/t		Article 	saved news text
28b6cee71dSXin LI!:mime	message/news
29b6cee71dSXin LI0	string/t		BABYL		Emacs RMAIL text
30b6cee71dSXin LI0	string/t		Received:	RFC 822 mail text
31b6cee71dSXin LI!:mime	message/rfc822
32b6cee71dSXin LI0	string/t		MIME-Version:	MIME entity text
33b6cee71dSXin LI#0	string/t		Content-	MIME entity text
34b6cee71dSXin LI
35b6cee71dSXin LI# TNEF files...
36b6cee71dSXin LI0	lelong		0x223E9F78	Transport Neutral Encapsulation Format
37b6cee71dSXin LI!:mime	application/vnd.ms-tnef
38b6cee71dSXin LI
39b6cee71dSXin LI# From: Kevin Sullivan <ksulliva@psc.edu>
40b6cee71dSXin LI0	string		*mbx*		MBX mail folder
41b6cee71dSXin LI
42b6cee71dSXin LI# From: Simon Matter <simon.matter@invoca.ch>
43b6cee71dSXin LI0	string		\241\002\213\015skiplist\ file\0\0\0	Cyrus skiplist DB
44*9fc5c47fSXin LI0	string		\241\002\213\015twoskip\ file\0\0\0\0	Cyrus twoskip DB
45b6cee71dSXin LI
46b6cee71dSXin LI# JAM(mbp) Fidonet message area databases
47b6cee71dSXin LI# JHR file
48b6cee71dSXin LI0	string	JAM\0			JAM message area header file
49b6cee71dSXin LI>12	leshort >0			(%d messages)
50b6cee71dSXin LI
51b6cee71dSXin LI# Squish Fidonet message area databases
52b6cee71dSXin LI# SQD file (requires at least one message in the area)
53b6cee71dSXin LI# XXX: Weak magic
54b6cee71dSXin LI#256	leshort	0xAFAE4453		Squish message area data file
55b6cee71dSXin LI#>4	leshort	>0			(%d messages)
56b6cee71dSXin LI
57b6cee71dSXin LI#0	string		\<!--\ MHonArc		text/html; x-type=mhonarc
58b6cee71dSXin LI
59b6cee71dSXin LI# Cyrus: file(1) magic for compiled Cyrus sieve scripts
60b6cee71dSXin LI# URL: http://www.cyrusimap.org/docs/cyrus-imapd/2.4.6/internal/bytecode.php
61b6cee71dSXin LI# URL: http://git.cyrusimap.org/cyrus-imapd/tree/sieve/bytecode.h?h=master
62b6cee71dSXin LI# From: Philipp Hahn <hahn@univention.de>
63b6cee71dSXin LI
64b6cee71dSXin LI# Compiled Cyrus sieve script
65b6cee71dSXin LI0       string CyrSBytecode     Cyrus sieve bytecode data,
66b6cee71dSXin LI>12     belong =1       version 1, big-endian
67b6cee71dSXin LI>12     lelong =1       version 1, little-endian
68b6cee71dSXin LI>12     belong x        version %d, network-endian
69