Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

High-Level IMAP library for Python

Tags:

python

imap

Is there a high-level IMAP library for Python?

With high-level I mean, that I do not want a library where I can issue basic IMAP commands (like Python's own imaplib). What I want, is library that cares about most of the IMAP details and gives me a more generic interface with objects for folders/mailboxes and messages. Additionally, it would be nice if it supports the disconnected mode of operation (offline mode) transparently.

like image 624
Michael Avatar asked Jun 25 '26 09:06

Michael


1 Answers

You may use imap_tools package: https://pypi.org/project/imap-tools/

Features:

  • Basic message operations: fetch, uids, numbers
  • Parsed email message attributes
  • Query builder for searching emails
  • Actions with emails: copy, delete, flag, move, append
  • Actions with folders: list, set, get, create, exists, rename, subscribe, delete, status
  • IDLE commands: start, poll, stop, wait
  • Exceptions on failed operations
  • No external dependencies
like image 96
Vladimir Avatar answered Jun 27 '26 23:06

Vladimir



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!