diff --git a/src/Message.php b/src/Message.php index 9d15a7b8..07d6e30e 100755 --- a/src/Message.php +++ b/src/Message.php @@ -1127,7 +1127,7 @@ protected function fetchNewMail(Folder $folder, int $next_uid, string $event, bo public function delete(bool $expunge = true, ?string $trash_path = null, bool $force_move = false): bool { $status = $this->setFlag("Deleted"); if ($force_move) { - $trash_path = $trash_path === null ? $this->config["common_folders"]["trash"] : $trash_path; + $trash_path = $trash_path === null ? $this->options["common_folders"]["trash"] : $trash_path; $this->move($trash_path); } if ($expunge) $this->client->expunge();