def extract_rfc2822_addresses(text):
 if (not text):
  return []
 candidates = address_pattern.findall(ustr(text).encode('utf-8'))
 return filter(try_coerce_ascii, candidates)

def extract_rfc2822_addresses ( text ) : if ( not text ) : return [ ] candidates = address_pattern . findall ( ustr ( text ) . encode ( 'utf-8' ) ) return filter ( try_coerce_ascii , candidates )
returns a list of valid rfc2822 addresses that can be found in source .