mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	a couple small adjustments here and there.
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
<div class="row pt-3 pb-2 mb-3 border-bottom align-items-center">
 | 
					<div class="row pt-3 pb-1 mb-3 border-bottom align-items-center" >
 | 
				
			||||||
  <div class="col text-truncate">
 | 
					  <div class="col text-truncate">
 | 
				
			||||||
    <h1 class="h2 text-truncate">{{title}}</h1>
 | 
					    <h1 class="h2 text-truncate" style="line-height: 1.4">{{title}}</h1>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
  <div class="btn-toolbar col-auto">
 | 
					  <div class="btn-toolbar col-auto">
 | 
				
			||||||
    <ng-content></ng-content>
 | 
					    <ng-content></ng-content>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,6 +9,8 @@ class MailAccountAdmin(admin.ModelAdmin):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class MailRuleAdmin(admin.ModelAdmin):
 | 
					class MailRuleAdmin(admin.ModelAdmin):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    list_filter = ("account",)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    list_display = ("name", "account", "folder", "action")
 | 
					    list_display = ("name", "account", "folder", "action")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -135,6 +135,7 @@ def get_mailbox(server, port, security):
 | 
				
			|||||||
        raise ValueError("Unknown IMAP security")
 | 
					        raise ValueError("Unknown IMAP security")
 | 
				
			||||||
    return mailbox
 | 
					    return mailbox
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class MailAccountHandler(LoggingMixin):
 | 
					class MailAccountHandler(LoggingMixin):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def handle_mail_account(self, account):
 | 
					    def handle_mail_account(self, account):
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										23
									
								
								src/paperless_mail/migrations/0003_auto_20201118_1940.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/paperless_mail/migrations/0003_auto_20201118_1940.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					# Generated by Django 3.1.3 on 2020-11-18 19:40
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					from django.db import migrations, models
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class Migration(migrations.Migration):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    dependencies = [
 | 
				
			||||||
 | 
					        ('paperless_mail', '0002_auto_20201117_1334'),
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    operations = [
 | 
				
			||||||
 | 
					        migrations.AlterField(
 | 
				
			||||||
 | 
					            model_name='mailaccount',
 | 
				
			||||||
 | 
					            name='imap_port',
 | 
				
			||||||
 | 
					            field=models.IntegerField(blank=True, help_text='This is usually 143 for unencrypted and STARTTLS connections, and 993 for SSL connections.', null=True),
 | 
				
			||||||
 | 
					        ),
 | 
				
			||||||
 | 
					        migrations.AlterField(
 | 
				
			||||||
 | 
					            model_name='mailrule',
 | 
				
			||||||
 | 
					            name='name',
 | 
				
			||||||
 | 
					            field=models.CharField(max_length=256, unique=True),
 | 
				
			||||||
 | 
					        ),
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
@@ -19,7 +19,11 @@ class MailAccount(models.Model):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    imap_server = models.CharField(max_length=256)
 | 
					    imap_server = models.CharField(max_length=256)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    imap_port = models.IntegerField(blank=True, null=True)
 | 
					    imap_port = models.IntegerField(
 | 
				
			||||||
 | 
					        blank=True,
 | 
				
			||||||
 | 
					        null=True,
 | 
				
			||||||
 | 
					        help_text="This is usually 143 for unencrypted and STARTTLS "
 | 
				
			||||||
 | 
					                  "connections, and 993 for SSL connections.")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    imap_security = models.PositiveIntegerField(
 | 
					    imap_security = models.PositiveIntegerField(
 | 
				
			||||||
        choices=IMAP_SECURITY_OPTIONS,
 | 
					        choices=IMAP_SECURITY_OPTIONS,
 | 
				
			||||||
@@ -68,7 +72,7 @@ class MailRule(models.Model):
 | 
				
			|||||||
        (CORRESPONDENT_FROM_CUSTOM, "Use correspondent selected below")
 | 
					        (CORRESPONDENT_FROM_CUSTOM, "Use correspondent selected below")
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    name = models.CharField(max_length=256)
 | 
					    name = models.CharField(max_length=256, unique=True)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    account = models.ForeignKey(
 | 
					    account = models.ForeignKey(
 | 
				
			||||||
        MailAccount,
 | 
					        MailAccount,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user