对于给定的消息,我想在其线程的所有消息的所有消息,例如:查找线程
tell application "Mail"
if content of theMessage contains "merged #" then
# repeat with otherMessage in the thread of theMessage
set background color of otherMessage to green
# end repeat
end if
end tell
如何做到这一点/有没有可能呢?
(我知道我可以在theMessage
邮箱遍历所有的消息和比较对象,但这不是有效的)
Applescript Mail指令不支持线程。解决方法是选择标题包含xxxx的所有消息,然后遍历该列表。 – pbell
@pbell,谢谢。好像我应该使用'将theThreadMessages设置为邮件主题等于邮件主题的邮件箱'。你知道吗,是否有一种方法可以封锁主题(例如去掉所有'fwd:'和're:'等)? – Zelta
而不是“谁的主题等于”,你应该使用“谁的主题包含”。 AS会给你所有关于哪个部分的主题是你正在寻找的信息。 – pbell