Oliver Andrich <oliver(_at_)andrich(_dot_)net>:
Sadly, this can't be done, cause fetchmail returns an exit code of 0 if it has
sucessfully fetched some mail. But it also returns the same exit code if it
can't
connect to the mailserver, cause no link is down ot not existend. Wouldn't be
an exit code of 2 be the right choice. The fetchmail man page tells me about
exit code 2, that it is return in case fetchmail couldn't open the socket.
Well, so you could think that this is the case if no connection is available
at all.
Any comments? Am I complete wrong or just don't understand something. Or do I
try to overstress fetchmails abilities?
If you sent a clean patch to change this behavior, I might take it.
--
<a href="http://www.tuxedo.org/~esr/">Eric S. Raymond</a>