dot

packages and services management
Log | Files | Refs | README

commit 86cd96ce925b32bf0d3d474bdc4ab004ff003a52
parent c47c1b3e562a2e2ab34f8f38e1caeb16450dd796
Author: Josuah Demangeonā  ā µ <mail@josuah.net>
Date:   Tue, 28 Mar 2017 00:04:32 +0200

moved mail.* to mb.*

Diffstat:
Dbin/mail-filter | 98-------------------------------------------------------------------------------
Abin/mb-filter | 98+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mbuild/mg | 2++
3 files changed, 100 insertions(+), 98 deletions(-)

diff --git a/bin/mail-filter b/bin/mail-filter @@ -1,98 +0,0 @@ -# filter mails using mblaze - - -filter() -{ - mlist "$MAIL" | magrep "$1" | while IFS='' read -r mail - do - mkdir -p "${MAIL%/*}/$2/{cur,new,tmp}" - mv "$mail" "${MAIL%/*}/$2/cur" - done -} - - -main() -{ - minc "$MAIL" - - - # Social networking - - filter from:'lobste.rs' lobsters - - filter from:'reddit' reddit - - filter from:'disqus' disqus - - filter from:'nixers.net' nixers - - filter from:'researchgate' researchgate - - - # Mailing lists - - filter from:'sachachua.com' sachachua - - filter cc:'mmh@marmaro.de' mmh - filter to:'mmh@marmaro.de' mmh - - filter subject:'\[gobolinux-' gobolinux - - filter from:'suckless.org' suckless - filter to:'suckless.org' suckless - filter cc:'suckless.org' suckless - - filter from:'fsf.org' fsf - - filter to:'listes.etudiant.univ-rennes1.fr' univ-rennes1 - filter List-Id:'foad.univ-rennes1.fr' univ-rennes1 - filter Received:'vmsympa1.univ-rennes1.fr' univ-rennes1 - filter Return-Path:'listes.univ-rennes1.fr' univ-rennes1 - - filter from:'amnesty' amnesty - - filter List-Id:'breizh-entropy.org' breizh-entropy - - - # Services - - filter subject:'\[repo.or.cz\]' repo.or.cz - - filter from:'github.com' github - - filter from:'stackexchange.com' stackexchange - - filter from:'bandcamp.com' bandcamp - filter from:'Cryo Chamber' bandcamp - - filter from:'keybase.io' keybase - filter :rom 'wordpress.com' wordpress - - filter from:'google.com' google - - - # Payments - - filter from:'@free-mobile.fr' utilities - - filter from:'@paypal' payment - filter from:'coinbase.com' payment - - filter from:'gandi.net' webservices - - filter from:'@amazon' webstores - - filter from:'crous-rennes.fr' housing - - filter from:'sncf.com' transports - filter from:'captaintrain.com' transports - filter from:'flixbus' transports - filter from:'megabus' transports - filter from:'ouigo' transports - filter from:'ouibus' transports - filter from:'keolis.com' transports - filter from:'BlaBlaCar' transports -} - - -main '$@' diff --git a/bin/mb-filter b/bin/mb-filter @@ -0,0 +1,98 @@ +# filter mails using mblaze + + +filter() +{ + mlist "$MAIL" | magrep "$1" | while IFS='' read -r mail + do + mkdir -p "${MAIL%/*}/$2/{cur,new,tmp}" + mv "$mail" "${MAIL%/*}/$2/cur" + done +} + + +main() +{ + minc "$MAIL" + + + # Social networking + + filter from:'lobste.rs' lobsters + + filter from:'reddit' reddit + + filter from:'disqus' disqus + + filter from:'nixers.net' nixers + + filter from:'researchgate' researchgate + + + # Mailing lists + + filter from:'sachachua.com' sachachua + + filter cc:'mmh@marmaro.de' mmh + filter to:'mmh@marmaro.de' mmh + + filter subject:'\[gobolinux-' gobolinux + + filter from:'suckless.org' suckless + filter to:'suckless.org' suckless + filter cc:'suckless.org' suckless + + filter from:'fsf.org' fsf + + filter to:'listes.etudiant.univ-rennes1.fr' univ-rennes1 + filter List-Id:'foad.univ-rennes1.fr' univ-rennes1 + filter Received:'vmsympa1.univ-rennes1.fr' univ-rennes1 + filter Return-Path:'listes.univ-rennes1.fr' univ-rennes1 + + filter from:'amnesty' amnesty + + filter List-Id:'breizh-entropy.org' breizh-entropy + + + # Services + + filter subject:'\[repo.or.cz\]' repo.or.cz + + filter from:'github.com' github + + filter from:'stackexchange.com' stackexchange + + filter from:'bandcamp.com' bandcamp + filter from:'Cryo Chamber' bandcamp + + filter from:'keybase.io' keybase + filter :rom 'wordpress.com' wordpress + + filter from:'google.com' google + + + # Payments + + filter from:'@free-mobile.fr' utilities + + filter from:'@paypal' payment + filter from:'coinbase.com' payment + + filter from:'gandi.net' webservices + + filter from:'@amazon' webstores + + filter from:'crous-rennes.fr' housing + + filter from:'sncf.com' transports + filter from:'captaintrain.com' transports + filter from:'flixbus' transports + filter from:'megabus' transports + filter from:'ouigo' transports + filter from:'ouibus' transports + filter from:'keolis.com' transports + filter from:'BlaBlaCar' transports +} + + +main '$@' | mscan diff --git a/build/mg b/build/mg @@ -4,6 +4,8 @@ tar=http://homepage.boetes.org/software/mg/mg-20161005.tar.gz build() { + make + cp mg "$PREFIX/bin" cp mg.1 "$PREFIX/man" }