From 6a21271d0ffa9abd8746c1444e838d1e7e49807c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 13 May 2010 11:50:53 +0200 Subject: [PATCH] Removed imap-utf7 binary. doveadm mailbox convert replaced it. --HG-- branch : HEAD --- src/util/Makefile.am | 6 ------ src/util/imap-utf7.c | 37 ------------------------------------- 2 files changed, 43 deletions(-) delete mode 100644 src/util/imap-utf7.c 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; -} -- 2.47.3