6.0.0-beta1
7/5/25

[#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 (at) horde (dot) org
Requester filip.sedlar (at) sendmail (dot) cz
Created 07/03/2008 (6211 days ago)
Due 07/03/2008 (6211 days ago)
Updated 07/09/2008 (6205 days ago)
Assigned 07/06/2008 (6208 days ago)
Resolved 07/09/2008 (6205 days ago)
Github Issue Link
Github Pull Request
Milestone 4.2.1
Patch No

History
07/09/2008 10:15:34 PM Jan Schneider Comment #8 Reply to this comment
Fixed for IMP 4.2.1.
07/09/2008 10:15:16 PM Jan Schneider Taken from Eric Rostetter
State ⇒ Resolved
 
07/06/2008 05:55:59 PM Jan Schneider State ⇒ Assigned
 
07/06/2008 05:31:22 PM Jan Schneider Milestone ⇒ 4.2.1
 
07/04/2008 12:10:06 AM filip (dot) sedlar (at) sendmail (dot) cz Comment #6
New Attachment: maildirsize Download
Reply to this comment
maildirsize example
07/04/2008 12:07:33 AM filip (dot) sedlar (at) sendmail (dot) cz Comment #5 Reply to this comment

[Show Quoted Text - 11 lines]
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 08:51:47 AM 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 08:49:50 AM CVS Commit Comment #3 Reply to this comment
07/03/2008 03:47:50 AM Chuck Hagenbuch Assigned to Eric Rostetter
 
07/03/2008 03:47:17 AM Chuck Hagenbuch State ⇒ Assigned
Assigned to Jan Schneider
 
07/03/2008 01:57:25 AM filip (dot) sedlar (at) sendmail (dot) cz Comment #2 Reply to this comment
The file name with bug is lib/Quota/maildir.php
07/03/2008 01:55:55 AM filip (dot) sedlar (at) sendmail (dot) cz Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Due ⇒ 07/03/2008
Summary ⇒ maildir quota driver not working
Type ⇒ Bug
Queue ⇒ IMP
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

Saved Queries