platypush.message.event.mail

class platypush.message.event.mail.MailEvent(mailbox: str, message: Optional[platypush.plugins.mail.Mail] = None, *args, **kwargs)[source]
__init__(mailbox: str, message: Optional[platypush.plugins.mail.Mail] = None, *args, **kwargs)[source]

Params: target – Target node [String] origin – Origin node (default: current node) [String] id – Event ID (default: auto-generated) kwargs – Additional arguments for the event [kwDict]

class platypush.message.event.mail.MailFlaggedEvent(mailbox: str, message: Optional[platypush.plugins.mail.Mail] = None, *args, **kwargs)[source]

Triggered when a message is marked as flagged/starred.

class platypush.message.event.mail.MailReceivedEvent(mailbox: str, message: Optional[platypush.plugins.mail.Mail] = None, *args, **kwargs)[source]

Triggered when a new email is received.

class platypush.message.event.mail.MailSeenEvent(mailbox: str, message: Optional[platypush.plugins.mail.Mail] = None, *args, **kwargs)[source]

Triggered when a previously unseen email is seen.

class platypush.message.event.mail.MailUnflaggedEvent(mailbox: str, message: Optional[platypush.plugins.mail.Mail] = None, *args, **kwargs)[source]

Triggered when a message previously marked as flagged/starred is unflagged.