881f4817be
- IMAP sync now saves attachments for existing emails that have has_attachments=true but no attachment records in the database (retroactive attachment saving) - Replace silent exception catching with logger.warning for attachment save failures - Add logging module import and logger instance - This fixes the issue where 62 emails had has_attachments=true but 0 attachment records