搜尋 Mozilla 技術支援網站

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

了解更多

Opening thunderbird from cli in a mailbox with space in name

more options

With a running thunderbird (115.3.2), I can use the CLI command

thunderbird -mail "imap://...@.../testing"

to have it switch to the IMAP folder "testing".

However, I cannot get it to work with folders containing a space, e.g.

thunderbird -mail "imap://...@.../00 Current" thunderbird -mail "imap://...@.../00%20Current" thunderbird -mail imap://...@.../00%20Current

all fail to switch to the existing IMAP folder "00 Current" (Thunderbird lists the address of this folder as imap://...@.../00%20Current under properties).

Is there any better way to escaping space (as well as other characters)?

Thank you very much in advance!

With a running thunderbird (115.3.2), I can use the CLI command thunderbird -mail "imap://...@.../testing" to have it switch to the IMAP folder "testing". However, I cannot get it to work with folders containing a space, e.g. thunderbird -mail "imap://...@.../00 Current" thunderbird -mail "imap://...@.../00%20Current" thunderbird -mail imap://...@.../00%20Current all fail to switch to the existing IMAP folder "00 Current" (Thunderbird lists the address of this folder as imap://...@.../00%20Current under properties). Is there any better way to escaping space (as well as other characters)? Thank you very much in advance!

所有回覆 (4)

more options

My reading of http://kb.mozillazine.org/Command_line_arguments_-_Thunderbird indicates that the URI must be for a specific email, not a folder. The Current part looks more like a maildir location that an individual mail.

more options

Thanks for the reply. Yes, this was my initial reading, but being a bit desperate for this feature, I just tried it, and it seems to be working flawlessly for folders without a space in them, at least for IMAP. So I wondered if I'm missing a trick with escaping the space character.

Is there any better solutions for this? Perhaps somebody knows a plugin? Maybe running thunderbird in marionette mode may be an option, but I haven't seen much documentation/examples for this. I'd be very grateful for any pointers.

由 Christian Saemann 於 修改

more options

There are lots of suggestions online for escaping spaces on Linux. One is to insert \ before a space, e.g.

00\ Current

more options

Thanks for your reply. Yes, I tried all possibilities that I could think of: %20, backslash in front of space, replacing by underscore, etc. but unfortunately, nothing seemed to work.