At 23:39 2008-09-15 -0400, Shane wrote:
I had the following recipe and all that happened was a blank line appended
to the file. It looked like a MATCH was found but nothing assigned. Why is
that ?
:0:
*^From:.*Shane
| echo "$MATCH" >> file
You received a true result from the condition line, but there is no MATCH
assignment construct. If your recipe were written to assign the matching
string, it would look like:
:0:
*^From:.*\/Shane
| echo "$MATCH" >> file
Note that in your recipe above, had $MATCH been properly set by a PRIOR
recipe, you would be emitting the result of that assignment.
Lukreme:
I'm guessing your suggestion below places the result in a system defined
file called LOG (which also appends rather than ammends) , rather than
into LOG as an environmental variable which then becomes the file name ?
from 'man procmailrc'
LOG: Anything assigned to this variable will be appended to $LOGFILE.
You might want to spend some time checking out the procmail man pages.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
____________________________________________________________
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