mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 01:55:29 +02:00
spam: use Sieve for rewriting subject with Rspamd & SA/Amavis (#3820)
This commit is contained in:
parent
3b11a8305e
commit
afb0093939
16 changed files with 262 additions and 179 deletions
|
@ -417,5 +417,21 @@ function _nc_wrapper() {
|
|||
_run_in_container_bash "nc ${NC_PARAMETERS} < /tmp/docker-mailserver-test/${FILE}"
|
||||
}
|
||||
|
||||
# A simple wrapper for a test that checks whether a file exists.
|
||||
#
|
||||
# @param ${1} = the path to the file inside the container
|
||||
function _file_exists_in_container() {
|
||||
_run_in_container_bash "[[ -f ${1} ]]"
|
||||
assert_success
|
||||
}
|
||||
|
||||
# A simple wrapper for a test that checks whether a file does not exist.
|
||||
#
|
||||
# @param ${1} = the path to the file (that should not exists) inside the container
|
||||
function _file_does_not_exist_in_container() {
|
||||
_run_in_container_bash "[[ -f ${1} ]]"
|
||||
assert_failure
|
||||
}
|
||||
|
||||
# ? << Miscellaneous helper functions
|
||||
# ! -------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue