Development Guides Home >> Guide to Standardized Hooks >> Hookable Events
Guide to Standardized Hooks - Scripts Functions
The scripts
category's events occur when email scripts run.
addpop
This event takes place when the /usr/local/cpanel/scripts/addpop
script creates the email account.
Information
-
Action code runs as:
root
- Blocking attribute: Available.
- Escalate privileges attribute: Unavailable.
Available stages
-
pre
— Hook action code runs before theaddpop
script creates the email account. -
post
— Hook action code runs after theaddpop
script creates the email account.
Returns
The pre
and post
stages do not produce output.
delpop
This event takes place when the /usr/local/cpanel/scripts/delpop
script deletes the email account.
Information
-
Action code runs as:
root
- Blocking attribute: Available.
- Escalate privileges attribute: Unavailable.
Available stages
-
pre
— Hook action code runs before thedelpop
script deletes the email account. -
post
— Hook action code runs after thedelpop
script deletes the email account.
Returns
The pre
and post
stages do not produce output.