為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to remotely toggle offline mode in thunderbird

  • 3 回覆
  • 4 有這個問題
  • 4 次檢視
  • 最近回覆由 Matt

more options

Is it possible to toggle Thunderbird's offline mode from the command line? (on linux.)

The idea is to execute such command when certain connection/disconnection events happen (e.g. triggered by NetworkManager).

Is it possible to toggle Thunderbird's offline mode from the command line? (on linux.) The idea is to execute such command when certain connection/disconnection events happen (e.g. triggered by NetworkManager).

所有回覆 (3)

more options

If internet connectivity is lost then Thunderbird should automatically into offline mode.

Offline mode can be triggered in Thunderbird whilst it is running and in online mode via clicking on the small two blue screen icon located bottom left in Status bar. When in offline mode it will become a two black screen icon.

clicking on the two black screen icon will go back to online mode.

Command line to start in offline mode etc:

Offline settings: 'Edit' > 'Preferences' > 'Advanced' > 'Network & Disc Space' tab

  • click on 'Offline' button
  • make choices
  • click on all 'OK's.
more options

Toad-Hall said

Offline mode can be triggered in Thunderbird whilst it is running and in online mode via clicking on the small two blue screen icon located bottom left in Status bar.

Yes, but is there a way to toggle Thunderbird's offline mode from the command line?

I want to control it's offline/online state from another program.

more options

There is a command line switch, -offline, but it is meant for starting Thunderbird. I have no tested if it does anything if Thunderbird is already running and there is nothing for the reverse at all that I can see. https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options