This is an automated email from the ASF dual-hosted git repository. curcuru pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit 2e8905953ef870af1a9c3bef5b25e5036940d373 Author: Shane Curcuru <[email protected]> AuthorDate: Sun Feb 16 21:24:17 2020 -0500 Ensure we output the id too --- tools/mboxhdr2csv.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mboxhdr2csv.rb b/tools/mboxhdr2csv.rb index e0c7bcd..05c9990 100644 --- a/tools/mboxhdr2csv.rb +++ b/tools/mboxhdr2csv.rb @@ -217,7 +217,7 @@ module MailUtils emails[MAILS].sort_by! { |email| email[DATE] } emails[MAILCOUNT] = Hash.new {|h, k| h[k] = 0 } emails[MAILS].each do |mail| - emails[MAILCOUNT][mail[WHO]] += 1 + emails[MAILCOUNT]["#{mail[WHO]} (#{mail[AVAILID]})"] += 1 end emails[MAILCOUNT] = emails[MAILCOUNT].sort_by { |k,v| -v}.to_h
