From ea0243ef610b8886cc0412cc58284d35b78b1357 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Wed, 20 Jun 2012 13:46:33 +1700 Subject: [PATCH] Re: [PATCH v2 2/2] emacs: new mua mailto: URI handler --- 1a/002f1b1de93b84cba55c229d76a9fc2e8bf6c9 | 122 ++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 1a/002f1b1de93b84cba55c229d76a9fc2e8bf6c9 diff --git a/1a/002f1b1de93b84cba55c229d76a9fc2e8bf6c9 b/1a/002f1b1de93b84cba55c229d76a9fc2e8bf6c9 new file mode 100644 index 000000000..8f5242308 --- /dev/null +++ b/1a/002f1b1de93b84cba55c229d76a9fc2e8bf6c9 @@ -0,0 +1,122 @@ +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 2D4E3431FB6 + for ; Tue, 19 Jun 2012 13:46:45 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.29 +X-Spam-Level: +X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 Eoqap4XOPAJF for ; + Tue, 19 Jun 2012 13:46:43 -0700 (PDT) +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by olra.theworths.org (Postfix) with ESMTP id E535C431FAF + for ; Tue, 19 Jun 2012 13:46:42 -0700 (PDT) +Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by fire-doxen-postvirus (Postfix) with ESMTP id 731C72E50468; + Tue, 19 Jun 2012 13:46:40 -0700 (PDT) +X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new +Received: from finestructure.net (gwave-111.ligo.caltech.edu + [131.215.114.111]) (Authenticated sender: jrollins) by fire-doxen-submit + (Postfix) with ESMTP id 3F5662E507C1; Tue, 19 Jun 2012 13:46:36 -0700 (PDT) +Received: by finestructure.net (Postfix, from userid 1000) + id 21ABB93D; Tue, 19 Jun 2012 13:46:36 -0700 (PDT) +From: Jameson Graef Rollins +To: Mark Walters , + Notmuch Mail +Subject: Re: [PATCH v2 2/2] emacs: new mua mailto: URI handler +In-Reply-To: <8762an4uk6.fsf@qmul.ac.uk> +References: <1327865624-7673-2-git-send-email-jrollins@finestructure.net> + <1334438868-17168-1-git-send-email-jrollins@finestructure.net> + <8762an4uk6.fsf@qmul.ac.uk> +User-Agent: Notmuch/0.13.2+53~g1567997 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Tue, 19 Jun 2012 13:46:33 -0700 +Message-ID: <87vcin2fo6.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: Tue, 19 Jun 2012 20:46:45 -0000 + +--=-=-= +Content-Transfer-Encoding: quoted-printable + +On Tue, Jun 19 2012, Mark Walters wrote: +> On Sat, 14 Apr 2012, Jameson Graef Rollins w= +rote: +>> The new function 'notmuch-mua-mailto' provides an interactive handler +>> for rfc6068 "mailto:" URIs. It attempts to implement the rfc6068 +>> specification: http://tools.ietf.org/html/rfc6068 +>> +>> More decoding of the mailto string needs to be done, as is evident by +>> the fact that the mailto test remains broken. +>> --- +>> Rebased against current master. +> +> Hi I have just been playing with this and it seems to work well. Indeed, +> I have not come across any "real" links that it fails on. (All the +> links on http://www.mailto.co.uk/ seem to work for example.) + +Cool! I haven't seen that site before, but it will certainly be useful +for me to extend the tests for this function. + +> What is your experience? If it only fails on contrived examples then I +> am much happier about including it. + +It's been working fine for me for many months. I don't click on mailto +links that frequently, but it always seems to work when I do. + +> I only had one comment on the lisp: +>=20=20 +>> + (notmuch-mua-mail to subject other-headers) +> +> If you make this +>=20=20=20=20 +> (notmuch-mua-mail to subject other-headers nil (notmuch-mua-get-switch= +-function)) +> +> it respects the users preference on where to open the new message. + +Great idea! I'll add this to the next version. + +jamie. + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) + +iQIcBAEBCAAGBQJP4OUpAAoJEO00zqvie6q8jmIP+QEHzsn2EPuMHH1elHS9mtWx +rw7DdjLr7uc+Daxf2vojVfDAN6jKf0Z8JLttguuNhzdaVF6MJOgfcFmscen/mf4w +DpPFwH2+kQxBnO+Ybb/bz+xxFVJiPGC+ahiKe3l2WR2DxTBm8ZcK3A7WyxDaIE5/ +HgDnditZAN8v3oQpEjhxqWC2hkBq+w94n9V+mVh2e95pM9JXbS/zIx2XjS8R0H1W +nk5n6D36fPg1RWny503stDzp8gaNFNkX5bGS+576SjmyUi4vuoLqbFoAA/PUgbRV +dbanwe5zgz6pOCHpq0Wafdiro4gXJiVXVWIvYymbC8qYP6Me3ghGuIEuU/QBS11P +eFcBUUn2n5NEGS66Kgbp0Ge7tTBCBgU+UJKcM855KZHsEHHvOt/lv4ZcUW/PRffs +ie2tLGFNL7YpOkJwtmzq0sYOaF4kQlpM4f5Rrf4Es1eR+sk+Ued2B9M8Gth94PuI +NrjOeP5bwFZ4uIBxxtjeZd61Fk/v2eOys2eD18gcJo3DWrBJ8PVQFWsYZ41cy6NP +DLfpdPxwvDujHeP3QqMFaDfC1S/RSTsFXmReYWPHmXrZ5zQ83qxkXtHJusnhrTUn +BMbp29UDEeQ4JGBniqe/AvsSbLx6zI96Gpc1yYpqTpbspto8ySD5EQJvHp1thPaa +vX9FC7kNF20sFzaLBQSz +=HpDL +-----END PGP SIGNATURE----- +--=-=-=-- -- 2.26.2