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

Re: "set sendmail", does it need the full path?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday, March 19 at 03:44 PM, quoth Eur Ing Chris Green:
> However it seems to me that mutt requires the full path to 
> 'sendmail' in the muttrc file and that's a bit difficult to do in my 
> present situation because I can't have a path that looks the same 
> whether I'm on Linux or Solaris but actually points to a different 
> place for each.

What I do in situations like that is I set up $sendmail to be 
$HOME/.sendmail.sh and then in that script, I have something like 
this:

    #!/bin/sh
    if [ $ARCH == "solaris" ] ; then
        exec /path/to/solaris/sendmail "$@"
    else if [ $ARCH == "Linux" ] ; then
        exec /path/to/linux/sendmail "$@"
    fi

Hope that helps,

~Kyle
- -- 
Every American expects and deserves clean air, and then we act on that 
belief, then we will set an example for the rest of the world to 
follow.
                                                  -- George H. W. Bush
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFF/rJbBkIOoMqOI14RAqSLAKDLRmDXte1qsJCWIdfYnhi2NyNvIwCg3C0C
QxKkM4w8LnzqXeLj0PGAhac=
=JRru
-----END PGP SIGNATURE-----