commit 08086ffecb42f475243728227c4d7ce9917bef72
parent 829ba5dc87657cd7f097f766ae4bc1d7ff3879c8
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Fri, 14 Sep 2007 03:04:04 +0000
better top-posting detection
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@572 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/modes/edit-message-mode.rb b/lib/sup/modes/edit-message-mode.rb
@@ -204,7 +204,7 @@ protected
def send_message
return false if !edited? && !BufferManager.ask_yes_or_no("Message unedited. Really send?")
return false if $config[:confirm_no_attachments] && mentions_attachments? && @attachments.size == 0 && !BufferManager.ask_yes_or_no("You haven't added any attachments. Really send?")#" stupid ruby-mode
- return false if $config[:confirm_top_posting] && top_posting? && !BufferManager.ask_yes_or_no("You're top posting. That makes you a bad person. Really send?") #" stupid ruby-mode
+ return false if $config[:confirm_top_posting] && top_posting? && !BufferManager.ask_yes_or_no("You're top-posting. That makes you a bad person. Really send?") #" stupid ruby-mode
date = Time.now
from_email =
@@ -301,7 +301,7 @@ private
end
def top_posting?
- @body.join =~ /(\S+)\s*Excerpts from /
+ @body.join =~ /(\S+)\s*Excerpts from.*\n(>.*\n)+\s*\Z/
end
def sig_lines