pte*_*don 44 gmail filter google-apps-script
I need to respond to machine generated emails, except those also sent to one colleague or contain a particular topic outside my responsibility.
I've been trying to set up a Gmail filter which includes all mail from user X but NOT those emails which are also addressed to user Y NOR those containing "junk_term". I want the emails archived and to skip the inbox.
I created a filter like so:
"from:(user_X@address.com) -{user_Y@address.com OR junk_term}"
Run Code Online (Sandbox Code Playgroud)
但似乎没有任何影响,或者没有办法"刷新"当前标记的电子邮件标签.如果上面的代码恰好是正确的语法,并且有一些方法可以刷新所有内容,我也很感激学习如何做到这一点.谢谢.
pte*_*don 42
解决此问题需要了解两件事:
1)如果过滤器已将标签放置在现有电子邮件上,则即使删除了该过滤器,标签也会保留.必须删除标签本身,然后重新创建一个新的过滤器,以使您的编辑"采取".
2)Gmail过滤系统中存在错误.如果你尝试设置复杂的布尔值,如
from:user1@me.com -to:user2@me.com -junk_term
Run Code Online (Sandbox Code Playgroud)
它在初始搜索时可以正常工作,但如果您使用它来创建过滤器,则术语(尤其是NOT)将会出现乱码.
正确的语法(对于chenghuayang的帽子提示 )是忽略to和from.
user1@me.com -user2@me.com -junk_term
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
53936 次 |
| 最近记录: |