Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liamg/guerrilla

:incoming_envelope::bust_in_silhouette: Guerilla Mail CLI + Go module
https://github.com/liamg/guerrilla

cli disposable-email guerrillamail privacy

Last synced: about 5 hours ago
JSON representation

:incoming_envelope::bust_in_silhouette: Guerilla Mail CLI + Go module

Awesome Lists containing this project

README

        

# :incoming_envelope::bust_in_silhouette: guerrilla

A command-line tool (and Go module) for [https://www.guerrillamail.com/](https://www.guerrillamail.com/).

Create a temporary email address in the terminal to quickly sign up for services and receive verification emails.

![Screenshot of Guerrilla command-line receiving emails](demo.gif)

Built based on the [official API documention](https://docs.google.com/document/d/1Qw5KQP1j57BPTDmms5nspe-QAjNEsNg8cQHpAAycYNM/edit?hl=en).

## Usage: CLI

Install with Go:

```
go install github.com/liamg/guerrilla/cmd/guerrilla@latest
```

No configuration or authentication required, just run:

```
$ guerrilla
```

...and start receiving emails!

## Usage: Go Module

```go
package main

import (
"fmt"
"github.com/liamg/guerrilla/pkg/guerrilla"
)

func main() {

client, _ := guerrilla.Init()
poller := guerrilla.NewPoller(client)

for email := range poller.Poll() {
fmt.Printf("Email received: Subject=%s\nBody=%s\n\n", email.Subject, email.Body)
}
}
```