lib/sup/message_chunks.rb in sup-0.19.0 vs lib/sup/message_chunks.rb in sup-0.20.0
- old
+ new
@@ -162,10 +162,11 @@
## an attachment is exapndable if we've managed to decode it into
## something we can display inline. otherwise, it's viewable.
def inlineable?; false end
def expandable?; !viewable? end
+ def indexable?; expandable? end
def initial_state; :open end
def viewable?; @lines.nil? end
def view_default! path
case RbConfig::CONFIG['arch']
when /darwin/
@@ -227,10 +228,11 @@
end
def inlineable?; true end
def quotable?; true end
def expandable?; false end
+ def indexable?; true end
def viewable?; false end
def color; :text_color end
end
class Quote
@@ -240,10 +242,11 @@
end
def inlineable?; @lines.length == 1 end
def quotable?; true end
def expandable?; !inlineable? end
+ def indexable?; expandable? end
def viewable?; false end
def patina_color; :quote_patina_color end
def patina_text; "(#{lines.length} quoted lines)" end
def color; :quote_color end
@@ -256,10 +259,11 @@
end
def inlineable?; @lines.length == 1 end
def quotable?; false end
def expandable?; !inlineable? end
+ def indexable?; expandable? end
def viewable?; false end
def patina_color; :sig_patina_color end
def patina_text; "(#{lines.length}-line signature)" end
def color; :sig_color end
@@ -289,10 +293,11 @@
end
def inlineable?; false end
def quotable?; false end
def expandable?; true end
+ def indexable?; true end
def initial_state; :closed end
def viewable?; false end
def patina_color; :generic_notice_patina_color end
def patina_text; "Begin enclosed message sent on #{@date}" end
@@ -320,9 +325,10 @@
def color; patina_color end
def inlineable?; false end
def quotable?; false end
def expandable?; !@lines.empty? end
+ def indexable?; false end
def viewable?; false end
end
end
end