<<< Date Index >>>     <<< Thread Index >>>

Re: mutt/2054: signature script cannot have parameter



The following reply was made to PR mutt/2054; it has been noted by GNATS.

From: Alain Bench <veronatif@xxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: Lidan Shou <ldshou@xxxxxxxxx>
Subject: Re: mutt/2054: signature script cannot have parameter
Date: Wed, 14 Sep 2005 11:34:09 +0200 (CEST)

  On Tuesday, September 13, 2005 at 12:52:26 AM -0700, Lidan Shou wrote:
 
 > I used
 >| set signature="~/bin/gen_sig.sh %n|"
 > in the .muttrc file. The content of gen_sig.sh is:
 >| echo Hi, $1,
 >| echo
 >| echo Best regards,
 >| echo my name
 > The set signature command is supposed to pass the *name* parameter to
 > the shell script. However, I always get the following output as the
 > signature (which is not what I desired):
 >| Hi, %n,
 >|
 >| Best regards,
 >| my name
 > How can I get the *value* of "%n" ?
 
     Thanks for the additional informations. You can't: %expandos are not
 expanded as command parameters. And it is not really intended to put a
 "Hello" in the signature: Probably better in first top line. The natural
 place to do that is $attribution (only for replies), or perhaps look at
 the $signon/$signoff patch (for all messages).
 
 
     Note: When you followup to a bug report, please do <group-reply> or
 something equivalent as "reply to all". Your reply should go both to me
 *and* to bug-any@xxxxxxxxxxxxx
 
 
 Bye!   Alain.
 -- 
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?