core.signals package

Module with signals for the Eonvelope database models.

core.signals.post_delete_attachment(sender, instance, **kwargs)[source]

Receiver function deleting the file of the attachment from storage.

Parameters:
  • sender (Attachment) – The class type that sent the post_save signal.

  • instance (Attachment) – The instance that has been saved.

  • **kwargs (Any) – Other keyword arguments.

Return type:

None

core.signals.post_delete_email(sender, instance, **kwargs)[source]

Receiver function deleting the .eml file of the email from storage.

Parameters:
  • sender (Email) – The class type that sent the post_save signal.

  • instance (Email) – The instance that has been deleted.

  • **kwargs (Any) – Other keyword arguments.

Return type:

None

core.signals.post_save_account_is_healthy(sender, instance, created, **kwargs)[source]

Receiver function flagging all mailboxes of an account as unhealthy once that account becomes unhealthy.

Parameters:
  • sender (Account) – The class type that sent the post_save signal.

  • instance (Account) – The instance that has been saved.

  • created (bool) – Whether the instance was newly created.

  • **kwargs (Any) – Other keyword arguments.

Return type:

None

core.signals.post_save_daemon_is_healthy(sender, instance, created, **kwargs)[source]

Receiver function flagging the mailbox of a daemon as healthy once that daemon becomes healthy again.

Parameters:
  • sender (Daemon) – The class type that sent the post_save signal.

  • instance (Daemon) – The instance that has been saved.

  • created (bool) – Whether the instance was newly created.

  • **kwargs (Any) – Other keyword arguments.

Return type:

None

core.signals.post_save_mailbox_is_healthy(sender, instance, created, **kwargs)[source]

Receiver function flagging account and daemons of a mailbox according to a healthflag change.

Once that mailbox becomes healthy again flags the account of that mailbox as healthy If a mailbox becomed unhealthy flags its daemons as unhealthy as well.

Parameters:
  • sender (Mailbox) – The class type that sent the post_save signal.

  • instance (Mailbox) – The instance that has been saved.

  • created (bool) – Whether the instance was newly created.

  • **kwargs (Any) – Other keyword arguments

Return type:

None

Note

Using the batch update for the daemons does not trigger their post_save!

Submodules