Use max-mails setting with higher priority

The `mail-chunk-size` is set to its configured value or `max-mails`
whichever is lower.
This commit is contained in:
Eike Kettner
2020-05-20 22:44:29 +02:00
parent c0259dba7e
commit d9782582d8
3 changed files with 13 additions and 6 deletions

View File

@ -106,14 +106,18 @@ docspell.joex {
max-folders = 50
# How many mails (headers only) to retrieve in one chunk.
mail-chunk-size = 100
#
# If this is greater than `max-mails' it is set automatically to
# the value of `max-mails'.
mail-chunk-size = 50
# A limit on how many mails to process in one job run. This is
# only to avoid resource allocation to one user/collective.
# meant to avoid too heavy resource allocation to one
# user/collective.
#
# If more than this number of mails is encountered, a warning is
# logged.
max-mails = 1000
max-mails = 500
}
}