summaryrefslogtreecommitdiff
path: root/mutt_install.sh
diff options
context:
space:
mode:
authorLuke <luke@lukesmith.xyz>2018-02-11 18:06:31 -0700
committerLuke <luke@lukesmith.xyz>2018-02-11 18:06:31 -0700
commit4892aeb3efad552bb98f70d3e1f5ecc3fd2933e6 (patch)
treed5f8c328c9c1f82ba71fa804b920f29a170dcb85 /mutt_install.sh
parent5c4b388d537f41851f4d06b545dcb4362427aaaa (diff)
manual install added
Diffstat (limited to 'mutt_install.sh')
-rwxr-xr-xmutt_install.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/mutt_install.sh b/mutt_install.sh
index acbe9e8..0cdac48 100755
--- a/mutt_install.sh
+++ b/mutt_install.sh
@@ -33,6 +33,11 @@ removeAccount() { sed -ie "
rm -rf "$muttdir"accounts/$1
echo $1 deleted. ;}
+manual() { \
+ imap=$( dialog --inputbox "Insert the IMAP server for your email provider (excluding the port number)" 10 60 3>&1 1>&2 2>&3 3>&- )
+ iport=$(dialog --inputbox "What is your server's IMAP port number? (Usually 993)" 10 60 3>&1 1>&2 2>&3 3>&-)
+ smtpserver=$( dialog --inputbox "Insert the SMTP server for your email provider (excluding the port number)" 10 60 3>&1 1>&2 2>&3 3>&- )
+ sport=$( dialog --inputbox "What is your server's SMTP port number? (Usually 587 or 465)" 10 60 3>&1 1>&2 2>&3 3>&- ) ;}
addloop() { fulladdr=$( dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "Insert the full email address for the account you want to configure." 10 60 3>&1 1>&2 2>&3 3>&- )
@@ -40,7 +45,7 @@ addloop() { fulladdr=$( dialog --title "Luke's mutt/offlineIMAP autoconfig" --in
serverinfo=$(cat "$muttdir"autoconf/domains.csv | grep -w ^${fulladdr##*@})
if [ -z "$serverinfo" ];
then
- echo No suitable match in domains.csv. && clear && exit
+ manual
else
# Read in server data as variables
IFS=, read service imap iport smtp sport spoolfile postponed record <<EOF