<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Il 13/07/2011 03:44, Mark Sapiro ha scritto:
    <blockquote cite="mid:4E1CF895.6050507@msapiro.net" type="cite">
      <pre wrap="">On 11:59 AM, Alessandro Bianchi wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">
I was using the ".doc text in the mail" feature and it beugn showing
many "attachment too small" errors.

The funny thing is that even if the message has more attachments,
whenever antiword fails detecting even only one of them all the
attachments are removed from the message and the messages itself is
marked with the "too small" error
</pre>
      </blockquote>
      <pre wrap="">

What MailScanner version are you running?

I am running MailScanner 4.84-1 and antiword 0.37, and what I see is the
following:

If I run antiword manually on certain files MS-Word (.doc), antiword reports

"I'm afraid the text stream of this file is too small to handle." and
returns an exit status of 1.

Is this the message you see?

What happens if you run antiword manually on one of your problem files?

If I attach one of those files to a message passed through MailScanner,
MailScanner just skips the conversion of the file to text, and the
message is delivered as sent with the original attachment intact.

</pre>
    </blockquote>
    <font face="sans-serif">Hi and thank you for your answer<br>
      <br>
      I'm using MS 4.83-5 and antiword 0.37 <br>
      <br>
      The errors I see are of two different kinds.<br>
      <br>
      While in any case the attach is seen with MIME </font>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.<br>
    <br>
    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.<br>
    <br>
    Funny enougth I tried the file command aganinst two of the offending
    attachment causing the "zero size", and this is surprising:<br>
    <br>
    First file:<br>
    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?<br>
    <br>
    Second file:<br>
    file YOURFILE.DOC : Rich Text Format data, version 1, ANSI (but this
    file has been generated from Microsoft Word)<br>
    <br>
    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<br>
    <br>
    Thank you for your help<br>
    <br>
    Best regards<br>
    <br>
    Alessandro Bianchi<br>
    <br>
    <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 &egrave; vietata la diffusione in
        qualunque
        modo eseguita.<br>
        Qualora Lei non fosse la persona a cui il presente
        messaggio &egrave; 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>