Skip to main content

A command-line tool for managing temporary email accounts

Project description

TempMail CLI

A command-line tool for managing temporary email accounts using the mail.tm API.

Features

  • Create and manage multiple temporary email accounts
  • Monitor inbox for new messages
  • Read, delete, and mark messages as read
  • Interactive mode for easier email management
  • Persistent storage of accounts

Installation

pip install tempmail-cli

Or install from source:

git clone https://github.com/yourusername/tempmail-cli.git
cd tempmail-cli
pip install -e .

Usage

Basic Commands

# Create a new email account
tempmail create

# Create with custom alias
tempmail create --alias myemail

# List all accounts
tempmail list

# Switch to a specific account
tempmail use myemail

# Check inbox of current account
tempmail inbox

# Check inbox with full message content
tempmail inbox --full

# Read a specific message (can use partial ID)
tempmail read abc123

# Delete a specific message
tempmail delete-message abc123

# Monitor inbox for new messages
tempmail monitor

# Start interactive mode
tempmail interactive

# Show current account information
tempmail info

Interactive Mode

Interactive mode provides a shell-like interface for managing emails:

> help
Available commands:
  list, ls       - List recent messages
  read <id>      - Read a message by ID
  delete <id>    - Delete a message by ID
  mark <id>      - Mark a message as read
  refresh, r     - Refresh message list
  monitor, m     - Monitor inbox for new messages
  info, i        - Show account information
  exit, quit, q  - Exit interactive mode

Configuration

All account data is stored in ~/.tempmail/ directory:

  • accounts.json: Stores all account information
  • current_account.json: Stores the currently selected account

License

MIT

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

tempmail_cli-2025.5.7.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

tempmail_cli-2025.5.7-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file tempmail_cli-2025.5.7.tar.gz.

File metadata

  • Download URL: tempmail_cli-2025.5.7.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for tempmail_cli-2025.5.7.tar.gz
Algorithm Hash digest
SHA256 55ee0d84de7b3f8c2977aeebb698d523539eff1a5ac246a5897cb77c98e831bc
MD5 d41d8a9f1ecdadc862e5e964ce030d84
BLAKE2b-256 73a829ac5833a5bf40a97fe7be36823bf33561441396eb0847bdbe8e030b8dbf

See more details on using hashes here.

File details

Details for the file tempmail_cli-2025.5.7-py3-none-any.whl.

File metadata

File hashes

Hashes for tempmail_cli-2025.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d0fcb1fe8d5ee7873ffcf297c276ffa66b6a2ade45d4e940b401157cbf2f1971
MD5 ae1a5db1f4b942f6e0e996bae537599c
BLAKE2b-256 7345ec63ac314db5345736f341cd997f43d2ccaf3d75acd1c1a59676a6d6a3ee

See more details on using hashes here.

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