dot

packages and services management
Log | Files | Refs | README

commit 3ce1379ba2b6acff40243b16a3650a531a88db8d
parent 93198c7c2bb8fd28ad07cd0cc42035798a63a212
Author: josuah <mail@josuah.net>
Date:   Tue,  6 Sep 2016 19:17:06 +0200

Cleaned up mail filters and fixed 'h'

Diffstat:
Mbin/.profile | 4+++-
Ms-nail/.mailrc | 71+++++++++++++++++++++++++++++++++++++++++------------------------------
2 files changed, 44 insertions(+), 31 deletions(-)

diff --git a/bin/.profile b/bin/.profile @@ -112,7 +112,9 @@ ps1() h() { for field in $@; do local cmd="$cmd $field"; done - eval "$cmd 2>&1 | $PAGER" + tmp="$(mktemp)" + eval "$cmd 2>&1 | tee "$tmp" | $PAGER" + tee < "$tmp" } light() diff --git a/s-nail/.mailrc b/s-nail/.mailrc @@ -101,11 +101,11 @@ retain date from to cc subject message-id mail-followup-to reply-to # "pipe-type/subtype" #------------------------------------------------------------------------------- -# HTML as text, inline display via retawq(1) +# HTML as text, inline display via BROWSER set pipe-text/html="cat > \"${TMPDIR}/${NAIL_FILENAME_GENERATED}\"; \ trap \"rm -f \\\"${TMPDIR}/${NAIL_FILENAME_GENERATED}\\\"\" \ EXIT INT QUIT PIPE TERM; \ - retawq --dump=\"${TMPDIR}/${NAIL_FILENAME_GENERATED}\"" + DISPLAY=':0' \"$BROWSER\" \"${TMPDIR}/${NAIL_FILENAME_GENERATED}\"" # PDF display, asynchronous display via zathura(1) set pipe-application/pdf="cat > \"${TMPDIR}/${NAIL_FILENAME_GENERATED}\"; \ @@ -123,52 +123,63 @@ set pipe-application/pdf="cat > \"${TMPDIR}/${NAIL_FILENAME_GENERATED}\"; \ #uncollapse define filter { + + # Mailing lists - move (cc "mmh@marmaro.de") ~/Mail/l.mmh - move (to "mmh@marmaro.de") ~/Mail/l.mmh - move (from "@lobste.rs") ~/Mail/l.lobsters + move (from "lobste.rs") ~/Mail/l.lobsters + + move (from "reddit") ~/Mail/l.reddit + + move (from "nixers.net") ~/Mail/l.nixers.net + + move (from "sachachua.com") ~/Mail/l.sachachua - move (from "@sfbi.fr") ~/Mail/l.bioinfo - move (to "@sfbi.fr") ~/Mail/l.bioinfo + move (cc "mmh@marmaro.de") ~/Mail/l.mmh + move (to "mmh@marmaro.de") ~/Mail/l.mmh - move (from "@suckless.org") ~/Mail/l.suckless - move (to "@suckless.org") ~/Mail/l.suckless - move (cc "@suckless.org") ~/Mail/l.suckless + move (from "suckless.org") ~/Mail/l.suckless + move (to "suckless.org") ~/Mail/l.suckless + move (cc "suckless.org") ~/Mail/l.suckless - move (from "@fsf.org") ~/Mail/l.fsf + move (from "fsf.org") ~/Mail/l.fsf + + move (to "listes.etudiant.univ-rennes1.fr") ~/Mail/l.univ-rennes1 -# move (from "lists@univ-rennes1.fr") ~/Mail/l.univ-rennes1 # Services - move (from "@reddit") ~/Mail/s.reddit - move (from "@github.com") ~/Mail/s.github + move (from "github.com") ~/Mail/s.github + + move (from "twitter.com") ~/Mail/s.twitter - move (from "@twitter.com") ~/Mail/s.twitter + move (from "bandcamp.com") ~/Mail/s.bandcamp - move (from "@bandcamp.com") ~/Mail/s.bandcamp + move (from "keybase.io") ~/Mail/s.keybase - move (from "@keybase.io") ~/Mail/s.keybase + move (from "wordpress.com") ~/Mail/s.wordpress - move (from "@wordpress.com") ~/Mail/s.wordpress + move (from "google.com") ~/Mail/s.google - move (from "google.com") ~/Mail/s.google # Billing - move (from "@free-mobile.fr") ~/Mail/b.free - move (from "@gandi.net") ~/Mail/b.gandi + move (from "@free-mobile.fr") ~/Mail/b.utilities + + move (from "@paypal") ~/Mail/b.payment + move (from "coinbase.com") ~/Mail/b.payment + + move (from "gandi.net") ~/Mail/b.webservices - move (from "@paypal") ~/Mail/b.paypal + move (from "@amazon") ~/Mail/b.webstores - move (from "@amazon") ~/Mail/b.amazon + move (from "crous-rennes.fr") ~/Mail/b.housing - move (from "@sncf") ~/Mail/b.transports - move (from "@captaintrain.com") ~/Mail/b.transports - move (from "flixbus") ~/Mail/b.transports - move (from "megabus") ~/Mail/b.transports - move (from "ouigo") ~/Mail/b.transports - move (from "ouibus") ~/Mail/b.transports - move (from "keolis.com") ~/Mail/b.transports + move (from "sncf.com") ~/Mail/b.transports + move (from "captaintrain.com") ~/Mail/b.transports + move (from "flixbus") ~/Mail/b.transports + move (from "megabus") ~/Mail/b.transports + move (from "ouigo") ~/Mail/b.transports + move (from "ouibus") ~/Mail/b.transports + move (from "keolis.com") ~/Mail/b.transports }