32 C
Jaipur
Tuesday, October 27, 2020

Create A Temporary Email From The Command Line With tmpmail

Must read

Delete Now! – These 21 Apps with more than 7 Million Downloads

Researchers found 21 malicious adware apps on Google play that disguised as gaming apps. These apps have adware hidden by design and have anti-uninstall...

Samsung Galaxy S21 May Not Ship with Charger and Earphones in the Box

Earlier this month, Apple stopped bundling EarPods and power adapter with the iPhone 12 series and its existing range of devices. While we’ve been...

Why Facebook Isn’t Launching Cloud Gaming Service For iOS?

Facebook is rolling out its beta cloud gaming service for everyone, except iOS users, in several parts of the U.S. The service is free...

tmpmail is a new command line utility for creating a temporary email address that you can use to avoid spam and protect your online privacy.

The tool makes use of 1secmail’s (a disposable email service) API to receive the emails, and has only 3 dependencies: w3m, curl and jq.

Once installed, you can use the tmpmail command to generate a new email address (-g, --generate), view the most recent email received by the temporary email address (-r, --recent) with the option of removing HTML tags (-t, --text), and specify the web browser of your choice to render the HTML of the email (-b, --browser) instead of using the default w3m browser.

tmpmail lacks the ability to download email attachments, even though the 1secmail API supports it. It’s also worth noting that you can’t use this to send emails (either new or reply to received emails), as this isn’t supported by the 1secmail service.

Installation and usage

To use tmpmail, make sure w3m, curl and jq are installed on your system. You’ll also need to install git to get the tmpmail code from GitHub.

Install these packages on Debian / Ubuntu / Linux Mint, Fedora or Arch Linux / Manjaro:

  • Debian / Ubuntu / Linux Mint, and other Debian or Ubuntu based Linux distributions:

sudo apt install w3m curl jq git
sudo dnf install w3m curl jq git
sudo pacman -S w3m curl jq git


Now you can get tmpmail
from GitHub and install it to /usr/local/bin:

git clone https://github.com/sdushantha/tmpmail

cd tmpmail

sudo install tmpmail /usr/local/bin

You can now start using tmpmail.

Run tmpmail in a terminal to create a temporary, disposable email address for the first time:

$ tmpmail 
[ Inbox for [email protected] ]

No new mail

Use tmpmail with the -g argument to generate a new email address:

tmpmail -g

Run tmpmail again to see if you have any new emails:

$ tmpmail
[ Inbox for [email protected] ]

84274824   [email protected]     Tmpmail
84274359   [email protected]   Linux Uprising

To read an email, type tmpmail followed by the email ID, e.g.:

tmpmail 84274359

Or use this command to view the most recent email:

tmpmail -r

In case you’re using the default w3m command line web browser for viewing the email and you want to exit, press q followed by y to confirm.

To change the web browser used to display the email, you can use tmpmail -b. E.g. to view the most recent email received by our disposable email account using Firefox web browser:

tmpmail -b firefox -r

h/t: u/imakethingswhenbored

Source link

- Advertisement -

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Delete Now! – These 21 Apps with more than 7 Million Downloads

Researchers found 21 malicious adware apps on Google play that disguised as gaming apps. These apps have adware hidden by design and have anti-uninstall...

Samsung Galaxy S21 May Not Ship with Charger and Earphones in the Box

Earlier this month, Apple stopped bundling EarPods and power adapter with the iPhone 12 series and its existing range of devices. While we’ve been...

Why Facebook Isn’t Launching Cloud Gaming Service For iOS?

Facebook is rolling out its beta cloud gaming service for everyone, except iOS users, in several parts of the U.S. The service is free...

5 New YouTube App Tips And Tricks In The Latest Update

YouTube has announced five new features to get the best experience out of the YouTube app. The update is rolling out today, and you’ll get new...