From: Timo Sirainen Date: Thu, 8 Dec 2011 03:17:01 +0000 (+0200) Subject: lmtp: If lmtp_save_to_detail_mailbox=yes and there was no detail, mail was logged... X-Git-Tag: 2.1.rc2~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bfd8127fc0836b181b1ae65680bd6e3806b64fd1;p=thirdparty%2Fdovecot%2Fcore.git lmtp: If lmtp_save_to_detail_mailbox=yes and there was no detail, mail was logged as saved to "". --- diff --git a/src/lmtp/commands.c b/src/lmtp/commands.c index 916eb8d00c..0c804033f9 100644 --- a/src/lmtp/commands.c +++ b/src/lmtp/commands.c @@ -519,7 +519,7 @@ client_deliver(struct client *client, const struct mail_recipient *rcpt, if (dctx.dest_addr == NULL) dctx.dest_addr = rcpt->address; dctx.final_dest_addr = rcpt->address; - if (rcpt->detail == '\0' || + if (*rcpt->detail == '\0' || !client->lmtp_set->lmtp_save_to_detail_mailbox) dctx.dest_mailbox_name = "INBOX"; else {