Skip to content

Conversation

raunakab
Copy link
Contributor

@raunakab raunakab commented Jul 10, 2025

Description

This PR enables a frontend configuration flow for the new email connector.

Addresses: https://linear.app/danswer/issue/DAN-2167/add-imap-frontend.

How Has This Been Tested?

Mainly UI change; existing IMAP connector tests still passing.

@raunakab raunakab self-assigned this Jul 10, 2025
Copy link

vercel bot commented Jul 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 14, 2025 4:46pm

- imaplib.IMAP4_SSL is supposed to be treated as an ephemeral object
@raunakab raunakab marked this pull request as ready for review July 10, 2025 21:04
@raunakab raunakab requested a review from a team as a code owner July 10, 2025 21:04
@raunakab raunakab enabled auto-merge July 10, 2025 21:04
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR implements the frontend configuration flow for the IMAP email connector, enabling email integration as a new Personal category data source.

  • Error handling in backend/onyx/connectors/imap/connector.py needs improvement: missing proper IMAP connection cleanup, using print statements instead of logger, and incorrect type checking for 'name' vs 'value'
  • Memory optimization needed for HTML email parsing with BeautifulSoup in the connector implementation to handle large emails
  • 'TODO!' testing section needs to be completed before merging, particularly for frontend connector configuration flows
  • The email connector is placed in the Personal category unlike other messaging connectors (Gmail, Slack) which are in Messaging - consider if this categorization makes sense
  • IMAP connector is not included in validAutoSyncSources, suggesting future work needed for auto-sync support

13 files reviewed, 4 comments
Edit PR Review Bot Settings | Greptile

@raunakab raunakab disabled auto-merge July 14, 2025 16:43
@raunakab raunakab merged commit feca4fd into main Jul 14, 2025
11 of 14 checks passed
@raunakab raunakab deleted the feat/imap-fe branch July 14, 2025 16:43
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* Add basic structure for frontend email connector

* Update names of credentials-json keys

* Fix up configurations workflow

* Edit logic on how `mail_client` is used

- imaplib.IMAP4_SSL is supposed to be treated as an ephemeral object

* Edit helper name and add docs

* Fix invalid mailbox selection error

* Implement greptile suggestions

* Make recipients optional and add sender to primary-owners

* Add sender to external-access too; perform dedupe-ing of emails

* Simplify logic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant