Cargo Features

[dependencies]
imap-codec = { version = "2.0.0-alpha.1", default-features = false, features = ["bounded-static", "fuzz", "starttls", "ext_condstore_qresync", "ext_login_referrals", "ext_mailbox_referrals", "ext_id", "ext_sort_thread", "ext_binary", "ext_metadata", "ext_uidplus", "quirk_crlf_relaxed", "quirk_rectify_numbers", "quirk_missing_text", "quirk_id_empty_to_nil", "quirk_trailing_space", "serde"] }
default = quirk_missing_text, quirk_rectify_numbers, quirk_trailing_space

These default features are set whenever imap-codec is added without default-features = false somewhere in the dependency tree.

bounded-static

<Forward to imap-types>

Enables bounded-static ^0.5.0, bounded-static of imap-types

Affects decode::Decoder.decode_static

fuzz

Expose internal parsers for fuzzing

Affects core::fuzz_tag_imap, imap-codec::fuzz

starttls

IMAP

Enables starttls of imap-types

ext_condstore_qresync

IMAP Extensions

Enables ext_condstore_qresync of imap-types

ext_login_referrals

Enables ext_login_referrals of imap-types

ext_mailbox_referrals

Enables ext_mailbox_referrals of imap-types

ext_id

Enables ext_id of imap-types

Affects extensions::id

ext_sort_thread

Enables ext_sort_thread of imap-types

Affects extensions::sort, extensions::thread

ext_binary ext_metadata?

Enables ext_binary of imap-types

Affects extensions::binary

ext_metadata = ext_binary

Enables ext_metadata of imap-types

Affects extensions::metadata

ext_uidplus

Enables ext_uidplus of imap-types

Affects extensions::uidplus

quirk_crlf_relaxed

</Forward to imap-types>

IMAP quirks

These features bypass interoperability issues to allow safe processing of almost correct message.

Make \r in \r\n optional.

quirk_rectify_numbers default

Rectify (invalid) numbers. Observed in ...

  • Dovecot (-1)
quirk_missing_text default

Add missing text by adding [" "] "". Observed in ...

  • Gmail * OK [HIGHESTMODSEQ <n>]\r\n
quirk_id_empty_to_nil

Encode A ID () as `A ID NIL Observed in ...

  • GMX
  • Microsoft Exchange
quirk_trailing_space default

Accept a trailing space in STATUS data response. Observed in ...

  • Microsoft Exchange * STATUS INBOX (MESSAGES 100 UNSEEN 0) \n\n

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework