summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--imbox.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/imbox.c b/imbox.c
index bdc8a16..eb611a2 100644
--- a/imbox.c
+++ b/imbox.c
@@ -308,11 +308,14 @@ int main(int argc, char *argv[]) {
 		switch (tag) {
 			break; case Untagged: {
 				if (login) break;
-				fprintf(imap, "%s LOGIN %s %s\r\n", Atoms[Login], user, pass);
+				fprintf(
+					imap, "%s LOGIN \"%s\" \"%s\"\r\n",
+					Atoms[Login], user, pass
+				);
 				login = true;
 			}
 			break; case Login: {
-				fprintf(imap, "%s EXAMINE %s\r\n", Atoms[Examine], mailbox);
+				fprintf(imap, "%s EXAMINE \"%s\"\r\n", Atoms[Examine], mailbox);
 			}
 			break; case Examine: {
 				fprintf(imap, "%s SEARCH CHARSET UTF-8", Atoms[Search]);