From: wmorgan Date: Sat, 6 Jan 2007 00:17:24 +0000 (+0000) Subject: inform labelmanager of any new labels X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=41aa15ab5ca77c1014513211f03c95e51509a0fb;p=sup inform labelmanager of any new labels git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@198 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/bin/sup-import b/bin/sup-import index 3422317..0ac9a5f 100644 --- a/bin/sup-import +++ b/bin/sup-import @@ -183,6 +183,7 @@ begin m.remove_label :unread if m.source_marked_read? unless force_read puts "# message at #{offset}, labels: #{labels * ', '}" if verbose unless rebuild + labels.each { |l| Redwood::LabelManager << l } if (rebuild || force_rebuild) && (docid, entry = index.load_entry_for_id(m.id)) && entry if force_rebuild || entry[:source_info].to_i != offset