1 Return-Path: <lhotka@cesnet.cz>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 2487C431FB6
\r
6 for <notmuch@notmuchmail.org>; Tue, 30 Nov 2010 06:58:58 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id PL1tUisBkW+S for <notmuch@notmuchmail.org>;
\r
16 Tue, 30 Nov 2010 06:58:56 -0800 (PST)
\r
17 Received: from trail.lhotka.cesnet.cz (trail.lhotka.cesnet.cz
\r
19 by olra.theworths.org (Postfix) with ESMTP id 8A562431FB5
\r
20 for <notmuch@notmuchmail.org>; Tue, 30 Nov 2010 06:58:56 -0800 (PST)
\r
21 Received: from localhost (unknown [195.113.228.84])
\r
22 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
23 (No client certificate requested)
\r
24 by trail.lhotka.cesnet.cz (Postfix) with ESMTPSA id 481D33E0052
\r
25 for <notmuch@notmuchmail.org>; Tue, 30 Nov 2010 15:58:54 +0100 (CET)
\r
26 From: Ladislav Lhotka <lhotka@cesnet.cz>
\r
27 To: notmuch@notmuchmail.org
\r
28 Subject: [PATCH] bug in notmuch-fcc-header-setup
\r
29 User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.50.1
\r
30 (i386-apple-darwin9.8.0)
\r
31 Date: Tue, 30 Nov 2010 15:58:53 +0100
\r
32 Message-ID: <87bp563ljm.fsf@cesnet.cz>
\r
34 Content-Type: text/plain; charset=us-ascii
\r
35 X-BeenThere: notmuch@notmuchmail.org
\r
36 X-Mailman-Version: 2.1.13
\r
38 List-Id: "Use and development of the notmuch mail system."
\r
39 <notmuch.notmuchmail.org>
\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
43 List-Post: <mailto:notmuch@notmuchmail.org>
\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
47 X-List-Received-Date: Tue, 30 Nov 2010 14:58:58 -0000
\r
51 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
56 diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el
\r
57 index e5e0549..27ac955 100644
\r
58 --- a/emacs/notmuch-maildir-fcc.el
\r
59 +++ b/emacs/notmuch-maildir-fcc.el
\r
60 @@ -88,7 +88,7 @@ will NOT be removed or replaced."
\r
63 ((and (listp notmuch-fcc-dirs)
\r
64 - (= 1 (length (car notmuch-fcc-dirs))))
\r
65 + (not (cdar notmuch-fcc-dirs)))
\r
66 ;; Old style - no longer works.
\r
67 (error "Invalid `notmuch-fcc-dirs' setting (old style)"))
\r
70 Ladislav Lhotka, CESNET
\r
71 PGP Key ID: E74E8C0C
\r