summaryrefslogtreecommitdiff
path: root/mh/comp.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-09-07 13:57:30 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-09-08 16:11:38 +0300
commit7bfe0ed907c5300d68fea2f2d4e53bac6dc78b60 (patch)
tree8c21e4247b3fab21be29fbea58b750f1fecb18ce /mh/comp.c
parent62c5c62a7e8fd3524227cd241986d6ce4711b239 (diff)
downloadmailutils-7bfe0ed907c5300d68fea2f2d4e53bac6dc78b60.tar.gz
mailutils-7bfe0ed907c5300d68fea2f2d4e53bac6dc78b60.tar.bz2
Finish pop3 mailbox implementation.
* mailbox/msgscan.c: New file. * mailbox/Makefile.am (libmailutils_la_SOURCES): Add it. * include/mailutils/body.h (mu_body_set_get_stream): New prototype. * include/mailutils/message.h (MU_SCAN_SEEK, MU_SCAN_SIZE): New defines. (mu_message_scan): New structure. (mu_stream_scan_message): New prototype. (mu_message_set_get_stream): New prototype. * include/mailutils/stream.h (mu_stream_copy): Change signature: takes 4 arguments now. * include/mailutils/sys/body.h (_mu_body) <_get_stream>: New method. * include/mailutils/sys/message.h (_mu_message) <_get_stream>: New method. * mailbox/body.c (_body_get_stream): Call _get_stream, if provided. * mailbox/message.c (_message_get_stream): Call _get_stream, if provided. * mailbox/stream.c (_stream_flush_buffer): Avoid infinite recursion: call stream->seek directly. * mailbox/streamcpy.c (mu_stream_copy): Return the number of bytes actually copied in the fourth argument. All uses updated. * mailbox/streamref.c (streamref_return): Do not propagate internal flags. (_streamref_readdelim): Ensure there is enough buffer space for the mu_stream_readdelim call. * libproto/pop/mbox.c: Finish client implementation. * mail/print.c (mail_print_msg): Close pager before returning on error.
Diffstat (limited to 'mh/comp.c')
-rw-r--r--mh/comp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mh/comp.c b/mh/comp.c
index 59edf7ac7..397948325 100644
--- a/mh/comp.c
+++ b/mh/comp.c
@@ -171,7 +171,7 @@ copy_message (mu_mailbox_t mbox, size_t n, const char *file)
return rc;
}
- rc = mu_stream_copy (out, in, 0);
+ rc = mu_stream_copy (out, in, 0, NULL);
mu_stream_destroy (&in);
mu_stream_close (out);
mu_stream_destroy (&out);

Return to:

Send suggestions and report system problems to the System administrator.