You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2023/01/31 00:16:00 UTC

[jira] [Closed] (JAMES-3880) MailRepositories: add a way to count retries

     [ https://issues.apache.org/jira/browse/JAMES-3880?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Tellier closed JAMES-3880.
---------------------------------
    Resolution: Fixed

Merged.

Please note that one can easilymatch reprocessed emails within the mailet container:

HasMailAttribute=mailRepository-reprocessing

> MailRepositories: add a way to count retries
> --------------------------------------------
>
>                 Key: JAMES-3880
>                 URL: https://issues.apache.org/jira/browse/JAMES-3880
>             Project: James Server
>          Issue Type: Improvement
>          Components: MailStore &amp; MailRepository, webadmin
>            Reporter: Benoit Tellier
>            Priority: Major
>             Fix For: 3.8.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Currently, mail repository reprocessing is unbounded. This is a pain as for instance a bug can cause processing to always fail. each failure will generate a bounce. combined with auto-reprocessing this set things up for flooding.
> Proposition: count reprocessing:
> {code:java}
> curl -XPATCH 'http://127.0.0.1:8000/mailRepositories/var%2Fmail%2Ferror/mails?action=reprocess&processor=root&limit=5&maxRetries=5'
> {code}
>  - maxRetries being an option int (defaults to unlimited). maxRetries filtering happens first then limit.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org