From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] How to search for and mass tag thousands of emails?
Date: Fri, 07 Mar 2008 07:52:40 -0800 [thread overview]
Message-ID: <1204904692-sup-7926@south> (raw)
In-Reply-To: <15885391.post@talk.nabble.com>
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>
prev parent reply other threads:[~2008-03-07 15:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 23:21 rodneyk
2008-03-07 7:15 ` Manish Sapariya
2008-03-07 15:52 ` William Morgan [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=1204904692-sup-7926@south \
--to=wmorgan-sup@masanjin.net \
/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