mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Merge pull request #270 from jonasc/dev
Allow setting more than one tag in mail rules
This commit is contained in:
commit
95e94618d8
9 changed files with 129 additions and 7 deletions
|
|
@ -266,7 +266,7 @@ class MailAccountHandler(LoggingMixin):
|
|||
)
|
||||
|
||||
correspondent = self.get_correspondent(message, rule)
|
||||
tag = rule.assign_tag
|
||||
tag_ids = [tag.id for tag in rule.assign_tags.all()]
|
||||
doc_type = rule.assign_document_type
|
||||
|
||||
processed_attachments = 0
|
||||
|
|
@ -329,7 +329,7 @@ class MailAccountHandler(LoggingMixin):
|
|||
if correspondent
|
||||
else None,
|
||||
override_document_type_id=doc_type.id if doc_type else None,
|
||||
override_tag_ids=[tag.id] if tag else None,
|
||||
override_tag_ids=tag_ids,
|
||||
task_name=att.filename[:100],
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue