procmail
[Top] [All Lists]

Re: Recipe Modification Errors

1997-08-17 10:31:00
Actually, you've cut it back to *4* recipes.  You don't really want the
test conditions separated from the actions.

Also, from these recipes out of context it appears the flags you
specified in :0 lines may be inappropriate.  Did you really intend to
"clone" messages so that they would be processed later as well?  If not,
leave off the c flag.  Did you  intend to save only the headers in
Aaawww.IN?  If not, leave off the h flag.

There's no evidence you need an explict lockfile for your second case.
But you should use lockfiles in both cases.

In the first case, it strikes me as extremely unlikely that messages
will have From: headers with three different return addresses.  Rather
than describing a formulation that will accomplish an "or" of the three
conditions, perhaps the most general of the three (with the superfluous
trailing wildcard stripped) will suffice.  Likewise, in the second case
you only need one of the From: conditions.  Since procmail matches are,
by default, case insensitive, either will do. 

A possible reformulation, therefore, would be

:0:
* !^FROM_DAEMON
* !^X-Loop: homes4u(_at_)garlic\(_dot_)com
* ^From: nobody
* ^Subject: Inquiry & Referral(WWW)
Aaawww.IN

# ---------------------------------------------------------
# BOUNCED MAIL
# ----------------------------

:0:
* !^X-Loop: homes4u(_at_)garlic\(_dot_)com
* ^From: Mailer-daemon.*
Areject1.IN

Regards,
-- 
   Rick Troxel     Rick_Troxel(_at_)nih(_dot_)gov     
rick(_at_)helix(_dot_)nih(_dot_)gov
     http://www.dc-sage.org/bios/rick_troxel  301/435-2983
/////////////////////////////////////////////////////////////////
All effort and exertion put forth by man from the fullness of his
heart is worship, if it  is prompted  by the  highest motives and
the will to do service to humanity.                 --Abdu'l-Baha

On Sat, 16 Aug 1997, Eric Hilding wrote:

eric> Ok...I've cut things way back to virtually two simple tasks
eric> but am totally clueless as to why both of these each end
eric> up in the same mailfolder.  What am I missing???  Tnx. Eric.
eric> 
eric> :0 hc
eric> * !^FROM_DAEMON
eric> * !^X-Loop: homes4u(_at_)garlic\(_dot_)com
eric> * ^From: nobody(_at_)quake\(_dot_)garlic\(_dot_)com
eric> * ^From: nobody(_at_)garlic\(_dot_)com
eric> * ^From: nobody.*
eric> * ^Subject: Inquiry & Referral(WWW)
eric> 
eric> :0:
eric> Aaawww.IN
eric> 
eric> # ---------------------------------------------------------
eric> # BOUNCED MAIL
eric> # ----------------------------
eric> 
eric> :0 hc: lockfile.reject
eric> * !^X-Loop: homes4u(_at_)garlic\(_dot_)com
eric> * ^From: Mailer-daemon.*
eric> * ^From: MAILER-DAEMON.*
eric> 
eric> :0:
eric> Areject1.IN
eric> 
eric> #### But both end up in Aaaawww.IN   ARRRRRRRRGGGGGGGGHHHHHHH ;(
eric> 
eric> $ cat pmlog
eric> >From nobody  Sat Aug 16 14:39:29 1997
eric>  Subject: Inquiry & Referral(WWW)
eric>   Folder: 
eric> Aaawww.IN                                                         775
eric> >From MAILER-DAEMON  Sat Aug 16 14:39:46 1997
eric>  Subject: Returned mail: User unknown
eric>   Folder: 
eric> Aaawww.IN                                                        1076
eric> 
eric> ------------------------------
eric> 

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