Re: [PATCH] test: canonicalize content-type in "Sending a message via (fake) SMTP"
[notmuch-archives.git] / ad / 8e0cc051d53e79560e573e473258c321f669aa
1 Return-Path: <felipe.contreras@gmail.com>\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 27C85431FB6\r
6         for <notmuch@notmuchmail.org>; Fri,  4 May 2012 04:55:18 -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: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 dqJ5kryalnPp for <notmuch@notmuchmail.org>;\r
17         Fri,  4 May 2012 04:55:17 -0700 (PDT)\r
18 Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com\r
19  [74.125.82.45])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
20  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
21  356B0431FAE    for <notmuch@notmuchmail.org>; Fri,  4 May 2012 04:55:17 -0700\r
22  (PDT)\r
23 Received: by wgbdt14 with SMTP id dt14so2157699wgb.2\r
24         for <notmuch@notmuchmail.org>; Fri, 04 May 2012 04:55:15 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26         h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
27         :cc:content-type:content-transfer-encoding;\r
28         bh=O+EqIGNwd0CIMA/5IjmMf+HmL8+mDIxg3nNAuL1gC90=;\r
29         b=F+tdCIf0pgrYv0yAPdD5IVmfB9jD1oJVkAQf0CGt5puC2osRKbmE7dYtkU/29tXmv6\r
30         rFppCvoL0VyTWV63JZ/DYhkEX18nhzPYC7v9myOLejEZo+1Q4HLlCddtmCcS13Nm6zyo\r
31         Jgp8J62VROjX8yDlJW8AJRcLMUUgx7kcOVILwF2rL1RFFmYgGwWSWrnIUE1TkTPhJ3ja\r
32         VzauTnIRncxNVP2VttgIvhDjVtQYFoJA5sShb5sl0SIPWlwcE1BKokz6SBlLSQIrHdHR\r
33         ANhFti8MedRyIrH3YRY/GksrgvHWNjrbC5x9vL0Qn6gXLsUzzY0BW+ETEd+NLb9FzFAd\r
34         BI9g==\r
35 MIME-Version: 1.0\r
36 Received: by 10.180.107.101 with SMTP id hb5mr12363336wib.7.1336132515827;\r
37         Fri, 04 May 2012 04:55:15 -0700 (PDT)\r
38 Received: by 10.216.124.197 with HTTP; Fri, 4 May 2012 04:55:15 -0700 (PDT)\r
39 In-Reply-To: <20120502204148.4214.85824@daenerys.khirnov.net>\r
40 References:\r
41  <CAMP44s3gNrDnsqpdiHJAhJOkM1SYKMUTNL2LUO4QEUCPiFZARA@mail.gmail.com>\r
42         <20120502204148.4214.85824@daenerys.khirnov.net>\r
43 Date: Fri, 4 May 2012 13:55:15 +0200\r
44 Message-ID:\r
45  <CAMP44s1LvXNpasZohTgWHq2WPXNt6iy07hVjjhpbSn24Um54zQ@mail.gmail.com>\r
46 Subject: Re: [ANN] New awesome vim plug-in using Ruby bindings\r
47 From: Felipe Contreras <felipe.contreras@gmail.com>\r
48 To: Anton Khirnov <anton@khirnov.net>\r
49 Content-Type: text/plain; charset=UTF-8\r
50 Content-Transfer-Encoding: quoted-printable\r
51 Cc: notmuch@notmuchmail.org\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Fri, 04 May 2012 11:55:18 -0000\r
65 \r
66 On Wed, May 2, 2012 at 10:41 PM, Anton Khirnov <anton@khirnov.net> wrote:\r
67 >\r
68 > On Mon, 23 Apr 2012 04:12:32 +0300, Felipe Contreras <felipe.contreras@gm=\r
69 ail.com> wrote:\r
70 \r
71 >> =C2=A0* Gradual searches; you don't have to wait for the whole search to=\r
72  finish,\r
73 >> =C2=A0 =C2=A0sort of like the 'less' command\r
74 >\r
75 > How did you do that? When I tried to do this in my version, I got hit by\r
76 > vim not being threadsafe.\r
77 \r
78 I first started with Ruby fibers, but stumbled upon a bug, and then I\r
79 realized I didn't actually need them; in Ruby there is an Enumerable\r
80 class, which the Notmuch::Threads class includes, and one of the\r
81 methods allows to get only a certain number of items, so regardless of\r
82 what happens in the back, I only get a certain number of items at a\r
83 time. This is particularly easy thanks to Ruby blocks, but I guess you\r
84 can achieve the same in Python somehow.\r
85 \r
86 Each time the cursor changes I check if a certain threshold of items\r
87 has been passed, and if so, get one more chunk.\r
88 \r
89 Cheers.\r
90 \r
91 --=20\r
92 Felipe Contreras\r