# Maildir folder support
-# Copyright (C) 2002 John Goerzen
+# Copyright (C) 2002 - 2006 John Goerzen
# <jgoerzen@complete.org>
#
# This program is free software; you can redistribute it and/or modify
file = open(os.path.join(tmpdir, tmpmessagename), "wt")
file.write(content)
file.close()
- os.utime(os.path.join(tmpdir,tmpmessagename), (rtime,rtime))
+ if rtime != None:
+ os.utime(os.path.join(tmpdir,tmpmessagename), (rtime,rtime))
ui.debug('maildir', 'savemessage: moving from %s to %s' % \
(tmpmessagename, messagename))
os.link(os.path.join(tmpdir, tmpmessagename),