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 AE74D431FD0 for ; Wed, 1 Jun 2011 23:49:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 nD2U6J9Ns6DU for ; Wed, 1 Jun 2011 23:49:38 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 15C19431FB6 for ; Wed, 1 Jun 2011 23:49:37 -0700 (PDT) Received: by bwg12 with SMTP id 12so754261bwg.26 for ; Wed, 01 Jun 2011 23:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=eZQyBgGuIZ17ZiyO0LrCiwL0JRQ7eJAA46Wzx1O1vRM=; b=qdoOPvfT7Cn5uw/E9prst56VLnNVgTYV+RPxXeWiL4vN7wHbuihasUkcgi2xN4/qnm kG7+71zmU4e03c9bTVrNeNkVXnpznNjguOQO6EqrmkXkXNT5To4LP4hIuSFFSA49Itf6 ivQaadi83OQ0FT2MTR3uGYSFwkgaVs9MhJAf8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; b=m1HliZv+1Vz9LKQSjuks1XH0Qtjc2u98Tf4EoCjCRKvJ++Nd0p4nwDAsHnVFQx3kEq lF5+MW6IFVfqIkEBKO2wj5LX1CXN65egoqWADFvD/K5d8qVscOoxzSepSFsyZfXLpMVL Jq195LY94lmEvCX6HeRfpcIjrJywt2JeAuM6k= Received: by 10.204.3.196 with SMTP id 4mr350749bko.188.1306997376283; Wed, 01 Jun 2011 23:49:36 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id t23sm220130bkf.4.2011.06.01.23.49.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 23:49:34 -0700 (PDT) From: Dmitry Kurochkin To: Carl Worth , Notmuch Mail Subject: Re: [PATCH 14/25] Fix old style notmuch-fcc-dirs configuration check. In-Reply-To: <874o48yg28.fsf@yoom.home.cworth.org> References: <1306619520-25730-1-git-send-email-jrollins@finestructure.net> <1306619520-25730-2-git-send-email-jrollins@finestructure.net> <1306619520-25730-3-git-send-email-jrollins@finestructure.net> <1306619520-25730-4-git-send-email-jrollins@finestructure.net> <1306619520-25730-5-git-send-email-jrollins@finestructure.net> <1306619520-25730-6-git-send-email-jrollins@finestructure.net> <1306619520-25730-7-git-send-email-jrollins@finestructure.net> <1306619520-25730-8-git-send-email-jrollins@finestructure.net> <1306619520-25730-9-git-send-email-jrollins@finestructure.net> <1306619520-25730-10-git-send-email-jrollins@finestructure.net> <1306619520-25730-11-git-send-email-jrollins@finestructure.net> <1306619520-25730-12-git-send-email-jrollins@finestructure.net> <1306619520-25730-13-git-send-email-jrollins@finestructure.net> <1306619520-25730-14-git-send-email-jrollins@finestructure.net> <1306619520-25730-15-git-send-email-jrollins@finestructure.net> <874o48yg28.fsf@yoom.home.c worth.org> User-Agent: Notmuch/0.5-208-g109ec1a (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Thu, 02 Jun 2011 10:49:57 +0400 Message-ID: <87lixkpw16.fsf@gmail.com> 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: Thu, 02 Jun 2011 06:49:40 -0000 Hi Carl. On Wed, 01 Jun 2011 22:10:07 -0700, Carl Worth wrote: > On Sat, 28 May 2011 14:51:49 -0700, Jameson Graef Rollins wrote: > Hi Jamie, > > I've pushed the next few patches up to this point, (with only one > functional change---I fixed a new test case to correctly use > notmuch_search_sanitize to avoid spurious failures unmatching thread ID > values). > > This patch, however, isn't ready. The big problem is in this commit > message: > > > From: Dmitry Kurochkin > > > > In notmuch 0.5 notmuch-fcc-dirs style changed. The previous code > > did not correctly identify an old configuration and, as a > > consequence, broke new configurations. > > There are several things there that are too vague, ("previous code", > "old configuration", "new configurations"). Well, it says that changes are in notmuch 0.5. So "old" and "previous" refer to pre-0.5 (i.e. 0.4) and "new" refers to 0.5. > What kind of configuration > is broken? Any configuration when `notmuch-fcc-dirs' is a list. That variable has a nice documentation. > How does the change here help? > It fixes detection of old-style pre-0.5 setting for `notmuch-fcc-dirs'. > It would be easier to understand the code if there were a corresponding > test case for it. I'd even be willing to help write a test case, but > there are not enough specifics in that commit message to even tell me > what to test. > I do not think we need a test for this fix. What we need are tests for FCC functionality when notmuch-fcc-dirs is a list. > > ((and (listp notmuch-fcc-dirs) > > - (= 1 (length (car notmuch-fcc-dirs)))) > > + (stringp (car notmuch-fcc-dirs))) > > So the "old configuration" was a single string? No, it is a list with a string as the first element. May I refer you to "git show 0.4:emacs/notmuch-maildir-fcc.el" and current emacs/notmuch-maildir-fcc.el? It has good documentation with examples for notmuch-fcc-dirs. Also NEWS for 0.5 describe this change. > And this has been > inadvertently broken since 0.5? > Old configuration format was changed in 0.5 in an incompatible way. There is a check for the unsupported old-style configuration. But the check is broken and results in an error when running with a valid new-style configuration. > > ;; Old style - no longer works. > > (error "Invalid `notmuch-fcc-dirs' setting (old style)")) > > Yikes. That vague phrasing ("old style") is already in the code in error > messages as well. > Yes. > Dmitry, can you help me know what's going on here? I hope above helps. > (Preferably by > sending a newer commit with a more thorough commit message.) > I am not sure what you expect from the commit message here. IMO it is enough for this small bugfix and those who interested can always refer to documentation for details. Regards, Dmitry > Thanks, > > -Carl Non-text part: application/pgp-signature > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch