aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-03-14 00:09:16 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-03-14 00:09:16 +0000
commit3a501db74967d4c31aa749e1baec8aa7bdef96e4 (patch)
treeab9e12b7ebd0ab3b6ca7fe2b61159b249a726190 /imap.c
parent07921aefa96266949a198f6b43726369c42bed66 (diff)
downloadfetchmail-3a501db74967d4c31aa749e1baec8aa7bdef96e4.tar.gz
fetchmail-3a501db74967d4c31aa749e1baec8aa7bdef96e4.tar.bz2
fetchmail-3a501db74967d4c31aa749e1baec8aa7bdef96e4.zip
Shrouding is now done over a narrower scope.
svn path=/trunk/; revision=3252
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index d92dad03..be2fcd5b 100644
--- a/imap.c
+++ b/imap.c
@@ -375,7 +375,9 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
imap_canonicalize(remotename, ctl->remotename, NAMELEN);
imap_canonicalize(password, ctl->password, PASSWORDLEN);
+ imap_canonicalize(shroud, ctl->password, PASSWORDLEN);
ok = gen_transact(sock, "LOGIN \"%s\" \"%s\"", remotename, password);
+ shroud[0] = '\0';
}
if (ok)
@@ -827,7 +829,6 @@ const static struct method imap =
TRUE, /* this is a tagged protocol */
FALSE, /* no message delimiter */
imap_ok, /* parse command response */
- imap_canonicalize, /* deal with embedded slashes and spaces */
imap_getauth, /* get authorization */
imap_getrange, /* query range of messages */
imap_getsizes, /* get sizes of messages (used for ESMTP SIZE option) */