From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16667 invoked from network); 30 Apr 2002 20:18:55 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 30 Apr 2002 20:18:55 -0000 Received: (qmail 4452 invoked by alias); 30 Apr 2002 20:18:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4904 Received: (qmail 4437 invoked from network); 30 Apr 2002 20:18:39 -0000 Date: Tue, 30 Apr 2002 13:17:26 -0700 (PDT) From: Bart Schaefer Sender: schaefer@ns1.sodaware.com To: zsh-users@sunsite.dk Subject: Re: zsh Newbie wants to complete mutt email addresses or aliases In-Reply-To: <20020430193409.GA3875@dman.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII zstyle -e ':completion::complete:mutt:*:' users \ 'reply=($(perl -ne '\''print "$1\n" if /^\s+alias\s+(\S+)\s+.*/;'\'' ~/.muttrc 2>/dev/null) otheraddress@notinmuttrc.com anotheraddress@whoknowswhere.com etcetc@andsoforth.net)' You can probably figure out how to extend this to emit the addresses from the muttrc alias lines instead of just the alias keywords.