[tor-commits] [doctor/master] Add address:or_port to subject of fingerprint changing emails

atagar at torproject.org atagar at torproject.org
Thu Jan 18 17:39:36 UTC 2018


commit 3ba00eed8820be005b9b3699bbe54fedcce25d87
Author: Damian Johnson <atagar at torproject.org>
Date:   Thu Jan 18 09:13:57 2018 -0800

    Add address:or_port to subject of fingerprint changing emails
    
    Requested by nusenu.
---
 fingerprint_change_checker.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/fingerprint_change_checker.py b/fingerprint_change_checker.py
index b1791d6..284dac9 100755
--- a/fingerprint_change_checker.py
+++ b/fingerprint_change_checker.py
@@ -89,7 +89,12 @@ def main():
 
       body += "\n"
 
-    util.send(EMAIL_SUBJECT, body = body, to = ['bad-relays at lists.torproject.org', 'atagar at torproject.org'])
+    subject = EMAIL_SUBJECT
+
+    if len(alarm_for) == 1:
+      subject += ' (%s:%s') % alarm_for[0]
+
+    util.send(subject, body = body, to = ['bad-relays at lists.torproject.org', 'atagar at torproject.org'])
 
     # register that we've notified for these
 





More information about the tor-commits mailing list