diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-06-22 10:24:24 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-06-22 10:24:24 +0300 |
commit | 2df53d14b9158a72aeb86cd7ff67bbc3c017e046 (patch) | |
tree | 1be79d2032c678d682b460bcc8ea4d63632e6fa4 /include/mailutils/stream.h | |
parent | 89883891c013fc4e8c762bbb62cb307b1cb79fba (diff) | |
download | mailutils-2df53d14b9158a72aeb86cd7ff67bbc3c017e046.tar.gz mailutils-2df53d14b9158a72aeb86cd7ff67bbc3c017e046.tar.bz2 |
decodemain: set 7bit or 8bit transfer encoding on decoded parts.
* decodemail/decodemail.c (message_decode): Set 8bit or 7bit
transfer encoding, depending on the character of the decoded
stream.
* include/mailutils/cstr.h (mu_mem_8bit_count): New proto.
* include/mailutils/stream.h (MU_STREAM_STAT_IN8BIT)
(MU_STREAM_STAT_OUT8BIT): New constants.
* libmailutils/stream/stream.c (_stream_read,_stream_write): Set
MU_STREAM_STAT_IN8BIT (MU_STREAM_STAT_OUT8BIT) if requested
* libmailutils/string/strcount.c (mu_mem_8bit_count): New function.
Diffstat (limited to 'include/mailutils/stream.h')
-rw-r--r-- | include/mailutils/stream.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mailutils/stream.h b/include/mailutils/stream.h index 327493870..c3a920b6e 100644 --- a/include/mailutils/stream.h +++ b/include/mailutils/stream.h @@ -280,6 +280,8 @@ enum MU_STREAM_STAT_SEEKS, /* Number of seeks */ MU_STREAM_STAT_INLN, /* Lines read */ MU_STREAM_STAT_OUTLN, /* Lines written */ + MU_STREAM_STAT_IN8BIT, /* 8-bit octets read */ + MU_STREAM_STAT_OUT8BIT, /* 8-bit octets written */ _MU_STREAM_STAT_MAX }; |