From b3595a4a5b9097362828a73a1ec3bcccf5372cfb Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Tue, 19 Jun 2012 08:42:01 +0100 Subject: [PATCH] Re: [PATCH v2 2/2] emacs: new mua mailto: URI handler --- f1/873f8fcb3ddca884723bc8e83595e7ebef343c | 107 ++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 f1/873f8fcb3ddca884723bc8e83595e7ebef343c diff --git a/f1/873f8fcb3ddca884723bc8e83595e7ebef343c b/f1/873f8fcb3ddca884723bc8e83595e7ebef343c new file mode 100644 index 000000000..dc58ab52b --- /dev/null +++ b/f1/873f8fcb3ddca884723bc8e83595e7ebef343c @@ -0,0 +1,107 @@ +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 6FC00431FB6 + for ; Tue, 19 Jun 2012 00:42:12 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -1.098 +X-Spam-Level: +X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, 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 jP1R5Opfbv1M for ; + Tue, 19 Jun 2012 00:42:08 -0700 (PDT) +Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 98168431FAF + for ; Tue, 19 Jun 2012 00:42:08 -0700 (PDT) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail2.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1Sgt4d-0004GL-Gd; Tue, 19 Jun 2012 08:42:06 +0100 +Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223] + helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) + (envelope-from ) + id 1Sgt4d-0003YO-8t; Tue, 19 Jun 2012 08:42:03 +0100 +From: Mark Walters +To: Jameson Graef Rollins , + Notmuch Mail +Subject: Re: [PATCH v2 2/2] emacs: new mua mailto: URI handler +In-Reply-To: <1334438868-17168-1-git-send-email-jrollins@finestructure.net> +References: <1327865624-7673-2-git-send-email-jrollins@finestructure.net> + <1334438868-17168-1-git-send-email-jrollins@finestructure.net> +User-Agent: Notmuch/0.13.2+63~g548a9bf (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Tue, 19 Jun 2012 08:42:01 +0100 +Message-ID: <8762an4uk6.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Sender-Host-Address: 94.192.233.223 +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: 3d25b672e9098124a0da1b3a6427e7b9 (of first 20000 bytes) +X-SpamAssassin-Score: -1.8 +X-SpamAssassin-SpamBar: - +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored -1.8 points. + Summary of the scoring: + * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, + * medium trust + * [138.37.6.40 listed in list.dnswl.org] + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay + * domain + * 0.5 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +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 07:42:12 -0000 + +On Sat, 14 Apr 2012, Jameson Graef Rollins wrote: +> 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.) + +What is your experience? If it only fails on contrived examples then I +am much happier about including it. + +I only had one comment on the lisp: + +> + (notmuch-mua-mail to subject other-headers) + +If you make this + + (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. + +Best wishes + +Mark -- 2.26.2