From owner-svn-ports-head@freebsd.org Wed May 24 15:09:57 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 99B65D7A46F; Wed, 24 May 2017 15:09:57 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6B73B1C14; Wed, 24 May 2017 15:09:57 +0000 (UTC) (envelope-from ume@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v4OF9uJH070553; Wed, 24 May 2017 15:09:56 GMT (envelope-from ume@FreeBSD.org) Received: (from ume@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v4OF9uJM070552; Wed, 24 May 2017 15:09:56 GMT (envelope-from ume@FreeBSD.org) Message-Id: <201705241509.v4OF9uJM070552@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ume set sender to ume@FreeBSD.org using -f From: Hajimu UMEMOTO Date: Wed, 24 May 2017 15:09:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r441604 - head/mail/cyrus-imapd24/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 May 2017 15:09:57 -0000 Author: ume Date: Wed May 24 15:09:56 2017 New Revision: 441604 URL: https://svnweb.freebsd.org/changeset/ports/441604 Log: Fix delivering the messages into the local mailbox by lmtpd. PR: 219494 Obtained from: http://asg.andrew.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=57396 Added: head/mail/cyrus-imapd24/files/patch-imap__lmtpd.c (contents, props changed) Added: head/mail/cyrus-imapd24/files/patch-imap__lmtpd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/cyrus-imapd24/files/patch-imap__lmtpd.c Wed May 24 15:09:56 2017 (r441604) @@ -0,0 +1,34 @@ +--- imap/lmtpd.c.orig 2017-05-15 05:43:30 UTC ++++ imap/lmtpd.c +@@ -712,9 +712,10 @@ int deliver(message_data_t *msgdata, cha + + /* loop through each recipient, attempting delivery for each */ + for (n = 0; n < nrcpts; n++) { +- char namebuf[MAX_MAILBOX_BUFFER] = "", *server; ++ char namebuf[MAX_MAILBOX_BUFFER] = ""; + char userbuf[MAX_MAILBOX_BUFFER]; + const char *rcpt, *user, *domain, *mailbox; ++ char *server = NULL; + int r = 0; + + rcpt = msg_getrcptall(msgdata, n); +@@ -954,7 +955,7 @@ static int verify_user(const char *user, + } + + if (!r) { +- char *server, *acl; ++ char *server = NULL, *acl = NULL; + long aclcheck = !user ? ACL_POST : 0; + /* + * check to see if mailbox exists and we can append to it: +@@ -1061,8 +1062,9 @@ FILE *spoolfile(message_data_t *msgdata) + (don't bother if we're only a proxy) */ + n = isproxy ? 0 : msg_getnumrcpt(msgdata); + for (i = 0; !f && (i < n); i++) { +- char namebuf[MAX_MAILBOX_BUFFER] = "", *server; ++ char namebuf[MAX_MAILBOX_BUFFER] = ""; + const char *user, *domain, *mailbox; ++ char *server = NULL; + int r; + + /* build the mailboxname from the recipient address */