gmail-downloader

command module
v0.0.0-...-86032f9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

README

gmail-downloader is a simple command line utility to download attachments from a Gmail mailbox related to a label.

Build

go build

Requirements

You need credentials.json to use the application. Visit the Gmail API page and turn on le Gmail API to have it.

Save credentials.json in the root folder of the project or where you want (in this case remember to set the GDOWN_HOME env var).

Usage

./gmail-downloader -h
Usage of ./gmail-downloader:
  -label string
    	label to process
  -no-overwrite
    	not overwrite existent files
  -out string
    	output folder (default "./attachments")

Set the env var GDOWN_HOME to the folder where credentials.json is saved, if this is different from executable one.

License

This software is under GPLv3 license.

Every contribution will go under the same license.

Credits

This utility takes inspiration from attachment-downloader of munir131 to understand which APIs of Gmail to use to reach the goal.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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