/offlineimap/head: changeset 448
Fixed the regular expression that fixes line endings to make sure to deal with \n\n properly.
This commit is contained in:
parent
2288c0d37a
commit
0373766d70
@ -2,6 +2,8 @@ offlineimap (3.99.14) unstable; urgency=low
|
||||
|
||||
* Added the ability to use the top level of a Maildir as folder named
|
||||
".". Useful for generating Maildir trees for a Courier server.
|
||||
* Fixed the regular expression that fixes line endings to make sure to
|
||||
deal with \n\n properly.
|
||||
|
||||
-- John Goerzen <jgoerzen@complete.org> Thu, 17 Apr 2003 21:13:27 -0500
|
||||
|
||||
|
@ -174,7 +174,7 @@ class IMAPFolder(BaseFolder):
|
||||
# but some IMAP servers nonetheless choke on 1902.
|
||||
date = imaplib.Time2Internaldate(time.localtime())
|
||||
|
||||
content = re.sub("([^\r])\n", "\\1\r\n", content)
|
||||
content = re.sub("(?<!\r)\n", "\r\n", content)
|
||||
|
||||
(headername, headervalue) = self.savemessage_getnewheader(content)
|
||||
content = self.savemessage_addheader(content, headername,
|
||||
|
Loading…
Reference in New Issue
Block a user