procmail
[Top] [All Lists]

Re: From

2001-05-12 08:57:39
At 9:06 AM -0400 5/12/01, Glen Solsberry wrote:
I know this is a silly question, but how do I get the From field?  I
don't need From:, just From (like, the 'actual' sender of the message).
I've looked everywhere that I can think for this should be simple
answer, but I can't find what I'm looking for.

--
Glen Solsberry

I'm a novice at this but have used the following:

# =========================================================
# This code extracts the most likely FROM address
# from the message. The order of the search is Reply-to,
# From_, Sender, From and if none found, then as a last
# resort, call `formail'. You would usually use the
# returned value for logging purposes.
# =========================================================

:0
*$ ! ^Reply-to: *\/$NSPC.*
*$ ! ^From: *\/$NSPC.*
*$ ! ^Sender: *\/$NSPC.*
*$ ! ^From *\/$NSPC+
{
    FROM = `formail -xFrom:`
}
:0 E
{
    FROM = $MATCH
}

---------- Race Walking ONLINE at http://www.racewalk.com ----------
   Reply to Justin Kuo jkuo(_at_)usatfne(_dot_)org or 
jkuo(_at_)meditech(_dot_)com
     home 617-731-9889  FAX 786-513-8170  work 781-774-5410
--- Call the N.E.W. Hotline 781-433-7142 for latest RW schedules ---
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • From, Glen Solsberry
    • Re: From, Lawrence Mitchell
    • Re: From, Justin Kuo <=