mirror of https://github.com/dyne/webnomad.git
cut emails in maildir render for privacy
This commit is contained in:
parent
ec8109486e
commit
74f61144a7
11
maildir
11
maildir
|
|
@ -181,14 +181,13 @@ mail_getinfo() {
|
||||||
_tmp=`print "${mail_from[(ws:?:)4]}" | recode ${_enc}/QP..UTF8`
|
_tmp=`print "${mail_from[(ws:?:)4]}" | recode ${_enc}/QP..UTF8`
|
||||||
[[ "$_tmp" = "" ]] || mail_from=$_tmp
|
[[ "$_tmp" = "" ]] || mail_from=$_tmp
|
||||||
fi
|
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 '
|
mail_subj=`print "$_hdr" | awk '
|
||||||
/^Subject/ { for(i=2;i<=NF;i++) printf "%s ", $i; }
|
/^Subject/ { for(i=2;i<=NF;i++) printf "%s ", $i; }
|
||||||
' | escape_html`
|
' | escape_html`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue