[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-user
Subject:    RE: Password with space!
From:       "Noel J. Bergman" <noel () devtech ! com>
Date:       2003-02-25 9:12:39
[Download RAW message or body]

Oh, I see.  I'm sorry.  I actually was thinking of a password elsewhere in
James.

RFC 1939 says:

  Since the PASS command has exactly one argument, a POP3
  server may treat spaces in the argument as part of the
  password, instead of as argument separators.

So James doesn't need to do the string tokenizing that it does.  The quick
change (it is not a bug: there is no *requirement* that the mail server
support passwords with spaces), would be:

 doPASS(command, rawCommand.substring(5).trim(), null);

although I will not have time to test this before calling it a night.  I
recommend the trim, allowing whitespace only within the password.

Does anyone else reading this thread care about passwords with embedded
whitespace?

	--- Noel

-----Original Message-----
From: Huu Phuoc [mailto:phuocnh@ssp.com.vn]
Sent: Tuesday, February 25, 2003 3:39
To: James Users List
Subject: Re: Password with space!


Thanks for help!
 I read POP3 server source code. I think it can't support user password
containing spaces. Where can I  add xml:space?
----- Original Message -----
From: "Noel J. Bergman" <noel@devtech.com>
To: "James Users List" <james-user@jakarta.apache.org>
Sent: Tuesday, February 25, 2003 3:08 PM
Subject: RE: Password with space!


> > I want James support password containing spaces.
>
> Try adding xml:space="preserve" to the attribute.
>
> --- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic