From 63057dc6c7b00c673754a33464878f4dfa7298b9 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Thu, 2 Sep 2021 14:18:43 -0700 Subject: [PATCH] mime-words encoded strings can have parts separated by just spaces --- mailboxes/boxes-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailboxes/boxes-lib.pl b/mailboxes/boxes-lib.pl index bfe682b04..0031ebe5a 100755 --- a/mailboxes/boxes-lib.pl +++ b/mailboxes/boxes-lib.pl @@ -1564,7 +1564,7 @@ sub decode_mimewords { $@ = ''; ### error-return ### Collapse boundaries between adjacent encoded words: - $encstr =~ s{(\?\=)\r?\n[ \t](\=\?)}{$1$2}gs; + $encstr =~ s{(\?\=)\r?\n?[ \t](\=\?)}{$1$2}gs; pos($encstr) = 0; ### print STDOUT "ENC = [", $encstr, "]\n";