osx applemail imap mbox emlx duplicate emails email messages
April 16, 2009 6:33 AM
Subscribe
If I make changes using a command-line utility to an mbox file that is the local cache of an IMAP account, how can I get those changes uploaded to the server? (Mac OS X 10.4, Mail.app, Perl script.)
I use Mail.app for my Gmail and work email, both of which use IMAP. I have a local cache of everything that gets synced when I'm connected to the internet.
I have a bunch of duplicate messages within both of these accounts. I found
a Perl script that will go through all the emlx files in each local mbox directory (i.e., the local cache) and delete dupes. But I'm thinking that when I connect again and Mail.app sees that there's a bunch of messages on the server that aren't in my local cache, it'll just download them again.
How can I get Mail.app to tell the servers that the messages that are missing on the local copy should be deleted from the server copy, too?
I've tried using
this AppleScript that deletes the messages within Mail.app, but it's way to slow on my machine. The command-line Perl script is so much faster.
posted by DLWM to computers & internet (3 comments total)
posted by devnull at 7:38 AM on April 16