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