Make PollManager add the 'sent' label if the source it's collecting
messages from is the configured sent source. Remove the sent label
from SentLoader, which makes it even less 'special.'
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Redwood::log "error loading messages from #{source}: #{source.error.message}"
return
end
-
+
+ labels << :sent if source.uri.eql?($config[:sent_source])
labels.each { |l| LabelManager << l }
labels = labels + (source.archived? ? [] : [:inbox])
def uri; 'sup://sent' end
def id; 9998; end
- def labels; [:sent, :inbox]; end
+ def labels; [:inbox]; end
end
end