Post sync hook only if something was changed?

Sebastian Spaeth Sebastian at
Mon Aug 8 10:28:44 BST 2011

On Wed, 13 Jul 2011 12:25:08 +0200, Vladimir Marek <Vladimir.Marek at Oracle.COM> wrote:
> The postsynchook currently runs every time all folders has been
> processed, no matter if there was or was not any change.
> I would like to have a way to run the hook only if there was a change,
> because I am synchronizing the maildirs to a zip file. That is
> unnecessary and time consuming if there's no change.

>  - make it configurable, that post sync hook runs only if there's change

Yes, I think that option would make most sense. No need to
overcomplicate things. (I've added this to my private tracker at to keep a reminder)

>  - make postsynchook_changed in addition to postsynchook
>  - move the logic to the hook program itself; export some environment
>    variable telling if there was any change ?

It makes sense. Either you submit a patch, or I'll see that I get a
patch after I reduced my queue of outstanding patches a little.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <>

More information about the OfflineIMAP-project mailing list