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 61B31431FD0 for ; Wed, 3 Aug 2011 14:01:21 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[RCVD_IN_SORBS_DUL=0.001] 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 hAX1G9gPd08J for ; Wed, 3 Aug 2011 14:01:20 -0700 (PDT) X-Greylist: delayed 509 seconds by postgrey-1.32 at olra; Wed, 03 Aug 2011 14:01:20 PDT Received: from ced.ryick.net (ced.ryick.net [82.229.97.62]) by olra.theworths.org (Postfix) with ESMTP id C162D431FB6 for ; Wed, 3 Aug 2011 14:01:20 -0700 (PDT) Received: from fawkes (fawkes.ryick.net [192.168.0.2]) by ced.ryick.net (Postfix) with SMTP id 822D827C for ; Wed, 3 Aug 2011 22:47:21 +0200 (CEST) Received: by fawkes (sSMTP sendmail emulation); Wed, 03 Aug 2011 22:47:21 +0200 From: =?UTF-8?q?C=C3=A9dric=20Cabessa?= To: notmuch@notmuchmail.org Subject: [PATCH] fix typo in Tags.__len__ Date: Wed, 3 Aug 2011 22:47:21 +0200 Message-Id: <1312404441-9635-1-git-send-email-ced@ryick.net> X-Mailer: git-send-email 1.7.6 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, 03 Aug 2011 21:01:21 -0000 Here is a sample that trigger the bug : """ import notmuch db = notmuch.Database() query = db.create_query("tag:inbox") for m in query.search_messages(): len(m.get_tags()) """ --- bindings/python/notmuch/tag.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/notmuch/tag.py b/bindings/python/notmuch/tag.py index 65a9118..2f82c1a 100644 --- a/bindings/python/notmuch/tag.py +++ b/bindings/python/notmuch/tag.py @@ -116,8 +116,8 @@ class Tags(object): raise NotmuchError(STATUS.NOT_INITIALIZED) i=0 - while nmlib.notmuch_tags_valid(self._msgs): - nmlib.notmuch_tags_move_to_next(self._msgs) + while nmlib.notmuch_tags_valid(self._tags): + nmlib.notmuch_tags_move_to_next(self._tags) i += 1 self._tags = None return i -- 1.7.6