On Fri, 21 Sep 2007 14:47:02 -0500 Scott Moseman
<scmoseman(_at_)gmail(_dot_)com>
wrote:
# cat test.prc
LOGFILE=test.log
TEST=`formail -xFrom:`
TEST2=`formail -XFrom:`
LOG="
$TEST
$TEST2
"
LOG="END OF TEST
"
# procmail -m test.prc < test.msg
# cat test.log
"Thomas Christine" <ScottKaren(_at_)yahoo(_dot_)com>
From: "Thomas Christine" <ScottKaren(_at_)yahoo(_dot_)com>
END OF TEST
From ScottKaren(_at_)yahoo(_dot_)com Fri Sep 21 13:28:58 2007
Subject: We have all medicine you need
Folder: **Bounced**
In this instance, the procmail script works fine. However, the
version that I'm running in my systemwide procmailrc file still use
the From instead of the From: header.
# cat /etc/procmailrc | grep FROM
FROMHDR=`formail -xFrom:`
# | /etc/procmail/scripts/log_from_debug.pl $FROMHDR
The header entries from the debug script are all of the format...
From jr16(_at_)icqmail(_dot_)com Fri Sep 21 14:34:10 2007
So I'm not understanding what's going on with my systemwide
procmailrc. There must be something else I'm doing in there that's
messing formail up somehow.
Uhhh, the "cat" of your /etc/procmailrc shows "-x" which drops the field
name (as shown in your tests). It seems what you want is "-X" which retains
the field name (From: ) in the output.
And, for clarity, use "From_" when discussing "From without the colon" here
on the list and "From:" otherwise.
Gerald
____________________________________________________________
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