| |
- builtins.object
-
- Email
- enum.Enum(builtins.object)
-
- Constantes
class Constantes(enum.Enum) |
|
Constantes(value, names=None, *, module=None, qualname=None, type=None, start=1)
An enumeration. |
|
- Method resolution order:
- Constantes
- enum.Enum
- builtins.object
Data and other attributes defined here:
- REGEX_EMAIL = <Constantes.REGEX_EMAIL: '([a-zA-Z0-9 ]* ?[<][\\...2,4}[>])|([\\w\\.+-]+@([\\w-]+\\.)+[\\w-]{2,4})'>
Data descriptors inherited from enum.Enum:
- name
- The name of the Enum member.
- value
- The value of the Enum member.
Readonly properties inherited from enum.EnumMeta:
- __members__
- Returns a mapping of member name->value.
This mapping lists all enum members, including aliases. Note that this
is a read-only view of the internal mapping.
|
class Email(builtins.object) |
|
This class define email attributs and email methods. |
|
Methods defined here:
- __init__(self)
- Initialize self. See help(type(self)) for accurate signature.
- 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 defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |