Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3610

Use size units for SMTP and IMAP size limits

    XMLWordPrintableJSON

Details

    Description

      Why ?

      Today the following options can only be passed as integer:

      • SMTP maxmessagesize option, in KB
      • IMAP inMemorySizeLimit & literalSizeLimit in bytes

      This is confusing (different default units) error prone (math error, eg when trying to configure it), unreadable (hard to tell at first glance if it is 10MB or 100MB), etc...

      How?

      Allow to specify an optional unit. Parse it. Use org.apache.james.util.Size for consistency.

      Definition of done

      • No backward compatility broken
      • Hability to use size units there

      Opportunity

      POJOify SMTP, LMTP and POP3 configuration?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m