procmail
[Top] [All Lists]

Re: formail syntax?

2007-09-21 12:50:02
On 9/21/07, LuKreme <kremels(_at_)kreme(_dot_)com> wrote:

Sorry that I did not clarify my problem.  I'm keeping the "From"
and the "From:" headers in my output as a sample to show my
problem.  From my shell, I get the "From:" header (note colon),
but from my procmail script I get the "From" header (no colon).
They contain different information, and I'm not sure why I get a
From: via shell (which is what I want) by From via procmailrc...

Duplicate the test I ran (I provided everything but the sample email)
on your setup and see what your results are.  And then reread what I
said, either you're doing something wrong or your formail is borked.


# cat test.msg | formail -xFrom:
 "Thomas Christine" <ScottKaren(_at_)yahoo(_dot_)com>
# cat test.msg | formail -XFrom:
From: "Thomas Christine" <ScottKaren(_at_)yahoo(_dot_)com>

# 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.

Thanks,
Scott
____________________________________________________________
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

<Prev in Thread] Current Thread [Next in Thread>