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.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29280 invoked from network); 7 Jun 2020 10:44:46 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 7 Jun 2020 10:44:46 -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 1jhsmO-0003qJ-Vc; Sun, 07 Jun 2020 05:43:53 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jhsmK-0003nN-LD for ding@lists.math.uh.edu; Sun, 07 Jun 2020 05:43:48 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jhsm4-006bCT-1O for ding@lists.math.uh.edu; Sun, 07 Jun 2020 05:43:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding: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=pkgx9tKgilY77U8SNnNo0MLE9QL/OlwVhdX83FVb5Hw=; b=SkzThpfUsP428LBkkl6x22/laK tFPAxQpv8qIg/Z1/UbQf+HJuMOSaCpKPD1zLbXhfoHASR4MwQtoRRQlibYRmwsuc20VG8cyS1y/dW uf9SF4Dd9pFUcKz9B4oBXyElKtLzXBES+54pxrbZDVYrPdEgpX9297I1VfZEPuOPgPaA=; 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 1jhslv-0005tU-UC for ding@gnus.org; Sun, 07 Jun 2020 12:43:27 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jhslu-000S7N-9f for ding@gnus.org; Sun, 07 Jun 2020 12:43:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Steinar Bang Subject: Re: Possible to make gnus handle mailto URLs with cc, subject and body? Date: Sun, 07 Jun 2020 12:43:06 +0200 Organization: Probably a good idea Message-ID: References: <87lfl0dupu.fsf@tullinup.koldfront.dk> <87bllwduf5.fsf@tullinup.koldfront.dk> <87tuzoced8.fsf@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (windows-nt) Cancel-Lock: sha1:lVqGLJR8Q3X/rtArFUQ8FI1w+S0= Mail-Copies-To: never List-ID: Precedence: bulk Thanks Adam! I will adopt your approach (or something very similar) on GNU/linux and other unixoid systems. But now I have to figure out if an approach can be used in windows as well? What happens when a mailto URL is clicked on window? This URL shows how to change the email client used to an arbitrary program: https://support.procore.com/faq/how-do-i-change-my-web-browsers-default-email-client-for-mailto-links But what should that arbitrary program look like? How are arguments transferred to the program? Hm... from what I found here https://stackoverflow.com/a/1812 it looks like it will be run as: So that could be handled with something similar to Adam's shell script except probably not bourne shell? And how well does emacsclient work on window? I tried it from a cmd.exe window and it seems to work, both the command C:\ProgramFiles\emacs-26.3-i686\bin\emacsclient.exe .emacs and the command C:\ProgramFiles\emacs-26.3-i686\bin\emacsclientw.exe .emacs opened up .emacs in a window, that could be closed with 'C-x #' (what's the difference between emacsclient.exe and emacsclientw.exe, btw? Does one pop up a cmd window and one not? Yep, emacsclientw.exe does (probably) not open a cmd window if I interpret this correctly: https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-Startup.html) I've created a c:\ProgramFiles\emacs-26.3-i686\bin\mailto-handler.bat file, with the following contents: C:\ProgramFiles\emacs-26.3-i686\bin\emacsclientw.exe -c --eval "(browse-url-mail \"%1\" nil)" But testing it out turned to be harder. Neither vivaldi nor chrome seem to have a way of setting a handler right now. There is no setting that looks right and chrome://settings/handlers just opens a page where one can switch off webpages offering to become handler. Because appearently that's the preferred way to handle email these days: webmail Oh well!