#594515 at: use MAILTO environment variable

Package:
at
Source:
at
Description:
Delayed job execution and batch processing
Submitter:
Jens Stimpfle
Date:
2010-08-27 02:12:04 UTC
Severity:
wishlist
#594515#5
Date:
2010-08-26 15:11:45 UTC
From:
To:
Hi,

it would be nice if one could more dynamically adjust the mail adress standard
out and err are sent to. I've attached a little patch that gives the MAILTO
environment variable preference to all other name sources.

I don't know if I had better included an extra commandline option for that
purpose, but this way it's simpler and perhaps there are some scripts which
make use of this variable anyway (as in crontab, but perhaps it is overkill to
use at and cron together [-; ) and it better fits in the way at receives its
mailnames (LOGNAME, utmp).