summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-08-07 17:29:30 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-08-07 17:51:48 +0300
commitb8553fee2f6da26406b7571e5dcfd2f4d604fe57 (patch)
treeb8d285178e8dbadf9fb606dd4b3150a25a33e4ae /include
parent5fe88d71121bd4a5c3afb83b5ed1b8d775429fa4 (diff)
downloadmailutils-b8553fee2f6da26406b7571e5dcfd2f4d604fe57.tar.gz
mailutils-b8553fee2f6da26406b7571e5dcfd2f4d604fe57.tar.bz2
stream API: remove the readdelim method
The method is superfluous as the API itself provides the necessary functionality. Besides, it interacted poorly with positioning in buffered streams. * include/mailutils/sys/stream.h (struct _mu_stream): Remove the readdelim method. * libmailutils/stream/stream.c (mu_stream_readdelim) (mu_stream_getdelim): Remove uses of the readdelim method. * libmailutils/tests/.gitignore: Update. * libmailutils/tests/Makefile.am: Add new test. * libmailutils/tests/testsuite.at: Likewise. * libmailutils/tests/getdelim.at: New test. * libmailutils/tests/stream-getdelim.c: New test program. * libmailutils/base/amd.c: Remove readdelim implementation. * libmailutils/mailbox/msgstream.c: Likewise. * libmailutils/stream/iostream.c: Likewise. * libmailutils/stream/streamref.c: Likewise. * libmailutils/stream/xscript-stream.c: Likewise. * libproto/pop/pop3_stream.c: Likewise. * mail/decode.c (mime_descend): Handle errors from mu_message_unencapsulate graciously. On failure, treat message/rfc822 as text/plain.
Diffstat (limited to 'include')
-rw-r--r--include/mailutils/sys/stream.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/mailutils/sys/stream.h b/include/mailutils/sys/stream.h
index 203ddf64e..44349bddd 100644
--- a/include/mailutils/sys/stream.h
+++ b/include/mailutils/sys/stream.h
@@ -53,7 +53,6 @@ struct _mu_stream
int last_err;
int (*read) (struct _mu_stream *, char *, size_t, size_t *);
- int (*readdelim) (struct _mu_stream *, char *, size_t, int, size_t *);
int (*write) (struct _mu_stream *, const char *, size_t, size_t *);
int (*flush) (struct _mu_stream *);
int (*open) (struct _mu_stream *);

Return to:

Send suggestions and report system problems to the System administrator.