From 54f651a4520f81475af178e97ee36db40dd6cf0d Mon Sep 17 00:00:00 2001 From: Jed Brown Date: Fri, 14 Feb 2014 08:04:22 +1700 Subject: [PATCH] [PATCH] emacs: update alist for mail-archive.com API change --- df/0a1a046c2d01aac661cdcdb655fb449cec5341 | 97 +++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 df/0a1a046c2d01aac661cdcdb655fb449cec5341 diff --git a/df/0a1a046c2d01aac661cdcdb655fb449cec5341 b/df/0a1a046c2d01aac661cdcdb655fb449cec5341 new file mode 100644 index 000000000..047b28237 --- /dev/null +++ b/df/0a1a046c2d01aac661cdcdb655fb449cec5341 @@ -0,0 +1,97 @@ +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 CC8AB431FAE + for ; Thu, 13 Feb 2014 07:05:35 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.077 +X-Spam-Level: +X-Spam-Status: No, score=-0.077 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + HS_INDEX_PARAM=0.023] 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 QPv19uR4YYWD for ; + Thu, 13 Feb 2014 07:05:30 -0800 (PST) +Received: from jedbrown.org (jedbrown.org [198.199.121.66]) + (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 3A152431FB6 + for ; Thu, 13 Feb 2014 07:05:30 -0800 (PST) +Received: from [127.0.0.1] (localhost [127.0.0.1]) + (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) + (No client certificate requested) + by jedbrown.org (Postfix) with ESMTPSA id 79A7680D87; + Thu, 13 Feb 2014 15:05:27 +0000 (UTC) +DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=jedbrown.org; + s=20131023; t=1392303929; + bh=g/ykxe3HhCmtR8nomFsYu3arujDfaJwiOoctZm9T+3Q=; + h=From:To:Cc:Subject:Date:In-Reply-To:References; + b=J5lpZnRAKv3bhA7EakJ3efxhKrzbiMenXERH2HZUeUp8K3MtaqefffMQj5rS0zAoL + QNtD8u65FkbbwnonDhUCJL2niQ67n0HdukYPS99f/Vg8ihvb345S/I4R5tQ2yz+M8P + Ix1TyLIBcTcVsS9X3USdFWDtIap83XuXcaOduQo0= +From: Jed Brown +To: notmuch@notmuchmail.org +Subject: [PATCH] emacs: update alist for mail-archive.com API change +Date: Thu, 13 Feb 2014 08:04:22 -0700 +Message-Id: <1392303862-22644-1-git-send-email-jed@jedbrown.org> +X-Mailer: git-send-email 1.8.5.4 +In-Reply-To: <87lhxf2nq8.fsf@zancas.localnet> +References: <87lhxf2nq8.fsf@zancas.localnet> +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: Thu, 13 Feb 2014 15:05:36 -0000 + +Searching by Message-Id no longer works via the old mail-archive.com +API, though I have contacted them in hopes that they restore it to +prevent dead links. Anyway, the new API is cleaner. + +Acked-by: Austin Clements +--- +Fixed the test. Thanks, David. + + emacs/notmuch-show.el | 2 +- + test/T310-emacs.sh | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el +index 1ac80ca..88752f1 100644 +--- a/emacs/notmuch-show.el ++++ b/emacs/notmuch-show.el +@@ -171,7 +171,7 @@ each attachment handler is logged in buffers with names beginning + (defcustom notmuch-show-stash-mlarchive-link-alist + '(("Gmane" . "http://mid.gmane.org/") + ("MARC" . "http://marc.info/?i=") +- ("Mail Archive, The" . "http://mail-archive.com/search?l=mid&q=") ++ ("Mail Archive, The" . "http://mid.mail-archive.com/") + ("LKML" . "http://lkml.kernel.org/r/") + ;; FIXME: can these services be searched by `Message-Id' ? + ;; ("MarkMail" . "http://markmail.org/") +diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh +index 7dc9a8e..00ae96a 100755 +--- a/test/T310-emacs.sh ++++ b/test/T310-emacs.sh +@@ -727,7 +727,7 @@ inbox,stashtest + ${gen_msg_filename} + http://mid.gmane.org/bought + http://marc.info/?i=bought +-http://mail-archive.com/search?l=mid&q=bought ++http://mid.mail-archive.com/bought + EOF + test_expect_equal_file OUTPUT EXPECTED + +-- +1.8.5.4 + -- 2.26.2