cut emails in maildir render for privacy

This commit is contained in:
Jaromil 2017-05-01 09:35:46 +02:00
parent ec8109486e
commit 74f61144a7
1 changed files with 6 additions and 7 deletions

13
maildir
View File

@ -181,13 +181,12 @@ mail_getinfo() {
_tmp=`print "${mail_from[(ws:?:)4]}" | recode ${_enc}/QP..UTF8`
[[ "$_tmp" = "" ]] || mail_from=$_tmp
fi
func "converted to $mail_from"
}
func "converted to $mail_from" }
isemail "${mail_from}" && {
# if is an email take only first part for privacy
_tmp=${mail_from[(ws:@:)1]}
mail_from=${_tmp}
}
mail_subj=`print "$_hdr" | awk '
/^Subject/ { for(i=2;i<=NF;i++) printf "%s ", $i; }