[#7014] maildir quota driver not working
Summary maildir quota driver not working
Queue IMP
Queue Version 4.2
Type Bug
State Resolved
Priority 2. Medium
Owners Jan Schneider <jan (at) horde (dot) org>
Requester filip (dot) sedlar (at) sendmail (dot) cz
Created 07/02/2008 (57 days ago)
Due 07/03/2008 (56 days ago)
Updated 07/09/2008 (50 days ago)
Assigned 07/06/2008 (53 days ago)
Resolved 07/09/2008 (50 days ago)
Attachments maildirsize Download
Milestone 4.2.1
Patch No

History
07/09/2008 CVS Commit Comment #9 Reply to this comment
07/09/2008 Jan Schneider Comment #8 Reply to this comment
Fixed for IMP 4.2.1.
07/09/2008 Jan Schneider State ⇒ Resolved
Taken from Eric Rostetter
 
07/09/2008 CVS Commit Comment #7 Reply to this comment
07/06/2008 Jan Schneider State ⇒ Assigned
 
07/06/2008 Jan Schneider Milestone ⇒ 4.2.1
 
07/03/2008 filip (dot) sedlar (at) sendmail (dot) cz Comment #6
New Attachment: maildirsize Download
Reply to this comment
maildirsize example
07/03/2008 filip (dot) sedlar (at) sendmail (dot) cz Comment #5 Reply to this comment

First: there is a typo in quota.php line:
This has been fixed.
and then I had to change this line:

$line = preg_replace("/[ \t\n\r\0\x0B]/", '', $line);
to this:
$line = preg_replace("/[ \t\n\r", '', $line);
Can you tell me why, and can you upload an example "maildirsize" file?
I got this error with original code:
Warning: preg_replace() 
[http://www.php.net/docs.phpfunction.preg-replace.php]: No ending 
delimiter '/' found (could it be because of PHP version???). Note that 
I am not a PHP programmer, I just administrate freemail server.

07/03/2008 Jan Schneider Comment #4
State ⇒ Feedback
Reply to this comment
First: there is a typo in quota.php line:
This has been fixed.
and then I had to change this line:

$line = preg_replace("/[ \t\n\r\0\x0B]/", '', $line);
to this:
$line = preg_replace("/[ \t\n\r", '', $line);
Can you tell me why, and can you upload an example "maildirsize" file?
07/03/2008 CVS Commit Comment #3 Reply to this comment
07/02/2008 Chuck Hagenbuch Assigned to Eric Rostetter
 
07/02/2008 Chuck Hagenbuch State ⇒ Assigned
Assigned to Jan Schneider
 
07/02/2008 filip (dot) sedlar (at) sendmail (dot) cz Comment #2 Reply to this comment
The file name with bug is lib/Quota/maildir.php
07/02/2008 filip (dot) sedlar (at) sendmail (dot) cz Comment #1
Patch ⇒
Milestone ⇒
Queue ⇒ IMP
Due ⇒ 07/03/2008
Summary ⇒ maildir quota driver not working
Type ⇒ Bug
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Reply to this comment
First: there is a typo in quota.php line:
instead of

            foreach ($lines as $line_number => $line) {
                 if ($line_num == 0) {

there should be:
            foreach ($lines as $line_number => $line) {
                 if ($line_number == 0) {

and then I had to change this line:

$line = preg_replace("/[ \t\n\r\0\x0B]/", '', $line);
to this:
$line = preg_replace("/[ \t\n\r", '', $line);

in order to get maildir quotas working

cheers