inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.38k stars 790 forks source link

[FR] Add support for incoming email for plugins #7951

Open matmair opened 3 months ago

matmair commented 3 months ago

Please verify that this feature request has NOT been suggested before.

Problem statement

Plugins do not have a way to receive responses to emails that they have sent

Suggested solution

Add django-anymail to receive mails from various ESPs https://anymail.dev/en/stable/inbound/

Describe alternatives you've considered

I currently use an IMAP library to check periodically but it would be nicer to handle this in core.

Examples of other systems

A lot of PLM systems support emails

Do you want to develop this?

matmair commented 3 months ago

Note: The proposed library would not support normal IMAP/POP. https://django-mailbox.readthedocs.io/en/latest/index.html would do that but API-based mail delivery has proven way more reliably in my deployments.

SchrodingersGat commented 3 months ago

@matmair for my own curiosity - in what context might you expect a plugin to receive an email? And do what with it?

matmair commented 3 months ago

Delivery notices for example.

github-actions[bot] commented 1 month ago

This issue seems stale. Please react to show this is still important.

matmair commented 1 month ago

Still important but a lot of open half-finished PRs from right now so pushing back