| |
- Email.Email(builtins.object)
-
- Reader
class Reader(Email.Email) |
|
Reader(filename=None)
This class read eml file, parse the mail and extract information. |
|
- Method resolution order:
- Reader
- Email.Email
- builtins.object
Methods defined here:
- __init__(self, filename=None)
- Initialize self. See help(type(self)) for accurate signature.
- get_part(self)
- This method parse part in email.
- get_part_name(self, part, id_)
- This method get the name of a part.
- get_part_payload(self, part, filename, id_)
- This method decode email payload.
- make_email(self, email: bytes = None)
- This method parse email bytes and get important informations for analysis.
- research(self, pattern: str, regex: bool = False, keep_uppercase: bool = False, glob: bool = False)
- This method research pattern in email data and decoded part.
Methods inherited from Email.Email:
- check_email(self, email: str) -> bool
- This method check an email address.
If address is invalid this function log an error message and return None
If address is valid this function return the valid address.
- headers_to_string(self) -> str
- This method return a printable string of email headers.
- part_to_string(self, part) -> str
- This method return string of email part.
- print(self, ips: bool = True, address: bool = True, headers: bool = True, part: bool = False, attachements: bool = False, email: email.message.Message = None) -> None
- This method print a email and extract important informations.
Use it for email analysis.
- save_in_file(self, filename)
- This method save your email in file.
Data descriptors inherited from Email.Email:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |