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/hasanfq6/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.8.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.8-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tempmail_cli-2025.5.8.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.8.tar.gz
Algorithm Hash digest
SHA256 a1d10e919cdf9cce0a93afadac07f6f27d17b1397e58631f2dce39a73f93046b
MD5 0e175166fd66eadee31f750ad2ebe5cd
BLAKE2b-256 a257fec8cb0a676608e3aea33fb8e164a13aa06d9635a0154595e00dd1899f1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tempmail_cli-2025.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 395f5404ce0e8e73e1148773fc73144f93e050ac03e362489830edd5ca3e2c7a
MD5 0d3567da216dde2ab4a9b3a4dace2402
BLAKE2b-256 689bd165d481267a94472dfacf8c4ab3af39ae3249145274a8260a5fd3725656

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