pipe to feed mhonarc, need to work on the path though
authorx2000habouzit <x2000habouzit>
Mon, 29 Nov 2004 22:24:41 +0000 (22:24 +0000)
committerx2000habouzit <x2000habouzit>
Mon, 29 Nov 2004 22:24:41 +0000 (22:24 +0000)
install.d/lists/platal.mrc
scripts/mailman/mhonarc_pipe.sh [new file with mode: 0644]

index 8446a93..85d1373 100644 (file)
@@ -21,7 +21,7 @@ m2h_text_plain::filter; fancyquote maxwidth=80 quoteclass=quote
 </MIMEArgs>
 
 <AttachmentDir>
-/home/x2000habouzit/mh/attach/
+/var/spool/platal/archives/attachments/
 </AttachmentDir>
 
 <AttachmentURL>
diff --git a/scripts/mailman/mhonarc_pipe.sh b/scripts/mailman/mhonarc_pipe.sh
new file mode 100644 (file)
index 0000000..d9984eb
--- /dev/null
@@ -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"