Opened 5 years ago

#8829 new defect

allow user name with email

Reported by: Srl295 Owned by: superafroman
Priority: normal Component: TicketValidatorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


not just u@… but Some User <u@…>

Index: ticketvalidator/
--- ticketvalidator/	(revision 10228)
+++ ticketvalidator/	(working copy)
@@ -91,5 +91,7 @@
         if len(email) > 7:
             if re.match("^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,6}$", email) != None:
                 return True
+            if re.match("^[^<]*<[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,6}>$", email) != None:
+                return True
         return False

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

as new The owner will remain superafroman.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.