summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-21 05:32:59 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-21 05:32:59 -0400
commitf0bf2250a9d787b0b2847a82bc9d4dabe1e0b341 (patch)
treed27bc394b3ca04bb0c00c4e6556be3eb58d0d412
parentbfbfa82cbe8b5339a26a011cc22439e27eb437aa (diff)
Revert "fulladdr and login merged"
This reverts commit bfbfa82cbe8b5339a26a011cc22439e27eb437aa.
-rwxr-xr-xmw12
1 files changed, 8 insertions, 4 deletions
diff --git a/mw b/mw
index 2f0a9a5..730c4c0 100755
--- a/mw
+++ b/mw
@@ -23,13 +23,13 @@ msmtp_profile="
account $title
host $smtp
port $sport
-from $fulladdr
-user $fulladdr
+from $login
+user $login
passwordeval \"pass mutt-wizard-$title\""
mbsync_profile="IMAPStore $title-remote
Host $imap
Port $iport
-User $fulladdr
+User $login
PassCmd \"pass mutt-wizard-$title\"
SSLType IMAPS
CertificateFile /etc/ssl/certs/ca-certificates.crt
@@ -82,7 +82,7 @@ set realname = \"$realname\"
set from = \"$fulladdr\"
set sendmail = \"/usr/bin/msmtp -a $title\"
set folder = \"imaps://$fulladdr@$imap:$iport\"
-set imap_user = \"$fulladdr\"
+set imap_user = \"$login\"
set header_cache = $accdir/$title/cache/headers
set message_cachedir = $accdir/$title/cache/bodies
set certificate_file = $accdir/$title/certificates
@@ -148,6 +148,10 @@ EOF
read -r title
printf "\033[0m"
done
+ printf "If your account has a special username different from your address, insert it now. Otherwise leave this prompt totally blank.\\n\tLogin(?): \033[36m\t"
+ read -r login
+ printf "\033[0m"
+ [ -z "$login" ] && login="$fulladdr"
tmpdir="$(mktemp -d)"
grep "i[0-9]" "$muttdir/personal.muttrc" 2>/dev/null | awk '{print $3}' | sed -e 's/i//g' > "$tmpdir/mutt_used"
seq 1 9 > "$tmpdir/mutt_all"