Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 11 / f31ef218f6cfb9c8e2ecee3eba16ab1829d223
1 Return-Path: <amdragon@mit.edu>\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 A706E429E27\r
6         for <notmuch@notmuchmail.org>; Sat, 12 Nov 2011 07:39:09 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\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 E09cNK2oXewj for <notmuch@notmuchmail.org>;\r
16         Sat, 12 Nov 2011 07:39:09 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU\r
18         [18.7.68.37])\r
19         by olra.theworths.org (Postfix) with ESMTP id 1E0EA429E25\r
20         for <notmuch@notmuchmail.org>; Sat, 12 Nov 2011 07:39:09 -0800 (PST)\r
21 X-AuditID: 12074425-b7f116d0000008fe-a8-4ebe931c3115\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 82.2D.02302.C139EBE4; Sat, 12 Nov 2011 10:39:08 -0500 (EST)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id pACFd7wt031744; \r
27         Sat, 12 Nov 2011 10:39:08 -0500\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pACFd5Tq002141\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Sat, 12 Nov 2011 10:39:06 -0500 (EST)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1RPFhw-0006rU-WA; Sat, 12 Nov 2011 10:41:29 -0500\r
37 Date: Sat, 12 Nov 2011 10:41:28 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: Tomi Ollila <tomi.ollila@iki.fi>\r
40 Subject: Re: [PATCH] test: attempt to send QUIT to smtp-dummy in case mail\r
41         send failed\r
42 Message-ID: <20111112154128.GB2658@mit.edu>\r
43 References: <yf6ipmr7dki.fsf@taco2.nixu.fi> <20111112024941.GY2658@mit.edu>\r
44         <yf662iplkv3.fsf@taco2.nixu.fi>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=us-ascii\r
47 Content-Disposition: inline\r
48 In-Reply-To: <yf662iplkv3.fsf@taco2.nixu.fi>\r
49 User-Agent: Mutt/1.5.21 (2010-09-15)\r
50 X-Brightmail-Tracker:\r
51  H4sIAAAAAAAAA+NgFupnleLIzCtJLcpLzFFi42IRYrdT15WZvM/PYOYRHovrN2cyW7xZOY/V\r
52         gcnj8NeFLB7PVt1iDmCK4rJJSc3JLEst0rdL4MqYtXsLW8Fzrorv7cuYGxgvcnQxcnJICJhI\r
53         vPnTxQRhi0lcuLeerYuRi0NIYB+jxK+f7UwQzgZGic9zeqCck0wSLw5/YIFwljBKTFt/gR2k\r
54         n0VAVeL7u/mMIDabgIbEtv3LwWwRARWJB23rWUFsZgFpiW+/m8H2CQtESOw7v4UNxOYV0JY4\r
55         cvsj0FAOoKH5Ele210CEBSVOznzCAtGqJXHj30smkBKQMcv/gX3AKaAj8WrPbbApokCbppzc\r
56         xjaBUWgWku5ZSLpnIXQvYGRexSibklulm5uYmVOcmqxbnJyYl5dapGuhl5tZopeaUrqJERzW\r
57         Lqo7GCccUjrEKMDBqMTDuyBpr58Qa2JZcWXuIUZJDiYlUd71E/f5CfEl5adUZiQWZ8QXleak\r
58         Fh9ilOBgVhLhXW0HlONNSaysSi3Kh0lJc7AoifO+3uHgJySQnliSmp2aWpBaBJOV4eBQkuBd\r
59         PwmoUbAoNT21Ii0zpwQhzcTBCTKcB2j4bJAa3uKCxNzizHSI/ClGXY51V5pPMwqx5OXnpUqJ\r
60         8zaCFAmAFGWU5sHNgaWjV4ziQG8J86qCVPEAUxncpFdAS5iAlrAo7AVZUpKIkJJqYPR3nx9y\r
61         LSIgksttXgDntm9++TzTFEVE7Z8nCG2Iqr2XET1zjYp2tvKzI+vd7nFs+ZDbkl9z8d3Bee4P\r
62         Ytmqvq//rCk9v/GYnfy9PSdEixdMPFjALif6UvPUmedrjGO+7qhXqtN5qn5lT/CVHfpSey9e\r
63         8GcSblNh1Dj9Wdvty2WHbrUTtdbCckosxRmJhlrMRcWJAJoDqmoiAwAA\r
64 Cc: notmuch@notmuchmail.org\r
65 X-BeenThere: notmuch@notmuchmail.org\r
66 X-Mailman-Version: 2.1.13\r
67 Precedence: list\r
68 List-Id: "Use and development of the notmuch mail system."\r
69         <notmuch.notmuchmail.org>\r
70 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
72 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
73 List-Post: <mailto:notmuch@notmuchmail.org>\r
74 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
75 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
76         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
77 X-List-Received-Date: Sat, 12 Nov 2011 15:39:09 -0000\r
78 \r
79 Quoth Tomi Ollila on Nov 12 at 12:02 pm:\r
80 > On Fri, 11 Nov 2011 21:49:41 -0500, Austin Clements <amdragon@MIT.EDU> wrote:\r
81 > > Good idea, but this introduces a dependency on netcat.  Would it work\r
82 > > to simply kill the SMTP dummy?\r
83\r
84 > I cannot guarantee 6 nines of probability (but can guarantee as many eights\r
85 > as one migh wish ;)\r
86\r
87 > Socket buffering and timing might cause smtp dummy to be killed before\r
88 > it has read all content...\r
89\r
90 > But... i recall bash has a way to do tcp stuff .../dev/tcp/host/port\r
91 > is mentioned in manual page.\r
92 > I'll investigate this later (or, anyone of you, provide a patch :)\r
93 \r
94 Actually, since sending mail is synchronous, there shouldn't be any\r
95 issues with buffering or timing.  If Emacs successfully sends the\r
96 message, it will wait for the OK response (`smtpmail-via-smtp'), which\r
97 should indicate that the message is in stable storage on the SMTP\r
98 server (this is rather fundamental to SMTP's reliability as a\r
99 protocol, after all).  Thus, the smtp-dummy *should* be done by the\r
100 time Emacs exits.  If Emacs fails to send the message, then it doesn't\r
101 really matter and you just want the smtp-dummy to go away.\r
102 \r
103 I say "should" because smtp-dummy needs a one line patch to add an\r
104 fflush at the end of receive_data_to_file.  Any real SMTP server would\r
105 do this (not to mention a full fsync) before acknowledging the\r
106 message.\r