dot

packages and services management
Log | Files | Refs | README

commit 1b14564d833c590ebfedcc755824fbeec29a7896
parent f605964a57f6045feddab97fb070d2c08f5a2b34
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 24 Dec 2017 00:47:34 +0100

mail and agenda setup

Diffstat:
Abin/io-sfeed | 4++++
Mbin/mblaze-filter | 6+++---
Rbin/agenda-update -> bin/update-agenda | 0
Abin/update-mail | 68++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mbin/xdg-open | 2+-
Acron/mail | 1+
Mdot/mpoprc | 23++++++++++++-----------
Mdot/sfeed/sfeedrc | 2+-
8 files changed, 90 insertions(+), 16 deletions(-)

diff --git a/bin/io-sfeed b/bin/io-sfeed @@ -0,0 +1,4 @@ +#!/bin/sh + +exec xdg-open "$(find "$HOME/.sfeed/feeds" -type f -exec sfeed_plain {} + | + iomenu -p sfeed | sed 's/.* //')" diff --git a/bin/mblaze-filter b/bin/mblaze-filter @@ -1,7 +1,7 @@ #!/bin/sh -# filter mails using mblaze +# read and filter mails using mblaze -minc "$MAILDIR/INBOX" +#minc "$MAILDIR/INBOX" > /dev/null while read -r dir test do @@ -10,7 +10,7 @@ do mkdir -p "$MAILDIR/$dir/tmp" printf '%-25s' "$dir" mlist "$MAILDIR/INBOX" | mpick -t "$test" | - xargs -rI % mv % "$MAILDIR/$dir/new" + xargs -rI {} mv {} "$MAILDIR/$dir/new" done << 'EOF' 2>&1 actux.eu.org "List-Id" ~~~ "*@actux.eu.org*" amazon.com "From" ~~~ "*@amazon.*" diff --git a/bin/agenda-update b/bin/update-agenda diff --git a/bin/update-mail b/bin/update-mail @@ -0,0 +1,68 @@ +#!/bin/sh +# read and filter mails using mblaze + +mpop +minc "$MAILDIR/INBOX" > /dev/null + +while read -r dir test +do + mkdir -p "$MAILDIR/$dir/cur" + mkdir -p "$MAILDIR/$dir/new" + mkdir -p "$MAILDIR/$dir/tmp" + printf '%-25s' "$dir" + mlist "$MAILDIR/INBOX" | mpick -t "$test" | + xargs -rI % mv % "$MAILDIR/$dir/new" +done << 'EOF' 2>&1 +actux.eu.org "List-Id" ~~~ "*@actux.eu.org*" +amazon.com "From" ~~~ "*@amazon.*" +amnesty.org "From" ~~~ "*amnesty.*" +bandcamp.com "From" ~~~ "*Cryo Chamber*" +bandcamp.com "From" ~~~ "*makeupandvanityset.com*" +bandcamp.com "From" ~~~ "*bandcamp.com*" +breizh-entropy.org "List-Id" ~~~ "*breizh-entropy.org*" +coinbase.com "From" ~~~ "*coinbase.com*" +crous-rennes.fr "From" ~~~ "*crous-rennes.fr*" +dropbox.com "From" ~~~ "*dropbox.*" +ebay.com "From" ~~~ "*ebay.*" +epitech.eu/bde "From" ~~~ "*bde.epitech.rennes@gmail.com*" +epitech.eu/intra "From" ~~~ "*@intra.epitech.eu*" +epitech.eu/marvin "From" ~~~ "*nao.marvin@epitech.eu*" +epitech.eu/@ "From" ~~~ "*@epitech.eu*" +epitech.eu/@ "From" ~~~ "*ionis-group.org*" +free.fr "From" ~~~ "*@free-mobile.fr*" +freebsd.org "From" ~~~ "*freebsd.org*" +fsf.org "From" ~~~ "*fsf.org*" +gandi.net "From" ~~~ "*gandi.net*" +github.com "From" ~~~ "*github.com*" +gobolinux.org "List-Id" ~~~ "*gobolinux.org*" +google.com "From" ~~~ "*google.com*" +gopherproject.org "List-Id" ~~~ "*gopher-project*" +grifon.fr "List-Id" ~~~ "*grifon.fr*" +keybase.io "From" ~~~ "*keybase.io*" +lobste.rs "From" ~~~ "*@lobste.rs*" +netsukuku.freaknet.org "List-Id" ~~~ "*netsukuku.lists.dyne.org*" +nixers.net "From" ~~~ "*@nixers.net*" +noip.com "From" ~~~ "*@noip.com*" +openbsd.org/advocacy "List-ID" ~~~ "*advocacy.openbsd.org*" +openbsd.org/announce "List-ID" ~~~ "*announce.openbsd.org*" +openbsd.org/tech "List-ID" ~~~ "*tech.openbsd.org*" +paypal.com "From" ~~~ "*paypal.*" +reddit.com "From" ~~~ "*@reddit.*" +repo.or.cz "Subject" ~~~ "*\[repo.or.cz\]*" +researchgate.net "From" ~~~ "*@researchgate.*" +researchgate.net "From" ~~~ "*@researchgatemail.*" +sabotage.tech "Mailing-List" ~~~ "*sabotage*@lists.openwall.com*" +suckless.org "List-Id" ~~~ "*suckless.org*" +transports "From" ~~~ "*@captaintrain.com*" +transports "From" ~~~ "*BlaBlaCar*" +transports "From" ~~~ "*flixbus*" +transports "From" ~~~ "*keolis.com*" +transports "From" ~~~ "*megabus*" +transports "From" ~~~ "*ouibus*" +transports "From" ~~~ "*ouigo*" +transports "From" ~~~ "*sncf.com*" +univ-rennes1.fr "List-Id" ~~~ "*univ-rennes1.fr*" +wordpress.com "From" ~~~ "*wordpress.com*" +yammer.com "From" ~~~ "*yammer.com*" +youtube.com "From" ~~~ "*youtube.com*" +EOF diff --git a/bin/xdg-open b/bin/xdg-open @@ -1,7 +1,7 @@ #!/bin/sh # override the xdg-open utility -tty | grep -q -e '^/dev/pts/.*' -e '^/dev/tty*' || +tty | grep -q -e '^/dev/pts/.*' -e '^/dev/tty.*' || exec st -f terminus:pixelsize=18 -e "$0" "$@" [ -e "$1" ] && set -- "$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" diff --git a/cron/mail b/cron/mail @@ -0,0 +1 @@ +*/15 * * * * mpop && mblaze-filter diff --git a/dot/mpoprc b/dot/mpoprc @@ -1,14 +1,15 @@ defaults -tls on -tls_certcheck off -tls_starttls off -uidls_file ~.cache/mpop/%U +tls on +tls_certcheck off +tls_starttls off +uidls_file ~/.cache/mpop/%U -account mail@josuah.net -host mail.gandi.net -user mail@josuah.net -auth user -delivery maildir ~/var/mail/INBOX -keep on +account mail@josuah.net +host mail.gandi.net +user mail@josuah.net +auth user +passwordeval "enchive -a$((3600*12)) extract /mnt/key/vault/mpop /dev/stdout" +delivery maildir ~/var/mail/INBOX +keep on -account default : mail@josuah.net +account default : mail@josuah.net diff --git a/dot/sfeed/sfeedrc b/dot/sfeed/sfeedrc @@ -12,7 +12,7 @@ feeds() http://kernel.org/kdist/rss.xml \ http://kernel.org - feed slashdot.org + feed slashdot.org \ http://rss.slashdot.org/Slashdot/slashdot \ http://slashdot.org