unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Naohiro Aota <nao.aota@gmail.com>
To: Elias Oltmanns <eo@nebensachen.de>
Cc: ding@gnus.org, emacs-devel@gnu.org
Subject: Re: [PATCH] POP3 Over SSL with openssl
Date: Thu, 06 Mar 2008 04:53:59 +0900	[thread overview]
Message-ID: <874pblx7zc.fsf@gmail.com> (raw)
In-Reply-To: 87pru9e48k.fsf@denkblock.local

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




  reply	other threads:[~2008-03-05 19:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87mypgi37v.fsf@gmail.com>
2008-03-04 22:37 ` [PATCH] POP3 Over SSL with openssl Reiner Steib
2008-03-05 12:37   ` Elias Oltmanns
2008-03-05 19:53     ` Naohiro Aota [this message]
2008-03-06 10:14       ` Elias Oltmanns
2008-03-08 10:04         ` Naohiro Aota
2008-04-13 20:58   ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874pblx7zc.fsf@gmail.com \
    --to=nao.aota@gmail.com \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=eo@nebensachen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).