Hi Chris,
some IMAP commands (see RFC2060):
to create a mailbox: A CREATE <mailboxname>
dbmail uses a '/' as delimiter for mailbox hierarchy
to append a message to a mailbox: A APPEND <mailboxname> {msgsize in
bytes}<CRLF>
...followed by the message data...
you might have to take a closer look to count the messagesize as every
newline is send as a CR-LF combination thus occupying two bytes.
Hope this helps!
regards roel
Chris Nolan heeft op woensdag, 11 dec 2002 om 05:10 (Europe/Amsterdam)
het volgende geschreven:
Hi all,
I am looking to migrate a fairly large mail-site (currently, users
have Cyrus mailboxes between 1 GB - 5 GB) to DBMail. I've decided on
MySQL + InnoDB for the backend (anyone had success with MySQL 4.0 for
this sort of thing?) but the migration is what I'm currently stuck on.
I want to write an app that will take the Cyrus message files (for
those not familiar, the messages are stored as files, one message per
file, with mail folders being directories under the user's Inbox) and
insert them into the user's DBMail mailbox via IMAP. This way, I can
perform load testing as I migrate.
Does anyone have any pointers as to how I would do this. IMAP guides
and HOWTOs (basically, what commands should I send to the IMAP server
to create mail folders and then add a message given a Cyrus-provided
file) would be greatly appreciated.
Once I'm done, I'll post Cyrus vs DBMail benchmarks for all to see!
Chris
_______________________________________________
Dbmail mailing list
Dbmail@dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail