mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-10 00:18:57 +00:00
fixes #153, adds option for inline attachments and filename filters
This commit is contained in:
23
src/paperless_mail/migrations/0007_auto_20210106_0138.py
Normal file
23
src/paperless_mail/migrations/0007_auto_20210106_0138.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.1.5 on 2021-01-06 01:38
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('paperless_mail', '0006_auto_20210101_2340'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='mailrule',
|
||||
name='attachment_type',
|
||||
field=models.PositiveIntegerField(choices=[(1, 'Only process attachments.'), (2, "Process all files, including 'inline' attachments.")], default=1, help_text="Inline attachments include embedded images, so it's best to combine this option with a filename filter.", verbose_name='attachment type'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='mailrule',
|
||||
name='filter_attachment_filename',
|
||||
field=models.CharField(blank=True, help_text='Only consume documents which entirely match this filename if specified. Wildcards such as *.pdf or *invoice* are allowed. Case insensitive.', max_length=256, null=True, verbose_name='filter attachment filename'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user