File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ _clean_email_header() {
169169# email
170170_email_has_display_name () {
171171 _email=" $1 "
172- expr " $_email " : ' ^.*[<>"]' > /dev/null
172+ echo " $_email " | grep -q -E ' ^.*[<>"]'
173173}
174174
175175# #
@@ -249,7 +249,7 @@ _mime_encoded_word() {
249249 _text=" $1 "
250250 # (regex character ranges like [a-z] can be locale-dependent; enumerate ASCII chars to avoid that)
251251 _ascii=' ] $`"' " [!#%&'()*+,./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ~^_abcdefghijklmnopqrstuvwxyz{|}~-"
252- if expr " $_text " : " ^.*[^$_ascii ]" > /dev/null ; then
252+ if echo " $_text " | grep -q -E " ^.*[^$_ascii ]" ; then
253253 # At least one non-ASCII char; convert entire thing to encoded word
254254 printf " %s" " =?UTF-8?B?$( printf " %s" " $_text " | _base64) ?="
255255 else
You can’t perform that action at this time.
0 commit comments