
    ,h                     2    d dl mZ ddlmZ  G d de      Zy)    )Parser   )
BaseParserc                       e Zd ZdZd Zy)r   zoExtract text from email messages in .eml format. This gets the
    subject and all text from the contents.
    c                 F   t        |      5 }t               }|j                  |      }d d d        g }j                         D ]A  }|j	                         j                  d      s#|j                  |j                                C dj                  |      S # 1 sw Y   pxY w)Nz
text/plainz

)	openEmailParserparsewalkget_content_type
startswithappendget_payloadjoin)selffilenamekwargsstreamparsermessagetext_contentparts           ]/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/textract/parsers/eml_parser.pyextractzParser.extract   s     (^ 	+v ]Fll6*G	+ LLN 	8D$$&11,?##D$4$4$67	8 {{<((	+ 	+s   BB N)__name__
__module____qualname____doc__r        r   r   r      s    )r    r   N)email.parserr   r	   utilsr   r   r    r   <module>r#      s    . )Z )r    