summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGaute Hope <eg@gaute.vetsj.com>2019-05-05 08:26:14 +0200
committerGaute Hope <eg@gaute.vetsj.com>2019-05-05 08:29:35 +0200
commitaae4c52091cc7ae28b336c19d2f0ac4a3a4056bf (patch)
treef4d4026855b844c065f5e7d8fc354299f277b398
parente3150ec402f8b161d2001c4214ec88a28f465b20 (diff)
quote_html: test tricky conversion
-rw-r--r--tests/test_quote_html.cc21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/test_quote_html.cc b/tests/test_quote_html.cc
index b3f7616..9ce12c0 100644
--- a/tests/test_quote_html.cc
+++ b/tests/test_quote_html.cc
@@ -5,10 +5,11 @@
# include "test_common.hh"
# include "message_thread.hh"
# include "utils/ustring_utils.hh"
+# include "config.hh"
BOOST_AUTO_TEST_SUITE(QuoteHtml)
- BOOST_AUTO_TEST_CASE(quote_html_lynx)
+ BOOST_AUTO_TEST_CASE(quote_html)
{
using Astroid::Message;
setup ();
@@ -40,5 +41,23 @@ Reply to this email directly, view it on GitHub, or mute the thread.*)";
teardown ();
}
+ BOOST_AUTO_TEST_CASE(quote_html_convert_error)
+ {
+ using Astroid::Message;
+ setup ();
+
+ // TODO: Does not work with lynx
+ /* const_cast<ptree&>(astroid->config()).put ("mail.reply.quote_processor", "lynx -dump -stdin"); */
+
+ ustring fname = "tests/mail/test_mail/isspace-fail-utf-8.eml";
+
+ Message m (fname);
+ ustring quoted = m.quote ();
+
+ LOG (trace) << "quoted plain text: " << quoted;
+
+ teardown ();
+ }
+
BOOST_AUTO_TEST_SUITE_END()