Skip to main content

CheapChocolate is an simple imap client to receive you daily email.

Project description

🍫 cheapchocolate v0.6.0

CheapChocolate is an simple imap client to receive you daily email.

Installation

You can install directly in your pip:

pip install cheapchocolate

I recomend to use the uv, so you can just use the command bellow and everything is installed:

uv add cheapchocolate
uv run cheapchocolate --version

But you can use everything as a tool, for example:

uvx cheapchocolate --version

How to use

Set up your information in the .env file for your imap server, your user and password.

cheapchocolate start

You can run cheapchocolate start, and it will create the file for you.

By default, receiving mail preserves the remote read/unread status of each message. CheapChocolate downloads messages with a non-mutating IMAP fetch, so unread messages stay unread on the server and read messages stay read.

To opt into the previous behavior where received messages can be marked read on the remote mailbox, set mails.remote_read_state in your CheapChocolate config.yaml:

mails:
  days_to_fetch: 1
  remote_read_state: mark_read

The safe default is:

mails:
  remote_read_state: preserve

For a one-off receive run, override the saved setting from the command line:

cheapchocolate start --remote-read-state preserve
cheapchocolate start --remote-read-state mark_read

You can still receive a specific folder with the same read-state override:

cheapchocolate start --folder inbox --remote-read-state preserve

See Also

License

This package is distributed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cheapchocolate-0.6.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cheapchocolate-0.6.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file cheapchocolate-0.6.0.tar.gz.

File metadata

  • Download URL: cheapchocolate-0.6.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cheapchocolate-0.6.0.tar.gz
Algorithm Hash digest
SHA256 5e5ee64e3055933968f78310a5de1a3c18fa16e7405b2d4d567d7ab3ae4ebdd4
MD5 d441495ce0519d71cd33b94e00670872
BLAKE2b-256 84910e6b9b43abebfc5a40ba790a9b3263174fb913d852464588c0ee46045f21

See more details on using hashes here.

Provenance

The following attestation bundles were made for cheapchocolate-0.6.0.tar.gz:

Publisher: publish-pypi.yml on bouli/cheapchocolate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cheapchocolate-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: cheapchocolate-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cheapchocolate-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a119ecea86442d99f14c369e635ae748def8e0eba49ee7950a65b86bfea96560
MD5 dc6fb2e02a27d076b95dd3c2dc00e68e
BLAKE2b-256 71f07952b93e174426627aa5b367f124b36b86842316b61bbf1f1ba3d66c676a

See more details on using hashes here.

Provenance

The following attestation bundles were made for cheapchocolate-0.6.0-py3-none-any.whl:

Publisher: publish-pypi.yml on bouli/cheapchocolate

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page