-
Notifications
You must be signed in to change notification settings - Fork 262
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
feat: apply personal out-of-office data to the auto responder #9077
Conversation
a5fe9c2
to
f1afc7d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing
We will need to suppress some missing classes for Psalm
Psalm is still not happy |
/backport to stable3.5 |
} | ||
|
||
public function handle(Event $event): void { | ||
if (!($event instanceof OutOfOfficeStartedEvent) && !($event instanceof OutOfOfficeEndedEvent)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently not covered: ooo changed event. listening to that would allow Mail to reflect changes to the ooo message when ooo is ongoing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the current feature set is fine for an mvp. we can add change propagation later.
OCP packages were outdated. Psalm passes now after rerun. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested & works
It's also super nice to see that the same account configured on an installation of this branch is compatible with a 3.5.0rc1 installation. The other installation still recognizes the autoresponder as enabled with the data set from the new automation.
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6f8c0fb
to
3cbdf1f
Compare
/backport to stable3.5 |
Fix #8925
Requires nextcloud/server#41440
I had to move the sieve "parser" to the backend. There should be no regressions and it should behave exactly like before. Proof: I moved all tests and test data to the backend and they all pass without modifications.
Note: This PR looks huge but to be fair there are a lot of tests and test data.
TODO