Complete.Org: Mailing Lists: Archives: offlineimap: July 2009:
Re: Running offlineimap indefinately, log success?

Re: Running offlineimap indefinately, log success?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Subject: Re: Running offlineimap indefinately, log success?
From: Ng Oon-Ee <ngoonee@xxxxxxxxx>
Date: Wed, 29 Jul 2009 21:40:21 +0800

On Sun, 2009-07-26 at 17:25 +0800, Ng Oon-Ee wrote:
> Been using offlineimap for my gmail account for quite a while, and it
> works great, kudos to the devs. I've been doing it through cron to run a
> single instance, which basically calls a small script, which I'll just
> post here for reference:-
> Basically, I have two files whose last modified time indicates the last
> successful AND last unsucessful sync. I display this data on my conky,
> so I can know when my connection is acting up and my maildir isn't
> updating as I'd expect, at a glance.
> I've been thinking about not using a cron job to run offlineimap
> anymore, however, and simply using autorefresh and quick, with a cron
> job to restart offlineimap if its not currently running. However, I'd
> like to be able to somehow log the success or otherwise of my sync. Can
> postsynchook be used for this? (Does it execute only after successful
> sync, does it execute after quick syncs?) Do I have to grep log files,
> and which ones would these be? Thanks for your help.

Sorry to bring this up again, but could someone please give some advise
on this?

[Prev in Thread] Current Thread [Next in Thread]