Commit 74a63244 74a63244a56563c97cbdc5b87944379ac9ec9890 by Frederic Gobry

fixed bug in mime message reset

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