GNOME Bugzilla – Bug 324068
Add ability to enable/disable account programmatically
Last modified: 2012-05-18 13:00:02 UTC
It should be possible to programmatically disable and enable accounts. A use for this would be, in conjunction with NetworkManager, to only enable remote accounts if there is a network, or only enable a certain account if the VPN is enabled.
Hey Bastien, Thanks for the bug report. A patch for such a thing is already on the evolution-patches list, although it does not do exactly what you mentioned above. What it does is when the Network Manager signals that it the network is online/offline, Evolution switches to online or offline. Shreyas is working on it, and am adding him to the CC list
Adding the patch for reference: http://mail.gnome.org/archives/evolution-patches/2005-December/msg00082.html It doesn't fix the VPN part of the problem though.
Hmmm, I guess i could add the vpn part if NM has a way to export this data. Ofcourse this also means marking an account as being vpn only. Hmmm.. do able, Partha what do you think ?
are there apis available available??
There doesn't seem to be any API in NetworkManager for that right now. I created bug 348915 to track it though.
See http://bugzilla.gnome.org/show_bug.cgi?id=348915#c1
Boils down to bug 510909. *** This bug has been marked as a duplicate of bug 510909 ***