quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Quilt-dev] [PATCH] Let /etc/mailname override the hostname in the m


From: Martin Quinson
Subject: Re: [Quilt-dev] [PATCH] Let /etc/mailname override the hostname in the mail command
Date: Thu, 15 Sep 2011 16:00:53 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Sep 15, 2011 at 03:03:26PM +0200, Andreas Gruenbacher wrote:
> On Thursday 15 September 2011 14:41:22 Martin Quinson wrote:
> > Hello,
> > 
> > here is an old patch laying in the debian package. It is maybe a bit
> > debian specific, but it shouldn't cause any arm to other systems, and
> > I'd really like to reduce the divergences between debian's version and
> > common one.
> 
> I agree.  How about the slightly simplified attached version though?

Your version is indeed much superior to what we had. I already replace
it here.

Thanks, Mt.


> diff --git a/quilt/mail.in b/quilt/mail.in
> index d16b3c1..b9b73b1 100644
> --- a/quilt/mail.in
> +++ b/quilt/mail.in
> @@ -267,7 +267,13 @@ fi
>  
>  if [ -z "$opt_sender" ]
>  then
> -     hostname=$(hostname -f 2>/dev/null)
> +     if [ -e /etc/mailname ]
> +     then
> +             hostname=$(< /etc/mailname)
> +     else
> +             hostname=$(hostname -f 2>/dev/null)
> +     fi
> +
>       if [ "$hostname" = "${hostname/.}" ]
>       then
>               hostname=$(hostname)


-- 
Le sens commun n'est pas si commun (Common sense is not so common).
  -- Voltaire



reply via email to

[Prev in Thread] Current Thread [Next in Thread]