summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2016-05-03 23:00:28 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2016-05-04 07:34:51 (GMT)
commit61bed4a4bca47395b5f3498811d5fb0a05ba6f74 (patch)
treed2463137352b725ac0d4e580c0be08bd0da0ff7e
parent544019cdb0e95032d707cd1609b92be5f7717025 (diff)
downloadmail2redmine-61bed4a4bca47395b5f3498811d5fb0a05ba6f74.zip
mail2redmine-61bed4a4bca47395b5f3498811d5fb0a05ba6f74.tar.gz
mail2redmine-61bed4a4bca47395b5f3498811d5fb0a05ba6f74.tar.bz2
fix module and input string names clash
-rw-r--r--mail2redmine.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mail2redmine.py b/mail2redmine.py
index ad58cd2..0af309f 100644
--- a/mail2redmine.py
+++ b/mail2redmine.py
@@ -104,14 +104,14 @@ L'équipe Entr'ouvert"""
if __name__ == '__main__':
- email = sys.stdin.read()
+ mail = sys.stdin.read()
mail_dumps_dir = '/var/tmp'
if not os.path.exists(mail_dumps_dir):
os.mkdir(mail_dumps_dir)
filename = os.path.join(mail_dumps_dir, '%s.mail' % uuid.uuid4())
with open(filename, 'w') as mail_dump:
- mail_dump.write(email)
+ mail_dump.write(mail)
try:
- create_ticket(email)
+ create_ticket(mail)
except:
exim = subprocess.Popen(['/usr/sbin/exim', FALLBACK_EMAIL], stdin=file(filename))