xref: /dragonfly/contrib/file/magic/Magdir/mail.news (revision cfd1aba3)
1#------------------------------------------------------------------------------
2# $File: mail.news,v 1.20 2011/12/08 12:12:46 rrt 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/t		Delivered-To:	SMTP mail text
18!:mime	message/rfc822
190	string/t		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
290	string/t		BABYL		Emacs RMAIL text
300	string/t		Received:	RFC 822 mail text
31!:mime	message/rfc822
320	string/t		MIME-Version:	MIME entity text
33#0	string/t		Content-	MIME entity text
34
35# TNEF files...
360	lelong		0x223E9F78	Transport Neutral Encapsulation Format
37
38# From: Kevin Sullivan <ksulliva@psc.edu>
390	string		*mbx*		MBX mail folder
40
41# From: Simon Matter <simon.matter@invoca.ch>
420	string		\241\002\213\015skiplist\ file\0\0\0	Cyrus skiplist DB
43
44# JAM(mbp) Fidonet message area databases
45# JHR file
460	string	JAM\0			JAM message area header file
47>12	leshort >0			(%d messages)
48
49# Squish Fidonet message area databases
50# SQD file (requires at least one message in the area)
51# XXX: Weak magic
52#256	leshort	0xAFAE4453		Squish message area data file
53#>4	leshort	>0			(%d messages)
54
55#0	string		\<!--\ MHonArc		text/html; x-type=mhonarc
56
57# Cyrus: file(1) magic for compiled Cyrus sieve scripts
58# URL: http://www.cyrusimap.org/docs/cyrus-imapd/2.4.6/internal/bytecode.php
59# URL: http://git.cyrusimap.org/cyrus-imapd/tree/sieve/bytecode.h?h=master
60# From: Philipp Hahn <hahn@univention.de>
61
62# Compiled Cyrus sieve script
630       string CyrSBytecode     Cyrus sieve bytecode data,
64>12     belong =1       version 1, big-endian
65>12     lelong =1       version 1, little-endian
66>12     belong x        version %d, network-endian
67