[PATCH 01/24] lib/message.cc: stale pointer bug
[notmuch-archives.git] / da / 7bfbb0c6f9a8756356507f9db532e421f91ccc
1 Return-Path: <m.walters@qmul.ac.uk>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 0105F431FBC\r
6         for <notmuch@notmuchmail.org>; Thu, 26 Apr 2012 09:18:40 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.098\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5\r
12         tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001,\r
13         NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id wT0TYxKJWfAR for <notmuch@notmuchmail.org>;\r
17         Thu, 26 Apr 2012 09:18:39 -0700 (PDT)\r
18 Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 2D2BF431FAE\r
22         for <notmuch@notmuchmail.org>; Thu, 26 Apr 2012 09:18:39 -0700 (PDT)\r
23 Received: from smtp.qmul.ac.uk ([138.37.6.40])\r
24         by mail2.qmul.ac.uk with esmtp (Exim 4.71)\r
25         (envelope-from <m.walters@qmul.ac.uk>)\r
26         id 1SNROl-0006IK-SP; Thu, 26 Apr 2012 17:18:35 +0100\r
27 Received: from 94-192-233-223.zone6.bethere.co.uk ([94.192.233.223]\r
28         helo=localhost)\r
29         by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69)\r
30         (envelope-from <m.walters@qmul.ac.uk>)\r
31         id 1SNROl-0001h5-JH; Thu, 26 Apr 2012 17:18:27 +0100\r
32 From: Mark Walters <markwalters1009@gmail.com>\r
33 To: jake <jake@mgap.ru>, notmuch@notmuchmail.org\r
34 Subject: Re: Possible bug with notmuch search & --limit --offset\r
35 In-Reply-To: <000301cd23c5$174d6510$45e82f30$@mgap.ru>\r
36 References: <000301cd23c5$174d6510$45e82f30$@mgap.ru>\r
37 User-Agent: Notmuch/0.12+128~g0f26d91 (http://notmuchmail.org) Emacs/23.3.1\r
38         (x86_64-pc-linux-gnu)\r
39 Date: Thu, 26 Apr 2012 17:18:45 +0100\r
40 Message-ID: <87lili31qy.fsf@qmul.ac.uk>\r
41 MIME-Version: 1.0\r
42 Content-Type: text/plain; charset=us-ascii\r
43 X-Sender-Host-Address: 94.192.233.223\r
44 X-QM-SPAM-Info: Sender has good ham record.  :)\r
45 X-QM-Body-MD5: b87c1eebc0c24f0ca7dc1ff1f54c37a1 (of first 20000 bytes)\r
46 X-SpamAssassin-Score: -1.8\r
47 X-SpamAssassin-SpamBar: -\r
48 X-SpamAssassin-Report: The QM spam filters have analysed this message to\r
49         determine if it is\r
50         spam. We require at least 5.0 points to mark a message as spam.\r
51         This message scored -1.8 points.\r
52         Summary of the scoring: \r
53         * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,\r
54         *      medium trust\r
55         *      [138.37.6.40 listed in list.dnswl.org]\r
56         * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\r
57         provider *      (markwalters1009[at]gmail.com)\r
58         * -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay\r
59         *      domain\r
60         *  0.5 AWL AWL: From: address is in the auto white-list\r
61 X-QM-Scan-Virus: ClamAV says the message is clean\r
62 X-BeenThere: notmuch@notmuchmail.org\r
63 X-Mailman-Version: 2.1.13\r
64 Precedence: list\r
65 List-Id: "Use and development of the notmuch mail system."\r
66         <notmuch.notmuchmail.org>\r
67 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
69 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
70 List-Post: <mailto:notmuch@notmuchmail.org>\r
71 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
72 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
73         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
74 X-List-Received-Date: Thu, 26 Apr 2012 16:18:41 -0000\r
75 \r
76 On Thu, 26 Apr 2012, jake <jake@mgap.ru> wrote:\r
77 > Hello, \r
78 >\r
79 > I'm finding that when I use the --limit option with the output=files and\r
80 > offset=N that the returned list of files is of variable length.\r
81 >\r
82 > For instance when:\r
83 >\r
84 > notmuch search --output=files --offset=6 --limit=2 steve\r
85 >\r
86 > it returns\r
87 >\r
88 > /var/spool/mail/virtual/archive/sl/.Sent/cur/1335243985.M765351P23366V000000\r
89 > 0000000801I0000000000820E9C_5.archive,S=275069:2,S\r
90 > /var/spool/mail/virtual/archive/sl/.Sent/cur/1335243986.M749883P23366V000000\r
91 > 0000000801I0000000000820E9D_6.archive,S=275069:2,S\r
92 > /var/spool/mail/virtual/archive/sl/.Sent/cur/1335243987.M926961P23366V000000\r
93 > 0000000801I0000000000820EA0_9.archive,S=111888:2,S\r
94 > /var/spool/mail/virtual/archive/sl/.Sent/cur/1335243988.M718230P23366V000000\r
95 > 0000000801I0000000000820EA1_10.archive,S=111888:2,S\r
96 \r
97 Hi \r
98 \r
99 You might have duplicate copies of the messages: that is different files\r
100 with the same message. (I think the search returns all the filenames\r
101 but am not sure.) Notmuch uses the messageid so you would just need to\r
102 check if some of these files have the same message-id header.\r
103 \r
104 Best wishes\r
105 \r
106 Mark\r
107 \r
108 \r
109 \r
110 \r
111 \r
112 \r
113 >\r
114 > Which is two more results than required. If I choose different offset values\r
115 > then the number of returned results will vary too. \r
116 >\r
117 > If I issue:\r
118 >\r
119 > notmuch search --offset=6 --limit=2 steve\r
120 >\r
121 > It returns two results as expected, if I change the output type to anything\r
122 > other than files (summary/threads/messages/tags) then the correctly limited\r
123 > list is returned. So it only seems to happen with the files output type.\r
124 > Both json and text format types exhibit the same behaviour.\r
125 >\r
126 > Am I using this correctly ? I expect only two results to be returned but\r
127 > being new to notmuch gives me doubts that what I am doing may be incorrect.\r
128 >\r
129 > My apologies if the mailing list is not the place for this sort of report,\r
130 > please direct me to a more appropriate place.\r
131 >\r
132 > Many Thanks\r
133 > Jake\r
134 >\r
135 >\r
136 >\r
137 > _______________________________________________\r
138 > notmuch mailing list\r
139 > notmuch@notmuchmail.org\r
140 > http://notmuchmail.org/mailman/listinfo/notmuch\r