From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27631 invoked from network); 22 Jun 2000 02:28:10 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Jun 2000 02:28:10 -0000 Received: (qmail 19931 invoked by alias); 22 Jun 2000 02:28:00 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12024 Received: (qmail 19923 invoked from network); 22 Jun 2000 02:27:58 -0000 Date: Wed, 21 Jun 2000 22:27:49 -0400 From: Clint Adams To: Bart Schaefer Cc: Andy Spiegl , zsh-workers@sunsite.auc.dk Subject: PATCH: multiple mailbox lines in muttrc Message-ID: <20000621222749.A14101@scowler.net> References: <20000619211650.A5701@br-online.de> <20000620132829.K23705@br-online.de> <20000620100216.A5814@scowler.net> <20000620171801.C3224@br-online.de> <20000621095529.A27178@br-online.de> <1000621152106.ZM31139@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <1000621152106.ZM31139@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Wed, Jun 21, 2000 at 03:21:06PM +0000 > 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}/**/*(.) )