procmail
[Top] [All Lists]

Re: Procmail + spamassassin

2003-03-20 14:35:59
On Thu, Mar 20, 2003 at 09:20:06AM -0800, Tyler F. Creelan wrote:
On Mar 20 at 4:55pm +0100, Dallman Ross wrote:

| This stuff should be in the list archives from a couple of months
| ago.  Here is what I use.  Works fine:
|
|  :0 W  # 030303 () this is an assignment recipe, not a delivering one
|  SA_OUT=| spamc -cd spamd

Cool... where can I find out more about these assignment recipes? The
syntax seems unlike what's in the manuals - also are those numbers

Well, it does appear in the manuals.  From `man procmailrc':


       |      Starts the specified program, possibly in $SHELL if
              any of the characters $SHELLMETAS are spotted.  You
              can optionally prepend this pipe symbol with  vari­
              able=, which will cause stdout of the program to be
              captured in the environment variable (procmail will
              not terminate processing the rcfile at this point).


And from deep down in `man procmailex':

       To  extract  certain headers from a mail and put them into
       environment variables you can use  any  of  the  following
       constructs:

              SUBJECT=`formail -xSubject:`    # regular field
              FROM=`formail -rt -xTo:`        # special case

              :0 h                            # alternate method
              KEYWORDS=| formail -xKeywords:


followed by () used by procmail in any way, or are they just a
personal way of enumerating the recipes? (Somehow I suspect the
former, since I can't discern any pattern to them...)

They are just my personal comments.  "030303" is the date I
last monkeyed with that recipe, with the first couplet of
numerals being the year, then the month, then the day.  The
() means nothing; it is part of my comment to myself.  I just
standardize that to have a textual abstract of what's coming
follow that symbol.  But I've never seen anyone else do it
that way.  Feel free to adopt it if you like it.

-- 
dman

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


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