Author Topic: bad quota  (Read 3099 times)

Offline raj

  • Newbie
  • *
  • Posts: 4
bad quota
« on: June 23, 2011, 02:44:54 AM »
Hello,

we have problem with bad quota. Mail server is Icewarp. RoundC is couting only with INBOX, but we have other folders in some level (Sent, Trash...) If I move all mails from Sent to Inbox, so quota is OK. Any fix? Thank you

Pavel

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
bad quota
« Reply #1 on: June 23, 2011, 05:35:29 AM »
RoundCube asks the mail server for the quota so it sounds like your mail server is returning the wrong value.

Offline raj

  • Newbie
  • *
  • Posts: 4
bad quota
« Reply #2 on: June 23, 2011, 05:38:46 AM »
Ok, can you say me, where is script, or function, which do this asks? Thank you.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
bad quota
« Reply #3 on: June 24, 2011, 10:09:38 AM »
I'm not familiar your mail server, it would probably be better to ask for support from the makers of your mail server.

Offline raj

  • Newbie
  • *
  • Posts: 4
bad quota
« Reply #4 on: June 24, 2011, 10:16:47 AM »
Sorry, I thinked where can I find in RoundCube script, which ask IMAP server for quota. No where is return on mail server side.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
bad quota
« Reply #5 on: June 24, 2011, 10:26:16 AM »
Its done in /program/include/rcube_imap_generic.php in the getQuota function.

Offline raj

  • Newbie
  • *
  • Posts: 4
bad quota
« Reply #6 on: June 26, 2011, 04:02:14 AM »
Thank you so much! Problem was here... You have there :

$command     = $key . ' GETQUOTAROOT INBOX';

Problem is, that this get quota from folder INBOX and subfolders, but no from other folders, which are on same level. Command bellow is solution for this problem - this return complete quota.

$command     = $key . ' GETQUOTAROOT /';