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 "Tellier Benoit (JIRA)" <se...@james.apache.org> on 2018/01/10 07:22:00 UTC

[jira] [Created] (JAMES-2294) WebAdmin tasks for mail reprocessing

Tellier Benoit created JAMES-2294:
-------------------------------------

             Summary: WebAdmin tasks for mail reprocessing
                 Key: JAMES-2294
                 URL: https://issues.apache.org/jira/browse/JAMES-2294
             Project: James Server
          Issue Type: New Feature
          Components: MailStore & MailRepository, SpoolManager & Processors, webadmin
    Affects Versions: master
            Reporter: Tellier Benoit
             Fix For: master


We need a webAdmin frontend for reprocessing emails stored in a MailRepository.

 - I propose these endpoints:

{code}
PUT mailRepositories/:name/reprocessing?processor=root
PUT mailRepositories/:name/:key/reprocessing?processor=root
{code}

(root being the default target processor)

 - This will create Tasks handing the reprocessing. This task should be created in data-library to be used potentially by other protocols.

 - Unit tests can be done with mocks and should focus on input validation.

We would need to write an integration test for this in mailet integration tests
 - root processor would only contain a **ToRepository** mailet
 - transport processor would contain normal delivery logic
 - We send a mail and await it to be stored in the repository
 - We reprocess the mail to the transport processor and await task end
 - We verify the mail is well received

We can do the same operation with 2 emails.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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