Beta release: MailScanner 4.56.5 --- please test

Chan Min Wai dcmwai at pl.jaring.my
Sat Sep 23 16:17:39 IST 2006


Dear Julian Field,

Thank for the fine software. Do you have any comment on this feature/bugs?


IANAP, but you might want to try creating a file called
"/usr/bin/bin/filei", with permissions set to 755, that has the
following in it:

/usr/bin/file -i $1

and then change the line in MailScanner.conf that says:
File Command = /usr/bin/file
to
File Command = /usr/bin/filei

or use (don't know if it will work):
File Command = /usr/bin/file -i

Good luck...

Chan Min Wai wrote:

> Hello All,
>
> I know I should ask the question here but the result show from the
> search don't seem to show much that is useful. So I hope I can get some
> help here.
>
> I'm using file to determine the file type, It work well until one day
> where tread some UTF-8 Signature TXT to be DOS executable (COM) files.
>
> e.g
> # file msg-30776-13.txt
> msg-30776-13.txt: DOS executable (COM)
>
> However, if I put an extra flag "-i" on cli It work well.
>
> # file -i msg-30776-13.txt
> msg-30776-13.txt: text/plain; charset=utf-8
>
> # file --version
> file-4.17
> magic file from /usr/share/misc/file/magic
>
> Any hints on how to make change on Mailscanner.conf?
>
> Please help.
>
> P.s I can't seem to attach the text files here for the same reason...
>
> Regards,
> Chan Min Wai


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20060923/658ca234/attachment.html


More information about the MailScanner mailing list