我已经安装fdm
并offlineimap
连接到我们的企业 Exchange 服务器。现在我想要一个在模式匹配时标记已读消息的操作。
答案1
我找到了一种移动和标记的方法:
action "processed" maildir "%h/Mails/work/INBOX.Processed"
# Found here: https://github.com/nicm/fdm/blob/master/examples/f-terbeck.conf
action "mark-read" exec 'mf="%[mail_file]"; mv "${mf}" "${mf%%/*}/../cur/${mf##*/}:2,S"'
match "^From:.*test@xyz\.de" in headers actions { "processed" "mark-read" }