All,

We are migrating our existing mail and webmail systems to a solution based on
Maildir and IMAP (so our Webmail doesn't POP email off onto it's own store
anymore) and are looking at ways of making the migration as transparent as
possible for our customers.  The good news is that both our existing mail store
and our Webmail system (mailman.cgi) use a single message store (i.e. one
message per file) the same way that Maildir stores messages.  The only
difference is the file name formats and in the case of our Webmail store the
\r\n line terminators.  The file name formats are as follows:

   Mail store: timestamp.procid.hostname;size
Webmail store: user%40pop3server%2etimestamp%2eprocid%2ehostname%3bsize

So, anyway I did a test and copied an inbox off our existing mail store and
copied them directly into a Maildir folder called oldmail (under the 'cur'
sub-directory) and hey presto - my IMAP client simply recognised all the email
and Courier created and updated a 'courierimapuiddb' file.  I didn't need to
rename the files or anything.  I then copied the files and added :2,S on the
end of the filenames and my IMAP client saw them all as read!  For the Webmail
store I copied the files again to a folder and then coverted the \r\n to \n and
again it all worked with no file renaming etc.  And Courier happily created a
'courierimapuiddb' file with the orginal file names etc.

So, I guess my question is - Are there any problems or issues we might face with
copying files into a Maildir directory without the standard Maildir filename
format?  I know the tags on the end of the file of course matter but what about
before the ':'?  If we can simply copy the existing mail store files across to
the Maildir Inbox and the existing Webmail store to an 'Old Webmail' folder
(stripping the \r's on the way) then this will make migration significantly
easier.  And since we know the last login time of all our users we can apply
the :2,S tags to already POP'd messages to mark them as read!

It wouldn't be too hard I guess to rename the files to standard 'Maildir' file
name format - but a simple copy would be easier?

Any advice would be welcome.

Cheers,
Ray



-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to