realname=$( dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "Enter the full name you'd like to be identified by on this email account." 10 60 3>&1 1>&2 2>&3 3>&- )
realname=$( dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "Enter the full name you'd like to be identified by on this email account." 10 60 3>&1 1>&2 2>&3 3>&- )
title=$( dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "Give a short, one-word name for this email account that will differentiate it from other email accounts." 10 60 3>&1 1>&2 2>&3 3>&- )
title=$( dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "Give a short, one-word name for this email account that will differentiate it from other email accounts." 10 60 3>&1 1>&2 2>&3 3>&- )
login=$(dialog --title "Luke's mutt/offlineIMAP autoconfig" --inputbox "Enter your login for the \"$title\" account.\n(If left empty, the full email address will be used instead.)" 10 60 3>&1 1>&2 2>&3 3>&- )
# Sets the repo type and other variables for the sed regex.
# Sets the repo type and other variables for the sed regex.
if [[ "$service" == "gmail.com" ]];
if [[ "$service" == "gmail.com" ]];
then
then
@@ -118,6 +119,10 @@ if [[ "$service" == "gmail.com" ]];
type="IMAP"
type="IMAP"
delet="Gmail]\/"
delet="Gmail]\/"
fi
fi
if [[ -z "$login" ]];
then
login=$fulladdr
fi
# The replacements
# The replacements
replacement="
replacement="
s/\$realname/$realname/g;
s/\$realname/$realname/g;
@@ -128,8 +133,8 @@ replacement="
s/\$smtp/$smtp/g;
s/\$smtp/$smtp/g;
s/\$sport/$sport/g;
s/\$sport/$sport/g;
s/\$type/$type/g;
s/\$type/$type/g;
s/\$login/$login/g;
/$delet/d"
/$delet/d"
# Gets the first unused shortcut number in the muttrc and puts it in $idnum.
# Gets the first unused shortcut number in the muttrc and puts it in $idnum.