diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-03-19 22:27:12 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2003-03-19 22:27:12 +0000 |
commit | 82b6e01866873588266db0df7ebe457e0d91213e (patch) | |
tree | 09b28f33931e5bf8528b22c27d2738fffbc3bf18 /mh | |
parent | 5864f2d6ac53fa09c553fefd5e081fd7bb95fb77 (diff) | |
download | mailutils-82b6e01866873588266db0df7ebe457e0d91213e.tar.gz mailutils-82b6e01866873588266db0df7ebe457e0d91213e.tar.bz2 |
Fixed --mime mode.
Diffstat (limited to 'mh')
-rw-r--r-- | mh/forw.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -303,8 +303,13 @@ finish_draft () free (str); for (i = 0; rc == 0 && i < msgset.count; i++) { - snprintf (buf, sizeof buf, " %lu", (unsigned long) i); - rc = stream_sequential_write (stream, buf, strlen (buf)); + message_t msg; + size_t num; + + mailbox_get_message (mbox, msgset.list[i], &msg); + mh_message_number (msg, &num); + snprintf (buf, sizeof buf, " %lu", (unsigned long) num); + rc = stream_sequential_write (stream, buf, strlen (buf)); } } else |