<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Il 13/07/2011 18:08, Jules Field ha scritto:
<blockquote
cite="mid:EMEW3|2eec8d36adc87d8cf85f67d5d46964a0n6CH8e0bMailScanner|ecs.soton.ac.uk|4E1DC303.5080509@ecs.soton.ac.uk"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Can you try this?<br>
<br>
Edit /usr/lib/MailScanner/MailScanner/Antiword.pm<br>
You should find line 194 says<br>
return 0 unless -f "$dir/$unpackfile" && -s
"$dir/$unpackfile";<br>
Move that line up a couple of lines, so it is just before the line<br>
$parententity->make_multipart;<br>
and then restart MailScanner.<br>
<br>
Does that help?<br>
<br>
On 13/07/2011 16:29, Alessandro Bianchi wrote:
<blockquote cite="mid:4E1DB9C1.9090006@skynet.it" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Il 13/07/2011 17:19, Mark Sapiro ha scritto:
<blockquote cite="mid:4E1DB78F.1010700@msapiro.net" type="cite">
<pre wrap="">On 7/13/2011 12:33 AM, Alessandro Bianchi wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'm using MS 4.83-5 and antiword 0.37
</pre>
</blockquote>
<pre wrap="">Which is essentially the same as I have. As far as I can see there is no
difference between 4.83-5 and 4.84-1 that would affect this.</pre>
</blockquote>
<br>
i agree!<br>
<blockquote cite="mid:4E1DB78F.1010700@msapiro.net" type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">The errors I see are of two different kinds.
While in any case the attach is seen with MIME application/msword
antiword either says "yourfile.doc is not a Word Document" or it says
"YOURFILE.DOC is not a Word Document. It is probably a Rich Text Format
file YOURFILE.DOC is not a Word Document." and in both cases this leads
MS to a "zero size attach" that causes removal of *any* attachment from
the mail message and not only the offending one.
</pre>
</blockquote>
<pre wrap="">I am not seeing this.
</pre>
<blockquote type="cite">
<pre wrap="">Obiovusly this is untrue since this *is* a word document and if I
download it direcly from the blocked message and open it in LibreOffice
it opens perfectly as a word document format, and the same happens if i
forward it to a user using a non protected acoount and he opens it using
MS Word.
Funny enougth I tried the file command aganinst two of the offending
attachment causing the "zero size", and this is surprising:
First file:
file yourfile.doc - : OpenDocument Text Zip archive data (so this is
most likely an OpenOffice document saved with the .doc extension or
conversion) In this case antiword may be right not to embed the text but
what is the reason fro removing every attachment from the message?
</pre>
</blockquote>
<pre wrap="">Or it is a MS-Word .docx file named as .doc. I don't see what you see
in this case. If I have such a document and manually run antiword on it,
antiword says "xxx.doc is not a Word Document." and returns exit status
1. If I attach the file to an email and send it through MailScanner,
MailScanner does not alter the original attachment.
What is your setting for 'Antiword' in MailScanner.conf or
MailScanner/conf.d/*? Is it different from the default
Antiword = /usr/bin/antiword -f
If not, I don't know why this doesn't work for you as it does for me.
Maybe it's a perl module difference?
[...]
</pre>
<blockquote type="cite">
<pre wrap="">The only solution I found so far is to disable the antiword conversion
at all, but I'd like to find a fix since my users love this feature
</pre>
</blockquote>
</blockquote>
<font face="sans-serif">Hi<br>
<br>
My settings are as follows:<br>
<br>
Antiword = /usr/bin/antiword -f<br>
Antiword Timeout = 50<br>
<br>
The error doesn't happen all the times and on every document,
but only with some documents.<br>
<br>
Unfortunately while earlier we had very few of those damned
errors, in tha last weeks they have increased so much to force
me to disable the feature.<br>
<br>
It happens about 4 times every 10 documents, and the users get
very annoyed about that ...<br>
<br>
I've supposed that it may be related to the specific
application generating the doc, but this is just a guess ...<br>
<br>
Thank you<br>
<br>
Alessandro Bianchi<br>
</font><br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<title></title>
<meta name="generator" content="Bluefish 2.0.3">
<meta name="author" content="Alessandro Bianchi">
<meta name="CREATED" content="20100306;9474300">
<meta name="CHANGEDBY" content="Alessandro ">
<meta name="CHANGED" content="20100306;10212100">
<style type="text/css">
        <!--
                P { font-family: "Arial", "Helvetica", sans-serif; font-size: 10pt }
                P.nome { color: #ff8000; font-family: "Arial", "Helvetica", sans-serif; font-size: 12pt; font-weight: bold; text-align: center }
                P.indirizzo { color: #0084d1; font-family: "Arial", "Helvetica", sans-serif; font-size: 10pt; font-weight: bold; line-height: 0.48cm; text-align: center }
                P.info { color: #b3b3b3; font-family: "Arial", "Helvetica", sans-serif; font-size: 9pt }
                A:link { color: #005dff; text-decoration: none }
                A:visited { color: #005dff; text-decoration: none }
        -->
        </style>
<p class="nome">SkyNet SRL</p>
<p class="indirizzo">Via Maggiate 67/a - 28021 Borgomanero
(NO) - tel. +39 0322-836487/834765 - fax +39 0322-836608</p>
<p align="CENTER"><a moz-do-not-send="true"
href="http://www.skynet.it/">http://www.skynet.it</a></p>
<p class="indirizzo">Autorizzazione Ministeriale n.197</p>
<p class="info">Le informazioni contenute in questo messaggio
sono riservate e confidenziali ed è vietata la diffusione in
qualunque modo eseguita.<br>
Qualora Lei non fosse la persona a cui il presente messaggio
è destinato, La invitiamo ad eliminarlo ed a distruggerlo
non divulgandolo, dandocene gentilmente comunicazione. <br>
Per qualsiasi informazione si prega di contattare <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:info@skynet.it">info@skynet.it</a> (e-mail
dell'azienda). Rif. D.L. 196/2003</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CITP CEng
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.MailScanner.info">www.MailScanner.info</a>
Buy the MailScanner book at <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.MailScanner.info/store">www.MailScanner.info/store</a>
Need help customising MailScanner? Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM
'All programs have a desire to be useful' - Tron, 1982
</pre>
</blockquote>
<br>
-- <br>
This message has been scanned for viruses and
<br>
dangerous content by
<a moz-do-not-send="true" href="http://www.mailscanner.info/"><b>MailScanner</b></a>,
and is
<br>
believed to be clean.
<br>
-- <br>
Il messaggio e' stato analizzato alla ricerca di virus o
<br>
contenuti pericolosi da
<a moz-do-not-send="true" href="http://www.skynet-srl.com/"><b>SkyNet
Srl</b></a>, ed e'
<br>
risultato non infetto.
</blockquote>
<font face="sans-serif">Jules<br>
<br>
Did you receive teh files I dropped off for you?<br>
<br>
I din't get any notification<br>
<br>
Sorry for bothering<br>
<br>
Best regards<br>
<br>
Alex<br>
</font><br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<title></title>
<meta name="generator" content="Bluefish 2.0.3">
<meta name="author" content="Alessandro Bianchi">
<meta name="CREATED" content="20100306;9474300">
<meta name="CHANGEDBY" content="Alessandro ">
<meta name="CHANGED" content="20100306;10212100">
<style type="text/css">
        <!--
                P { font-family: "Arial", "Helvetica", sans-serif; font-size: 10pt }
                P.nome { color: #ff8000; font-family: "Arial", "Helvetica", sans-serif; font-size: 12pt; font-weight: bold; text-align: center }
                P.indirizzo { color: #0084d1; font-family: "Arial", "Helvetica", sans-serif; font-size: 10pt; font-weight: bold; line-height: 0.48cm; text-align: center }
                P.info { color: #b3b3b3; font-family: "Arial", "Helvetica", sans-serif; font-size: 9pt }
                A:link { color: #005dff; text-decoration: none }
                A:visited { color: #005dff; text-decoration: none }
        -->
        </style>
<p class="nome">SkyNet SRL</p>
<p class="indirizzo">Via Maggiate 67/a - 28021 Borgomanero (NO) -
tel.
+39 0322-836487/834765 - fax +39 0322-836608</p>
<p align="CENTER"><a href="http://www.skynet.it/">http://www.skynet.it</a></p>
<p class="indirizzo">Autorizzazione Ministeriale n.197</p>
<p class="info">Le informazioni contenute in questo messaggio sono
riservate e confidenziali ed è vietata la diffusione in
qualunque
modo eseguita.<br>
Qualora Lei non fosse la persona a cui il presente
messaggio è destinato, La invitiamo ad eliminarlo ed a
distruggerlo
non divulgandolo, dandocene gentilmente comunicazione. <br>
Per
qualsiasi informazione si prega di contattare <a class="moz-txt-link-abbreviated" href="mailto:info@skynet.it">info@skynet.it</a>
(e-mail dell'azienda). Rif. D.L. 196/2003</p>
</div>
</body>
</html>