dot

packages and services management
Log | Files | Refs | README

commit 8cafc2d733246b12b4055aa04bc3d04da710dbd3
parent 8928f3ebc9efa301b3af935e8de8baf37e2100cd
Author: Josuah Demangeon <mail@josuah.net>
Date:   Thu, 14 Dec 2017 16:18:33 +0100

MAIL is for a mbox file

Diffstat:
Abin/ifconfig | 3+++
Mbin/io-mail | 2+-
Mbin/mblaze-filter | 14+++++++-------
Mbin/xdg-open | 3+++
Mdot/profile | 4+++-
5 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/bin/ifconfig b/bin/ifconfig @@ -0,0 +1,3 @@ +#!/bin/sh + +true diff --git a/bin/io-mail b/bin/io-mail @@ -2,7 +2,7 @@ export LC_COLLATE=C -mdirs "$MAIL/.." | sort | while IFS='' read -r dir +mdirs "$HOME/var/mail" | sort | while IFS='' read -r dir do printf '%s\t%s\n' "$(mlist -s "$dir" | wc -l)" "${dir#$PWD/}" done | iomenu -p mail | cut -f 2 | mlist | mthread | msort -r -d | mseq -S | mscan -f '%6n %u %D %20f %t%2i%120S' | tee "$HOME/error" | iomenu -p mail | diff --git a/bin/mblaze-filter b/bin/mblaze-filter @@ -1,16 +1,16 @@ #!/bin/sh # filter mails using mblaze -minc "$MAIL" | mscan +minc "$MAILDIR/INBOX" while read -r dir t do - mkdir -p "${MAIL%/*}/$dir/cur" - mkdir -p "${MAIL%/*}/$dir/new" - mkdir -p "${MAIL%/*}/$dir/tmp" - printf '%-25s ' "$dir" - mlist "$MAIL" | mpick -t "$t" | xargs -rI {} mv {} "$MAIL/../$dir/new" -done << 'EOF' 2>&1 | less + mkdir -p "$MAILDIR/$dir/cur" + mkdir -p "$MAILDIR/$dir/new" + mkdir -p "$MAILDIR/$dir/tmp" + printf '%-25s' "$dir" + mlist "$MAILDIR/INBOX" | mpick -t "$t" | 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.*" diff --git a/bin/xdg-open b/bin/xdg-open @@ -157,6 +157,9 @@ esac (*.webm|*.mp4|*.mkv|*.mp3|*.flac|*.ogg|*.opus) aexec mplayer "$1" ;; +(*.img) + aexec qemu-start "$1" + ;; (*.[0-9]|*.[0-9]p|*.[0-9].gz) aexec mandoc -a "$1" ;; diff --git a/dot/profile b/dot/profile @@ -2,12 +2,14 @@ export NAME="Josuah Demangeon" export TZ="Europe/Paris" export NICK="josuah" export EMAIL="mail@josuah.net" +export MAILTO="$MAIL" export EDITOR="edit" VISUAL="edit" export PAGER="less" MANPAGER="less" export ENV="$HOME/.bashrc" -export MAIL="$HOME/var/mail/INBOX" +export MAIL="$HOME/var/mail/mbox" +export MAILDIR="$HOME/var/mail" export PATH="$HOME/etc/bin:$HOME/.local/bin:$PATH" export MANPATH="$HOME/etc/man:/usr/share/man:/usr/local/man" export MANPATH="$HOME/.local/share/man:$MANPATH"