Add wrapper script for read-mail.pl
Drop procmail, use Exim filter as .forward. Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
6032e3984a
commit
8db4fa83e0
2 changed files with 18 additions and 0 deletions
17
bin/read-mail-wrapper.sh
Executable file
17
bin/read-mail-wrapper.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# This script is a wrapper for read-mail.pl to set up the environment.
|
||||
#
|
||||
# Usage: ${HUHU_DIR}/bin/read-mail-wrapper.sh de.alt.test.moderated
|
||||
|
||||
export "LANG=C"
|
||||
export "LC_CTYPE=C"
|
||||
set -o nounset
|
||||
set -o errexit
|
||||
|
||||
export HUHU_DIR="/home/huhu"
|
||||
export PERL5LIB="${PERL5LIB:+$PERL5LIB:}${HUHU_DIR}"
|
||||
USER_DIR=$( echo "$1" | sed 's#[-.]#/#g' )
|
||||
CONFIG="/home/${USER_DIR}/etc/public.conf"
|
||||
|
||||
cat - | "${HUHU_DIR}/bin/read-mail.pl" "-config=${CONFIG}" -stdin
|
||||
Loading…
Add table
Add a link
Reference in a new issue