Files
emails/NOTES.md
2022-11-29 08:57:56 -03:00

1.3 KiB

UI

  • List mailboxes all in the Email Provider, identifying those registered locally.
  • Select which to register or unregister for watching.
  • List registered mailboxes.
  • List messages for selected mailbox.
  • Schedule attachments downloads.
  • Download attachments (encrypted & decrypted).

CLI

  • Get mailboxes from [API] then run grab messages job in [API] for each one.
  • Get pending attachments jobs from [API] and run.

API

  • Grab all mailboxes from Email Provider, identifying those that are registered.
  • Register mailboxes into [database] and grab latest messages.
  • Grab new messages from Email Provider for selected mailboxes and store them in the database.
  • Grab messages from [database] for selected mailboxes.
  • Grab attachments from Email Provider for selected messages.
  • Register messages for attachment job.
  • Decrypt attachments.

Workflow

  • [User] Choose mailboxes to register or unregister -> [API] Register selected mailboxes and get messages for recently registered.
  • [Cron] Get registered mailboxes -> [API] Get messages
  • [User] Check messages found -> [API] Schedule attachments
  • [Cron] Get attachment download jobs -> [API] grab attachments