procmail
[Top] [All Lists]

Re: Date in address of outgoing email?

2000-12-24 09:08:33
I am trying to include the date in a YYYYMMDD format on outgoing email using
the command line function "date +%Y%m%d". Here is what I have tried so far.

filename = $HOME/procmail/today-k12news.txt
thedate = "date +%Y%m%d"

:0 bw : $filename.LOCKEXT
*^From:(_dot_)*k12news(_at_)k12(_dot_)com*
*^Subject:.K12 News
| perl -p -e 's/\.{10,}.*?\.{10,}//sg' | \
tee $filename | \
mail -s "K12 News" 
distro-list$thedate(_at_)chandler(_dot_)k12(_dot_)az(_dot_)us -f
basilr(_at_)chandler(_dot_)k12(_dot_)az(_dot_)us


Any hints?

What actually happes?

Take "-f" off the mail command.

-- 
Cheers
John Summerfield
http://www2.ami.com.au/ for OS/2 & linux information.
Configuration, networking, combined IBM ftpsites index.

Note: mail delivered to me is deemed to be intended for me, for my disposition.



_______________________________________________
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>