Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!math.fu-berlin.de!opal!unido!rwthinf!marvin.e17.physik.tu-muenchen.de!berg From: berg@marvin.e17.physik.tu-muenchen.de (Stephen R. van den Berg) Newsgroups: comp.mail.sendmail Subject: Re: Mail filters Message-ID: <4180@rwthinf.UUCP> Date: 27 Mar 91 15:55:49 GMT References: <1991Mar15.195109.12234@viewlogic.com> Sender: news@rwthinf.UUCP Lines: 28 Kenstir writes: >I'd like to set up a filter on my mail, and I'd like it >to happen between the time sendmail gets its paws on the >text and the time it puts the file in /usr/spool/mail. >PROBLEMS: I'm not doing any file locking and I'm sure eventually >I would run into race conditions. >Kenneth H. Cox >Viewlogic Systems, Inc. >kenc@viewlogic.com >..!harvard!cg-atla!viewlog!kenc I suggest you take a look at the "procmail" package (see comp.sources.misc). v1.30 is the most recent. It will take care of all the locking for you. If you need more information about "procmail", drop me a note (I wrote it :-) P.S. I tried to send the mail directly, but your mailer went berzerk. If you are interested in the error messages, I still have them. I can send them on request, but, be sure to remove your mail filter first :-) -- Sincerely, berg@marvin.e17.physik.tu-muenchen.de Stephen R. van den Berg. "I code it in 5 min, optimize it in 90 min, because it's so well optimized: it runs in only 5 min. Actually, most of the time I optimize programs."