From e3547c4c5b7bf91a6427426ce5dbe803bdb3438e Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Tue, 4 Nov 2014 12:25:46 +1600 Subject: [PATCH] Re: [DRAFT PATCH] modified notmuch-emacs-mua --- a0/62d0074846358580ffeedd436f38d40698dd36 | 129 ++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 a0/62d0074846358580ffeedd436f38d40698dd36 diff --git a/a0/62d0074846358580ffeedd436f38d40698dd36 b/a0/62d0074846358580ffeedd436f38d40698dd36 new file mode 100644 index 000000000..d8307f3d1 --- /dev/null +++ b/a0/62d0074846358580ffeedd436f38d40698dd36 @@ -0,0 +1,129 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 1BB07431FAF + for ; Mon, 3 Nov 2014 12:25:58 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id uw5NEQREPk7b for ; + Mon, 3 Nov 2014 12:25:50 -0800 (PST) +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by olra.theworths.org (Postfix) with ESMTP id 593E9431FAE + for ; Mon, 3 Nov 2014 12:25:50 -0800 (PST) +Received: from smtp01.caltech.edu (localhost [127.0.0.1]) + by filter-return (Postfix) with ESMTP id 9E180A0956; + Mon, 3 Nov 2014 12:25:49 -0800 (PST) +X-Spam-Scanned: at Caltech-IMSS on smtp01.caltech.edu by amavisd-new +Received: from finestructure.net (cpe-104-173-172-86.socal.res.rr.com + [104.173.172.86]) + (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) + (No client certificate requested) (Authenticated sender: jrollins) + by smtp-server.its.caltech.edu (Postfix) with ESMTPSA id E6E29A08CF; + Mon, 3 Nov 2014 12:25:48 -0800 (PST) +Received: by finestructure.net (Postfix, from userid 1000) + id A650A601D6; Mon, 3 Nov 2014 12:25:48 -0800 (PST) +From: Jameson Graef Rollins +To: Tomi Ollila , notmuch@notmuchmail.org, + jani@nikula.org, david@tethera.net +Subject: Re: [DRAFT PATCH] modified notmuch-emacs-mua +In-Reply-To: <1405026779-29966-1-git-send-email-tomi.ollila@iki.fi> +References: <1405026779-29966-1-git-send-email-tomi.ollila@iki.fi> +User-Agent: Notmuch/0.18.1+130~g87e77ba (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Mon, 03 Nov 2014 12:25:46 -0800 +Message-ID: <871tpkvxo5.fsf@servo.finestructure.net> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha256; protocol="application/pgp-signature" +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 03 Nov 2014 20:25:58 -0000 + +--=-=-= +Content-Type: text/plain + +On Thu, Jul 10 2014, Tomi Ollila wrote: +> Highlights: +> +> * notmuch-emacs-mua without arguments runs (notmuch-hello) +> +> * runs emacs(1) in case emacsclient(1) fails to connect to running emacs +> +> * takes -nw option +> +> * handles mailto: +> +> * --from option when sending non-mailto: way +> +> * -i includes file --body[= ]string inserts string + +Hi, Tomi. I think including an emacs CLI like this is probably a good +idea. I might not use it myself, since I've already concocted one for +my personal use, but I still think it's a good idea. + +The particular thing I'm interested in, though, is mailto: URL handling: + +> + mailto:*) +> + oIFS=$IFS; IFS=; OPTARG="$*" IFS=$oIFS +> + escape_optarg +> + exec_mua "(progn (require 'notmuch) (browse-url-mail \"$OPTARG\"))" +> + exit +> + esac + +I have submitted multiple revisions of a patch that handles mailto: URLs +in notmuch-mua.el: + +id:1334438868-17168-1-git-send-email-jrollins@finestructure.net + +It hasn't been accepted yet, though. I've tried browse-url-mail before, +and it would be convenient to use it. However, used on it's own it has +the problem that it doesn't open new message buffer in the "notmuch" +way. For instance, I prefer my new notmuch buffers to appear in new +frames. browse-url-mail doesn't respect this. Maybe it could be +wrapped in a notmuch-mua-mailto function, or you could instead be using +the function I submitted? + +I've been a bit out of touch for a while, so forgive me if anything has +change that I'm not aware of. + +jamie. + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQIcBAEBCAAGBQJUV+TKAAoJEO00zqvie6q8lcMQAIS/qhNplwRoFJ8n1zFDglFY +kuZZGkojZvVSHyzl8h4IQkOeNyIatQR9tvRBOLU7s0unu/T0uVq5vuG9Rf57hJ+5 +8cHAGGVZquBvJrCd6WeA9QdzbOJ2LLCJZAabbRqAp39UaH1KppU7YxpZGCjWkRMB +Wi9mi+Rc0v+k7F1XWZJVNhGjvWJgEjeUJ14aEtMew8Xtv0xs5XB6zhtyzE//tU+G +7bC87obJeWZVY/JVkBk+BL5/HKgA8RXVCr6+Ujd6cKqziw+mPtTa+LTR2y2etNvE +xtpnM0RPSXc6JjknxNfpXRx4vb2CLS/QF4JTN4zehcCHHZQtPued5vacBaRLvjh5 +d1mVv8GDq23LptGB2ooS80IbL/hS4pJOrgDOuLdTySkBp44bUUajXj4pYQUs7Wfe +fBjqqd/Xl3Bk/x/s58EOcuq+9dV4AYRdO6a/zign1buzKNUXHSk81VX2eDDZ7d97 +WlfEvEeVZAxeCDGhaiAZ4A/us6aXpzXma0WUagIqZLj6/dsM0p6md4aS0n3O5tIn +mmqPG53lqBHKh/wqpg2cZMVUoJKTJY+9woeVn3PfiouTHP6ULAPGJ7FDOp5TPZax +Wkq8Zmw/lcK7JI8LJEZT63adA79Qre1IMLJYGBjbrKuGTxeexVnjjB54HraTiyiM +W4MtSShWiIMMryo9dcYM +=UTfn +-----END PGP SIGNATURE----- +--=-=-=-- -- 2.26.2