summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Stevens <nilix@nilfm.cc>2022-01-22 13:38:46 -0700
committerDerek Stevens <nilix@nilfm.cc>2022-01-22 13:38:46 -0700
commit7c5b6db116a57619ec14835be92b8643c7c8e67c (patch)
tree21483e0f748b8c0771ab33e2f7e476dc0053ba1f
parenteb82854cc04a8c3772a3b4b617b2c795952fc70e (diff)
disable glob expansion in summary compositionHEADmain
-rwxr-xr-xmail2mms.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail2mms.sh b/mail2mms.sh
index 3409ea9..f3d74d8 100755
--- a/mail2mms.sh
+++ b/mail2mms.sh
@@ -21,7 +21,8 @@ oldnew=0
summary() {
i=0
for m in $(\ls -1r ${inbox}/new/*); do
-
+ # disable glob expansion
+ set -f
# if there are more than 3 new messages,
# just hint that there is more
i=$((i + 1))
@@ -47,6 +48,8 @@ summary() {
set -- $subject
shift
echo ": \"${@}\""
+ #reenable glob expansion
+ set +f
done
}