[Mimedefang] How to code Remove all attachment to two RCPT

Scott Ostrander scotto at printronix.com
Thu Jan 27 12:53:50 EST 2005

I have been asked to have all attachments removed from mail going to two users.
I can find the recipients (userA and B ) using the statement below.

foreach $recip (@Recipients) {
            if ($recip =~ /^<?userA|^<?userB\@/i) {
		What goes here?;

But how to delete ALL attachments?
Not just bad filesnames.
This is being done because these two accounts are auto archived and we are hitting size limits.
So this will be a plain text archive.

Scott O

More information about the MIMEDefang mailing list