aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-10 22:40:25 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-10 22:40:25 +0000
commit6261cf94bcc2de6112edb791dcee411af984c576 (patch)
treed2993743b7781d08605ebeaebd573bf9837a3358
parent3b86b66668ca47b1f439fb5f49e3f8078caf4a33 (diff)
downloadfetchmail-6261cf94bcc2de6112edb791dcee411af984c576.tar.gz
fetchmail-6261cf94bcc2de6112edb791dcee411af984c576.tar.bz2
fetchmail-6261cf94bcc2de6112edb791dcee411af984c576.zip
Ship IMAP passwords as quoted strings.
svn path=/trunk/; revision=291
-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));
}