You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/08/19 11:16:02 UTC

[incubator-ponymail-foal] branch master updated: Add a note about why conversion is disabled by default.

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 3b648ba  Add a note about why conversion is disabled by default.
3b648ba is described below

commit 3b648ba76ea9e5093c4a23448ca3846422b52a79
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Aug 19 13:15:48 2020 +0200

    Add a note about why conversion is disabled by default.
---
 tools/archiver.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/archiver.py b/tools/archiver.py
index 8b0d98b..2899cbd 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -192,6 +192,11 @@ class Body:
         return self.string.encode(charset, errors=errors)
 
     def unflow(self, convert_lf=False):
+        """Unflows text of type format=flowed.
+           By default, lines ending in LF (mbox imports) are not converted to CRLF, and thus
+           not unflowed. This is to be consistent with previous versions of Pony Mail, and
+           can be enabled for any new installations that that not reimaging their database.
+           """
         if self.string:
             if self.flowed:
                 # Convert lone LF to CRLF if found