32 lines
932 B
Python
32 lines
932 B
Python
|
|
"""Mail plugin — IMAP/SMTP, threading, templates, rules, PGP, delegates."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from app.plugins.base import BasePlugin
|
||
|
|
from app.plugins.manifest import PluginManifest, PluginRouteDef
|
||
|
|
|
||
|
|
|
||
|
|
class MailPlugin(BasePlugin):
|
||
|
|
"""Mail plugin for email management: IMAP sync, SMTP send, threading, rules, PGP."""
|
||
|
|
|
||
|
|
manifest = PluginManifest(
|
||
|
|
name="mail",
|
||
|
|
version="1.0.0",
|
||
|
|
display_name="Mail",
|
||
|
|
description=(
|
||
|
|
"Email management: IMAP sync, SMTP send, threading, "
|
||
|
|
"templates, rules, vacation, PGP, delegates, labels."
|
||
|
|
),
|
||
|
|
dependencies=[],
|
||
|
|
routes=[
|
||
|
|
PluginRouteDef(
|
||
|
|
path="/api/v1/mail",
|
||
|
|
module="app.plugins.builtins.mail.routes",
|
||
|
|
router_attr="router",
|
||
|
|
),
|
||
|
|
],
|
||
|
|
events=[],
|
||
|
|
migrations=["0001_initial.sql"],
|
||
|
|
permissions=[],
|
||
|
|
)
|