Home / GitHub Page

Email to Joplin Gateway

Hi guys, this might be interesting for you:
Just finished my very first draft of an “email-to-joplin gateway”.
Please take a look at https://github.com/manolitto/joplin-mail-gateway

This looks great. I’m using my own mail server (dovecot) and sendmail as MDA.
The only problem is that you require a pop3 account. Therefore I won’t be able to use it.

But anyway, great work!

Oh, one more thing: for the sake of security you should read the mail credentials from a file and not pass them as arguments.

But dovecot supports POP3, no?
Why not just create a dedicated mail user and fetch via POP3 from your server?

Yes, it does.

Because I do not want to setup pop3 just for this. Also, I would run joplin cli and the script on the same server, therefore no remote fetch necessary.

Right now I don’t have much time, but maybe in the future, I can have a look at it. It should be easy to replace the fetch-joplin-mails.sh script with another one, which checks new mails in an IMAP folder…

Actually I just found an easy solution. I only have to use my current Maildir directory and read directly from there. There’s no need to fetch, since the LDA delivers the mail into the local mailbox/folder anyway…

fixed: all settings are now in a config

That sounds great. Looking forward to your further feedback.