Fix email signature layout and enhance email thread fetching

- Move logo to top of email signature for better formatting
- Enhance IMAP search to include CC/BCC fields and multiple folders
- Fix EOI document generation to properly send and extract signing URLs
- Update documentation with all email system fixes
This commit is contained in:
2025-06-09 23:09:32 +02:00
parent 77b6aa2752
commit f593036d0f
4 changed files with 137 additions and 80 deletions

View File

@@ -30,6 +30,27 @@
- Updated `update-interest.ts` API to accept both x-tag headers ("094ut234" and "pjnvü1230")
- Now both authenticated and unauthenticated users can save interest updates
### 5. Email Signature Formatting
- **Problem**: Logo was appearing below the signature details
- **Solution**:
- Moved Port Nimara logo to the top of the signature
- Logo now appears above the name with proper spacing
### 6. Email Refresh Not Showing New Emails
- **Problem**: New emails from clients weren't appearing after refresh
- **Solution**:
- Enhanced IMAP search to include CC and BCC fields
- Now searches in multiple folders: INBOX, Sent, Sent Items, Sent Mail
- Better email detection for comprehensive thread retrieval
### 7. EOI Document Generation Issues
- **Problem**: EOI documents were created but stuck in draft status with non-working links
- **Solution**:
- Fixed response structure to match actual Documenso API response
- Added proper document send step to move from draft to active
- Changed `sendEmail` to `true` to ensure recipients receive signing emails
- Correctly extract signing URLs from the response
## Required Environment Variables
Make sure these are set in your `.env` file: