From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6288 invoked from network); 25 Apr 2005 08:48:20 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 25 Apr 2005 08:48:20 -0000 Received: (qmail 11187 invoked from network); 25 Apr 2005 08:48:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 25 Apr 2005 08:48:14 -0000 Received: (qmail 6720 invoked by alias); 25 Apr 2005 08:48:06 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8751 Received: (qmail 6708 invoked from network); 25 Apr 2005 08:48:05 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 25 Apr 2005 08:48:05 -0000 Received: (qmail 10114 invoked from network); 25 Apr 2005 08:48:05 -0000 Received: from smtp.gentoo.org (134.68.220.30) by a.mx.sunsite.dk with SMTP; 25 Apr 2005 08:48:00 -0000 Received: from 135-172.dsl.guernsey.net ([195.226.135.172] helo=localhost) by smtp.gentoo.org with esmtpa (Exim 4.43) id 1DPzG2-0006GF-OO for zsh-users@sunsite.dk; Mon, 25 Apr 2005 08:47:59 +0000 Date: Mon, 25 Apr 2005 09:47:57 +0100 From: Tom Martin To: zsh-users@sunsite.dk Subject: Globbing/parameter expansion question Message-ID: <20050425084757.GA9617@pohl.lj.net> Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Disposition: inline User-Agent: Mutt/1.5.8i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.5 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.5 Hello, I've found a mail indexing and searching program which I really like. It just has one disadvantage: the command line interface is stupid. For example: nmzmail -i -m inbox will index the inbox maildir, but then to index multiple mailboxes, it accepts: nmzmail -i -m inbox -m sent-mail -m list-zsh-users So, it's not possible to simply glob for the mailboxes you want because it needs to have another explicit -m before the next mailbox. Although a for loop is the obvious solution, I want to avoid using one because I want to get a full summary of all the mail being indexed, but also (mainly) because I want to know more about how to do something like this in zsh. Sorry for the monologue, but are there any takers? Thanks, Tom -- Tom Martin, http://dev.gentoo.org/~slarti