Closed Bug 41303 Opened 25 years ago Closed 25 years ago

new email tech doesn't work with emailregexp

Categories

(Bugzilla :: Bugzilla-General, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.12

People

(Reporter: JRobertson, Assigned: Chris.Yeh)

Details

(Whiteboard: 2.12)

Attachments

(2 files)

The new email tech doesn't seem to work with emailregexp. It just sends the email to login_name, without adding emailsuffix. Since bugzilla is running on a separate machine from our email server, sendmail just reports 'user not found' or some such. None of our bugzilla users have accounts on the actual bugzilla machine. :)
This problem also extended itself to the CC list for the new email tech as well. I'm attaching a patch that corrects this. I'm not sure if it is how mozilla would implement it. But I like it (and that's why I'm using it! :) At the end of NewProcessOneBug, just before NewProcessOnePerson is called, I check the format of the person's address using a reg expression that I stole from defparams ("^[^@, ]*@[^@, ]*\.[^@, ]*$"), which basically checks to see if the address matches x@x.x If the name does not match that expression, then I append emailsuffix to the name. This corrects the above problems *and* allows someone outside of the emailsuffix to be put in the CC list.
Darn. The first diff was a unified diff and it contained some commented test code from the first modification I tried. I'm really sorry... I'll get the hang of this soon I hope... Here comes another patch.
Chris -- you want to have a look at this one?
Assignee: tara → cyeh
Whiteboard: 2.12
committed to trunk
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Sorry for the spam, but I needed to be able to query for all of these correctly.
Target Milestone: --- → Bugzilla 2.12
Moving closed bugs to Bugzilla product
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: other → unspecified
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: