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

搜尋 Mozilla 技術支援網站

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

了解更多

How to I configure a filter to delete all messages from a certain 'reply to' address?

  • 5 回覆
  • 1 有這個問題
  • 最近回覆由 sfhowes

more options

I am able to set up message filters to delete incoming messages from specific email addresses, names, subjects, etc., but I need to set one up to delete everything coming from a particular 'reply to' address. This spammer uses different 'From' names and addresses, so that's no help, but the 'reply to' address remains constant in all messages, and that is what I want to target. But 'Reply to' is not an option when setting up 'Match all of the following' etc. How can I do this? Many thanks!

I am able to set up message filters to delete incoming messages from specific email addresses, names, subjects, etc., but I need to set one up to delete everything coming from a particular 'reply to' address. This spammer uses different 'From' names and addresses, so that's no help, but the 'reply to' address remains constant in all messages, and that is what I want to target. But 'Reply to' is not an option when setting up 'Match all of the following' etc. How can I do this? Many thanks!

由 Janet1593 於 修改

所有回覆 (5)

more options

In the message filter window, click the button with Subject, select Customize..., add Reply-to as a custom header, and then it will appear under Subject with the other criteria.

http://kb.mozillazine.org/Message_Filters#Custom_headers

有幫助嗎?

more options

Many thanks: I had tried this, but didn't know I had to insert a hyphen between reply and to. However, after successfully creating a 'Reply-to' custom header, pasting in the 'reply to' address from the junk email, and saving the filer, I ran the filter and nothing happened. I checked the filter again, and instead of 'Reply-to contains abcdefg' it shows 'Subject contains abcdefg'. I edited it back to 'Reply-to', but when I then clicked OK to save the filter it reverted to 'Subject'. I tried this several times, and it will not save as 'Reply-to'. However, when I click on it to edit, in the editing mode it correctly shows as 'Reply-to', not 'Subject'. Any ideas?

有幫助嗎?

more options

In the attached picture, I've created a filter with the Reply-to custom header. If I close the window and then re-open it, the settings don't change. So I don't know why it's not saved on your setup. However, a worse problem is that the filter doesn't have any effect when it's run manually. I know this, because when I do a Classic Search (Ctrl+Shift+F) on the folder with the same custom Reply-to header, results are found (confirmed by viewing the source, Ctrl+U).

However, after looking at a few Bugzilla reports, the filter seems to work manually on existing messages, after rebuilding the folder index (right-click folder, Properties, Repair Folder), and should also work for new messages received after the filter was created.

As for why you can't save filter edits, is the prefs.js file in your profile read-only, as it might be if you copied the profile from a backup on an optical disc?

有幫助嗎?

more options

Many thanks for this. I tried again, and this time I was able to create a 'Reply-to' heading that looks like yours and is correctly saved. However, when I run the filter on the folder nothing happens. I have tried both 'contains' and 'begins with', but neither configuration deletes the message, which is the action I requested (other filters using 'from' or 'subject', etc. always do delete the messages). I had already 'repaired' the folder before doing this.

由 Janet1593 於 修改

有幫助嗎?

more options

Try with a test that applies a classic search, as in the 2nd picture in my previous reply, that has the same Reply-to condition as the message filter. That way you can confirm if there are messages that should be recognized by the message filter. If you re-run the filter on existing (not new) messages, be sure to first do a folder repair. Perhaps also test with simpler actions like Star or Tag. The option before/after junk classification might also affect a delete action.

The process shouldn't be this complicated, but unfortunately that is the state of things.

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題