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

FEATURE: Allow searching for emails with (specific) attachments #4133

Open
tillprochaska opened this issue Feb 17, 2025 · 0 comments
Open

FEATURE: Allow searching for emails with (specific) attachments #4133

tillprochaska opened this issue Feb 17, 2025 · 0 comments
Labels
feature-request Requests for new features or enhancements of existing features ingest-file

Comments

@tillprochaska
Copy link
Contributor

Is your feature request related to a problem? Please describe.

  • I want to be able to filter for emails with attachments.
  • I want to be able to filter for emails with specific attachments (e.g. based on file name or file extension).

Describe the solution you'd like

  • schema:Email AND properties.attachments:* should return all emails that have any attachment.
  • schema:Email AND properties.attachments:*.pdf should return all emails that have an attachment ending with .pdf.

Describe alternatives you've considered

  • Searching for properties.mimeType:multipart/mixed might help narrowing down the list of emails, but every email that has HTML and plaintext alternatives will also be included by this even if it doesn’t have any attachments.

Additional context

  • Email attachments are separate entities that have a reference to the email, but there’s no efficient way to run joins in ES.
  • An easy solution probably would be to add the file names of attachments to the Email entity itself, e.g. in a new attachments property. This wouldn’t allow queries for arbitrary attachment properties, but likely cover many use cases.
@tillprochaska tillprochaska added feature-request Requests for new features or enhancements of existing features triage These issues need to be reviewed by the Aleph team ingest-file and removed triage These issues need to be reviewed by the Aleph team labels Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Requests for new features or enhancements of existing features ingest-file
Projects
None yet
Development

No branches or pull requests

1 participant