Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-2749

User deletion process: every mail is stored in admins outbox

    XMLWordPrintable

    Details

      Description

      When sending mails regarding the deletion of user accounts every mail is stored in the outbox of the administrator. In our case these are hundreds of mails every week. The following patch avoids that and keeps the outbox clean:

      diff --git a/src/main/java/org/olat/admin/user/delete/service/UserDeletionManager.java b/src/main/java/org/olat/admin/user/delete/service/UserDeletionManager.java
      --- a/src/main/java/org/olat/admin/user/delete/service/UserDeletionManager.java
      +++ b/src/main/java/org/olat/admin/user/delete/service/UserDeletionManager.java
      @@ -149,7 +149,7 @@
       				logDebug(" Try to send Delete-email to identity=" + identity.getName() + " with email=" + identity.getUser().getProperty(UserConstants.EMAIL, null));
       				
       				MailerResult result = new MailerResult();
      -				MailBundle bundle = mailManager.makeMailBundle(null, identity, template, sender, null, result);
      +				MailBundle bundle = mailManager.makeMailBundle(null, identity, template, null, null, result);
       				if(bundle != null) {
       					mailManager.sendMessage(bundle);
       				}
      

      The mail is sent to the user but is not stored in the outbox of the administrator.

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            stephan Stephan Clemenz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 10 minutes
                10m