[PATCH] bug in notmuch-fcc-header-setup
authorLadislav Lhotka <lhotka@cesnet.cz>
Tue, 30 Nov 2010 14:58:53 +0000 (15:58 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:38 +0000 (09:37 -0800)
b0/7f9ff7640866420e5160d24aab33acc45553c2 [new file with mode: 0644]

diff --git a/b0/7f9ff7640866420e5160d24aab33acc45553c2 b/b0/7f9ff7640866420e5160d24aab33acc45553c2
new file mode 100644 (file)
index 0000000..9f91d5d
--- /dev/null
@@ -0,0 +1,71 @@
+Return-Path: <lhotka@cesnet.cz>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2487C431FB6\r
+       for <notmuch@notmuchmail.org>; Tue, 30 Nov 2010 06:58:58 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id PL1tUisBkW+S for <notmuch@notmuchmail.org>;\r
+       Tue, 30 Nov 2010 06:58:56 -0800 (PST)\r
+Received: from trail.lhotka.cesnet.cz (trail.lhotka.cesnet.cz\r
+       [195.113.161.162])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8A562431FB5\r
+       for <notmuch@notmuchmail.org>; Tue, 30 Nov 2010 06:58:56 -0800 (PST)\r
+Received: from localhost (unknown [195.113.228.84])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by trail.lhotka.cesnet.cz (Postfix) with ESMTPSA id 481D33E0052\r
+       for <notmuch@notmuchmail.org>; Tue, 30 Nov 2010 15:58:54 +0100 (CET)\r
+From: Ladislav Lhotka <lhotka@cesnet.cz>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] bug in notmuch-fcc-header-setup\r
+User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.50.1\r
+       (i386-apple-darwin9.8.0)\r
+Date: Tue, 30 Nov 2010 15:58:53 +0100\r
+Message-ID: <87bp563ljm.fsf@cesnet.cz>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 30 Nov 2010 14:58:58 -0000\r
+\r
+Hi,\r
+\r
+the check for old-style setting of notmuch-fcc-dirs doesn't work because 'length' function cannot be applied to a cons cell. The following patch should fix this bug.\r
+\r
+Cheers, Ladislav\r
+\r
+\r
+diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el\r
+index e5e0549..27ac955 100644\r
+--- a/emacs/notmuch-maildir-fcc.el\r
++++ b/emacs/notmuch-maildir-fcc.el\r
+@@ -88,7 +88,7 @@ will NOT be removed or replaced."\r
+           notmuch-fcc-dirs)\r
\r
+          ((and (listp notmuch-fcc-dirs)\r
+-               (= 1 (length (car notmuch-fcc-dirs))))\r
++               (not (cdar notmuch-fcc-dirs)))\r
+           ;; Old style - no longer works.\r
+           (error "Invalid `notmuch-fcc-dirs' setting (old style)"))\r
+\r
+-- \r
+Ladislav Lhotka, CESNET\r
+PGP Key ID: E74E8C0C\r