sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 1b818eafa902e485d279329c3c5aeab632007e0a
parent cfb6edaecf8ef36fa46eca1184de9662f6cac2b8
Author: Steven Lawrance <stl@redhat.com>
Date:   Wed, 23 Mar 2011 10:47:08 +1000

Fix misinterpretation of quoted text from Zimbra clients

Zimbra uses the block quote message together with "normal" quoted lines,
we should avoid treating the entire block as a quote.

Diffstat:
M lib/sup/message.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -691,7 +691,7 @@ private
           newstate = :quote
         elsif line =~ SIG_PATTERN && (lines.length - i) < MAX_SIG_DISTANCE && !lines[(i+1)..-1].index { |l| l =~ /^-- $/ }
           newstate = :sig
-        elsif line =~ BLOCK_QUOTE_PATTERN
+        elsif line =~ BLOCK_QUOTE_PATTERN && nextline !~ QUOTE_PATTERN
           newstate = :block_quote
         end