[PATCH v3 4/7] Add internal functions to search for alternate doc types
[notmuch-archives.git] / 93 / 8a574fa0e95d112f21bea5117a82ace816820c
1 Return-Path: <rlb@defaultvalue.org>\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 0E9E740BFD3\r
6         for <notmuch@notmuchmail.org>; Mon,  6 Sep 2010 15:16:49 -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.89\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id V6AAHeeaEQPE for <notmuch@notmuchmail.org>;\r
16         Mon,  6 Sep 2010 15:16:37 -0700 (PDT)\r
17 Received: from defaultvalue.org (li12-156.members.linode.com [70.85.129.156])\r
18         by olra.theworths.org (Postfix) with ESMTP id BCD7B40BD93\r
19         for <notmuch@notmuchmail.org>; Mon,  6 Sep 2010 15:16:37 -0700 (PDT)\r
20 Received: from omen.defaultvalue.org (localhost [127.0.0.1])\r
21         by defaultvalue.org (Postfix) with ESMTP id 310079107B;\r
22         Mon,  6 Sep 2010 17:16:36 -0500 (CDT)\r
23 Received: from raven.defaultvalue.org (raven.defaultvalue.org [192.168.1.7])\r
24         by omen.defaultvalue.org (Postfix) with ESMTP id 0461045C001;\r
25         Mon,  6 Sep 2010 17:16:36 -0500 (CDT)\r
26 Received: by raven.defaultvalue.org (Postfix, from userid 1000)\r
27         id D4E387C4109; Mon,  6 Sep 2010 17:16:35 -0500 (CDT)\r
28 From: Rob Browning <rlb@defaultvalue.org>\r
29 To: Jameson Rollins <jrollins@finestructure.net>\r
30 Subject: Re: Xapian exceptions "Key too long" during notmuch new\r
31 References: <878w3eepgy.fsf@raven.defaultvalue.org>\r
32         <87sk1mn3nf.fsf@servo.finestructure.net>\r
33 Date: Mon, 06 Sep 2010 17:16:35 -0500\r
34 In-Reply-To: <87sk1mn3nf.fsf@servo.finestructure.net> (Jameson Rollins's\r
35         message of "Mon, 06 Sep 2010 14:11:16 -0400")\r
36 Message-ID: <87vd6i8qm4.fsf@raven.defaultvalue.org>\r
37 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)\r
38 MIME-Version: 1.0\r
39 Content-Type: multipart/mixed; boundary="=-=-="\r
40 Cc: notmuch@notmuchmail.org\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Mon, 06 Sep 2010 22:16:49 -0000\r
54 \r
55 --=-=-=\r
56 \r
57 Jameson Rollins <jrollins@finestructure.net> writes:\r
58 \r
59 > Hey, Rob.  I've never seen this error before.  I wonder if these\r
60 > messages have some really long header names?  If it's not too onerous,\r
61 > can you find the messages where this occurred?  There's a verbose\r
62 > option, that might be useful.\r
63 >\r
64 > jamie.\r
65 \r
66 OK, it looks like this is the first message that caused the exception:\r
67 \r
68 \r
69 --=-=-=\r
70 Content-Disposition: inline; filename=bad-mail.txt\r
71 Content-Description: key-too-long-msg.txt\r
72 \r
73 Return-Path: <rsync-bounces+rlb=defaultvalue.org@lists.samba.org>\r
74 X-Original-To: rlb@raven.defaultvalue.org\r
75 Delivered-To: rlb@raven.defaultvalue.org\r
76 Received: from defaultvalue.org (omen.defaultvalue.org [192.168.1.1])\r
77         by raven.defaultvalue.org (Postfix) with ESMTP id D63A71D3018\r
78         for <rlb@raven.defaultvalue.org>; Thu, 30 Dec 2004 19:01:37 -0600 (CST)\r
79 Received: by defaultvalue.org (Postfix)\r
80         id A19A64176; Thu, 30 Dec 2004 18:34:22 -0600 (CST)\r
81 Delivered-To: rlb@defaultvalue.org\r
82 Received: from lists.samba.org (dp.samba.org [66.70.73.150])\r
83         by defaultvalue.org (Postfix) with ESMTP id 6F2F3416F\r
84         for <rlb@defaultvalue.org>; Thu, 30 Dec 2004 18:34:22 -0600 (CST)\r
85 Received: from dp.samba.org (localhost [127.0.0.1])\r
86         by lists.samba.org (Postfix) with ESMTP id 125E4163B82\r
87         for <rlb@defaultvalue.org>; Fri, 31 Dec 2004 00:34:22 +0000 (GMT)\r
88 X-Original-To: rsync@lists.samba.org\r
89 Delivered-To: rsync@lists.samba.org\r
90 Received: from binome.blorf.net (dsl3-63-249-88-2.cruzio.com [63.249.88.2])\r
91         by lists.samba.org (Postfix) with ESMTP id 80F70162BD9\r
92         for <rsync@lists.samba.org>; Fri, 31 Dec 2004 00:33:47 +0000 (GMT)\r
93 Received: by binome.blorf.net (Postfix, from userid 1000)\r
94         id 950F1291E; Thu, 30 Dec 2004 16:33:46 -0800 (PST)\r
95 Date: Thu, 30 Dec 2004 16:33:46 -0800\r
96 From: Wayne Davison <wayned@samba.org>\r
97 To: Stephen Schembri <SPJ.Schembri@Virgin.Net>\r
98 X-Gnus-Mail-Source: maildir:/home/rlb/incoming-mail/spool/new\r
99 Message-ID: <20041231003346.GA1188@blorf.net>\r
100 References: <!~!UENERkVCMDkAAQACAGsAAAAAAAAAOKG7EAXlEBqhuwgAKypWwgAAbXNwc3QuZGxsAAAAAABOSVRB+b+4AQCqADfZbgAAAEQ6XERvY3VtZW50cyBhbmQgU2V0dGluZ3NcU3RlcGhlblxTYWZlLU1haWxcbXlvd24ucHN0ABgAAAAAAAAAKmWF8xrwOEqmERpDM8LmDaKAAAAAAAAAGAAAAAAAAAAqZYXzGvA4SqYRGkMzwuYNwoAAABAAAACBsx7lCzP5SIlwp4aMmuqaMgAAAFJFOiAtLXBhcnRpYWxsLWRpciBub3QgYmVoYXZpbmcgbGlrZSBpdCBvdWdodCB0b28A@Virgin.Net>\r
101 Mime-Version: 1.0\r
102 Content-Type: multipart/mixed; boundary="jI8keyz6grp/JLjh"\r
103 Content-Disposition: inline\r
104 In-Reply-To: <!~!UENERkVCMDkAAQACAGsAAAAAAAAAOKG7EAXlEBqhuwgAKypWwgAAbXNwc3QuZGxsAAAAAABOSVRB+b+4AQCqADfZbgAAAEQ6XERvY3VtZW50cyBhbmQgU2V0dGluZ3NcU3RlcGhlblxTYWZlLU1haWxcbXlvd24ucHN0ABgAAAAAAAAAKmWF8xrwOEqmERpDM8LmDaKAAAAAAAAAGAAAAAAAAAAqZYXzGvA4SqYRGkMzwuYNwoAAABAAAACBsx7lCzP5SIlwp4aMmuqaMgAAAFJFOiAtLXBhcnRpYWxsLWRpciBub3QgYmVoYXZpbmcgbGlrZSBpdCBvdWdodCB0b28A@Virgin.Net>\r
105 User-Agent: Mutt/1.5.6+20040907i\r
106 Cc: rsync@lists.samba.org\r
107 Subject: Re: Timeout Issues\r
108 X-BeenThere: rsync@lists.samba.org\r
109 X-Mailman-Version: 2.1.4\r
110 Precedence: list\r
111 List-Id: rsync user list <rsync.lists.samba.org>\r
112 List-Unsubscribe: <https://lists.samba.org/mailman/listinfo/rsync>,\r
113         <mailto:rsync-request@lists.samba.org?subject=unsubscribe>\r
114 List-Archive: <http://lists.samba.org/archive/rsync>\r
115 List-Post: <mailto:rsync@lists.samba.org>\r
116 List-Help: <mailto:rsync-request@lists.samba.org?subject=help>\r
117 List-Subscribe: <https://lists.samba.org/mailman/listinfo/rsync>,\r
118         <mailto:rsync-request@lists.samba.org?subject=subscribe>\r
119 Sender: rsync-bounces+rlb=defaultvalue.org@lists.samba.org\r
120 Errors-To: rsync-bounces+rlb=defaultvalue.org@lists.samba.org\r
121 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on \r
122         raven.defaultvalue.org\r
123 X-Spam-Level: \r
124 X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS \r
125         autolearn=ham version=3.0.1\r
126 Lines: 64\r
127 Xref: trouble.defaultvalue.org rsync:6592\r
128 \r
129 \r
130 --jI8keyz6grp/JLjh\r
131 Content-Type: text/plain; charset=us-ascii\r
132 Content-Disposition: inline\r
133 \r
134 On Thu, Dec 30, 2004 at 11:23:07PM -0000, Stephen Schembri wrote:\r
135 > By default the timeout value is supposed to be 60 according to io.c, but\r
136 > in loadparam.c it is stating a value of 0 - is this statement correct?\r
137 \r
138 The comment in io.c says that the default select() timeout is 60 secs,\r
139 which is not the same as the default rsync timeout value (which is 0,\r
140 meaning that rsync doesn't timeout).\r
141 \r
142 > If I declare a timeout value of "timeout=20" in the config file, the\r
143 > value is ignored and the value of 60 seconds is always used.\r
144 \r
145 The attached patch should fix this.\r
146 \r
147 > Hope you have a Happy New Year and most of all, keep up the excellent\r
148 > work.\r
149 \r
150 Thanks!\r
151 \r
152 ..wayne..\r
153 \r
154 --jI8keyz6grp/JLjh\r
155 Content-Type: text/plain; charset=us-ascii\r
156 Content-Disposition: attachment; filename="timeout.patch"\r
157 \r
158 --- clientserver.c      8 Dec 2004 17:11:15 -0000       1.134\r
159 +++ clientserver.c      31 Dec 2004 00:24:07 -0000\r
160 @@ -43,6 +43,7 @@ extern int filesfrom_fd;\r
161  extern int remote_protocol;\r
162  extern int protocol_version;\r
163  extern int io_timeout;\r
164 +extern int select_timeout;\r
165  extern int orig_umask;\r
166  extern int no_detach;\r
167  extern int default_af_hint;\r
168 @@ -476,8 +477,11 @@ static int rsync_module(int f_in, int f_\r
169                 exit_cleanup(RERR_UNSUPPORTED);\r
170         }\r
171  \r
172 -       if (lp_timeout(i))\r
173 +       if (lp_timeout(i)) {\r
174                 io_timeout = lp_timeout(i);\r
175 +               if (io_timeout && io_timeout < select_timeout)\r
176 +                       select_timeout = io_timeout;\r
177 +       }\r
178  \r
179         start_server(f_in, f_out, argc, argp);\r
180  \r
181 \r
182 --jI8keyz6grp/JLjh\r
183 Content-Type: text/plain; charset="us-ascii"\r
184 MIME-Version: 1.0\r
185 Content-Transfer-Encoding: 7bit\r
186 Content-Disposition: inline\r
187 \r
188 -- \r
189 To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync\r
190 Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html\r
191 --jI8keyz6grp/JLjh--\r
192 \r
193 \r
194 --=-=-=\r
195 \r
196 \r
197 -- \r
198 Rob Browning\r
199 rlb @defaultvalue.org and @debian.org\r
200 GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4\r
201 \r
202 --=-=-=--\r