tmpmail

📬 A temporary email right from your terminal written in POSIX sh

Github星跟蹤圖

tmpmail is a command line utility written in POSIX sh that allows you to create a temporary email address
and receive emails to the temporary email address. It uses 1secmail's API
to receive emails.

By default, emails will be generated by random unless the --generate argument is followed by the desired email address.

By default w3m is used to render the HTML emails on the terminal.
But if you prefer another text based web browser or would rather view the email in a GUI web browser such as Firefox, simply
use the --browser argument followed by the command needed to launch the web browser of your choice.

Dependencies

  • w3m
  • curl
  • jq

Installation

Install locally

# Download the tmpmail file and make it executable
$ curl -L "https://git.io/tmpmail" > tmpmail && chmod +x tmpmail

# Then move it somewhere in your $PATH. Here is an example:
$ mv tmpmail ~/bin/

AUR

tmpmail is available on the AUR, which is currently being maintained by Benjamin Bädorf

$ yay -S tmpmail-git

Usage

$ tmpmail --help
tmpmail
tmpmail -h, --version
tmpmail -g [ADDRESS]
tmpmail [-t, -b BROWSER] -r, ID

When called with no option and no argument, tmpmail lists the messages in
the inbox and their numeric IDs.  When called with one argument, tmpmail
shows the email message with specified ID.

-b, --browser BROWSER
        Specify BROWSER (default: w3m) that is used to render the HTML of
        the email
-g, --generate [ADDRESS]
        Generate a new email address, either the specified ADDRESS, or
        randomly create one
-h, --help
        Show help
-r, --recent
        View the most recent email message
-t, --text
        View the email as raw text, where all the HTML tags are removed.
        Without this option, HTML is used.
--version
        Show version

Examples

Create random email

$ tmpmail --generate
xoithrjagpx@1secmail.net

Create custom email

$ tmpmail --generate mycustomemail@1secmail.com
mycustomemail@1secmail.com

View the inbox

$ tmpmail
[ Inbox for wdebivbyjor@1secmail.com ]

83414443   username@example.com   Test Email

View the email

$ tmpmail 83414443

View the most recent email

$ tmpmail -r

View emails as pure text

$ tmpmail -t 83414443
To: wdebivbyjor@1secmail.com
From: username@example.com
Subject: Test Email

Hello World

Credits

This script is heavily inspired by Mitch Weaver's 1secmail script

主要指標

概覽
名稱與所有者sdushantha/tmpmail
主編程語言Shell
編程語言Shell (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2020-09-13 11:21:50
推送於2024-08-17 14:43:42
最后一次提交2022-05-06 15:22:41
發布數6
最新版本名稱v1.2.3 (發布於 2022-05-05 15:56:48)
第一版名稱v1.1.4 (發布於 )
用户参与
星數3.9k
關注者數47
派生數158
提交數174
已啟用問題?
問題數0
打開的問題數0
拉請求數34
打開的拉請求數0
關閉的拉請求數14
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?