#!/bin/sh

# showport
# Copyright (C) 2025 Joseph Rosevear, San Diego CA, USA.

# This file is part of SAM.handy, a library of tools for use with SAM.

# SAM.handy is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at your
# option) any later version.

# SAM.handy is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.

# You should have received a copy of the GNU General Public License
# along with SAM.handy. If not, see <http://www.gnu.org/licenses/>.

# To learn more about SAM and SAM.handy, see <https://RosevearSoftware.com>.



# Joseph Rosevear 200307 I made this script.

# Joseph Rosevear 200408 I replaced "mimeo" with "dupe".

# Joseph Rosevear 211009 I changed "show_port" to "showport" in a
# comment and in an echo.  This was a (harmless) bug.

# Joseph Rosevear 251215 01:24PM I changed a comment at the top.



if [ "$1" = "" ]; then

   echo "Usage:"
   echo
   echo "showport      [cat|dupe|all]"
   echo
   echo "   cat         variables for cat methods"
   echo "   dupe        variables for dupe methods"
   echo "   all         all variables"
   
else

   case $1 in
   
      cat|dupe|all) echo "smtp=$smtp";
      echo "port=$port";
      echo "epass=$epass";;
   esac
   
   case $1 in   

      cat|all) echo "auth=$auth";
      echo "helo=$helo";
      echo "sleep=$sleep";;
   esac
   
   case $1 in
   
      dupe|all) echo "user=$user";
      echo "ffrom=$ffrom";;
   esac;
fi
