npm.io
1.0.0 • Published 5 years agoCLI

check-tmpmail

Licence
ISC
Version
1.0.0
Deps
4
Size
5 kB
Vulns
0
Weekly
0
Stars
1

check-tmpmail

A minimal utility command that polls the given 1secmail email address for incoming emails containing a link, then prints the link's URL to stdout.

Installing

npm install -g check-tmpmail

Usage Example

#!/bin/sh -e
#
# Generates a temporary email address and opens the link in the incoming confirmation email.

email="`apg -a 1 -n 1 -M L`@1secmail.com"

echo -n "$email" | xsel --clipboard
notify-send "Copied temporary email to clipboard" -i edit-copy

timeout 120 check-tmpmail "$email" | xargs firefox --private-window