aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2009-08-16 03:09:24 +0000
committerUlrich Müller <ulm@gentoo.org>2009-08-16 03:09:24 +0000
commit6c89696208268adf6ca8e8e28f0febf7771d9413 (patch)
treee1f3e29ffb450675a217accdc516e816eb759563
parentBackport r601 and r602 from trunk. (diff)
downloadeselect-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.eselect4
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"