class documentation
Threaded IMAP helper so network fetches don't block the UI.
| Method | __del__ |
Destructor to clean up resources. |
| Method | __init__ |
Initialize the async IMAP helper. |
| Method | close |
Reset the helper and release the worker thread. |
| Method | fetch |
Fetch one email body in the background. |
| Method | fetch |
Fetch unread email summaries in the background. |
| Method | mark |
Mark one email seen, then refetch the unread list in one thread. |
| Property | error |
Return the last error message. |
| Property | is |
Return whether the fetch has finished. |
| Property | is |
Return whether a fetch is running. |
| Property | result |
Return the fetch result. |
| Method | _start |
Run a function in a background thread if idle. |
| Instance Variable | _error |
Undocumented |
| Instance Variable | _finished |
Undocumented |
| Instance Variable | _lock |
Undocumented |
| Instance Variable | _result |
Undocumented |
| Instance Variable | _running |
Undocumented |
| Instance Variable | _thread |
Undocumented |
Fetch one email body in the background.
| Parameters | |
fromstr | The sender email. |
fromstr | The sender app password. |
uid:str | The message UID. |
markbool | Mark the email as seen. Defaults to False. |
| Returns | |
bool | True if the thread was started. |
Fetch unread email summaries in the background.
| Parameters | |
fromstr | The sender email. |
fromstr | The sender app password. |
limit:int | Maximum number of emails. Defaults to 10. |
| Returns | |
bool | True if the thread was started. |
Mark one email seen, then refetch the unread list in one thread.
| Parameters | |
fromstr | The sender email. |
fromstr | The sender app password. |
uid:str | The message UID. |
| Returns | |
bool | True if the thread was started. |