[PATCH] bug in notmuch-fcc-header-setup

Ladislav Lhotka lhotka at cesnet.cz
Tue Nov 30 06:58:53 PST 2010


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


More information about the notmuch mailing list