How to edit filetypes rules file with these specific filetypes

Jules Field MailScanner at ecs.soton.ac.uk
Tue Jun 15 22:02:46 IST 2010


You don't have to specify both of the "file" and "file -i" output 
substrings in each line, you only need to specify one of them.

But otherwise, your rules look okay to me. Feed some test messages 
through and watch the logs.

Hope that helps,
Jules.

On 15/06/2010 15:39, Peter Ong wrote:
> Hello Everyone,
>
> Another filetype question. But first, thanks to everyone for helping me with my previous ignorances. :-)
>
> Let me show you where I am confused:
>
> [root at gateway005.inf BF43C572C4.AE33A]# ls
> message  msg-19254-23.txt
>
> [root at gateway005.inf BF43C572C4.AE33A]# file message
> message: RFC 822 mail text
>
> [root at gateway005.inf BF43C572C4.AE33A]# file -i msg-19254-23.txt
> msg-19254-23.txt: text/plain; charset=iso-8859-1
>
> Here is an excerpt of our current filetypes rules file:
> allow   text    text    -       -
> allow   text    text/x-mail     -       -
> allow   data    text/x-mail     -       -
> allow   text    text/plain      -       -
> allow   data    text/plain      -       -
> allow   text    message/rfc822  -       -
> allow   text            -                       -
>
> How do I enter this in the filetype rules file?
>
> Do I enter it this way:
> allow<tab>RFC 822 mail text<tab>text/plain; charset=iso-8859-1<tab>-<tab>-
>
> Thank you.
>
> p
>    

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list