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

搜尋 Mozilla 技術支援網站

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

了解更多

when creating a message filter, how do you indicate selection of "ALLmessages@thewebsite.com"? Do you use a star before the @ to indicate every??

  • 2 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 Zenos

more options

I'm creating a message filter for my Twitter account. I want every email from Twitter to go into that single folder. Do I simply type "*@twitter.com" to indicate that?

I'm creating a message filter for my Twitter account. I want every email from Twitter to go into that single folder. Do I simply type "*@twitter.com" to indicate that?

所有回覆 (2)

more options

Use from/ends with/twitter.com

"Begins with" can be used to filter just the local part of email addresses, i.e. the bit to the left of the @.

"Contains" will filter on the target string found anywhere within an email address, so could be used for your twitter filter as well. But "ends with" is more precise.

more options

I suspect the star or asterisk (*) is a legitimate character in an email address, so could not easily be used as a filter wildcard. You'd have to use some trickery to get Thunderbird to understand if you meant a star as opposed to it representing any sequence of characters.

There is a powerful pattern matching mechanism called regular expressions that uses a dot to indicate any character. So if you actually want to detect a dot, and nothing else, you'd have to "escape" the dot to cancel out its special meaning. So your search term would use the syntax \. to indicate a literal dot. Note that Thunderbird doesn't inherently offer regular expression pattern matching, so this talk about regular expressions is intended merely as an illustration of the problem with the asterisk.

So you can see that if we were to use an asterisk in a filter string, we would need a similar trick to allow literal asterisks to be found. "Ends with", "Contains" and "Begins with" are, to my mind, elegant ways around this conundrum.

If you think you might have a use for regular expressions in Thunderbird's filters and searches, you can add these to Thunderbird via two add-ons:

FiltaQuilla Expression Search.