On 31Dec2017 08:29, Cameron Simpson <c...@cskk.id.au> wrote:
On 29Dec2017 16:04, todd zullinger <t...@pobox.com> wrote:
Cameron Simpson wrote:
The tail of your message from this point seems to be missing.

Perhaps you're reading this from an mbox and the leading
From_ line was not escaped Cameron?  It's present in the
original mesage:
[...]
Nice catch. I am. This points to a bug in my mailfiler. I'll go chase it.

Yep:

 diff --git a/lib/python/cs/app/mailfiler.py b/lib/python/cs/app/mailfiler.py
 --- a/lib/python/cs/app/mailfiler.py
 +++ b/lib/python/cs/app/mailfiler.py
 @@ -505,7 +505,7 @@ def save_to_folderpath(folderpath, M, me
      if len(x_status) > 0:
        M['X-Status'] = x_status
      with LogExceptions():
 -      text = M.as_string(True)
 +      text = M.as_string(True).replace('\nFrom ', '\n>From ')
      with open(folderpath, "a") as mboxfp:
        mboxfp.write(text)
      info("    OK >> %s" % (shortpath(folderpath)))

Applied and installed. Thanks for the head up!

Cheers,
Cameron Simpson <c...@cskk.id.au> (formerly c...@zip.com.au)

Reply via email to