Bold Text

Checking multiple mailboxes


mailpath=($HOME/Mail/mbox'?new mail in mbox'
HOME/Mail/tux.u-strasbg'?new mail in tux'
$HOME/Mail/lilo'?new mail in lilo'
$HOME/Mail/ldap-fr'?new mail in ldap-fr')


for i in ~/Mail/Lists/*(.); do
  mailpath[$#mailpath+1]="${i}?You have new mail in ${i:t}."

Note, that this solution expects mboxes below ~/Mail/Lists/. I you have got Maildirs, change the globbing qualifier from (.) to (/).

Melbourne SEO Services | USA Property Investment | Airless Spray

examples/mathpath.txt · Last modified: 2015/10/10 01:39 by justgerrardz