Commit 74a63244 74a63244a56563c97cbdc5b87944379ac9ec9890 by Frederic Gobry

fixed bug in mime message reset

1 parent 656ee0dc
2002-12-02 Frederic Gobry <frederic.gobry@smartdata.ch>
* mailbox/mime.c (_mime_body_read): reset the part offset when
resetting the message.
2002-11-29 Sergey Poznyakoff
* mailbox/date.c: New version of mu_tm2time function.
......
......@@ -476,6 +476,8 @@ _mime_body_read(stream_t stream, char *buf, size_t buflen, off_t off, size_t *nb
if ( off == 0 ) { /* reset message */
mime->cur_offset = 0;
mime->cur_part = 0;
mime->part_offset = 0;
if ( mime->nmtp_parts > 1 )
mime->flags |= MIME_INSERT_BOUNDARY;
}
......