
Un'email temporanea direttamente dal tuo terminale scritta in POSIX sh
Una email temporanea direttamente dal tuo terminale scritta in POSIX sh
tmpmail è un'utility da riga di comando scritta in POSIX sh che ti permette di creare un indirizzo email temporaneo e ricevere email all'indirizzo temporaneo. Utilizza l'API di 1secmail per ricevere email.
Per impostazione predefinita, w3m viene utilizzato per visualizzare le email HTML nel terminale. Ma se preferisci un altro browser web basato su testo o preferisci visualizzare l'email in un browser web GUI come Firefox, usa semplicemente l'argomento --browser seguito dal comando necessario per avviare il browser web di tua scelta.
w3mcurljqxclip# 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/
tmpmail è disponibile su AUR, attualmente mantenuto da Benjamin Bädorf
$ yay -S tmpmail-git
tmpmail è disponibile sul repository pacstall-programs, attualmente mantenuto da wizard-28
$ pacstall -I tmpmail-bin
tmpmail è anche disponibile nella collezione di pacchetti nix (solo unstable al momento), mantenuta da legendofmiracles
Puoi aggiungerlo ai pacchetti di sistema, installarlo con nix-env o provarlo in una shell effimera nix-shell nix-shell -p tmpmail
Requisiti:
$ docker build -t mail .; # Dockerfile available in source code
$ docker run -it mail;
$ 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
Crea email casuale
$ tmpmail --generate
[email protected]
Crea email personalizzata
$ tmpmail --generate [email protected]
[email protected]
Visualizza la casella di posta
$ tmpmail
[ Inbox for [email protected] ]
83414443 [email protected] Test Email
Visualizza l'email
$ tmpmail 83414443
Visualizza l'email più recente
$ tmpmail -r
Visualizza le email come testo semplice
$ 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]
Questo script è fortemente ispirato allo script 1secmail di Mitch Weaver