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 0BCD242119B for ; Wed, 29 Jun 2011 16:13:20 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] 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 BW+l+dnt4gY8 for ; Wed, 29 Jun 2011 16:13:19 -0700 (PDT) Received: from arlo.cworth.org (arlo.cworth.org [50.43.72.2]) by olra.theworths.org (Postfix) with ESMTP id A3314421192 for ; Wed, 29 Jun 2011 16:13:19 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B2A5729A85E; Wed, 29 Jun 2011 16:13:18 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id A4D6A2541A8; Wed, 29 Jun 2011 16:13:18 -0700 (PDT) From: Carl Worth To: Austin Clements , notmuch@notmuchmail.org Subject: Re: [PATCH] new: Improved workaround for mistaken new directories In-Reply-To: <1309388401-16437-1-git-send-email-amdragon@mit.edu> References: <1309388401-16437-1-git-send-email-amdragon@mit.edu> User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Wed, 29 Jun 2011 16:13:05 -0700 Message-ID: <87d3hw44fy.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: amdragon@mit.edu 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: Wed, 29 Jun 2011 23:13:20 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 29 Jun 2011 19:00:01 -0400, Austin Clements wrot= e: > We work around this by setting the new directory's database mtime to > -1 before scanning anything in the new directory. This also obviates > the need for the workaround used in 8c39e8d6. Thanks. This is pushed. > + /* XXX This is a temporary workaround. If we don't update the > + * database mtime until after processing messages in this ... > + * A better solution would be for notmuch_database_get_directory > + * to indicate if it really created a new directory or not, either > + * by a new out-argument, or by recording this information and > + * providing an accessor. A much better "XXX" comment! It tells the potential reader of the future what to do to be able to remove the comment. Thanks so much. =2DCarl =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk4LsYEACgkQ6JDdNq8qSWgW2gCeJ3fMpL6YUU0egCkohBBp06mD rQsAnikdmdOH0hJNpi91z1uqfTbUbXGX =iN0W -----END PGP SIGNATURE----- --=-=-=--