mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-26 01:12:43 -05:00
mark mails as processed internally, don't process processed mails again
This commit is contained in:
@@ -214,3 +214,40 @@ class MailRule(document_models.ModelWithOwner):
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.account.name}.{self.name}"
|
||||
|
||||
|
||||
class ProcessedMail(document_models.ModelWithOwner):
|
||||
|
||||
rule = models.ForeignKey(
|
||||
MailRule,
|
||||
null=False,
|
||||
blank=False,
|
||||
on_delete=models.CASCADE,
|
||||
)
|
||||
|
||||
folder = models.CharField(
|
||||
_("folder"),
|
||||
null=False,
|
||||
blank=False,
|
||||
max_length=256,
|
||||
)
|
||||
|
||||
uid = models.CharField(
|
||||
_("folder"),
|
||||
null=False,
|
||||
blank=False,
|
||||
max_length=256,
|
||||
)
|
||||
|
||||
status = models.CharField(
|
||||
_("status"),
|
||||
null=False,
|
||||
blank=False,
|
||||
max_length=256,
|
||||
)
|
||||
|
||||
error = models.TextField(
|
||||
_("error"),
|
||||
null=True,
|
||||
blank=True,
|
||||
)
|
||||
|
Reference in New Issue
Block a user