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.devel,gmane.emacs.gnus.general
Subject: Re: [PATCH] POP3 Over SSL with openssl
Date: Thu, 06 Mar 2008 04:53:59 +0900
Message-ID: <874pblx7zc.fsf@gmail.com>
References: <87mypgi37v.fsf@gmail.com>
	<v93ar6azfw.fsf@marauder.physik.uni-ulm.de>
	<87pru9e48k.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 1204756396 16446 80.91.229.12 (5 Mar 2008 22:33:16 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Wed, 5 Mar 2008 22:33:16 +0000 (UTC)
Cc: ding@gnus.org, emacs-devel@gnu.org
To: Elias Oltmanns <eo@nebensachen.de>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 05 23:33:43 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 1JX2B6-0006rD-6q
	for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 23:33:36 +0100
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1JX2AY-0001kq-Oo
	for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 17:33:02 -0500
Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1JWzgp-0004mC-8a
	for emacs-devel@gnu.org; Wed, 05 Mar 2008 14:54:11 -0500
Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1JWzgn-0004jo-EM
	for emacs-devel@gnu.org; Wed, 05 Mar 2008 14:54:10 -0500
Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1JWzgn-0004jj-Bu
	for emacs-devel@gnu.org; Wed, 05 Mar 2008 14:54:09 -0500
Original-Received: from wx-out-0506.google.com ([66.249.82.237])
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <nao.aota@gmail.com>) id 1JWzgn-0003A4-0B
	for emacs-devel@gnu.org; Wed, 05 Mar 2008 14:54:09 -0500
Original-Received: by wx-out-0506.google.com with SMTP id s7so2170793wxc.24
	for <emacs-devel@gnu.org>; Wed, 05 Mar 2008 11:54:07 -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=WxAA8KGs+mz/uFmqbS1/srw4ZT8mTPNfllLX7eNPLos=;
	b=V+3XNTQ0/YT+QS1S1hCXfx3OCTsBC8HLC3UCGFEV5D/PuhRxoAEZlHKxKG5WMekgqLmmbhUfCJYSQX0Sz/iXNMkoKwOz04HszW0gHhTtWSqbUqzWrSGZjNVnw238qPB1WVLX86zBfP6gIQpG2rrDrBVK+s8dFN8av75+c/HeWMY=
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=n3hC/G7u2CMvENekPKfsJRd6ay9XxZoovkuznk6Q5oIotkWbMKrkw3Tbq3+jQBjMGSOSDoz2+Q7FZBw1HzeUXLCKp0vQ89Nn/njErudQkRJPeAWF6SyQaW/eStx5dUh9Xlby8HssBFtQCHwlj4nmrSRmyQxLIW+SOsAMPZjGlBI=
Original-Received: by 10.70.32.10 with SMTP id f10mr3712660wxf.20.1204746846980;
	Wed, 05 Mar 2008 11:54:06 -0800 (PST)
Original-Received: from sayo ( [124.37.188.163])
	by mx.google.com with ESMTPS id i12sm2344714wxd.31.2008.03.05.11.54.03
	(version=TLSv1/SSLv3 cipher=OTHER);
	Wed, 05 Mar 2008 11:54:05 -0800 (PST)
User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)
X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2)
X-Mailman-Approved-At: Wed, 05 Mar 2008 17:30:40 -0500
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:91425 gmane.emacs.gnus.general:66430
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/91425>

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? 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.

Regards,

Naohiro