dot

packages and services management
Log | Files | Refs | README

commit 6652dc5ac66a285cc951f08cd50419a31dbb6eef
parent e811f7eff548b1c05f4c284cca3e68ca11c64877
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 26 Jan 2019 23:23:17 +0100

fix mail-gpg-encrypt to avoid different keys for different "Full Name" part of address

Diffstat:
Mbin/mail-filter | 28++++++++++++----------------
Mbin/mail-gpg-encrypt | 1+
Mconf/git | 1+
Ahome/.qmail | 1+
4 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/bin/mail-filter b/bin/mail-filter @@ -7,25 +7,21 @@ importas user x backtick -n x { homeof ${user} } importas home x -multisubstitute { - importas -D ${home}/.mblaze mblaze MBLAZE - importas -D ${home}/mail maildir MAILDIR -} +importas -D ${home}/mail md MAILDIR +importas -D ${home}/.mblaze mb MBLAZE -cd ${maildir} +if { mkdir -p ${md}/.filter/cur ${md}/.filter/new ${md}/.filter/tmp } +backtick -n x { mdeliver ${md}/.filter } +importas tmp x -fdmove -c 1 2 +ifte { rm -f ${tmp} } { exit 1 } -forbacktickx -n x { ls ${mblaze}/sort } -importas target x +forbacktickx -n x { ls ${mb}/sort } +importas box x -if { printf " %-35s " ${target} } -if { mkdir -p -m 0700 ${target}/cur ${target}/new ${target}/tmp } - -backtick -n x { redirfd -r 0 ${mblaze}/sort/${target} tr "\n" " " } +backtick -n x { redirfd -r 0 ${mb}/sort/${box} tr "\n" " " } importas rule x -forbacktickx -n x { mpick -v -t ${rule} ${@} } -importas file x - -mv ${file} ${target}/new +if -t { mpick -v -t ${rule} ${tmp} } +if { mkdir -p -m 0700 ${md}/${box}/cur ${md}/${box}/new ${md}/${box}/tmp } +mdeliver ${md}/${box} diff --git a/bin/mail-gpg-encrypt b/bin/mail-gpg-encrypt @@ -16,6 +16,7 @@ if { backtick -n x { pipeline { mhdr -d -M -A -h from:to:cc:bcc: "${draft}" } + pipeline { sed "s/.*<//; s/>//" } sort -u } importas -s -d "\n" recipients x diff --git a/conf/git b/conf/git @@ -13,4 +13,5 @@ if { git-newrepo public sites "mirror of git://git.suckless.org/sites" } if { git-newrepo public s6-mk "services definition for the s6-rc service manager" } if { git-newrepo public recipes "packages recipes for the <noname> package manager" } if { git-newrepo public package "simple and robust package manager" } +if { git-newrepo public j5 "aditionnal tools for the s6 service manager" } if { git-newrepo blog blog "blog posts" } diff --git a/home/.qmail b/home/.qmail @@ -0,0 +1 @@ +|mail-filter