Re: "set sendmail", does it need the full path?
On Mon, Mar 19, 2007 at 08:55:07AM -0700, Kyle Wheeler wrote:
> 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,
>
Yes, OK, thanks. I wasn't quite sure if running via a wrapper script
would be OK. If the above works then it's ideal.
--
Chris Green