Initial checkin.

Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
Thomas Hochstein 2022-01-29 10:22:11 +01:00
commit 30132626b8
68 changed files with 5497 additions and 0 deletions

16
etc/skel/bin/read-mail.sh Normal file
View file

@ -0,0 +1,16 @@
#!/bin/sh
#
# This script tries to load all messages in the backup directory into the
# database. Because of the md5sum check this should be a safe operation,
# i.e. it is not possible to produce duplicates.
#
# Use this script for testing or in case the procmail rules were defunct.
#
export "LANG=C"
export "LC_CTYPE=C"
set -o nounset
set -o errexit
export HUHU_DIR="@HUHU_DIR@"
export PERL5LIB="${PERL5LIB:+$PERL5LIB:}${HUHU_DIR}"
"${HUHU_DIR}/bin/read-mail.pl" "-config=$HOME/etc/public.conf" "$HOME/backup"/*