Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
using mutt as a MUA does not work #77
in #76 I mentioned that mutt never actually sends the email when sending a signature.
I believe this is due to a weird behavior of mutt: it "remembers" the "template" it sends into the text editor when drafting a new email. If that text is not modified, the email is simply dropped. To get to the "send dialog" in mutt, you actually need to somewhat modify the email.
But even worse, when you do get to that dialog, you notice the email is empty: it has only the introduction message, and no signature. It seems like the
There should be more attachments there.
A workaround for this is to allow the user to modify which program gets called by gnome-keysign when actually sending the email. That is how Monkeysign does it, see those instructions for an idea:
referenced this issue
Jan 21, 2019
I'm mildly against catering for each and every MUA and would rather see the MUA to be integrated better with the user's profile through the available mechanisms. Have you tried one of these for mutt?
Honestly, I don't quite know how that works. :) The only reason why mutt is my default MUA is because my normal MUA (notmuch) doesn't even have such a commandline interface, so I'm a little far out from your normal use case.
This is how monkeysign does it: https://0xacab.org/monkeysphere/monkeysign/blob/2.x/monkeysign/ui.py#L733
I think what might be going on here is the portal "succeeds" in that it calls mutt, but then mutt fails to parse that &attachment URL... Or maybe xdg-mail fails and it fallsback to that mailto: url?
I don't know - I just figured it'd be useful for you to know this doesn't quite work with mutt, considering how popular that email client is among hackers. ;)
I also don't exactly know how it works, but for the portal, I could imagine something providing a mutt-backed email function. The signature of the DBus service is relatively simple: https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-method-org-freedesktop-portal-Email.ComposeEmail.
For xdg-email to work, I suggest patching xdg-email or filing a bug: https://bugs.freedesktop.org/enter_bug.cgi?product=Portland&component=xdg-utils
For the protocol handler, you can file a bug against your distribution or mutt directly, to provide a .desktop file with something like
You seem to be able to do it yourself, as discussed here: https://superuser.com/questions/323881/how-can-i-set-mutt-as-the-default-mail-client-when-i-click-on-a-mailto-in-a-we
Does that make it work for you?