gmail-cleanup

command module
v0.0.0-...-91210d6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

README

gmail-cleanup

CLI tool for deleting attachments from gmail messages

Quickstart

  • Create GCP OAuth client ID credentials following these instructions: Create OAuth client ID credentials
  • Download the credentials as credentials.json to the repo directory.
  • Install depedencies:
go get google.golang.org/api/gmail/v1
go get golang.org/x/oauth2/google
  • Give it a go :p
go run remove-attachments.go 'size:10000000'

Documentation

Overview

*

  • @license
  • Copyright Google Inc. *
  • Licensed under the Apache License, Version 2.0 (the "License");
  • you may not use this file except in compliance with the License.
  • You may obtain a copy of the License at *
  • https://www.apache.org/licenses/LICENSE-2.0 *
  • Unless required by applicable law or agreed to in writing, software
  • distributed under the License is distributed on an "AS IS" BASIS,
  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  • See the License for the specific language governing permissions and
  • limitations under the License.

[START gmail_quickstart]

Jump to

Keyboard shortcuts

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