forked from mirror/django-mailbox
Adding active/inactive mailboxes, adding outgoing/incoming mail tracking, changing field names, tracking in-reply-to and references.
This commit is contained in:
parent
e27acaf0ec
commit
ff39cff80d
8 changed files with 267 additions and 10 deletions
|
|
@ -12,17 +12,27 @@ class MailboxAdmin(admin.ModelAdmin):
|
|||
list_display = (
|
||||
'name',
|
||||
'uri',
|
||||
'active',
|
||||
)
|
||||
actions = [get_new_mail]
|
||||
|
||||
class MessageAdmin(admin.ModelAdmin):
|
||||
list_display = (
|
||||
'subject',
|
||||
'from_address',
|
||||
'received',
|
||||
'address',
|
||||
'processed',
|
||||
'mailbox',
|
||||
'outgoing',
|
||||
)
|
||||
ordering = ['-processed']
|
||||
list_filter = (
|
||||
'mailbox',
|
||||
'outgoing',
|
||||
)
|
||||
raw_id_fields = (
|
||||
'in_reply_to',
|
||||
'references',
|
||||
)
|
||||
ordering = ['-received']
|
||||
|
||||
if getattr(settings, 'DJANGO_MAILBOX_ADMIN_ENABLED', True):
|
||||
admin.site.register(Message, MessageAdmin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue