On Fri, 2003-12-05 at 13:47, JoeHill wrote: > On Fri, 05 Dec 2003 13:38:33 -0400 > Adolfo Bello <[EMAIL PROTECTED]> wrote: > > > You should write that recipe as: > > > > :0 > > * [EMAIL PROTECTED] > > /var/spool/mail/joehill > > > > From man procmailrc: > > ======= > > A line starting with ':' marks the beginning of a recipe. It has the > > following format: > > > > :0 [flags] [ : [locallockfile] ] > > <zero or more conditions (one per line)> > > <exactly one action line> > > ======= > > > > So it looks like the recipe is waiting for an answer from > > /var/spool/mail/joehill. > > I've been following the format I originally snagged from Stephen K.'s site: > http://thor.prohosting.com/~kilgoret/files/procmailrc > > So that my recipe file looks like this: > > :0 > * [EMAIL PROTECTED] > { > :0: > /var/spool/mail/joehill > } > > :0 > * [EMAIL PROTECTED] > { > :0: > /var/spool/mail/joehill > } > > :0 > * !^Message-Id > { > :0 > $MAILDIR/spam > } > > :0 > * [EMAIL PROTECTED] > { > :0 > /dev/null > } > > :0 > * ^Subject:.*joehill > { > :0 > $MAILDIR/spam > } > > :0 > * ^Subject:.hi$ > { > :0 > $MAILDIR/spam > } > > :0 > * ^Message-Id:.*<[EMAIL PROTECTED]> > { > :0 > $MAILDIR/spam > } > > :0 B > * .*viagra > { > :0 > /dev/null > } > > as you can see, I added a lock (":") to the rules which forward to > /var/spool/mail/joehill, as I think what was happening was if I got two mails > both trying to write to there, it was timing out. Since adding the lock, I don't > seem to be having any probs, but I'll keep an eye on it. > > I've been reading everything I can get my hands on for Procmail, esp the list > archives, and I'm *beginning*, I think, to understand the concept of the > lock, among other things. > > Cheers!
I don't see the point of having something that does nothing. Rewriting the recipe the way I wrote it does the same thing as using the recipe with {} and a second ":0". I really respect Stephen's knowledge but in this case I don't see any point in having a recipe like: :0 * [EMAIL PROTECTED] * ^Subject:.* { :0 /dev/null } which translates into: if the message is coming from any body at fc.emc.com.ph *and* the subject is any thing, send it to /dev/null. To me, the subject line is adding no value to the recipe. Take a look at "man procmailex" (procmailrc examples), specially at the second example, and see how they avoid using unneeded {}. Wow, you made me read some stuffs before posting a reply :-) Saludos, -- Adolfo A. Bello B. <[EMAIL PROTECTED]> Make your posts more effective. Learn how at http://mandrake.vmlinuz.ca/bin/view/Main/MandrakeMailingListEtiquette
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com