From: x2000habouzit Date: Mon, 29 Nov 2004 22:24:41 +0000 (+0000) Subject: pipe to feed mhonarc, need to work on the path though X-Git-Tag: xorg/old~754 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=acb642471b067f2b84d34a4665ff058fb734e0f0;p=platal.git pipe to feed mhonarc, need to work on the path though --- diff --git a/install.d/lists/platal.mrc b/install.d/lists/platal.mrc index 8446a93..85d1373 100644 --- a/install.d/lists/platal.mrc +++ b/install.d/lists/platal.mrc @@ -21,7 +21,7 @@ m2h_text_plain::filter; fancyquote maxwidth=80 quoteclass=quote -/home/x2000habouzit/mh/attach/ +/var/spool/platal/archives/attachments/ diff --git a/scripts/mailman/mhonarc_pipe.sh b/scripts/mailman/mhonarc_pipe.sh new file mode 100644 index 0000000..d9984eb --- /dev/null +++ b/scripts/mailman/mhonarc_pipe.sh @@ -0,0 +1,8 @@ +#! /bin/sh + +SPOOL=/var/spool/platal/archives/ +OUTDIR="${SPOOL}/$1/`date +'%Y/%m/'`" +RCFILE=../../install.d/lists/platal.mrc + +[ -d "$OUTDIR" ] || mkdir -p "$OUTDIR" +exec mhonarc -add -outdir "$OUTDIR" -rcfile "$RCFILE"