procmail
[Top] [All Lists]

Re: Small Mailing List script

2005-01-31 08:08:42
On Mon, Jan 31, 2005 at 07:27:10AM -0500, Doug Essinger-Hileman wrote:
I have been looking at the script for Small Mailing Lists that Sean 
posted to this list in 2002. One section of the script puzzles me:

---begin snippet---
# This rule archives mail to the listowner in the list archive.
# Note this is valid only for TO: addressing.
:1 c: $listname$LOCKEXT
* $^To:.$listowner
|gzip -9fc>>$listname.owner.gz
---end snippet---

The line that marks the beginning of the recipe begins with ":1". I 
was only familiar with the beginning of the recipe being marked by 
":0", so I have read man procmail, procmailrc and procmailsc, and 
searched the archives. I have found no references to :1. 

My guess is that this is a typographical error, but I'm relatively 
inexperienced with procmail, so don't trust my guess. Am I right? Or 
have I missed something?

It's not a typographical error.  (So, no, you're not quite right.) :-)
It's deprecated syntax from long ago.  It still works, but it would
no longer be recommended to code with it, as it only increases the
"brittle" nature of the language.  The 1 says there is one condition.

You could change it to a 0 with no ill effects unless you are running
some extremely ancient version of procmail.

You could look in some of the oldest posts in the procmail archive
if you want to see some of that stuff.  :-)

-- 
dman


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>