* [sup-talk] Gmail Labels Sidebar
@ 2009-06-09 0:37 Andrei Thorp
2009-06-09 1:05 ` Ben Walton
0 siblings, 1 reply; 15+ messages in thread
From: Andrei Thorp @ 2009-06-09 0:37 UTC (permalink / raw)
Hello there,
As some of you probably remember, there is a handy sidebar in Gmail
which lists your tags and how many e-mails you have in each one.
What I do with this is have e-mail skip my inbox, get a mailing list
tag applied to it, and then get archived, at which point it shows up
in my labels sidebar. I have my "important" mail in my inbox, and the
mailing lists with updates are clearly marked.
Any suggestions as to what sup users do to have this kind of workflow?
It's preferable for me because it keeps things tidy, I can see the new
mails, and I get >50 e-mails per day. It'd be a shame to have them all
fall into my inbox and spam it up, which I prefer to keep clean for
"needs to be taken care of immediately" type e-mail.
Thanks,
-AT
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 0:37 [sup-talk] Gmail Labels Sidebar Andrei Thorp
@ 2009-06-09 1:05 ` Ben Walton
2009-06-09 2:14 ` Edward Z. Yang
0 siblings, 1 reply; 15+ messages in thread
From: Ben Walton @ 2009-06-09 1:05 UTC (permalink / raw)
Excerpts from Andrei Thorp's message of Mon Jun 08 20:37:53 -0400 2009:
> Any suggestions as to what sup users do to have this kind of workflow?
> It's preferable for me because it keeps things tidy, I can see the new
> mails, and I get >50 e-mails per day. It'd be a shame to have them all
> fall into my inbox and spam it up, which I prefer to keep clean for
> "needs to be taken care of immediately" type e-mail.
Use the Label view. Hit L followed by enter.
HTH
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090608/563b1ece/attachment.bin>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 1:05 ` Ben Walton
@ 2009-06-09 2:14 ` Edward Z. Yang
2009-06-09 2:24 ` Ben Walton
0 siblings, 1 reply; 15+ messages in thread
From: Edward Z. Yang @ 2009-06-09 2:14 UTC (permalink / raw)
Excerpts from Ben Walton's message of Mon Jun 08 21:05:06 -0400 2009:
> Use the Label view. Hit L followed by enter.
I think what he's looking for is the information about his labels
to always be present, as opposed to something he has to remind
himself to check.
Cheers,
Edward
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 2:14 ` Edward Z. Yang
@ 2009-06-09 2:24 ` Ben Walton
2009-06-09 13:33 ` Andrei Thorp
2009-06-12 18:56 ` William Morgan
0 siblings, 2 replies; 15+ messages in thread
From: Ben Walton @ 2009-06-09 2:24 UTC (permalink / raw)
Excerpts from Edward Z. Yang's message of Mon Jun 08 22:14:30 -0400 2009:
> I think what he's looking for is the information about his labels
> to always be present, as opposed to something he has to remind
> himself to check.
So something similar to the folder view hack/patch for mutt? That
doesn't exist in sup. The closest you get is having the 'All Labels'
buffer open. You can jump to a view of all messages with that label
by hitting enter on the selected label. Moving back to it is simple
with the buffer rolling keys. I believe that some people operate from
this buffer instead of the inbox one. Not my cup of tea though.
HTH.
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090608/a9e55e8a/attachment.bin>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 2:24 ` Ben Walton
@ 2009-06-09 13:33 ` Andrei Thorp
2009-06-09 13:42 ` Andrei Thorp
2009-06-09 14:11 ` Marcus Williams
2009-06-12 18:56 ` William Morgan
1 sibling, 2 replies; 15+ messages in thread
From: Andrei Thorp @ 2009-06-09 13:33 UTC (permalink / raw)
Yeah, I guess that makes sense. It is a rather nice interface
actually, I didn't really think about it for some reason.
And I guess there are probably some configuration options to skip
inbox and attach labels to stuff matching stuff automatically, with
procmail. I think I saw a page about that somewhere.
I guess there is probably a way to programatically access this kind of
information also, but are there any command line tools I can use to
query for this kind of stuff? If so, I can hack my window manager's
panels to display the mails in these labels, which would be pretty
rad. (My WM is "Awesome" btw -- that's the name.)
Any suggestions for quickly getting this labels-has-unread-messages
info outside of sup?
Thanks guys! :)
-AT
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 13:33 ` Andrei Thorp
@ 2009-06-09 13:42 ` Andrei Thorp
2009-06-12 19:14 ` William Morgan
2009-06-09 14:11 ` Marcus Williams
1 sibling, 1 reply; 15+ messages in thread
From: Andrei Thorp @ 2009-06-09 13:42 UTC (permalink / raw)
On Tue, Jun 9, 2009 at 9:33 AM, Andrei Thorp<garoth at gmail.com> wrote:
> Yeah, I guess that makes sense. It is a rather nice interface
> actually, I didn't really think about it for some reason.
I just actually ran a quick test (with 0.8) and it looks like the
label-list-mode fails to update automatically D:
What I did was put on the label-list-mode, manually send myself an
e-mail, re-run fetchmail to grab it (I get a notification via procmail
saying it came in). Then I remember that sup polls at intervals, so I
wait.
Eventually, the status bar at the bottom says that there is a new
message in the inbox, but the Inbox label does not get updated in my
view. It still says 0/0.
I press x to go back to the inbox screen, it has the mail. I go back
to label-list-mode, and now it registers it.
So I guess I'd call that a bug actually, and it's unlikely that people
operate out of this mode habitually or else this would have probably
been found.
(Unless it already has?)
Cheers,
-AT
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 13:33 ` Andrei Thorp
2009-06-09 13:42 ` Andrei Thorp
@ 2009-06-09 14:11 ` Marcus Williams
2009-06-09 14:24 ` Marcus Williams
` (2 more replies)
1 sibling, 3 replies; 15+ messages in thread
From: Marcus Williams @ 2009-06-09 14:11 UTC (permalink / raw)
On 9.6.2009, Andrei Thorp wrote:
> Any suggestions for quickly getting this labels-has-unread-messages
> info outside of sup?
Attached is a labels mode outside of sup... Useful for conky etc. Just
pipe the output to a file (warnings errors etc wont go to the file)
William - if you want to add this to sup/bin feel free. Its basically
the regen_text method lifted and edited slightly from the
label-list-mode
It might need a few more tweaks - I'm not sure it needs to
load/save/unlock the index really. They're there because they came for
free with the copy and paste of bin/sup-tweak-labels :)
Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sup-list-labels
Type: application/octet-stream
Size: 1773 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20090609/344b333b/attachment.obj>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 14:11 ` Marcus Williams
@ 2009-06-09 14:24 ` Marcus Williams
[not found] ` <80055d7c0906090735x581d27a2pfeb3ca2d470bb099@mail.gmail.com>
2009-06-09 14:29 ` [sup-talk] " Marcus Williams
2009-06-12 19:10 ` William Morgan
2 siblings, 1 reply; 15+ messages in thread
From: Marcus Williams @ 2009-06-09 14:24 UTC (permalink / raw)
On 9.6.2009, I wrote:
> On 9.6.2009, Andrei Thorp wrote:
> > Any suggestions for quickly getting this labels-has-unread-messages
> > info outside of sup?
>
> Attached is a labels mode outside of sup... Useful for conky etc. Just
> pipe the output to a file (warnings errors etc wont go to the file)
Oh and I forgot - if you want to kick off sup from a click on one of
these labels (assuming you can do something like that in your WM) you
can call sup with --search "label:somelabel" to get that label
displayed.
Marcus
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 14:11 ` Marcus Williams
2009-06-09 14:24 ` Marcus Williams
@ 2009-06-09 14:29 ` Marcus Williams
2009-06-12 19:10 ` William Morgan
2 siblings, 0 replies; 15+ messages in thread
From: Marcus Williams @ 2009-06-09 14:29 UTC (permalink / raw)
On 9.6.2009, I wrote:
> William - if you want to add this to sup/bin feel free. Its basically
> the regen_text method lifted and edited slightly from the
> label-list-mode
You might want to delete lines 24-26 as well to save the warning about
uninitialised variable. At some point I'll post my version with a
query which is a little less hurried, but doesnt work quite how I want
yet.
Marcus
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Fwd: Gmail Labels Sidebar
[not found] ` <80055d7c0906090735x581d27a2pfeb3ca2d470bb099@mail.gmail.com>
@ 2009-06-09 14:37 ` Andrei Thorp
0 siblings, 0 replies; 15+ messages in thread
From: Andrei Thorp @ 2009-06-09 14:37 UTC (permalink / raw)
> Oh and I forgot - if you want to kick off sup from a click on one of
> these labels (assuming you can do something like that in your WM) you
> can call sup with --search "label:somelabel" to get that label
> displayed.
Damn, that's a great idea! I didn't even think about that.
/me checks up on what else sup has in its cli flags.
Cheers,
-AT
PS.
Well, while I'm here, I guess I'll also mention this fairly obvious
script line that just outputs the unread messages in a filtered list:
sup-list-labels 2> /dev/null | grep -E "Inbox|Sent" | sed -r "s/^
*([A-Za-z]*).* ([0-9]+) unread/\1: \2/"
So to go through this:
?- Pipe the stderr to /dev/null (we don't want to see the messages)
?- grep for either "Inbox" or "Sent" -- you can put lots more |blah|blah there
?- sed magic to extract and reformat the data
This might be useful for outputting somewhere like in a shell prompt or panel.
PPS. argh, still not using sup for this mailing list so I replied to
an individual. Forwarded D:
PPPS. Sorry that it wrapped my sed command there, but I'm sure you get the idea.
PPPPS. Sorry about the unfashionable amount of PSes ;)
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 2:24 ` Ben Walton
2009-06-09 13:33 ` Andrei Thorp
@ 2009-06-12 18:56 ` William Morgan
2009-06-12 19:03 ` Andrei Thorp
1 sibling, 1 reply; 15+ messages in thread
From: William Morgan @ 2009-06-12 18:56 UTC (permalink / raw)
Reformatted excerpts from Ben Walton's message of 2009-06-08:
> So something similar to the folder view hack/patch for mutt? That
> doesn't exist in sup. The closest you get is having the 'All Labels'
> buffer open. You can jump to a view of all messages with that label
> by hitting enter on the selected label.
FWIW, there is some preliminary support for having multiple Sup buffers
sharing the screen. (There's a notion of focus, and x/y/w/h values for
each buffer.) If someone is very excited about having this behavior from
mutt, that's how I'd try and implement it.
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-12 18:56 ` William Morgan
@ 2009-06-12 19:03 ` Andrei Thorp
0 siblings, 0 replies; 15+ messages in thread
From: Andrei Thorp @ 2009-06-12 19:03 UTC (permalink / raw)
On Fri, Jun 12, 2009 at 2:56 PM, William Morgan<wmorgan-sup at masanjin.net> wrote:
> Reformatted excerpts from Ben Walton's message of 2009-06-08:
>> So something similar to the folder view hack/patch for mutt? ?That
>> doesn't exist in sup. ?The closest you get is having the 'All Labels'
>> buffer open. ?You can jump to a view of all messages with that label
>> by hitting enter on the selected label.
>
> FWIW, there is some preliminary support for having multiple Sup buffers
> sharing the screen. (There's a notion of focus, and x/y/w/h values for
> each buffer.) If someone is very excited about having this behavior from
> mutt, that's how I'd try and implement it.
That is indeed very exciting. Mutt's sidebar is actually very poor and
limiting. If this could
handle it with arbitrary splitting, this would be amazingly amazing.
Thanks :)
-AT
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 14:11 ` Marcus Williams
2009-06-09 14:24 ` Marcus Williams
2009-06-09 14:29 ` [sup-talk] " Marcus Williams
@ 2009-06-12 19:10 ` William Morgan
2009-06-12 20:18 ` Marcus Williams
2 siblings, 1 reply; 15+ messages in thread
From: William Morgan @ 2009-06-12 19:10 UTC (permalink / raw)
Reformatted excerpts from Marcus Williams's message of 2009-06-09:
> William - if you want to add this to sup/bin feel free. Its basically
> the regen_text method lifted and edited slightly from the
> label-list-mode
Nice idea. I'd add such a thing, but I think you can make it
significantly simpler. (As you point out, locking the index is not
necessary.)
Something like:
#!/usr/bin/env ruby
require 'sup'
i = Redwood::Index.new; i.load
l = Redwood::LabelManager.new File.join(ENV["HOME"], ".sup", "labels.txt")
l.all_labels.
map { |label| [label, l.string_for(label)] }.
sort_by { |label, name| name }.
each do |label, name|
total = i.num_results_for :label => label
unread = (label == :unread)? total : i.num_results_for(:labels => [label, :unread])
printf "%20s: %6d messages, %6d unread\n", name, total, unread
end
puts "yay"
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-09 13:42 ` Andrei Thorp
@ 2009-06-12 19:14 ` William Morgan
0 siblings, 0 replies; 15+ messages in thread
From: William Morgan @ 2009-06-12 19:14 UTC (permalink / raw)
Reformatted excerpts from Andrei Thorp's message of 2009-06-09:
> What I did was put on the label-list-mode, manually send myself an
> e-mail, re-run fetchmail to grab it (I get a notification via procmail
> saying it came in). Then I remember that sup polls at intervals, so I
> wait.
You can press "P" to force a poll.
> Eventually, the status bar at the bottom says that there is a new
> message in the inbox, but the Inbox label does not get updated in my
> view. It still says 0/0.
Yep, currently label-list-mode only updates when one of three things
happens:
- it gets created
- it gets focus (you switch to it from another buffer)
- you press '@'
Also, it only reflects the index state, so if you read a new message
something and don't press "$", it won't reflect that change.
I'd happily accept patches for any of those issues. :)
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [sup-talk] Gmail Labels Sidebar
2009-06-12 19:10 ` William Morgan
@ 2009-06-12 20:18 ` Marcus Williams
0 siblings, 0 replies; 15+ messages in thread
From: Marcus Williams @ 2009-06-12 20:18 UTC (permalink / raw)
On 12.6.2009, William Morgan wrote:
> Nice idea. I'd add such a thing, but I think you can make it
> significantly simpler. (As you point out, locking the index is not
> necessary.)
Simpler is good - it was a quick hack anyway :) You version works out
of the box so it would be a nice addition to sup/bin
Marcus
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2009-06-12 20:18 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-09 0:37 [sup-talk] Gmail Labels Sidebar Andrei Thorp
2009-06-09 1:05 ` Ben Walton
2009-06-09 2:14 ` Edward Z. Yang
2009-06-09 2:24 ` Ben Walton
2009-06-09 13:33 ` Andrei Thorp
2009-06-09 13:42 ` Andrei Thorp
2009-06-12 19:14 ` William Morgan
2009-06-09 14:11 ` Marcus Williams
2009-06-09 14:24 ` Marcus Williams
[not found] ` <80055d7c0906090735x581d27a2pfeb3ca2d470bb099@mail.gmail.com>
2009-06-09 14:37 ` [sup-talk] Fwd: " Andrei Thorp
2009-06-09 14:29 ` [sup-talk] " Marcus Williams
2009-06-12 19:10 ` William Morgan
2009-06-12 20:18 ` Marcus Williams
2009-06-12 18:56 ` William Morgan
2009-06-12 19:03 ` Andrei Thorp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox