Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5117:02f7ce1e75f6 HEAD
Don't crash with expunging mails with non-existing message-id header.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 07 Feb 2007 03:45:33 +0200 |
parents | 6d60ec110746 |
children | c2af4ee1f25e |
files | src/plugins/mail-log/mail-log-plugin.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/mail-log/mail-log-plugin.c Tue Feb 06 21:51:13 2007 +0200 +++ b/src/plugins/mail-log/mail-log-plugin.c Wed Feb 07 03:45:33 2007 +0200 @@ -40,7 +40,7 @@ msgid = mail_get_first_header(mail, "Message-ID"); i_info("%s: uid=%u, msgid=%s", action, mail->uid, - str_sanitize(msgid, MSGID_LOG_LEN)); + msgid == NULL ? "(null)" : str_sanitize(msgid, MSGID_LOG_LEN)); } static int mail_log_mail_expunge(struct mail *_mail)