replytime

plot email reply time
git clone https://a3nm.net/git/replytime/
Log | Files | Refs

commit d0b7b65ad26b95c860d581f2099dc3fe298ca0c2
parent 8754afa41dd37bd4c025bc0391fa2f0f2506fc9d
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri,  9 Dec 2016 17:36:51 +0100

other uncommitted changes

Diffstat:
replytime.sh | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/replytime.sh b/replytime.sh @@ -1,4 +1,6 @@ #!/bin/bash +# plot email response time +# a3nm, 2014-08-01 MYEMAILS=$(grep -E '^other_email|^primary_email' ~/.notmuch-config | cut -d '=' -f2 | paste -sd ";") MYEMAILSOR=$(echo "$MYEMAILS" | sed 's/^/from:/g' | sed 's/;/ or from:/g') @@ -23,9 +25,11 @@ do TIME=$(date -d"$DATE" +%s) if [ -z "$TIME" ] then - if [ -n "$ID" ] + TO=$(formail -XTo: -c < "$l") + NG=$(formail -XNewsgroups: -c < "$l") + if [ -n "$NG" -a -z "$TO" ] then - # this is probably a newsgroup message, do not warn + # this is a newsgroup message, do not warn continue fi # date was here but could not extract, means I have failed