Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk]  How to search for and mass tag thousands of emails?
@ 2008-03-06 23:21 rodneyk
  2008-03-07  7:15 ` Manish Sapariya
  2008-03-07 15:52 ` William Morgan
  0 siblings, 2 replies; 3+ messages in thread
From: rodneyk @ 2008-03-06 23:21 UTC (permalink / raw)



Hi,
I just started using sup, after years of muttng I must say I like it a lot!
I have a giant inbox mbox with thousands of emails which I want to
starting using in sup. I can easily search and tag to categorize them all,
however, I can only tag the current screen full of search results. Is there
a way to tag all the search results, and not just the results on screen?

Being able to import existing mail and quickly organize is probably
something
most new users will need to do. I also checked out sup from the git repo,
and can run
devel/console, so if this mass tagging can only be done manually, I can do
it, as I'm
pretty proficient with ruby.

--Rodney
-- 
View this message in context: http://www.nabble.com/How-to-search-for-and-mass-tag-thousands-of-emails--tp15885391p15885391.html
Sent from the SUP Talk mailing list archive at Nabble.com.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] How to search for and mass tag thousands of emails?
  2008-03-06 23:21 [sup-talk] How to search for and mass tag thousands of emails? rodneyk
@ 2008-03-07  7:15 ` Manish Sapariya
  2008-03-07 15:52 ` William Morgan
  1 sibling, 0 replies; 3+ messages in thread
From: Manish Sapariya @ 2008-03-07  7:15 UTC (permalink / raw)


I did it by writing before-add-message.rb hook and resyncing all
messages. The before-add-message hook allows you to add delete
labels before it indexes the message.

Hope this helps.
Regards,
Manish

Excerpts from rodneyk's message of Fri Mar 07 04:51:18 +0530 2008:
> 
> Hi,
> I just started using sup, after years of muttng I must say I like it a lot!
> I have a giant inbox mbox with thousands of emails which I want to
> starting using in sup. I can easily search and tag to categorize them all,
> however, I can only tag the current screen full of search results. Is there
> a way to tag all the search results, and not just the results on screen?
> 
> Being able to import existing mail and quickly organize is probably
> something
> most new users will need to do. I also checked out sup from the git repo,
> and can run
> devel/console, so if this mass tagging can only be done manually, I can do
> it, as I'm
> pretty proficient with ruby.
> 
> --Rodney

-- 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sup-talk] How to search for and mass tag thousands of emails?
  2008-03-06 23:21 [sup-talk] How to search for and mass tag thousands of emails? rodneyk
  2008-03-07  7:15 ` Manish Sapariya
@ 2008-03-07 15:52 ` William Morgan
  1 sibling, 0 replies; 3+ messages in thread
From: William Morgan @ 2008-03-07 15:52 UTC (permalink / raw)


Reformatted excerpts from rodneyk's message of 2008-03-06:
> I have a giant inbox mbox with thousands of emails which I want to
> starting using in sup. I can easily search and tag to categorize them
> all, however, I can only tag the current screen full of search
> results. Is there a way to tag all the search results, and not just
> the results on screen?

You could do it through the GUI, but that probably won't scale well.
A better approach is to use the before-add-hook as Manish said, or to
use the development console to modify the index directly.

Feed devel/console.sh something like (untested):

  Index.index.search_each("potato") do |id, score|
    m = Index.build_message(id)
    puts "[#{id}] [#{m.from}] [#{m.subj}]"
    m.add_label :potato
    m.save! Index
  end

But there's not really much of a point to labeling the results of a
(simple) search. Labels are good for things that are hard to search for;
for everything else, just trust in the search!

> Being able to import existing mail and quickly organize is probably
> something most new users will need to do.

Sup supports auto-labeling folders out of the box, which I think is the
most common transition case.

> I also checked out sup from the git repo, and can run devel/console,
> so if this mass tagging can only be done manually, I can do it, as I'm
> pretty proficient with ruby.

The big advantaage of the git repo (the next branch, at least) right now
is that adding labels to a message is much faster.

-- 
William <wmorgan-sup at masanjin.net>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-07 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-06 23:21 [sup-talk] How to search for and mass tag thousands of emails? rodneyk
2008-03-07  7:15 ` Manish Sapariya
2008-03-07 15:52 ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox