Opened 12 years ago

Last modified 12 years ago

#10171 closed defect

CC parsing should use NotifyEmail.addrsep_re.split(ticket['cc']) — at Initial Version

Reported by: Mitar Owned by: Daniel Kahn Gillmor
Priority: normal Component: SensitiveTicketsPlugin
Severity: normal Keywords:
Cc: Mitar Trac Release: 0.12

Description

CC parsing should use NotifyEmail.addrsep_re.split(ticket['cc']) as this is what it is used by Trac:

from trac.notification import NotifyEmail

...

        if not username or username == 'anonymous':
            return False
        return (self.allow_owner and (ticket['owner'] == username)) or \
            (self.allow_reporter and (ticket['reporter'] == username)) or \
            (self.allow_cc and username in NotifyEmail.addrsep_re.split(ticket['cc']))

Change History (0)

Note: See TracTickets for help on using tickets.