]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
One more heuristics.
authorBruno Haible <bruno@clisp.org>
Fri, 14 Jun 2002 12:17:19 +0000 (12:17 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:08:36 +0000 (12:08 +0200)
src/ChangeLog
src/user-email.in

index 29c4520e37be9fbe42f74a2c9fabd8d77a005329..64a856088e33204f771a57392e89e3151b85706d 100644 (file)
@@ -5,6 +5,11 @@
        after an invalid multibyte sequence.
        Reported by Andrew V. Samoilov <kai@cmail.ru>.
 
+2002-06-08  Bruno Haible  <bruno@clisp.org>
+
+       * user-email.in: Look at /etc/sysconfig/mail, found on SuSE Linux.
+       Suggested by Karl Eichwalder <ke@suse.de>.
+
 2002-06-07  Bruno Haible  <bruno@clisp.org>
 
        * user-email.in: Look at /etc/mailname, found on Debian systems.
index 1f2f9eed2e74a30f68712ce8e5b301a582cd62aa..9a441830a0b430e8b115ad1fd635dd41b6af7236 100644 (file)
@@ -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.