Comments (2)
Thank you, Adam. You're right, the patch indeed looks like a hack so that adding it into the regular version does not seem the right thing to do but we'll reference this thread for those experiencing the same issue and they will be able to fix it for the time being. Finally, I hope HHVM devs will fix the original issue and the whole thing will be no longer important.
from webmail-lite.
I was able to work around this issue by adding the following to the top of libraries/MailSo/Base/StreamWrappers/Binary.php
(based on the patch at facebook/hhvm#6440 -- review patch (reviews.facebook.net)):
class ConvertFilter extends \php_user_filter {
private $filterFunction;
public function onCreate() {
/* strip out prefix "convert." */
$filterName = substr($this->filtername, 8);
switch ($filterName) {
case 'base64-encode':
case 'base64-decode':
case 'quoted-printable-encode':
case 'quoted-printable-encode':
$this->filterFunction = str_replace('-', '_', $filterName);
break;
default:
return false;
break;
}
return true;
}
public function filter($in, $out, &$consumed, $closing) {
while ($bucket = stream_bucket_make_writeable($in)) {
stream_bucket_append(
$out,
stream_bucket_new($this->stream,
call_user_func($this->filterFunction,
$bucket->data)
)
);
}
return \PSFS_PASS_ON;
}
}
stream_filter_register('convert.*', 'MailSo\Base\StreamWrappers\ConvertFilter');
This feels like a total hack to me so I'm reluctant to put up a Pull Request with it, but I can if it'd be useful.
from webmail-lite.
Related Issues (20)
- Error in logged in Mailbox HOT 1
- Can work with localhost smtp HOT 3
- Can i use it with multiple IMAP accounts, not jus as identities / sub-account - similar to a non-web IMAP-Client OR Outlook365? HOT 4
- Будет обновление для PHP8? Will there be an update for PHP8? HOT 1
- Automatically Populating "To:" Field When Opening Compose Window in Iframe Integration HOT 1
- How can i add an attachment using the php API HOT 2
- Cant access to admin page HOT 1
- Feature Request: LDAP Adressbook HOT 1
- Why is it loading labels placeholders instead of values? HOT 2
- UseLoginWithoutDomain HOT 4
- MailSo\Net\Exceptions\SocketConnectionDoesNotAvailableException HOT 1
- Correct credentials make the login page go back to login without error messages. HOT 3
- missing trusted CA certificates path HOT 7
- Wrong sort order in folders HOT 2
- Cannot login an account using cPanel HOT 22
- ManageSieve STARTTLS is disabled HOT 2
- Login Issues HOT 3
- Problem displaying the interface in Russian HOT 1
- issue while logging in webmail lite 7 HOT 1
- Not able to login HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webmail-lite.