From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Naohiro Aota <nao.aota@gmail.com>
Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel
Subject: Re: [PATCH] POP3 Over SSL with openssl
Date: Sat, 08 Mar 2008 19:04:23 +0900
Message-ID: <87abl9a5w8.fsf@gmail.com>
References: <87mypgi37v.fsf@gmail.com>
	<v93ar6azfw.fsf@marauder.physik.uni-ulm.de>
	<87pru9e48k.fsf@denkblock.local> <874pblx7zc.fsf@gmail.com>
	<87d4q8rwfo.fsf@denkblock.local>
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: ger.gmane.org 1204970843 5914 80.91.229.12 (8 Mar 2008 10:07:23 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 8 Mar 2008 10:07:23 +0000 (UTC)
Cc: emacs-devel@gnu.org,  ding@gnus.org
To: Elias Oltmanns <eo@nebensachen.de>
Original-X-From: ding-owner+M14945@lists.math.uh.edu Sat Mar 08 11:07:48 2008
Return-path: <ding-owner+M14945@lists.math.uh.edu>
Envelope-to: ding-account@gmane.org
Original-Received: from util0.math.uh.edu ([129.7.128.18])
	by lo.gmane.org with esmtp (Exim 4.50)
	id 1JXvxy-0008D8-65
	for ding-account@gmane.org; Sat, 08 Mar 2008 11:07:46 +0100
Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu)
	by util0.math.uh.edu with smtp (Exim 4.63)
	(envelope-from <ding-owner+M14945@lists.math.uh.edu>)
	id 1JXvwO-0000bm-FL; Sat, 08 Mar 2008 04:06:08 -0600
Original-Received: from mx1.math.uh.edu ([129.7.128.32])
	by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.63)
	(envelope-from <nao.aota@gmail.com>)
	id 1JXvwM-0000ba-Ne
	for ding@lists.math.uh.edu; Sat, 08 Mar 2008 04:06:06 -0600
Original-Received: from quimby.gnus.org ([80.91.231.51])
	by mx1.math.uh.edu with esmtp (Exim 4.67)
	(envelope-from <nao.aota@gmail.com>)
	id 1JXvwG-00053U-0z
	for ding@lists.math.uh.edu; Sat, 08 Mar 2008 04:06:06 -0600
Original-Received: from wx-out-0506.google.com ([66.249.82.226])
	by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian))
	id 1JXvwM-00031D-00
	for <ding@gnus.org>; Sat, 08 Mar 2008 11:06:06 +0100
Original-Received: by wx-out-0506.google.com with SMTP id s14so1135790wxc.26
        for <ding@gnus.org>; Sat, 08 Mar 2008 02:05:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:from:to:cc:subject:references:date:message-id:user-agent:mime-version:content-type;
        bh=kPN4FeWo36cCq9l8eySdGBPHZzY+NIdAKU1qMrWoqEQ=;
        b=rHakyWNJ3woYlOAG6uPAwNeDwnNISyUGz3rlYmX2kR1ZZCdzWc4N6kGfNOqWbW9or+V1s0ZhsE4fxjUbpBpiALlK6zvP9i7fd1tyji/TgbEeyeDp4WfOC0GnEP7v5lLWs5/h69/urFyKmpzr8fBpXCQRXr0eaYP5QNAn7sLEdyE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=from:to:cc:subject:references:date:message-id:user-agent:mime-version:content-type;
        b=eZs1EYrGhgCU+QHE/pw9ismEX1piDhro8i9473VCCwEJGT855QVVT3CCoZ9rEZihWPQP59Rz7LD9QqeP9Sfy3eW3cA7w51Tc/03t8O8CfwOX7wLG0INEuJFlT7QAW/iXS4nuFkH1v/4q2oqhBRVTRaY74n6lnV/qcO6lQW4HehE=
Original-Received: by 10.150.11.6 with SMTP id 6mr981292ybk.165.1204970757283;
        Sat, 08 Mar 2008 02:05:57 -0800 (PST)
Original-Received: from sayo ( [124.37.188.163])
        by mx.google.com with ESMTPS id h38sm3183887wxd.25.2008.03.08.02.05.54
        (version=TLSv1/SSLv3 cipher=OTHER);
        Sat, 08 Mar 2008 02:05:56 -0800 (PST)
User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)
X-Spam-Score: -2.6 (--)
List-ID: <ding.gnus.org>
Precedence: bulk
Xref: news.gmane.org gmane.emacs.gnus.general:66454 gmane.emacs.devel:91708
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/91708>

Elias Oltmanns <eo@nebensachen.de> writes:

> Naohiro Aota <nao.aota@gmail.com> wrote:
>> Elias Oltmanns <eo@nebensachen.de> writes:
>>
>>> Reiner Steib <reinersteib+gmane@imap.cc> wrote:
>>>> On Mon, Mar 03 2008, Naohiro Aota wrote:
>>>>
>>>>> I tried to retrieve mails by POP3 Over SSL with openssl, but Gnus
>>>>> stopped working displaing "Retrieving message 1 of 5 from myserver...".
>>>>> Then I found that without -ign_eof and -quiet argument, openssl doesn't
>>>>> send line begins with "R" or "Q" to server but renegotiate or quit its
>>>>> connection. So sending "RETR" command made this problem.
>>>>>
>>>>> I suggest to call openssl commands with "-ign_eof" argument. Please find
>>>>> the patch below.
>>>>
>>>> Does anyone see a problem with this?
>>>
>>> Since I don't use POP3, I can't test that. However, it looks fine to me
>>> and it certainly doesn't break IMAP (checked that).
>>
>> Aren't you using "ssl" as nnimap-stream?
>
> No, I'm using tls. Sorry if you got the wrong impression, but my comment
> was meant as an acknowledgement to back your change.
>
>> If so, please check `imap-ssl-program' to find out how openssl is
>> called. By default, this variable is set as following.
>>
>> '("openssl s_client -quiet -ssl3 -connect %s:%p"
>>   "openssl s_client -quiet -ssl2 -connect %s:%p"
>>   "s_client -quiet -ssl3 -connect %s:%p"
>>   "s_client -quiet -ssl2 -connect %s:%p")
>>
>> In this case, openssl is called with "-quiet" argument, which also make
>> openssl ignore eof, so that it works fine.
>
> Yes, I know. All I wanted to confirm was that it also works with tls
> since your change was concerned with tls-program rather than
> imap-ssl-program.

Oups. I'm sorry for my misunderstanding. Thanks for your testing.

Regards,

Naohiro