Added _procmailrc file for interactive email handling.
authorW. Trevor King <wking@drexel.edu>
Tue, 14 Jul 2009 19:49:58 +0000 (15:49 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 14 Jul 2009 19:49:58 +0000 (15:49 -0400)
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 ;).

interfaces/email/interactive/_procmailrc [new file with mode: 0644]

diff --git a/interfaces/email/interactive/_procmailrc b/interfaces/email/interactive/_procmailrc
new file mode 100644 (file)
index 0000000..58beadb
--- /dev/null
@@ -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