commit:3686c61b2502a31cb3ee825025da8c957527dd59
author:Chip Black
committer:Chip Black
date:Wed Mar 4 21:53:23 2015 -0600
parents:bbb9ded0a6c0eb3c076ca744b152d56f922fc1c9
Make daily-digest work for more users than just me
diff --git a/aux/bin/daily-digest b/aux/bin/daily-digest
line changes: +6/-1
index 18ae52b..64f0a99
--- a/aux/bin/daily-digest
+++ b/aux/bin/daily-digest
@@ -67,4 +67,9 @@ EMAIL
     )->send;
 }
 
-send_email('bytex64');
+# TODO: Be smarter about this.  Maybe maintain a list of users with email addresses?
+opendir USERS, Blerg::Database::configuration->{data_path};
+while (my $user = readdir USERS) {
+    next if $user =~ /^\./;
+    send_email($user);
+}