Re: [Dovecot] Auto create folder(s)

2007-10-01 Thread Bill Landry
mouss wrote: >> Mouss, your post got me thinking, and after a bit of struggle and >> testing, I was finally able to come up with a working maildroprc >> configuration that would first attempt message delivery and then >> fall-back to creating the maildir as an exception if the maildir did not >> e

Re: [Dovecot] Auto create folder(s)

2007-10-01 Thread mouss
Bill Landry wrote: mouss wrote the following on 9/30/2007 3:45 PM -0800: Fábio M. Catunda wrote: Charles Marcus escreveu: On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: But with maildrop you still run the process of creating/checking on every delivery, same thing as dovec

Re: [Dovecot] Auto create folder(s)

2007-09-30 Thread Bill Landry
mouss wrote the following on 9/30/2007 3:45 PM -0800: > Fábio M. Catunda wrote: > >> Charles Marcus escreveu: >> >>> On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: >>> > But with maildrop you still run the process of creating/checking on > every delivery, same thing as

Re: [Dovecot] Auto create folder(s)

2007-09-30 Thread mouss
Fábio M. Catunda wrote: > Charles Marcus escreveu: >> On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: But with maildrop you still run the process of creating/checking on every delivery, same thing as dovecot, right? >> >>> Correct. If the folder does not exist, maildrop will create i

Re: [Dovecot] Auto create folder(s)

2007-09-30 Thread Timo Sirainen
On Wed, 2007-09-26 at 18:10 +0200, Lars Stavholm wrote: > Hi All, > > does anyone know of a way to automatically create user folder(s)? > Like creating a Spam folder on login if not already there. > I've googled a bit but couldn't find anything relevant. Since several people have asked already, I

Re: [Dovecot] Auto create folder(s)

2007-09-30 Thread Timo Sirainen
On Wed, 2007-09-26 at 16:49 -0400, Charles Marcus wrote: > What I wrote was, do NOT test BEFORE delivery is attempted - only create > the folder IF delivery attempt FAILS *DUE* to non-existent folder. This is how Dovecot's deliver works. Or v1.0 deliver tries to create it if mailbox opening fails

Re: [Dovecot] Auto create folder(s)

2007-09-27 Thread Bill Cole
At 4:49 PM -0400 9/26/07, Charles Marcus imposed structure on a stream of electrons, yielding: On 9/26/2007, Fábio M. Catunda ([EMAIL PROTECTED]) wrote: > Could it could be written to simply create the folder if the target folder doesn't exist (ie, if the initial save fails due to non-exis

Re: [Dovecot] Auto create folder(s)

2007-09-27 Thread Gregory Mokhin
> On 08:50:42 2007-09-27 Lars Stavholm <[EMAIL PROTECTED]> wrote: >> Daniel L. Miller wrote: >> > Charles Marcus wrote: >> >> On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: >> >>> These folders could easily be create dynamically by maildrop, if >> >>> used as your MDA. I use it as my MDA betw

Re: [Dovecot] Auto create folder(s)

2007-09-27 Thread Andraž 'ruskie' Levstik
On 08:50:42 2007-09-27 Lars Stavholm <[EMAIL PROTECTED]> wrote: > Daniel L. Miller wrote: > > Charles Marcus wrote: > >> On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: > >>> These folders could easily be create dynamically by maildrop, if > >>> used as your MDA. I use it as my MDA between Pos

Re: [Dovecot] Auto create folder(s)

