Giter Club home page Giter Club logo

ar-bot's Introduction

ar-bot

Build Status

NOTE development halted - pitch dead on arrival. I still stand by it, but won't keep hackin'. It's here for posterity!

WIP Command-line tool for collection and batching of auto-generated emails, in an attempt to save paper. It will read all the downloaded RFC5322 formatted email alerts in the folder specified and batch similar alerts together. When enough have been batched, the user can cut a digest, which copies everything into a datestamped subdirectory under <storage>/hx/ folder and compresses it, outputting the digest to <storage>/hx/DATETIME.digest.html. For now, emails are added to the top level of <storage> manually. I'd eventually like to have it automatically email the digest back.

I've tested on Linux and Windows. It probably works ok on MacOS, too, if you happen to be an alternate unverse me with this exact need but aren't using either of those two operating systems.

Usage

ar-bot [FLAGS] [OPTIONS]

FLAGS:

  • -d, --digest Finalizes a digest with the emails in the brain. Make sure to preview first!
  • -h, --help Prints help information
  • -p, --preview Displays the current contents of the batch
  • -r, --report Daily report comparing inputs to outputs for the day
  • -v, --verbose "Set RUST_LOG verbosity. There are three levels: info, debug, and trace. Repeat the flag to set level: -v, -vv, -vvv.
  • -V, --version Prints version information

OPTIONS:

  • -c, --config <CONFIG_FILE> Specify an alternate toml config file

Feel free to mix and match any of the above, it's fun.

With no config given it will default to Bot.toml, and with no flags or options passed it will print its configuration and quit. The output formats are defined in templates/.

Dependencies

Crates

askama, chrono, clap, email-format, error-chain, lazy_static, log, pretty_assertions, pretty_env_logger, regex, serde/serde_derive, toml, rand, uuid

Notes

This is pretty gosh dang domain specific.

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.