summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2016-04-14 15:25:10 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2016-04-14 15:25:10 (GMT)
commit9fe6803bfc5618e1e2ba8e44ec830115e29e3075 (patch)
treec76c55010776295fb34c8c16491b6e4fbe6a1b1a
parentd7d78c74914257c5e73ec219069053338ac54d70 (diff)
downloadmail2redmine-9fe6803bfc5618e1e2ba8e44ec830115e29e3075.zip
mail2redmine-9fe6803bfc5618e1e2ba8e44ec830115e29e3075.tar.gz
mail2redmine-9fe6803bfc5618e1e2ba8e44ec830115e29e3075.tar.bz2
fix module and parameter names colision
-rw-r--r--mail2redmine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail2redmine.py b/mail2redmine.py
index 9582c0f..3f4b3c1 100644
--- a/mail2redmine.py
+++ b/mail2redmine.py
@@ -58,8 +58,8 @@ def send_mail(to, subject, message):
s.quit()
-def create_ticket(email):
- mail = email.message_from_string(email)
+def create_ticket(mail):
+ mail = email.message_from_string(mail)
r = Redmine(REDMINE_URL, key=REDMINE_KEY)
from_name, from_email = email.utils.parseaddr(mail['From'])
users = r.user.filter(name=from_email)