
     h%                        d Z ddlZ	 ddlmZ dZdZdZdZ	d	ez   d
z   ez   dz   ez   dz   Z
dez   dz   Zdez   dz   e	z   dz   Zde
z   dz   ez   dz   e
z   dz   Zde
z   dz   ez   dz   e
z   dz   ez   dz   e
z   dz   ZdZedz   ez   dz   ez   dz   Zedz   ez   dz   Zedz   ez   ez   dz   Zdez   dz   Zdez   dz   e	z   dz   Zedz   dz   e
z   dz   ez   dz   e
z   dz   dz   ez   dz   Zdez   dz   ez   dz   Zdez   dz   Zdez   dz   e	z   dz   Zedz   dz   dz   e
z   dz   ez   dz   e
z   d z   ez   dz   Zdez   dz   ez   dz   Zed!z   ez   Zd"ez   d#z   Zd$ Zy# eef$ r
 ddlmZ Y Dw xY w)%aO   Module for validating emails.
"Forked" only the regexp part from the "validate_email", see copyright below.
The reason is that if you plan on sending out loads of emails or
doing checks can actually get you blacklisted, if it would be reliable at all.
However, this regexp is the best one I've come accross, so props to Syrus Akbary.
    N   )YagInvalidEmailAddressz[ \t]z(?:\r\n)z\x01-\x08\x0b\x0c\x0f-\x1f\x7fz(?:\\.)z(?:(?:*z)?z+)[z\x21-\x27\x2a-\x5b\x5d-\x7e]z(?:|)z\((?:?z)*z?\)z)*(?:z[\w!#$%&\'\*\+\-/=\?\^`\{\|\}~]+z+(?:\.z+)*z\x21\x23-\x5b\x5d-\x7e]z"(?:"z\x21-\x5a\x5e-\x7e]z\[z?\]@^$c                     t        j                  t        |       sdj                  |       }t	        |      d| vrd| j                         vrt	        d      yy)a>  
    Note that this will only filter out syntax mistakes in emailaddresses.
    If a human would think it is probably a valid email, it will most likely pass.
    However, it could still very well be that the actual emailaddress has simply
    not be claimed by anyone (so then this function fails to devalidate).
    z>Emailaddress "{}" is not valid according to RFC 2822 standards.	localhostzMissing dot in emailaddressN)rematchVALID_ADDRESS_REGEXPformatr   lower)email_addressemsgs     P/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/yagmail/validate.pyvalidate_email_with_regexr   d   s^     88(-8OVV$T**
-K}7J7J7L$L$%BCC %M    )__doc__r   errorr   
ValueErrorSystemErrorWSPCRLF	NO_WS_CTLQUOTED_PAIRFWSCTEXTCCONTENTCOMMENTCFWSATEXTATOMDOT_ATOM_TEXTDOT_ATOMQTEXTQCONTENTQUOTED_STRING
LOCAL_PARTDTEXTDCONTENTDOMAIN_LITERALDOMAIN	ADDR_SPECr   r    r   r   <module>r7      s  8 
--& -	#ot#e+	
	
 	y'	(E>D 	 S.4
(
*
|dW$w.
 !#&'),-*d{UT!D(4/	!E)F2$;&-4y"	#E>D tg%+	!"	 h%	
 	y11E>D u$
"#	
 "&' 
(	T	!	

&	 Y, DE 	K  -,,-s   E EE