Skip to content

Releases: ikvk/imap_tools

v1.15.0

Choose a tag to compare

@ikvk ikvk released this 06 Aug 10:26

Some servers reject an explicit CHARSET, use None for them

  • Changed: BaseMailBox.uids arg charset: is optional now.
  • Changed: BaseMailBox.numbers arg charset: is optional now.

v1.14.0

Choose a tag to compare

@ikvk ikvk released this 24 Jul 06:26
  • Added: BaseMailBox.fetch arg uid_list: UIDs for fetch. If set: (criteria, charset, sort) will be ignored, SEARCH will not be used.
  • Added: BaseMailBox.fetch star in args after charset arg.
  • Added: consts.DEFAULT_EMAIL_DATE - useful for detect is date valid or unparsable.
  • Added: ruff

v1.13.0

Choose a tag to compare

@ikvk ikvk released this 12 May 07:16
  • Added: MailBoxFolderManager.unset - Unselect current folder, raises MailboxFolderUnselectError
  • Added: ValueError at MailBoxFolderManager.status - Folder argument are not specified and current folder is unset

v1.12.1

Choose a tag to compare

@ikvk ikvk released this 20 Apr 06:45
  • Fixed: BaseMailBox.login now quotes username to handle special IMAP characters (e.g. *)

v1.12.0

Choose a tag to compare

@ikvk ikvk released this 13 Apr 11:51
  • Changed: MailMessage.headers now are lazy dict-like mapping - LazyHeaders. It fetches header values when accessed only.
    Actually it is braking change, but in most cases it will works with old code.
    The change saves memory and processor time.

v1.11.1

Choose a tag to compare

@ikvk ikvk released this 15 Jan 08:27
  • Added: __all__ in __init__ module.
  • Improved: typing annotations for mypy

v1.11.0

Choose a tag to compare

@ikvk ikvk released this 30 Jun 05:48
  • Renamed: MailBoxTls -> MailBoxStartTls
  • Changed: MailBoxStartTls now uses 143 port by default
  • Changed: MailBoxStartTls now not works with 993 port (ValueError)

v1.10.0

Choose a tag to compare

@ikvk ikvk released this 05 Feb 13:21
  • Added: support IMAP command MOVE at BaseMailBox.move
  • Added: MailboxMoveError, raises from BaseMailBox.move when MOVE command is supported
  • Added: chunks argument for BaseMailBox.(copy,move,flag,delete) methods - Number of UIDs to proc at once, to avoid server errors on large set
  • Changed: BaseMailBox.(copy,move,flag,delete) result types
  • Changed: utils.clean_uids now returns List[str]
  • Changed: utils.chunks_crop -> utils.chunked_crop, n arg renamed to chunk_size and it takes False-like vals
  • Renamed: utils.chunks -> utils.chunked

v1.9.1

Choose a tag to compare

@ikvk ikvk released this 17 Jan 08:46
  • Replaced: functools.lru_cache to functools.cached_property
  • Replaced: .format() to f''
  • Optimized: speed for imap_utf7
  • Replaced: typing.AnyStr to utils.StrOrBytes

v1.9.0

Choose a tag to compare

@ikvk ikvk released this 10 Jan 05:17
  • Added: __str__ to MailAttachment
  • Fixed: MailMessage.text parser - text with inline attachments case
  • Fixed: MailMessage.html parser - html with inline attachments case
  • Dropped: support py3.3,py3.4,py3.5,py3.6,py3.7