fix module and input string names clash
parent
544019cdb0
commit
61bed4a4bc
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue