Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_comp_email_gateway/imap.py @ 4386:c055042c01e3
component Email gateway: Convert mailing list to pubsub nodes:
- `Credentials` is now a Pydantic based model.
- Mailing list related emails are now detected hand saved as pubsub items, using XEP-0277
blog items, and creating suitable nodes. The ID of the mailing list is used for root
node.
- Mailing list items are currently restricted to recipient associated JID.
- Words in square bracket in title `[Like][That]` are removed and converted to blog
categories.
- Method to convert between MbData and email (in both directions) have been created.
rel 462
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 03 Aug 2025 23:45:48 +0200 |
parents | a7ec325246fb |
children |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_comp_email_gateway/imap.py Sun Aug 03 23:45:45 2025 +0200 +++ b/libervia/backend/plugins/plugin_comp_email_gateway/imap.py Sun Aug 03 23:45:48 2025 +0200 @@ -225,8 +225,8 @@ """ credentials = user_data.credentials self.user_data = user_data - self.username = credentials["imap_username"] - self.password = credentials["imap_password"] + self.username = credentials.imap_username + self.password = credentials.imap_password self.on_new_email = on_new_email self._connected = connected