diff options
Diffstat (limited to 'test/functional/cases/400_known_senders.robot')
-rw-r--r-- | test/functional/cases/400_known_senders.robot | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/functional/cases/400_known_senders.robot b/test/functional/cases/400_known_senders.robot index f258113da..d827acc0e 100644 --- a/test/functional/cases/400_known_senders.robot +++ b/test/functional/cases/400_known_senders.robot @@ -7,6 +7,9 @@ Variables ${RSPAMD_TESTDIR}/lib/vars.py *** Variables *** ${CONFIG} ${RSPAMD_TESTDIR}/configs/known_senders.conf +${SETTINGS_REPLIES} {symbols_enabled = [REPLIES_CHECK, REPLIES_SET, REPLY]} +${SYMBOL_GLOBAL} INC_MAIL_KNOWN_GLOBALLY +${SYMBOL_LOCAL} INC_MAIL_KNOWN_LOCALLY ${REDIS_SCOPE} Suite ${RSPAMD_SCOPE} Suite @@ -34,3 +37,39 @@ UNKNOWN SENDER WRONG DOMAIN RESCAN ... Settings={symbols_enabled [KNOWN_SENDER]} Do Not Expect Symbol KNOWN_SENDER Do Not Expect Symbol UNKNOWN_SENDER + +INCOMING MAIL SENDER IS UNKNOWN + Scan File ${RSPAMD_TESTDIR}/messages/inc_mail_unknown_sender.eml + ... Settings={symbols_enabled [${SYMBOL_GLOBAL}, ${SYMBOL_LOCAL}]} + Do Not Expect Symbol ${SYMBOL_GLOBAL} + Do Not Expect Symbol ${SYMBOL_LOCAL} + +INCOMING MAIL SENDER IS KNOWN RECIPIENTS ARE UNKNOWN + Scan File ${RSPAMD_TESTDIR}/messages/set_replyto_1_1.eml + ... IP=8.8.8.8 User=user@emailbl.com + ... Settings=${SETTINGS_REPLIES} + Scan File ${RSPAMD_TESTDIR}/messages/replyto_1_1.eml + ... IP=8.8.8.8 User=user@emailbl.com + ... Settings=${SETTINGS_REPLIES} + Scan File ${RSPAMD_TESTDIR}/messages/inc_mail_known_sender.eml + ... IP=8.8.8.8 User=user@emailbl.com + ... Settings={symbols_enabled [${SYMBOL_GLOBAL}, ${SYMBOL_LOCAL}]} + Expect Symbol ${SYMBOL_GLOBAL} + Do Not Expect Symbol ${SYMBOL_LOCAL} + +INCOMING MAIL SENDER IS KNOWN RECIPIENTS ARE KNOWN + Scan File ${RSPAMD_TESTDIR}/messages/set_replyto_1_1.eml + ... IP=8.8.8.8 User=user@emailbl.com + ... Settings=${SETTINGS_REPLIES} + Scan File ${RSPAMD_TESTDIR}/messages/replyto_1_1.eml + ... IP=8.8.8.8 User=user@emailbl.com + ... Settings=${SETTINGS_REPLIES} + Scan File ${RSPAMD_TESTDIR}/messages/inc_mail_known_sender.eml + ... IP=8.8.8.8 User=user@emailbl.com + ... Settings=${SETTINGS_REPLIES} + Scan File ${RSPAMD_TESTDIR}/messages/inc_mail_known_sender.eml + ... IP=8.8.8.8 User=user@emailbl.com + ... Settings={symbols_enabled [${SYMBOL_GLOBAL}, ${SYMBOL_LOCAL}]} + Expect Symbol ${SYMBOL_GLOBAL} + Expect Symbol ${SYMBOL_LOCAL} + |