Uh oh!
There was an error while loading. Please reload this page.
Add Mailer events - #14722
Conversation
I think the last failures are independent of the commits. The second is not failing in the last build |
kesselb
commented
Mar 16, 2019
@rullzer there are no hooks in \OC\Mail. Could we use Events instead of Hooks here? |
Uh oh!
There was an error while loading. Please reload this page.
tacruc
commented
Mar 19, 2019
@kesselb cloud you add the to review flag? |
tacruc
commented
Apr 27, 2019
@kesselb can you help me, where I can find more information about events. It is important that the email is not send until the call to the app is finished, otherwise an unencrypted email is send. |
tacruc
commented
May 16, 2019
I have changed it, to not create a hook, but use the dispatcher to dispatch a event \OC\Mail::preSendMessage |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| $this->dispatcher->dispatch('\OC\Mail::preSendMessage', | ||
| new GenericEvent(null, [ |
There was a problem hiding this comment.
Hmm. Not sure about this one but i would pass $message as $subject to GenericEvent instead of null.
There was a problem hiding this comment.
Where would be the place to document the event? Or is there a list of all available events?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tacruc
commented
May 21, 2019
@nextcloud/documentation Is there a place where all the available events are documented? For the available Hooks there is but I cloudn't find something for events. |
tacruc
commented
Sep 2, 2019
rebased to master |
ChristophWurst
commented
Jan 16, 2020
As just discussed we should
(exposing an abstraction of Swift is a lot of work and not worth the effort here) Example event: https://github.com/nextcloud/server/blob/master/lib/public/User/Events/BeforeUserDeletedEvent.php |
ChristophWurst
left a comment
There was a problem hiding this comment.
Indentation is off in a few places. Could you check those as well?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tacruc
commented
Jan 20, 2020
Found three errors in 2 files, did I miss some place? |
ChristophWurst
left a comment
There was a problem hiding this comment.
Update @since tags. Otherwise fine by me 👍
| use OCP\Mail\IMessage; | ||
| /** | ||
| * @since 18.0.0 |
There was a problem hiding this comment.
| * @since 18.0.0 | |
| * @since 19.0.0 |
Signed-off-by: Arne Hamann <kontakt+github@arne.email>
cc8e336 to
a16aa99CompareRef nextcloud/server#19845 Ref nextcloud/server#19890 Ref nextcloud/server#19075 Ref nextcloud/server#19670 Ref nextcloud/server#19412 Ref nextcloud/server#14722 Ref nextcloud/server#19746 Ref nextcloud/server#19321 Ref nextcloud/server#19569 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Ref #1951 Ref nextcloud/server#19845 Ref nextcloud/server#19075 Ref nextcloud/server#14722 Ref nextcloud/server#19321 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
MorrisJobke
commented
Oct 29, 2020
ref #14552 |
I'm working on an APP implementing the ability to send encrypted emails to registered users #7310.
Therefor a two small modifications are needed.
The rest is fixing a bug if swiftMessage->getX() is returning NULL