From 69d1ff7a9f175e159cbe4884250b6c7043dc8d62 Mon Sep 17 00:00:00 2001 From: mguessan Date: Wed, 7 Jul 2010 16:02:28 +0000 Subject: [PATCH] POP: allow space in username git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1153 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/pop/PopConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/pop/PopConnection.java b/src/java/davmail/pop/PopConnection.java index 52bb7654..c0d6fa79 100644 --- a/src/java/davmail/pop/PopConnection.java +++ b/src/java/davmail/pop/PopConnection.java @@ -112,7 +112,7 @@ public class PopConnection extends AbstractConnection { password = null; session = null; if (tokens.hasMoreTokens()) { - userName = tokens.nextToken(); + userName = line.substring("USER ".length()); sendOK("USER : " + userName); state = State.USER; } else {