On Wed, 15 Mar 2006, Tom Lee wrote:
Hello,
I just noticed taht formail works only if /etc/passwd contains the valid
login shell.
if I change /bin/bash to /bin/false, formail in .procmailrc will fail.
If you have (and you have) a line like this:
| /usr/bin/formail -I "Content-Type: text/plain;"
The ';' is a trigger to shell. Now. If the shell is
/bin/false procmail will drop the pipe.
Bye,
Udi
What I want to do is to make sure
all incoming email header will become
Content-Type: text/plain
Obviously formail cannot be used if no vaild login shell is allowed for that
specific user.
I wonder if there is any other way to get around this problem.
thanks.
Tom
From: Tom Lee <tom_lee01(_at_)hotmail(_dot_)com>
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: procmail: Error while writing to formail
Date: Tue, 14 Mar 2006 23:17:24 +0000
Hello,
I want to change the header Content-Type: for the incoming email from a
specific domain.
but I always get the writing errors in procmail.log
what could be the reason?
here is my .procmailrc
HOME=/home/abc
LOGFILE=$HOME/Mail/procmail.log
MAILDIR=$HOME/Mail
LOCKFILE=$MAILDIR/lockfile
:0 c
* (^From.*domain.com)
{
:0 Afhw
| /usr/bin/formail -I "Content-Type: text/plain;"
:0 c
problem_mail
}
The error in procmail.log is:
procmail: Error while writing to " /usr/bin/formail -I "Content-Type:
text/plain;""
procmail: Rescue of unfiltered data succeeded
is there any way I can do to fix this problem?
thanks
Tom
____________________________________________________________
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
____________________________________________________________
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
+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.
____________________________________________________________
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