[courier-users] filenames in maildir

2005-11-23 Thread Arvinn Løkkebakken
When maildrop stores a message in Maildir++ it uses a filename according to the standard. Is it possible to reach the values that the filename is built up by inside of maildrop? If possible, I would like to include this in the logfiles maildrop makes. Arvinn

[courier-users] maildrop and calculating the current size of the Maildir

2005-10-18 Thread Arvinn Løkkebakken
I use maildrop to insert a bunch of variables in a sql table. This way I can easily create nice stats of stored messages. If possible, I would like to include the size of the Maildir of the user. When in the process of storing a message is maildrop calcualting the size? Is it possible to

[courier-users] reseting variables in maildrop

2005-10-13 Thread Arvinn Løkkebakken
Can MATCH varibles be set only once in maildrop? I try to pull out values from headers using $MATCH2, $MATCH3.. and so on.. The problem is that it seems like $MATCH2 won't be set again when doing a think like this: if ( /^From: *!.*/ ) { MAILFROM=getaddr($MATCH2) } /^Received: from

Re: [courier-users] reseting variables in maildrop

2005-10-13 Thread Arvinn Løkkebakken
Bowie Bailey wrote: From: Bowie Bailey /^Received: from .*\(!.*!\[![0-9]+\.[0-9]+\.[0-9]+\.[0-9]+!\]\)[\n\t ]+by frontendhost.example.com /:w Ack! Don't miss the space after the \t in the character class that got split up. It should be: [\n\t ]+ Bowie I allready used an if

Re: [courier-users] reseting variables in maildrop

2005-10-13 Thread Arvinn Løkkebakken
Bowie Bailey wrote: From: Arvinn Løkkebakken [mailto:[EMAIL PROTECTED] Bowie Bailey wrote: From: Bowie Bailey /^Received: from .*\(!.*!\[![0-9]+\.[0-9]+\.[0-9]+\.[0-9]+!\]\)[\n\t ]+by frontendhost.example.com /:w I allready used an if around it. I just didn't paste it in. But I

Re: [courier-users] reseting variables in maildrop

2005-10-13 Thread Arvinn Løkkebakken
Bowie Bailey wrote: From: Arvinn Løkkebakken [mailto:[EMAIL PROTECTED] Bowie Bailey wrote: From: Arvinn Løkkebakken [mailto:[EMAIL PROTECTED] Bowie Bailey wrote: From: Bowie Bailey /^Received: from .*\(!.*!\[![0-9]+\.[0-9]+\.[0-9]+\.[0-9]+!\]\)[\n\t ]+by frontendhost.example.com

Re: [courier-users] IMAP / POP3

2005-04-12 Thread Arvinn Løkkebakken
Patric Wilms wrote: Hi, i use the courier with mysql and maildir format. pop3 and imap works verynice but i have a little problem. A user can get his emails from his account test@test.com via pop3 and imap. I want a restriction! In the Database should be a row for example protocol , in it there is

[courier-users] autocreating directories

2005-03-15 Thread Arvinn Løkkebakken
Is it possible to have maildrop auto-create a virtual user's (user i SQL) home and Maildir directories when running in delivery mode (maildrop -d), and then install the quota with the quota value found in the SQL field? I tried to script this in maildroprc, but it looks like it won't run at

Re: [courier-users] autocreating directories

2005-03-15 Thread Arvinn Løkkebakken
Ricky Chan wrote: Arvinn Løkkebakken wrote: I tried to script this in maildroprc, but it looks like it won't run at all as long as the home directory doesn't exist. Not that I know off. However, if you are comfortable with writing some code, you can look at authdaemon.c, find chdir(ainfo

Re: [courier-users] autocreating directories

2005-03-15 Thread Arvinn Løkkebakken
Ricky Chan wrote: Here is mine. To enable add ENABLE_CREATEDIR=1 in your authlib start up config, pretty self explainatory. (okay I know if not enabled it will try chdir twice and can be tidied up to avoid this). if (chdir(ainfo-homedir)) { /* try at least once

[courier-users] quota and MYSQL_QUOTA_FIELD confusion

2005-03-14 Thread Arvinn Løkkebakken
Hi. I'm a little confused when it comes to the use of quota. The doc says that the quota must me installed to the maildir by using maildirmake -q S ./Maildir. 1. What's the ending S? I couldn't find anything about it in the man-pages. 2. In my authmysqlrc I refer to a field