Enhancement #2940

"Queue message max size" custom value

Added by Davide Principi almost 7 years ago. Updated about 6 years ago.

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

100%

Category:nethserver-mail-common
Target version:v6.6
Resolution: NEEDINFO:No

Description

The slider widget "Queue message max size" in Email > Messages page sets the underlying prop MessageSizeMax. Only a UI-defined set of values are supported: if a custom value is set the UI does not reflect it.

Add any custom value from MessageSizeMax to the known value list, as we've done for Mail quota slider on #2723.


Related issues

Related to NethServer 6 - Enhancement #2723: Customizable mail quota increments CLOSED

Associated revisions

Revision 89d11e2a
Added by Davide Principi about 6 years ago

Allow custom value for MessageQueueLifetimeDatasource and MessageSizeMax postfix props. Refs #2940

History

#1 Updated by Davide Principi almost 7 years ago

#2 Updated by Giacomo Sanchietti over 6 years ago

  • Target version changed from v6.6-beta1 to ~FUTURE

#3 Updated by Filippo Carletti over 6 years ago

  • Target version changed from ~FUTURE to v6.6

#4 Updated by Davide Principi about 6 years ago

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

#5 Updated by Davide Principi about 6 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
  • set postfix/MessageSizeMax prop to a custom value (rounded to millions):
       config setprop postfix MessageSizeMax 53000000
    
  • set postfix/MessageQueueLifetimeDatasource postfix/MessageQueueLifetime prop to custom value (days):
       config setprop postfix MessageQueueLifetime 8
    
  • Check the UI page Email > Messages displays the custom values
  • Save
  • Verify DB values don't change

Then

  • Move the sliders to other values
  • Save
  • Custom values are no more available from the sliders

#6 Updated by Davide Principi about 6 years ago

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

In nethserver-testing:
nethserver-mail-common-1.4.5-1.2.g89d11e2.ns6.noarch.rpm

#7 Updated by dz0 0te about 6 years ago

  • Assignee set to dz0 0te

#8 Updated by dz0 0te about 6 years ago

a little doubt in the test case:
the db variable MessageQueueLifetimeDatasource seems not exist
instead changing MessageQueueLifetime seems to reflect the change in the UI.
which one i should test?

#9 Updated by dz0 0te about 6 years ago

  • NEEDINFO changed from No to Yes

#10 Updated by Davide Principi about 6 years ago

  • NEEDINFO changed from Yes to No

dz0 0te wrote:

a little doubt in the test case:
the db variable MessageQueueLifetimeDatasource seems not exist
instead changing MessageQueueLifetime seems to reflect the change in the UI.
which one i should test?

A cut&paste mistake; the parameter to test is MessageQueueLifetime!

Fixed the test case text.

#11 Updated by dz0 0te about 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (dz0 0te)
  • % Done changed from 70 to 90

System and Package Version installed
VM KVM - Clean install of Nethserver 6.6 fully updated
Package Installed: nethserver-mail-common-1.4.5-1.ns6.noarch
Other Package installed: Email,File server,MySQL server,POP3 connector,Web server

Test Original Problem
config getprop postfix MessageSizeMax
20000000
config setprop postfix MessageSizeMax 53000000
config setprop postfix MessageQueueLifetime 8
the UI show in Email > Messages
Queue message max size (10 MB)
Queue message lifetime (1 day)

Install Updated Package

yum --enablerepo=nethserver-testing update nethserver-mail-common-1.4.5-1.2.g89d11e2.ns6

Test Results after update
Installed new package while
MessageSizeMax 53000000
MessageQueueLifetime 8
After the installation the UI show in Email > Messages the correct custom values
Queue message max size (53 MB)
Queue message lifetime (8 days)
Save from ui and check DB values:

$ config getprop postfix MessageSizeMax
53000000
$ config getprop postfix MessageQueueLifetime
8

Set from UI:
Queue message max size (100 MB)
Queue message lifetime (15 days)
Save and check DB values:

$ config getprop postfix MessageSizeMax
100000000
$ config getprop postfix MessageQueueLifetime
15

In the UI, reload the page and the old custom values are no more available

Note
....

#12 Updated by Davide Principi about 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-mail-common-1.5.0-1.ns6.noarch.rpm

Also available in: Atom PDF