A script to remove duplicate messages from Mail.app
Dec 27, '03 03:14:00PM • Contributed by: mpetit
Some bug in Mail.app of Panther leads to multiple downloads of the same messages (at least in my configuration). It's a pain to manually remove all these massages again and again. Luckily, I found
Andreas Amann's Mail Scripts. There is an AppleScript called "Remove Duplicate Messages" (based on the Message-ID header). You can follow his Panther-specific installation instructions.
Because I wanted only this script, I just removed the part of the script which is above
-- now, on to the fun part... and stored it in ~/Library/scripts/Mail Scripts. In Mail.app, select the menu item "Update Scripts Menu" then select all messages to be analyzed for duplicates, go back to the Scripts menu, and choose "Remove Duplicate Messages." The script then creates a new mail folder and moves all duplicate messages into this folder.