francois(_dot_)patte(_at_)math-info(_dot_)univ-paris5(_dot_)fr writes:
1) I want to make autoreply to some mails, here is my recipe:
:0
* !^FROM_DAEMON
* !^X-Loop: $MOI
|(formail -r -A"Precedence: junk";\
cat $HOME/.procmail/messages)|$SENDMAIL -t -oi
It works, but there an error message that I don't understand:
procmail: Executing "(formail -r -A"Precedence: junk";\
cat $HOME/.procmail/messages)|$SENDMAIL -t -oi"
procmail: [772] Sat Jun 1 16:28:30 2002
procmail: Error while writing to "(formail -r -A"Precedence: junk";\
cat $HOME/.procmail/messages)|$SENDMAIL -t -oi"
procmail: Assigning "LASTFOLDER=(formail -r -A"Precedence: junk";\
cat $HOME/.procmail/messages)|$SENDMAIL -t -oi"
When in reply mode without the -k option (keep body), formail stops
reading as soon as it sees the blank line that ends the header.
By default, procmail considers it an error for a program action to not
read the entire message, generating an error message like the "Error
while writing to ..." message above. The best solution is to tell
procmail to only feed the header of the message to the pipe, as that's
all that's needed, by putting the 'h' flag on the recipe.
:0 h
* !^FROM_DAEMON
....etc
2) At the end of the total recipe I want that the mail goes to a special
folder:
$HOME/mail/poubelle/
and I don't understand the name of the file saved in this folder, for
instance:
1022917128.30146_0.messages ) | $SENDMAIL -t -oijupiter
...
This is a known bug with procmail versions 3.20 and 3.21. Upgrade to
version 3.22.
Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail