procmail
[Top] [All Lists]

Re: Hard one for the gurus - Extracting files from a uuencoded message

2002-08-14 11:40:48
On Wed, 14 Aug 2002, Odhiambo Washington wrote:

Just teasing - I know this is like ice cream for the gurus ;-)

Hello there,

I would like to request your help:

I do receive virus definition files updates from the address
subscribe(_at_)drweb(_dot_)ru on a weekly basis.

The only difficulty I am facing is that the files are UUENCODED into
the come as the body of the message...something like this:
[...]

        Here is my test:

:0 bfw
* From: subscribe(_at_)drweb(_dot_)ru
* ^begin .*\.zip
| (cd /homes/ayalon/sysgrp/uuddii/Procmail; uudecode)

        You can unzip if you want to:
...
| (cd /homes/ayalon/sysgrp/uuddii/Procmail; uudecode; unzip *)

        Maybe you want:

:0 bfw
* From: subscribe(_at_)drweb(_dot_)ru
* begin .* \/.+\.zip
(cd /homes/ayalon/sysgrp/uuddii/Procmail; uudecode; unzip $MATCH)


Bye,
 Udi

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail