On Sun, 03 Nov 2002, Benedikt Kale� wrote:

> > Maildirs kennen keine Ordnerhierarchie in der Art des
> > Filesystems. Du brauchst folgende Struktur:
> >
> > [ ... ]
>
> Jetzt muss ich mir nur noch ein nettes Perlskript schreiben,
> dass das monatlich automatisch macht.

Vielleicht hilft dir ja mein Konzept weiter:

# /home/user/Maildir/
# |-- cur/
# |-- new/
# |-- tmp/
# |
# |-- .2002.10.debian-user-german
# |   |-- cur/
# |   |-- new/
# |   |-- tmp/
# |   \-- maildirfolder (leere Datei)
# |
# |-- .2002.10.maildir
# |   |-- cur/
# |   |-- new/
# |   |-- tmp/
# |   \-- maildirfolder (leere Datei)
# |
# |  [...]
# |
# |-- .2002.11.debian-user-german
# |   |-- cur/
# |   |-- new/
# |   |-- tmp/
# |   \-- maildirfolder (leere Datei)
# |
# |-- .2002.11.maildir
# |   |-- cur/
# |   |-- new/
# |   |-- tmp/
# |   \-- maildirfolder (leere Datei)
# |

Ich benutze procmail um meine eMails jeden Monat in ein
eigenes Mailfolder zu speichern.

| $ cat .procmailrc
|
| MONTH=`date +%Y.%m`
| MAILDIR=$HOME/Maildir
| DEFAULT=$MAILDIR/.$MONTH.maildir/
| 
| :0: $MAILDIR/lockfiles/debian-user-german.lock
| * ^X-Loop:.*(debian-user-de|debian-user-german)@.*
| .$MONTH.debian-user-german/

Und um mit Mutt geschickt mit diesen vielen Foldern umgehen zu
k�nnen benutze ich ein Script Namens mailmonth

| http://mutt.blackplasma.net/mailmonth

in meiner muttrc:

| $ cat .mutt/muttrc
| 
| set mbox_type="Maildir"
| set folder="imap://localhost/INBOX"
| set mbox="+`mailmonth`/read-mails"
| set postponed="+postponed"
| set record="+`mailmonth`/maildir"
| set spoolfile="+`mailmonth`/maildir"
|
| # Eine Zeile!
| 
| mailboxes     `find /home/markus/Maildir/ -name \
|               .$(mailmonth |sed -e 's|/|.|ig')* \
|               -type d -maxdepth 1 -print \
|               |sed -e 's|/home/markus/Maildir/\.|=|ig' \
|               |sed -e 's|\.|\/|ig' |sort |xargs`
| 
| mailboxes     +Schach
| mailboxes     +ddtp
| mailboxes     +postponed
| mailboxes     +duplicates
| mailboxes     +spam

Wenn ich jetzt mutt mit der Option '-y' starte sehe ich
folgende �bersicht:

| q:Verlassen    m:Maske  ?:Hilfe
|
|   1 18   imap://localhost/INBOX/2002/11/debian-user-german
|   2  0   imap://localhost/INBOX/2002/11/evms-devel
|   3  0   imap://localhost/INBOX/2002/11/gatos-devel
|   4  4   imap://localhost/INBOX/2002/11/informatik
|   5  0   imap://localhost/INBOX/2002/11/linux-l
|   6  2   imap://localhost/INBOX/2002/11/maildir
|   7  0   imap://localhost/INBOX/2002/11/mutt-users
|   8  0   imap://localhost/INBOX/2002/11/wiki
|   9  1   imap://localhost/INBOX/Schach
|  10  0   imap://localhost/INBOX/ddtp
|  11  0   imap://localhost/INBOX/duplicates
|  12  0   imap://localhost/INBOX/postponed
|  13  6   imap://localhost/INBOX/spam
|
| -- Mutt: Mailbox-Dateien [5]

Was will man mehr?

        - Markus
-- 
Why do psychics have to ask you for your name?

Attachment: msg23622/pgp00000.pgp
Description: PGP signature

Antwort per Email an