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

Support for server side rules or custom listeners #418

Open
michal-kroliczek opened this issue Nov 26, 2021 · 1 comment
Open

Support for server side rules or custom listeners #418

michal-kroliczek opened this issue Nov 26, 2021 · 1 comment

Comments

@michal-kroliczek
Copy link

Hi. I know this is just bad but in current application there are some Outlook Exchange server rules which moves mails from Inbox to other folders.

Is that possible to achieve it with GreenMail? Maybe kind of listeners that are fired once email is received and take actions before it is ready for regular clients?

@marcelmay
Copy link
Member

You might try to hook into the message delivery via MessageDeliveryHandler mechanism.

Here's an example: ExampleUndeliverableTest.java

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

2 participants