shithub: riscv

Download patch

ref: c9a6a759bebccaccf3662b3fddad4821bd74f26b
parent: ae1cfc9082b3f56a8502938b892bf0555110a741
author: mia soweli <inbox@tachibana-labs.org>
date: Wed Jun 28 15:35:36 EDT 2023

upas/imap4d: return SEARCH response in caps.

As far as I can tell, the IMAP4rev1 spec (RFC 3501) requires this.
Fixes the KDE KMail client.

--- a/sys/src/cmd/upas/imap4d/imap4d.c
+++ b/sys/src/cmd/upas/imap4d/imap4d.c
@@ -1169,7 +1169,7 @@
 	crnl();
 	uid = "";
 	if(uids)
-		uid = "UID ";		/* android needs caps */
+		uid = "UID ";
 	if(rock.next != nil && rock.next->key == SKcharset){
 		if(cistrcmp(rock.next->s, "utf-8") != 0
 		&& cistrcmp(rock.next->s, "us-ascii") != 0){
@@ -1180,7 +1180,7 @@
 		}
 		rock.next = rock.next->next;
 	}
-	Bprint(&bout, "* search");
+	Bprint(&bout, "* SEARCH");
 	if(m = mailappsucks(rock.next))
 			goto cheat;
 	ld = searchld(rock.next);