]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed imap-utf7 binary. doveadm mailbox convert replaced it.
authorTimo Sirainen <tss@iki.fi>
Thu, 13 May 2010 09:50:53 +0000 (11:50 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 13 May 2010 09:50:53 +0000 (11:50 +0200)
--HG--
branch : HEAD

src/util/Makefile.am
src/util/imap-utf7.c [deleted file]

index 3ffe7078dc66e5c248fdde204b8d3b75c2c5d412..cb16b024ad9dfe9ab0d2f103d4b17b2b5dce5d2f 100644 (file)
@@ -5,7 +5,6 @@ pkglibexec_PROGRAMS = \
        script \
        $(TCPWRAP_BIN) \
        gdbhelper \
-       imap-utf7 \
        listview \
        maildirlock
 
@@ -47,11 +46,6 @@ gdbhelper_DEPENDENCIES = $(LIBDOVECOT_DEPS)
 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 --git a/src/util/imap-utf7.c b/src/util/imap-utf7.c
deleted file mode 100644 (file)
index badfda2..0000000
+++ /dev/null
@@ -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;
-}