Modify

Opened 6 years ago

#8829 new defect

allow user name with email

Reported by: Steven R. Loomis Owned by: Max Stewart
Priority: normal Component: TicketValidatorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

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

Index: ticketvalidator/ticketvalidator.py
===================================================================
--- ticketvalidator/ticketvalidator.py	(revision 10228)
+++ ticketvalidator/ticketvalidator.py	(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)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Max Stewart.

Add Comment


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

 
Note: See TracTickets for help on using tickets.