Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: "(ding)" <ding@gnus.org>
Subject: Re: pop3.el broken
Date: Mon, 18 Mar 2002 18:12:10 +0100	[thread overview]
Message-ID: <iluit7tkdg5.fsf@extundo.com> (raw)
In-Reply-To: <02Mar18.104948est.119198@gateway.intersystems.com> (Stainless Steel Rat's message of "18 Mar 2002 10:53:47 -0500")

Stainless Steel Rat <ratinox@peorth.gweep.net> writes:

> |    The latter should be encoded with a reasonable coding-system before
> |    passing it to md5bin (which is mentioned below).
>
> A pass phrase is raw data, not text.  It should not be treated as something
> a human can read.  It should -never- be smashed through any coding system.

Huh?  A password is a text string, entered on the keyboard.  As such,
it must be encoded in some character set in order to be input to a
hash function.  pop3 has implicitely encoded it as ASCII
traditionally, assuming that (md5 "foobar") encodes the characters
"foobar" as ASCII characters before applying md5 on it.  This is no
longer the case, (md5 "foobar") can end up encoding the characters as
UTF-16 before running md5 if you have configured Emacs to use that
encoding (by, say, enabling Mule-UCS).

For a less Mule confused example, compare EBCDIC vs ASCII.  If the
pop3 server used a ASCII encoding of the password, the client must
also use ASCII.

> Something you should be aware of before applying any patches: pop3.el is
> maintained directly by the FSF since they forked it in 1999 and never
> bothered to tell me about it.

If you send a patch to the Emacs maintainers that modifies it to what
you want [as long as it works] I would hope that they will unfork it.

> It is part of Emacs, not Gnus.  All changes need to go through the
> FSF; but your XEmacs code will most probably be stripped.  XEmacs
> has a vastly different fork that incorporates much of Franklin Lee's
> work but will never be merged into the FSF's code tree.

Right, I wish that XEmacs pop3.el could be reverted to your version
(and that you would handle the bug reports ;)), and that people
wanting enhanced behaviour could use epop3 or another package
containing the current XEmacs pop3.el.  It is confusing to fork code
and not change the name.

> Wrapping APOP auth with reasonable advice may be the sanest thing to do.
> It certainly requires the least ammount of new code.

Defadvice isn't a good long term solution.




  reply	other threads:[~2002-03-18 17:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-13 10:58 Pavel Janík
2002-03-13 15:50 ` Stainless Steel Rat
2002-03-13 16:20 ` Bill White
2002-03-13 16:31   ` Bill White
2002-03-13 17:46 ` Bill White
2002-03-13 17:53   ` Paul Jarc
2002-03-13 20:21     ` Karl Kleinpaste
2002-03-13 19:58 ` Simon Josefsson
2002-03-13 22:39   ` Katsumi Yamaoka
2002-03-14  4:52     ` Stainless Steel Rat
2002-03-14  7:01       ` Katsumi Yamaoka
2002-03-14  9:35       ` Simon Josefsson
2002-03-14 22:11         ` Stainless Steel Rat
2002-03-15 13:18           ` Katsumi Yamaoka
2002-03-15 18:03             ` Simon Josefsson
2002-03-16  4:03               ` Stainless Steel Rat
2002-03-16  9:59                 ` Simon Josefsson
2002-03-16 10:24                   ` Simon Josefsson
2002-03-16 15:19                     ` Stainless Steel Rat
2002-03-18 13:03                       ` Katsumi Yamaoka
2002-03-18 15:53                         ` Stainless Steel Rat
2002-03-18 17:12                           ` Simon Josefsson [this message]
2002-03-18 18:04                             ` Stainless Steel Rat
2002-03-18 17:30                         ` Simon Josefsson
2002-03-18 23:43                           ` Katsumi Yamaoka
2002-03-19  1:13                             ` Stainless Steel Rat
2002-03-19  9:54                             ` Simon Josefsson
2002-03-16  3:57             ` Stainless Steel Rat

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=iluit7tkdg5.fsf@extundo.com \
    --to=jas@extundo.com \
    --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).