Commit 3a645c78 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add autotest about invalid email

parent 5557899b
Pipeline #29030 passed with stage
in 6 minutes and 38 seconds
Return-Path: <auth@m.gmane-mx.org>
Delivered-To: einar@heavensinferno.net
Received: from tsubame.dennogumi.org ([fd4d:6169:6c63:6f77::e])
by tsubame.dennogumi.org with LMTP
id 3amHL+oQDF8tFwAAISz+BA
(envelope-from <auth@m.gmane-mx.org>)
for <einar@heavensinferno.net>; Mon, 13 Jul 2020 09:44:42 +0200
Received: from letterbox.kde.org (letterbox.kde.org [46.43.1.242])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
(No client certificate requested)
by tsubame.dennogumi.org (Postcow) with ESMTPS id 63446300E9D71
for <einar@heavensinferno.net>; Mon, 13 Jul 2020 09:44:40 +0200 (CEST)
Received: from ciao.gmane.io (static.214.254.202.116.clients.your-server.de [116.202.254.214])
by letterbox.kde.org (Postfix) with ESMTPS id 7400F294FE4
for <lbeltrame@kde.org>; Mon, 13 Jul 2020 08:44:30 +0100 (BST)
Authentication-Results: letterbox.kde.org; spf=pass smtp.mailfrom=auth@m.gmane-mx.org
Received: from auth by ciao.gmane.io with local (Exim 4.92)
(envelope-from <auth@m.gmane-mx.org>)
id 1jut8X-0003Ym-4p
for lbeltrame@kde.org; Mon, 13 Jul 2020 09:44:29 +0200
From: Gmane Autoauthorizer <auth@m.gmane-mx.org>
To: lbeltrame@kde.org
References: <f4f0fec75e2801148adb7c21ee332a7d@kde.org>
Subject: Re: Authorization required to post to gmane.network.wireguard (b96565298414a43aabcf9fbedf5e7e27)
Message-Id: <E1jut8X-0003Ym-4p@ciao.gmane.io>
Date: Mon, 13 Jul 2020 09:44:29 +0200
X-Scanned-By: MIMEDefang 2.83 on 46.43.1.242
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=heavensinferno.net; s=mail; t=1594626280;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:references:references;
bh=42vAJETfmU/IpTMttSJL1ahUgLtDdi6GBDNwHvo3eu8=;
b=lPwv+oL0kA8J5U6Itmmv6pX9fHNZHaU8kiDIKW2/ate8aa4UCX4uxz5tO3J7snBwK9N//6
nHewL7HvArUYq/KkrhqLd1kzlT5q5NVV41i8XDVOz2Y+ZF5nj5EqanCDRqH3Ue4U8GDKuE
+Zub5iTupGhk7r/28WldSDIZRniE9Dw=
ARC-Seal: i=1; s=mail; d=heavensinferno.net; t=1594626280; a=rsa-sha256;
cv=none;
b=HQlzMStsIbb0HsinnhgY0GBIw/khoZx+r4yAg+OEVV73FLrBtBWAizIAWskH0iB9vcP51o
ynf8OZMnKQTp6pYz3Pt3N4PJvaOQuIaQWLQxTPaVY5IkbxOKkFf0EpjWNFQF8a8rmGyK8W
Li3qOFS3pLab5INkAQ3glvftbiJw+0Q=
ARC-Authentication-Results: i=1;
tsubame.dennogumi.org;
dkim=none;
spf=fail (tsubame.dennogumi.org: domain of auth@m.gmane-mx.org does not designate 46.43.1.242 as permitted sender) smtp.mailfrom=auth@m.gmane-mx.org
X-Last-TLS-Session-Version: TLSv1.3
Authentication-Results: tsubame.dennogumi.org;
dkim=none;
dmarc=none;
spf=fail (tsubame.dennogumi.org: domain of auth@m.gmane-mx.org does not designate 46.43.1.242 as permitted sender) smtp.mailfrom=auth@m.gmane-mx.org
X-Rspamd-Queue-Id: 63446300E9D71
X-Spamd-Result: default: False [9.04 / 25.00];
ARC_NA(0.00)[];
RCPT_WANTS_SUBFOLDER_TAG(0.00)[einar@heavensinferno.net];
FROM_HAS_DN(0.00)[];
BAYES_SPAM(0.00)[18.65%];
GREYLIST(0.00)[pass,meta];
MIME_GOOD(-0.10)[text/plain];
PREVIOUSLY_DELIVERED(0.00)[lbeltrame@kde.org];
TO_DN_NONE(0.00)[];
RCPT_COUNT_ONE(0.00)[1];
NEURAL_HAM_LONG(-2.27)[-0.567];
RCVD_COUNT_THREE(0.00)[3];
ARC_SIGNED(0.00)[i=1];
RCVD_IN_DNSWL_MED(-0.20)[46.43.1.242:from];
MX_GOOD(-0.01)[];
DMARC_NA(0.00)[gmane-mx.org];
NEURAL_HAM_SHORT(-0.38)[-0.188];
RCPT_MAILCOW_DOMAIN(0.00)[heavensinferno.net];
FROM_EQ_ENVFROM(0.00)[];
MIME_TRACE(0.00)[0:+];
ASN(0.00)[asn:35425, ipnet:46.43.0.0/18, country:GB];
RCVD_TLS_LAST(0.00)[];
SPF_FAIL_NO_DKIM(10.00)[];
FORGED_RECIPIENTS(2.00)[lbeltrame@kde.org,einar@heavensinferno.net]
X-Spam-Flag: YES
X-Spam: Yes
You are now authorized to post to the
gmane.network.wireguard newsgroup.
The original message you sent to the newsgroup will be
posted within ten minutes.
If you have any questions, they are most likely answered
in the FAQ: <URL: http://gmane.io/faq.php>.
--
Your friendly autoauthorizer at Gmane.io
http://gmane.io/
......@@ -695,3 +695,12 @@ void MessageTest::testBugAttachment387423()
QCOMPARE(attachment->contentDisposition(false)->disposition(), Headers::CDattachment);
}
void MessageTest::testCrashReplyInvalidEmail()
{
KMime::Message::Ptr msg = readAndParseMail(QStringLiteral("crash-invalid-email-reply.mbox"));
QCOMPARE(msg->subject()->as7BitString().data(), "Subject: Re: Authorization required to post to gmane.network.wireguard (b96565298414a43aabcf9fbedf5e7e27)");
QEXPECT_FAIL("", "Problem with content type", Continue);
QCOMPARE(msg->contents().size(), 2);
}
......@@ -52,6 +52,7 @@ private Q_SLOTS:
void testBug392239();
void testCRtoLF();
void testBugAttachment387423();
void testCrashReplyInvalidEmail();
private:
KMime::Message::Ptr readAndParseMail(const QString &mailFile) const;
};
......
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