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 130E64196F2 for ; Wed, 7 Apr 2010 14:16:36 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.89 X-Spam-Level: X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham 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 AsLWTT6zB-jE; Wed, 7 Apr 2010 14:16:35 -0700 (PDT) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4515B431FC1; Wed, 7 Apr 2010 14:16:35 -0700 (PDT) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id E45E825400C; Wed, 7 Apr 2010 14:16:34 -0700 (PDT) From: Carl Worth To: Sebastian Spaeth , notmuch@notmuchmail.org Subject: Re: [notmuch] [PATCH] notmuch-new: Respect maildir flags when importing a new message In-Reply-To: <1267450136-31749-1-git-send-email-Sebastian@SSpaeth.de> References: <20100216022128.GH22402@flamingspork.com> <1267450136-31749-1-git-send-email-Sebastian@SSpaeth.de> Date: Wed, 07 Apr 2010 14:16:34 -0700 Message-ID: <878w8zq7yl.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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, 07 Apr 2010 21:16:36 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 1 Mar 2010 14:28:56 +0100, Sebastian Spaeth = wrote: > When importing a new mail do check for maildir tags and assign > corresponding notmuch tags. I think this is a useful thing to support, as obviously new users have *some* state that's interesting to import (which messages have been "seen" for example), and simply importing their entire email archive with both the "inbox" and "unread" tags is not helpful. So I'd like to figure out how to support this. > Do note that this will only add tags when importing a really new > message, and will not do anything when detecting a file rename > (although someone should really make it honor file renames as > well). Deleteing an existing message in another IMAP client will > therefore not trigger tagging (as it counts as a file rename). But I think we really need to fix that if we're going to claim that notmuch "supports maildir flags" in any sense. It's a fairly tricky issue though since we can have multiple files that have the same message ID, but then have different maildir flags. And it's the matter of arbitrary ordering which one of these files appears as "new" and which one appears as a "rename". It's not obvious to me what we can do here unless we make some assumptions, (such as "mails always start without the seen flag, and once it appears it can't be removed" or so). But I'd love some input From=20someone who's thought harder about this than I have. =2DCarl --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLvPYy6JDdNq8qSWgRAn2VAJ43hlWfzlgN+hIlLopRVi0Bv3V2WgCglfLg A5mGsN8HwOs/I3fE9pgs8dk= =muZF -----END PGP SIGNATURE----- --=-=-=--