dot

packages and services management
Log | Files | Refs | README

commit d2fefbdf20ae34bb6ca20ef14c962131bb362164
parent bff4f75f5100923b47543b347ec6244b9e379403
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 17 Feb 2018 14:33:37 +0100

mblaze: more filter rules, more asynchronous mfilter

Diffstat:
Mbin/mfilter | 10+++++-----
Mmblaze/filter | 31++++++++++++++++++-------------
Mskel/crontab | 2+-
3 files changed, 24 insertions(+), 19 deletions(-)

diff --git a/bin/mfilter b/bin/mfilter @@ -1,16 +1,16 @@ #!/bin/sh # read and filter mails using mblaze -minc "$VAR/mail/INBOX" | mseq -S +minc "$VAR/mail/INBOX" > "$ETC/mblaze/seq.mfilter" -[ "$1" = '-a' ] && mdirs "$VAR/mail" | mlist | mseq -S +[ "$1" = '-a' ] && mdirs "$VAR/mail" | mlist > "$ETC/mblaze/seq.mfilter" while read -r dir header glob do mkdir -p "$VAR/mail/$dir/cur" \ "$VAR/mail/$dir/new" \ "$VAR/mail/$dir/tmp" - printf '%-25s' "$dir" - mseq : | mpick -t "$header ~~~ $glob" | + printf '%-35s' "$dir" 1>&2 + mpick -t "$header ~~~ $glob" < "$ETC/mblaze/seq.mfilter" | xargs -rI {} mv {} "$VAR/mail/$dir/new" -done < "$ETC/mblaze/filter" +done < "$ETC/mblaze/filter" 2>&1 | less diff --git a/mblaze/filter b/mblaze/filter @@ -2,28 +2,31 @@ 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*" +bandcamp.com "From" "*makeupandvanityset.com*" breizh-entropy.org "List-Id" "*breizh-entropy.org*" coinbase.com "From" "*coinbase.com*" +crous-paris.fr "From" "*crous-paris.fr*" crous-rennes.fr "From" "*crous-rennes.fr*" -dropbox.com "From" "*dropbox.*" dragonflybsd.org/hammer "List-Id" "*hammer.dragonflybsd.org*" dragonflybsd.org/kernel "List-Id" "*kernel.dragonflybsd.org*" +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*" +epitech.eu/~ "From" "*@epitech.eu*" +epitech.eu/~ "From" "*ionis-group.org*" +etudiant.gouv.fr "From" "*etudiant.gouv.fr*" +fosdem.org/announce "List-Id" "*fosdem.lists.fosdem.org*" fosdem.org/distributions "List-Id" "*distributions-devroom.lists.fosdem.org*" fosdem.org/network "List-Id" "*network-devroom.lists.fosdem.org*" -fosdem.org/announce "List-Id" "*fosdem.lists.fosdem.org*" fosdem.org/security "List-Id" "*security-devroom.lists.fosdem.org*" -fosdem.org/@ "From" "*fosdem.org*" +fosdem.org/~ "From" "*fosdem.org*" +free.fr "From" "*@free-mobile.fr*" +freebsd.org "From" "*freebsd.org*" +freenode.net "From" "*freenode.net*" +fsf.org "From" "*fsf.org*" gandi.net "From" "*gandi.net*" github.com "From" "*github.com*" gobolinux.org "List-Id" "*gobolinux.org*" @@ -32,6 +35,7 @@ gopherproject.org "List-Id" "*gopher-project*" grifon.fr "List-Id" "*grifon.fr*" keybase.io "From" "*keybase.io*" lobste.rs "From" "*@lobste.rs*" +meetup.com "From" "*meetup.com*" netsukuku.freaknet.org "List-Id" "*netsukuku.lists.dyne.org*" nixers.net "From" "*@nixers.net*" noip.com "From" "*@noip.com*" @@ -40,22 +44,23 @@ 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*" -tarsnap.com "From" "*@tarsnap.com*" -transports "From" "*@captaintrain.com*" +tarsnap.com "From" "*tarsnap.com*" transports "From" "*BlaBlaCar*" transports "From" "*flixbus*" transports "From" "*keolis.com*" transports "From" "*megabus*" +transports "From" "*oui.sncf*" transports "From" "*ouibus*" transports "From" "*ouigo*" transports "From" "*sncf.com*" -transports "From" "*oui.sncf*" +transports "From" "*sobus.com*" +transports "From" "*trainline.com*" univ-rennes1.fr "List-Id" "*univ-rennes1.fr*" +wikimedia.org "From" "*wikimedia.org*" wordpress.com "From" "*wordpress.com*" yammer.com "From" "*yammer.com*" youtube.com "From" "*youtube.com*" diff --git a/skel/crontab b/skel/crontab @@ -10,5 +10,5 @@ #40 6 * * * back rsync "${HOME}/back/4" #50 6 * * * back rsync "${HOME}/back/5" -#* * * * * collectd-ploot "${HOME}/.cache/collectd" "${HOME}/srv/stat" +#*/15 * * * * . "$HOME/.profile"; cd "${HOME}/srv" && make stat