Search and view e-mails interactively with mu and fzf

I sync my e-mail to my local laptop automatically with isync/mbsync, not because I want to handle mail locally, but because I’m paranoid and I like a local backup. Also, search functionality of e-mail clients has gotten substantially worse in recent years (what with Thunderbird having two search fields, where one is stupid and the other modifies the term you’re searching for without the possibility to search for an exact match), and I like having a backup e-mail search on the command line. Thus, I use mu to index this local e-mail backup. The plain “mu find” command is enough to find the subject and folder of an e-mail to allow me to find it in Thunderbird, but it’s annoying that reading the e-mail requires an extra search step. ...

October 27, 2026

Calculating TOTP with bash

A colleague of mine has just posted a shell script for calculating TOTP secrets. From my POV, using a Python virtual env is overkill, and I was pretty sure that you could do it with bash and a few extra utilities as well. The bash script would probably even be faster (albeit not necessarily more secure, unless you’d gotten all the quotes right). There’s a “proper” shell implementation by Rich Felker on Github, which I didn’t read before implementing a bash-non-posix solution. ...

January 8, 2024