From: Andy Spencer Date: Fri, 22 Jun 2012 20:56:00 +0000 (+0000) Subject: Update mail times and formatting X-Git-Url: http://pileus.org/git/?p=~andy%2Frhawk;a=commitdiff_plain;h=34b5581817cf329c62936dc5e3ea4080cc125d6e Update mail times and formatting --- diff --git a/email.awk b/email.awk index cf9c102..e3080aa 100644 --- a/email.awk +++ b/email.awk @@ -6,15 +6,15 @@ END { json_save("var/mail.txt", mail_enable) } # Email notifications BEGIN { - mail_hist = 2*60 # If the users has not spoken withn mail_before before - mail_before = 2*60 # someone mentions their name and does not reply within - mail_after = 2*60 # mail_after seconds, email them hist seconds of the backlog + mail_hist = 5*60 # If the users has not spoken withn mail_before before + mail_before = 5*60 # someone mentions their name and does not reply within + mail_after = 5*60 # mail_after seconds, email them hist seconds of the backlog mail_from = NICK "" mail_err = "If you received this message in error,\n" \ "someone in #rhnoise is being a jerk" - for (_user in mail_enable) + for (_user in mail_enable) debug("watching " mail_enable[_user] " for " _user) } @@ -43,7 +43,7 @@ function mail_prep(user, chan, for (si = 1; si <= sn; si++) { sec = ss[si] mn = length(mail_log[chan][sec]) - for (mi = 0; mi < mn; mi++) { + for (mi = 0; mi < mn; mi++) { msg = mail_log[chan][sec][mi] if (sec > mail_ready[user][chan] - mail_hist) { if (msg ~ user)