Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gmail handler #1384

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from
Open

Gmail handler #1384

wants to merge 3 commits into from

Conversation

Emiliohs02
Copy link

Summary

This PR introduces a GmailHandler class for interacting with Gmail accounts as a database in the evadb module.

Changes Made

  • Implemented the GmailHandler class in the evadb.third_party.databases.types module.
  • Added methods for connecting, disconnecting, checking connection status, retrieving tables, getting columns, and selecting and retrieving emails from a specified mailbox.
  • Implemented a helper method _decode_header to decode email headers.
  • Used the html2text library to convert HTML email bodies to plain text.
  • Included error handling for robustness.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

👋 Hello @Emiliohs02, thanks for submitting a EVA DB PR 🙏 To allow your work to be integrated as seamlessly as possible, we advise you to:

  • ✅ Verify that your PR is up-to-date with georgia-tech-db/eva master branch. If your PR is behind you can update your code by clicking the 'Update branch' button or by running git pull and git merge master locally.
  • ✅ Verify that all EVA DB Continuous Integration (CI) checks are passing.
  • ✅ Reduce changes to the absolute minimum required for your bug fix or feature addition.

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