{ "name": "dovecot-pigeonhole", "version": "2.4.5", "summary": "Pigeonhole: Sieve filtering and the ManageSieve server for Dovecot (vacation replies, rules)", "category": "server", "license": "LGPL-2.1-only", "homepage": "https://pigeonhole.dovecot.org/", "source": { "url": "https://pigeonhole.dovecot.org/releases/2.4/dovecot-pigeonhole-2.4.5.tar.gz", "sha256": "ad7c478cb3aaa76c5f81f86727a3e6843645b0a1253f5684fb8a0beec0d22925" }, "watch": {"kind": "github-tag", "repo": "dovecot/pigeonhole", "tag_regex": "^([0-9]+\\.[0-9]+\\.[0-9]+)$"}, "deps": [ "dovecot" ], "env_packages": [], "static": false, "nss": true, "check": "export DOVECOT_PRESERVE_ENVS=QEMU_LD_PREFIX; t=$(mktemp -d) && chmod 777 \"$t\" && printf 'dovecot_config_version = 2.4.5\\ndovecot_storage_version = 2.4.5\\nmail_driver = maildir\\nmail_home = %s/home\\nmail_path = %s/home/Maildir\\nmail_uid = nobody\\nmail_gid = nogroup\\ndefault_internal_user = nobody\\ndefault_internal_group = nogroup\\n' \"$t\" \"$t\" > \"$t/d.conf\" && printf 'require [\"fileinto\", \"vacation\"];\\nif header :contains \"subject\" \"bvs\" { fileinto \"BVS\"; }\\nvacation :days 1 \"away\";\\n' > \"$t/s.sieve\" && bin/sievec -c \"$t/d.conf\" \"$t/s.sieve\" \"$t/c.svbin\" && bin/sieve-dump -c \"$t/d.conf\" \"$t/c.svbin\" | has -i fileinto && printf 'From: a@example.org\\nTo: b@example.org\\nSubject: bvs test\\nMessage-ID: <1@example.org>\\n\\nx\\n' > \"$t/m\" && { bin/sieve-test -c \"$t/d.conf\" \"$t/s.sieve\" \"$t/m\" > \"$t/out\" 2>&1; r=$?; has -A1 'Performed actions' < \"$t/out\" && sed -n 's/^ \\* //p' \"$t/out\" | tr '\\n' ';'; echo; [ $r = 0 ]; } && has 'store message in folder: BVS' < \"$t/out\" && has 'send vacation message' < \"$t/out\"" }