Check email with python & filter with search criteria

Connect to the specified email account and print all emails in the Inbox. If set, filter the emails by search criteria.

Usage api:

https://search-email.dokku.karmacomputing.co.uk/docs # then press 'try it'

Usage command line:

    export email_host=email.example.com
    export [email protected]
    export email_passord="secret"

    python -i main.py
    search_email()

Usage with search criteria:

    export email_host=email.example.com
    export [email protected]
    export email_passord="secret"

    export imap_search_subject="Example subject"
    export imap_search_unseen=1 # only show unseen/unread emails
    export imap_search_since_date="22-Jul-2012"

    python -i main.py
    search_email()

GitHub

GitHub - KarmaComputing/search-email-api: Search email inbox with python and filter with search criteria via IMAP4 and fastapi or console
Search email inbox with python and filter with search criteria via IMAP4 and fastapi or console - GitHub - KarmaComputing/search-email-api: Search email inbox with python and filter with search cri...