Ticket #154: email2trac.diff.patch
File email2trac.diff.patch, 647 bytes (added by hju@…, 15 years ago) |
---|
-
email2trac
old new 823 823 """ 824 824 body = [] 825 825 for line in text.splitlines(): 826 if line == '-- ': 826 if line.find('------')<> -1 or line.find('______')<> -1: 827 # .find returns a true value (-1) if substring is not found 827 828 break 828 829 body.append(line) 829 830 … … 837 838 for line in text.splitlines(): 838 839 if line.startswith(self.EMAIL_QUOTE): 839 840 continue 841 # missing: other quoting-forms 842 if re.search("----\s?\w+",line): 843 # quotes are behind message 844 break 840 845 body.append(line) 841 846 842 847 return ('\n'.join(body))