fetchmail-friends
[Top] [All Lists]

Re: [fetchmail]fetchmail's last run

2005-03-29 07:20:46
On Mon, 28 Mar 2005 03:55:44 -0500, Payal Rathod wrote:

Hi,
I have fetchmail running every 20 mins. Sometimes due to bad link or 
a big mail stuck in queue, fetchmail does not work. This is not a 
problem when I am around. But in my absence my boss would need to 
know when was the last time fetchmail ran successfully. Can fetchmail 
trigger an event like sending a mail or updating a (internal) webpage 
to give the time and day etc after a successful run? Or is there any 
other possible solution?

I run/monitor fetchmail with the attached script.  The output looks like:

Tue Mar 29 05:35:00 MST 2005
paul(_at_)pop(_dot_)west(_dot_)cox(_dot_)net: 14 messages (66536 octets)
nancy(_at_)pop(_dot_)west(_dot_)cox(_dot_)net: 1 message (13134 octets)
Tue Mar 29 05:50:00 MST 2005
paul(_at_)pop(_dot_)west(_dot_)cox(_dot_)net: 17 messages (144311 octets)
Tue Mar 29 05:56:00 MST 2005
paul(_at_)pop(_dot_)west(_dot_)cox(_dot_)net: 6 messages (26868 octets)
Tue Mar 29 06:06:55 MST 2005
paul(_at_)pop(_dot_)west(_dot_)cox(_dot_)net: 12 messages (76880 octets)
Tue Mar 29 06:08:00 MST 2005
paul(_at_)pop(_dot_)west(_dot_)cox(_dot_)net: 4 messages (15677 octets)
Tue Mar 29 06:08:27 MST 2005
Tue Mar 29 06:09:23 MST 2005
paul(_at_)pop(_dot_)west(_dot_)cox(_dot_)net: 1 message (5463 octets)

If multiple times appear without downloaded E-mail, then a problem is
very likely.

Because of the "--expunge 50" argument, totals aren't accurate when more
than 50 messages/mailbox are downloaded.

        -Paul

Attachment: fetchit
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>