On Thu, 31 Oct 2002, Tom Allison wrote:
Udi Mottelo wrote:
On Wed, 30 Oct 2002, Tom Allison wrote:
I must be really dense.
I checke man procmailrc and man procmailex and there is nothing
that mentions "FROM_" and yet I see it used frequently.
Exactly what does this do? Can someone provide an example?
In the Email jargon this is the line that start with "From ".
The folder is one long (or short) file which contains messages.
What separator between the messages is: NEWLINE character then
the word "From" with capital "F" and SPACE character.
For examples look in yours mbox by less(1). You will see that
messages start with:
That makes sense. Thank you. That also explains why everyone is
so keen on a From at the beginning of the email.
Can I press my luck?
If I'm working up an auto-reply I want to be able to extract a
return address. Initially I was thinking I would just grab that
first From line.
But I did a test and set up some procmail rule to forward email...
The From line does't match what's in the end-client. So I assume
the 'From ' isn't what I should be using for a real return address.
Suggestions?
The procmail's FAQ suggests to extract the address by
formail -rt
Also, read the formail man page about this flags (-r -t) it
will save your time (:-)
If you want to see what happend, save a mmessage in file,
then run formail on this file:
formail -rt < file
BTW(1): Try to remove the From_ line and run formail again(?)
formail < file
formail -rt < file
BTW(2): a nice URL about From_ is:
http://www.qmail.org/man/man5/mbox.html
BTW(3): it is recommended to read (in the same place) about
the maildir - strong.
Bye,
Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail