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 2487C431FB6 for ; Tue, 30 Nov 2010 06:58:58 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 PL1tUisBkW+S for ; Tue, 30 Nov 2010 06:58:56 -0800 (PST) Received: from trail.lhotka.cesnet.cz (trail.lhotka.cesnet.cz [195.113.161.162]) by olra.theworths.org (Postfix) with ESMTP id 8A562431FB5 for ; Tue, 30 Nov 2010 06:58:56 -0800 (PST) Received: from localhost (unknown [195.113.228.84]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by trail.lhotka.cesnet.cz (Postfix) with ESMTPSA id 481D33E0052 for ; Tue, 30 Nov 2010 15:58:54 +0100 (CET) From: Ladislav Lhotka To: notmuch@notmuchmail.org Subject: [PATCH] bug in notmuch-fcc-header-setup User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.50.1 (i386-apple-darwin9.8.0) Date: Tue, 30 Nov 2010 15:58:53 +0100 Message-ID: <87bp563ljm.fsf@cesnet.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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, 30 Nov 2010 14:58:58 -0000 Hi, 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. Cheers, Ladislav diff --git a/emacs/notmuch-maildir-fcc.el b/emacs/notmuch-maildir-fcc.el index e5e0549..27ac955 100644 --- a/emacs/notmuch-maildir-fcc.el +++ b/emacs/notmuch-maildir-fcc.el @@ -88,7 +88,7 @@ will NOT be removed or replaced." notmuch-fcc-dirs) ((and (listp notmuch-fcc-dirs) - (= 1 (length (car notmuch-fcc-dirs)))) + (not (cdar notmuch-fcc-dirs))) ;; Old style - no longer works. (error "Invalid `notmuch-fcc-dirs' setting (old style)")) -- Ladislav Lhotka, CESNET PGP Key ID: E74E8C0C