Possible bug with notmuch search & --limit --offset
authorjake <jake@mgap.ru>
Thu, 26 Apr 2012 15:56:06 +0000 (16:56 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:46:44 +0000 (09:46 -0800)
67/56f0f20c3a98be0cb227d5aa600579e088aac2 [new file with mode: 0644]

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