tag 356348 upstream forwarded 356348 [email protected] thanks for ignoring the previous control lines (robot bcc'ed)
I received the following bug repport from the Debian BTS a while ago, and I think to apply the attached bug to fix it, but I'm really unsure of myself concerning the mail command. Could someone please review the patch (and commit it in the cvs)? Thanks for your time, Mt. ----- Forwarded message from Mark Brown <[EMAIL PROTECTED]> ----- Subject: Bug#356348: quilt: Does not respect /etc/mailname From: Mark Brown <[EMAIL PROTECTED]> Date: Sat, 11 Mar 2006 12:26:15 +0000 Package: quilt Version: 0.42-2 Severity: normal When generating the default From: for outbound messages quilt uses $(hostname -f) to determine the domain part of the e-mail address. Policy 11.6 specifies that this should be overridden by the value specified in /etc/mailname. ----- End forwarded message -----
--- quilt-0.44.orig/quilt/mail.in
+++ quilt-0.44/quilt/mail.in
@@ -154,7 +154,17 @@
fi
if [ -z "$opt_sender" ]; then
- hostname=$(hostname -f 2>/dev/null)
+ hostname=nowhere
+ if [ -e /etc/mailname ] ;
+ then
+ hostname=`cat /etc/mailname`
+ fi
+
+ if [ "$hostname" = "${hostname/.}" ]
+ then
+ hostname=$(hostname -f 2>/dev/null)
+ fi
+
if [ "$hostname" = "${hostname/.}" ]
then
hostname=$(hostname)
signature.asc
Description: Digital signature
_______________________________________________ Quilt-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/quilt-dev
