4 Commits

Author SHA1 Message Date
Paula Madalina Crismaru
2a5cd3a412 Adds support for all MIME Content-Transfer-Encodings
According to [1], Content-Transfer-Encoding can have one of the
following values (case insensitive): "BASE64" / "QUOTED-PRINTABLE" /
"8BIT"   / "7BIT" / "BINARY" / x-token.
Values "8bit", "7bit", and "binary" all imply that NO encoding has been
performed.
"x-token" refers to a custom implementation that can be done, where the
encoding agent and the decoding agent must agree upon. This case is not
addressed by the patch.
"QUOTED-PRINTABLE" and "base64" encodings are addressed by this patch,
and the decoding is performed for all the multipart content types
currently supported.

[1]https://www.w3.org/Protocols/rfc1341/5_Content-Transfer-Encoding.html

Change-Id: Iac29f3a287bd478f7f0b55d9911ae47f3a5890fb
Closes-Bug: #1696420
2017-06-13 11:56:59 +00:00
Claudiu Popa
d4dcab432c Use LogSnatcher to catch the messages emitted by the loggers
When running the tests on Python 3, it gets really annoying to see
so many logging messages and tracebacks, even though the tests are
running fine. This patch improves the situation by catching all the
log messages that are emitted during tests execution.

Change-Id: Idc62081b768676cc861fb7c53f18175879807e56
2015-09-11 16:20:18 +03:00
Claudiu Popa
db69c62216 Improve the test coverage by a couple of percents
This patch adds some missing tests for a couple of edge cases.

Change-Id: I3929595fddca0628269af6235bbb0fca853ae3eb
2015-03-25 23:00:52 +02:00
Claudiu Popa
c5ebf8deec Move non-Windows specific plugins to common
Most of the Windows-specific plugins were able to work on other platforms
as well, as long as osutils provides the relevant functionalities. This
restructuring is an effort for helping future additions of other
platforms.

Change-Id: I21a35eb6eb8e2439cfdf861c59afc51c3618a779
2015-02-12 20:17:15 +02:00