![fdm 和 msmtp:将消息标记为已读](https://linux22.com/image/84229/fdm%20%E5%92%8C%20msmtp%EF%BC%9A%E5%B0%86%E6%B6%88%E6%81%AF%E6%A0%87%E8%AE%B0%E4%B8%BA%E5%B7%B2%E8%AF%BB.png)
我已经安装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" }