added procmailrc.example and edward-wrapper
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Thu, 8 Oct 2015 20:19:45 +0000 (16:19 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:32:42 +0000 (13:32 -0500)
this is useful for creating an automated setup with a .procmailrc file
in one's home directory.

edward-wrapper [new file with mode: 0755]
procmailrc.example [new file with mode: 0644]

diff --git a/edward-wrapper b/edward-wrapper
new file mode 100755 (executable)
index 0000000..164884a
--- /dev/null
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+#*************************************************************************
+# Edward is free software: you can redistribute it and/or modify         *
+# it under the terms of the GNU Affero Public License as published by    *
+# the Free Software Foundation, either version 3 of the License, or      *
+# (at your option) any later version.                                    *
+#                                                                        *
+# "run-tests" is distributed in the hope that it will be useful,         *
+# but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+# GNU Affero Public License for more details.                            *
+#                                                                        *
+# You should have received a copy of the GNU Affero Public License       *
+# along with Edward.  If not, see <http://www.gnu.org/licenses/>.        *
+#                                                                        *
+# Copyright (C) 2015 Andrew Engelbrecht                     (AGPLv3+)    *
+#*************************************************************************
+
+. ~/.bashrc
+export LC_ALL=en_US.UTF-8
+
+tee -a ~/incoming.log | /usr/bin/time -f "\nreal:   %E [h:]m:s" ~/edward-src/edward
+
diff --git a/procmailrc.example b/procmailrc.example
new file mode 100644 (file)
index 0000000..d251ea5
--- /dev/null
@@ -0,0 +1,33 @@
+
+#*************************************************************************
+# Edward is free software: you can redistribute it and/or modify         *
+# it under the terms of the GNU Affero Public License as published by    *
+# the Free Software Foundation, either version 3 of the License, or      *
+# (at your option) any later version.                                    *
+#                                                                        *
+# "run-tests" is distributed in the hope that it will be useful,         *
+# but WITHOUT ANY WARRANTY; without even the implied warranty of         *
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
+# GNU Affero Public License for more details.                            *
+#                                                                        *
+# You should have received a copy of the GNU Affero Public License       *
+# along with Edward.  If not, see <http://www.gnu.org/licenses/>.        *
+#                                                                        *
+# Copyright (C) 2014 Josh Drake                             (AGPLv3+)    *
+# Copyright (C) 2014 Lisa Marie Maginnis                    (AGPLv3+)    *
+# Copyright (C) 2015 Andrew Engelbrecht                     (AGPLv3+)    *
+#*************************************************************************
+
+LOGFILE=$HOME/edward.log
+
+:0:
+* ^From:.*edward.*your-domain.org
+/dev/null
+
+:0:
+* ^From:.*MAILER-DAEMON.*
+/dev/null
+
+:0
+| $HOME/edward-src/edward-wrapper
+