More work on imaps...
This commit is contained in:
parent
24b9191484
commit
570ad87f21
@ -292,12 +292,18 @@ configure_generic()
|
||||
local hostName="${1##*@}"
|
||||
local imapHost
|
||||
local imapUser
|
||||
local smtpUrl
|
||||
local imapPort
|
||||
local smtpHost
|
||||
local smtpUser
|
||||
local smtpPort
|
||||
local extraSettings
|
||||
read -p "Enter imap host: " -e -i imap://imap.$hostName imapHost
|
||||
read -p "Enter imap user: " -e -i $1 imapUser
|
||||
read -p "Enter smtp URL: " -e -i smtp://smtp.${hostName}:587/ smtpUrl
|
||||
read -p "Enter extra settings, one line at a time, just press enter when done: " extraSettings
|
||||
read -p "Enter imap host: " -e -i imap://imap.$hostName imapHost
|
||||
read -p "Enter imap user: " -e -i $1 imapUser
|
||||
read -p "Enter imap port: " -e -i 993 imapPort
|
||||
read -p "Enter smtp host: " -e -i smtp://smtp.$hostName smtpHost
|
||||
read -p "Enter smtp user: " -e -i $userName smtpUser
|
||||
read -p "Enter smtp port: " -e -i 587 smtpPort
|
||||
read -p "Enter extra settings, one line at a time, just press enter when done: " extraSettings
|
||||
while [ "$extraSettings" != "" ]; do
|
||||
echo "$extraSettings" >> "$muttHome/$1"
|
||||
read $extreSettings
|
||||
@ -305,8 +311,8 @@ read -p "Enter smtp URL: " -e -i smtp://smtp.${hostName}:587/ smtpUrl
|
||||
echo "unset imap_passive" >> "$muttHome/$1"
|
||||
echo "unset record" >> "$muttHome/$1"
|
||||
echo "set from=$1" >> "$muttHome/$1"
|
||||
echo "set smtp_url=\"$smtpUrl" >> "$muttHome/$1"
|
||||
echo "set folder=imaps://imap.$hostName/" >> "$muttHome/$1"
|
||||
echo "set smtp_url=\"$smtp://$smtpUser@$smtpHost:$smtpPort/" >> "$muttHome/$1"
|
||||
echo "set folder=imaps://$imapHost/" >> "$muttHome/$1"
|
||||
echo "set mailboxes = +INBOX" >> "$muttHome/$1"
|
||||
echo "set postponed = +Drafts" >> "$muttHome/$1"
|
||||
echo "set imap_keepalive=300" >> "$muttHome/$1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user