An open API service indexing awesome lists of open source software.

https://github.com/novoid/mailhours

Visualize the times of the day of emails sent by a certain person (maildir)
https://github.com/novoid/mailhours

email emails quantified-self shell

Last synced: 8 months ago
JSON representation

Visualize the times of the day of emails sent by a certain person (maildir)

Awesome Lists containing this project

README

          

## Time-stamp: <2017-02-26 16:28:38 vk>
## -*- coding: utf-8 -*-
## This file is best viewed with GNU Emacs Org-mode: http://orgmode.org/

* mailhours (shell script)

syntax: mailhours QUERYSTRING [DIRECTORY] [DESCRIPTION]

mailhours searches for emails in ~/home/USER/Maildir/.tmp/cur~ or
[DIRECTORY] with QUERYSTRING in the From-lines.

A graph will be generated that shows at what hours the correspondent
emails from this querystring were sent.

Then you know when this person is typically sending email answers.

Configuration is done in the files:
: ./mailhours
... general defaults
: /home/USER/.config/mailhoursrc
... to override general defaults

examples:
: mailhours Torvalds
... generates a graph when Linux Torvalds
sends emails in my DEFAULTDIR folder
: mailhours Gates ~/Maildir/.spam/cur
... generates a graph when Bill Gates
sends his emails that are stored in
the folder ~/Maildir/.spam/cur

** Why

People tend to answer emails following a certain pattern. One person
might answer emails after lunch, others do it in the morning.

If you want to visualize the pattern of a person, you can use emails
send by her/his using this script.

** Example result

#+CAPTION: This is an example result image of a mailhours query
[[Example.png]]

** Configuration file example

A ~/.config/mailhoursrc file might look like this:

: ## ===================================================
: ## purpose: analyze emails of communications partners
: ## to know, at what hours they usually send
: ## their emails
: ## author: Karl Voit
: ## see scriptfile mailhours (in your path) for details
: ## ===================================================
:
: ## view the result with this command
: VIEWPROGRAM=xview
:
: ## if par2 is missing, this is the default Maildir directory
: DEFAULTDIR="${HOME}/Maildir/.tmp/cur"
:
: ## end config

** Dependencies

[[http://www.gnuplot.info/][gnuplot]]

A tool for displaying PNG files. By default, =geeqie= is configured.

GNU-tools like: sed, awk, (e)grep, sort, uniq, head

* Contribute!

I am looking for your ideas!

If you want to contribute to this cool project, please fork and
contribute!

* Local Variables :noexport:
# Local Variables:
# mode: auto-fill
# mode: flyspell
# eval: (ispell-change-dictionary "en_US")
# End: