From: Tomas P. <tp...@so...> - 2005-11-13 21:16:52
|
On Sat, 12 Nov 2005, Bill Kearney wrote: > Hi all, (is anyone around?) According to the mailing list archive the last message was 4 days before... > What's a good way to manage a mailbox that's got a ton of damaged headers? Don't know sorry. > That is, moving from a uw-imap server to one running cyrus. mailsync > reports a number of errors with damaged headers. I'd like to find the most > effective way to identify which messages are involved. Try the debug and verbose switches of mailsync (mailsync --help), they should give you quite some information about which message if being processed. > And eventually find a way to get the 'fixed enough' to let cyrus accept them. > Basically it appears an install of hotwayd (a pop daemon to pull from > hotmail) somehow managed to mangle a fair number of messages. Putting some > high-ascii gibberish in headers. I'm surprised uw-imap let me read them at > all but that's a different issue. > > Is there a way to use mailsync such that it moves the mail one-way instead > of syncing? As in, move everything "it can" from the uw-imap server over to > cyrus leave behind only the stuff it couldn't hande? I'd try some half-automated search/replace such as load the mailbox into a text editor, find out what's wrong and let the editor half-automatically fix it (I'd use vim's "record/replay" functionality to achieve that) > The uw-imap distribution comes with 'mailutil' that supposedly handles some > of this but it's syntax is rather difficult to master. Even harder than mailsync's? /me is astonished *t -- -------------------------------------------------------- Tomas Pospisek http://sourcepole.com - Linux & Open Source Solutions -------------------------------------------------------- |