Return code of offlineimap
Ng Oon-Ee
ngoonee at gmail.com
Thu Jan 7 10:13:45 GMT 2010
On Thu, 2010-01-07 at 10:57 +0100, Tassilo Horn wrote:
> Ng Oon-Ee <ngoonee at gmail.com> writes:
>
> >> So it seems, offlineimap returns a zero exit code when it cannot run.
> >> Could that be changed to return non-zero exit codes when it couldn't
> >> run properly, like 1 for already running, 2 for a network problem, 3
> >> for a crash?
> >
> > I simply check using pidof /usr/bin/offlineimap
>
> Sure, yau can also check for the lock file in the metadata directory,
> but both are more workarounds than solutions IMO.
Fair enough. Shouldn't be a difficult fix anyway (spoken from a position
of total ignorance of the code-base).
More information about the OfflineIMAP-project
mailing list