Skip to content
This repository was archived by the owner on Jan 26, 2025. It is now read-only.

Latest commit

 

History

History
124 lines (89 loc) · 2.58 KB

README.md

File metadata and controls

124 lines (89 loc) · 2.58 KB

1secmail CI

Use 1secmail disposable temp mail service from terminal

Table of Contents

Feature

  • Fast access to 1secmail service from terminal
  • Randomly generating email login
  • Easy to remember user name created by Faker
  • Simple integration to any CI process due to Bash script

Dependency

How to use

Usage

Usage:
  ./1secmail [-u <inbox>|-i <id>|-r|-s|-t|-b]

Options:
  no option        Randamly get an inbox
  -u <inbox>       Optional, get an inbox by its mail address
  -i <id>          Optional, show mail by its id
  -r               Optional, show the most recent mail
  -s               Optional, show available domains
  -t               Optional, show plain text without using w3m
  -b               Optional, show data URL with base64 encoded message
  -h | --help      Display this help message

Examples

  • Generate a random inbox with faker-cli:
$ ./1secmail
[]
[email protected]
  • Generate a random inbox without faker-cli:
$ ./1secmail
[]
[email protected]
$ ./1secmail -u '[email protected]'
[
  {
    "id": 84113380,
    "from": "[email protected]",
    "subject": "Please confirm your email address",
    "date": "2020-09-13 18:23:44"
  }
]
  • Show mail 84113380 detail:
$ ./1secmail -u '[email protected]' -i 84113380
<HTML content in w3m>
...
$ ./1secmail -u '[email protected]' -r
<HTML content in w3m>
...
  • Show all available domains:
$ ./1secmail -s

Run tests

$ bats test/1secmail.bats

Similar projects

Want more temp mail service? Check out:

Want to send anonymous emails? Check out:

You may like them!


Buy Me A Coffee