]>
Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/env bash | |
2 | # Inspired from https://docs.iredmail.org/dovecot.imapsieve.html | |
3 | ||
4 | MSG_TYPE="$1" | |
5 | OUTPUT_DIR="/var/lib/vhost/.rspamd/${USER}/pending/${MSG_TYPE}" | |
6 | FILE="${OUTPUT_DIR}/$(date +%Y%m%d%H%M%S)-${RANDOM}${RANDOM}.eml" | |
7 | mkdir -p "${OUTPUT_DIR}" | |
8 | cat > ${FILE} < /dev/stdin |