🔧 chore: misc updates across contacts, mail, and shared-ui

- Contacts app improvements and fixes
- Mail IMAP sync provider updates
- Shared UI package updates
- Updated pnpm-lock.yaml

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Till-JS 2025-12-03 16:13:50 +01:00
parent 043acf33bd
commit cda300440d
11 changed files with 4773 additions and 2185 deletions

View file

@ -113,6 +113,10 @@ export class ImapProvider implements EmailProvider {
const uid = parseInt(externalId, 10);
for await (const message of this.client.fetch(uid, { source: true }, { uid: true })) {
if (!message.source) {
this.logger.warn(`Email ${externalId} has no source`);
continue;
}
const parsed = await simpleParser(message.source);
return this.parseEmail(message, parsed);
}
@ -161,6 +165,10 @@ export class ImapProvider implements EmailProvider {
{ uid: true }
)) {
try {
if (!message.source) {
this.logger.warn(`Email UID ${message.uid} has no source`);
continue;
}
const parsed = await simpleParser(message.source);
const email = this.parseEmail(message, parsed);
emails.push(email);