procmail
[Top] [All Lists]

Re: why is >> making files size=0 ?

2001-12-03 13:37:03
From: "Timothy J. Luoma" <luomat(_at_)peak(_dot_)org>

Here is the recipe

ALLSENDERS=$PROCDIR/senders.txt
REPLYTO=`formail -rtzxTo:`

:0
* $ ! ? fgrep -i "$REPLYTO" "$ALLSENDERS"
{
      :0c:
      05-First-Timers

      :0hia: .allsenders.lock
      |/bin/echo "$REPLYTO" >> "$ALLSENDERS"
}


This recipe, and another I had just like it, keep on overwriting the file,
so that I end up with a file size=0 and start from scratch.

Shouldn't the >> prevent that from happening?!?!?

What shell is procmail running?  Do you set shell to /bin/sh in
your .procmailrc?

-- 
Netcom has imploded.  Please now use NOTnetcom.com for mail.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ex-Netcommies:  Mail "forwards" for free forwarding service!
NOT affiliated with EarthLink, Inc.'s Netcom brand identity.
_______________________________________________
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>