From 29f264db233764a6963bce761b444091b603e114 Mon Sep 17 00:00:00 2001
From: Luke Smith <luke@lukesmith.xyz>
Date: Mon, 1 Nov 2021 14:14:45 -0400
Subject: Revert "allow dynamically loading available mailboxes"

This reverts commit 2cb2fa03452cb99537a1751961574a0b6d3253e0.
---
 bin/mw | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'bin/mw')

diff --git a/bin/mw b/bin/mw
index 5205a13..d3129e7 100755
--- a/bin/mw
+++ b/bin/mw
@@ -226,7 +226,7 @@ getboxes() { if [ -n "${force+x}" ] ; then
 		idnum=$((idnum + 1))
 		[ "$idnum" -eq "$x" ] || break
 	done
-	toappend="mailboxes \`mdir=$maildir/$fulladdr/; find \$mdir -mindepth 1 -type d -name cur | sed -e 's:/cur\$:\":' -e \"s:\$mdir:\\\"=:\" | sort | tr '\\\n' ' '\`"
+	toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )"
 }
 
 finalize() { echo "$toappend" >> "$accdir/$fulladdr.muttrc"
-- 
cgit v1.2.3