On Monday 21 December 2009, Stroller wrote: > A bit of Googling [1] shows me that: > > 0 8 * * * /usr/local/bin/get_iplayer -z "Daily Summary" 2>&1 | grep -v > ^Added | mailx -s "iPlayer Daily Summary" stroller > > which gives a neater subject line. > > However the "from: " address is strol...@host.long.domain, which I > feel is a little untidy. > > It's probably OCD of me to care, but I would prefer the mails to > appear in my mail client as from "iPlayer".
Some (don't know about gentoo's) versions of the "mail" command have a "-r" switch that lets you specify the "from" address. In any case, if, instead of mail/mailx, you use a sendmail-compatible agent like ssmtp, there you'll definitely have a -r option.