[Rt-commit] rt branch, 4.0/stricter-outlook-folding, updated. rt-4.0.4-147-g1c2b685

Alex Vandiver alexmv at bestpractical.com
Fri Dec 23 17:46:05 EST 2011


The branch, 4.0/stricter-outlook-folding has been updated
       via  1c2b68522027c9996a53d55e02bfa0faad79ac7a (commit)
      from  05ac4dd87b780cac10dbb87d618995952d5a7f0e (commit)

Summary of changes:
 share/html/Ticket/Elements/ShowMessageStanza |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 1c2b68522027c9996a53d55e02bfa0faad79ac7a
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Dec 23 17:40:19 2011 -0500

    Enforce that the "Original message" words are at least 5 characters long
    
    This heuristic works around false positives of the form:
    
          A        B
        ----- vs -----

diff --git a/share/html/Ticket/Elements/ShowMessageStanza b/share/html/Ticket/Elements/ShowMessageStanza
index feaf213..93be7c5 100755
--- a/share/html/Ticket/Elements/ShowMessageStanza
+++ b/share/html/Ticket/Elements/ShowMessageStanza
@@ -105,7 +105,8 @@ AGAIN: foreach ( ; $i < @$Message; $i++ ) {
                                                         # don't trigger on PGP signed message or signature blocks
                                             (?!(?:BEGIN|END)\s+PGP)
                                             \w          # at least one word character
-                                            [\w\s]+?    # words, loose to get different languages
+                                            [\w\s]{4,}? # the rest of the word(s), totalling at least 5 characters,
+                                                        #    loose to get different languages
                                             \s*         # whitespace varies between Outlook versions
                                             -{3,}       # at least three hyphens again
                                           |

-----------------------------------------------------------------------


More information about the Rt-commit mailing list