From: Bruno Haible Date: Fri, 14 Jun 2002 12:17:19 +0000 (+0000) Subject: One more heuristics. X-Git-Tag: v0.11.3~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c35b5d1236a8544e3ea64fc27c66cf16cac41264;p=thirdparty%2Fgettext.git One more heuristics. --- diff --git a/src/ChangeLog b/src/ChangeLog index 29c4520e3..64a856088 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,6 +5,11 @@ after an invalid multibyte sequence. Reported by Andrew V. Samoilov . +2002-06-08 Bruno Haible + + * user-email.in: Look at /etc/sysconfig/mail, found on SuSE Linux. + Suggested by Karl Eichwalder . + 2002-06-07 Bruno Haible * user-email.in: Look at /etc/mailname, found on Debian systems. diff --git a/src/user-email.in b/src/user-email.in index 1f2f9eed2..9a441830a 100644 --- a/src/user-email.in +++ b/src/user-email.in @@ -225,6 +225,14 @@ if test -r /etc/mailname; then fi fi +# SuSE Linux >= 8.0 systems have a file /etc/sysconfig/mail. +if test -r /etc/sysconfig/mail; then + hostmailname=`. /etc/sysconfig/mail && echo "$FROM_HEADER"` + if test -n "$hostmailname"; then + addresses="$addresses ${user}@$hostmailname" + fi +fi + # elm has no user-defined addresses. # mailx has no user-defined addresses. # mh has no user-defined addresses.