notmuch tests issue on solaris
authorVladimir Marek <Vladimir.Marek@Oracle.COM>
Tue, 13 Aug 2013 08:49:12 +0000 (10:49 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:17 +0000 (09:56 -0800)
ab/f1f4ad9206d150b51ee6bd742824e4acf83bea [new file with mode: 0644]

diff --git a/ab/f1f4ad9206d150b51ee6bd742824e4acf83bea b/ab/f1f4ad9206d150b51ee6bd742824e4acf83bea
new file mode 100644 (file)
index 0000000..7307ec6
--- /dev/null
@@ -0,0 +1,133 @@
+Return-Path: <Vladimir.Marek@Oracle.COM>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 2461A431FBD\r
+       for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 01:50:27 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.299\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id aNIgzo753-pz for <notmuch@notmuchmail.org>;\r
+       Tue, 13 Aug 2013 01:49:21 -0700 (PDT)\r
+Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 38812431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 01:49:21 -0700 (PDT)\r
+Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])\r
+       by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with\r
+       ESMTP id r7D8nJce009681\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)\r
+       for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 08:49:20 GMT\r
+Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85])\r
+       by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id\r
+       r7D8nHS4016859\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)\r
+       for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 08:49:19 GMT\r
+Received: from abhmt104.oracle.com (abhmt104.oracle.com [141.146.116.56])\r
+       by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id\r
+       r7D8nHDx015094\r
+       for <notmuch@notmuchmail.org>; Tue, 13 Aug 2013 08:49:17 GMT\r
+Received: from virt.cz.oracle.com (/10.163.102.127)\r
+       by default (Oracle Beehive Gateway v4.0)\r
+       with ESMTP ; Tue, 13 Aug 2013 01:49:16 -0700\r
+Date: Tue, 13 Aug 2013 10:49:12 +0200\r
+From: Vladimir Marek <Vladimir.Marek@Oracle.COM>\r
+To: notmuch@notmuchmail.org\r
+Subject: notmuch tests issue on solaris\r
+Message-ID: <20130813084856.GA1208@virt.cz.oracle.com>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Disposition: inline\r
+User-Agent: Mutt/ (2012-12-30)\r
+X-Source-IP: acsinet22.oracle.com [141.146.126.238]\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 13 Aug 2013 08:50:28 -0000\r
+\r
+Hi,\r
+\r
+I returned back to making the test suite work on Solaris. But now I\r
+stumbled upon a problem with emacs which I don't know how to solve ...\r
+\r
+Emacs seems to throw some kind of error while trying to send email\r
+\r
++ emacsclient --socket-name=notmuch-test-suite-9620 --eval '(progn (let ((message-send-mail-function '\''message-smtpmail-send-it)\r
+               (smtpmail-smtp-server "localhost")\r
+               (smtpmail-smtp-service "25025"))\r
+           (setq smtpmail-debug-info t)\r
+           (notmuch-hello)\r
+           (notmuch-mua-mail)\r
+           (message-goto-to)\r
+           (insert "test_suite@notmuchmail.org\nDate: 01 Jan 2000 12:00:00 -0000")\r
+           (message-goto-subject)\r
+           (insert "Testing message sent via SMTP")\r
+           (message-goto-body)\r
+           (insert "This is a test that messages are sent via SMTP")\r
+           (message-goto-to)\r
+     (kill-whole-line)\r
+     (insert "To: user@example.com\n")\r
+           (message-send-and-exit)))'\r
+*ERROR*: Sending failed; SMTP protocol error\r
+\r
+\r
+\r
+\r
+If I try to instrument the smtp-dummy binary, I can see:\r
+\r
+11183/1:         0.1832 write(5, 0x0806550C, 26)                        = 26\r
+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
+11183/1:         0.1839 read(5, 0x0806550C, 8192)                       = 14\r
+11183/1:           E H L O   S 1 1 . 1 _ F C S\r
+11183/1:         0.1841 read(5, "\r\n", 8192)                           = 2\r
+11183/1:         0.1842 write(5, "\r\n", 2)                             = 2\r
+11183/1:         0.1842 write(5, 0x0806550C, 21)                        = 21\r
+11183/1:           5 0 2   n o t   i m p l e m e n t e d\r\n\r
+11183/1:         0.1845 read(5, 0x0806550C, 8192)                       = 14\r
+11183/1:           H E L O   S 1 1 . 1 _ F C S\r
+11183/1:         0.1847 read(5, "\r\n", 8192)                           = 2\r
+11183/1:         0.1847 write(5, "\r\n", 2)                             = 2\r
+11183/1:         0.1847 write(5, 0x0806550C, 15)                        = 15\r
+11183/1:           2 5 0   l o c a l h o s t\r\n\r
+11183/1:         0.1850 read(5, " Q U I T", 8192)                       = 4\r
+11183/1:         0.1852 read(5, "\r\n", 8192)                           = 2\r
+11183/1:         0.1853 write(5, "\r\n", 2)                             = 2\r
+11183/1:         0.1853 write(5, " 2 2 1   B Y E\r\n", 9)               = 9\r
+11183/1:         0.1854 close(3)                                        = 0\r
+11183/1:         0.1855 llseek(5, 0, SEEK_CUR)                          Err#29 ESPIPE\r
+11183/1:         0.1855 close(5)                                        = 0\r
+11183/1:         0.1855 close(4)                                        = 0\r
+11183/1:         0.1856 _exit(0)\r
+\r
+Which is\r
+\r
+-> 220 localhost smtp-dummy\r
+<- EHLO S11.1_FCS\r
+-> 502 not implemented\r
+<- HELO S11.1_FCS\r
+-> 250 localhost\r
+<- QUIT\r
+-> 221 BYE\r
+\r
+So it seems that emacs just quits after HELO command? Is there a way to\r
+debug emacs? Several tests are using emacs for sending email ...\r
+\r
+Thank you\r
+-- \r
+       Vlad\r