mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-25 12:14:38 +02:00
🔧 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:
parent
043acf33bd
commit
cda300440d
11 changed files with 4773 additions and 2185 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue