> 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 ;)
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to