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

add a hook to allow modules to handle sending emails #829

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jesopo
Copy link
Member

@jesopo jesopo commented Sep 15, 2021

placement of the hook call may be controversial, returning -1 to avoid falsiness but not get in the way of exit codes may also be controversial

Copy link
Contributor

@jillest jillest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Depending on what you need this for, it may make more sense to use a plain function pointer rather than hooks (like protocol modules).

};
hook_call_sendemail(&hdata);
if (hdata.handled)
return -1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in is not closed here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this hook call should be before validating the email type so the email handling hook can decide if it's valid or not

@jesopo jesopo marked this pull request as draft January 14, 2022 00:05
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

Successfully merging this pull request may close these issues.

None yet

3 participants