Giter VIP home page Giter VIP logo

tempmail's Introduction

A temporary email right from your terminal written in bash


tempmail is a command line utility written in bash 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 or -b argument followed by the command needed to launch the web browser of your choice.



Dependencies

  • w3m
  • curl
  • jq

Installation

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

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

Usage

$ tempmail --help
tempmail
tempmail -h | -v | -l | -d
tempmail -g [ADDRESS]
tempmail [-t | -b BROWSER] -r | ID

When called with one argument, tempmail
shows the email message with specified ID.

-b, --browser BROWSER
        Specify BROWSER (default: w3m) that is used to render the HTML of
        the email
-l, --list
        List all the received emails
-d, --directory
        Set a custom directory to store everything related to 'tempmail'
-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.
-v, --version
        Show version

Examples

Create random email

$ tempmail --generate
[email protected]

Create custom email

View the inbox

$ tempmail
[ Inbox for [email protected] ]

77229944   [email protected]   Test Email

View the email

$ tempmail 77229944

View the most recent email

$ tempmail -r

View emails as pure text

$ tempmail -t 77229944
To: [email protected]
From: [email protected]
Subject: Greetings from Temp Mail

Hello Temp Mail service user.

[Attachments]
logo.png

Credits

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

tempmail's People

Contributors

hemantsachdeva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gdsc-bbsbec

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.