{"action":"closed","issue":{"url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5232","repository_url":"https://api.github.com/repos/roundcube/roundcubemail","labels_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5232/labels{/name}","comments_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5232/comments","events_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5232/events","html_url":"https://github.com/roundcube/roundcubemail/issues/5232","id":151582897,"number":5232,"title":"Partial attachments downloading","user":{"login":"ddsmes","id":1536163,"avatar_url":"https://avatars.githubusercontent.com/u/1536163?v=3","gravatar_id":"","url":"https://api.github.com/users/ddsmes","html_url":"https://github.com/ddsmes","followers_url":"https://api.github.com/users/ddsmes/followers","following_url":"https://api.github.com/users/ddsmes/following{/other_user}","gists_url":"https://api.github.com/users/ddsmes/gists{/gist_id}","starred_url":"https://api.github.com/users/ddsmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddsmes/subscriptions","organizations_url":"https://api.github.com/users/ddsmes/orgs","repos_url":"https://api.github.com/users/ddsmes/repos","events_url":"https://api.github.com/users/ddsmes/events{/privacy}","received_events_url":"https://api.github.com/users/ddsmes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-28T08:48:46Z","updated_at":"2016-04-28T09:15:17Z","closed_at":"2016-04-28T09:15:17Z","body":"When attachment is\r\n\r\n`Content-Transfer-Encoding: base64`\r\n\r\nand there is NO empty line AFTER base64 data\r\nthen RoundCube (version 1.1.5 tested) gives client partial attacment downloading\r\nForEx:\r\nif i have message with\r\n`Content-Type: multipart/mixed;boundary=\"===7870669====\"`\r\n`.....`\r\n`--===7870669====`\r\n`Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document`\r\n`Content-Disposition: attachment;`\r\n` filename=\"file.pdf\"`\r\n`Content-Transfer-Encoding: base64`\r\n\r\n`UEsDBBQABgAIAAAAIQAFMwonoQEAAMoGAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIo`\r\n`oAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`\r\n`.....`\r\n`AAAAAADKggEAd29yZC9mb250VGFibGUueG1sUEsBAi0AFAAGAAgAAAAhAKkKJemGAQAA1AIA`\r\n`ABAAAAAAAAAAAAAAAAAAiIUBAGRvY1Byb3BzL2FwcC54bWxQSwUGAAAAAA8ADwDNAwAARIgB`\r\n`AAAA`\r\n`--===7870669====`\r\nthen RoundCube downloads PARTIAL attachment. It takes content between `boundary`, drops (!!!) last (NOT EMPTY!!!) line and decodes PARTIAL base64-data.\r\n\r\nWhen i put manually empty line at the end of base64-data - all OK.\r\n\r\nOther imap-clients, like Thunderbird, AppleMail etc have no problems with such email files"}}