procmail
[Top] [All Lists]

Re: Procmail and decoding of attachments

2003-04-21 09:59:10
OK, that worked great - thanks so much, Eric!

Now for my next question :)

What I'm trying to do is have users send mail with a file attachment(s) and
specify the FTP URL in the subject line. procmail will get the mail,
extract the URL, use uudeview to store the files in a temp directory and
initiate an ncftpput process to upload the file.

Can someone educate me on the procmail syntax to extract the contents of a
Subject header and pass it to another process on the command line? Also,
how do I string multiple commands together in procmail - because I need to
use uudeview followed by ncftpput, but cannot seem to get procmail to
execute the second command...

TIA,

Vikram

oops - Adding the `-' for stdin worked for me viz

:0f
| /usr/bin/uudeview -iqa -p /tmp/attachments -e .html -

QUESTION:
Can someone please tell us what flags to use here.
The above command should be executed on a copy of the mail
as we want the original mail to pass through unaltered.  (The uudeview
writes the results of its decoding to stdout).

Thanks

According to Vikram Vaswani on Mon, Apr 21, 2003 at 01:45:30PM +0500:
I'm trying to take messages containing MIME-encoded attachments and
decode
the attachment into its original form and save it as a file to a
separate
directory. Can procmail do this? Is there a simple recipe for this?

I was going to implement this sometime.
My choice was uudeview -> uudeview (1)         - a powerful decoder for
binary files

so just go:
:0f
| uudeview <options>

Hey Eric,

I tried this, but I get this error: "Error while writing to
"/usr/local/bin/uudeview"

Any idea how to fix this?

Thanks,

Vikram

-- 
Eric Smith
Fruitcom BV
Tel: +31 15 750 2364
Fax: +31 15 750 2365
Mobile: +31 6 551 76300


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

<Prev in Thread] Current Thread [Next in Thread>