Handle rtime being Null when writing to Maildir

fixes #2
debian #401290
This commit is contained in:
John Goerzen 2006-12-02 21:54:26 +01:00
parent c31f60f8df
commit aa019172cb

View File

@ -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))