feat: attachment open via xdg-open on Linux, mime type detection

- Use xdg-open directly on Linux for opening attachments (fixes 'file type not supported' error)
- Add mime package for comprehensive MIME type detection in compose screen
- Show file size and MIME type for attachments in compose screen
- Add open/preview button for attachments in compose screen

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Thomas Güttler
2026-04-22 10:47:11 +02:00
co-authored by Qwen-Coder
parent 16607f7ea0
commit a51c2dad9c
6 changed files with 117 additions and 33 deletions
-19
View File
@@ -4,10 +4,6 @@ Thread view (group by `References` / `In-Reply-To`)
---
Attachment download + open
---
mail-loop.com (anstatt shared inbox).
---
@@ -21,15 +17,6 @@ create a plan. Avoid downloading big bodies/attachments again.
mailcoach.de
---
done?
think about that: Maybe we should not mock jmap/imap/smtp. We have a temproary Stalwart.
Just like mocking DB in Django makes no sense.
---
Try Qwen, vscode plugin
@@ -52,12 +39,6 @@ After Try Connection, show some matching icon next to the text.
---
Mail edit, attachment:
List of attached files should be visible and editable. Show size, and type of file.
Make it possible to open/view the file.
---
Test with a Fastmail account