[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] Programmatically removing tags (:inbox)



Excerpts from Alexander Klink's message of 2014-04-24 15:17:56 +0200:
> Hi Matthieu,
> 
> Excerpts from Matthieu Rakotojaona's message of 2014-04-23 20:11:28 +0200:
> > Excerpts from Alexander Klink's message of 2014-04-23 17:42:40 +0200:
> > > I am trying to archive all my existing mails in order to make a nicer
> > > workflow for myself (sort of a GTD thing with reading mails, either
> > > acting directly or tagging them with 'todo' or 'hold' depending on whether I
> > > have to do something or am waiting for someone to reply).
> > 
> > bin/sup-tweak-labels was made for this :)
> 
> Unfortunately, that fails completely for me:
> 
> $ sup-tweak-labels -r inbox -v --all-sources
> [2014-04-24 15:15:50 +0200] WARNING: can't find character set by using locale, defaulting to utf-8
> Found 149439 documents across 453 sources. Scanning...
> 1-773309-5rGbUSNrGbUS9qb@example.com: {inbox,unread,spam} => {unread,spam}
> [2014-04-24 15:15:50 +0200] Flushing Xapian updates to disk. This may take a while...
> /home/alech/.rvm/gems/ruby-1.9.3-p194/gems/sup-0.17.0/lib/sup/index.rb:141:in `update_message_state': undefined method `[]' for #<Redwood::Message:0x000000029ebf68> (NoMethodError)

Could you check if #295 [0] solves this for you? --tweak-labels wasn't
updated for the latest Index api changes. You have to specify the
--sync-back option if you want message flags to be synced back to
maildir, this _ignores_ any source specific sync_back settings so use
sup-tweak-labels on only one source at the time if you need more fine
grained control.

Note that even though you do the changes in the console as suggested in
the earlier mails the index list in the open sup won't be updated before
you restart sup.

- gaute

[0] https://github.com/sup-heliotrope/sup/pull/295