当我在特定邮件文件夹中发送电子邮件进行培训时,是否可以通过邮件中的Apple脚本来更新规则来对新闻稿进行排序?
答案 0 :(得分:0)
我不确定将邮件移动到另一个文件夹是否会触发附加到此文件夹的规则,但是如果需要,您可以手动触发此规则:
将其另存为新邮件规则并将其连接到您的文件夹 trainNewsletter ,它应该收到电子邮件sender
并将其添加为from is equal to
- 规则条件规则时事通讯:
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
repeat with thisMessage in theMessages
-- getting the sender of the email
set theSender to sender of thisMessage
-- setting the sender as a rule condition of rule "Newsletter"
tell rule "Newsletter"
make new rule condition with properties {header:"", expression:theSender, rule type:from header, qualifier:equal to value}
end tell
end repeat
end tell
end perform mail action with messages
end using terms from
享受,迈克尔/汉堡