Kevin Brubeck Unhammer writes: > I just tried using browse-url-mail as a mailto-handler with the below > script as my mail handler (set in XFCE settings): > > #!/bin/bash > mailto="${*//\"/}" ... > if [[ ! ${mailto} =~ ^mailto: ]]; then > mailto="mailto:${mailto}" > fi Does not xdg-email(1) already do that? > emacsclient -c --eval "(browse-url-mail \"${mailto}\")" > > It seems to work with xdg-email, but when I use --attach to attach a > file, it just appears as an "Attach: /path/to/file" header instead of > the usual <#part thing. After sending, nothing is attached to the > received message that I can tell. Is there a way to make browse-url-mail > do the right thing, or to make message-mode treat that "Attach:" line > correctly? Try this: