From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 2 Nov 2004 15:35:06 +0300 From: Alexander Bokovoy To: community@altlinux.ru Subject: Re: mutt + scoring mini-howto (was: [Comm] Re: KMail and Mutt) Message-ID: <20041102123506.GB7901@altlinux.org> References: <200404300901.24808.krasavin@kominet.ru> <200405171745.07635.krasavin@kominet.ru> <20040517144622.GA15580@osdn.org.ua> <200405180925.03022.krasavin@kominet.ru> <20040518115908.GM15580@osdn.org.ua> <20041026172044.GA26294@solemn.turbinal.org> <20041026173211.GB32307@osdn.org.ua> <20041031151925.GB14804@mithraen_ws> <20041101082029.GB8171@altlinux.org> <20041101084948.GB19529@mithraen_ws> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20041101084948.GB19529@mithraen_ws> X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2004 12:38:56 -0000 Archived-At: List-Archive: List-Post: On Mon, Nov 01, 2004 at 11:49:48AM +0300, Денис Смирнов wrote: > AB> носителе упоминается. Список почтовых ящиков генерируется при старте, > AB> принцип я уже публиковал пару лет назад: > AB> source `~/.mutt/generate-mailboxes-list` > AB> в muttrc. > > А можно повторить про генерирование списка ящиков? В качестве неоптимизированного примера: #!/bin/sh STORAGE=/path/to/storage echo "# Mail boxes for $USER" >$HOME/.mutt/folder echo "mailboxes =mailbox" >$HOME/.mutt/folder for i in `find $STORAGE/$USER/Mail -type f -print | \ sort -u|egrep -v '/(archive|news|snews)/' | \ grep -v 'sent-mail'|sed -e "s@$STORAGE/$USER/Mail/@=@"` ; do echo "mailboxes $i" >>$HOME/.mutt/folder done echo "mailboxes =news-server" >>$HOME/.mutt/folder echo "mailboxes =snews-server" >>$HOME/.mutt/folder echo "$HOME/.mutt/folder" -- / Alexander Bokovoy Samba Team http://www.samba.org/ ALT Linux Team http://www.altlinux.org/ Midgard Project Ry http://www.midgard-project.org/