TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

IMAP API – self hosted daemon to access IMAP and SMTP accounts via HTTP API

142 pointsby andris9over 4 years ago

16 comments

zabhiover 4 years ago
Wouldn&#x27;t a JMAP bridge like [1] solve the same problems?<p>1. <a href="https:&#x2F;&#x2F;github.com&#x2F;jmapio&#x2F;jmap-perl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jmapio&#x2F;jmap-perl</a>
评论 #25373728 未加载
评论 #25374129 未加载
评论 #25383259 未加载
评论 #25381218 未加载
AlphaWeaverover 4 years ago
This is great, but I really need a self hosted version of something like this for accessing calendars. Anybody know if something like this exists?
评论 #25375732 未加载
评论 #25375755 未加载
deepstackover 4 years ago
Great to see this here. Andris9 is great! He also made wildduck which also allows IMAP api:<p><a href="https:&#x2F;&#x2F;wildduck.email" rel="nofollow">https:&#x2F;&#x2F;wildduck.email</a>
butonicover 4 years ago
I&#x27;d like to see an ms graph api version of this. A proper rest json api for mail, contacts and calendar is long overdue.<p>JMAP never took off. Maybe, if projects would copy the odata based graph api that ms documented we could collectively move there...
评论 #25378356 未加载
leipertover 4 years ago
If you just need email processing locally, I have found imapfilter to be quite nice. You can script it in Lua.<p>Personally I went a bit overboard with it and implemented a simple TCP server in node which queries GitLab APIs based on the email metadata and moves Mails into Folders based on assignees, Labels etc. So letting do imapfilter the heavy IMAP stuff, calling node via tcp and using the response to sort based on it.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;lefcha&#x2F;imapfilter" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lefcha&#x2F;imapfilter</a>
评论 #25376431 未加载
atonseover 4 years ago
Nice job.<p>I just realized, would Elixir be the perfect platform for this since you could have a GenServer process that has a constantly alive IMAP connection for each server?<p>I&#x27;m not sure if this API is initiating an IMAP connection each time you request something, but keeping that connection alive could be really interesting.<p>Also can you use a regular connection pooling library to do this?<p>Or am I imagining a problem that doesn&#x27;t exist? (overhead of reconnecting to IMAP server for each request)
评论 #25373743 未加载
评论 #25374955 未加载
erinaceousjonesover 4 years ago
Awesome! I&#x27;m having to maintain some IMAP+SMTP handling code and having to deal with the intricacies &#x2F; non-standards &#x2F; quirks of different mail servers (Office365.......) has been such a time sink. This would be perfect in our infrastructure.<p>Any plans to provide it in a Docker container? I&#x27;d be willing to maintain one &amp; push it to Docker Hub, for the AGPL version, if you don&#x27;t have the time.
评论 #25495050 未加载
评论 #25374975 未加载
jfdiover 4 years ago
nice!<p>Related: Here&#x27;s a very simple one from a few years ago that does 1:1 sync via IMAP into CouchDB. CouchDB directly provides the local HTTP&#x2F;REST UI &amp; APIs: <a href="https:&#x2F;&#x2F;github.com&#x2F;thomaswilley&#x2F;yama" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thomaswilley&#x2F;yama</a>
评论 #25375764 未加载
edoceoover 4 years ago
I see only one reference to XOAUTH2 in the code - in an example script. Does this connect IMAP with XOAUTH2?
评论 #25374924 未加载
jhunter1016over 4 years ago
This is really cool. I’ve been a big fan of the Nodemailer project for how accessible it makes IMAP and SMTP. This is a significant step towards even more accessibility. I can imagine some pretty cool, lightweight email clients being built with this.
walrus01over 4 years ago
people interested in this should also take a look at rainloop and roundcube, two fully open source self-hostable webmail applications. Not exactly for the same purpose, but they both also implement access to IMAP-over-TLS stored mail.
评论 #25374274 未加载
zadwangover 4 years ago
Thanks for sharing. I have a reverse problem though. Would it be possible to access REST interface using IMAP a protocol? My use case is to access Office365 web mails using legacy apps such as mbsync and msmtp.
评论 #25373738 未加载
评论 #25374752 未加载
ficklepickleover 4 years ago
Cool! I built something similar, albeit worse in every regard, also using nodemailer.<p>I might have to start using this instead. Mine basically just powers contact forms (send only).
resoluteteethover 4 years ago
Does the AGPL mean that you would also have to license any software that communicates with this daemon under the AGPL? Or just the daemon itself?
评论 #25374596 未加载
评论 #25374886 未加载
评论 #25374954 未加载
js4everover 4 years ago
Amazing, I will probably use it soon, thanks
wolco2over 4 years ago
Does this work with pop?
评论 #25375004 未加载