gessnerfl / fake-smtp-server

A simple SMTP Server for Testing purposes. Emails are stored in an in-memory database and rendered in a Web UI
Apache License 2.0
426 stars 88 forks source link

Only 100 results #195

Closed jessec closed 1 year ago

jessec commented 1 year ago

I can see only 100 emails any idea how I can increase this number?

image

gessnerfl commented 1 year ago

@jessec: as described in the documentation, the service stores only a limited number of emails to avoid excessive memory usage.

The server store a configurable maximum number of emails. If the maximum number of emails is exceeded old emails will be deleted to avoid that the system consumes too much memory.

The default value is 100 but you can change it via the configuration:

fakesmtp:
  persistence:
    maxNumberEmails: 100
jessec commented 1 year ago

Should I also change a setting for the UI? I can still not page beyond page 10.

I also tried to increase max-page-size, but that didn't increase the number of pages I can see.

data: web: pageable: size-parameter: size page-parameter: page default-page-size: 10 one-indexed-parameters: false max-page-size: 10000

And

spring: data: rest: max-page-size: 2147483647

image

jessec commented 1 year ago

Not sure what setting did it or maybe something went wrong compiling the new changes, but it is working now. Thanks

image

gessnerfl commented 1 year ago

There is no configuration needed for the UI. The configuration parameter mentioned above effects the persistence. This means that the system will automatically delete old emails when the given limit is exceeded.