aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces/email/interactive/_procmailrc
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-14 15:49:58 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-14 15:49:58 -0400
commit1cb19d8c51dde8ed091ee875c095066165a5488d (patch)
tree43f1481d8ef48500dd0a9a3619b4062a2342ef1a /interfaces/email/interactive/_procmailrc
parent2f2378b56b6293091fe38ed165f262785ee3cb42 (diff)
downloadbugseverywhere-1cb19d8c51dde8ed091ee875c095066165a5488d.tar.gz
Added _procmailrc file for interactive email handling.
The beginnings of an interactive email interface to BE. With a working procmail setup, copying _procmailrc to ~/.procmailrc should sort through incoming email to that user, passing all messages with subjects starting with [be-mail] on to the script be-handle-mail and deleting the rest. Now I just need to write be-handle-mail ;).
Diffstat (limited to 'interfaces/email/interactive/_procmailrc')
-rw-r--r--interfaces/email/interactive/_procmailrc19
1 files changed, 19 insertions, 0 deletions
diff --git a/interfaces/email/interactive/_procmailrc b/interfaces/email/interactive/_procmailrc
new file mode 100644
index 0000000..58beadb
--- /dev/null
+++ b/interfaces/email/interactive/_procmailrc
@@ -0,0 +1,19 @@
+# .procmailrc
+#
+# see man procmail, procmailrc, and procmailex
+#
+# If you already have a ~/.procmailrc file, you probably only need to
+# insert the bug-email grabbing stanza in your ~/.procmailrc.
+
+MAILDIR=$HOME/be-mail
+LOGFILE=$MAILDIR/procmail.log
+
+# Grab all incoming bug emails. This rule eats matching emails
+# (i.e. no further procmail processing).
+:0
+* ^Subject: [be-mail]
+| be-handle-mail
+
+# Drop everything else
+:0
+/dev/null