summaryrefslogtreecommitdiff
path: root/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-02-21 10:31:21 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-02-21 10:31:21 -0500
commitfa63e3c9086e80df0fbda5337d75aab1b7b6db92 (patch)
treef1a93c7dcaca1e2c24793002362c0e6e0f7bc34c /mw
parent23e7829195cc336cdc5898fd2bc02ef088d2774d (diff)
do inventory later
Diffstat (limited to 'mw')
-rwxr-xr-xmw14
1 files changed, 0 insertions, 14 deletions
diff --git a/mw b/mw
index 7f209df..fee0b4d 100755
--- a/mw
+++ b/mw
@@ -111,20 +111,6 @@ localfolders = $maildir/$title
userexit() { clear; exit ;}
-inventory() { \
- grep "^accounts =" "$HOME/.config/offlineimap/config" | sed 's/accounts =\( \)//g;s/\(,\) /\n/g;' | nl --number-format=ln > "$tmpdir/numbered"
- accounts=()
- while read n s ; do
- accounts+=($n "$s" off)
- done < "$tmpdir/numbered"
- choices=$(dialog --separate-output --checklist "Select all desired email accounts with <SPACE>." 15 40 16 "${accounts[@]}" 2>&1 >/dev/tty)
-
- if [ -z "$choices" ];
- then
- clear
- else
- userchoices=$(IFS="|"; keys="${choices[*]}"; keys="${keys//|/\\|}"; grep -w "${keys}" "$tmpdir/numbered" | awk '{print $2}')
- fi ;}
chooseadd() { \
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>&- ) || userexit