-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from StevenMaude/nada
Switch service from Mailinator to nada
- Loading branch information
Showing
2 changed files
with
57 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,34 @@ | ||
# go-mailin8 | ||
|
||
Display the latest mail from a temporary Mailinator email address, at | ||
the command line. | ||
Display the latest mail from a temporary [nada](https://getnada.com) | ||
email address, at the command line. | ||
|
||
Useful for getting confirmation emails for throwaway purposes, or for | ||
testing. | ||
|
||
This is a version of a [bash script I | ||
## History (or "why is this called go-mailin8?") | ||
|
||
Originally, this used Mailinator's service to retrieve email; however, | ||
they rebuilt their site and this became a WebSocket powered application, | ||
making it more difficult to work with. | ||
|
||
This was a version of a [bash script I | ||
made](https://gist.github.com/StevenMaude/914e9187c09027866fe88958798acb7e) | ||
that uses [jq](https://stedolan.github.io/jq/). However, this Go version | ||
requires no other dependencies. | ||
requires no other dependencies, and now uses a different disposable | ||
email service. | ||
|
||
## Build | ||
|
||
`go build` | ||
|
||
## Usage | ||
|
||
1. Send, or get an email sent to a Mailinator email address of your | ||
choosing. | ||
2. Note the local-part (the part before @, e.g. | ||
`[email protected]`). | ||
3. Run `go-mailin8 <local-part of email address>` | ||
|
||
## Notes | ||
|
||
NB: you may get unpredictable results from the server if you run this | ||
too often in a short time. See TODO. | ||
1. Send, or get an email sent to a [nada](https://getnada.com) email | ||
address of your choosing. | ||
2. Run `go-mailin8 <email address>` | ||
|
||
## TODO: | ||
|
||
* Consider introducing slight pauses between requests to try and | ||
improve reliability. | ||
* Possibly consider selecting other than latest message (though outside | ||
of my original use case). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters