dot

packages and services management
Log | Files | Refs | README

commit 5d862cf39a5c8a1643358f341c70bce46d255bd7
parent 895f2526cbaa7cf45dda1d3fb21f44f2be30322b
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 26 Dec 2017 19:00:00 +0100

the whole curses concept is broken

Diffstat:
Abin/clear | 3+++
Mbin/clip | 2+-
Mbin/mblaze-filter | 5+++--
Dbin/update-mail | 68--------------------------------------------------------------------
4 files changed, 7 insertions(+), 71 deletions(-)

diff --git a/bin/clear b/bin/clear @@ -0,0 +1,3 @@ +#!/bin/sh + +printf '\033[H\033[J' diff --git a/bin/clip b/bin/clip @@ -14,6 +14,6 @@ case $1 in cat "$CLIP" ;; (*) - printf 'usage: clip [-i [file]] [-o]\n' + printf 'usage: clip -i [file...]\n clip -o\n' ;; esac diff --git a/bin/mblaze-filter b/bin/mblaze-filter @@ -1,7 +1,8 @@ #!/bin/sh # read and filter mails using mblaze -#minc "$MAILDIR/INBOX" > /dev/null +mpop +minc "$MAILDIR/INBOX" > /dev/null while read -r dir test do @@ -10,7 +11,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/update-mail b/bin/update-mail @@ -1,68 +0,0 @@ -#!/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