From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
To: mandrake-russian@altlinux.ru
Subject: [mdk-re] Re: mutt mailbox setup
Date: Thu Sep 20 16:17:01 2001
Message-ID: <20010920152303.C18124@pc152.belcaf.minsk.by> (raw)
In-Reply-To: <20010921162258.A4404@alpha.home>
On Fri, Sep 21, 2001 at 04:22:58PM +0400, lenya@chemsell.yaroslavl.ru wrote:
> Здравствуйте,
>
> Как задать в mutt директорию, в которой хранится
> почта и ящики? Судя по man muttrc:
> set mbox=/path/to/maildir
> set mailboxes=mailbox1 mailbox2 mailbox3...
>
> Так нет же, ругается при запуске на неправильный
> синтаксис. Как правильно?
У меня стоит так:
set mbox=+mbox
А для mailboxes так:
source `~/.mutt/generate-mailboxes-list`
Где скрипт ~/.mutt/generate-mailboxes-list` смотрит в ~/Mail и перечисляет
все почтовые ящики оттуда:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#!/bin/sh
echo "# Mail boxes for $USER" >$HOME/.mutt/folder
echo "mailboxes !" >$HOME/.mutt/folder
for i in `find $HOME/Mail -type f -print | \
sort -u|egrep -v '/(archive|news)/' | \
grep -v 'sent-mail' | \
sed -e "s@$HOME/Mail/@=@"` ; do
echo "mailboxes $i" >>$HOME/.mutt/folder
done
echo "$HOME/.mutt/folder"
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Этот скрипт игнорирует ~/Mail/archive/* и ~/Mail/news/*, а также
~/Mail/sent-mail, куда у меня помещаются копии отправленных писем.
В результате, при каждом запуске Mutt файл с описанием mailboxes
(~/.mutt/folder) перегенерируется и отражает текущую ситуацию.
--
/ Alexander Bokovoy
$ cat /proc/identity >~/.signature
`Senior software developer and analyst for SaM-Solutions Ltd.`
---
YOW!! Up ahead! It's a DONUT HUT!!
prev parent reply other threads:[~2001-09-20 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-20 16:05 [mdk-re] " lenya
2001-09-20 16:12 ` [mdk-re] " Michael Orlov
2001-09-20 16:17 ` Alexander Bokovoy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010920152303.C18124@pc152.belcaf.minsk.by \
--to=a.bokovoy@sam-solutions.net \
--cc=mandrake-russian@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git