<div dir="ltr"><div class="gmail_default" style="font-size:small">Can Amavis 2.11.0 decode docx files out of the box?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">A while ago I installed <a href="http://docx2txt.pl">docx2txt.pl</a> (which, as its name suggests, provides simple text output from a docx file) and set this in 50-user.conf:</div><div class="gmail_default">@decoders = (<br></div><div class="gmail_default">  ...</div><div class="gmail_default">  ['doc', \&do_ole, '<a href="http://docx2txt.pl">docx2txt.pl</a>'],<br></div><div class="gmail_default">  ['docx', \&do_ole, '<a href="http://docx2txt.pl">docx2txt.pl</a>'],  <br></div><div class="gmail_default">  ...</div><div class="gmail_default"><br></div><div class="gmail_default">but now I find error messages in the log like this:</div><div class="gmail_default">amavis[22144]: (22144-01) (!!)collect_results from [26149] (/usr/local/bin/<a href="http://docx2txt.pl">docx2txt.pl</a>): exit 255 \nUsage:\t/usr/local/bin/<a href="http://docx2txt.pl">docx2txt.pl</a> [infile.docx|-|-h] [outfile.txt|-]\n\t/usr/local/bin/<a href="http://docx2txt.pl">docx2txt.pl</a> < infile.docx\n\t/usr/local/bin/<a href="http://docx2txt.pl">docx2txt.pl</a> < infile.docx > outfile.txt\n\n\tIn second usage, output is dumped on STDOUT.\n\n\tUse '-h' as the first argument to get this usage information.\n\n\tUse '-' as the infile name to read the docx file from STDIN.\n\n\tUse '-' as the outfile name to dump the text on STDOUT.\n\tOutput is saved in infile.txt if second argument is omitted.\n\nNote:\tinfile.docx can also be a directory name holding the unzipped content\n\tof concerned .docx file.\n\n<br></div><div class="gmail_default"><br></div><div class="gmail_default">Evidently amavis is not passing parameters to <a href="http://docx2txt.pl">docx2txt.pl</a> in the correct way, and so <a href="http://docx2txt.pl">docx2txt.pl</a> outputs its help text. Probably it omits the required '-' as the second parameter. (When I pass the docx attachment directly to <a href="http://docx2txt.pl">docx2txt.pl</a> it processes it fine.)</div><div class="gmail_default"><br></div><div class="gmail_default">Is this fixable or should docx files be handled in a different way?  The default setting for 'doc' files also seems to fail on my installation because I have no program 'ripole'. What happens about 'docm' files?</div></div>