[Top] [All Lists]

Strip and SAVE attachment

2001-08-07 07:44:54

I've searched the archives, studied the man pages and one or two other
sources of info on Procmail without finding what I am looking for.  Sorry if
I have missed something obvious.  I'm a new user - well, not even a user
yet, but it was suggested I try Procmail - so not ready for programming my
own recipies.

What I would like to do is to take incoming messages to a particular mailbox
and strip and save the attachment, which is a PGP encrypted file.  The
message is usually empty - just a subject line, which should be the name of
the file when it is saved.  Actually, of course, I want to feed the file
into pgp and save the output to file, but I can probably live with doing
that via a cron job.  This is in the UNIX (specifically Solaris) world.  For
safety's sake, it would be good to save a copy of the message in the user's
mailbox, in case the pgp handling goes wrong.

All the attachment handling scripts I've seen seem to have been concerned
with stripping off the html attachments to Outlook messages, or stripping
off and throwing away .exe files, viruses, etc, which is the exact reverse
of what I need.

Maybe Procmail is not the product I need?



procmail mailing list

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