changeset 11813:14ac329dcba1

mbox: Write empty From_-line envelope as MAILER-DAEMON
author Timo Sirainen <tss@iki.fi>
date Wed, 14 Jul 2010 13:58:21 +0100
parents c34681558f46
children 8af852eb3277
files src/lib-storage/index/mbox/mbox-save.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/mbox/mbox-save.c	Wed Jul 14 13:52:47 2010 +0100
+++ b/src/lib-storage/index/mbox/mbox-save.c	Wed Jul 14 13:58:21 2010 +0100
@@ -126,6 +126,9 @@
 				storage->user->username :
 				t_strconcat(storage->user->username,
 					    "@", my_hostdomain(), NULL);
+		} else if (*from_envelope == '\0') {
+			/* can't write empty envelope */
+			from_envelope = "MAILER-DAEMON";
 		}
 
 		/* save in local timezone, no matter what it was given with */