"David F. Skoll" <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > >> How can I just ignore all the sub funcs in mimedefang-filter or make >> them return immediately and get on to the `fiter_end' function where >> I can hopefully insert some simple code to create and deposit a copy. > > Use the following four-line filter file: > > # ---- CUT HERE ---- > sub filter_end { > add_recipient('[EMAIL PROTECTED]'); > } > 1; > # ---- CUT HERE ---- > > And then make an alias "archive-bot" that just appends to a file. For > example, you might put this in /etc/mail/aliases: > > archive-bot: /var/spool/mail-archive.mbox > > (Don't forget to run "newaliases") > > There. That wasn't so painful, was it?
At risk of sounding really dumb here but: That does look simple but what happens to the rest of /etc/mail/mimedefang-filter or do you mean that those four lines is mimedefang-filter > >> My perl is way too shakey to know how to do that withoug wreaking >> major havic. > > This is becoming a common theme on the MIMEDefang list. :-( > > MIMEDefang is written for people WHO KNOW PERL! That's the > whole point of the program. And silly me, I thought it was to take dangerous or spammious mail out of circulation. _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang