From: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: ding@gnus.org
Subject: Re: pop3+ssl
Date: Thu, 24 Nov 2005 18:22:09 +0900 [thread overview]
Message-ID: <b4m3blms8n2.fsf@jpl.org> (raw)
In-Reply-To: <b4mek56yha1.fsf@jpl.org>
[-- Attachment #1: Type: text/plain, Size: 1266 bytes --]
>>>>> In <b4mek56yha1.fsf@jpl.org> Katsumi Yamaoka wrote:
> In addition, `pop3-open-server' should also recognize a string
> as a port number. See the `mail-sources' variable. I use "110"
> for it, which causes an error.
I realized it depends on the platform whether
`open-network-stream' allows a string which specifies a port
*number* for the fourth argument. For instance, both of the
following two forms work in the Fedora Core 4 system:
(delete-process
(open-network-stream "POP" (current-buffer) "popserver" 110))
(delete-process
(open-network-stream "POP" (current-buffer) "popserver" "110"))
However, in the Solaris 2.6 system, the latter form cannot be
used. When we use a string for the fourth argument, it should
be a service name like "pop3". This suggests that we should use
only an integer for a port number or a string for a service name.
But now I use "110", not 110 in the Fedora Core 4 system. It is
because it should work with all the Emacsen that Gnus supports,
and XEmacs 21.4.17 which I'd built in the Fedora Core 4 system
doesn't allow an integer for the fourth argument of
`open-network-stream'. It is obviously a bug, I found right now
thanks to some Japanese folks.
Finally, I replace the patch that I sent last with this:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 398 bytes --]
--- pop3.el~ 2005-11-23 23:34:42 +0000
+++ pop3.el 2005-11-24 09:20:25 +0000
@@ -222,7 +222,7 @@
(setq process
(cond
((or (eq pop3-stream-type 'ssl)
- (and (not pop3-stream-type) (= port 995))) ; pop3s
+ (and (not pop3-stream-type) (member port '(995 "pop3s"))))
(let ((process (open-tls-stream "POP" (current-buffer)
mailhost port)))
(when process
next prev parent reply other threads:[~2005-11-24 9:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1Ef3cI-0006Nl-00@quimby.gnus.org>
2005-11-24 0:21 ` pop3+ssl Katsumi Yamaoka
2005-11-24 1:19 ` pop3+ssl Katsumi Yamaoka
2005-11-24 9:22 ` Katsumi Yamaoka [this message]
2005-11-24 13:40 ` pop3+ssl Dave Love
2005-11-24 23:01 ` pop3+ssl Katsumi Yamaoka
2005-11-25 18:21 ` pop3+ssl Dave Love
2005-11-24 12:03 ` pop3+ssl Dave Love
2005-11-24 12:01 ` pop3+ssl Dave Love
2005-11-24 23:01 ` pop3+ssl Katsumi Yamaoka
2005-11-25 18:26 ` pop3+ssl Dave Love
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4m3blms8n2.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.org \
/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.
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 NNTP newsgroup(s).