6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
10/20/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8346] $conf['mailformat']['brokenrfc2231'] doesnt work, bug in Part.php
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ .__ .__.. ,.__. [ __| \| | \./ | | [_./|__/|__\ | |__|
Comment
> The workaround for the option brokenrfc2231 doesnt work, for longer > filenames at least (>50?). > > > > The check (strpos($encode_2231, '*=') !== false)) will never return > true, simply because > > > > $encode_2231 = MIME::encodeRFC2231($key, $value, $charset); > > > > will not result in *= but in *0= *1= etc - an encoded string looks like this: > > > > name*0="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; > > > name*1="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; > > > name*2="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; > > name*3="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.pdf" > > > > there is no name*= for longer filenames. Only for shorter > > > > Fix: > > > > replace if with > > > > if (!empty($GLOBALS['conf']['mailformat']['brokenrfc2231']) && > > ((strpos($encode_2231, '*=') !== false) || > (strpos($encode_2231, '*0=') !== false))) { > > $ctype .= '; ' . $key . '="' . MIME::encode($value, > $charset) . '"'; > > } > > > > in both places
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