Any RC from 1.1.1 to 1.3.6.
PHP 5.6.x on Debian 8-9
Connection params:
$config['default_host'] = 'ssl://imap.yandex.com';
$config['default_port'] = 993;
$config['imap_auth_type'] = 'LOGIN';
$config['imap_delimiter'] = '/';
P.S.: Just for fun, in the file
program/lib/Roundcube/rcube_message.php
dirty replacing the
return $body;
with the
return base64_decode($body);
temporally solves the problem
Don't you have any ideas?
I'm really confused.
Enable imap_debug in Roundcube for the moment you open the message. This will create imap file in logs folder. Maybe that will give you some clues. If not attach the file here.
Ok, done.
So, there're two logs of IMAP opening of the same message:
Yandex.ru IMAP log (raw base64 shown):
https://pastebin.com/raw/hcYcHfxd
Mail.ru IMAP log (everything is ok):
https://pastebin.com/raw/d7c2C319
So, there are some differences. One is BODYSTRUCTURE response. Another one is that on faulty server the BINARY extension is used.
C: A0006 UID FETCH 630 (BINARY.PEEK[1])
S: * 111 FETCH (UID 630 BINARY[1] {42}
S: UlU6INCf0YDQvtCy0LXRgNC60LANCkVOOiBUZXN0
S: )
Do you see this text as the message body? I guess th problem is here. You can try to workaround this issue with $config['imap_disabled_caps'] = array('BINARY');
Wow, you're genius! Hats off to you, sir.
The string
$config['imap_disabled_caps'] = array('BINARY');
Solved the problem.
Thanks a lot for your time!
Wow, you're genius! Hats off to you, sir.
The string
$config['imap_disabled_caps'] = array('BINARY');
Solved the problem.Thanks a lot for your time!
maybe this should be added to the FAQ?
Most helpful comment
So, there are some differences. One is BODYSTRUCTURE response. Another one is that on faulty server the BINARY extension is used.
Do you see this text as the message body? I guess th problem is here. You can try to workaround this issue with
$config['imap_disabled_caps'] = array('BINARY');