diff options
author | Cyrille Bollu <cyrpub@bollu.be> | 2020-11-01 20:23:06 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-02 15:44:24 +0300 |
commit | 7c1d85f377c8ca669440e6754707515259a6e1a5 (patch) | |
tree | 5cfd7dde1ba8a243b2266123e6809af33dc3d47e /lib/Controller/MessagesController.php | |
parent | 9dc8c167abf1eb729c98e197b0ef78a17156c78a (diff) |
Fixes "Save all to Files" function
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-x | lib/Controller/MessagesController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php index b0188a5a5..b9882970b 100755 --- a/lib/Controller/MessagesController.php +++ b/lib/Controller/MessagesController.php @@ -462,7 +462,7 @@ class MessagesController extends Controller { if ($attachmentId === '0') { // Save all attachments /* @var $m IMAPMessage */ - $m = $folder->getMessage($id); + $m = $folder->getMessage($message->getUid()); $attachmentIds = array_map(function ($a) { return $a['id']; }, $m->attachments); @@ -471,7 +471,7 @@ class MessagesController extends Controller { } foreach ($attachmentIds as $aid) { - $attachment = $folder->getAttachment($message->getUid(), $attachmentId); + $attachment = $folder->getAttachment($message->getUid(), $aid); $fileName = $attachment->getName() ?? $this->l10n->t('Embedded message %s', [ $aid, |