为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Mail filter won't match both begins with and ends with "To" field.

  • 3 个回答
  • 1 人有此问题
  • 10 次查看
  • 最后回复者为 Toad-Hall

more options

I'm trying to create a mail filter that matches mail that is only sent to me. i.e. The "To:" message header contains only my email address, and no others.

I've tried "To"+"is"+"my@email.address", but that still matches when there are other addresses in the To field. I've also tried 2 filter lines: 1) "To"+"begins with"+"my@email.address" 2) "To"+"ends with"+"my@email.address" But that also behaves the same.

Surely this is a bug. Thunderbird 52.7.0 (32-bit)

I'm trying to create a mail filter that matches mail that is only sent to me. i.e. The "To:" message header contains only my email address, and no others. I've tried "To"+"is"+"my@email.address", but that still matches when there are other addresses in the To field. I've also tried 2 filter lines: 1) "To"+"begins with"+"my@email.address" 2) "To"+"ends with"+"my@email.address" But that also behaves the same. Surely this is a bug. Thunderbird 52.7.0 (32-bit)

所有回复 (3)

more options

You have misunderstood the use of "starts with" and "ends with".

Each address is parsed separately, so the filter is applied to each addressee in turn, not to the string containing all the addresses. "starts with" is equivalent to a wildcard for the domain part of the address. "ends with" is a wildcard character for the local part of an address. "contains" allows you to specify a substring anywhere in the address.

So your own address will always match both your "ends with" and "starts with" conditions, regardless of its position in a list of addressees.

Try filtering on other peoples' addreses. (recipient is not me). When you have dealt with messages addressed in any way to someone else, what's left over must be for you alone. So you may need two filters in order to apply specific actions to the two classes of messages.

more options

Okay, I understand that now.

I've now tried a new way. I have updated my Personal Address book to ensure it does not contain my own email address. I now have 2 filter lines: To: + isn't in my address book + Personal Address Book To: + is + my@email.address

But it still doesn't seem to work. It's matching correct messages that only contain my name in To. but it's also matching other emails where To also contains addresses from my Personal Address Book.

Can you advise if this should work, or have I misunderstood another filter aspect? Thanks.

more options

Are you saying that if you get an email which is sent to a group of people and you are one of the email address, you do not want this to be picked up?

You only want emails that are ONLY send to you; no one else is in the TO or CC field?

So you are trying to filter emails ONLY to you and to separate from other emails received where you are in a group of recipients?

The problem is that you are in both types. But the other recipients of same email are not,

What happens if you try to filter the group ones where there is more than one recipient. If in address book then move to X folder. As other recipients of email are in the address book, then those emails will get moved. If you have email only to you and you are not in address book then it will leave you in Inbox.