def email_to_group_id(address):
 address = address.split('@', 1)[0]
 signed_data = address.replace('+', ':')
 return int(force_bytes(signer.unsign(signed_data)))

def email_to_group_id ( address ) : address = address . split ( '@' , 1 ) [ 0 ] signed_data = address . replace ( '+' , ':' ) return int ( force_bytes ( signer . unsign ( signed_data ) ) )
email address should be in the form of: {group_id}+{signature}@example .