From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 09:58:57 2011 Received: (at submit) by debbugs.gnu.org; 5 Jan 2011 14:58:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaUpE-0003fM-Sm for submit@debbugs.gnu.org; Wed, 05 Jan 2011 09:58:57 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaUp9-0003f7-8o for submit@debbugs.gnu.org; Wed, 05 Jan 2011 09:58:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaUw6-0007R5-DA for submit@debbugs.gnu.org; Wed, 05 Jan 2011 10:06:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:35571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaUw6-0007R1-AI for submit@debbugs.gnu.org; Wed, 05 Jan 2011 10:06:02 -0500 Received: from [140.186.70.92] (port=58942 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaUw5-0007du-9L for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2011 10:06:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaUw4-0007QW-1F for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2011 10:06:01 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:35578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaUw3-0007QO-TL for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2011 10:05:59 -0500 Received: by ewy27 with SMTP id 27so7658411ewy.0 for ; Wed, 05 Jan 2011 07:05:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=sYPCTxZdBcUH7I7k40tjNN72+/lUaZKPpiqXeLKfxmM=; b=BkSIQYF1GYhFta9JqiMhIKQhEjYmqJ8X2TZobH8rcW1AGDzuy5ww8rQbTFr25ay5m4 r6++KyQvWW9FBn8HGb3KWkzWqKrBdrTMrWpxeE10Co5Xjax/66O783zWcg4dhZITPuEy DVHFzHJ6hHgV5DXE3Bh+NxykYBZ1/bj4J7oes= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=MqKM5B9+QEDMvs4PQmK5A5wgwXbF++KU4rpOViX0MhLUwt2vTdlskKsZHAvIKaqavd LorqGPwluHqfYe1o+3myLwjOzzpQ+6KYezFeMqjKaX22JVxkgSZZM8Gp9AgOaoNg9Xmb qhZ2oRoTNyHq6ScWZZJSnVjjZppmqJ65oLMN0= MIME-Version: 1.0 Received: by 10.213.10.12 with SMTP id n12mr1304664ebn.66.1294239959032; Wed, 05 Jan 2011 07:05:59 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 07:05:59 -0800 (PST) Date: Wed, 5 Jan 2011 10:05:59 -0500 X-Google-Sender-Auth: g6MbyOMa5ys5r3tvHiybhQRJRW8 Message-ID: Subject: cannot send smtpmail using gmail & tls on woe32 From: Sam Steingold To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) GNU Emacs 23.2.1 (i386-mingw-nt5.2.3790) of 2010-05-08 on G41R2F1 --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include I followed the instructions on how to send smtp mail using emacs and gmail: http://obfuscatedcode.wordpress.com/2007/04/26/configuring-emacs-for-gmails-smtp/ it works with the latest bzr emacs on ubuntu just fine, but does not work on woe32. first, it hangs forever with the message Opening STARTTLS connection to `smtp.gmail.com:587'...done and then it dies when the process times out: Debugger entered--Lisp error: (error "Process SMTP not running") process-send-string(# "EHLO SDS.SDS") smtpmail-send-command(# "EHLO SDS.SDS") byte-code("....") smtpmail-via-smtp(("sds@gnu.org" "sds@gnu.org") #) smtpmail-send-it() sds-send-mail() message-send-mail(nil) message-send-via-mail(nil) message-send(nil) message-send-and-exit(nil) call-interactively(message-send-and-exit nil nil) (process-status process) ==> exit -- Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 11:09:40 2011 Received: (at 7789) by debbugs.gnu.org; 5 Jan 2011 16:09:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaVvf-0005Ae-Iw for submit@debbugs.gnu.org; Wed, 05 Jan 2011 11:09:39 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaVvd-0005AT-KR for 7789@debbugs.gnu.org; Wed, 05 Jan 2011 11:09:38 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LEK00E0052HYD00@a-mtaout22.012.net.il> for 7789@debbugs.gnu.org; Wed, 05 Jan 2011 18:16:10 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEK00EJO56X22A0@a-mtaout22.012.net.il>; Wed, 05 Jan 2011 18:16:10 +0200 (IST) Date: Wed, 05 Jan 2011 18:16:13 +0200 From: Eli Zaretskii Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 In-reply-to: X-012-Sender: halo1@inter.net.il To: Sam Steingold Message-id: <83y66zmilu.fsf@gnu.org> References: X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7789 Cc: 7789@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Wed, 5 Jan 2011 10:05:59 -0500 > From: Sam Steingold > Cc: > > GNU Emacs 23.2.1 (i386-mingw-nt5.2.3790) > of 2010-05-08 on G41R2F1 > --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include > > I followed the instructions on how to send smtp mail using emacs and gmail: > http://obfuscatedcode.wordpress.com/2007/04/26/configuring-emacs-for-gmails-smtp/ > it works with the latest bzr emacs on ubuntu just fine, but does not > work on woe32. smtpmail works perfectly for me on MS-Windows, but I don't use tls. What port of gnutls did you use? If it's a Cygwin port, perhaps try a MinGW port instead. Also, if you set smtpmail-debug-info non-nil, what do you see in the buffer named "*trace of SMTP session to *" after the connection attempt times out? Maybe also post here the setup on your .emacs for using smtpmail (although I doubt that this is the culprit). From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 12:47:57 2011 Received: (at 7789) by debbugs.gnu.org; 5 Jan 2011 17:47:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaXSn-0007zH-Ag for submit@debbugs.gnu.org; Wed, 05 Jan 2011 12:47:57 -0500 Received: from mail-ey0-f196.google.com ([209.85.215.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaXSl-0007z5-3W for 7789@debbugs.gnu.org; Wed, 05 Jan 2011 12:47:55 -0500 Received: by eyd10 with SMTP id 10so1903049eyd.3 for <7789@debbugs.gnu.org>; Wed, 05 Jan 2011 09:55:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=xRh78hCG8P3kJXN7VugIP6EZ8QqV97vQJSjqR3cNMFw=; b=vRbOhP12TmtU8Nq2Ng+rPMD2XRGEpNLMnchpSZNx28n0LCS9bu3moCwY+3trvxSvNw r9Y29Q6O4S23dr97eW5s6oXZ9wkyDFeW29yGSBOseuZf3yaVyhAybNJbI31W1Usqwv7S bc9LDDhGAAzLBy78x5XFcHs/NPG0bP/q9cLeA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=kMt1nhGdmeTDRimnKuUv7XONVE8E/anwl6VTi/NnRRSurON0/aVyR14jHqLBfoFDlH 2lEE65mpr2ApsHI/HF5FnmtFybdFC6hMwcDJ9rHxSlGIdfAVda6hS3gRsd2BhEEENPMb TIEVUUGLrE87CZpdokahi36YiQh2eLtRoAC38= MIME-Version: 1.0 Received: by 10.14.47.71 with SMTP id s47mr38959eeb.40.1294250106752; Wed, 05 Jan 2011 09:55:06 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 09:55:06 -0800 (PST) In-Reply-To: <83y66zmilu.fsf@gnu.org> References: <83y66zmilu.fsf@gnu.org> Date: Wed, 5 Jan 2011 12:55:06 -0500 X-Google-Sender-Auth: pvveXyQqqdupOVsKFkZk16OQWtM Message-ID: Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: 7789 Cc: 7789@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) On Wed, Jan 5, 2011 at 11:16 AM, Eli Zaretskii wrote: >> Date: Wed, 5 Jan 2011 10:05:59 -0500 >> From: Sam Steingold >> >> GNU Emacs 23.2.1 (i386-mingw-nt5.2.3790) >> =C2=A0of 2010-05-08 on G41R2F1 >> --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include >> >> I followed the instructions on how to send smtp mail using emacs and gma= il: >> http://obfuscatedcode.wordpress.com/2007/04/26/configuring-emacs-for-gma= ils-smtp/ >> it works with the latest bzr emacs on ubuntu just fine, but does not >> work on woe32. > > smtpmail works perfectly for me on MS-Windows, but I don't use tls. > > What port of gnutls did you use? native win32 port. > Also, if you set smtpmail-debug-info non-nil, what do you see in the > buffer named "*trace of SMTP session to *" after the > connection attempt times out? Resolving 'smtp.gmail.com'... Connecting to '74.125.113.109:587'... - Simple Client Mode: NOTE: you should run 'diskperf -y' to enable the disk statistics NOTE: you should run 'diskperf -y' to enable the disk statistics NOTE: you should run 'diskperf -y' to enable the disk statistics NOTE: you should run 'diskperf -y' to enable the disk statistics NOTE: you should run 'diskperf -y' to enable the disk statistics 220 mx.google.com ESMTP e10sm2834564vch.19 451 4.4.2 Timeout - closing connection. q5sm4981221vcr.39 - Peer has closed the GnuTLS connection Process SMTP finished > Maybe also post here the setup on your .emacs for using smtpmail > (although I doubt that this is the culprit). smtpmail-auth-credentials =3D> "~/.netrc" (custom-set-variables '(smtpmail-smtp-service 587) '(smtpmail-default-smtp-server "smtp.gmail.com") '(smtpmail-starttls-credentials `((,smtpmail-default-smtp-server ,smtpmail-smtp-service nil nil)))) --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 14:59:19 2011 Received: (at 7789) by debbugs.gnu.org; 5 Jan 2011 19:59:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaZVu-0002R0-S6 for submit@debbugs.gnu.org; Wed, 05 Jan 2011 14:59:19 -0500 Received: from mail-ew0-f68.google.com ([209.85.215.68]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaZVs-0002Qo-1F for 7789@debbugs.gnu.org; Wed, 05 Jan 2011 14:59:16 -0500 Received: by ewy3 with SMTP id 3so2089710ewy.3 for <7789@debbugs.gnu.org>; Wed, 05 Jan 2011 12:06:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=6V9w2e5FmCL5sHkhy4zgApOvS4if53zsWRxfDbGgjnY=; b=bL9z0BmLVRrvsCED4yMVRcbJDgwHVtaCscpr2uC6HkQG/q5kDeY+iBfA4HH7jd5ZmW fnRFv9O68GFWo5plM6L2iUm8dCVrJAWTXGFqyuTRRBzwaxUZxFXsN9wsPlhBoCniLa2K W75AICJpWTYLW74Aehm6Wonn4hsFBY9SBAdIY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=ASA/hSaHP6wcdP91v2iP1GaWuagHGjVJi/+EQgjIWxh6fiHZUt4nNz4uNSZ/dTCtpC ph7IKNqrsH89MLdeLv4Ij0Ij9a6B1VYR5GpZV5f3pTitgMeRexkMf4kmhCVh8pfNuAHs wqLn22XC4bxvkpZHDxt5bOROx0vxraMLRDnIw= MIME-Version: 1.0 Received: by 10.213.114.132 with SMTP id e4mr9499054ebq.79.1294257988003; Wed, 05 Jan 2011 12:06:28 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 12:06:27 -0800 (PST) In-Reply-To: References: <83y66zmilu.fsf@gnu.org> Date: Wed, 5 Jan 2011 15:06:27 -0500 X-Google-Sender-Auth: 5BRiQC34OpIMoDw9kZRJZ52bNGU Message-ID: Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: 7789 Cc: 7789@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) same behavior with the emacs built from the latets bzr sources From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 15:55:13 2011 Received: (at 7789) by debbugs.gnu.org; 5 Jan 2011 20:55:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaaO0-0003h3-UI for submit@debbugs.gnu.org; Wed, 05 Jan 2011 15:55:13 -0500 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PaaNx-0003gq-Dy for 7789@debbugs.gnu.org; Wed, 05 Jan 2011 15:55:10 -0500 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LEK00900IAOIK00@a-mtaout23.012.net.il> for 7789@debbugs.gnu.org; Wed, 05 Jan 2011 23:02:21 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEK009KHIFUB950@a-mtaout23.012.net.il>; Wed, 05 Jan 2011 23:02:20 +0200 (IST) Date: Wed, 05 Jan 2011 23:02:23 +0200 From: Eli Zaretskii Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 In-reply-to: X-012-Sender: halo1@inter.net.il To: Sam Steingold Message-id: <83k4ijm5cw.fsf@gnu.org> References: <83y66zmilu.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7789 Cc: 7789@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Wed, 5 Jan 2011 15:06:27 -0500 > From: Sam Steingold > Cc: 7789@debbugs.gnu.org > > same behavior with the emacs built from the latets bzr sources As expected: smtpmail didn't change a bit in this respect. I don't know TLS enough to suggest how to debug this. Can you connect to the server from telnet using TLS? If so, see if you at all get the server's prompt in response to the login. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 18:02:44 2011 Received: (at 7789) by debbugs.gnu.org; 5 Jan 2011 23:02:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PacNQ-0006Tf-75 for submit@debbugs.gnu.org; Wed, 05 Jan 2011 18:02:44 -0500 Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PacNO-0006TT-HX for 7789@debbugs.gnu.org; Wed, 05 Jan 2011 18:02:42 -0500 Received: by pvc21 with SMTP id 21so2883227pvc.3 for <7789@debbugs.gnu.org>; Wed, 05 Jan 2011 15:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to:cc :subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=lCsFIIlyvxAI6QqiqyXpe4q49PUWN8LOgWhJua96OgE=; b=L6FTJpfMDF5NKAojXYGM2tQh7tQV1bUjH+zPt+rYNmexD5atC4U5uxFFqnyPlPasv1 j9TQBLExMgHWju6IEJFXpRfXbip+OW2NQRpdvR95MTeZVt1InknUtKR+f/WI47vJGAeh zdzLbFu1ds6lb8hb1iwzUdvjVgbEzVGSipgk8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=krm7oTiTf7tc9ae4gkVPZGVJckB6CQOZyWVJGRkyBOo1WYPm0COb+08szPhs79zazY Il5yLRwJi+nXEpD4FINMjPqeMMTNMoOh5tZpqCymlL2bSah9uxUmGjX5gNA5pFq0rCrS oyjKaDDL7av687ji+S1g6Py9YRJyXq81gosCc= Received: by 10.142.238.11 with SMTP id l11mr156337wfh.437.1294268994693; Wed, 05 Jan 2011 15:09:54 -0800 (PST) Received: from home.jasonrumney.net ([180.72.42.34]) by mx.google.com with ESMTPS id q13sm207109wfc.17.2011.01.05.15.09.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 05 Jan 2011 15:09:53 -0800 (PST) Received: by home.jasonrumney.net (Postfix, from userid 1000) id 9C63FF33; Thu, 6 Jan 2011 07:09:47 +0800 (MYT) From: Jason Rumney To: Sam Steingold Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 References: <83y66zmilu.fsf@gnu.org> Date: Thu, 06 Jan 2011 07:09:47 +0800 In-Reply-To: (Sam Steingold's message of "Wed, 5 Jan 2011 12:55:06 -0500") Message-ID: <87hbdneymc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 7789 Cc: Eli Zaretskii , 7789@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.4 (----) Sam Steingold writes: >> smtpmail works perfectly for me on MS-Windows, but I don't use tls. >> >> What port of gnutls did you use? > > native win32 port. Try the Cygwin port. I did get openssl working once, and I think it was with the Cygwin port, but it wasn't easy. Windows changes its I/O buffering when commands are run with I/O redirected, and if the commands are not designed to be used in a pipe or are direct Unix ports input is often buffered indefinitely. We have done all we can at the Emacs end to improve this. Unfortunately Cygwin programs often use a Cygwin specific solution for this which results in an error message like "no tty found" when they are run from native Emacs, but it is still worth trying. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 18:23:56 2011 Received: (at 7789) by debbugs.gnu.org; 5 Jan 2011 23:23:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pachw-0006wl-6R for submit@debbugs.gnu.org; Wed, 05 Jan 2011 18:23:56 -0500 Received: from mail-ew0-f44.google.com ([209.85.215.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pachu-0006wY-IG for 7789@debbugs.gnu.org; Wed, 05 Jan 2011 18:23:55 -0500 Received: by ewy8 with SMTP id 8so7500496ewy.3 for <7789@debbugs.gnu.org>; Wed, 05 Jan 2011 15:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=UwLl53ub6iS5mZcqompmo3jrAKKmLWNVOgyVBjLXyO4=; b=xrGWaxQlzlX2otaFbVtmHkINYeAKP6h/CPOpHp+W6cTsCGjRTku7IQ6/1C6gfBmDwo Z2K7wvYliKP6qHpNoNhPW4DMk4wsCgeD+9svnQV+CMZ1rKbT0AgtK3SDlr5hW2UaFX1m zLvBz6iyhdhtcJQTyVSFyFH6qGddUPl1xWv78= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=emIzHsoAENDuPViEmz0MoyQsnzCQ/Rrb1ipu7b7crqjWo5ReotioQarYCFB5sVl+ZR h+0gspX3vZ4diUoXBa27Mt/XLcoQJTi+lCM5wdJd/GOZKdByt3+ENEDI4keuLrwJ9wT/ lgDLw01qfKpcRyVCKGO7eZQ9LkdlACcY9ZjlY= MIME-Version: 1.0 Received: by 10.14.119.196 with SMTP id n44mr691009eeh.33.1294270266709; Wed, 05 Jan 2011 15:31:06 -0800 (PST) Received: by 10.14.127.207 with HTTP; Wed, 5 Jan 2011 15:31:06 -0800 (PST) In-Reply-To: <87hbdneymc.fsf@gnu.org> References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> Date: Wed, 5 Jan 2011 18:31:06 -0500 X-Google-Sender-Auth: b_sQECJDsL3RCOLHg_hfDhF_Uv8 Message-ID: Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 From: Sam Steingold To: Jason Rumney Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 7789 Cc: Eli Zaretskii , 7789@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.0 (----) On Wed, Jan 5, 2011 at 6:09 PM, Jason Rumney wrote: > Sam Steingold writes: > >>> smtpmail works perfectly for me on MS-Windows, but I don't use tls. >>> >>> What port of gnutls did you use? >> >> native win32 port. > > Try the Cygwin port. I did get openssl working once, and I think it was > with the Cygwin port, but it wasn't easy. I _started_ with the cygwin port. I switched to the native port only under Eli's urging. -- Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 04:22:41 2011 Received: (at 7789) by debbugs.gnu.org; 6 Jan 2011 09:22:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pam3M-0003VY-Jh for submit@debbugs.gnu.org; Thu, 06 Jan 2011 04:22:40 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pam3L-0003VN-J8 for 7789@debbugs.gnu.org; Thu, 06 Jan 2011 04:22:39 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PamAI-0006Ff-50; Thu, 06 Jan 2011 04:29:50 -0500 From: Eli Zaretskii To: Sam Steingold In-reply-to: (message from Sam Steingold on Wed, 5 Jan 2011 18:31:06 -0500) Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> Message-Id: Date: Thu, 06 Jan 2011 04:29:50 -0500 X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: 7789 Cc: 7789@debbugs.gnu.org, jasonr@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > Date: Wed, 5 Jan 2011 18:31:06 -0500 > From: Sam Steingold > Cc: Eli Zaretskii , 7789@debbugs.gnu.org > > I _started_ with the cygwin port. > I switched to the native port only under Eli's urging. I'm sorry that I got you into extra effort that turned out to be futile. From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 18:06:27 2011 Received: (at 7789) by debbugs.gnu.org; 6 Jan 2011 23:06:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PayuZ-0006Ob-Jz for submit@debbugs.gnu.org; Thu, 06 Jan 2011 18:06:27 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PayuY-0006OQ-2d for 7789@debbugs.gnu.org; Thu, 06 Jan 2011 18:06:26 -0500 Received: by eyd10 with SMTP id 10so7733455eyd.3 for <7789@debbugs.gnu.org>; Thu, 06 Jan 2011 15:13:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=xmiLcrOdhPTjoKMNP6QsTCI7hU8FPIbb4D//Re0JFWM=; b=W05ugjy97qymh6eU6Pb476JMsNBCngYpjpmS5gBuOz9Sam1LzL7LcBm5mH+q7GIdYH LkV35FOXL2yNkPxbIFX4WPRcsFGWfqhrgNbwTx9lB1YUmFiROhym6kDW534To4nl3lbF vsoWyo1Ef0Y8X7MmS4+MWfr/WN3bAyUAIsP0g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=jBCHt5NnQQS2XUW2WMmOLBq9xbrG4nuaDc2K9XQwrfASxQ0jFEcAqE7atdZv52JH/a rbusb3zFEegjuNn4Wp7bsMaKcX3RA2iDxyyOY49o+9YEMoQsOXZoy3rZEkFAo1yqEb8X piU1Z8mgHlQI/89G2+xZmdFOsw/SuG3SAdWu8= MIME-Version: 1.0 Received: by 10.14.16.164 with SMTP id h36mr1337837eeh.37.1294355620685; Thu, 06 Jan 2011 15:13:40 -0800 (PST) Received: by 10.14.127.207 with HTTP; Thu, 6 Jan 2011 15:13:40 -0800 (PST) In-Reply-To: References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> Date: Thu, 6 Jan 2011 18:13:40 -0500 X-Google-Sender-Auth: iin-xgNGzgbsRT3jECcm4fFfo3g Message-ID: Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: 7789 Cc: 7789@debbugs.gnu.org, jasonr@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Thu, Jan 6, 2011 at 4:29 AM, Eli Zaretskii wrote: >> Date: Wed, 5 Jan 2011 18:31:06 -0500 >> From: Sam Steingold >> Cc: Eli Zaretskii , 7789@debbugs.gnu.org >> >> I _started_ with the cygwin port. >> I switched to the native port only under Eli's urging. > > I'm sorry that I got you into extra effort that turned out to be > futile. that's OK. I am still having this problem (native bzr tip emacs; both cygwin & mingw gnutls-cli). any suggestions are welcome. -- Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 07 02:36:33 2011 Received: (at 7789) by debbugs.gnu.org; 7 Jan 2011 07:36:34 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb6sC-00010f-DE for submit@debbugs.gnu.org; Fri, 07 Jan 2011 02:36:32 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pb6s9-00010S-KA for 7789@debbugs.gnu.org; Fri, 07 Jan 2011 02:36:30 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LEN00G006QJD800@a-mtaout20.012.net.il> for 7789@debbugs.gnu.org; Fri, 07 Jan 2011 09:43:35 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEN00FGB6SLJZA0@a-mtaout20.012.net.il>; Fri, 07 Jan 2011 09:43:34 +0200 (IST) Date: Fri, 07 Jan 2011 09:43:40 +0200 From: Eli Zaretskii Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 In-reply-to: X-012-Sender: halo1@inter.net.il To: Sam Steingold Message-id: <83r5cpkvkj.fsf@gnu.org> References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7789 Cc: 7789@debbugs.gnu.org, jasonr@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Thu, 6 Jan 2011 18:13:40 -0500 > From: Sam Steingold > Cc: jasonr@gnu.org, 7789@debbugs.gnu.org > > I am still having this problem (native bzr tip emacs; both cygwin & > mingw gnutls-cli). > any suggestions are welcome. You posted the contents of the trace buffer on Windows. What does that buffer show on Ubuntu, where you say it works? The differences might give a clue for what's wrong on Windows. Another idea would be to ask on gnu.emacs.help if anyone has got this set up successfully on Windows, and how. Failing all that, I'd suggest to run the related functions under Edebug and see what fails and why (I'm guessing that it hangs indefinitely somewhere waiting for something, until the timeout hits). >From a casual look in the sources, I'd say the relevant functions are smtpmail-open-stream, smtpmail-via-smtp, and starttls-open-stream and its subroutines. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 07 13:48:10 2011 Received: (at 7789) by debbugs.gnu.org; 7 Jan 2011 18:48:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbHMA-0000YE-G7 for submit@debbugs.gnu.org; Fri, 07 Jan 2011 13:48:10 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbHM8-0000Y3-EW for 7789@debbugs.gnu.org; Fri, 07 Jan 2011 13:48:09 -0500 Received: by eyd10 with SMTP id 10so8116520eyd.3 for <7789@debbugs.gnu.org>; Fri, 07 Jan 2011 10:55:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=CrQwU1LG8oNkfUjtw02ZnyhSvj4aoxdZKv3/L0LDRV4=; b=NxoBKH+xh/INLqARA0uPL8cohhHhnaEWXGq0dJrAuu9v01pIeYRc0UlkrF3rqpvzIL NAEf5TQQXV15hmVhRpV2RBmczvwqwCOiT2Xz8/QgkdbX3cg6IOOgJOTlTkJPZhMBSR7d 2w6gnR0jOXvvrJPxaE3zUjBH2NQt2AW+TuXZM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=TK8IfShKiy4IRhXjUXcSkozGYT3qmGs6k4lixHuJmyGnEzxf0ke/8BrDg+tR7ayGo4 sHnY9nxVNMC5Ug8krIJwemqj7KOTh3iuhmrQxdI/nCpjHr2Kcc2VvqjKT0qW5MEwsOP0 0XzSn3B9UDkio+k6uy0ld5p/9YiPDjLEJD0As= MIME-Version: 1.0 Received: by 10.14.16.164 with SMTP id h36mr174321eeh.37.1294426525217; Fri, 07 Jan 2011 10:55:25 -0800 (PST) Received: by 10.14.127.207 with HTTP; Fri, 7 Jan 2011 10:55:25 -0800 (PST) In-Reply-To: <83r5cpkvkj.fsf@gnu.org> References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> <83r5cpkvkj.fsf@gnu.org> Date: Fri, 7 Jan 2011 13:55:25 -0500 X-Google-Sender-Auth: ABi4y5s2ywQKsZHR3tNyCB3x0kg Message-ID: Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 From: Sam Steingold To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: 7789 Cc: 7789@debbugs.gnu.org, jasonr@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.8 (---) On Fri, Jan 7, 2011 at 2:43 AM, Eli Zaretskii wrote: >> Date: Thu, 6 Jan 2011 18:13:40 -0500 >> From: Sam Steingold >> Cc: jasonr@gnu.org, 7789@debbugs.gnu.org >> >> I am still having this problem (native bzr tip emacs; both cygwin & >> mingw gnutls-cli). >> any suggestions are welcome. > > You posted the contents of the trace buffer on Windows. =C2=A0What does > that buffer show on Ubuntu, where you say it works? =C2=A0The differences > might give a clue for what's wrong on Windows. the major difference is the conspicuous presence of ^M ("\r") chars in the smtp trace buffer on windows. when I use cygwin gnutls-cli, _all_ lines contain it. when I use the native port, only _some_ lines do. I wonder if the unconditional setting of coding-system in smtpmail.el is the culprit. --=20 Sam Steingold From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 07 15:01:54 2011 Received: (at 7789) by debbugs.gnu.org; 7 Jan 2011 20:01:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbIVW-0002tJ-OB for submit@debbugs.gnu.org; Fri, 07 Jan 2011 15:01:54 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PbIVU-0002t7-5y for 7789@debbugs.gnu.org; Fri, 07 Jan 2011 15:01:53 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LEO002005551100@a-mtaout22.012.net.il> for 7789@debbugs.gnu.org; Fri, 07 Jan 2011 22:09:06 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.127.127.157]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LEO001715B5Z420@a-mtaout22.012.net.il>; Fri, 07 Jan 2011 22:09:06 +0200 (IST) Date: Fri, 07 Jan 2011 22:09:12 +0200 From: Eli Zaretskii Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 In-reply-to: X-012-Sender: halo1@inter.net.il To: Sam Steingold Message-id: <8362u0lbmf.fsf@gnu.org> References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> <83r5cpkvkj.fsf@gnu.org> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 7789 Cc: 7789@debbugs.gnu.org, jasonr@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Date: Fri, 7 Jan 2011 13:55:25 -0500 > From: Sam Steingold > Cc: jasonr@gnu.org, 7789@debbugs.gnu.org > > the major difference is the conspicuous presence of ^M ("\r") chars in > the smtp trace buffer on windows. > when I use cygwin gnutls-cli, _all_ lines contain it. > when I use the native port, only _some_ lines do. > I wonder if the unconditional setting of coding-system in smtpmail.el > is the culprit. What unconditional setting? where in smtpmail.el do you see it? In general, the encoding of incoming and outgoing data for communications with subprocesses can be tuned with process-coding-system-alist (unless smtpmail overrides that). From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 07:46:40 2011 Received: (at submit) by debbugs.gnu.org; 17 Jan 2011 12:46:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PeoTm-0006J7-VM for submit@debbugs.gnu.org; Mon, 17 Jan 2011 07:46:39 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PekfJ-0008UQ-Ex for submit@debbugs.gnu.org; Mon, 17 Jan 2011 03:42:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pekmh-00066l-3M for submit@debbugs.gnu.org; Mon, 17 Jan 2011 03:50:00 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:49537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pekmg-0005yw-W7 for submit@debbugs.gnu.org; Mon, 17 Jan 2011 03:49:55 -0500 Received: from [140.186.70.92] (port=40461 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PekZN-0004AB-6n for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2011 03:36:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PekF2-0007g3-7j for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2011 03:15:09 -0500 Received: from lo.gmane.org ([80.91.229.12]:51407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PekF1-0007fh-S7 for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2011 03:15:08 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PekEy-0003q5-CJ for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2011 09:15:04 +0100 Received: from 178-24-235-97-dynip.superkabel.de ([178.24.235.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jan 2011 09:15:04 +0100 Received: from claudio.bley by 178-24-235-97-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jan 2011 09:15:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org To: bug-gnu-emacs@gnu.org From: claudio.bley@gmail.com (Claudio Bley) Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 Date: Mon, 17 Jan 2011 09:09:10 +0100 Lines: 30 Message-ID: <84k4i4x87t.wl%claudio.bley@gmail.com> References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 178-24-235-97-dynip.superkabel.de Mail-Copies-To: never In-Reply-To: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 17 Jan 2011 07:46:37 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) Hi. At Thu, 6 Jan 2011 18:13:40 -0500, Sam Steingold wrote: > I am still having this problem (native bzr tip emacs; both cygwin & > mingw gnutls-cli). > any suggestions are welcome. The problem is that Woe32 does not support signals. So, Emacs "Only handle(s) signals that will result in the process dying" (see src/w32proc.c:1427 sys_kill). gnutls-cli waits for a SIGALRM to initiate the STARTTLS handshake -- which Emacs isn't able to send -- or, alternatively, an EOF -- which doesn't work because communication is done over a pipe instead of a PTY. I'm using cygwin's gnutls-cli and have hacked ssl.el in order to replace the signal-process calls with (call-process "kill.exe" nil nil nil "-ALRM" PID). This works because cygwin provides its own layer of signal handling and is able to send / receive the SIGALRM signal. Make sure to call cygwin's kill.exe, not the one from MinGW. It would be nice if one would be able to use starttls natively under Woe32 by using some other means instead of signals to communicate with it, e.g. just using windows messages (WM_COPYDATA)? - Claudio From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 17:39:58 2011 Received: (at submit) by debbugs.gnu.org; 17 Jan 2011 22:39:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pexjy-0002Ky-50 for submit@debbugs.gnu.org; Mon, 17 Jan 2011 17:39:58 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pexjw-0002Kh-7L for submit@debbugs.gnu.org; Mon, 17 Jan 2011 17:39:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PexrK-0007fL-R2 for submit@debbugs.gnu.org; Mon, 17 Jan 2011 17:47:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:60146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PexrK-0007fG-P3 for submit@debbugs.gnu.org; Mon, 17 Jan 2011 17:47:34 -0500 Received: from [140.186.70.92] (port=60176 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PexrJ-0000SZ-Su for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2011 17:47:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PexrI-0007eq-Qh for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2011 17:47:33 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:58749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PexrI-0007em-Nd for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2011 17:47:32 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PexrE-0005Hf-Qo for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2011 17:47:28 -0500 From: Eli Zaretskii To: bug-gnu-emacs@gnu.org In-reply-to: <84k4i4x87t.wl%claudio.bley@gmail.com> Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> <84k4i4x87t.wl%claudio.bley@gmail.com> Message-Id: Date: Mon, 17 Jan 2011 17:47:28 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > From: claudio.bley@gmail.com (Claudio Bley) > Date: Mon, 17 Jan 2011 09:09:10 +0100 > > gnutls-cli waits for a SIGALRM to initiate the STARTTLS handshake -- > which Emacs isn't able to send -- or, alternatively, an EOF -- which > doesn't work because communication is done over a pipe instead of a > PTY. Is this a bug in the ported gnutls, in Emacs, or in both? > I'm using cygwin's gnutls-cli and have hacked ssl.el in order to > replace the signal-process calls with (call-process "kill.exe" nil nil > nil "-ALRM" PID). This works because cygwin provides its own layer of > signal handling and is able to send / receive the SIGALRM signal. How about making that hack part of Emacs? It could be conditioned on running on Windows. TIA From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 18 10:27:01 2011 Received: (at submit) by debbugs.gnu.org; 18 Jan 2011 15:27:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PfDSO-00013Z-8C for submit@debbugs.gnu.org; Tue, 18 Jan 2011 10:27:01 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PfDSL-00013M-9S for submit@debbugs.gnu.org; Tue, 18 Jan 2011 10:26:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfDZq-0006E7-Q4 for submit@debbugs.gnu.org; Tue, 18 Jan 2011 10:34:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:36359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfDZq-0006E3-O0 for submit@debbugs.gnu.org; Tue, 18 Jan 2011 10:34:34 -0500 Received: from [140.186.70.92] (port=33124 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfDZp-00015R-J9 for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2011 10:34:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfDZn-0006De-CL for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2011 10:34:33 -0500 Received: from lo.gmane.org ([80.91.229.12]:45750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfDZm-0006DR-US for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2011 10:34:31 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PfDZf-0004Es-0j for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2011 16:34:23 +0100 Received: from 178-24-235-97-dynip.superkabel.de ([178.24.235.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Jan 2011 16:34:22 +0100 Received: from claudio.bley by 178-24-235-97-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Jan 2011 16:34:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: claudio.bley@gmail.com (Claudio Bley) Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 Date: Tue, 18 Jan 2011 16:33:41 +0100 Organization: AV-Test GmbH, Germany Lines: 40 Message-ID: <84hbd6p6p6.wl%claudio.bley@gmail.com> References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> <84k4i4x87t.wl%claudio.bley@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 178-24-235-97-dynip.superkabel.de In-Reply-To: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) At Mon, 17 Jan 2011 17:47:28 -0500, Eli Zaretskii wrote: > > > From: claudio.bley@gmail.com (Claudio Bley) > > Date: Mon, 17 Jan 2011 09:09:10 +0100 > > > > gnutls-cli waits for a SIGALRM to initiate the STARTTLS handshake -- > > which Emacs isn't able to send -- or, alternatively, an EOF -- which > > doesn't work because communication is done over a pipe instead of a > > PTY. > > Is this a bug in the ported gnutls, in Emacs, or in both? I'd say it's a deficiency of the platform. Woe32 has no signal and no PTY support. So, the signal support has been ifdef'ed out in gnutls and Emacs for Woe32. > > I'm using cygwin's gnutls-cli and have hacked ssl.el in order to > > replace the signal-process calls with (call-process "kill.exe" nil nil > > nil "-ALRM" PID). This works because cygwin provides its own layer of > > signal handling and is able to send / receive the SIGALRM signal. > > How about making that hack part of Emacs? It could be conditioned on > running on Windows. You mean to distribute cygwin's kill.exe with Emacs and just using it instead of `signal-process' everywhere? Or to depend upon the user to install a cygwin environment along with Emacs? I'd be a bit reluctant to do that since it seems a bit awkward... IMHO, it would be better to let the programs work together on all platforms using different means of notification where necessary, e.g. using events on windows instead of signals...?! But that would indeed require an appropriate change on both sides. -- Claudio From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 18 17:40:18 2011 Received: (at submit) by debbugs.gnu.org; 18 Jan 2011 22:40:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PfKDq-0004k0-1d for submit@debbugs.gnu.org; Tue, 18 Jan 2011 17:40:18 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PfKDn-0004jo-RC for submit@debbugs.gnu.org; Tue, 18 Jan 2011 17:40:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfKKa-00055Q-4o for submit@debbugs.gnu.org; Tue, 18 Jan 2011 17:48:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:40702) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfKKa-00055M-2f for submit@debbugs.gnu.org; Tue, 18 Jan 2011 17:47:16 -0500 Received: from [140.186.70.92] (port=43513 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfKJs-0000rp-K8 for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2011 17:47:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfKJ8-0004qp-GQ for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2011 17:46:32 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:58608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfKJ8-0004ql-Ew for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2011 17:45:46 -0500 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PfKJ4-0007VC-FD; Tue, 18 Jan 2011 17:45:42 -0500 From: Eli Zaretskii To: claudio.bley@gmail.com (Claudio Bley) In-reply-to: <84hbd6p6p6.wl%claudio.bley@gmail.com> Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> <84k4i4x87t.wl%claudio.bley@gmail.com> <84hbd6p6p6.wl%claudio.bley@gmail.com> Message-Id: Date: Tue, 18 Jan 2011 17:45:42 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.5 (------) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > From: claudio.bley@gmail.com (Claudio Bley) > Date: Tue, 18 Jan 2011 16:33:41 +0100 > Cc: > > > > gnutls-cli waits for a SIGALRM to initiate the STARTTLS handshake -- > > > which Emacs isn't able to send -- or, alternatively, an EOF -- which > > > doesn't work because communication is done over a pipe instead of a > > > PTY. > > > > Is this a bug in the ported gnutls, in Emacs, or in both? > > I'd say it's a deficiency of the platform. A port that doesn't take platform deficiencies into consideration is a broken port. I was asking where should the correction be: in gnutls or in Emacs, or in both? > Woe32 has no signal and no PTY support. So, the signal support > has been ifdef'ed out in gnutls and Emacs for Woe32. If it has been ifdefed out, how are users supposed to do on Windows what they do on GNU/Linux by using signals? > > > I'm using cygwin's gnutls-cli and have hacked ssl.el in order to > > > replace the signal-process calls with (call-process "kill.exe" nil nil > > > nil "-ALRM" PID). This works because cygwin provides its own layer of > > > signal handling and is able to send / receive the SIGALRM signal. > > > > How about making that hack part of Emacs? It could be conditioned on > > running on Windows. > > You mean to distribute cygwin's kill.exe with Emacs and just using it > instead of `signal-process' everywhere? Or to depend upon the user to > install a cygwin environment along with Emacs? The latter, and also that hack in ssl.el you need for that. > I'd be a bit reluctant to do that since it seems a bit awkward... Is there a better way that's practical? It is more awkward to ask users to change platforms, or tell them to fix gnutls by themselves, no? > IMHO, it would be better to let the programs work together on all > platforms using different means of notification where necessary, > e.g. using events on windows instead of signals...?! But that would > indeed require an appropriate change on both sides. Exactly. I'm trying to establish whether there's a less painful way, even if it's less elegant. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 21 09:25:26 2011 Received: (at submit) by debbugs.gnu.org; 21 Jan 2011 14:25:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PgHva-0002Av-HS for submit@debbugs.gnu.org; Fri, 21 Jan 2011 09:25:26 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PgHvX-0002Ai-Jm for submit@debbugs.gnu.org; Fri, 21 Jan 2011 09:25:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgI3A-0000Tg-7S for submit@debbugs.gnu.org; Fri, 21 Jan 2011 09:33:17 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:38712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgI3A-0000Tc-0g for submit@debbugs.gnu.org; Fri, 21 Jan 2011 09:33:16 -0500 Received: from [140.186.70.92] (port=41841 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PgI38-0003W3-9C for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2011 09:33:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PgI36-0000Sl-HX for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2011 09:33:13 -0500 Received: from lo.gmane.org ([80.91.229.12]:53504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PgI36-0000Rr-7m for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2011 09:33:12 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PgI32-0001SX-M2 for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2011 15:33:08 +0100 Received: from 178-24-235-97-dynip.superkabel.de ([178.24.235.97]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jan 2011 15:33:08 +0100 Received: from claudio.bley by 178-24-235-97-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jan 2011 15:33:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org To: bug-gnu-emacs@gnu.org From: claudio.bley@gmail.com (Claudio Bley) Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 Date: Fri, 21 Jan 2011 15:32:33 +0100 Lines: 77 Message-ID: <84pqrqxr7i.wl%claudio.bley@gmail.com> References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> <84k4i4x87t.wl%claudio.bley@gmail.com> <84hbd6p6p6.wl%claudio.bley@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 178-24-235-97-dynip.superkabel.de Mail-Copies-To: never In-Reply-To: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.2 (i386-mingw-nt5.1.2600) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) At Tue, 18 Jan 2011 17:45:42 -0500, Eli Zaretskii wrote: > > > From: claudio.bley@gmail.com (Claudio Bley) > > Date: Tue, 18 Jan 2011 16:33:41 +0100 > > Cc: > > > > > > gnutls-cli waits for a SIGALRM to initiate the STARTTLS handshake -- > > > > which Emacs isn't able to send -- or, alternatively, an EOF -- which > > > > doesn't work because communication is done over a pipe instead of a > > > > PTY. > > > > > > Is this a bug in the ported gnutls, in Emacs, or in both? > > > > I'd say it's a deficiency of the platform. > > A port that doesn't take platform deficiencies into consideration is a > broken port. I was asking where should the correction be: in gnutls > or in Emacs, or in both? Well, incorporate GNU TLS into Emacs and you're done. Any OS needs cryptographic and security features nowadays, no? > > Woe32 has no signal and no PTY support. So, the signal support > > has been ifdef'ed out in gnutls and Emacs for Woe32. > > If it has been ifdefed out, how are users supposed to do on Windows > what they do on GNU/Linux by using signals? Since you only need to signal gnutls-cli once that it should negotiate the TLS connection, it would be sufficient to set a boolean flag of some sort. One may use an event e.g. called "gnutls-cli-" and provide an auxiliary program which is able to signal events by a given name. You could also use a socket. Since Emacs is already able to use sockets that would only require a change in GNU TLS. > > > > I'm using cygwin's gnutls-cli and have hacked ssl.el in order to > > > > replace the signal-process calls with (call-process "kill.exe" nil nil > > > > nil "-ALRM" PID). This works because cygwin provides its own layer of > > > > signal handling and is able to send / receive the SIGALRM signal. > > > > > > How about making that hack part of Emacs? It could be conditioned on > > > running on Windows. > > > > You mean to distribute cygwin's kill.exe with Emacs and just using it > > instead of `signal-process' everywhere? Or to depend upon the user to > > install a cygwin environment along with Emacs? > > The latter, and also that hack in ssl.el you need for that. Sorry, I actually meant to say that I hacked starttls.el for that matter. > Is there a better way that's practical? It is more awkward to ask > users to change platforms, or tell them to fix gnutls by themselves, > no? > > > IMHO, it would be better to let the programs work together on all > > platforms using different means of notification where necessary, > > e.g. using events on windows instead of signals...?! But that would > > indeed require an appropriate change on both sides. > > Exactly. I'm trying to establish whether there's a less painful way, > even if it's less elegant. I just discovered that gnutls-cli is barely usable compiled on native Woe32 because it uses (must use) polling of stdin, stdout file descriptors which means 100% CPU usage when idle and connected to a pipe instead of a real console. Oh my... So, it seems that the least painful way is to use Cygwin's gnutls-cli and its kill command. It's still painful, though. And it's actually a bit slow compared to running it under Linux -- maybe that's because of the extra layer(s) of Cygwin... From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 06 16:34:03 2011 Received: (at submit) by debbugs.gnu.org; 6 Feb 2011 21:34:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PmCF8-00080t-PD for submit@debbugs.gnu.org; Sun, 06 Feb 2011 16:34:03 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PmCF6-00080M-CY for submit@debbugs.gnu.org; Sun, 06 Feb 2011 16:34:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmCNQ-0008MD-W3 for submit@debbugs.gnu.org; Sun, 06 Feb 2011 16:42:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:34425) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmCNQ-0008M9-Tu for submit@debbugs.gnu.org; Sun, 06 Feb 2011 16:42:36 -0500 Received: from [140.186.70.92] (port=43475 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmCNQ-0002tI-KM for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2011 16:42:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmCNO-0008Ln-Ne for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2011 16:42:35 -0500 Received: from lo.gmane.org ([80.91.229.12]:53367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmCNO-0008LP-G6 for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2011 16:42:34 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PmCNK-00055Q-GM for bug-gnu-emacs@gnu.org; Sun, 06 Feb 2011 22:42:30 +0100 Received: from dslb-188-106-012-040.pools.arcor-ip.net ([188.106.12.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Feb 2011 22:42:30 +0100 Received: from claudio.bley by dslb-188-106-012-040.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Feb 2011 22:42:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: claudio.bley@gmail.com (Claudio Bley) Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 Date: Sun, 06 Feb 2011 22:42:07 +0100 Lines: 28 Message-ID: <87sjw0u9g0.wl%claudio.bley@gmail.com> References: <83y66zmilu.fsf@gnu.org> <87hbdneymc.fsf@gnu.org> <84k4i4x87t.wl%claudio.bley@gmail.com> <84hbd6p6p6.wl%claudio.bley@gmail.com> <84pqrqxr7i.wl%claudio.bley@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dslb-188-106-012-040.pools.arcor-ip.net In-Reply-To: <84pqrqxr7i.wl%claudio.bley@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) At Fri, 21 Jan 2011 15:32:33 +0100, Claudio Bley wrote: > > At Tue, 18 Jan 2011 17:45:42 -0500, > Eli Zaretskii wrote: > > > > A port that doesn't take platform deficiencies into consideration is a > > broken port. I was asking where should the correction be: in gnutls > > or in Emacs, or in both? > > Well, incorporate GNU TLS into Emacs and you're done. Any OS needs > cryptographic and security features nowadays, no? Apparently, this has been already done. One could compile Emacs with GNUTLS support. But, of course it doesn't work on Woe32... Go figure! Long story short, I made it work somehow. I'm using it with POP3, IMAP4 and SMTP using SSL/TLS and STARTTLS. It's still a bit flaky when trying to connect to a server (probably some kind of race condition), but once connected it works like a charm. I'll prepare a patch when I find the time after work. -- Claudio From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 23 03:33:25 2011 Received: (at control) by debbugs.gnu.org; 23 Feb 2011 08:33:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PsAA1-00065q-8U for submit@debbugs.gnu.org; Wed, 23 Feb 2011 03:33:25 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PsA9y-00065Z-O5 for control@debbugs.gnu.org; Wed, 23 Feb 2011 03:33:23 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1PsA9t-0007S7-G1 for control@debbugs.gnu.org; Wed, 23 Feb 2011 03:33:17 -0500 Date: Wed, 23 Feb 2011 03:33:17 -0500 Message-Id: Subject: control message for bug 8080 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) merge 7789 8080 From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 25 21:52:24 2011 Received: (at 7789-done) by debbugs.gnu.org; 26 Jun 2011 01:52:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QaeWO-0006RZ-H8 for submit@debbugs.gnu.org; Sat, 25 Jun 2011 21:52:24 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QaeWM-0006RO-RN for 7789-done@debbugs.gnu.org; Sat, 25 Jun 2011 21:52:23 -0400 Received: from localhost ([127.0.0.1]:60014) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QaeWH-00038y-BE; Sat, 25 Jun 2011 21:52:17 -0400 From: Glenn Morris To: 7789-done@debbugs.gnu.org Subject: Re: bug#7789: cannot send smtpmail using gmail & tls on woe32 References: <83y66zmilu.fsf@gnu.org> <83k4ijm5cw.fsf@gnu.org> X-Spook: Honduras constitution red noise LABLINK Qaddafi Clinton X-Ran: x!f5F3dOcE]][^7z*oRTB}|ZL;*/sY7;Q21|OYJ.5!B$|A2TfgMJaH8$~j4WKFTAa4n,a\ X-Hue: cyan X-Attribution: GM Date: Sat, 25 Jun 2011 21:52:17 -0400 In-Reply-To: <83k4ijm5cw.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 05 Jan 2011 23:02:23 +0200") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 7789-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) Version: 24.1 IIUC, the MS Windows build can now use gnutls.c and so this can be closed. (I might not UC though.) From unknown Thu Aug 14 17:26:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 24 Jul 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator