Expand the decoders for amavis (Resolves: #659) (#677)

Use the guidelines from Ubuntu and added some more.
Added a test to ensure the number of decoders are present.
Guideline: https://help.ubuntu.com/community/PostfixAmavisNew
This commit is contained in:
Johan Smits 2017-08-07 17:37:16 +02:00 committed by Thomas VIAL
parent c9e5a92db3
commit 8b19d54218
2 changed files with 22 additions and 1 deletions

View file

@ -791,6 +791,13 @@ load 'test_helper/bats-assert/load'
assert_failure
}
@test "checking system: amavis decoders installed and available" {
run docker exec mail /bin/sh -c "grep -E '.*(Internal decoder|Found decoder) for\s+\.(mail|Z|gz|bz2|xz|lzma|lrz|lzo|lz4|rpm|cpio|tar|deb|rar|arj|arc|zoo|doc|cab|tnef|zip|kmz|7z|jar|swf|lha|iso|exe).*' /var/log/mail/mail.log|wc -l"
assert_success
assert_output 28
}
#
# sieve
#