On Sun, 09 Dec 2001, Slava Pechenin <[EMAIL PROTECTED]> wrote:
> Hello Mutt Users,
> 
> I am trying to make Mutt quote my replies in the following "smart" way:
> if original email is from "Tom Buddy" then quote string must be "TB> ".
> 
> In ~/.muttrc :
> set indent_string=`indent.pl %n`
> 
> But indent.pl receives ARGV[0] eq '%n', not 'Tom Buddy'.
> 
> What am I missing?
> Thanks.
> 

First of all, hello list =)  I've been lurking here for a short time
and it's nice to read such a helpful and friendly list.

Slava, I think the problem is that whith your method, the
indent_string is set once at startup.  And at that time there's
nothing to substitute for the %n.  You have to do it in a
message-hook, like

message-hook . "set indent_string=`indent.pl %n`"

This way it will be set every time a message is opened for display or
replying.  But as others have already pointed out, this isn't really a
good idea to begin with.

-- 
Johan Andersson <[EMAIL PROTECTED]>, GnuPG public key id: 0x6415B9F7

Attachment: msg21363/pgp00000.pgp
Description: PGP signature

Reply via email to