From: garoth@gmail.com (Andrei Thorp)
Subject: [sup-talk] Fwd: Gmail Labels Sidebar
Date: Tue, 9 Jun 2009 10:37:54 -0400 [thread overview]
Message-ID: <80055d7c0906090737g46f9f3b3y7ee00b91dbe08f22@mail.gmail.com> (raw)
In-Reply-To: <80055d7c0906090735x581d27a2pfeb3ca2d470bb099@mail.gmail.com>
> 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 ;)
next prev parent reply other threads:[~2009-06-09 14:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 0:37 [sup-talk] " 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 ` Andrei Thorp [this message]
2009-06-09 14:29 ` 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
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=80055d7c0906090737g46f9f3b3y7ee00b91dbe08f22@mail.gmail.com \
--to=garoth@gmail.com \
/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