At 14:21 2002-05-01 -0400, Pantelis Hadzipantelis did say:
stripmime.pl I went to the website but I do not understand... I don't know
perl so I don't think I would be able to hack it.
From what you're describing, it seems to be the appropriate tool for what
you're tring to accomplish. That's the type of tool I like to use and
recommend - the proper one. Keep in mind that procmail isn't a generic
programming language -- it is merely the facilitator for handing the
message: your ALTERATIONS (strippping of attachments) to it are handled
externally to Procmail (be they formail, sed, other scripts, or perl), even
if you're invoking those processed from a procmail script.
If you want to bounce all the messages with file attachments other than the
ones you want to accept (which isn't _removing_ the attachments, but
refusing the while message), then you might spend some time reviewing the
archives, or hiring a programmer who can write the code you need, provided
you have a clear specification to present them with.
I don't use the Sanitizer scripts (based on procmail, but not part of
procmail - do a websearch to find the homepage), but I imagine some hacking
there could achieve what you're after. However, I'm fairly certain that
Sanitizer makes use of external scripts as well, so perhaps their solution
still involves digging into perl code at some point.
also said:
It won't matter, it's only my internal users that will be sending email to
stores (only attachments of .doc and .xls files). So it doesn't matter.
If that's the case, how about you set the MTA to reject messages from
anyone who isn't an internal user (or accomplish the same thing from
procmail)? Surely these internal users know that they shouldn't send other
types of files?
Are you trying to block attachments from your own users? Or deal with
possible external mis-submissions?
[big snip - please snip]
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail