Skip to content

deciduously/ar-bot

Repository files navigation

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.

About

Email batching program - work task automation

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published