File indexing completed on 2024-04-14 05:12:19

0001 /*
0002     SPDX-FileCopyrightText: 2007 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "kmime_message.h"
0010 #include <QObject>
0011 
0012 class MessageTest : public QObject
0013 {
0014     Q_OBJECT
0015 private Q_SLOTS:
0016     void testMainBodyPart();
0017     void testBrunosMultiAssembleBug();
0018     void testWillsAndTillsCrash();
0019     void testDavidsParseCrash();
0020     void testHeaderFieldWithoutSpace();
0021     void testWronglyFoldedHeaders();
0022     void missingHeadersTest();
0023     void testBug219749();
0024     void testBidiSpoofing();
0025     void testUtf16();
0026     void testDecodedText();
0027     void testInlineImages();
0028     void testIssue3908();
0029     void testIssue3914();
0030     void testBug223509();
0031     void testEncapsulatedMessages();
0032     void testOutlookAttachmentNaming();
0033     void testEncryptedMails();
0034     void testReturnSameMail();
0035     void testEmptySubject();
0036     void testReplyHeader();
0037 
0038     void testBug392239();
0039     void testBugAttachment387423();
0040     void testCrashReplyInvalidEmail();
0041 private:
0042     KMime::Message::Ptr readAndParseMail(const QString &mailFile) const;
0043 };
0044