Comments (14)
Dovecot stores UIDs in a uidlist
file. I've been working on a project similar to maddy, on and off (maddy is better!), and implemented a parser for it here: https://gitlab.com/lupine/crockery/tree/master/internal/imap/uidlist
from maddy.
Probably we would have to store message using native line separators to reduce possible interoperability problems
No, MIME says you MUST use CRLF. Using non-CRLF line endings with MIME messages leads to various issues including DKIM signature breakage.
from maddy.
go-imap-maildy is ready for use. Integration is blocked by #259 since it was written for v2.
from maddy.
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
from maddy.
What's up with https://github.com/emersion/go-imap-disk? Can we use it? (of course, we need to finish it first)
from maddy.
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).
from maddy.
https://github.com/luksen/maildir
Except that we also need some way to store UIDs and some other meta-data (custom flags, internal date).
from maddy.
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).
from maddy.
Are the UIDs the only metadata we need to save?
from maddy.
Mailbox-related: UIDVALIDITY, UIDNEXT
Message-related: flags, RFC822 size [1], internal date [2], UID
[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?).
[2] - Probably FS "modification time"?
from maddy.
Related discussion: https://dovecot.org/list/dovecot/2013-May/090499.html
The original (djb) definition of Maildir assumed that messages would be written to the maildir with LF line endings, and both MTA and POP server would translate back to CRLF as needed. Dovecot (as a POP server) can deal with messages in either format, and should always return them to clients with CRLF.
It mentions POP, but I think it applies to IMAP too.
from maddy.
Gah that is annoying.
Also note that:
mail_save_crlf setting controls if mails are saved as CRLF or LF to storage.
from maddy.
Started some work here.
https://github.com/foxcpp/go-imap-maildir
Not high priority though, go-imap-sql is working reasonably well.
from maddy.
Blocked by foxcpp/go-imap-maildir#1 since we need to use go-imap-mess "external update" adapter for maddyctl synchronization.
from maddy.
Related Issues (20)
- Allow Maddy to send SMTP TLS reports
- the relay server fails to connect to the recipient, how to automatically switch to a new relay server
- unknown config block: local_tls HOT 6
- IMAP LOGIN get "01 NO Authentication disabled" withou any error log on the server side HOT 4
- Add support for inwx dns-01 challenge
- Feature request: Single Sign On (SSO) support HOT 2
- auth_map: unknown module or global directive HOT 2
- Add support for delegating DNS-01 challenge to a different domain HOT 1
- Link to DNS configuration on Docker tutorial page is broken HOT 1
- 'SEARCH UNSEEN' doesn't return unseen messages
- Fails to import config from file using absolute path HOT 1
- maddy.email is down HOT 1
- Empty "From" address results in rejection (5.1.7 Malformed address) HOT 1
- Documentation Typo in 'Multiple domains configuration'
- Certificate subject names checked when `min_tls_level` is `encrypted` HOT 1
- Maddy systemd service tries to start before network interfaces are up
- Fail check with go test or test/run.sh HOT 2
- Gandi dns-01 challenge fail: 400 Absolute rrset_name must end with mydomain.org HOT 8
- Quarantined message discarded HOT 3
- Bug report: empty smtp.mailfrom on Delivery Status Notification (DSN) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maddy.