2007-09-27 Thread Lars Stavholm
Daniel L. Miller wrote: > Charles Marcus wrote: >> On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: >>> These folders could easily be create dynamically by maildrop, if used >>> as your MDA. I use it as my MDA between Postfix and Dovecot to >>> automatically create spam folders for new accounts

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Bill Landry
Fábio M. Catunda wrote the following on 9/26/2007 3:01 PM -0800: > I didnt know that maildrop generates a variable called RETURNCODE when > you run some external commands, thanks for the advise! > > Anyway, even if maildrop is written in C++, it have to start a bash > and run the external command.

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Fábio M. Catunda
Bill Landry wrote: Fábio M. Catunda wrote: Charles Marcus escreveu: On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: But with maildrop you still run the process of creating/checking on every delivery, same thing as dovecot, right? Correct. If the folder does not

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Charles Marcus
On 9/26/2007, Fábio M. Catunda ([EMAIL PROTECTED]) wrote: > > Could it could be written to simply create the folder if the target folder doesn't exist (ie, if the initial save fails due to non-existent folder)? Then there would be no performance hit... > There will be a performance hit couse y

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Bill Landry
Fábio M. Catunda wrote: > Charles Marcus escreveu: >> On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: But with maildrop you still run the process of creating/checking on every delivery, same thing as dovecot, right? >> >>> Correct. If the folder does not exist, maildrop will create i

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Fábio M. Catunda
Charles Marcus escreveu: On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: But with maildrop you still run the process of creating/checking on every delivery, same thing as dovecot, right? Correct. If the folder does not exist, maildrop will create it on first delivery. If the end user del

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Charles Marcus
On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: But with maildrop you still run the process of creating/checking on every delivery, same thing as dovecot, right? Correct. If the folder does not exist, maildrop will create it on first delivery. If the end user deletes the folder, maildrop

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Bill Landry
Fábio M. Catunda wrote: > Bill Landry escreveu: >> Lars Stavholm wrote: >> >>> Charles Marcus wrote: >>> On 9/26/2007, Lars Stavholm ([EMAIL PROTECTED]) wrote: >> if not -> maybe this is for >> you:http://wiki.dovecot.org/PostLoginScripting >> > Even

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Daniel L. Miller
Charles Marcus wrote: On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: These folders could easily be create dynamically by maildrop, if used as your MDA. I use it as my MDA between Postfix and Dovecot to automatically create spam folders for new accounts and also for delivering mail that exc

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Charles Marcus
On 9/26/2007, Bill Landry ([EMAIL PROTECTED]) wrote: These folders could easily be create dynamically by maildrop, if used as your MDA. I use it as my MDA between Postfix and Dovecot to automatically create spam folders for new accounts and also for delivering mail that exceeds our spam threshold

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Charles Marcus
Postfixadmin does this automatically when the account is created, and this is the ideal time to do such things, no? It is the ideal time, you're right about that. However, to my understanding, Postfixadmin is a web interface for managing postfix config and users in a mysql db. Not very automate

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Bill Landry
Lars Stavholm wrote: > Charles Marcus wrote: >> On 9/26/2007, Lars Stavholm ([EMAIL PROTECTED]) wrote: if not -> maybe this is for you:http://wiki.dovecot.org/PostLoginScripting >>> Even better. >> But then this would happen for every user, at every login, when all you >> need is to do it

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Scott Silva
on 9/26/2007 11:18 AM Lars Stavholm spake the following: Charles Marcus wrote: On 9/26/2007, Lars Stavholm ([EMAIL PROTECTED]) wrote: if not -> maybe this is for you:http://wiki.dovecot.org/PostLoginScripting Even better. But then this would happen for every user, at every login, when all you

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Lars Stavholm
Charles Marcus wrote: > On 9/26/2007, Lars Stavholm ([EMAIL PROTECTED]) wrote: >>> if not -> maybe this is for >>> you:http://wiki.dovecot.org/PostLoginScripting > >> Even better. > > But then this would happen for every user, at every login, when all you > need is to do it once, when the new use

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Charles Marcus
On 9/26/2007, Lars Stavholm ([EMAIL PROTECTED]) wrote: if not -> maybe this is for you:http://wiki.dovecot.org/PostLoginScripting Even better. But then this would happen for every user, at every login, when all you need is to do it once, when the new user is created... Postfixadmin does t

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Johannes Berg
On Wed, 2007-09-26 at 18:10 +0200, Lars Stavholm wrote: > does anyone know of a way to automatically create user folder(s)? You can run a script at login by making the imap executable a script that does something and then executes the imap executable. Search the list archives, should turn up some

Re: [Dovecot] Auto create folder(s)

2007-09-26 Thread Lars Stavholm
Thomas Mueller wrote: > hi lars Hi. > if you're using PAM as pass-db: have a look at pam_mkhomedir.so I will. > if not -> maybe this is for you:http://wiki.dovecot.org/PostLoginScripting Even better. Thanks /Lars PS. Please keep on list. > Lars Stavholm schrieb: >> Hi All, >> >> does anyone