From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QGtLIstEXWJl3AAAgWs5BA (envelope-from ) for ; Mon, 18 Apr 2022 13:00:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cGEKH8tEXWL1RwAAauVa8A (envelope-from ) for ; Mon, 18 Apr 2022 13:00:27 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E4FB33CC05 for ; Mon, 18 Apr 2022 13:00:26 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id C48E95F6BF; Mon, 18 Apr 2022 11:00:23 +0000 (UTC) X-Greylist: delayed 590 seconds by postgrey-1.36 at yantan; Mon, 18 Apr 2022 11:00:20 UTC Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 62D855F5EE for ; Mon, 18 Apr 2022 11:00:20 +0000 (UTC) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 185CF1B00133; Mon, 18 Apr 2022 13:50:29 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1650279029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EzC9KfiU0uUDNLYOzpIVPHEtUz0i+5W3KS3JPe/GasA=; b=jy/D/4XJwdCi1nf1FaNPqRuZ19rfZpoPiBdheCWIFKa/9UWP/SFEO9/VBm+no0f4iR8DKo 858okC8eHtVypXUrHqtlb1w1k2bgPhfiIr58abDJSV3uW72pV0KALdtslKOSKHnDqEm6cI 2rqW+zzKbP/SDz++rambX+rThelhpg024JJkEBS/03beYE1oMmXvhvVu1BDLw3IsonK35s FxwOHeVPGES5uVlorTcrDzWNqA60Fxf11RJ8oXt1IroKiQlHu/0U63VWUH1s40YE+/Zf0C EHiIEQtLGMYUIjMQsSfIoTRFy71Bzo1qtpHKbJemopUoKd+Cb3Y7XFiWnKCe7Q== From: Tomi Ollila To: talin.nicholas@mailbox.org, notmuch@notmuchmail.org Subject: Re: mailto: in Firefox and notmuch-emacs-mua In-Reply-To: <87k0bpd63p.fsf@mailbox.org> References: <87k0bpd63p.fsf@mailbox.org> User-Agent: Notmuch/0.35+4~ge2bb4cd (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1650279029; a=rsa-sha256; cv=none; b=SCQHEvrNRdHzMt6zKRdmsuW+QDAIb1MJrZEJHBEGXWIb+Dt7NgGLsxeUjQc2yTr9Ku7942 YjHWDHCg8M4v9Hvk3YXYfia5CGGuqL1gkFURwsI8MSlt4TI0t08rrthcE3jSlZNJtOdTl0 L1Vy1xfTXv6iMFJizu5CD9DruwSLqzpgZNWJ/vPnYbFjBmoPOX5h/QxcW4NzpOE6cbPkH4 KtK77ES5sUm4xM/Nn7fMICVigOIs2B6I7uXHgtjRo/4GtGBWHEsStjpa8v+Z+GqYqNWRjO 06HqArdKVH0q3RNCvGADBUFrpEPhDkO2a3RcGxdjplUppfmio+TGeElbCvFWbQ== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1650279029; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EzC9KfiU0uUDNLYOzpIVPHEtUz0i+5W3KS3JPe/GasA=; b=wO14vRxCMRv5uTeJIQ0yWFKhBbNvCbipCTTw2BqqZcGbS+rG3wEZxDjYnPYXj2N+mzKLB6 PEf9H6QfA+ue3FulY7+64SMH5yaLKR50GhO8IdU9C+1CaNoGOBMXzHUF4bs8g2tPnZVCEM rSS1QcoMV0nGn+rL5Y77irm5UBFWqEgGKkVxZztjrV+RwwfjKmRmUn1+0P6sGv1Qz7iYHX nE7P4/m9x1GuxL2l8ExuxuSLDXBvOLqVWX+Xz8g9qUeNmZVSoqq1sU9uIsoL6/OyFJlJTV 0i2ACEBOHNK8tp0qsSVsslWNAYuDTzQxmQZ+cRcbPWF4zujaCQSqoh7QcTKXOg== Message-ID-Hash: 4VU54D4OYV4PKLY2PLLZHGXSPDOXB34P X-Message-ID-Hash: 4VU54D4OYV4PKLY2PLLZHGXSPDOXB34P X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650279627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=OeH3MaTuonXiGuTBBuPfFhRCNJNDoRuNphdggmZBIFQ=; b=GFbpCNRwrCwXEQO8P0ltNyCFZzNTX1guUTB8sI5qJ7cVakkRm5Ltj0DGTmjz4WlE1KBY2m Vmw2a5GV5EJPhUrAbKrHT6+0vc0ZfaO51+gVEwIgh4yaVRnYXKch29Ud5h5ITrEPFjo1Ka 2n7TcssGrZIBV2SiJM6MSawRMhLjnLTQqyjnZBImAlyuUYUz2kh2RBWrMQAfNIYfWT/Gk2 DSosV6VPF8snB2n62PwBy83s27KvmeDyxHOjgZUkGc2KOTU8h8nMOg2O650UVAumyeaGa0 JDU6RBpLbWKO077QF4+3XaL/zm7UCWSMxLIqgaoL6nfVsoL8+sPAU1YYIZaSfw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1650279627; a=rsa-sha256; cv=fail; b=nKwMvA7wEi4yRjCLmH6Td9QdZGhfsk4YpFcKHGEIdXlI2UFalO4n+MUifm/Vn+g78ITxyN xPK6wntLcw5USbRyW5VYKCgS1LjHiLAKm5kLMRIqCRkCzOuNQhuTFGKE3cq62K4Q9anyoV 9mghQFDP3AOuDPGbe7SMmcnKtre8aphzuYI+Sb7XIFfBzQ32RZJbEfljRAfPh/AChRE3T6 gi6RsriCDCA7RFGeeEFmYp7FzMLnWVPYXeEv6JwCBrj/MQAl/u103YBtuZYBP7ZpettJHE SOgwD7sojqxSHB3/j+H/lGHP/gmfweUH2ek2SOVQRiU4CB+lNRmmz7Ngguq6Jw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="jy/D/4XJ"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 2.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b="jy/D/4XJ"; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: E4FB33CC05 X-Spam-Score: 2.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: LMMLHkuKzvLO 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