From: Timo Sirainen Date: Thu, 13 May 2010 09:50:53 +0000 (+0200) Subject: Removed imap-utf7 binary. doveadm mailbox convert replaced it. X-Git-Tag: 2.0.beta6~232 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a21271d0ffa9abd8746c1444e838d1e7e49807c;p=thirdparty%2Fdovecot%2Fcore.git Removed imap-utf7 binary. doveadm mailbox convert replaced it. --HG-- branch : HEAD --- diff --git a/src/util/Makefile.am b/src/util/Makefile.am index 3ffe7078dc..cb16b024ad 100644 --- a/src/util/Makefile.am +++ b/src/util/Makefile.am @@ -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 index badfda2377..0000000000 --- a/src/util/imap-utf7.c +++ /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 - -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] \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; -}