manual install added
This commit is contained in:
parent
5c4b388d53
commit
4892aeb3ef
17
manual.sh
17
manual.sh
@ -1,17 +0,0 @@
|
|||||||
# The stuff for manually putting in server settings.
|
|
||||||
# Will be added to main script as option eventually.
|
|
||||||
remotehost=$(\
|
|
||||||
dialog --inputbox "Insert the IMAP server for your email provider (excluding the port number)" 10 60 \
|
|
||||||
3>&1 1>&2 2>&3 3>&- \
|
|
||||||
)
|
|
||||||
|
|
||||||
dialog --inputbox "What is your server's IMAP port number? (Usually 993)" 10 60
|
|
||||||
|
|
||||||
smtpserver=$(\
|
|
||||||
dialog --inputbox "Insert the SMTP server for your email provider (excluding the port number)" 10 60 \
|
|
||||||
3>&1 1>&2 2>&3 3>&- \
|
|
||||||
)
|
|
||||||
smtpport=$(\
|
|
||||||
dialog --inputbox "What is your server's SMTP port number? (Usually 587 or 465)" 10 60
|
|
||||||
3>&1 1>&2 2>&3 3>&- \
|
|
||||||
)
|
|
@ -33,6 +33,11 @@ removeAccount() { sed -ie "
|
|||||||
rm -rf "$muttdir"accounts/$1
|
rm -rf "$muttdir"accounts/$1
|
||||||
echo $1 deleted. ;}
|
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>&- )
|
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##*@})
|
serverinfo=$(cat "$muttdir"autoconf/domains.csv | grep -w ^${fulladdr##*@})
|
||||||
if [ -z "$serverinfo" ];
|
if [ -z "$serverinfo" ];
|
||||||
then
|
then
|
||||||
echo No suitable match in domains.csv. && clear && exit
|
manual
|
||||||
else
|
else
|
||||||
# Read in server data as variables
|
# Read in server data as variables
|
||||||
IFS=, read service imap iport smtp sport spoolfile postponed record <<EOF
|
IFS=, read service imap iport smtp sport spoolfile postponed record <<EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user