[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote on Wed, 16 Feb 2000:
> Hi, I basically need to be able to alter QMAILHOST, QMAILUSER and QMAILNAME
> to change the appearence of out going mail. No amount of header altering
> overwrites those variables.
Create a wrapper shell script which sets the variables and then calls
qmail-inject (or the qmail sendmail wrapper if you prefer that). That's
the only way to change those environment variables from the values that
they had when Mutt started.
> I tried using set signature="~/profiles/user1|" but that didn't work. I
> figured it was due to the shell script only setting the varibles for that
> shell and not the shell I am using.
That is correct. The settings don't affect the environment that Mutt
runs in. There is no way, that I know of, to change environment
variables of a process from a sub-process. So that approach can't
really work.
> So does anyone have any solutions to this tricky
> problem. I am using folder-hooks to use the set variable.
Well, look above. However, I think there's an easier way than using
QMAILHOST, QMAILUSER and QMAILNAME. The qmail-inject man page says
that if a From header is supplied, it is *not* overwritten by default.
So it would be simpler to just specify the From you want in Mutt, and
not worry about the environment variables at all. If your From header
is getting overwritten, then the only reason that can happen as far as
I can tell is that you also have the variable QMAILINJECT containing
a "f". Remove that to get rid of the rewriting. If you require that
for something else, you may just create a wrapper script for Mutt that
unsets the variable for Mutt sessions only.
In any case, I suggest man qmail-inject, it's good reading.
Hope this helps,
Mikko
PS. Please use [EMAIL PROTECTED] (not the gbnet.net address) when
posting to the list, thanks.
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
This sentence does, in fact, not have the property it claims not to have.