gmail imap
If you are a Gmail user, you’ve probably noticed the annoying unread message count for the Spam folder. It’s even worse when you use an IMAP client to access your email, and then try and use a search folder for unread mail… which gives you nothing but spam.
如果您是Gmail用户,则可能已经注意到“垃圾邮件”文件夹中令人讨厌的未读邮件数。 当您使用IMAP客户端访问电子邮件,然后尝试使用搜索文件夹来处理未读邮件时,情况更糟……这只会给您带来垃圾邮件。
What we’ll do is use Gmail’s filter capabilities to create a filter that automatically marks spam messages as read, preventing the unread count from appearing anywhere.
我们要做的就是使用Gmail的过滤器功能来创建一个过滤器,该过滤器会自动将垃圾邮件标记为已读,从而防止未读邮件出现在任何地方。
This method should work for both Gmail as well as any IMAP client that you use. (Note: This only works if you are using the new gmail interface.)
此方法适用于Gmail以及您使用的任何IMAP客户端。 (注意:仅当您使用新的gmail界面时,此方法才有效。)
Mark All Spam as Read Automatically
将所有垃圾邮件标记为自动
Open up Gmail and then click the link to create a new filter. In the “Has the words” box, enter “in:spam” (without the quotes) as you can see in the image below. You can use the Test Search button to make sure it shows just spam emails.
打开Gmail,然后单击链接以创建新的过滤器。 在“有文字”框中,输入“ in:spam”(不带引号),如下图所示。 您可以使用“测试搜索”按钮来确保它仅显示垃圾邮件。
Now click the Next Step button, and ignore the error message you get. Select the checkbox for “Mark as read”, and then click the Create Filter button. Note that you could auto-delete all spam using this same filter, although I’m not recommending that.
现在,单击“下一步”按钮,然后忽略收到的错误消息。 选中“标记为已读”复选框,然后单击“创建过滤器”按钮。 请注意,您可以使用相同的过滤器自动删除所有垃圾邮件,尽管我不建议这样做。
At this point, all incoming spam will be automatically marked as read. (You’d want to clear out the current spam, of course)
此时,所有传入的垃圾邮件将被自动标记为已读。 (当然,您要清除当前的垃圾邮件)
The best part is that you no longer have to deal with the unread count in your IMAP client either:
最好的部分是您不再需要处理IMAP客户端中的未读计数:
I don’t understand why some of this spam isn’t just automatically deleted.
我不明白为什么其中一些垃圾邮件不会被自动删除。
gmail imap