News for hackers. Stuff that matters.
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by dochtman on Sunday March 01, 2020 @04:10PM (#22459345)
Any IMAP over REST API should just implement JMAP (RFC 8620 and 8621).
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by andris9 on Sunday March 01, 2020 @04:22PM (#22459448)
There is only a handful of IMAP server implementations and there are going to be even fever JMAP servers. It is super bloated, the RFCs 8620 and 8621 are already 200 pages in total. Not an easy thing to integrate with.
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by brongondwana on Sunday March 01, 2020 @04:31PM (#22459510)
To be fair, RFC3501 is 108 pages, and the bis (draft-ietf-extra-imap4rev2-12) is 157 pages. It's a complex problem space.

I'm looking forward to getting JMAP Calendars and JMAP Contacts done, at which point is becomes a much more compelling replacement for multiple protocols.

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by toomuchtodo on Sunday March 01, 2020 @05:47PM (#22459937)
Anything we can do to help in getting those other extensions done?
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by brongondwana on Sunday March 01, 2020 @06:38PM (#22460212)
The next IETF meeting is in Vancouver in late March - we'll be discussing them there. Other than that, get involved on the mailing list, and help review the documents!

https://datatracker.ietf.org/group/jmap/meetings/

https://www.ietf.org/mailman/listinfo/jmap

https://datatracker.ietf.org/doc/draft-ietf-jmap-calendars/

https://datatracker.ietf.org/doc/draft-ietf-jmap-jscontact/

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by inputmice on Sunday March 01, 2020 @04:33PM (#22459527)
The problem JMAP is addressing is quite complex that’s why the JMAP spec is long. I do not however find it to be bloated. On the contrary I actually found it quite easy to read. (I've implemented jmap-mail on the client side.)

One could potentially write JMAP as a proxy to an existing IMAP server (just like your 'imap-api') therefore the current lack of JMAP servers doesn’t really matter.

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by andris9 on Sunday March 01, 2020 @04:43PM (#22459584)
It is easier on the client side as you’d only have to implement the parts you actually need. In server side if you want to expose JMAP then you’d have implement _everything_. You can’t decide for example that as no-one actually copies messages but moves, then you’d skip the copy endpoint.
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by josephg on Sunday March 01, 2020 @05:48PM (#22459949)
I had a chat with Neil Jenkins and Bron about this (two of the authors & WG chairs). That skew is intentional - their rationale is that there's way more email clients out there than email server implementations. So it makes sense to load more of the complexity into the servers.

Of course, until other email servers add support for jmap, the protocol has a bit of a bootstrapping problem. Getting support from gmail + microsoft exchange would be a huge win for jmap, and in the long run email as a whole.

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by chrismorgan on Sunday March 01, 2020 @07:16PM (#22460413)
And indeed, https://proxy.jmap.io/ demonstrates a JMAP proxy to IMAP servers—though note Bron’s comment downthread concerning this (jmap-perl).
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by rakoo on Sunday March 01, 2020 @04:17PM (#22459405)
Indeed. Which is the perfect occasion to ask: who besides Fastmail implements it ?
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by brongondwana on Sunday March 01, 2020 @04:33PM (#22459524)
Right now - not heaps.

https://jmap.io/software.html has a list of some known implementations.

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by detaro on Sunday March 01, 2020 @04:41PM (#22459574)
https://github.com/jmapio/jmap-perl seems the most similar to the project discussed here. Anyone have experience with it?
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by brongondwana on Sunday March 01, 2020 @04:52PM (#22459640)
It was largely written in about a week, a few years ago. It's quite stale now unfortunately. It was updated to the current RFCs for mail, but it's still on a very old Calendars version.

The downside of the JMAP model for a proxy to IMAP is that you do need to have a bit of state in your proxy server. jmap-perl uses a sqlite3 database per user for storing that state.

Structurally, it's a non-blocking server in front of a forking server - the non-blocking handles connections and event streaming, and opens multiple backend forking servers per user, one for reads, one for writes, and one for background syncing/import.

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by nolok on Sunday March 01, 2020 @04:22PM (#22459446)
Can anyone tell me if the license as given

> Licensed for evaluation use only

Is clear enough in legal terms for what can or cannot be done ? I assume it means it's free to use to test it and see how it works, but not for anything else ? Does that cover the code too ?

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by godzillabrennus on Sunday March 01, 2020 @04:49PM (#22459624)
Basically, as a lay person, to me this means it’s not licensed for use in anything you care about.

Fine for playing around with on your computer but not integrating with anything productive.

This is not legal advice though. Always consult a lawyer if you have legal questions.

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by andris9 on Sunday March 01, 2020 @04:28PM (#22459488)
It mostly means I haven’t yet figured out which kind of license/terms to use for this project. TBD.
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by grizzles on Sunday March 01, 2020 @07:23PM (#22460436)
Thanks for your work in this area. A couple questions.

How is this different to the wilduck webmail api?

Would it be hard to abstract away the wildduck storage code to use a datastore other than mongodb?

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by andris9 on Monday March 02, 2020 @12:17AM (#22461845)
WildDuck API exposes database structures from MongoDB, IMAP API is more like a proxy in front of any IMAP server.

WildDuck is pretty much coupled with MongoDB. IMAP is not very easily abstractable and keeping the result scalable at the same time. Largest WildDuck cluster in production manages 20TB (~20k accounts) of email by now with no special config or modifications - making it scalable was the main goal from the start and supporting arbitrary storage would not have helped.

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by sneak on Monday March 02, 2020 @03:57AM (#22462788)
It remains to be seen if API shapes are copyrightable. :D
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by andris9 on Thursday March 05, 2020 @04:15AM (#22492107)
update. The project has now a OS license assigned, so it is perfectly legal to use
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by tdhz77 on Sunday March 01, 2020 @09:17PM (#22461044)
I’ve heard imap is insecure. I’ve disabled it by default but this is intriguing. Anybody have any more information on imap security?
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by andris9 on Monday March 02, 2020 @02:22AM (#22462380)
The "insecurity" in IMAP mostly comes from password based authentication. The client application needs to know cleartext account password to use it and the same password, if leaked, can usually be used to manage the account. While browser based applications are pretty good already for blocking unintended usage, showing captchas to block bots etc, then it is way harder to do the same on the IMAP server side.

So in general it comes down to configuration. IMAP per se is not insecure. How you use it though, might be.

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by herpderperator on Sunday March 01, 2020 @09:24PM (#22461077)
If you are concerned about someone reading your emails in transit, make sure you use TLS. IMAP is standard; as far as I know, almost everything uses it.
Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by dspillett on Sunday March 01, 2020 @09:34PM (#22461128)
Any references for where you've heard this? Then we can check the claims and perhaps reassure you or suggest workarounds. What are you using instead?

IMAP is on its own insecure because it is a plain protocol, but it can be used in conjunction with TLS to add secure transport. Exactly the same can be said for many other mail protocols such as POP3.

Re:Show HN: IMAP API – Self-hosted access to IMAP over REST by revicon on Monday March 02, 2020 @05:07AM (#22463103)
Google spreads a lot of FUD (right or wrong) about anything that doesn’t use their oAuth.

https://www.zdnet.com/article/google-were-banning-these-inse...