[dovecot-cvs] dovecot/src/imap cmd-thread.c,1.1,1.2

cras at procontrol.fi cras at procontrol.fi
Sat Jan 11 21:01:58 EET 2003


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv14638/src/imap

Modified Files:
	cmd-thread.c 
Log Message:
We support only REFERENCES threading for now - updated capability and trying
to use ORDEREDSUBJECT now gives error.



Index: cmd-thread.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/cmd-thread.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cmd-thread.c	8 Jan 2003 20:49:52 -0000	1.1
+++ cmd-thread.c	11 Jan 2003 19:01:56 -0000	1.2
@@ -35,11 +35,13 @@
 	}
 
 	str = IMAP_ARG_STR(args);
-	if (strcasecmp(str, "ORDEREDSUBJECT") == 0)
-		threading = MAIL_THREAD_ORDEREDSUBJECT;
-	else if (strcasecmp(str, "REFERENCES") == 0)
+	if (strcasecmp(str, "REFERENCES") == 0)
 		threading = MAIL_THREAD_REFERENCES;
-	else {
+	else if (strcasecmp(str, "ORDEREDSUBJECT") == 0) {
+		client_send_command_error(client,
+			"ORDEREDSUBJECT threading is currently not supported.");
+		return TRUE;
+	} else {
 		client_send_command_error(client, "Unknown thread algorithm.");
 		return TRUE;
 	}




More information about the dovecot-cvs mailing list