I sometimes connect to public Wifi access points that I don't fully trust and don't feel comfortable syncing my email over. I would like write a script to put Thunderbird in an Offline state immediately upon connecting to one of these wireless Internet access points that I have identified as untrusted. Unfortunately, I have been unable to find an CLI option for this.
I think perhaps the simplest solution is to add an additional CLI option to switch Thunderbird to `--offline` mode. This option should ideally take into account whether Thunderbird is already running and switch it's mode to `--offline` or `--online`, as requested, and perhaps do nothing if it's not running, though and argument could certainly be made to launch it directly in Offline mode.