How to stop a cron job sending email

Derek Broughton news at pointerstop.ca
Sun Nov 2 21:55:57 UTC 2008


Erik Christiansen wrote:

> On Fri, Oct 31, 2008 at 02:16:45PM +0200, Johann Spies wrote:
>> On Fri, Oct 31, 2008 at 10:02:27PM +1100, Karl Auer wrote:
>> > I'm curious though - why on earth are you killing and restarting
>> > fetchmail every five minutes?!?
>> 
>> I collect mail (by imap) every 5 minutes.  It happened in the past
>> due to a slow network connection that the previous process did not
>> finish in 5 minutes.
> 
> Even though asynchronously killing fetchmail doesn't seem to have
> resulted in the loss of partially transferred emails, it remains an
> unnecessary potential hazard, I suspect. The additional supression of
> error messages is not a particularly positive attribute either, as
> others have commented.
> 
It should _never_ (well, you can't guarantee these things, but that's
fetchmail's aim) lose messages, but it could very easily download messages
more than once.
-- 
derek





More information about the ubuntu-users mailing list