Mercurial > dovecot > original-hg > dovecot-1.2
comparison src/lib-index/mbox/mbox-append.c @ 289:c020e1168cc3 HEAD
Ignore empty lines at beginning of mbox file.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 22 Sep 2002 12:27:21 +0300 |
parents | 54b3b82bd73e |
children | 3dcc2275b4ca |
comparison
equal
deleted
inserted
replaced
288:0d75aa8b7344 | 289:c020e1168cc3 |
---|---|
166 return !failed; | 166 return !failed; |
167 } | 167 } |
168 | 168 |
169 int mbox_index_append(MailIndex *index, IOBuffer *inbuf) | 169 int mbox_index_append(MailIndex *index, IOBuffer *inbuf) |
170 { | 170 { |
171 if (inbuf->offset == inbuf->size || | 171 if (inbuf->offset == inbuf->size) { |
172 inbuf->offset+1 == inbuf->size) { | |
173 /* no new data */ | 172 /* no new data */ |
174 return TRUE; | 173 return TRUE; |
175 } | 174 } |
176 | 175 |
177 if (!index->set_lock(index, MAIL_LOCK_EXCLUSIVE)) | 176 if (!index->set_lock(index, MAIL_LOCK_EXCLUSIVE)) |