mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-19 05:58:34 +02:00
27 lines
1.1 KiB
Python
27 lines
1.1 KiB
Python
from django.db import models
|
|
from django.utils.translation import ugettext_lazy as _
|
|
from modoboa.admin.models import Domain, Mailbox
|
|
|
|
class Transport(models.Model):
|
|
domain = models.CharField(max_length=300)
|
|
method = models.CharField(max_length=255)
|
|
|
|
class Alias(models.Model):
|
|
full_address = models.CharField(max_length=255)
|
|
autoreply_address = models.CharField(max_length=255)
|
|
|
|
class ARmessage(models.Model):
|
|
mbox = models.ForeignKey(Mailbox)
|
|
subject = models.CharField(_('subject'), max_length=255,
|
|
help_text=_("The subject that will appear in sended emails"))
|
|
content = models.TextField(_('content'),
|
|
help_text=_("The content that will appear in sended emails"))
|
|
enabled = models.BooleanField(_('enabled'),
|
|
help_text=_("Activate/Deactivate your auto reply"))
|
|
untildate = models.DateField()
|
|
|
|
class ARhistoric(models.Model):
|
|
armessage = models.ForeignKey(ARmessage)
|
|
last_sent = models.DateTimeField(auto_now=True)
|
|
sender = models.TextField()
|