procmail
[Top] [All Lists]

Re: Two Questions

1998-03-26 12:17:22


On 26 Mar 1998 jari(_dot_)aalto(_at_)poboxes(_dot_)com wrote:

[...]

| :0
| * !^TO:.*(jrdavis(_at_)netcom(_dot_)com|J.R.Davis|John Davis)
| $JUNK

I'm sure Phil can explain this more throughly, but let's just say
that procmail macros TO FROM_DAEOMON etc. are special. If you
use it like this:

    :0 :
    * ! ^TO().*(jrdavis(_at_)netcom(_dot_)com|J.R.Davis|John Davis)
    $JUNK

It would work. Note that there is added lockfile(:0 :), no (:) after TO,
and for visual separation there is no-op () before regexp.

Thanks I'll give that a try. 
 
| LOG=unixclub$NL

Just personal, (you can ignore this advice if you want) I'd use 

    LOG = "unixclub$NL"

What advantage does the double quotes give?
 

| :0:
| * ^Return-Path:(_dot_)*UUASC-owner(_at_)biz\(_dot_)compata\(_dot_)com
| $UNIXCLUB
| 
| $UNIXCLUB is defined thusly:
| 
| #**********
| #***  $UNIXCLUB
| #* this is used to hold mail from the unix club list
| #**********
| $HOME/mail/unix-club

Erm, I'm sure you wanted to write

    UNIXCLUB = $HOME/mail/unix-club

Damn!  That's rmbarrassing. I've been stearing at that and the other 
variables trying to see what was different and never saw that.  I think I 
need to eat my carrots. 
 
| procmail: Assigning "LOG=unixclub
| "
| unixclub
| procmail: Match on 
"^Return-Path:(_dot_)*UUASC-owner(_at_)biz\(_dot_)compata\(_dot_)com"
| procmail: Locking ".lock"
| procmail: Error while writing to "/_fyFQmail2"
| procmail: Error while writing to "/"
| procmail: Unlocking ".lock"

I'm afraid the UNIXCLUB variable is empty, thus procmail tries to write
to an empty file --> /_fyFQmail2. But I may be wrong here.

Sounds right to me.  Thanks, Jari, for taking time with this.  I really 
appreciate it.

Johne Davis 

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