This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 31a90a2  Id is a built-id
31a90a2 is described below

commit 31a90a2394362de59544ef089117123604006511
Author: Sebb <[email protected]>
AuthorDate: Sat Jul 4 22:24:40 2020 +0100

    Id is a built-id
---
 secmail.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/secmail.py b/secmail.py
index 2c78e32..7389d8a 100644
--- a/secmail.py
+++ b/secmail.py
@@ -151,8 +151,8 @@ def analyze(msg):
 def detach(msg):
   # quick exit if we have seen this entry before
   if not msg['message-id']: return
-  id = md5(msg['message-id']).hexdigest()
-  if os.path.exists(os.path.join('tally',id)): return
+  mid = md5(msg['message-id']).hexdigest()
+  if os.path.exists(os.path.join('tally',mid)): return
 
   # known spammers
   if '<[email protected]>' in msg['from']:
@@ -280,7 +280,7 @@ def detach(msg):
   except:
     pass
 
-  tally = os.path.join('tally',id)
+  tally = os.path.join('tally',mid)
   fh=open(tally,'w')
   fh.write(summary + "\n")
   fh.close()

Reply via email to