l.Save()
l.Unlock()
-def exterminate_this_guy(bad_guy):
+def exterminate_this_guy(bad_guy, dico=None):
"""Trouve les MLs auxquelles est abonné ``bad_guy`` et l'en supprime en demandant confirmation."""
- mls = get_mls_from_mail(bad_guy)
+ mls = get_mls_from_mail(bad_guy, dico)
mls.sort()
if mls:
print("Exterminating %s from %s" % (bad_guy, ", ".join(mls)))
if isdelivery:
results = get_context_and_mail(mail)
if results:
- [result] = results
+ if len(results) > 1:
+ print "hmm, strange, plusieurs matchs :"
+ print results
+ result = results[0]
bad_guys.append(result)
else:
ans = raw_input("Headers not found. Show mail ? ")