backend.globaleaks.jobs.notification

Module Contents

Functions

gen_cache_key(*args)
get_mails_from_the_pool(session) Fetch the email to be sent.
backend.globaleaks.jobs.notification.trigger_template_map[source]
backend.globaleaks.jobs.notification.trigger_model_map[source]
backend.globaleaks.jobs.notification.gen_cache_key(*args)[source]
class backend.globaleaks.jobs.notification.MailGenerator(state)[source]

Bases: object

serialize_config(self, session, key, tid, language)[source]
serialize_obj(self, session, key, obj, tid, language)[source]
process_ReceiverTip(self, session, rtip, data)[source]
process_Message(self, session, message, data)[source]
process_Comment(self, session, comment, data)[source]
process_ReceiverFile(self, session, rfile, data)[source]
process_mail_creation(self, session, tid, data)[source]
generate(self, session)[source]
backend.globaleaks.jobs.notification.get_mails_from_the_pool(session)[source]

Fetch the email to be sent.

Email are spooled every 5 seconds and mailing attepts last 5 days.

class backend.globaleaks.jobs.notification.Notification[source]

Bases: globaleaks.jobs.job.LoopingJob

interval = 5[source]
monitor_interval[source]
spool_emails(self)[source]
operation(self)[source]