----- Original Message -----
From: "Einar Bordewich" <[EMAIL PROTECTED]>
To: "Qmail-mailing list" <[EMAIL PROTECTED]>
Sent: Friday, July 28, 2000 11:04 AM
Subject: dot-qmail deliver help

> |if [ -d "$HOME/postmaster/Maildir/.einar.$EXT2/new" ];  \
> then maildirdeliver $HOME/postmaster/Maildir/.einar.$EXT2/; \
> else  maildirdeliver $HOME/postmaster/Maildir ; fi
>
> I'm a little tired of the above script in my .qmail-einar-default file.
> Since I'm no script expert, I would appreciate som help to expand this
> "script" to a even more flexible solution.
>
> I use IMAP to read my mail, and creating new directories. When I subscribe
> to a new list, I basicly create a directory under einar with the name
> qmail-newlist and subscribe with this address
> [EMAIL PROTECTED] Mail is the delivered to this
> subdirectory.

|TEST=`echo $EXT | cut -d"-" --output-delimiter="." -f1-4` ; if [ -d
"$HOME/postmaster/Maildir/.$TEST" ]; then maildirdeliver
$HOME/postmaster/Maildir/.$TEST/ ; else env ; maildirdeliver
$HOME/postmaster/Maildir ; fi

The above line does what I want.
--
--------------------------------------------
IDG New Media     Einar Bordewich
Technical Manager  Phone: +47 2336 1420
E-Mail:           [EMAIL PROTECTED]
--------------------------------------------


Reply via email to