No ext program for .doc, tried: ripole
Carlos Horowicz
carlos at planisys.com
Thu Feb 13 13:45:12 CET 2025
Have you tried catdoc instead of antiword ?
With antiword I see messages like this , probably needs a parameter for
correct invocation:
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
-Carlos Horowicz
On 13/02/2025 13:25, Nick Howitt wrote:
>
>
> On 13/02/2025 12:05, thorondir+amavis_list at thorondir.com wrote:
>>> But how do I make amavis use it?
>> In your config you should have an array of decoders, e.g.
>>
>> ```
>> @decoders = (
>> ['mail', \&do_mime_decode],
>> # [[qw(asc uue hqx ync)], \&do_ascii], # not safe
>> ['F', \&do_uncompress, ['unfreeze', 'freeze -d', 'melt', 'fcat'] ],
>> ['doc', \&do_ole, 'ripole'],
>> )
>> ```
>>
>> so if my perl days aren't failing me, you simply need to replace the
>> `ripole` with `antiword` in that last line there.
>>
> If it helps, in Debian, in /etc/amavis/conf.d/01-debian, there is a line:
>
> $ripole = 'ripole';
>
> So, in /etc/amavis/conf.d/50-user, I have just added a line to
> override this:
>
> $ripole = ['ripole', 'antiword'];
>
> installed antiword and restarted amavis. It now all looks OK.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.amavis.org/pipermail/amavis-users/attachments/20250213/5f8ffe15/attachment.htm>
More information about the amavis-users
mailing list