[OT] Wrong Files type from /usr/bin/file
Chan Min Wai
dcmwai at pl.jaring.my
Thu Sep 21 11:15:12 IST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alex Neuman van der Hans wrote:
> 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...
Dear Alex,
Woo Thank man.
It work great :)
Thank for all the help.
Hope that I don't have to do this again... :)
Regards,
Min Wai
>
> 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
>>
>>
>>
>>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFEmYvV0p9slMZLW4RAsjlAKCII9W+Sai/pRqMjuhs9jppbyf6TwCgzGUn
TL3XmT95kcXVaxDwH53ZqBg=
=ZcSd
-----END PGP SIGNATURE-----
More information about the MailScanner
mailing list