marlam / msmtp

SMTP client with sendmail compatible interface
https://marlam.de/msmtp
GNU General Public License v3.0
176 stars 36 forks source link

if no terminal output and on X, then show messages as notifications #149

Closed Konfekt closed 5 months ago

Konfekt commented 6 months ago

This is in particular helpful if the script is run as background process and would never work again without manual intervention, for example at

[ -z "$LKD" ] && \
  err '' "cannot use queue $MSMTPQ_Q : waited $MAX seconds for"\
         "  lockdir [ $LOK ] to vanish ; giving up"\
         'if you are certain that no other instance of this script'\
         "  is running, then 'rmdir' the lock dir manually" '' # lock file still there, give up