Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: johnbent@lanl.gov (John Bent)
Subject: [sup-talk] can't remove draft label
Date: Thu, 20 Mar 2008 16:37:42 -0600	[thread overview]
Message-ID: <1206052546-sup-3667@tangerine.lanl.gov> (raw)
In-Reply-To: <1202013739-sup-550@south>

Excerpts from William Morgan's message of Sat Feb 02 21:44:41 -0700 2008:
> I'm not sure why that label would be there, but you can perform some
> index surgery to remove it.
> 
> $ sh devel/console.sh 
> irb(main):001:0>
> r=Index.ferret.search("message_id:1201759596-sup-4274 at tangerine.lanl.gov")
> => #<struct Ferret::Search::TopDocs total_hits=1, hits=[#<struct
> Ferret::Search::Hit doc=92571, score=10.82630443573>],
> max_score=10.82630443573, searcher=#<Ferret::Search::Searcher:0xb740dff0>>
> irb(main):002:0> id=r.hits.first.doc
> => 92571
> irb(main):003:0> m = Index.build_message id
> [...]
> irb(main):004:0> m.remove_label :draft
> => true
> irb(main):005:0> m.save Index
> => false
> irb(main):006:0> exit
> 
Two months later and I finally did this... :)  It worked great.  The only
slight problem was that somehow all 25 messages in that thread were falsely
labeled so I had to repeat the above 25 times.  Although I did eventually
realize that the console accepted semicolons so I combined them into a 
single line and then just did arrow up 25 times so it was pretty fast.

Thanks!

John


      reply	other threads:[~2008-03-20 22:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-30 18:05 John Bent
2008-01-31  4:36 ` Christopher Warrington
2008-01-31  6:08   ` John Bent
2008-02-03  4:44     ` William Morgan
2008-03-20 22:37       ` John Bent [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1206052546-sup-3667@tangerine.lanl.gov \
    --to=johnbent@lanl.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox