# mail-parser > Parse raw SMTP email messages and extract headers, body, and attachments **Category:** [[categories/analyze-documents-email-messages|Analyze Documents > Email Messages]] | **Tier:** Rich (FOR610) **Docs:** [https://docs.remnux.org/discover-the-tools/analyze+documents/email+messages](https://docs.remnux.org/discover-the-tools/analyze+documents/email+messages) ## Usage ```bash python3 -c "import mailparser; mail = mailparser.parse_from_file(''); print(mail.subject)" ``` ## Workflows - [[workflows/email-analysis-workflow|Email & Phishing Analysis]] — Step 1: Header Analysis ## Related Tools - [[tools/emldump|emldump.py]] — Parse and analyze EML email message files - [[tools/msg-extractor|msg-extractor]] — Extract emails and attachments from Microsoft Outlook MSG fi - [[tools/msgconvert|msgconvert]] — Convert MSG files to MBOX files. #email #parsing #attachments