Commit 0c4eedf5 authored by Laurent Montel's avatar Laurent Montel 😁

Remove display useragent

parent d64f869b
......@@ -245,18 +245,6 @@ QString GrantleeHeaderFormatter::format(const QString &absolutePath, const Grant
HeaderStyleUtil::
LongDate)));
if (MessageViewer::MessageViewerSettings::self()->showUserAgent()) {
if (auto hdr = message->userAgent(false)) {
headerObject.insert(QStringLiteral("useragent"),
d->headerStyleUtil.strToHtml(hdr->asUnicodeString()));
}
if (auto hrd = message->headerByType("X-Mailer")) {
headerObject.insert(QStringLiteral("xmailer"),
d->headerStyleUtil.strToHtml(hrd->asUnicodeString()));
}
}
if (message->hasHeader("Resent-From")) {
headerObject.insert(QStringLiteral("resentfromi18n"), i18n("resent from"));
const QVector<KMime::Types::Mailbox> resentFrom
......
......@@ -72,11 +72,6 @@ xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/sta
<label>Reduce font size for quoted text</label>
<whatsthis>Enable this option to show quoted text with a smaller font.</whatsthis>
</entry>
<entry name="ShowUserAgent" type="Bool">
<default>false</default>
<label>Show user agent</label>
<whatsthis>Enable this option to get the User-Agent and X-Mailer header lines displayed.</whatsthis>
</entry>
<entry name="AllowAttachmentEditing" type="Bool">
<default>false</default>
<label>Allow to edit attachments of existing mails.</label>
......
......@@ -175,13 +175,6 @@
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="kcfg_ShowUserAgent">
<property name="text">
<string>Show user agent in fancy headers</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="3" column="3">
......
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