disable glob expansion in summary composition
Iris Lightshard nilix@nilfm.cc
PGP Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEkFh6dA+k/6CXFXU4O3+8IhROY5gFAmHsa1YACgkQO3+8IhRO Y5giqg//a9px7tyZTWBq9wD+hmmC3V3bTU70CRugbv0z3hbnLMUECc2o7i+QC+z2 Dtjj4BFBHTff4BckJR3XBWJMjKuGvKz/51UnZcv0PKzymU415l3NVKpvZaWAOCO1 o7w5LR2eblCZqaXlEAiK9jwr6w1wWkhAdurRBb4mu8AiONrtMffQQILdMyNdewwU 9sASY9/DgSm92+BSyvUUews7XlFIENAksxwWpVsBY+6m0mx7z6890CMi6lljN366 lyIne05VfhfX2QjA3hhAZhJyPvswmLvYEIIOMzbA2+13fxvaezVkcoZRW04z7Et+ pQ+5vY4oFPpmytnox4X+CWGWL4dzQaEQXniVrojFAnRmfVEtNiBGYdVsG9LWTQji 1CI9z8ISGU6YlbB/3sQSnLqdujdu5UYqPkwBx4pPLlgAyL4zA0e0e4NIqdnuC2Vr XqTAPF5fH58j3a47o70a8iVpjGLcGQjBEOUjIzv3siBYPFau4FJys4enJulQg/sJ BnvTYiG332TyP1GviTQUJebun9camv4uRkdi8kgLMSISzNBvXpW7mfBRgdlhDsfJ +wkt9FLrz33A6KH29KaqgfvjPPxXzNNaGM6jOQ5TEH2qxOfYXsdqgfQtFIApyNXq OUeglyYB+o1gqWsKg2+eQvww0bFtcodn81CVr9JbFfrM7jOkY/o= =sRnF -----END PGP SIGNATURE-----
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
mail2mms.sh
→
mail2mms.sh
@@ -21,7 +21,8 @@
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 @@ # now append the message after discarding the Subject: key
set -- $subject shift echo ": \"${@}\"" + #reenable glob expansion + set +f done }