Source: factory.core/ObjImap.py
Handle start tags encountered during parsing HTML content.
:param tag: The name of the HTML tag.
:type tag: str
:param attrs: A list of tuples representing the attributes of the tag.
...
| Method | Signature | Description |
|---|---|---|
| handle_starttag | handle_starttag(tag, attrs) |
|
| handle_endtag | handle_endtag(tag) |
|
| handle_data | handle_data(data) |
| Method | Signature | Description |
|---|---|---|
| read | read(imap_code: str = '') |
|
| insert_stage | insert_stage(imap_code) |
|
| set_inits | set_inits() |
|
| set_details | set_details(imap_code, re_subject, re_content) |
|
| list_subjects | list_subjects(folder = 'inbox') |
Lists the subjects of all emails in a specified folder from the last 7 days. |
| list_matching_subjects | list_matching_subjects(folder, search_subject, search_body) |
Lists the subjects of emails in a folder that match the given criteria. |
| createStage | createStage() |
|
| createForms | createForms() |
|
| createFormFields | createFormFields(CB) |
|
| createReports | createReports() |
|
| scan_folders | scan_folders() |
|
| scan_folder | scan_folder(tag = '', folder = 'inbox', timeslip = 8) |
|
| get_text_blocks | get_text_blocks(email_message_instance) |
|
| get_message_blocks | get_message_blocks(email_message_instance) |
|
| match_tag | match_tag(text, tag, next_tag) |
|
| clean_text | clean_text(text) |
|
| parse_text_form | parse_text_form(text) |
|
| imap_factory | imap_factory(process_type = 'attachment', remote = '', subject = '', param1 = '') |
|
| ParseGuids | ParseGuids(message, subject) |
|
| parse_mail | parse_mail(imap_id) |
|
| move_mail | move_mail(imap_id) |
|
| UpdateStage | UpdateStage() |
ObjImapSet Class Documentation
This class is a subclass of ObjSupervisor and provides methods for scanning and interacting with IMAP email accounts.
Attributes:
...
| Method | Signature | Description |
|---|---|---|
| Scan | Scan(imap_code = '%') |
|
| ActionService | ActionService(service, thread = 0, threadmax = 0) |
|
| micro_service | micro_service(ThreadCount = '0') |
Scans the IMAP email accounts and performs actions based on the defined hooks.
Runs the IMAP service in the background.
Connects to the IMAP server and lists the subjects of all emails in the specified folder.
Finds and processes emails matching the criteria for a given imap_code.
Finds emails matching the criteria for a given imap_code and lists their subjects.
Inspects the search criteria for a given imap_code from the def_imap table.
Checks the IMAP authentication using credentials from config.yaml.