Mercurial > dovecot > core-2.2
changeset 11298:715b74280077 HEAD
Removed imap-utf7 binary. doveadm mailbox convert replaced it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 13 May 2010 11:50:53 +0200 |
parents | 0741e7003efa |
children | 9a86c335c3ed |
files | src/util/Makefile.am src/util/imap-utf7.c |
diffstat | 2 files changed, 0 insertions(+), 43 deletions(-) [+] |
line wrap: on
line diff
--- 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 = \
--- 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; -}