Edgewall Software

Ticket #3212: trac_notification_addr_fmt_broken_in_r3406.patch

File trac_notification_addr_fmt_broken_in_r3406.patch, 0.5 KB (added by david.l.jones@…, 3 years ago)

Patch to allow + and = in email addresses

  • notification.py

     
    135135    server = None 
    136136    email_map = None 
    137137    template_name = None 
    138     addrfmt = r"[\w\d_\.\-]+\@(([\w\d\-])+\.)+([\w\d]{2,4})+" 
     138    addrfmt = r"[\w\d_\.\-\+=]+\@(([\w\d\-])+\.)+([\w\d]{2,4})+" 
    139139    shortaddr_re = re.compile(addrfmt) 
    140140    longaddr_re = re.compile(r"^\s*(.*)\s+<(" + addrfmt + ")>\s*$"); 
    141141    nodomaddr_re = re.compile(r"[\w\d_\.\-]+")