Hi all,
I have just started to learn about procmail. I was trying to write
something simple, that greps the which sender the mail from. I tried the
whole night. Can someone tell me what's wrong with the following code:
# Please check if all the paths in PATH are reachable, remove the ones that
# are not.
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/Mail # You'd better make sure it exists
DEFAULT=$MAILDIR/mbox
LOGFILE=$HOME/procmail.log
LOCKFILE=$HOME/.lockmail
SENDER=`formail -rt`
:0
| echo "$SENDER" > $HOME/test.log
I was expecting to get only the email address like joe(_at_)serdang(_dot_)com
But I got the following:
To: joe(_at_)serdang(_dot_)com
Subject: Re: test
References:
<Pine(_dot_)LNX(_dot_)4(_dot_)10(_dot_)10009050020210(_dot_)4425-100000(_at_)crystal(_dot_)comp(_dot_)nus(_dot_)edu(_dot_)sg>
In-Reply-To:
<Pine(_dot_)LNX(_dot_)4(_dot_)10(_dot_)10009050020210(_dot_)4425-100000(_at_)crystal(_dot_)comp(_dot_)nus(_dot_)edu(_dot_)sg>
Thanks,
Joe
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail