procmail
[Top] [All Lists]

Re: help with a recipe. should be easy?

2009-01-21 18:38:47
would you mind posting your .sanitizer.cfg ?  I have not used sanitizer
before.   I installed it via apt on ubuntu but did not get a config file to
start with.

I am assuming that sanitizer has some flags to handle the attachments.
also, what is the COMSAT=yes?

Thanks

On Wed, Jan 21, 2009 at 3:53 PM, Ed Blackman <ed(_at_)edgewood(_dot_)to> wrote:

On Wed, Jan 21, 2009 at 03:21:24PM -0700, dan wrote:

 I am trying to create a recipe that will take an incoming email that
 includes attachments such as wmv|avi|mpg and strip the attachment out but
 deliver the rest of the email.  google does not help :(


I use sanitizer.  I have it set up to strip some attachments completely,
and save others to a specific directory, replacing the binary with a text
attachment that contains a web URL that I can use to open the attachments
using my browser.

Excerpts from my ~/.procmailrc:

   DEFAULT=${HOME}/mail/mail
   SANITIZER=/usr/bin/sanitizer

   # .... lots of recipes omitted, leading to this last section ...

   # Save selected MIME parts to ~/mail/mime, replacing with local URL.  Do
this
   # after archiving so that the archived copy has the MIME parts still
attached.
   :0fw
     | ${SANITIZER} ~/.sanitizer.cfg

   COMSAT=yes

   # Accept all the rest to my default mailbox
   :0:
   ${DEFAULT}

Ed

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJd6dZ3nrUNJhVPs4RAikmAJ9DxEmGhhB8R2xS32UhEAOvfQ2IqgCeJ4y1
qjLBir6LgY1XaMnKwm2x98M=
=q7rT
-----END PGP SIGNATURE-----

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>