}
if (ret == 0) {
if (brain->debug) {
- i_debug("brain %c: Mailbox GUID %s sync: "
- "Deletion conflict: %s",
+ i_debug("brain %c: Change during sync: "
+ "Mailbox GUID %s deletion conflict: %s",
brain->master_brain ? 'M' : 'S',
mailbox_get_vname(box), errstr);
}
if (error == MAIL_ERROR_NOTFOUND ||
error == MAIL_ERROR_EXISTS) {
if (brain->debug) {
- i_debug("brain %c: Mailbox %s sync: "
- "mailbox_list_delete_dir conflict: %s",
+ i_debug("brain %c: Change during sync: "
+ "Mailbox %s mailbox_list_delete_dir conflict: %s",
brain->master_brain ? 'M' : 'S',
mailbox_get_vname(box), errstr);
}
/* mailbox was already created or was already deleted.
let the next sync figure out what to do */
if (brain->debug) {
- i_debug("brain %c: Mailbox %s sync: %s conflict: %s",
+ i_debug("brain %c: Change during sync: "
+ "Mailbox %s %s conflict: %s",
brain->master_brain ? 'M' : 'S',
mailbox_get_vname(box),
func_name, errstr);
/* mailbox was probably deleted/renamed during sync */
//FIXME: verify this from log, and if not log an error.
if (brain->debug) {
- i_debug("brain %c: Mailbox GUID %s sync: "
- "Mailbox was lost during sync",
+ i_debug("brain %c: Change during sync: "
+ "Mailbox GUID %s was lost",
brain->master_brain ? 'M' : 'S',
guid_128_to_string(dsync_box->mailbox_guid));
}
mailbox_get_last_error(box, NULL));
ret = -1;
}
- if (ret == 0 && importer->debug) {
- i_debug("Mailbox %s: Renumbered %u of %u unwanted UIDs",
- mailbox_get_vname(box),
- renumber_count, array_count(unwanted_uids));
+ if (ret == 0) {
+ imp_debug(importer, "Mailbox %s: Change during sync: "
+ "Renumbered %u of %u unwanted UIDs",
+ mailbox_get_vname(box),
+ renumber_count, array_count(unwanted_uids));
}
return ret;
}