7 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] maildrop create Maild...
FromSent OnAttachments
Ethan JamesSep 25, 2002 8:19 pm 
Eric PerssonSep 27, 2002 1:46 am 
hzqbbcSep 28, 2002 10:24 pm 
Matthias AndreeSep 29, 2002 4:36 pm 
Ethan JamesSep 29, 2002 4:46 pm 
hzqbbcSep 30, 2002 6:16 pm 
Matthias AndreeOct 1, 2002 1:54 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] maildrop create Maildirs on the flyActions...
From:Matthias Andree (matt@gmx.de)
Date:Oct 1, 2002 1:54:40 am
List:net.sourceforge.lists.courier-maildrop

On Tue, 01 Oct 2002, hzqbbc wrote:

no.. postfix 's virtual does create maildir if it doesn't exist ~~ And of course we can add this dir creation at "add new user" procedure.. but somebody like to do this by MDA :)

So try something like this (untested)

RC=`maildirmake -f folder Maildir </dev/null >/dev/null 2>&1 ; echo $?`

$RC will then be 0 for success and non-0 in case of problems.

However, I'm not sure if this triggers writing the mail to a temporary file. It might, so it might be somewhat inefficient -- in that case, you'd be better off wrapping maildrop up in a shell command that checks if the maildir is there, runs maildirmake in case it isn't and only after that execs maildrop "$@". I don't see how this shell wrapper trick would work with -d and userdb support though.