Case Tokens are not correctly replaced (v1.25)
In "api/v3/Email/Send.php" line 107 - 109 as preparation the caseID is set on the contact array before the replacement of tokens via the civicrm core util.
if (isset($params['case_id'])) { $contact['case.id'] = $params['case_id']; }
The problem is "case_id" should (also) be set. Otherwise all other attributes of the case are not replaced.
if (isset($contactData['case_id']) && !empty($contactData['case_id'])) { $tokenHtml = \CRM_Utils_Token::replaceCaseTokens($contactData['case_id'], $tokenHtml, $messageTokens); }
(CiviCRM v5.35.0 CRM_Emailapi_Utils_Tokens line 51 - 53)
Extension version: v1.25 CiviCRM version: v5.35.0 installed with Drupal