dovecot-2.1: mail-log: Log mailbox names with UTF-8 everywhere (...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jul 11 20:15:13 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/b4cd382b6606
changeset: 14612:b4cd382b6606
user: Timo Sirainen <tss at iki.fi>
date: Wed Jul 11 19:15:03 2012 +0200
description:
mail-log: Log mailbox names with UTF-8 everywhere (instead of mUTF-7)
diffstat:
src/plugins/mail-log/mail-log-plugin.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (41 lines):
diff -r 558e4205c429 -r b4cd382b6606 src/plugins/mail-log/mail-log-plugin.c
--- a/src/plugins/mail-log/mail-log-plugin.c Wed Jul 11 09:32:18 2012 +0200
+++ b/src/plugins/mail-log/mail-log-plugin.c Wed Jul 11 19:15:03 2012 +0200
@@ -363,7 +363,7 @@
const char *desc;
desc = t_strdup_printf("copy from %s",
- str_sanitize(mailbox_get_name(src->box),
+ str_sanitize(mailbox_get_vname(src->box),
MAILBOX_NAME_LOG_LEN));
mail_log_append_mail_message(ctx, dst,
MAIL_LOG_EVENT_COPY, desc);
@@ -466,7 +466,7 @@
return;
i_info("Mailbox created: %s",
- str_sanitize(box->name, MAILBOX_NAME_LOG_LEN));
+ str_sanitize(mailbox_get_vname(box), MAILBOX_NAME_LOG_LEN));
}
static void
@@ -478,7 +478,7 @@
return;
i_info("Mailbox deleted: %s",
- str_sanitize(box->name, MAILBOX_NAME_LOG_LEN));
+ str_sanitize(mailbox_get_vname(box), MAILBOX_NAME_LOG_LEN));
}
static void
@@ -491,8 +491,8 @@
return;
i_info("Mailbox renamed: %s -> %s",
- str_sanitize(src->name, MAILBOX_NAME_LOG_LEN),
- str_sanitize(dest->name, MAILBOX_NAME_LOG_LEN));
+ str_sanitize(mailbox_get_vname(src), MAILBOX_NAME_LOG_LEN),
+ str_sanitize(mailbox_get_vname(dest), MAILBOX_NAME_LOG_LEN));
}
static const struct notify_vfuncs mail_log_vfuncs = {
More information about the dovecot-cvs
mailing list