whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: exclude spam from the future
Date Thu, 05 Jan 2017 14:51:25 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  52ddb88   exclude spam from the future
52ddb88 is described below

commit 52ddb885a57939f999199874ae0aaecfd3605a01
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Thu Jan 5 09:50:53 2017 -0500

    exclude spam from the future
---
 www/secmail/server.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/secmail/server.rb b/www/secmail/server.rb
index f281e6c..b97fa6f 100644
--- a/www/secmail/server.rb
+++ b/www/secmail/server.rb
@@ -28,6 +28,7 @@ get '/' do
   # determine latest month for which there are messages
   archives = Dir["#{ARCHIVE}/*.yml"].select {|name| name =~ %r{/\d{6}\.yml$}}
   @mbox = archives.empty? ? nil : File.basename(archives.sort.last, '.yml')
+  @mbox = [Date.today.strftime('%Y%m'), @mbox].min if @mbox
   @messages = Mailbox.new(@mbox).client_headers.select do |message|
     message[:status] != :deleted
   end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message