Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Kevin Brubeck Unhammer <unhammer@fsfe.org>
To: info-gnus-english@gnu.org
Subject: xdg-email vs browse-url-mail
Date: Thu, 14 Jul 2016 14:51:01 +0200	[thread overview]
Message-ID: <874m7sfkne.fsf@fsfe.org> (raw)

Hi,

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
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 &lt;#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?


-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C



             reply	other threads:[~2016-07-14 12:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-14 12:51 Kevin Brubeck Unhammer [this message]
2016-07-14 21:09 ` Dmitry Alexandrov
2016-07-15  8:31   ` Kevin Brubeck Unhammer
2016-07-15 18:29     ` Dmitry Alexandrov
2016-07-15 21:16       ` Kevin Brubeck Unhammer
2016-07-16 17:13         ` Dmitry Alexandrov
2016-07-25  8:10           ` Kevin Brubeck Unhammer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874m7sfkne.fsf@fsfe.org \
    --to=unhammer@fsfe.org \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).