Fix agressive be-handle-mail.Message._strip_footer().
authorW. Trevor King <wking@drexel.edu>
Sat, 26 Sep 2009 16:45:27 +0000 (12:45 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 26 Sep 2009 16:45:27 +0000 (12:45 -0400)
It had been eating the last line of the message (which wasn't a
problem when I had a blank line before the footer, but was when I had
neither footer nor trailing blank line).

interfaces/email/interactive/be-handle-mail

index bb2cc2876934f253326ac2047975f15498be89d2..e8492bb2d80833433ec71bbce7ed0d1d7dc814da 100755 (executable)
@@ -483,6 +483,7 @@ class Message (object):
         for i,line in enumerate(body_lines):
             if line.startswith(BREAK):
                 break
+            i += 1 # increment past the current valid line.
         return u"\n".join(body_lines[:i]).strip()
     def parse(self):
         """