does anyone know a way how to modify the sync-settings of mail-accounts either from command-line or from an app?
What I want to achieve is that I would like the Pre to use push-mail as long as it is on the charger and has wifi connection and go to manual sync as soon as it leaves the charger.

Any ideas?