#!/bin/sh
# mewstunnel: stunnel wrapper for Mew
# 
# Author: Tatsuya Kinoshita <tats@vega.ocn.ne.jp>
# Created: 31 Jan 2005
# Revised: 
# 
# Unlimited permission is granted to use, copy, distribute, and/or modify
# this file.  There is NO WARRANTY.

prog="$MEW_PROG_STUNNEL"
if [ -z "$prog" ]; then
  prog="`which stunnel4`"
  if [ ! -x "$prog" ]; then
    prog="`which stunnel`"
  fi
  if [ ! -x "$prog" ]; then
    prog="/usr/sbin/stunnel4"
  fi
  if [ ! -x "$prog" ]; then
    prog="/usr/sbin/stunnel"
  fi
fi

LC_ALL="C"
export LC_ALL

# Create new process
"$prog" "$@"
