Code Monkey home page Code Monkey logo

smtp-client's People

Contributors

rkuttruff avatar

Stargazers

 avatar

Watchers

 avatar

smtp-client's Issues

Credentials state file overhaul

Store file in fixed location to be shared by all instances executed by the user

Ex:

  • ~/.smtpc/creds.data
  • %APPDATA%\smtp-client\creds.data

This can be overridden by a command line arg that's passed down to subprocess through its environment.

Also, there should be a locking mechanism to avoid simultaneous executions causing issues.

Credentials file should be extended to store tokens for multiple users

Simple implementation: A dictionary that relates the username string (all lower case) to the creds json object

Authentication persistence shorter than expected

Use of refresh tokens to gain new access codes doesn't last as long as I expected. Perhaps research is needed to extend their lifetime.

What happened: Authentication simultaneously started failing on both machines using the client. Had to get a new authorization code by deleting the creds.data file to fix

Stopgap solution: Add cl switch to force reauthorization.

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.