6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/17/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#1621] non-ASCII 7-bit message headers not RFC2047-encoded
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .___..__ .__ .___ [__) _/ [__)[__)[__ [__)./__.| [__)|
Comment
> A couple issues with your patch: > > 1) We shouldn't be dealing with mb_* functions in MIME - these should > be exclusively in String:: or elsewhere.. > > 2) Any multibyte check should be done in MIME::is8bit() instead of > MIME::encode() > > 3) The code seems to indicate that any string that is autodetected as > not 'ASCII' needs to be encoded. However, what if the string is > autodetected as 'UTF-8'? If the UTF-8 characters are all in the > ASCII range, then no encoding is required. > > 4) Multibyte characters will *not* be returned as 7-bit ASCII text > from the mb_ereg _*functions. Since this function is multibyte > aware, it will know to combine consecutive multibyte bytes together > to form the character. I think the issue is that we are only looking > for the 8-bit characters in the Regex. We are not looking for 7-bit > characters **or multibyte characters**. Therefore, we should > probably just change the regex to search for "Not 7-bit ASCII > characters" instead of searching for "8-bit characters". > > > > Could you try changing the regex in MIME::is8bit() to "[^\x00-\x7f]" > and see if that fixes things?
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers