From df95445e9a6fd36fbd4d7a1e9d913c07a1599f7e Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 26 Apr 2012 16:56:06 +0100 Subject: [PATCH] Possible bug with notmuch search & --limit --offset --- 67/56f0f20c3a98be0cb227d5aa600579e088aac2 | 102 ++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 67/56f0f20c3a98be0cb227d5aa600579e088aac2 diff --git a/67/56f0f20c3a98be0cb227d5aa600579e088aac2 b/67/56f0f20c3a98be0cb227d5aa600579e088aac2 new file mode 100644 index 000000000..8c38fa40c --- /dev/null +++ b/67/56f0f20c3a98be0cb227d5aa600579e088aac2 @@ -0,0 +1,102 @@ +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 9C538431FB6 + for ; Thu, 26 Apr 2012 09:05:13 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.274 +X-Spam-Level: * +X-Spam-Status: No, score=1.274 tagged_above=-999 required=5 + tests=[RDNS_NONE=1.274] 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 gsXYsV9i7Wt4 for ; + Thu, 26 Apr 2012 09:05:13 -0700 (PDT) +X-Greylist: delayed 551 seconds by postgrey-1.32 at olra; + Thu, 26 Apr 2012 09:05:12 PDT +Received: from mgap.localdomain (unknown [46.4.49.10]) + by olra.theworths.org (Postfix) with ESMTP id F1398431FAE + for ; Thu, 26 Apr 2012 09:05:12 -0700 (PDT) +Received: from localhost (localhost [127.0.0.1]) + by mgap.localdomain (Postfix) with ESMTP id 55C658464E8 + for ; Thu, 26 Apr 2012 17:56:00 +0200 (CEST) +X-Virus-Scanned: Debian amavisd-new at mail.mgap.co.uk +Received: from mgap.localdomain ([127.0.0.1]) + by localhost (mail.mgap.co.uk [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id OA-TQDrqBIXE for ; + Thu, 26 Apr 2012 17:56:00 +0200 (CEST) +Received: from shooPC3 (cpc4-stev6-2-0-cust409.9-2.cable.virginmedia.com + [213.107.185.154]) + by mgap.localdomain (Postfix) with ESMTPA id 051A08464E7 + for ; Thu, 26 Apr 2012 17:55:59 +0200 (CEST) +From: "jake" +To: +Subject: Possible bug with notmuch search & --limit --offset +Date: Thu, 26 Apr 2012 16:56:06 +0100 +Message-ID: <000301cd23c5$174d6510$45e82f30$@mgap.ru> +MIME-Version: 1.0 +Content-Type: text/plain; + charset="us-ascii" +Content-Transfer-Encoding: 7bit +X-Mailer: Microsoft Outlook 14.0 +Thread-Index: Ac0jwsXQNJ5dU9G5QnKHlJCbu7LVAQ== +Content-Language: en-gb +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, 26 Apr 2012 16:05:13 -0000 + +Hello, + +I'm finding that when I use the --limit option with the output=files and +offset=N that the returned list of files is of variable length. + +For instance when: + +notmuch search --output=files --offset=6 --limit=2 steve + +it returns + +/var/spool/mail/virtual/archive/sl/.Sent/cur/1335243985.M765351P23366V000000 +0000000801I0000000000820E9C_5.archive,S=275069:2,S +/var/spool/mail/virtual/archive/sl/.Sent/cur/1335243986.M749883P23366V000000 +0000000801I0000000000820E9D_6.archive,S=275069:2,S +/var/spool/mail/virtual/archive/sl/.Sent/cur/1335243987.M926961P23366V000000 +0000000801I0000000000820EA0_9.archive,S=111888:2,S +/var/spool/mail/virtual/archive/sl/.Sent/cur/1335243988.M718230P23366V000000 +0000000801I0000000000820EA1_10.archive,S=111888:2,S + +Which is two more results than required. If I choose different offset values +then the number of returned results will vary too. + +If I issue: + +notmuch search --offset=6 --limit=2 steve + +It returns two results as expected, if I change the output type to anything +other than files (summary/threads/messages/tags) then the correctly limited +list is returned. So it only seems to happen with the files output type. +Both json and text format types exhibit the same behaviour. + +Am I using this correctly ? I expect only two results to be returned but +being new to notmuch gives me doubts that what I am doing may be incorrect. + +My apologies if the mailing list is not the place for this sort of report, +please direct me to a more appropriate place. + +Many Thanks +Jake + + + -- 2.26.2