Fix bug where a note attached to an email was displayed as 0 in size

This commit is contained in:
Aleksander Machniak 2016-02-29 12:02:54 +01:00
parent 95af797971
commit 2c06015bd0

View file

@ -1152,10 +1152,12 @@ class kolab_notes extends rcube_plugin
foreach ($uids as $uid) {
if ($note = $this->get_note(array('uid' => $uid, 'list' => $list))) {
$data = $this->note2message($note);
$args['attachments'][] = array(
'name' => abbreviate_string($note['title'], 50, ''),
'mimetype' => 'message/rfc822',
'data' => $this->note2message($note),
'data' => $data,
'size' => strlen($data),
);
if (empty($args['param']['subject'])) {