whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [3/3] Commit 33cdcb0: stub for secretarial mail
Date Sun, 17 Jan 2016 18:11:35 GMT
Commit 33cdcb0b04d6652d205a3bd60f852c9e9b7936af:
    stub for secretarial mail


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/status/monitors/secmail.rb                               | +++++++++ 
------------------------------------------------------------
9 changes: 9 additions, 0 deletions.
------------------------------------------------------------


diff --git a/www/status/monitors/secmail.rb b/www/status/monitors/secmail.rb
new file mode 100644
index 0000000..587c07c
--- /dev/null
+++ b/www/status/monitors/secmail.rb
@@ -0,0 +1,9 @@
+#
+# Monitor status of secretarial mail
+#
+
+def Monitor.secmail(previous_status)
+  log = '/srv/mail/procmail.log'
+
+  "Last updated: #{File.mtime(log)}"
+end

Mime
View raw message