aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--imap.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d82a89e5..32699b89 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,7 @@ fetchmail-4.4.0 (Fri Mar 13 15:48:27 EST 1998):
* Dominique Unruh's patch that copes gracefully with bodiless messages.
* Fix timer-leak problem with the SIGALRM fix, pointed out by Dave Bodenstab.
* Deal with more M$ Exchange braindamage (violating an RFC1939 limit).
+* Allow spaces in IMAP usernames (thank Juerg Wanner <juerg.wanner@ubs.com>).
* Improvements in UID handling; should be a cleaner fix for Dick van den Burg.
There are 270 people on fetchmail-friends and 160 on fetchmail-announce.
diff --git a/imap.c b/imap.c
index 4292916b..b1f27e1c 100644
--- a/imap.c
+++ b/imap.c
@@ -689,7 +689,7 @@ int imap_getauth(int sock, struct query *ctl, char *greeting)
if (!newpass)
return(PS_AUTHFAIL); /* should report error better!!!! */
- ok = gen_transact(sock, "LOGIN %s \"%s\"", ctl->remotename, newpass);
+ ok = gen_transact(sock, "LOGIN \"%s\" \"%s\"", ctl->remotename,newpass);
free(newpass);