Re: [PATCH 3/4] config: only set search.exclude_tags to "deleted; spam; " during...
[notmuch-archives.git] / a3 / 94b28dae7a7a8503ac9decb458d8b46bcdb5f2
1 Return-Path: <tomi.ollila@nixu.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 80E4B429E25\r
6         for <notmuch@notmuchmail.org>; Sat, 12 Nov 2011 13:07:45 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 qNeNYV+zIF8m for <notmuch@notmuchmail.org>;\r
16         Sat, 12 Nov 2011 13:07:44 -0800 (PST)\r
17 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 9F4FF431FB6\r
21         for <notmuch@notmuchmail.org>; Sat, 12 Nov 2011 13:07:44 -0800 (PST)\r
22 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
23         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
24         pACL7cY0004171; Sat, 12 Nov 2011 23:07:40 +0200\r
25 From: Tomi Ollila <tomi.ollila@iki.fi>\r
26 To: Austin Clements <amdragon@MIT.EDU>\r
27 Subject: Re: [PATCH] test: attempt to send QUIT to smtp-dummy in case mail\r
28         send failed\r
29 In-Reply-To: <20111112154128.GB2658@mit.edu>\r
30 References: <yf6ipmr7dki.fsf@taco2.nixu.fi> <20111112024941.GY2658@mit.edu>\r
31         <yf662iplkv3.fsf@taco2.nixu.fi> <20111112154128.GB2658@mit.edu>\r
32 User-Agent: Notmuch/0.9+23~g556c5fa (http://notmuchmail.org) Emacs/23.3.1\r
33         (i686-pc-linux-gnu)\r
34 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
35         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
36         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
37 Date: Sat, 12 Nov 2011 23:07:38 +0200\r
38 Message-ID: <yf639dthwx1.fsf@taco2.nixu.fi>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain; charset=us-ascii\r
41 Cc: notmuch@notmuchmail.org\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Sat, 12 Nov 2011 21:07:45 -0000\r
55 \r
56 On Sat, 12 Nov 2011 10:41:28 -0500, Austin Clements <amdragon@MIT.EDU> wrote:\r
57\r
58 > Actually, since sending mail is synchronous, there shouldn't be any\r
59 > issues with buffering or timing.  If Emacs successfully sends the\r
60 > message, it will wait for the OK response (`smtpmail-via-smtp'), which\r
61 > should indicate that the message is in stable storage on the SMTP\r
62 > server (this is rather fundamental to SMTP's reliability as a\r
63 > protocol, after all).  Thus, the smtp-dummy *should* be done by the\r
64 > time Emacs exits.  If Emacs fails to send the message, then it doesn't\r
65 > really matter and you just want the smtp-dummy to go away.\r
66\r
67 > I say "should" because smtp-dummy needs a one line patch to add an\r
68 > fflush at the end of receive_data_to_file.  Any real SMTP server would\r
69 > do this (not to mention a full fsync) before acknowledging the\r
70 > message.\r
71 \r
72 SO, in our cases there are 2 options:\r
73 \r
74 \r
75 1) add line \r
76         { echo QUIT > /dev/tcp/127.0.0.1/25025; } 2>/dev/null\r
77   before \r
78         wait ${smtp_dummy_pid}\r
79 \r
80 in test-lib.sh\r
81 \r
82 \r
83 2) add line\r
84         kill ${smtp_dummy_pid}\r
85   before \r
86         wait ${smtp_dummy_pid}\r
87 \r
88 in test-lib.sh *and* add that fflush (output) before free (line) in \r
89 smtp-dummy.c function receive_data_to_file.\r
90 \r
91 folks! opinions!\r
92 \r
93 Tomi\r