unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: talin.nicholas@mailbox.org, notmuch@notmuchmail.org
Subject: Re: mailto: in Firefox and notmuch-emacs-mua
Date: Mon, 18 Apr 2022 13:50:26 +0300	[thread overview]
Message-ID: <m24k2q64y5.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <87k0bpd63p.fsf@mailbox.org>

On Fri, Apr 15 2022, talin nicholas wrote:

> When opening a mailto: link, Firefox defaults to notmuch-emacs-mua,
> which is what I want, minus that it spawns a new Emacs instance (which
> hangs) rather than opening an *unsent mail* buffer in my existing
> daemon. I copied the .desktop file from /usr/share/applications to
> ~/.local/share/applications and changed out the arguments in Exec= -
> trying  out --client, --create-frame, and --hello in combinations - to no
> avail. Now, when I open a link, it doesn't do anything. No new buffer,
> no new frame.

By looking the script, --client is needed to use emacsclient to send
message to running emacs daemon for a new mail buffer...

First, why using the default .desktop emacs hangs is one question (but
probably shows that environment is good enough for starting emacs in
graphical display). Why nothing happens when .local .desktop is used
is strange thing. Is the script silently failing...

what one could do is to copy notmuch-emacs-mua to /tmp or $HOME/...
and add theese lines to the beginning of the file (after #!... line):

exec 2>/tmp/nem.$$.txt
set -x

then perhaps the /tmp/nem.{pid}.txt files shed some light what is
happening...

Tomi









> _______________________________________________
> notmuch mailing list -- notmuch@notmuchmail.org
> To unsubscribe send an email to notmuch-leave@notmuchmail.org

      reply	other threads:[~2022-04-18 11:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-16  4:06 mailto: in Firefox and notmuch-emacs-mua talin.nicholas
2022-04-18 10:50 ` Tomi Ollila [this message]

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

  List information: https://notmuchmail.org/

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

  git send-email \
    --in-reply-to=m24k2q64y5.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=notmuch@notmuchmail.org \
    --cc=talin.nicholas@mailbox.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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).