|
|
|
@ -276,7 +276,7 @@ fi
|
|
|
|
|
commajoin | sed 's/^/Cc: /'
|
|
|
|
|
printf '%s' "$hdrs" | mhdr -M -h bcc - |
|
|
|
|
|
commajoin | sed 's/^/Bcc: /'
|
|
|
|
|
printf '%s\n' "$hdrs" | awk '{ print }' |
|
|
|
|
|
printf '%s\n' "$hdrs" |
|
|
|
|
|
msed "/to/d; /cc/d; /bcc/d; /body/d" -
|
|
|
|
|
} | msed "/cc/a//; /bcc/a//; /subject/a//; /from/a/$default_from/" - | sed '/^$/d'
|
|
|
|
|
msgid
|
|
|
|
@ -298,7 +298,7 @@ fi
|
|
|
|
|
printf '%s' "$hdrs" | mhdr -M -h bcc - |
|
|
|
|
|
commajoin | sed 's/^/Bcc: /'
|
|
|
|
|
COLUMNS=10000 mscan -f 'Subject: Fwd: [%f] %s' "$@" 2>/dev/null | sed 1q
|
|
|
|
|
printf '%s\n' "$hdrs" | awk '{ print }' |
|
|
|
|
|
printf '%s\n' "$hdrs" |
|
|
|
|
|
msed "/to/d; /cc/d; /bcc/d" -
|
|
|
|
|
} | msed "/cc/a//; /bcc/a//; /from/a/$default_from/" - | sed '/^$/d'
|
|
|
|
|
msgid
|
|
|
|
@ -335,7 +335,7 @@ fi
|
|
|
|
|
commajoin | sed 's/^/Resent-To: /'
|
|
|
|
|
printf '%s' "$hdrs" | mhdr -M -h resent-cc - |
|
|
|
|
|
commajoin | sed 's/^/Resent-Cc: /'
|
|
|
|
|
printf '%s\n' "$hdrs" | awk '{ print }' |
|
|
|
|
|
printf '%s\n' "$hdrs" |
|
|
|
|
|
msed "/resent-to/d; /resent-cc/d" -
|
|
|
|
|
} |
|
|
|
|
|
msed "/resent-to/a//; /resent-from/a/$default_from/" - | sed '/^$/d'
|
|
|
|
@ -368,11 +368,11 @@ fi
|
|
|
|
|
notmine |grep -Fv -e "$to" |
|
|
|
|
|
ouniq |commajoin)"
|
|
|
|
|
printf 'Bcc: \n'
|
|
|
|
|
printf '%s\n' "$hdrs" | awk '{ print }' |
|
|
|
|
|
printf '%s\n' "$hdrs" |
|
|
|
|
|
msed "/body/d" -
|
|
|
|
|
fi | sed '/^$/d'
|
|
|
|
|
printf 'Subject: Re: %s\n' "$(COLUMNS=10000 mscan -f '%S' "$1")"
|
|
|
|
|
if ! printf '%s\n' "$hdrs" | awk '{ print }' |
|
|
|
|
|
if ! printf '%s\n' "$hdrs" |
|
|
|
|
|
mhdr -h from: - >/dev/null; then
|
|
|
|
|
addr=$(maddr -a -h delivered-to:to:cc:bcc: "$1" | replyfrom | head -n1)
|
|
|
|
|
[ -n "$addr" ] && from=$(maddr -h reply-from "$MBLAZE/profile" | grep -Fi "<$addr>" | head -n1)
|
|
|
|
|