Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

3 participants