<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Have you tried catdoc instead of antiword ?</p>
    <p><br>
    </p>
    <p>With antiword I see messages like this , probably needs a
      parameter for correct invocation:<br>
      <br>
      amavis[547]: (00547-01) (!!)collect_results from [890]
      (/usr/bin/antiword): exit 1 /usr/bin/antiword: invalid option --
      'v'\n\tName: antiword\n\tPurpose: Display MS-Word files\n\tAuthor:
      (C) 1998-2005 Adri van Os\n\tVersion: 0.37  (21 Oct
      2005)\n\tStatus: GNU General Public License\n\tUsage: antiword
      [switches] wordfile1 [wordfile2 ...]\n\tSwitches: [-f|-t|-a
      papersize|-p papersize|-x dtd][-m mapping][-w #][-i
      #][-Ls]\n\t\t-f formatted text output\n\t\t-t text output
      (default)\n\t\t-a <paper size name> Adobe PDF output\n\t\t-p
      <paper size name> PostScript output\n\t\t   paper size like:
      a4, letter or legal\n\t\t-x <dtd> XML output\n\t\t   like:
      db (DocBook)\n\t\t-m <mapping> character mapping
      file\n\t\t-w <width> in characters of text output\n\t\t-i
      <level> image level (PostScript only)\n\t\t-L use landscape
      mode (PostScript only)\n\t\t-r Show removed text\n\t\t-s Show
      hidden (by Word) text\n</p>
    <p>-Carlos Horowicz<br>
    </p>
    <div class="moz-cite-prefix">On 13/02/2025 13:25, Nick Howitt wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0dd8466d-0fa9-4db5-aee9-6b42e7e8ed44@howitts.co.uk">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <br>
      <br>
      <div class="moz-cite-prefix">On 13/02/2025 12:05, <a
          class="moz-txt-link-abbreviated moz-txt-link-freetext"
          href="mailto:thorondir+amavis_list@thorondir.com"
          moz-do-not-send="true">thorondir+amavis_list@thorondir.com</a>
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:1597635d-6c4e-49ba-9efe-9d6ef94f8021@thorondir.com">
        <meta http-equiv="Content-Type"
          content="text/html; charset=UTF-8">
        <blockquote type="cite"
cite="mid:CAOmHMuE8+fb8-JkgJpc_k0D+Vbofvi9TB0sc_GMLpi8F3BTFqw@mail.gmail.com">
          <pre wrap="" class="moz-quote-pre">But how do I make amavis use it?
</pre>
        </blockquote>
        In your config you should have an array of decoders, e.g.<br>
        <p><font face="monospace">```<br>
            @decoders = ( <br>
             ['mail', \&do_mime_decode], <br>
            # [[qw(asc uue hqx ync)], \&do_ascii],  # not safe <br>
             ['F',    \&do_uncompress, ['unfreeze', 'freeze -d',
            'melt', 'fcat'] ],<br>
             ['doc',  \&do_ole,   'ripole'], <br>
            )<br>
            ```<br>
            <span style="color:#000000;background-color:#ffffff;"> </span><br>
          </font>so if my perl days aren't failing me, you simply need
          to replace the `ripole` with `antiword` in that last line
          there.<br>
        </p>
      </blockquote>
      If it helps, in Debian, in /etc/amavis/conf.d/01-debian, there is
      a line:<br>
      <blockquote><font face="monospace">$ripole = 'ripole';</font><br>
      </blockquote>
      So, in /etc/amavis/conf.d/50-user, I have just added a line to
      override this:<br>
      <blockquote><font face="monospace">$ripole = ['ripole',
          'antiword'];</font><br>
      </blockquote>
      installed antiword and restarted amavis. It now all looks OK.<br>
      <lt-container></lt-container>
    </blockquote>
  </body>
</html>