aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--imap.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 6fb6dd2d..476dcc0f 100644
--- a/NEWS
+++ b/NEWS
@@ -39,6 +39,8 @@ features --
* UID support is back by popular demand. Bletch.
+* Permit spaces in IMAP passwords (ship them as quoted strings).
+
bugs --
* Fix buggy getopt specification of P and p options.
diff --git a/imap.c b/imap.c
index ac13f068..3592f15a 100644
--- a/imap.c
+++ b/imap.c
@@ -86,7 +86,7 @@ char *buf;
{
/* try to get authorized */
return(gen_transact(socket,
- "LOGIN %s %s",
+ "LOGIN %s \"%s\"",
queryctl->remotename, queryctl->password));
}