Re: [wmii] Mail notification

From: Kai Grossjohann <kai.grossjohann_AT_de.verizonbusiness.com>
Date: Thu, 21 Jun 2007 09:11:34 +0200

"Adam Gray" <adam_AT_bandstand.org.uk> writes:

> That shouldn't be too much of a problem, since I only want to use this
> to check my local mail. I just need an equivalent of fetchmail -c for
> local mail. Mailx would work to a certain extent - it gives an exit
> code of 0 if there's no mail and 1 if there is, but it's messy and
> starts an interactive thing if there is mail, and doesn't have a
> non-interactive mode. So I'm trying to find some kind of solution that
> will work similarly.

I just ran "man mailx" on my Debian box, and got the mail(1) man page.
It has this option:

       -e, --exist
              Return true if mail exists

Kai

Verizon Deutschland GmbH - Sebrathweg 20, 44149 Dortmund, Germany - Amtsgericht Dortmund, HRB 14952 - Geschäftsführer: Donald Badoux - Vorsitzender des Aufsichtsrats: Mark Kearns
Received on Thu Jun 21 2007 - 09:12:01 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:25:14 UTC