diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-08-07 17:29:30 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-08-07 17:51:48 +0300 |
commit | b8553fee2f6da26406b7571e5dcfd2f4d604fe57 (patch) | |
tree | b8d285178e8dbadf9fb606dd4b3150a25a33e4ae /libmailutils/tests/Makefile.am | |
parent | 5fe88d71121bd4a5c3afb83b5ed1b8d775429fa4 (diff) | |
download | mailutils-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 'libmailutils/tests/Makefile.am')
-rw-r--r-- | libmailutils/tests/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmailutils/tests/Makefile.am b/libmailutils/tests/Makefile.am index bd0b781c0..cdaec679f 100644 --- a/libmailutils/tests/Makefile.am +++ b/libmailutils/tests/Makefile.am @@ -59,6 +59,7 @@ noinst_PROGRAMS = \ readmesg\ recenv\ scantime\ + stream-getdelim\ strftime\ strin\ strout\ @@ -108,6 +109,7 @@ TESTSUITE_AT += \ fsfolder02.at\ fsfolder03.at\ fsfolder04.at\ + getdelim.at\ hdrcpy.at\ hdrflt.at\ htmlent.at\ |