Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1833:d951d5b883ec HEAD
Don't save empty header lists
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 21 Oct 2003 06:35:43 +0300 |
parents | fece302386f4 |
children | 6cfa2a123b7e |
files | src/lib-storage/index/index-mail-headers.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail-headers.c Tue Oct 21 06:35:32 2003 +0300 +++ b/src/lib-storage/index/index-mail-headers.c Tue Oct 21 06:35:43 2003 +0300 @@ -539,8 +539,12 @@ return FALSE; } - data->header_save = TRUE; - data->header_save_idx = idx; + /* it's possible that we're parsing headers without wanting + to save any of them */ + if (buffer_get_used_size(data->headers) != 0) { + data->header_save = TRUE; + data->header_save_idx = idx; + } } data->bodystructure_header_parse = data->bodystructure_header_want;