commit f26d4052c5bf5f327239e8555f4167a2cfa0e00f
parent eea92f2e7d5acc405c2f659c0619514dddba7e8c
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Wed, 30 Sep 2009 13:43:22 -0400
don't autoload message from source for snippet
This was actually causing some weird deadlocks with the Xapian backend, I
believe because it actually represents the snippet as nil in the index index of
"", like Ferret. Either way, since loading from the source is an expensive
operation, it should happen automatically as little as possible.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/message.rb b/lib/sup/message.rb
@@ -161,7 +161,7 @@ class Message
@dirty = true if @refs.delete ref
end
- def snippet; @snippet || (chunks && @snippet); end
+ attr_reader :snippet
def is_list_message?; !@list_address.nil?; end
def is_draft?; @source.is_a? DraftLoader; end
def draft_filename