Hi all,

My apologies if this has been discussed before, but a quick search didn't turn
up anything, and this doesn't appear to be a feature presently.

What i'd like is for mbsync, once it has parsed the config and options, to do
its usual business and instead of then exiting, wait some amount of time and
repeat this forever.

I imagined that this would involve wrapping some part of the end of main in
main.c with while (1) { [...] sleep(<time>); }, but naive experiments give me
segfaults and i'm not sure quite where to begin. Hopefully this is something
easy to do, does anyone have any insights?

As for my motivation: mbsync calls out to gpg to load a password. I want it to
keep that password cached in its memory so that gpg-agent can relock the
session after the time out but mbsync can keep polling in the background,
instead of having to keep gpg-agent allowing future requests indefinitely and
the entire mbsync process running on some external timer.

Thanks for your time and consideration,
yours &c.,
tslil


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to