dovecot-1.2: deliver: If -a wasn't specified and no Envelope-To:...

dovecot at dovecot.org dovecot at dovecot.org
Mon Feb 2 19:50:32 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/8fb251e401e6
changeset: 8702:8fb251e401e6
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 02 12:50:27 2009 -0500
description:
deliver: If -a wasn't specified and no Envelope-To: header, the fallback implementation was buggy.
Patch by Steffen Kaiser.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/deliver/deliver.c |    2 +-

diffs (12 lines):

diff -r db9989630e89 -r 8fb251e401e6 src/deliver/deliver.c
--- a/src/deliver/deliver.c	Mon Feb 02 12:48:41 2009 -0500
+++ b/src/deliver/deliver.c	Mon Feb 02 12:50:27 2009 -0500
@@ -1133,7 +1133,7 @@ int main(int argc, char *argv[])
 	if (destaddr == NULL) {
 		destaddr = deliver_get_address(mail, "Envelope-To");
 		if (destaddr == NULL) {
-			destaddr = strchr(user, '@') == NULL ? user :
+			destaddr = strchr(user, '@') != NULL ? user :
 				t_strconcat(user, "@",
 					    deliver_set->hostname, NULL);
 		}


More information about the dovecot-cvs mailing list