Mails¶
The mails module is the core of the mails storage and the mail list.
Models¶
-
class
apps.mails.models.
Message
(id, created_at, updated_at, peer, port, sender_name, sender_address, recipients_to, recipients_cc, recipients_bcc, subject, source, size, type, headers)[source] -
exception
DoesNotExist
-
exception
Message.
MultipleObjectsReturned
-
static
Message.
cleanup
()[source]
-
static
Message.
count_all
()[source]
-
Message.
eml
-
Message.
get_next_by_created_at
(*moreargs, **morekwargs)
-
Message.
get_next_by_updated_at
(*moreargs, **morekwargs)
-
Message.
get_previous_by_created_at
(*moreargs, **morekwargs)
-
Message.
get_previous_by_updated_at
(*moreargs, **morekwargs)
-
Message.
has_attachments
-
Message.
headers
A placeholder class that provides a way to set the attribute on the model.
-
Message.
num_parts
-
Message.
num_real_parts
-
Message.
objects
= <django.db.models.manager.Manager object>
-
Message.
parts
-
Message.
recipients_bcc
A placeholder class that provides a way to set the attribute on the model.
-
Message.
recipients_cc
A placeholder class that provides a way to set the attribute on the model.
-
Message.
recipients_to
A placeholder class that provides a way to set the attribute on the model.
-
exception
-
class
apps.mails.models.
MessagePart
(id, created_at, updated_at, message, is_attachment, type, filename, charset, body, size)[source] -
exception
DoesNotExist
-
exception
MessagePart.
MultipleObjectsReturned
-
MessagePart.
get_next_by_created_at
(*moreargs, **morekwargs)
-
MessagePart.
get_next_by_updated_at
(*moreargs, **morekwargs)
-
MessagePart.
get_previous_by_created_at
(*moreargs, **morekwargs)
-
MessagePart.
get_previous_by_updated_at
(*moreargs, **morekwargs)
-
MessagePart.
message
-
MessagePart.
objects
= <django.db.models.manager.Manager object>
-
exception
Views¶
-
class
apps.mails.views.
MailList
(**kwargs)[source] -
get_context_data
(**kwargs)[source]
-
sortable_columns
= {'size': 'size', 'received': 'created_at', 'from': 'sender_address', 'to': 'recipients_to', 'subject': 'subject'}
-
template_name
= 'mails/list.html'
-