Models

class kiki.models.ListCommand(*args, **kwargs)

ListCommand(id, message_id, mailing_list_id, status, command)

FAILED = 4

An error occurred while processing the ListCommand.

PROCESSED = 3

Ths ListCommand has been processed completely.

REJECTED = 2

The ListCommand has been rejected (e.g. for permissioning reasons.)

UNPROCESSED = 1

The ListCommand has not been processed.

class kiki.models.ListMessage(*args, **kwargs)

Represents the relationship between a Message and a MailingList. This is what is processed to handle the sending of a message to a list rather than the original message.

class kiki.models.ListUserMetadata(*args, **kwargs)

ListUserMetadata(id, user_id, mailing_list_id, status)

class kiki.models.MailingList(*args, **kwargs)

This model contains all options for a mailing list, as well as some helpful methods for accessing subscribers, moderators, etc.

get_recipients()

Returns a queryset of Users that should receive this message.

class kiki.models.Message(*args, **kwargs)

Represents an email received by Kiki. Stores the original received message as well as a pickled version of the processed message.

from_email = None

The message_id of the email this is in reply to.

class kiki.models.ProcessedMessageModel(*args, **kwargs)

Encapsulates the logic required for storing and fetching pickled EmailMessage objects. This should eventually be replaced with a custom model field.

Project Versions

Previous topic

Welcome to Kiki’s documentation!

Next topic

Celery tasks

This Page