[dovecot-cvs] dovecot/src/imap imap-fetch-body.c,1.11,1.12

cras at dovecot.org cras at dovecot.org
Thu Sep 23 12:18:41 EEST 2004


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv6894

Modified Files:
	imap-fetch-body.c 
Log Message:
Error message update



Index: imap-fetch-body.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-fetch-body.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- imap-fetch-body.c	20 Sep 2004 20:51:49 -0000	1.11
+++ imap-fetch-body.c	23 Sep 2004 09:18:39 -0000	1.12
@@ -701,6 +701,7 @@
 int fetch_body_section_init(struct imap_fetch_context *ctx, const char *arg)
 {
 	struct imap_fetch_body_data *body;
+	const char *partial;
 	const char *p = arg + 4;
 
 	body = p_new(ctx->client->cmd_pool, struct imap_fetch_body_data, 1);
@@ -730,6 +731,7 @@
 
 	if (*++p == '<') {
 		/* <start.end> */
+		partial = p;
 		p++;
 		body->skip_set = TRUE;
 
@@ -755,7 +757,9 @@
 
 		if (*p != '>') {
 			client_send_command_error(ctx->client,
-				"Invalid BODY[..] parameter: Missing '>'");
+				t_strdup_printf("Invalid BODY[..] parameter: "
+						"Missing '>' in '%s'",
+						partial));
 			return FALSE;
 		}
 	}



More information about the dovecot-cvs mailing list