📧 myl
myl is a dead simple IMAP CLI client hosted on GitHub at https://github.com/pschmitt/myl
📝 Description
myl is a command-line interface client for IMAP, designed to provide a straightforward way to interact with IMAP servers.
⭐ Features
- Simple command-line interface
- Support for various IMAP operations
- Autodiscovery of the required server and port
- Support for Google IMAP settings
- Fetch a specific number of messages
- Mark messages as seen
- Fetch messages from a specific folder
- Search for specific strings in messages
- Output HTML email
- Output raw email
- Fetch a specific mail by ID
- Fetch a specific attachment
🚀 Installation
To install myl, follow these steps:
pipx install myl
# or:
pip install --user myl
on nix you can do this:
nix run github:pschmitt/myl -- --help
🛠️ Usage
Here's how you can use myl:
myl --help
This command will display the help information for the myl command.
Here are some examples of using flags with the myl command:
# Connect to an IMAP server
myl --server imap.example.com --port 143 --starttls --username "$username" --password "$password"
# Use Google IMAP settings
myl --google --username "$username" --password "$password"
# Autodiscovery of the required server and port
myl --auto --username "$username" --password "$password"
# We won't repeat the server connection flags from here
alias myl="command myl --auto --username \"$username\" --password \"$password\""
# Fetch a specific number of messages
myl --count 5
# Mark messages as seen
myl --mark-seen
# Fetch messages from a specific folder
myl --folder "INBOX"
# Search for specific strings in messages
myl --search "important"
# Fetch a specific mail ID
myl "$MAILID"
# Show HTML
myl --html "$MAILID"
# raw email
myl --raw "$MAILID" > email.eml
# Fetch a specific attachment (outputs to stdout)
myl "$MAILID" "$ATT" > att.txt
Please replace imap.example.com, $username, $password, $MAILID,
and $ATT with your actual IMAP server details, username, password,
mail ID, and attachment name.
📜 License
This project is licensed under the GPL-3.0 license.
Metadata
Release files for myl 0.9.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| myl-0.9.9.tar.gz | 47.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| myl-0.9.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 79.0 kB
Release files / myl-0.9.9.tar.gz
| Download URL | myl-0.9.9.tar.gz |
|---|---|
| Size | 47.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
22346437dbd2e6d7d43ba23d465156ed69186bb9731eee434c2191c0024177d1
|
|
BLAKE2b-256 checksum How to use checksums |
40d026f5039a17502aaa9f015b296cb9378db9b09b66cc0df75200841e9f8e16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency logRelease files / myl-0.9.9-py3-none-any.whl
| Download URL | myl-0.9.9-py3-none-any.whl |
|---|---|
| Size | 31.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a000938f925abd9d6281855fed570a0453290a0936995e5c124cd8a440903724
|
|
BLAKE2b-256 checksum How to use checksums |
cc3491ca3ef5d914fd6b44fa743e2698239a2ca9cb83890d2df7f7df34375e49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.
Transparency log