- 'content_type' => $entry['mimetype'],
- 'is_archived' => (int) ($entry['is_archived'] || $this->markAsRead),
- 'is_starred' => false,
+ 'headers' => [
+ 'content-type' => $entry['mimetype'],
+ ],
+ 'is_archived' => (bool) ($entry['is_archived'] || $this->markAsRead),
+ 'is_starred' => (bool) $entry['is_starred'],