Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: Ico Doornekamp <sup@zevv.nl>
To: sup-talk <sup-talk@rubyforge.org>
Subject: [sup-talk] Non-english outlook block quote regexp
Date: Wed, 26 Jan 2011 14:12:03 +0100	[thread overview]
Message-ID: <1296046853-sup-2234@pruts.nl> (raw)

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


             reply	other threads:[~2011-01-26 13:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 13:12 Ico Doornekamp [this message]
2011-01-27 13:29 ` Tero Tilus
2011-01-27 15:00   ` Michael Stapelberg
2011-01-28  9:24     ` Ico Doornekamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1296046853-sup-2234@pruts.nl \
    --to=sup@zevv.nl \
    --cc=sup-talk@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox