View Single Post
Old 22 Jan 2023, 03:45 PM   #5
BritTim
The "e" in e-mail
 
Join Date: May 2003
Location: mostly in Thailand
Posts: 3,095
Quote:
Originally Posted by qwertz123456 View Post
I'm having trouble with the duplicate rule as that seems much more complex. Any ideas if that code is correct? Not sure how I would test it though.
My advice on the duplicates test is not to bother until you find you need to. Fastmail usually resolves the problem for you. If delivering both messages to the same folder, Fastmail recognises the duplication, and does duplicate message suppression automatically on your behalf.

If you do need the test, use fileinto "duplicates" (or similar) to verify a duplicate was received and the test worked. Generate the duplicate by sending a message to two recipients (your regular account, and another that simply forwards the message to your regular account)
BritTim is offline   Reply With Quote