Show recent e-mail in screen title bar or status bar

"lastmail" parses a procmail log file and extracts information about the most recent received e-mail, printing it in the form definbox: Logwatch for lamp (Linux) (8 minutes ago). This is useful as a backtick substitution in screenrc:
backtick 1 30 30 lastmail
hardstatus string "%H %n%?: %t%? %h  %1`"

Files currently attached to this page:

lastmail2.5kB



Entry first conceived on 17 March 2009, 16:19 UTC, last modified on 15 January 2012, 3:46 UTC
Website Copyright © 2004-2024 Jeff Epler