"Dr.Ruud" <[EMAIL PROTECTED]> writes: > Let procmail make all those decisions and transformations for you.
I prefer qmail dot-commands. It provides an architecture for controlling the delivery of email, and lets you write the smarts of the mail processing in whatever language you want. > I have a maildir called 'raw' where I keep a copy of all non-spammish > mail. I call mine archives. I also remove duplicate email before it gets to the mailbox. > Copies of the same messages also get delivered in the right mailboxes, > by procmail. Yup, qmail does that for me. > A message that contains only html, is piped though lynx -dump -stdin. I build a bounce message explaing that it wasn't read, and send that back to the sender. > A message containing both HTML and a plain/text-part, is de-mime-d, > leaving only the plain/text-part (unless that part contains only a silly > remark). > Footers and long signatures are limited or even deleted. Etc., etc. (I > like my mail cooked.) I don't do those things. Then again - my mail reader makes deals with them on request. > One of the reasons that I started with Perl, is that I want to rewrite > procmail in Perl. Try qmail - it may solve the problem with a lot less work. <mike -- Mike Meyer <[EMAIL PROTECTED]> http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-list