From dc7395379aee87d98692a15e29a64055fc02801d Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 4 Nov 2010 18:09:30 +0100 Subject: Bug 596611: Add a hook to email_in.pl r/a=mkanat --- Bugzilla/Hook.pm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'Bugzilla') 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 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 starts parsing its content. + +=over + +=item C - An Email::MIME object. The decoded incoming email. + +=item C - 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. 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 - A hashref. The hash containing the extracted field data. + +=back + =head2 enter_bug_entrydefaultvars B - Use L instead. -- cgit v1.2.3-24-g4f1b