Commit 5de35ecd authored by Laurent Montel's avatar Laurent Montel 😁

Clean up

parent 50eaa78c
......@@ -37,8 +37,6 @@ TestJQuerySupportMailWebEngine::TestJQuerySupportMailWebEngine(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *vboxLayout = new QVBoxLayout(this);
//true => use JQuery
viewer = new MessageViewer::Viewer(0);
vboxLayout->addWidget(viewer);
viewer->setMessage(readAndParseMail(QStringLiteral("encapsulated-with-attachment.mbox"))/*KMime::Message::Ptr(msg)*/);
......
......@@ -34,65 +34,6 @@ TestMailDndAttachment::TestMailDndAttachment(QWidget *parent)
{
QVBoxLayout *vbox = new QVBoxLayout;
setLayout(vbox);
KMime::Message *msg = new KMime::Message;
QByteArray mail = "From: Thomas McGuire <dontspamme@gmx.net>"
"Subject: Fwd: Test with attachment"
"Date: Wed, 5 Aug 2009 10:58:27 +0200"
"MIME-Version: 1.0"
"Content-Type: Multipart/Mixed;"
" boundary=\"Boundary-00=_zmUeKB+A8hGfCVZ\""
""
""
"--Boundary-00=_zmUeKB+A8hGfCVZ"
"Content-Type: text/plain;"
" charset=\"iso-8859-15\""
"Content-Transfer-Encoding: 7bit"
"Content-Disposition: inline"
""
"This is the first encapsulating message."
""
"--Boundary-00=_zmUeKB+A8hGfCVZ"
"Content-Type: message/rfc822;"
" name=\"forwarded message\""
"Content-Transfer-Encoding: 7bit"
"Content-Description: Thomas McGuire <dontspamme@gmx.net>: Test with attachment"
"Content-Disposition: inline"
""
"From: Thomas McGuire <dontspamme@gmx.net>"
"Subject: Test with attachment"
"Date: Wed, 5 Aug 2009 10:57:58 +0200"
"MIME-Version: 1.0"
"Content-Type: Multipart/Mixed;"
" boundary=\"Boundary-00=_WmUeKQpGb0DHyx1\""
""
"--Boundary-00=_WmUeKQpGb0DHyx1"
"Content-Type: text/plain;"
" charset=\"us-ascii\""
"Content-Transfer-Encoding: 7bit"
"Content-Disposition: inline"
""
""
""
""
"This is the second encapsulated message."
""
"--Boundary-00=_WmUeKQpGb0DHyx1"
"Content-Type: text/plain;"
" name=\"attachment.txt\""
"Content-Transfer-Encoding: 7bit"
"Content-Disposition: attachment;"
" filename=\"attachment.txt\""
""
"This is an attachment."
""
"--Boundary-00=_WmUeKQpGb0DHyx1--"
""
"--Boundary-00=_zmUeKB+A8hGfCVZ--";
msg->setContent(mail);
msg->parse();
MessageViewer::Viewer *viewer = new MessageViewer::Viewer(0);
vbox->addWidget(viewer);
viewer->setMessage(readAndParseMail(QStringLiteral("encapsulated-with-attachment.mbox"))/*KMime::Message::Ptr(msg)*/);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment