mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Many updates in this commit: * first work on the webmail plugin, for now only emails listing and folders browsing is supported... * New login form, * New graphical layout (still needing improvments) * code factoring between webmail and quarantine plugins * etc.
16 lines
561 B
Python
16 lines
561 B
Python
from django.db import models
|
|
from django.utils.translation import ugettext_lazy as _
|
|
from mailng.admin.models import Mailbox
|
|
|
|
class ARmessage(models.Model):
|
|
mbox = models.ForeignKey(Mailbox)
|
|
subject = models.CharField(_('subject'), max_length=255)
|
|
content = models.TextField(_('content'))
|
|
enabled = models.BooleanField(_('enabled'))
|
|
# untildate = models.DateTimeField(_('until'))
|
|
|
|
class ARhistoric(models.Model):
|
|
armessage = models.ForeignKey(ARmessage)
|
|
last_sent = models.DateTimeField(auto_now=True)
|
|
sender = models.TextField()
|