Giter Club home page Giter Club logo

qgmail's Introduction

qGmail

asciicast A fast and lightweight CLI app which brings the power of Gmail API to your terminal.

Overview

qGmail, short for query Gmail, is a lightweight app written in Go. It aims to bring the powerful Gmail API to your terminal in an easy-to-use manner so that you don't have to bother about the authentication stuff yourself.
qGmail uses Google's recommended authorization flow, OAuth2(with PKCE extension), making its transactions with the API highly secure.

In the initial releases, qgmail only fetches the number of unread mails but it is planned to include lots of other functionalities depending upon the feature requests. If you have one, feel free to write up a feature request through Issues.

Supported Architectures

Currently, qGmail officially supports Linux distros only but it is planned to implement cross-compatibility across Windows, Mac and Linux.

Choose How to Install

1. Binary Install

You can download pre-built binaries from qGmail's releases page.

2. Building from Source

Prerequisite tools

Fetch from GitHub

qGmail uses the Go Modules support built into Go 1.11 to build. The easiest is to clone qGmail in a directory outside of GOPATH, as in the following example:

mkdir $HOME/src
cd $HOME/src
git clone https://github.com/utkarshverma/qgmail.git
cd qgmail
go install

Usage

To get started:

  • Create OAuth2 Credentials using Google API Console.
  • Make sure your API Console client has access to Gmail API.
  • Download your OAuth2 credentials as credentials.json and paste it in ~/.config/qgmail.
  • Run qgmail init.
  • Follow the on-screen instructions to authorize qGmail.

Once the initialisation is done, just simply use qgmail to access the API.

If you want to use qGmail for multiple accounts in your status bar, you can do so by specifying a different path for saving the OAuth tokens through the -token flag. For example:

# For personal account, use default path for the token.
qgmail

# For alternate account, use another path for the token.
qgmail -token ~/.config/qgmail/alternate_token.json

Configuration

qGmail looks for configuration parameters in ~/.config/qgmail/config.json by default, which you may override using the -config flag.

CLI

qGmail provides some CLI flags to help you configure it on the go. To know about them, just use qgmail --help, or qgmail init --help.

Why should you trust qGmail?

qGmail doesn't store your data in any manner, nor does it have access to your account. The client attains access to your account through an authorization token which Google grants to your PC after you accept the user consent. Since the authorization token stays only on your PC and qGmail doesn't have any functionality to upload files, so rest assured as your account's access stays with you only!

Contributing to qGmail

qGmail welcomes all sorts of contributions. If you want to contribute to qGmail, there are three ways you can do so:

1. Feature Requests

If you feel that there's a feature this app is lacking, post a feature request.

2. Testing

There are cases when fixing a bug triggers another bug, which I might not notice during testing myself. Having more users would be a great help to close in on such bugs. If you encounter some bugs, post an issue regarding the bug.

3. Pull Requests

I'm maintaining this open-source project as a personal interest without any profits, hence I'll only be developing qGmail if I have the time and motivation to do so. Therefore, PRs from other developers are highly welcomed.

Dependencies

qGmail stands on the shoulder of many great open-source libraries, in lexical order:

Dependency License
google.golang.org/api BSD-3 Clause
github.com/mitchellh/go-homedir MIT License
golang.org/x/net BSD-3 Clause
golang.org/x/oauth2 BSD-3 Clause

qgmail's People

Contributors

utkarshverma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

riffus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.