- Documentation: https://linux-profile.github.io/email-profile
- Source Code: https://github.com/FernandoCelmer/email-profile
- Query API Structure
- Mailbox
- Since
- Before
- Subject
- From Who
- Body
- Unseen
- Data table structure
- Get emails
- Create email
- Answer email
- Get folders
- Get contacts
- Download Attachments
- Response JSON
- Dump File JSON
- Response HTML
- Dump File HTML
- Response Attachment File
- Dump Attachment File
- CLI Email
- Documentation
pip install email-profile
from email_profile import Email
def main():
app = Email(
server="EMAIL-SERVER"
user="EMAIL_USERNAME",
password="EMAIL_PASSWORD"
)
from datetime import datetime, date
query = app.select(mailbox="Inbox").where(
since=datetime(1996, 5, 31),
before=date.today(),
subject='abc'
)
print(query.count())
ids = query.list_id()
print(ids)
data = query.list_data()
for content in data:
# Email data model
print(content.email.subject)
# Attachments data model
print(content.attachments)
# Dump File JSON
json = content.json()
# Response JSON
print(json)
# Dump File HMTL
html = content.html()
# Response HTML
print(html)
- ⚙️ FEATURE
- 📝 PEP8
- 📌 ISSUE
- 🪲 BUG
- 📘 DOCS
- 📦 PyPI
- ❤️️ TEST
- ⬆️ CI/CD
⚠️ SECURITY
This project is licensed under the terms of the MIT license.