I run mutt on two systems with near identical muttrc files, it would
be very handy to be able to make the muttrc files identical to
simplify maintenance.

Essentially the *only* difference between the two muttrc files is my
E-Mail address used in alternates and my_hdr commands.

On one system I can use the system's hostname to form my address but
not on the other.  Is there a way to set a variable according to the
value of another variable (or command output)?

I.e.  if mutt is running on host halon.org.uk I want to set 'my_hdr
From:  Chris Green <[email protected]>' but if mutt is running on
host zbmc.eu I want to set 'my_hdr From:  Chris Green
<[email protected]>'.

The first one is easy (I think?!) but how can I do the second one
where my_hdr bears no relation to the hostname?

-- 
Chris Green

Reply via email to