Re: [PATCH v2] Omit User-Agent: header by default
[notmuch-archives.git] / ab / f1f4ad9206d150b51ee6bd742824e4acf83bea
1 Return-Path: <Vladimir.Marek@Oracle.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 2461A431FBD\r
6         for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 01:50:27 -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: -2.299\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001]\r
13         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 aNIgzo753-pz for <notmuch@notmuchmail.org>;\r
17         Tue, 13 Aug 2013 01:49:21 -0700 (PDT)\r
18 Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81])\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 38812431FAF\r
22         for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 01:49:21 -0700 (PDT)\r
23 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])\r
24         by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with\r
25         ESMTP id r7D8nJce009681\r
26         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)\r
27         for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 08:49:20 GMT\r
28 Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85])\r
29         by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id\r
30         r7D8nHS4016859\r
31         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)\r
32         for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 08:49:19 GMT\r
33 Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56])\r
34         by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id\r
35         r7D8nHDx015094\r
36         for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 08:49:17 GMT\r
37 Received: from virt.cz.oracle.com (/10.163.102.127)\r
38         by default (Oracle Beehive Gateway v4.0)\r
39         with ESMTP ; Tue, 13 Aug 2013 01:49:16 -0700\r
40 Date: Tue, 13 Aug 2013 10:49:12 +0200\r
41 From: Vladimir Marek <Vladimir.Marek@Oracle.COM>\r
42 To: notmuch@notmuchmail.org\r
43 Subject: notmuch tests issue on solaris\r
44 Message-ID: <20130813084856.GA1208@virt.cz.oracle.com>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=utf-8\r
47 Content-Disposition: inline\r
48 User-Agent: Mutt/ (2012-12-30)\r
49 X-Source-IP: acsinet22.oracle.com [141.146.126.238]\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Tue, 13 Aug 2013 08:50:28 -0000\r
63 \r
64 Hi,\r
65 \r
66 I returned back to making the test suite work on Solaris. But now I\r
67 stumbled upon a problem with emacs which I don't know how to solve ...\r
68 \r
69 Emacs seems to throw some kind of error while trying to send email\r
70 \r
71 + emacsclient --socket-name=notmuch-test-suite-9620 --eval '(progn (let ((message-send-mail-function '\''message-smtpmail-send-it)\r
72                (smtpmail-smtp-server "localhost")\r
73                (smtpmail-smtp-service "25025"))\r
74            (setq smtpmail-debug-info t)\r
75            (notmuch-hello)\r
76            (notmuch-mua-mail)\r
77            (message-goto-to)\r
78            (insert "test_suite@notmuchmail.org\nDate: 01 Jan 2000 12:00:00 -0000")\r
79            (message-goto-subject)\r
80            (insert "Testing message sent via SMTP")\r
81            (message-goto-body)\r
82            (insert "This is a test that messages are sent via SMTP")\r
83            (message-goto-to)\r
84      (kill-whole-line)\r
85      (insert "To: user@example.com\n")\r
86            (message-send-and-exit)))'\r
87 *ERROR*: Sending failed; SMTP protocol error\r
88 \r
89 \r
90 \r
91 \r
92 If I try to instrument the smtp-dummy binary, I can see:\r
93 \r
94 11183/1:         0.1832 write(5, 0x0806550C, 26)                        = 26\r
95 11183/1:           2 2 0   l o c a l h o s t   s m t p - d u m m y\r\n\r
96 11183/1:         0.1839 read(5, 0x0806550C, 8192)                       = 14\r
97 11183/1:           E H L O   S 1 1 . 1 _ F C S\r
98 11183/1:         0.1841 read(5, "\r\n", 8192)                           = 2\r
99 11183/1:         0.1842 write(5, "\r\n", 2)                             = 2\r
100 11183/1:         0.1842 write(5, 0x0806550C, 21)                        = 21\r
101 11183/1:           5 0 2   n o t   i m p l e m e n t e d\r\n\r
102 11183/1:         0.1845 read(5, 0x0806550C, 8192)                       = 14\r
103 11183/1:           H E L O   S 1 1 . 1 _ F C S\r
104 11183/1:         0.1847 read(5, "\r\n", 8192)                           = 2\r
105 11183/1:         0.1847 write(5, "\r\n", 2)                             = 2\r
106 11183/1:         0.1847 write(5, 0x0806550C, 15)                        = 15\r
107 11183/1:           2 5 0   l o c a l h o s t\r\n\r
108 11183/1:         0.1850 read(5, " Q U I T", 8192)                       = 4\r
109 11183/1:         0.1852 read(5, "\r\n", 8192)                           = 2\r
110 11183/1:         0.1853 write(5, "\r\n", 2)                             = 2\r
111 11183/1:         0.1853 write(5, " 2 2 1   B Y E\r\n", 9)               = 9\r
112 11183/1:         0.1854 close(3)                                        = 0\r
113 11183/1:         0.1855 llseek(5, 0, SEEK_CUR)                          Err#29 ESPIPE\r
114 11183/1:         0.1855 close(5)                                        = 0\r
115 11183/1:         0.1855 close(4)                                        = 0\r
116 11183/1:         0.1856 _exit(0)\r
117 \r
118 Which is\r
119 \r
120 -> 220 localhost smtp-dummy\r
121 <- EHLO S11.1_FCS\r
122 -> 502 not implemented\r
123 <- HELO S11.1_FCS\r
124 -> 250 localhost\r
125 <- QUIT\r
126 -> 221 BYE\r
127 \r
128 So it seems that emacs just quits after HELO command? Is there a way to\r
129 debug emacs? Several tests are using emacs for sending email ...\r
130 \r
131 Thank you\r
132 -- \r
133         Vlad\r