"Adam Gray" <[EMAIL PROTECTED]> 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



Reply via email to