Handle rtime being Null when writing to Maildir
fixes #2 debian #401290
This commit is contained in:
parent
c31f60f8df
commit
aa019172cb
@ -170,6 +170,7 @@ class MaildirFolder(BaseFolder):
|
||||
file = open(os.path.join(tmpdir, tmpmessagename), "wt")
|
||||
file.write(content)
|
||||
file.close()
|
||||
if rtime != None:
|
||||
os.utime(os.path.join(tmpdir,tmpmessagename), (rtime,rtime))
|
||||
ui.debug('maildir', 'savemessage: moving from %s to %s' % \
|
||||
(tmpmessagename, messagename))
|
||||
|
Loading…
Reference in New Issue
Block a user