about summary refs log tree commit homepage
path: root/lib/PublicInbox/InboxWritable.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-28 07:14:40 +0000
committerEric Wong <e@yhbt.net>2020-06-28 18:35:47 +0000
commit52e37476e8e62e8e54104d9a2abcf2a86d1d1a32 (patch)
tree45b30d09fdf06c5baf475771d6e2c825abf14c50 /lib/PublicInbox/InboxWritable.pm
parent0d62ec0906ebdb4e9358ccb1c0d41a30f20711cf (diff)
downloadpublic-inbox-52e37476e8e62e8e54104d9a2abcf2a86d1d1a32.tar.gz
Apparently, using $1 from an octet string still results in a
multi-byte string.  Thus we need to perform utf8::encode after
the regexp character match to ensure wide characters don't get
passed to encode_base64.

This fixes a bug in which caused -watch to crash when using
PublicInbox::Filter::SubjectTag to remove "[list prefix]"
tags from Subject: lines.

I only found this bug because the proposed -watch updates for
NNTP/IMAP support introduced a possible bug which triggered a
full rescan of old archives:

  https://public-inbox.org/meta/20200627100400.9871-1-e@yhbt.net/
Diffstat (limited to 'lib/PublicInbox/InboxWritable.pm')
0 files changed, 0 insertions, 0 deletions