On Mon, Mar 12, 2012 at 02:14:40PM +0100, David Sterba wrote:
On Mon, Mar 12, 2012 at 08:48:49AM -0400, Darryl L. Pierce wrote:
> Maybe we should get the one that Will Foster's using, since it's
> well-tested.
Well, why not. Attached a patch merged from 3 sidebar related patches in
opensuse. Applies on top of mutt-kz master, compiles and quick test was
ok. I think it could be merged as is and later updated with fixes from
other sidebar patch instances. Hope this will help to devlopment going.
Excellent. Applied.
I have also added support for virtual folders to the sidebar code:
* if 'virtual_spoolfile = yes' then sidebar will show virtual folders
* it's possible toggle between virtual and normal folders by a new
sidebar-toggle command
* .muttrc example:
set nm_default_uri="notmuch:///home/kzak/Mail/Maildir"
set virtual_spoolfile = yes
# normal folders
set mbox_type=Maildir
set folder="~/Mail/Maildir"
mailboxes =rh =fedora =misc
# sidebar
set sidebar_width = 35
set sidebar_visible = yes
color sidebar_new yellow default
bind index <left> sidebar-prev
bind index <right> sidebar-next
bind index <space> sidebar-open
bind index <Esc>S sidebar-toggle <----------- !
# virtual folders
virtual-mailboxes \
"INBOX" "notmuch://?query=tag:inbox and NOT
tag:archive" \
"Util-linux" "notmuch://?query=tag:ul and NOT
tag:archive" \
"Bugs" "notmuch://?query=tag:bug NOT tag:archive"
\
"RH" "notmuch://?query=tag:rh and NOT
tag:archive" \
"Fedora" "notmuch://?query=tag:fed and NOT
tag:archive" \
"Linux" "notmuch://?query=tag:lk and NOT
tag:archive"
.. now we have the best mutt ever ;-)))
Karel
--
Karel Zak <kzak(a)redhat.com>
http://karelzak.blogspot.com