[sup-talk] Feature Req: Command line search/display options
Marcus Williams
marcus-sup at quintic.co.uk
Mon Oct 15 08:49:34 EDT 2007
Hi -
I posted this in the tracker on RubyForge but then noticed the mail list
so I thought I'd put it here for discussion. I'd like to add some
command line options to search/display messages, because then I can
script using sup outside of sup as it were.
So c&p from tracker:
-------------------------
What would be _really_ nice (and I might have a go at a patch if given
some pointers where to start looking) would besome command line options
to search for messages (printing a list of matches and exiting) and to
display a single message (and exit).
What I'm thinking is something like:
sup --search "some search term"
[someid0] [from] [Subject...................]
[someid1] [from] [Subject...................]
[someid2] [from] [Subject...................]
[someid3] [from] [Subject...................]
[someid.] [from] [Subject...................]
[someidn] [from] [Subject...................]
sup --display someid0
From: blah at blah.com
Subject: This is my subject
The body.
-------------------------
Like I said, I can implement this and submit a patch but it might be
faster if someone pointed me to some relevant places in the source (or
told me it can already be done....)
I'd also quite like the output to be machine parsable as an option (in
the case of the search results anyway) and be able to add/remove labels
from messages/threads, but I thought I'd start with plain text :)
Anyone else find this useful?
Marcus
More information about the sup-talk
mailing list