summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-11-04 18:09:30 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2010-11-04 18:09:30 +0100
commitdc7395379aee87d98692a15e29a64055fc02801d (patch)
tree6384ad244c45e3f48ed241cba2f64c22c9aeae44 /Bugzilla
parenta3c3abffe5a964685d596a82261fde79b416107a (diff)
downloadbugzilla-dc7395379aee87d98692a15e29a64055fc02801d.tar.gz
bugzilla-dc7395379aee87d98692a15e29a64055fc02801d.tar.xz
Bug 596611: Add a hook to email_in.pl
r/a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Hook.pm28
1 files changed, 28 insertions, 0 deletions
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index 8958b7785..f6fff241a 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -569,6 +569,34 @@ L</config_add_panels> if you want to add new panels.
=back
+=head2 email_in_before_parse
+
+This happens right after an inbound email is converted into an Email::MIME
+object, but before we start parsing the email to extract field data. This
+means the email has already been decoded for you. It gives you a chance
+to interact with the email itself before L<email_in> starts parsing its content.
+
+=over
+
+=item C<mail> - An Email::MIME object. The decoded incoming email.
+
+=item C<fields> - A hashref. The hash which will contain extracted data.
+
+=back
+
+=head2 email_in_after_parse
+
+This happens after all the data has been extracted from the email, but before
+the reporter is validated, during L<email_in>. This lets you do things after
+the normal parsing of the email, such as sanitizing field data, changing the
+user account being used to file a bug, etc.
+
+=over
+
+=item C<fields> - A hashref. The hash containing the extracted field data.
+
+=back
+
=head2 enter_bug_entrydefaultvars
B<DEPRECATED> - Use L</template_before_process> instead.