Skip to content

Commit

Permalink
[Test] Url in subject
Browse files Browse the repository at this point in the history
  • Loading branch information
korgoth1 committed Sep 3, 2019
1 parent 8a24065 commit 3b01bed
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/functional/cases/340_surbl.robot
Expand Up @@ -78,6 +78,19 @@ SURBL @example.com mail text
Should Not Contain ${result.stdout} DBL_PHISH (
Should Not Contain ${result.stdout} URIBL_BLACK (

SURBL example.com not encoded url in subject
${result} = Scan Message With Rspamc ${TESTDIR}/messages/urlinsubject.eml
Should Contain ${result.stdout} RSPAMD_URIBL (
Should Contain ${result.stdout} DBL_SPAM (
Should Not Contain ${result.stdout} DBL_PHISH (
Should Not Contain ${result.stdout} URIBL_BLACK (

SURBL example.com encoded url in subject
${result} = Scan Message With Rspamc ${TESTDIR}/messages/urlinsubjectencoded.eml
Should Contain ${result.stdout} RSPAMD_URIBL (
Should Contain ${result.stdout} DBL_SPAM (
Should Not Contain ${result.stdout} DBL_PHISH (
Should Not Contain ${result.stdout} URIBL_BLACK (

*** Keywords ***
Surbl Setup
Expand Down
7 changes: 7 additions & 0 deletions test/functional/messages/urlinsubject.eml
@@ -0,0 +1,7 @@
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Subject: http://example.com
Date: Tue, 4 Sep 2019 23:25:01 +0000


hello
9 changes: 9 additions & 0 deletions test/functional/messages/urlinsubjectencoded.eml
@@ -0,0 +1,9 @@
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Subject: =?utf-8?b?0J/QntCU0KLQktCV0KDQlNCY0KLQlSDQktCr0J/Qm9CQ0KLQoyAt?=
=?utf-8?q?_https=3A//example=2Ecom/nT6a--Check_out_our_New_=F0=9F=97=BA?=
=?utf-8?b?77iPIEdlb2dyYXBoeSBUaGVtZWQgU2V0IPCfj5TvuI8g?=
Date: Tue, 4 Sep 2019 23:25:01 +0000


hello

0 comments on commit 3b01bed

Please sign in to comment.