Open Bug 1270097 Opened 8 years ago Updated 4 months ago

email_in.pl should accept that a "bug" is called "two words" in variables.none.tmpl

Categories

(Bugzilla :: Incoming Email, enhancement)

5.0.2
enhancement
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: cmigliorini, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160407164938

Steps to reproduce:

I customized variables.none.tmpl so that a "bug" is called "Change Request".


Actual results:

email_in.pl is broken: line
 if ($summary =~ /\[\S+ (\d+)\](.*)/i)

does not catch [Change Request XX] in email subject lines, so it acts as though a bug was being created


Expected results:

email_in.pl should perhaps have used variables.none.tmpl to interpret the subject line.
Assignee: general → incoming.email
Severity: normal → enhancement
Component: Bugzilla-General → Incoming Email
Quick and dirty patch. Doesn't quite change the functionality -- nor the actual issue of BugZilla accepting garbage input -- in my humble opinion, and solves the problem.

I only wish my Perl/templates skills were higher.
Please note that as it is now, bugzilla will process any email having [any_number_of_non_white_characters any_number_of_digits] in the subject line.
Attachment #9386269 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: