From 1cb19d8c51dde8ed091ee875c095066165a5488d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 14 Jul 2009 15:49:58 -0400 Subject: [PATCH] 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 ;). --- interfaces/email/interactive/_procmailrc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 interfaces/email/interactive/_procmailrc 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 -- 2.26.2