對於給定的消息,我想在其線程的所有消息的所有消息,例如:查找線程
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