summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-02-13 18:15:45 -0500
committerLuke Smith <luke@lukesmith.xyz>2023-02-13 18:15:45 -0500
commit6e44eb50566004f654eacb53e748bb3ff753e31a (patch)
tree1d0cd3fd16f2c4d6ac549fee062ef349bf127b1b /bin/mw
parentd890e0ea21d3617601a1e87bf3e95858c47e0cff (diff)
stupid fix and cli feedback
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index a5b1341..64d9076 100755
--- a/bin/mw
+++ b/bin/mw
@@ -21,7 +21,6 @@ notmuchtemp="$muttshare/notmuch-temp"
# With the use of templates, it's impossible to use parameter substitution.
# Therefore, some default variables that might be otherwise overwritten are set
# here.
-folder="$maildir/$fulladdr"
iport="993"
sport="465"
imapssl="IMAPS"
@@ -135,6 +134,7 @@ askinfo() { \
echo "$fulladdr is not a valid email address. Please retype the address:"
read -r fulladdr
done
+ folder="$maildir/$fulladdr"
getaccounts; echo "$accounts" | grep -q "\s$fulladdr$" 2>/dev/null &&
{ echo "$fulladdr has already been added" && exit 1 ;}
{ [ -z "$imap" ] || [ -z "$smtp" ] ;} && parsedomains