Displaying 1 result from an estimated 1 matches for "out_msg".
Did you mean:
num_msg
2013 Nov 10
1
sieve + notify + $subject$ + empty subject = segv
...l_get_headers_utf8 returns an error. So the workaround for this line would be to add a check if header[0] is not NULL.
if ( (mail_get_headers_utf8(msgdata->mail, "subject", &header) >= 0) && header[0] )
str_append(out_msg, header[0]);
IMHO this patch should be applied to the "$from$" replacement as well. The comments in the dovecot's header file says for mail_get_headers:
Returns -1 if error, 0 otherwise (with or without headers found).
hope it helps,
Regards
Christian Ferbar