Compare commits

1 Commits

Author SHA1 Message Date
53868e7fc7 using doc forge 2026-01-22 16:49:05 +05:30
25 changed files with 50 additions and 68 deletions

View File

@@ -1,29 +1,29 @@
home: index.md home: mail_intake/index.md
groups: groups:
Core API: Core API:
- ingestion/index.md - mail_intake/ingestion/index.md
- ingestion/reader.md - mail_intake/ingestion/reader.md
Domain Models: Domain Models:
- models/index.md - mail_intake/models/index.md
- models/message.md - mail_intake/models/message.md
- models/thread.md - mail_intake/models/thread.md
Provider Adapters: Provider Adapters:
- adapters/index.md - mail_intake/adapters/index.md
- adapters/base.md - mail_intake/adapters/base.md
- adapters/gmail.md - mail_intake/adapters/gmail.md
Authentication & Storage: Authentication & Storage:
- auth/index.md - mail_intake/auth/index.md
- auth/base.md - mail_intake/auth/base.md
- auth/google.md - mail_intake/auth/google.md
- credentials/index.md - mail_intake/credentials/index.md
- credentials/store.md - mail_intake/credentials/store.md
- credentials/pickle.md - mail_intake/credentials/pickle.md
- credentials/redis.md - mail_intake/credentials/redis.md
Normalization & Parsing: Normalization & Parsing:
- parsers/index.md - mail_intake/parsers/index.md
- parsers/body.md - mail_intake/parsers/body.md
- parsers/headers.md - mail_intake/parsers/headers.md
- parsers/subject.md - mail_intake/parsers/subject.md
Configuration & Errors: Configuration & Errors:
- config.md - mail_intake/config.md
- exceptions.md - mail_intake/exceptions.md

View File

@@ -1,3 +1,3 @@
# mail_intake # Mail Intake
::: mail_intake ::: mail_intake

View File

@@ -1,22 +0,0 @@
from mail_intake.ingestion import MailIntakeReader
from mail_intake.adapters import MailIntakeGmailAdapter
from mail_intake.auth import MailIntakeGoogleAuth
from mail_intake.credentials.pickle import PickleCredentialStore
store = PickleCredentialStore(path="token.pickle")
auth = MailIntakeGoogleAuth(
credentials_path="credentials.json",
store=store,
scopes=["https://www.googleapis.com/auth/gmail.readonly"],
)
auth.get_credentials()
adapter = MailIntakeGmailAdapter(auth_provider=auth)
reader = MailIntakeReader(adapter)
for message in reader.iter_messages("from:roshnisingh009@gmail.com"):
print(message.subject, message.from_email)
break
from pdb import set_trace;set_trace()

View File

@@ -1,3 +1,6 @@
site_name: Aetoskia Mail Intake
site_description: Format-agnostic document reading, parsing, and scraping framework
theme: theme:
name: material name: material
palette: palette:
@@ -14,6 +17,7 @@ theme:
- navigation.instant - navigation.instant
- content.code.copy - content.code.copy
- content.code.annotate - content.code.annotate
plugins: plugins:
- search - search
- mkdocstrings: - mkdocstrings:
@@ -31,33 +35,33 @@ plugins:
annotations_path: brief annotations_path: brief
show_root_heading: true show_root_heading: true
group_by_category: true group_by_category: true
site_name: mail_intake
nav: nav:
- Home: index.md - Home: mail_intake/index.md
- Core API: - Core API:
- ingestion/index.md - mail_intake/ingestion/index.md
- ingestion/reader.md - mail_intake/ingestion/reader.md
- Domain Models: - Domain Models:
- models/index.md - mail_intake/models/index.md
- models/message.md - mail_intake/models/message.md
- models/thread.md - mail_intake/models/thread.md
- Provider Adapters: - Provider Adapters:
- adapters/index.md - mail_intake/adapters/index.md
- adapters/base.md - mail_intake/adapters/base.md
- adapters/gmail.md - mail_intake/adapters/gmail.md
- Authentication & Storage: - Authentication & Storage:
- auth/index.md - mail_intake/auth/index.md
- auth/base.md - mail_intake/auth/base.md
- auth/google.md - mail_intake/auth/google.md
- credentials/index.md - mail_intake/credentials/index.md
- credentials/store.md - mail_intake/credentials/store.md
- credentials/pickle.md - mail_intake/credentials/pickle.md
- credentials/redis.md - mail_intake/credentials/redis.md
- Normalization & Parsing: - Normalization & Parsing:
- parsers/index.md - mail_intake/parsers/index.md
- parsers/body.md - mail_intake/parsers/body.md
- parsers/headers.md - mail_intake/parsers/headers.md
- parsers/subject.md - mail_intake/parsers/subject.md
- Configuration & Errors: - Configuration & Errors:
- config.md - mail_intake/config.md
- exceptions.md - mail_intake/exceptions.md