diff options
author | 2009-08-16 03:09:24 +0000 | |
---|---|---|
committer | 2009-08-16 03:09:24 +0000 | |
commit | 6c89696208268adf6ca8e8e28f0febf7771d9413 (patch) | |
tree | e1f3e29ffb450675a217accdc516e816eb759563 | |
parent | Backport r601 and r602 from trunk. (diff) | |
download | eselect-6c89696208268adf6ca8e8e28f0febf7771d9413.tar.gz eselect-6c89696208268adf6ca8e8e28f0febf7771d9413.tar.bz2 eselect-6c89696208268adf6ca8e8e28f0febf7771d9413.zip |
Backport r616 from trunk.
svn path=/branches/branch-1.1.x/; revision=617
-rw-r--r-- | modules/news-tng.eselect | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/news-tng.eselect b/modules/news-tng.eselect index 54ac0e2..06e219b 100644 --- a/modules/news-tng.eselect +++ b/modules/news-tng.eselect @@ -125,7 +125,7 @@ rfc2047_encode() { mail_header() { local item=$1 author=$2 title=$3 posted=$4 local -a mname=( 0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ) - local year=0001 month=01 day=01 time="00:00:00" wd addr name + local year=0001 month=01 day=01 time="00:00:00" wd addr="unknown" name # "date -d" is not portable, therefore we do manual processing if [[ ${posted} == +([0-9])-+([0-9])-+([0-9]) ]]; then @@ -148,7 +148,7 @@ mail_header() { [[ ${title} != *([[:ascii:]]) ]] && title=$(rfc2047_encode "${title}") echo "From ${addr} ${wd} ${mname[month]} ${day} ${time} ${year}" - echo "From: ${name} <${addr}>" + echo "From: ${name}${name+ }<${addr}>" #echo "Reply-To: DO NOT REPLY <devnull@localhost.invalid>" echo "Subject: ${title}" echo "Date: ${wd}, ${day} ${mname[month]} ${year} ${time} +0000" |