Any help gratefully received

Multiple questions coming your way.
A little back ground info as to why I am back to basics.
A dear friend of mine passed away recently and as a request by him I have promised to keep his project alive. The problem I have it was being handed over when he was in the last weeks of his life and after ten minutes or so was shot to bits by the drugs.
I have the program running but there are a few little niggle that I need for it to run how it should.

He complied it to run on Linux/GNU but that is all I know.

Forgive me for my ignorance but it has been many years since I left engineering where I use to play with computers and design websites.

I have pasted just a snippet of the ./conv09 coding that should allow me to send emails but I cannot select the email I wish to send.

Once again, thank you for any help received and Admin, kick this out if I am in the wrong forum please.

# !/bin/bash

# Email Creation
# Make sure the file contains only one message and is "compacted"...
# Make sure that a dummy attachment was done, if applicable
# Slice this off, just after the end of the main message.

# NB FileSpec (See below) items are looked for within the user's subdir ONLY...
# This means that CollectUserFiles may need to be re-run before CreateEmails
# i.e. Files MUST have already been collected by ./conv08

# Attachments
# Mode : NoAttach  # The default if none specified...
# Mode : Auto      # Attach the "FileSpec" files from the Users sub-directories
# FileSpec :       # The default is '*' if none specified...
# DON'T HAVE _ (Underscore) Characters in any file names (messes with sed)...
# Ditto spaces, they can be a pain in the backside...

clear

#emlFileName="FileName[:Mode[:FileSpec]]"
#emlFileName="$EmailDir/00-Initial.eml:Auto:*.png"
#emlFileName="$EmailDir/00-Intro.eml:Auto"
#emlFileName="$EmailDir/01-Added-To-List.eml"
#emlFileName="$EmailDir/01-Follow-Up.eml"
#emlFileName="$EmailDir/02-Intro-No-Reply.eml"
#emlFileName="$EmailDir/02-Opt-In.eml"
#emlFileName="$EmailDir/02-Opt-In-Final.eml"
#emlFileName="$EmailDir/02-Opt-In-No-Reply.eml"
#emlFileName="$EmailDir/02-Removed-From-List.eml"
#emlFileName="$EmailDir/03-Diagrams-Offer.eml"
#emlFileName="$EmailDir/04-Diagrams-Added.eml:Auto:Diagrams*.pdf"
#emlFileName="$EmailDir/04-Diagrams-SentLate.eml:Auto:Diagrams*.pdf"
#emlFileName="$EmailDir/04-Intro-MakeIB.eml:Auto:*MakeIB*"
#emlFileName="$EmailDir/04-Intro-P-Swap.eml:Auto"
#emlFileName="$EmailDir/20-Latest.eml:Auto"
#emlFileName="$EmailDir/20-Latest-Delayed.eml"
#emlFileName="$EmailDir/20-Latest-Req-Feedback.eml"
#emlFileName="$EmailDir/20-LinkMove.eml:Auto"
#emlFileName="$EmailDir/30-DiaryEntries.eml:Auto:Help.Add-DE.txt;*.DE*"
#emlFileName="$EmailDir/31-DiaryEntries-PreInstalled.eml:Auto:*.ods"
#emlFileName="$EmailDir/99-GenericReUseMe.eml"
#emlFileName="$EmailDir/99-HandOver.eml"
#emlFileName="$EmailDir/99-Shell-No-Attach.eml"


#UserListFileName="$UserListFileName.unconfirmed"

LessUsers=0 # Bodge to change the count value, if necessary...
TotalUsers=$((TotalUsers-LessUsers))

if [ -z "$emlFileName" ]; then
  ERROR "No emlFileName selected..."
  exit 1
fi

if [ "$OSdetected" = "Linux" ]; then
  hostname="$HOSTNAME"
else

  # ... on a Mac, this may get appended with .local or .lan (LAN)
  hostname="`echo $HOSTNAME | cut -d '.' -f1`" 
fi

hostname=z

if [ ! "$hostname" = "main-pc" ] && [ ! "$hostname" = "irh-macbook" ]; then
  echo "${ATTRBOLD}##########################################################################${ATTRCLEAR} " 
  echo ""

  WARNING "hostname \"$hostname\" Has not been recognised and has been re-assigned the name \"deputy\""
  hostname="deputy"
fi

Hello!

In case you forgot to read the forum rules, here is quick copy.

Cheers.

The UNIX and Linux Forums

Duplicate Thread, continue here.

1 Like