• Stars
    star
    3,841
  • Rank 11,439 (Top 0.3 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 4 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A temporary email right from your terminal written in POSIX sh

A temporary email right from your terminal written in POSIX sh


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 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
  • xclip

Installation

Install locally

# Download the tmpmail file and make it executable
$ curl -L "https://raw.githubusercontent.com/sdushantha/tmpmail/master/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

Pacstall (Debian/Ubuntu)

tmpmail is available on the pacstall-programs repository, which is being currently being maintained by wizard-28

$ pacstall -I tmpmail-bin

Nixpkgs

tmpmail is also available in the nix package collection (only unstable currently), which is maintained by legendofmiracles

Either add it to your system packages, install it with nix-env or try it out in a ephemeral nix-shell nix-shell -p tmpmail

Docker

requirements:

$ docker build -t mail .; # Dockerfile available in source code
$ docker run -it mail;

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 that is used to render the HTML of
        the email (default: w3m)
    --clipboard-cmd COMMAND
        Specify the COMMAND to use for copying the email address to your
        clipboard (default: xclip -selection c)
-c, --copy
        Copy the email address to your clipboard
-d, --domains
        Show list of available domains
-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
[email protected]

Create custom email

View the inbox

$ tmpmail
[ Inbox for [email protected] ]

83414443   [email protected]   Test Email

View the email

$ tmpmail 83414443

View the most recent email

$ tmpmail -r

View emails as pure text

$ tmpmail -t 83414443
To: [email protected]
From: [email protected]
Subject: Test Email

Hello World

[Attachments]
https://is.gd/aBCdEf [apple.jpg]
https://is.gd/AbCDeF [ball.jpg]

Credits

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

More Repositories

1

wifi-password

Quickly fetch your WiFi password and if needed, generate a QR code of your WiFi to allow phones to easily connect
Python
2,905
star
2

tmpsms

A temporary SMS utility right from your terminal written in POSIX sh
Shell
1,039
star
3

qr-filetransfer

Transfer files over WiFi between your computer and your smartphone from the terminal
Python
969
star
4

fontpreview

Highly customizable and minimal font previewer written in bash
Shell
912
star
5

farge

Click on a pixel on your screen and show its color value
Shell
480
star
6

recycle-bin-themes

Silly icons for the Windows Recycle Bin
PowerShell
476
star
7

snaprecovery

Recover old Snaps that have β€œdisappeared” from Snapchat
Shell
427
star
8

soundcloud-dl

🎡 Download SoundCloud music at 128kbps with album art and tags
Python
320
star
9

kunst

Download and display album art or display embedded album art
Shell
309
star
10

dora

Find exposed API keys based on RegEx and get exploitation methods for some of keys that are found
Python
307
star
11

facebook-dl

πŸ“Ό Very minimal Facebook downloader written in 28 lines of Python code (not including comments and blank spaces)
Python
237
star
12

gitdir

Download a single directory/folder from a GitHub repo
Python
224
star
13

dotfiles

my dotfiles
Lua
223
star
14

svart

Change between dark/light mode depending on the ambient light intensity
Python
167
star
15

fileinfo

πŸ“„Get information on over 10,000 file extensions right from the terminal
Python
111
star
16

meobrute

Automate the process of brute forcing the My Eyes Only pin code on Snapchat
Shell
93
star
17

insta-dl

πŸ“· Download Instagram images from a public user.
Python
93
star
18

ff-pdf

Turn a Firefox profile into a standalone PDF reader app
Shell
87
star
19

pyradio

πŸ“» Play your favorite radio station from the terminal
Python
74
star
20

snapchat

Messing around with Snapchat's web APIs
Python
68
star
21

pine

πŸ“· A simple image to text OCR scanner for macOS
Python
55
star
22

down

β˜‘οΈ A CLI tool to check if a site or a list of sites are down or up
Python
54
star
23

vsco-dl

πŸ“· Download all of the images and videos from a VSCO user
Python
39
star
24

getroot

πŸ› οΈ Tool to bypass my school's security system to get sudo privileges on MacOS
Shell
38
star
25

bed

🧩 A very simple command line Browser Extension Downloader
Python
34
star
26

macbook-keyboard-visualizer

πŸ”† Audio visualizer using the MacBook keyboard lights
Python
31
star
27

dark-mode

πŸŒ— Control the macOS dark mode from the terminal
Python
22
star
28

awesome-bounty-rewards

A curated list of BBPs and VDPs that offer awesome/unique rewards
7
star
29

datainnbrudd.no

Overivew of all cyber incidients in Norway
MDX
7
star
30

top-secret

highly confiential top secret repository
Shell
6
star
31

sdushantha.github.io

HTML
4
star
32

bacit-php

PHP work for uni
PHP
1
star
33

bacit

IT og informasjonssystemer
Java
1
star
34

w

w
HTML
1
star
35

myquote

En teste modul 1, del 2 for is-105 faget
Go
1
star