Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17971

Add ability to resend emails synchronously

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 12.10
    • 11.10
    • Mail
    • None
    • Unit
    • Unknown

    Description

      Imagine that you have millions of emails to resend. If you try to resend them asynchronously then the prepare and send queues will reach their full capacity and will refuse more emails, leading to an exception. In addition if you increase the queue sizes to a large value then you'll hit a memory issue since the queues are in memory.

      Thus it's interesting to be able to resend emails one by one in this case.

      Note that a future improvement will be to be able to resend by batches, ie. batches of max queue sizes, but there might still be use cases for resending synchronously one by one if you wish to keep a low memory usage and if your code is executed in a separate thread.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: