On Thu, 18 May 2006, Richard Westlake wrote:

From: Richard Westlake <[EMAIL PROTECTED]>
To: Peter Ip <[EMAIL PROTECTED]>
Cc: [email protected]
Date: Thu, 18 May 2006 20:53:20 +0100 (GMT Daylight Time)
Subject: Re: mailutil not preserving keywords?

On Thu, 18 May 2006, Peter Ip wrote:

I'm trying to convert unix inboxes to MBX. I've just compiled imap2004g and I'm trying to use mailutil. But when I convert I get:

./mailutil copy test2 '#driver.mbx/ttt'
warning: Unknown flag: key1
warning: Unknown flag: $KEY2
warning: Unknown flag: KEY2

Is there a way to preserve keywords/flags?

Peter and list
I have just being going through the same process. Your question reminds me that I am overdue in sending a summery to the list, sorry for the delay folks.

I ended up writing a perl script which did the following.

1) Grep the mbox file for X-Keyword lines and build a list of keyword flags

2) Create an empty mbx format INBOX file with these keyword flags defined. By empty I mean a file with the mbx file header but no mail messages, not a zero size file.

3) Use "mailutil append" to copy the messages from the old mbox to the new mbx format INBOX

This seems to have worked so far without mishap.

All the best


Richard Westlake

School of Crystallography, Birkbeck College, Malet Street, London WC1E 7HX
Tel: 020-7631-6859
----------------------------------------------------------------------
              Truth endures but spelling changes    --  Anon.
----------------------------------------------------------------------



Thanks for the suggestion. I had already thought about that. But we're planning to convert tens of thousands of mailboxes and we're trying to reduce the amount of time we're down. It seems to me that mailutil.c should be able to do exactly what your perl script does, and should do it much faster.

And Mark says it's already in the code :)

Peter

_____________________________________________________
Peter Ip, PhD
Computing and Network Services, University of Toronto
email: [EMAIL PROTECTED]
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to