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 C1ADE40DBF6 for ; Thu, 11 Nov 2010 05:11:19 -0800 (PST) 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 mR2rU6khVtHL for ; Thu, 11 Nov 2010 05:11:09 -0800 (PST) Received: from yoom.home.cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A6F9A40DBEE for ; Thu, 11 Nov 2010 05:11:09 -0800 (PST) Received: by yoom.home.cworth.org (Postfix, from userid 1000) id 4599B25412B; Thu, 11 Nov 2010 05:11:09 -0800 (PST) From: Carl Worth To: notmuch@notmuchmail.org Subject: Support for multiple filenames (in notmuch library) User-Agent: Notmuch/0.4 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Thu, 11 Nov 2010 05:11:09 -0800 Message-ID: <87fwv8ngya.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: Thu, 11 Nov 2010 13:11:19 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable As part of my recent work to fix up the maildir-flags synchronization patches, I found myself needing to access the complete list of filenames for a given message. So I added the following, new public function to libnotmuch: notmuch_filenames_t * notmuch_message_get_filenames (notmuch_message_t *message); This of course, works with the existing notmuch_filenames_valid, notmuch_filenames_move_to_next, and notmuch_filenames_get functions to allow iteration over all filenames for a message. I know some people have been wanting support like this for some time. Others want similar support in the command-line tools, (to show duplicate files rather than suppressing them). This would be fairly easy to add now. Does anyone have recommendations for suitable command-line arguments? notmuch search --with-duplicates Or something else?? Anyway, have fun with this. =2DCarl =2D-=20 carl.d.worth@intel.com --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFM2+tt6JDdNq8qSWgRAhPgAKCWmzIok4/5ijy6p00HmzTTcnowOwCgqmQ8 xVwoGw1IPNrY1nS5ficBhwU= =gTQX -----END PGP SIGNATURE----- --=-=-=--