Metamail was frustrating me cause it was too interactive.<br><br>Finally after much Googling, I found a perl script called mimedecode that did what I needed and worked well from procmail.<br><br><a href="http://search.cpan.org/dist/ppt/bin/mimedecode">
http://search.cpan.org/dist/ppt/bin/mimedecode</a><br><br>I had tried your idea to fetch the file from the quarantine and that would have probably worked had I not found the perl script.<br><br>Thanks for the help.<br><br>
<div><span class="gmail_quote">On 3/29/07, <b class="gmail_sendername">Glenn Steen</b> &lt;<a href="mailto:glenn.steen@gmail.com">glenn.steen@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 29/03/07, Glenn Steen &lt;<a href="mailto:glenn.steen@gmail.com">glenn.steen@gmail.com</a>&gt; wrote:<br>&gt; On 29/03/07, Don Knott &lt;<a href="mailto:dknott123@gmail.com">dknott123@gmail.com</a>&gt; wrote:<br>&gt; &gt; Hello-
<br>&gt; &gt;<br>&gt; &gt; I would like to decode certain attachment types to a particular address. I<br>&gt; &gt; get messages with .DBF file attachments that I need to decode and extract to<br>&gt; &gt; a directory to be processed (imported into a DB) later by a cron job.
<br>&gt; &gt;<br>&gt; &gt; I am struggling with procmail &amp; metamail to do it but not having much luck.<br>&gt; &gt; So far its too interactive. Googling only seems to find stuff about encoding<br>&gt; &gt; from scripts, not decoding.
<br>&gt; &gt;<br>&gt; &gt; Can I do this with a ruleset in Mailscanner?<br>&gt; &gt;<br>&gt; &gt; Any assistance would be most appreciated.<br>&gt;<br>&gt; Apart from doing something in a custom function, I can&#39;t see any
<br>&gt; reasonable way of doing it in MailScanner, and one could well question<br>&gt; whether constructing a custom function for this is reasonable:-).<br>&gt;<br>Just had a thought.... If you _disallow_ .dbf files in filename rules,
<br>you&#39;d get it quarantined _and decoded_ as a Bad Filename .... Perhaps<br>usable?<br><br>Cheers<br>--<br>-- Glenn<br>email: glenn &lt; dot &gt; steen &lt; at &gt; gmail &lt; dot &gt; com<br>work: glenn &lt; dot &gt; steen &lt; at &gt; ap1 &lt; dot &gt; se
<br>--<br>MailScanner mailing list<br><a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br><a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner">http://lists.mailscanner.info/mailman/listinfo/mailscanner
</a><br><br>Before posting, read <a href="http://wiki.mailscanner.info/posting">http://wiki.mailscanner.info/posting</a><br><br>Support MailScanner development - buy the book off the website!<br></blockquote></div><br>