The post-sync hook.

David Soulayrol david.soulayrol at gmail.com
Sat Aug 21 17:48:53 BST 2010


2010/8/16 David Soulayrol <david.soulayrol at gmail.com>:
> Hello,
>
> offlineimap provides two hooks : one before synchronisation occurs,
> and a second one after it has ended. I'd like to do exactly what's
> proposed in the detailed configuration sample: I'm already using the
> first hook to do filtering on the server side using imapfilter and I'd
> like to use the second one to nofity myself about synchronisation
> result.
>
> However, I don't know if there is a way to provide interesting
> arguments to the program called in this hook, like the number of
> downloaded mails or the number of mails flagged new or unseen. If such
> kind of information cannot be passed to the program called, I guess it
> must be gathered manually. Has anyone plugged such a functionality?
> What do you display in notification, and how are you doing to achieve
> this?

For the record I answer myself that there seems to be no way to pass
arguments to the hooks. However there are some good tools that do
compute new mails. Among them, I think mailcheck is the simplest and
perhaps the quickest.

-- 
David




More information about the OfflineIMAP-project mailing list