From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9907 invoked from network); 6 Jun 2020 16:29:27 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 6 Jun 2020 16:29:27 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jhbgt-0001lZ-FT; Sat, 06 Jun 2020 11:29:03 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jhbgq-0001ip-DA for ding@lists.math.uh.edu; Sat, 06 Jun 2020 11:29:00 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jhbgo-005wXW-7J for ding@lists.math.uh.edu; Sat, 06 Jun 2020 11:29:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BKPvlJ/HhBlooqsBTki8JPvud2EV+8p+LTKGPNE+v5g=; b=huHMXikM36kiMtcqAjky9LrgYG wQUMLvNxDN7oIqlgCvGBunpK11vYJPfscfbXvPPQ6Bx0vVVGbIuiWBdpDuvj3BjpE+pYvsncw+lld jyh8P5MIYwsJDgvBJiBIqKJkEDBDAQOtbTqaQJKwhIVOs9Yrfcn8JlRtdGib3Qratr/g=; Received: from ciao.gmane.io ([159.69.161.202]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhbgh-0002Ag-Ex for ding@gnus.org; Sat, 06 Jun 2020 18:28:54 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jhbgg-000J6h-B5 for ding@gnus.org; Sat, 06 Jun 2020 18:28:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Subject: Re: Possible to make gnus handle mailto URLs with cc, subject and body? Date: Sat, 06 Jun 2020 18:28:45 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87lfl0dupu.fsf@tullinup.koldfront.dk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:pzDfwo8tIcVJ6OE0teEqjh4jB6E= OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Steinar writes: > Is there a way to make gnus handle mailto URLs with cc, subject and > body, when those URLs are clicked in a browser? > > Here's an example URL: > mailto:korr@somewhere.com?cc=some.one@somewhere.com&subject=Hittat%20fel%20i%3A%20%22Nytt%20ras%20i%20Nordnorge%20%E2%80%93%20orsakade%20stort%20h%C3%A5l%20%22&body=Jag%20har%20hittat%20fel%20i%20artikeln%20%22Nytt%20ras%20i%20Nordnorge%20%E2%80%93%20orsakade%20stort%20h%C3%A5l%20%22%0A(https%3A%2F%2Fwww.svt.se%2Fnyheter%2Futrikes%2Fnytt-ras-i-nordnorge-orsakade-stort-hal)%0A%0AKommentar%3A > > What I would like to happen is Gnus preparing a message with to, cc, > subject and body, decoding the arguments for subject and body. Looking at browse-url-mail in browse-url.el, it looks like it handles To, Subject and Body, but not maybe not Cc: (defun browse-url-mail (url &optional new-window) "Open a new mail message buffer within Emacs for the RFC 2368 URL. Default to using the mailto: URL around or before point as the recipient's address. Supplying a non-nil interactive prefix argument will cause the mail to be composed in another window rather than the current one. When called interactively, if variable `browse-url-new-window-flag' is non-nil use `compose-mail-other-window', otherwise `compose-mail'. A non-nil interactive prefix argument reverses the effect of `browse-url-new-window-flag'. When called non-interactively, optional second argument NEW-WINDOW is used instead of `browse-url-new-window-flag'." (interactive (browse-url-interactive-arg "Mailto URL: ")) (save-excursion (let* ((alist (rfc2368-parse-mailto-url url)) (to (assoc "To" alist)) (subject (assoc "Subject" alist)) (body (assoc "Body" alist)) (rest (delq to (delq subject (delq body alist)))) (to (cdr to)) (subject (cdr subject)) (body (cdr body)) (mail-citation-hook (unless body mail-citation-hook))) ? I have a tiny script in ~/bin/mailto-handler: #!/bin/bash emacsclient -c --eval "(browse-url-mail \"$@\" nil)" and I think/guess that I have configured ... something to use it, once, at least Firefox runs it when I click a mailto: link. Best regards, Adam -- "Fader eg må be om undskyldning Adam Sjøgren Det er min feil at Tony er pakkt in i presenning" asjo@koldfront.dk