168349Sobrien
268349Sobrien#------------------------------------------------------------------------------
3298192Sdelphij# $File: sendmail,v 1.8 2015/11/11 15:27:03 christos Exp $
468349Sobrien# sendmail:  file(1) magic for sendmail config files
568349Sobrien#
668349Sobrien# XXX - byte order?
768349Sobrien#
8298192Sdelphij# Update: Joerg Jenderek 
9298192Sdelphij# GRR: this test is too general as it catches also
10298192Sdelphij# READ.ME.FIRST.AWP Sendmail frozen configuration
11298192Sdelphij# - version ====|====|====|====|====|====|====|====|====|====|====|====|===
12298192Sdelphij# Email_23_f217153422.ts Sendmail frozen configuration
13298192Sdelphij# - version \330jK\354
14298192Sdelphij0	byte	046	  
15298192Sdelphij# http://www.sendmail.com/sm/open_source/docs/older_release_notes/
16298192Sdelphij# freezed configuration file (dbm format?) created from sendmal.cf with -bz
17298192Sdelphij# by older sendmail. til version 8.6 support for frozen configuration files is removed
18298192Sdelphij# valid version numbers look like "7.14.4" and should be simliar to output of commands
19298192Sdelphij# "sendmail -d0 -bt < /dev/null |grep -i Version" or "egrep '^DZ' /etc/sendmail.cf" 
20298192Sdelphij>16	regex/s	=^[0-78][0-9.]{4}	Sendmail frozen configuration
21298192Sdelphij# normally only /etc/sendmail.fc or /var/adm/sendmail/sendmail.fc
22298192Sdelphij!:ext fc
23298192Sdelphij>>16	string	>\0			- version %s
24298192Sdelphij0	short	0x271c	  
25298192Sdelphij# look for valid version number
26298192Sdelphij>16	regex/s	=^[0-78][0-9.]{4}	Sendmail frozen configuration
27298192Sdelphij!:ext fc
28298192Sdelphij>>16	string	>\0			- version %s
29103373Sobrien
30103373Sobrien#------------------------------------------------------------------------------
31103373Sobrien# sendmail:  file(1) magic for sendmail m4(1) files
32103373Sobrien#
33103373Sobrien# From Hendrik Scholz <hendrik@scholz.net>
34103373Sobrien# i.e. files in /usr/share/sendmail/cf/
35103373Sobrien#
36103373Sobrien0   string  divert(-1)\n    sendmail m4 text file
37103373Sobrien
38