changeset 1091:a0a1b532fab8 HEAD

Dovecot might have crashed sometimes when accessing mbox with invalid From-lines (eg. in the middle of the message body).
author Timo Sirainen <tss@iki.fi>
date Tue, 04 Feb 2003 04:42:32 +0200
parents c871ad112e19
children 63e76cf6c9e8
files src/lib-index/mbox/mbox-index.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-index.c	Tue Feb 04 02:34:54 2003 +0200
+++ b/src/lib-index/mbox/mbox-index.c	Tue Feb 04 04:42:32 2003 +0200
@@ -567,6 +567,10 @@
 						i_stream_skip(input, i);
 						return;
 					}
+
+					/* we may have trashed msg on the way,
+					   get it again */
+					msg = i_stream_get_data(input, &size);
 				}
 				break;
 			}