Enhancement #2723

Customizable mail quota increments

Added by Davide Principi over 7 years ago. Updated almost 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-mail-server
Target version:v6.5
Resolution: NEEDINFO:No

Description

The current mail quota slider has a linear increment of 5 GB.

This does not fit well for very low quota settings. For instance the 1-5 GB span weights different from a 20-25 GB span.

Implement a customizable increment function and a better default (logaritmic instead of linear, for instance).

[rif Nethesis 2014041510000358]


Related issues

Related to NethServer 6 - Enhancement #2940: "Queue message max size" custom value CLOSED

Associated revisions

Revision 018a57a3
Added by Davide Principi almost 7 years ago

Customizable mail quota increments. Refs #2723

Added QuotaUiFunction prop. If the value is left blank (default) a
builtin function is applied. Otherwise the value must be a comma
separated list of integers. Each unit equals to 100MB, thus 1 = 100MB,
2 = 200MB, 10 = 1GB and so on..

The list is sorted and duplicate values are removed.

Revision a88cbf75
Added by Davide Principi almost 7 years ago

Mail/Mailbox UI: use QuotaDefaultSize as additional slider position. Refs #2723

This alternative solution gets rid of QuotaUiFunction prop, by adding
QuotaDefaultSize value to the builtin function.

The UI slider positions are now always consistent with QuotaDefaultSize value.

History

#1 Updated by Davide Principi over 7 years ago

  • Description updated (diff)

#2 Updated by Davide Principi almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

In branch b2750

#3 Updated by Davide Principi almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

Test case

  • Upgrade to modified version
  • New mail quota slider values on Mail > Mailboxes tab and Users > Edit > Services > Custom mailbox quota
  • Custom values for the slider position can be set with dovecot/QuotaUiFunction prop
  • Check quota values changes as expected

#4 Updated by Davide Principi almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-mail-common-1.3.3-1.19git5aeec2c.ns6.noarch.rpm
nethserver-mail-server-1.7.0-1.9git836d38e.ns6.noarch.rpm
nethserver-mail-filter-1.1.6-5.0git2ea5d3e8.ns6.noarch.rpm

#5 Updated by Giacomo Sanchietti almost 7 years ago

  • Assignee set to Giacomo Sanchietti

#6 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 20

The new slider works well and uses reasonable values. PASSED.

New QuotaUiFunction dosen't work. FAILED.
After setting the prop to "1,5,6,7,10", the UI is displaying always the original logarithmic scale. It seems this property is completely ignored.

I don't really like a special prop for the UI, I suggest to leave the new slider and remove the QuotaUiFunction prop.
If anyone needs special values, a custom template can be used.

#7 Updated by Davide Principi almost 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • % Done changed from 20 to 30

#8 Updated by Davide Principi almost 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60

QuotaUiFunction was removed, only builtin increments are available plus the actual QuotaDefaultSize value, that can be adjusted from the console for special needs.

Of course, if the value is changed again from UI the custom value is lost.

Test case

  • Set quota default to a special value:
    config setprop dovecot  QuotaDefaultSize 22
    
  • Check 2.2 GB point is selected and available on the slider under Mail > Mailboxes tab

#9 Updated by Davide Principi almost 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-mail-server-1.7.0-1.11gita88cbf7.ns6.noarch.rpm

#10 Updated by Giacomo Sanchietti almost 7 years ago

  • Assignee set to Giacomo Sanchietti

#11 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

If QuotaDefaultSize is set to 32, web UI displays 3.2GB.
If QuotaDefaultSize is set to 3.2, web UI displays 320MB.

#12 Updated by Giacomo Sanchietti almost 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-mail-server-1.8.0-1.ns6.noarch.rpm
  • nethserver-mail-common-1.4.0-1.ns6.noarch.rpm
  • nethserver-mail-filter-1.2.0-1.ns6.noarch.rpm
New documentation:

#13 Updated by Davide Principi almost 7 years ago

Also available in: Atom PDF