feat: add /api/translate proxy and expose email body to plugins

This commit is contained in:
Linus Rath
2026-05-31 18:01:00 +02:00
parent 6ee3849463
commit bc322a1e69
3 changed files with 337 additions and 0 deletions
+4
View File
@@ -374,6 +374,10 @@ export interface EmailReadView {
hasAttachment: boolean;
preview: string;
keywords: string[];
/** Full plain-text body of the message (HTML-only bodies are stripped to
* text). Empty string when the host hasn't loaded the body. Same
* `email:read` sensitivity as the rest of this view. */
text: string;
/**
* Parsed Authentication-Results header (SPF, DKIM, DMARC, reverse-DNS).
* Absent on stores that didn't parse the header (e.g. bodies not yet