summaryrefslogtreecommitdiffstats
path: root/contrib/bugzilla.procmailrc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bugzilla.procmailrc')
-rw-r--r--contrib/bugzilla.procmailrc30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/bugzilla.procmailrc b/contrib/bugzilla.procmailrc
new file mode 100644
index 000000000..36656b4d2
--- /dev/null
+++ b/contrib/bugzilla.procmailrc
@@ -0,0 +1,30 @@
+:0 fhw
+| formail -I "From " -a "From "
+
+BUGZILLA_HOME=/home/bugzilla/WEB/bugzilla/contrib
+
+:0
+* ^Subject: .*\[Bug .*\]
+RESULT=|(cd $BUGZILLA_HOME && ./bugzilla_email_append.pl)
+
+
+# Feed mail to stdin of bug_email.pl
+:0 Ec
+#* !^Subject: .*[Bug .*]
+RESULT=|(cd $BUGZILLA_HOME && ./bug_email.pl )
+
+# write result to a logfile
+:0 c
+|echo `date '+%d.%m.%y %H:%M: '` $RESULT >> $HOME/bug_email.log
+
+
+:0 c
+|echo "----------------------------------" >> $HOME/bug_email.log
+
+:0 c
+$HOME/bug_email.log
+
+# Move mail to the inbox
+:0
+$HOME/Mail/INBOX
+