changeset 5623:e41accd3d6f1 HEAD

If Return-Path doesn't contain user and domain, treat it as missing Return-Path.
author Timo Sirainen <tss@iki.fi>
date Tue, 15 May 2007 20:27:30 +0300
parents 5f14caa1ed9b
children 547c5d58aa08
files src/deliver/deliver.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/deliver/deliver.c	Tue May 15 13:21:00 2007 +0300
+++ b/src/deliver/deliver.c	Tue May 15 20:27:30 2007 +0300
@@ -167,7 +167,8 @@
 		message_address_parse(pool_datastack_create(),
 				      (const unsigned char *)str,
 				      strlen(str), 1, FALSE);
-	return addr == NULL || addr->mailbox == NULL || addr->domain == NULL ?
+	return addr == NULL || addr->mailbox == NULL || addr->domain == NULL ||
+		*addr->mailbox == '\0' || *addr->domain == '\0' ?
 		NULL : t_strconcat(addr->mailbox, "@", addr->domain, NULL);
 }