yogo

command module
v4.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 1 Imported by: 0

README

Yogo Go Report Card codecov GitHub tag Go Reference

Check yopmail mails from command line.

Install

Download binaries here : yogo.

Or run: go install github.com/antham/yogo/v4@latest

A package is available in aur for archlinux.

Usage

Check yopmail mails from command line.

Usage:
  yogo [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  inbox       Handle inbox messages
  version     App version

Flags:
      --debug   Log all requests/responses
  -h, --help    help for yogo
      --json    Dump the output as json

Use "yogo [command] --help" for more information about a command.

⚠️ Performing too much calls will trigger a CAPTCHA that you will need to solve through a browser. Add a delay to prevent this.

Environment variable

You can customize the behaviour of Yogo through several environment variables:

Name Default value Usage
HTTP_PROXY Empty Define an HTTP proxy for the requests
HTTPS_PROXY Empty Define an HTTPs proxy for the requests
YOGO_USER_AGENT See the defaultUserAgent const in the client The user agent used to perfom the requests
YOGO_REQUEST_TIMEOUT 10s Duration of a request before reaching the timeout

Flag

Use the --json output flag to get the output as JSON.

In case of an issue with yogo, use the --debug flag to log the requests/responses.

Inbox

List

Retrieve 10 messages from mailbox [email protected] :

yogo inbox list test1 10
Flush

Flush inbox [email protected] :

yogo inbox flush test1
Read a mail

Retrieve first message from inbox [email protected]

yogo inbox show helloworld 1

Retrieve second message from inbox [email protected]

yogo inbox show helloworld 2
Read the source of the mail with all headers
yogo inbox source helloworld 1
Delete a mail

Delete first message from inbox [email protected]

yogo inbox delete helloworld 1

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL