Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: multiple mailbox lines in muttrc
- X-seq: zsh-workers 12024
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: PATCH: multiple mailbox lines in muttrc
- Date: Wed, 21 Jun 2000 22:27:49 -0400
- Cc: Andy Spiegl <zsh.Andy@xxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <1000621152106.ZM31139@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxxxxxxxxx on Wed, Jun 21, 2000 at 03:21:06PM +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000619211650.A5701@xxxxxxxxxxxx> <Pine.LNX.4.20.0006191312080.1808-100000@xxxxxxxxxxxxxxxxx> <20000620132829.K23705@xxxxxxxxxxxx> <20000620100216.A5814@xxxxxxxxxxx> <20000620171801.C3224@xxxxxxxxxxxx> <20000621095529.A27178@xxxxxxxxxxxx> <1000621152106.ZM31139@xxxxxxxxxxxxxxxxxxxxxxx>
> The _mutt_cache is initialized by grepping your .muttrc (or the file that
> you name in the $muttrc variable, which you should set somewhere in your
> .zshrc file if it's not ~/.muttrc) for the string "mailboxes" and then
> throwing away the first word of the result. So it could be coming from
For one thing, this should have been a grep "^mailboxes", lest
it try to interpret comments or other cruft. For another thing,
who needs grep? :)
Index: Completion/User/_mailboxes
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_mailboxes,v
retrieving revision 1.2
diff -u -r1.2 _mailboxes
--- Completion/User/_mailboxes 2000/05/31 09:38:26 1.2
+++ Completion/User/_mailboxes 2000/06/22 02:22:57
@@ -65,7 +65,8 @@
[[ -f ${~muttrc:-.} ]] &&
- _mutt_cache=( ${$(grep mailboxes ${~muttrc})[2,-1]} )
+ _mutt_cache=( ${${(M)${(f)"$(<${~muttrc})"}:#mailboxes *}#mailboxes *} )
+
_mbox_cache=( ${~maildirectory}/*(^/) )
_pine_cache=( ${~pinedirectory}/**/*(.) )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author