[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sup-talk] Non-english outlook block quote regexp



Hi,

I'm unfortunate enough to have regular correspondence with Dutch
outlook-users, which is mostly annoying because of the way outlook
handles quoting of original messages.

I found that Sup is able to handle block quotes from English outlook
users where the regexp

  ^-----\s*Original Message\s*----+$

is used to find out where the quote starts. This fails unfortunately for
other languages, because the 'Original Mesage' text seems to be
localized. In dutch for example, the text 'Oorspronkelik Bericht' is
used instead.

Would it be an impovement to change this to a more generic regexp to
match more languages. I was not able to find a complete list of possible
strings used here, so some heuristics would be necassery.

Any opinions on matching the exact number of hashes, two uppercase words
and again the exact number of hashes, something like:

  ^-----\s*([A-Z][a-z]+\s*){2}----+$

Would that be safe to do ?



-- 
:wq
^X^Cy^K^X^C^C^C^C
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk