reddit / emacs

mujmap -- Synchronize JMAP mail with notmuch

elizadev · 2022-05-10 01:20
elizadev · 2022-05-10 01:20
Hello /r/emacs, I hope this is an appropriate place to announce this! Apologies if not. I have just released a tool to synchronize notmuch mail with a [JMAP server](https://jmap.io/). It's very similar to [lieer](https://github.com/gauteh/lieer), which is a tool that does essentially the same but for GMail. JMAP mailboxes behave very similarly to GMail labels, meaning that each tag that doesn't get mapped to a special keyword (e.g. `$seen`, `$draft`, etc) is mapped to its own "label". I have been using it myself for my own mail with Fastmail, and I am really enjoying having the richness of Emacs+notmuch on my desktop and laptop and still being able to access more or less the same information on my phone as well.
a-c-d-w · 2022-05-10 03:00
Oh my god, I've been wondering if I could do this since reading the announcement from Fastmail that we can use labels!!! Any bugs/issues/other things? I might just have to try this bad boy out!!
elizadev · 2022-05-10 03:15
The readme covers the quirks I know about so far. I'd recommend trying it out first in a separate database from your existing notmuch database; there's not a good way to "transfer" an existing database to a JMAP server in the tool right now, but it's probably a good idea to include such a thing to make it easier for people to migrate over from an existing database managed by mbsync+notmuch. I will add an issue for that on the issue tracker.
a-c-d-w · 2022-05-10 03:45
okay awesome! I have an extra laptop I can use to test the new config ... do you know if the JMAP tag system is compatible somehow with "regular" mbsync/notmuch ? I haven't converted my Fastmail account over to use the new JMAP tagging facility yet for worrying about that.
elizadev · 2022-05-10 03:51
I just added some instructions on how to migrate an existing database with tags (and a small bugfix for the --dry-run option necessary for the instructions to work, you should reinstall if you've already installed to get it). Keep in mind that this isn't something that I have personally tested, so please make backups before trying. It shouldn't be relevant if you're testing an entirely fresh config on a new device, though. The option in Fastmail that lets you switch between mailboxes and labels is actually purely cosmetic as far as I can tell, but there might be some web UI weirdness if you have mail in multiple "folders". I think you are safe to switch to labels, as they are just regular IMAP mailboxes under the hood.
a-c-d-w · 2022-05-10 03:59
amazing, thanks so much for your help :) I'm going to start testing this and I'll bug you slash PR when I find things to help with! Well, probably bug you.... I'm not a Rustacean ;)
XCapitan_1 · 2022-05-10 18:37
I considered migrating from Gmail to Fastmail, but for a time decided against it because there was no tool like lieer for JMAP. This is amazing <3