procmail
[Top] [All Lists]

Re: Procmail grammar problem

2002-05-28 10:36:34
Marek has this recipe,

| :0
| |./tester

where ./tester is this script:

| #!/bin/bash
|
| rm -rf plik*;
| touch plik;

and wonders about these two log entries:

| procmail: Error while writing to "./tester"
| procmail: Assigning "LASTFOLDER=./tester"

| Does anyone know why :
|
| (?) procmail is trying to write something to file "tester".
|
| (??) [it] treats this file as a folder.

Procmail is not trying to write the message text to the file ./tester but
rather to the process that is running ./tester.  Since that script doesn't
read its standard input, procmail can't write to the process, and it considers
inability to write to a pipe action a problem.  When you want to run a program
that you know won't read the input that procmail feeds it, use the "i" flag on
the recipe to tell procmail not to worry about it.

Second, procmail uses the variable LASTFOLDER for the most recent destination
of the message, whether it really is a folder or is the command string of a
pipe action.  Don't let the "folder" in its name throw you.  Procmail is not
treating your script as a folder.





_______________________________________________
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>