summary refs log tree commit diff
diff options
context:
space:
mode:
-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]);
ref='/bubger/commit/bubger.1?id=96068224350f214ff6bdea8c401eeb13750cc369&follow=1'>Add -q to exit non-zero on early exitJune McEnroe 2020-04-26Rearrange some of archive.hJune McEnroe 2020-04-26Free part.parts.ptrJune McEnroe Oops. 2020-04-26Rename part->id to part->contentIDJune McEnroe Disambiguate with messageID. 2020-04-26Iterate through nested multiparts to find content for AtomJune McEnroe Also fixes content for multipart/signed. 2020-04-26Include Cc address in reply mailtosJune McEnroe 2020-04-26Use %R for RFC numbers in STANDARDS sectionJune McEnroe 2020-04-26Add mailto spec to STANDARDSJune McEnroe 2020-04-26Increase space between nav itemsJune McEnroe 2020-04-26Add mailto address for the archiveJune McEnroe 2020-04-26Put dates on new lines in indexJune McEnroe 2020-04-26Include <> around Message-Id in mailto: URLsJune McEnroe 2020-04-26Add link to index on thread pagesJune McEnroe 2020-04-26Fall back to Content-Type name parameter for attachmentsJune McEnroe 2020-04-26Remove margins in article.message headerJune McEnroe 2020-04-26Generate index.atomJune McEnroe 2020-04-26Generate XHTML content in Atom entriesJune McEnroe 2020-04-25Style index pageJune McEnroe 2020-04-25Render index.htmlJune McEnroe 2020-04-25Wrap <summary> replies count in <data>June McEnroe 2020-04-25Accumulate thread envelopes before concatenationJune McEnroe 2020-04-24Free envelope in concatDataJune McEnroe 2020-04-24Use replyTo address in mailto:June McEnroe 2020-04-23Wrap quoted lines in <q>June McEnroe