Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/src/bodyformatter/mailman.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 44 | { | |||
---|---|---|---|---|---|
51 | if (KMime::Headers::Base *header = curNode->headerByType("X-Mailer")) { | 51 | if (KMime::Headers::Base *header = curNode->headerByType("X-Mailer")) { | ||
52 | if (header->asUnicodeString().contains(QStringLiteral("MAILMAN"), Qt::CaseInsensitive)) { | 52 | if (header->asUnicodeString().contains(QStringLiteral("MAILMAN"), Qt::CaseInsensitive)) { | ||
53 | return true; | 53 | return true; | ||
54 | } | 54 | } | ||
55 | } | 55 | } | ||
56 | return false; | 56 | return false; | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | Interface::MessagePart::Ptr MailmanBodyPartFormatter::process(Interface::BodyPart &part) const | 59 | MessagePart::Ptr MailmanBodyPartFormatter::process(Interface::BodyPart &part) const | ||
60 | { | 60 | { | ||
61 | KMime::Content *curNode = part.content(); | 61 | KMime::Content *curNode = part.content(); | ||
62 | 62 | | |||
63 | if (!isMailmanMessage(curNode)) { | 63 | if (!isMailmanMessage(curNode)) { | ||
64 | return MessagePart::Ptr(); | 64 | return MessagePart::Ptr(); | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | const QString str = QString::fromLatin1(curNode->decodedContent()); | 67 | const QString str = QString::fromLatin1(curNode->decodedContent()); | ||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |