Hund

How I open mailto-links in Mutt with qutebrowser

November 21, 2023 | 2 Comments

This is what I did, to make mailto-links open in Mutt, using my web browser qutebrowser. I think, it should work for all web browsers, and I don’t think that you need to anything more than this. Feel free to correct me, if I’m missing something.

I first created a desktop entry file called mutt.desktop, in the folder ~/.local/share/applications/, with the following content:

[Desktop Entry]
Type=Application
Name=Mutt 
NoDisplay=true
Exec=/usr/bin/urxvt -e mutt %u
Terminal=true

FIY: If you use a desktop environment, and want a fancy shortcut for Mutt, you could consider adding these values as well:

Icon=email
Categories=Internet;
StartupNotify=true

I then added the following content to the file ~/.config/mimeapps.list:

[Default Applications]
x-scheme-handler/mailto=mutt.desktop;

And then everything just worked for me.

Meta

Comments (2)

Use the e-mail form, if you wish to leave feedback for this post. Markdown is supported. [Terms of service]

Lothar
#1
November 27, 2023, 00:13

Thanks for this post. Have been looking for something like this for a while now.
For those with multiple Mutt accounts, i suggest looking into this other post in beune.dev (https://beune.dev/posts/mailto-neomutt/) which complements yours quite well.

Hund
#2
November 27, 2023, 20:43

Thank you! The link looks interesting. I never considered the fact that you might have multiple accounts. That's something I have to look into. :)