-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maildir storage backend #6
Comments
https://github.com/flashmob/go-guerrilla/tree/master/backends implemented multiple backends using a Backend interface just as you did with your https://github.com/emersion/go-smtp#server |
What's up with https://github.com/emersion/go-imap-disk? Can we use it? (of course, we need to finish it first) |
We can use it, but it doesn't use maildir, it uses a bolt database. This is fine too, but a maildir backend would probably be higher priority for compatibility (makes migrating easier). |
https://github.com/luksen/maildir |
Dovecot stores UIDs in a |
We currently want to implement support for Maildir storage by extending https://github.com/emersion/go-imap-disk which uses BoltDB for all meta-data. Personally, I don't like the idea of supporting other servers internal formats in maddy. Also we can't use your code anyway due to incompatible licenses (crockery's AGPL and maddy's MIT). |
Are the UIDs the only metadata we need to save? |
Mailbox-related: UIDVALIDITY, UIDNEXT [1] - Probably we would have to store message using native line separators to reduce possible interoperability problems [research needed], but we should still report RFC822 size with CRLF (Is that right?). |
No, MIME says you MUST use CRLF. Using non-CRLF line endings with MIME messages leads to various issues including DKIM signature breakage. |
Related discussion: https://dovecot.org/list/dovecot/2013-May/090499.html
It mentions POP, but I think it applies to IMAP too. |
Gah that is annoying. Also note that:
|
Started some work here. Not high priority though, go-imap-sql is working reasonably well. |
go-imap-maildy is ready for use. Integration is blocked by #259 since it was written for v2. |
Blocked by foxcpp/go-imap-maildir#1 since we need to use go-imap-mess "external update" adapter for maddyctl synchronization. |
Probably maildir
The text was updated successfully, but these errors were encountered: