/offlineimap/head: changeset 155

Handle \r\n line endings in Maildirs.
This commit is contained in:
jgoerzen 2002-07-22 06:29:26 +01:00
parent 80e04a2874
commit 0361dd4783
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,8 @@
offlineimap (3.0.4) unstable; urgency=low offlineimap (3.0.4) unstable; urgency=low
* Placeholder * When uploading messages from a Maildir, now convert \r\n to \n in case
the message is stored weirdly. That way, everything is uniform.
Fixes [complete.org #11].
-- John Goerzen <jgoerzen@complete.org> Sun, 21 Jul 2002 16:09:42 -0500 -- John Goerzen <jgoerzen@complete.org> Sun, 21 Jul 2002 16:09:42 -0500

View File

@ -130,7 +130,7 @@ class MaildirFolder(BaseFolder):
file = open(filename, 'rt') file = open(filename, 'rt')
retval = file.read() retval = file.read()
file.close() file.close()
return retval return retval.replace("\r\n", "\n")
def savemessage(self, uid, content, flags): def savemessage(self, uid, content, flags):
if uid < 0: if uid < 0: