dovecot-2.0: Removed imap-utf7 binary. doveadm mailbox convert r...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 13 12:50:56 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/715b74280077
changeset: 11298:715b74280077
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 13 11:50:53 2010 +0200
description:
Removed imap-utf7 binary. doveadm mailbox convert replaced it.

diffstat:

 src/util/Makefile.am |   6 ------
 src/util/imap-utf7.c |  37 -------------------------------------
 2 files changed, 0 insertions(+), 43 deletions(-)

diffs (64 lines):

diff -r 0741e7003efa -r 715b74280077 src/util/Makefile.am
--- a/src/util/Makefile.am	Thu May 13 11:47:53 2010 +0200
+++ b/src/util/Makefile.am	Thu May 13 11:50:53 2010 +0200
@@ -5,7 +5,6 @@
 	script \
 	$(TCPWRAP_BIN) \
 	gdbhelper \
-	imap-utf7 \
 	listview \
 	maildirlock
 
@@ -47,11 +46,6 @@
 gdbhelper_SOURCES = \
 	gdbhelper.c
 
-imap_utf7_LDADD = $(LIBDOVECOT)
-imap_utf7_DEPENDENCIES = $(LIBDOVECOT_DEPS)
-imap_utf7_SOURCES = \
-	imap-utf7.c
-
 listview_LDADD = $(LIBDOVECOT)
 listview_DEPENDENCIES = $(LIBDOVECOT_DEPS)
 listview_SOURCES = \
diff -r 0741e7003efa -r 715b74280077 src/util/imap-utf7.c
--- a/src/util/imap-utf7.c	Thu May 13 11:47:53 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-/* Copyright (c) 2008-2010 Dovecot authors, see the included COPYING file */
-
-#include "lib.h"
-#include "str.h"
-#include "imap-utf7.h"
-
-#include <stdio.h>
-
-int main(int argc ATTR_UNUSED, const char *argv[])
-{
-	string_t *dest;
-	bool reverse = FALSE;
-	int ret;
-
-	lib_init();
-
-	if (argv[1] != NULL && strcmp(argv[1], "-r") == 0) {
-		reverse = TRUE;
-		argv++;
-	}
-
-	if (argv[1] == NULL) {
-		fprintf(stderr, "Usage: %s [-r] <string>\n", argv[0]);
-		return 1;
-	}
-
-	dest = t_str_new(256);
-	ret = reverse ?
-		imap_utf8_to_utf7(argv[1], dest) :
-		imap_utf7_to_utf8(argv[1], dest);
-	if (ret < 0) {
-		fprintf(stderr, "Invalid input\n");
-		return 1;
-	}
-	printf("%s\n", str_c(dest));
-	return 0;
-}


More information about the dovecot-cvs mailing list