7 messages in net.sourceforge.lists.courier-maildrop[maildropl] Maildroprc and Quota
FromSent OnAttachments
Renato Otranto Jr.Oct 9, 2006 12:05 pm 
Barry FlanaganOct 9, 2006 2:47 pm 
Renato Otranto Jr.Oct 10, 2006 2:00 pm 
Barry FlanaganOct 10, 2006 2:25 pm 
Renato Otranto Jr.Oct 10, 2006 2:44 pm 
Sam VarshavchikOct 10, 2006 3:40 pm 
Barry FlanaganOct 11, 2006 3:03 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:[maildropl] Maildroprc and QuotaActions...
From:Renato Otranto Jr. (rena@rac.com.br)
Date:Oct 9, 2006 12:05:59 pm
List:net.sourceforge.lists.courier-maildrop

Hello,

I´m using a Postfix Server version 2.1.5 and Maildrop 2.0.2 with maildir quota extension enabled. I need to implement quota support on maildrop, so, I writing a maildroprc file as showed below:

MAIL = "$HOME" #Postfix needs a 'S' character at the end of the quota QUOTA="$MAILDIRQUOTA"'S'

#For test, I write a line in the file /tmp/result `echo "$HOME --> $QUOTA" >> /tmp/result`

#if a maildir does not exist, I must create a maildir, with #the first maildirmake command #The second maildirmake command, must create the maildir `test -d $MAIL` if( $RETURNCODE == 1) { `maildirmake $MAIL` `maildirmake -q $QUOTA $MAIL` }

When I use the command: #maildrop -V 9 -d user@domain < /tmp/result

I have the following report:

maildrop: authlib: groupid=108 maildrop: authlib: userid=108 maildrop: authlib: logname=user@domain, home=/var/maildirs/domain/user, mail=(default) maildrop: Changing to /var/maildirs/domain/user/ Message start at 0 bytes, envelope sender=user@domains Tokenized string: "MAIL" Tokenized = Tokenized string: "$HOME" Tokenized ; Tokenized string: "QUOTA" Tokenized = Tokenized string: "$MAILDIRQUOTA" Tokenized string: 'S' Tokenized ; Tokenized string: `echo "$HOME --> $QUOTA" >> /tmp/result` Tokenized ; Tokenized ; Tokenized string: `test -d $MAIL` Tokenized ; Tokenized if Tokenized ( Tokenized string: "$RETURNCODE" Tokenized == Tokenized string: "1" Tokenized ) Tokenized ; Tokenized { Tokenized ; Tokenized string: `maildirmake $MAIL` Tokenized ; Tokenized string: `maildirmake -q $QUOTA $MAIL` Tokenized ; Tokenized } Tokenized ; Tokenized eof /etc/courier/maildroprc(1): MAIL="/var/maildirs/domain/user" /etc/courier/maildroprc(2): QUOTA="40000000S" maildrop: Filtering through `echo "$HOME --> $QUOTA" >> /tmp/result` maildrop: Filtering through `test -d $MAIL` /etc/courier/maildroprc(6): Evaluating IF condition. /etc/courier/maildroprc(6): Operation on: 0 and 1 - equal, result is 0 /etc/courier/maildroprc(6): IF evaluated, result=0 maildrop: Attempting .mailfilter WARN: quota string '40000000' not parseable maildrop: Delivery complete.

Anybody knows why the first quota field has an 'S' character, but the WARN says the quota value without the 'S' character.

My file test (/tmp/result) says: /var/maildirs/domains/user --> 40000000S

Thanks