Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In grails 6, emails are not deleted #7

Open
EnriqueSah opened this issue Nov 21, 2024 · 0 comments
Open

In grails 6, emails are not deleted #7

EnriqueSah opened this issue Nov 21, 2024 · 0 comments

Comments

@EnriqueSah
Copy link

EnriqueSah commented Nov 21, 2024

When setting asynchronous.mail.clear.after.sent = true

The value received is a String instead of a boolean, so, when it enters this method:

private static List<Boolean> getAsynchronousMailDeletingOptionsFromValue(value) {
        switch(value){
            case 'attachments':
                return [false,true]
            case true:
                return [true,false]
            case false:
                return [false,false]
            default:
                return [false,false]
        }
    }

It goes to the default value because it is "true" instead of true.

I suggest modifying it so it is:

case true:
case "true":
...
case false:
case "false":
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant