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: switch from mail-search to lists
Date Fri, 08 Jul 2016 14:47:37 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  89f6cb6   switch from mail-search to lists
89f6cb6 is described below

commit 89f6cb6838081fb8ed09d5bc27a555ee6c7c8765
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Fri Jul 8 10:47:16 2016 -0400

    switch from mail-search to lists
---
 www/board/posted-reports.cgi | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/www/board/posted-reports.cgi b/www/board/posted-reports.cgi
index dd00ff5..3159ca5 100755
--- a/www/board/posted-reports.cgi
+++ b/www/board/posted-reports.cgi
@@ -7,7 +7,7 @@ require 'wunderbar'
 require 'whimsy/asf/agenda'
 
 # link to board private-arch
-MBOX = "https://mail-search.apache.org/members/private-arch/board"
+THREAD = "https://lists.apache.org/thread.html/"
 
 # only look at this month's and last month's mailboxes, and within those
 # only look at emails that were received in the last month.
@@ -57,8 +57,7 @@ _html do
   # output an unordered list of subjects linked to the message archive
   _ul reports do |mail|
     _li do
-      mbox = mail.date.strftime("#{MBOX}/%Y%m.mbox/")
-      href = mbox + URI.escape('<' + mail.message_id + '>')
+      href = THREAD + URI.escape('<' + mail.message_id + '>')
 
       if missing.any? {|title| mail.subject.downcase =~ /\b#{title}\b/}
         _a.missing mail.subject, href: href
@@ -72,10 +71,8 @@ end
 # produce JSON output of reports
 _json do
   _ reports do |mail|
-    mbox = mail.date.strftime("#{MBOX}/%Y%m.mbox/")
-
     _subject mail.subject
-    _link mbox + URI.escape('<' + mail.message_id + '>')
+    _link THREAD + URI.escape('<' + mail.message_id + '>')
 
     subject = mail.subject.downcase
     _missing missing.any? {|title| subject =~ /\b#{title}\b/}

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

Mime
View raw message