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

Re: my_hdr cannot contain brackets or mutt variables



Hi,

* Bjoern JACKE [06-06-27 12:35:28 +0200] wrote:

I use mutt-1.5.9i. I tried to create a customized From: header by folder-hook:

folder-hook '+ml-private' my_hdr From: Bjoern Jacke (private) <foo@xxxxxxxxxxx>

but the resulting From header looks like:

From: Bjoern Jacke <foo@xxxxxxxxxxx>

the brackets and everything in it are cut out.

Correct. For RfC2822 you need to quote it like this:

  my_hdr From: "Bjoern Jacke (private)" <foo@xxxxxxxxxxx>

It's also not possible to write $realname into it like:

folder-hook '+ml-private' my_hdr From: $realname <foo@xxxxxxxxxxx>

The expansion feature along with self-defined $my_ variables was added in 1.5.11 and thus isn't present in 1.5.9:

  <http://dev.mutt.org/cgi-bin/viewcvs.cgi/mutt/UPDATING?view=markup>

In your case, I guess mutt would try to expand $realname as environment variable.

  bye, Rocco
--
:wq!