dovecot-2.2: lib-imap: Renamed imap_dquote_append() to imap_appe...

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 24 10:14:29 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/4137ea599dcd
changeset: 15242:4137ea599dcd
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 24 09:21:46 2012 +0300
description:
lib-imap: Renamed imap_dquote_append() to imap_append_quoted()

diffstat:

 src/imap/imap-fetch-body.c             |  2 +-
 src/lib-imap-client/imapc-connection.c |  2 +-
 src/lib-imap/imap-id.c                 |  2 +-
 src/lib-imap/imap-quote.c              |  2 +-
 src/lib-imap/imap-quote.h              |  2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diffs (59 lines):

diff -r e8181fc25500 -r 4137ea599dcd src/imap/imap-fetch-body.c
--- a/src/imap/imap-fetch-body.c	Wed Oct 24 09:21:00 2012 +0300
+++ b/src/imap/imap-fetch-body.c	Wed Oct 24 09:21:46 2012 +0300
@@ -222,7 +222,7 @@
 		if (args[i].type == IMAP_ARG_ATOM)
 			str_append(str, value);
 		else
-			imap_dquote_append(str, value);
+			imap_append_quoted(str, value);
 	}
 	str_append_c(str, ')');
 	body->section = str_c(str);
diff -r e8181fc25500 -r 4137ea599dcd src/lib-imap-client/imapc-connection.c
--- a/src/lib-imap-client/imapc-connection.c	Wed Oct 24 09:21:00 2012 +0300
+++ b/src/lib-imap-client/imapc-connection.c	Wed Oct 24 09:21:46 2012 +0300
@@ -1814,7 +1814,7 @@
 			const char *arg = va_arg(args, const char *);
 
 			if (!need_literal(arg))
-				imap_dquote_append(cmd->data, arg);
+				imap_append_quoted(cmd->data, arg);
 			else if ((cmd->conn->capabilities &
 				  IMAPC_CAPABILITY_LITERALPLUS) != 0) {
 				str_printfa(cmd->data, "{%"PRIuSIZE_T"+}\r\n%s",
diff -r e8181fc25500 -r 4137ea599dcd src/lib-imap/imap-id.c
--- a/src/lib-imap/imap-id.c	Wed Oct 24 09:21:00 2012 +0300
+++ b/src/lib-imap/imap-id.c	Wed Oct 24 09:21:46 2012 +0300
@@ -70,7 +70,7 @@
 			/* key */
 			if (str_len(str) > 1)
 				str_append_c(str, ' ');
-			imap_dquote_append(str, key);
+			imap_append_quoted(str, key);
 			str_append_c(str, ' ');
 			/* value */
 			if (IMAP_ARG_IS_EOL(&args[1])) {
diff -r e8181fc25500 -r 4137ea599dcd src/lib-imap/imap-quote.c
--- a/src/lib-imap/imap-quote.c	Wed Oct 24 09:21:00 2012 +0300
+++ b/src/lib-imap/imap-quote.c	Wed Oct 24 09:21:46 2012 +0300
@@ -123,7 +123,7 @@
 	return ret;
 }
 
-void imap_dquote_append(string_t *dest, const char *src)
+void imap_append_quoted(string_t *dest, const char *src)
 {
 	str_append_c(dest, '"');
 	for (; *src != '\0'; src++) {
diff -r e8181fc25500 -r 4137ea599dcd src/lib-imap/imap-quote.h
--- a/src/lib-imap/imap-quote.h	Wed Oct 24 09:21:00 2012 +0300
+++ b/src/lib-imap/imap-quote.h	Wed Oct 24 09:21:46 2012 +0300
@@ -16,6 +16,6 @@
 		       size_t value_len, bool fix_text);
 
 /* Append data to destination string quoted using "". */
-void imap_dquote_append(string_t *dest, const char *src);
+void imap_append_quoted(string_t *dest, const char *src);
 
 #endif


More information about the dovecot-cvs mailing list