]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
raw storage: Make sure "from envelope" isn't returned as NULL.
authorTimo Sirainen <tss@iki.fi>
Tue, 18 Dec 2012 19:45:08 +0000 (21:45 +0200)
committerTimo Sirainen <tss@iki.fi>
Tue, 18 Dec 2012 19:45:08 +0000 (21:45 +0200)
src/lib-storage/index/raw/raw-mail.c

index 3ad6f0c98c89756132712ef3fc21c695fda82ce6..ea6447749444fe9d0425a4ec2e8f1dd2afe5e9f8 100644 (file)
@@ -101,7 +101,8 @@ raw_mail_get_special(struct mail *_mail, enum mail_fetch_field field,
 
        switch (field) {
        case MAIL_FETCH_FROM_ENVELOPE:
-               *value_r = mbox->envelope_sender;
+               *value_r = mbox->envelope_sender != NULL ?
+                       mbox->envelope_sender : "";
                return 0;
        case MAIL_FETCH_UIDL_FILE_NAME:
                *value_r = mbox->have_filename ?