use role=client on passwd

This commit is contained in:
rsc 2005-11-28 03:09:22 +00:00
parent 4bd43ca9da
commit efea318b2e

View file

@ -358,9 +358,9 @@ imap4login(Imap *imap)
return "error in initial IMAP handshake"; return "error in initial IMAP handshake";
if(imap->user != nil) if(imap->user != nil)
up = auth_getuserpasswd(auth_getkey, "proto=pass service=imap server=%q user=%q", imap->host, imap->user); up = auth_getuserpasswd(auth_getkey, "proto=pass role=client service=imap server=%q user=%q", imap->host, imap->user);
else else
up = auth_getuserpasswd(auth_getkey, "proto=pass service=imap server=%q", imap->host); up = auth_getuserpasswd(auth_getkey, "proto=pass role=client service=imap server=%q", imap->host);
if(up == nil) if(up == nil)
return "cannot find IMAP password"; return "cannot find IMAP password";