What does HackerNews think of bower?

A curses terminal client for the Notmuch email system

Language: Mercury

Has anyone used Mercury? The language seems quite interesting and has C and C++ FFI. I see bower (https://github.com/wangp/bower/) a notmuch client is written in it.
I use bower for my regular email client. It can connect to a remote machine with notmuch over ssh. It's fairly sparse on the features, but I love it.

As a bonus, it's written in a fairly niche programming language: mercury, which is a strongly typed prolog dialect.

1: https://github.com/wangp/bower

I use offlineimap with bower[0], it works well.

[0] https://github.com/wangp/bower

While I don't know of any imap to git sync tool specifically, there are tons of tools for storing email locally in plain text and for keeping these local email stores in sync with imap servers. The most common local email store formats seem to be mbox[1] and maildir[2]. Mbox stores one "folder" of emails per file, while maildir stores one email per file, which does seem to be the more modern approach (exceeding your file quota does not seem to be a particularly urgent problem anymore).

I personally use mbsync[3] to pull my email into a local maildir. I also use notmuch[4] and a nice tui[5] to search, read and write it. Note that filenames in maildir are unique, but provide little value beyond that. Some emails are also encoded in ways that will hide content from grep and friends (base64 being among the most popular ones). This makes notmuch especially valuable, as it abstracts all those encoding issues away and provides an amazing search interface.

I do not use a git repository for email myself, yet since a maildir is just a directory tree of plain text files, storing it in a repo is a no-brainer:

    mbsync -a      # Configured via dotfiles
    cd my_local_maildir
    git add .
    git commit
[1]: https://en.wikipedia.org/wiki/Mbox

[2]: https://en.wikipedia.org/wiki/Maildir

[3]: https://isync.sourceforge.io/

[4]: https://notmuchmail.org/

[5]: https://github.com/wangp/bower