src/mailto.py
def parse_query(self, query):
        """Extract existing valid and invalid email addresses from query.

        Return current query, invalid addresses and valid addresses.
        """
        query = query.lower()
        emails = []
        invalid_emails = []
        existing = []

        if ',' in query:
            emails = [s.strip() for s in query.split(',')]

            if len(emails):
                existing = []
                for email in emails[:-1]:

                    if not email_valid(email):
                        invalid_emails.append(email)

                    else:
                        existing.append(email)

                query = emails[-1]

        log.debug('existing : %r emails : %r invalid_emails : %r query : %r',
                  existing, emails, invalid_emails, query)

        return (query, invalid_emails, existing)
Extract existing valid and invalid email addresses from query.

        Return current query, invalid addresses and valid addresses.
        
Extract existing valid and invalid email addresses from query.
Return current query, invalid addresses and valid addresses.
Extract existing valid and invalid email addresses from query . Return current query invalid addresses and valid addresses .
def parse_query(self, query):
        query = query.lower()
        emails = []
        invalid_emails = []
        existing = []
        if ',' in query:
            emails = [s.strip() for s in query.split(',')]
            if len(emails):
                existing = []
                for email in emails[:-1]:
                    if not email_valid(email):
                        invalid_emails.append(email)
                    else:
                        existing.append(email)
                query = emails[-1]
        log.debug('existing : %r emails : %r invalid_emails : %r query : %r',
                  existing, emails, invalid_emails, query)
        return (query, invalid_emails, existing)
def parse_query ( self , query ) : query = query . lower ( ) emails = [ ] invalid_emails = [ ] existing = [ ] if ',' in query : emails = [ s . strip ( ) for s in query . split ( ',' ) ] if len ( emails ) : existing = [ ] for email in emails [ : - 1 ] : if not email_valid ( email ) : invalid_emails . append ( email ) else : existing . append ( email ) query = emails [ - 1 ] log . debug ( 'existing : %r emails : %r invalid_emails : %r query : %r' , existing , emails , invalid_emails , query ) return ( query , invalid_emails , existing )
Extract existing valid and invalid email addresses from query.
Extract existing valid and invalid email addresses from query .
"""Extract existing valid and invalid email addresses from query.

        Return current query, invalid addresses and valid addresses.
        """
self
query