From 2c06015bd03a62fc30cf82274b10b321d0ac933d Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 29 Feb 2016 12:02:54 +0100 Subject: [PATCH] Fix bug where a note attached to an email was displayed as 0 in size --- plugins/kolab_notes/kolab_notes.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/kolab_notes/kolab_notes.php b/plugins/kolab_notes/kolab_notes.php index 7faee11c..feeb6b38 100644 --- a/plugins/kolab_notes/kolab_notes.php +++ b/plugins/kolab_notes/kolab_notes.php @@ -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'])) {