From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Elias Oltmanns <eo@nebensachen.de>
Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general
Subject: Re: [PATCH] POP3 Over SSL with openssl
Date: Thu, 06 Mar 2008 11:14:35 +0100
Message-ID: <87d4q8rwfo.fsf@denkblock.local>
References: <87mypgi37v.fsf@gmail.com>
	<v93ar6azfw.fsf@marauder.physik.uni-ulm.de>
	<87pru9e48k.fsf@denkblock.local> <874pblx7zc.fsf@gmail.com>
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: ger.gmane.org 1204798496 32506 80.91.229.12 (6 Mar 2008 10:14:56 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 6 Mar 2008 10:14:56 +0000 (UTC)
Cc: ding@gnus.org
To: emacs-devel@gnu.org
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 06 11:15:14 2008
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Envelope-to: ged-emacs-devel@m.gmane.org
Original-Received: from lists.gnu.org ([199.232.76.165])
	by lo.gmane.org with esmtp (Exim 4.50)
	id 1JXD82-0006t2-O5
	for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2008 11:15:11 +0100
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1JXD7V-0003VX-4I
	for ged-emacs-devel@m.gmane.org; Thu, 06 Mar 2008 05:14:37 -0500
Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1JXD7P-0003VP-68
	for emacs-devel@gnu.org; Thu, 06 Mar 2008 05:14:31 -0500
Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1JXD7L-0003V2-P5
	for emacs-devel@gnu.org; Thu, 06 Mar 2008 05:14:30 -0500
Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1JXD7L-0003Ux-FL
	for emacs-devel@gnu.org; Thu, 06 Mar 2008 05:14:27 -0500
Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org)
	by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60) (envelope-from <ged-emacs-devel@m.gmane.org>)
	id 1JXD7K-0007dF-Tt
	for emacs-devel@gnu.org; Thu, 06 Mar 2008 05:14:27 -0500
Original-Received: from list by ciao.gmane.org with local (Exim 4.43)
	id 1JXD7H-0006s0-N7
	for emacs-devel@gnu.org; Thu, 06 Mar 2008 10:14:23 +0000
Original-Received: from pd9e8578d.dip.t-dialin.net ([217.232.87.141])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <emacs-devel@gnu.org>; Thu, 06 Mar 2008 10:14:23 +0000
Original-Received: from eo by pd9e8578d.dip.t-dialin.net with local (Gmexim 0.1
	(Debian)) id 1AlnuQ-0007hv-00
	for <emacs-devel@gnu.org>; Thu, 06 Mar 2008 10:14:23 +0000
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 43
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: pd9e8578d.dip.t-dialin.net
X-Hashcash: 1:20:080306:nao.aota@gmail.com::a1yoWDboBxVKeIL6:00000000000000000000000000000000000000000000QQh
User-Agent: Gnus/5.110007 (No Gnus v0.7)
Cancel-Lock: sha1:2veHMXoM4iXIHbiSRRi764tgH8g=
X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4)
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.devel:91479 gmane.emacs.gnus.general:66445
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/91479>

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.

Regards,

Elias