intelmq.bots.collectors.mail package

Submodules

intelmq.bots.collectors.mail.collector_mail_attach module

In Version 0.9.5 the attachment filename is no longer surrounded by double quotes, see for the discussion: https://github.com/certtools/intelmq/pull/1134 https://github.com/martinrusev/imbox/commit/7c6cc2fb5f7e39c1496d68f3d432eec19517bf8e#diff-1ae09572064c2e7c225de54ad5b49154

Uses the common mail iteration method from the lib file.

intelmq.bots.collectors.mail.collector_mail_attach.BOT

alias of intelmq.bots.collectors.mail.collector_mail_attach.MailAttachCollectorBot

class intelmq.bots.collectors.mail.collector_mail_attach.MailAttachCollectorBot(*args, **kwargs)

Bases: intelmq.bots.collectors.mail._lib.MailCollectorBot

Monitor IMAP mailboxes and retrieve mail attachments

attach_regex = 'csv.zip'
extract_files = True
folder = 'INBOX'
init()
mail_host = '<host>'
mail_password = '<password>'
mail_ssl = True
mail_user = '<user>'
process_message(uid, message)

Returns: seen: Mark the message as seen or not

rate_limit = 60
subject_regex = '<subject>'

intelmq.bots.collectors.mail.collector_mail_body module

Uses the common mail iteration method from the lib file.

intelmq.bots.collectors.mail.collector_mail_body.BOT

alias of intelmq.bots.collectors.mail.collector_mail_body.MailBodyCollectorBot

class intelmq.bots.collectors.mail.collector_mail_body.MailBodyCollectorBot(*args, **kwargs)

Bases: intelmq.bots.collectors.mail._lib.MailCollectorBot

Monitor IMAP mailboxes and fetch mail bodies

content_types = ('plain', 'html')
folder = 'INBOX'
init()
mail_host = '<host>'
mail_password = '<password>'
mail_ssl = True
mail_user = '<user>'
process_message(uid, message)

Returns: seen: Mark the message as seen or not

rate_limit = 60
subject_regex = '<subject>'

intelmq.bots.collectors.mail.collector_mail_url module

Uses the common mail iteration method from the lib file.

intelmq.bots.collectors.mail.collector_mail_url.BOT

alias of intelmq.bots.collectors.mail.collector_mail_url.MailURLCollectorBot

class intelmq.bots.collectors.mail.collector_mail_url.MailURLCollectorBot(*args, **kwargs)

Bases: intelmq.bots.collectors.mail._lib.MailCollectorBot, intelmq.lib.mixins.http.HttpMixin

Monitor IMAP mailboxes and fetch files from URLs contained in mail bodies

chunk_replicate_header = True
chunk_size = None
folder = 'INBOX'
http_password = None
http_username = None
init()
mail_host = '<host>'
mail_password = '<password>'
mail_ssl = True
mail_user = '<user>'
process_message(uid, message)

Returns: seen: Mark the message as seen or not

rate_limit = 60
ssl_client_certificate = None
subject_regex = '<subject>'
url_regex = 'http://'

Module contents