Roundcube attachments not working (for inbound mail)

With my Roundcube 1.6.11 I get broken images for attachments and embedded images, and “Download” on attachments errors. Although an attachment is the right size after download it is not openable for having been corrupted.

Downloading the same attachment works fine in Usermin.

In Roundcube the “copy link” looks like this:

https://mail.[domain].[com]/?_task=mail&_action=get&_mbox=INBOX&_uid=1&_token=bkPJ5RzUBTbs4UwUynwa9YQxnSpBi12t&_part=2

In Usermin it looks like this:

https://mail.[domain].[com][:20000/mailbox/detach.cgi/[filename]%2E[.png]?id=cur%2F1764102282%2E4065736%5F1%2E[servername]%2E[domain]%2E[com]%3A2%2CS&folder=0&attach=5&save=1

Is this familiar to anyone?

I have altered my Roundcube a little (I shimmed in a “Forgot password?” link on failed login, and also made two alternate skins which add a “Usermin” and “Webmin” button to the left if selected). I will spin up an out-of-the-box Virtualmin shortly and report if this is my-doing or if it comes this way. Just hoping this is a recognizable/fixable thing someone knows.

Thanks.

SYSTEM INFORMATION
OS type and version REQUIRED
Virtualmin version REQUIRED

Actually, the now that I look, the last line showing, at least for me might be a hint for the missing image part.

- GD, Imagick, XMLWriter (optional: thumbnails generation, QR-code)

This was me. If there is some way to delete this thread it might should be since this won’t affect anyone else.

Long story short, I have a python script that runs when I create new domains that tweaks Roundcube a little (it sticks in “your-domain” to be the Roundcube default so users can login with just “username”, adds a link to Usermin’s “Forgot your password?” spin-around to the failed login attempt error, and adds a couple of slightly modified skins which give users Usermin and Webmin buttons). It’s clumsy though and rewrites whole files with text replacement and I ended up with a blank line before the “<?php” in my index.php, which was just enough to break image attachments apparently.

1 Like

Don’t delete, even a user mistake can be help other people.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.