mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 10:05:00 +02:00
ci: refactored sedfile
& used _send_mail
where possible (#3103)
Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
This commit is contained in:
parent
853301338c
commit
35692a9111
11 changed files with 55 additions and 76 deletions
|
@ -13,6 +13,7 @@
|
|||
#
|
||||
# @param ${1} = template file (path) name
|
||||
# @param ${2} = container name [OPTIONAL]
|
||||
# @param ${3} = port `nc` will use [OPTIONAL]
|
||||
#
|
||||
# ## Attention
|
||||
#
|
||||
|
@ -22,8 +23,9 @@
|
|||
function _send_email() {
|
||||
local TEMPLATE_FILE=${1:?Must provide name of template file}
|
||||
local CONTAINER_NAME=$(__handle_container_name "${2:-}")
|
||||
local PORT=${3:-25}
|
||||
|
||||
_run_in_container_bash "nc 0.0.0.0 25 < /tmp/docker-mailserver-test/email-templates/${TEMPLATE_FILE}.txt"
|
||||
_run_in_container_bash "nc 0.0.0.0 ${PORT} < /tmp/docker-mailserver-test/email-templates/${TEMPLATE_FILE}.txt"
|
||||
assert_success
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue