Skip to content

lets-qa/Eml-Digest-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Digest Generator

This is a containerized FastAPI service that generates .eml email files from a supplied URL. It captures a screenshot, summarizes the content, and returns a downloadable email with the information embedded.

Features

  • Accept any public URL
  • Extract and summarize links (top 10)
  • Capture full-page screenshot
  • Embed summary and screenshot into an .eml file
  • Download, check status, and delete generated files
  • Queue-based background processing

API Endpoints

POST /generate

Request an email to be generated.

Body:

{
  "url": "https://www.drudgereport.com"
}

Returns:

{
  "job_id": "uuid",
  "status_url": "/status/uuid",
  "download_url": "/download/uuid"
}

GET /status/{job_id}

Check job status (queued, processing, complete, or error).

GET /download/{job_id}

Download the generated .eml file.

DELETE /delete/{job_id}

Delete the .eml file and job entry.

Email Format

  • Subject: YYYY-MM-DD HH:MM UTC: email digest for domain.com
  • Body: Summary of top links + timestamp + closing line
  • Attachment: Screenshot of the URL

Configuration

  • emails.txt: List of potential From: and To: addresses (one per line)

Running via Docker

docker build -t email-digest-api .
docker run -p 8000:8000 email-digest-api

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors