base/utils/email.bro

Source File:/scripts/base/utils/email.bro

Summary

Functions

extract_email_addrs_set: function Extract mail addresses out of address specifications conforming to RFC5322.
extract_email_addrs_vec: function Extract mail addresses out of address specifications conforming to RFC5322.
extract_first_email_addr: function Extract the first email address from a string.
split_mime_email_addresses: function Split email addresses from MIME headers.

Detailed Interface

Functions

extract_email_addrs_set
Type:function (str: string) : set [string]

Extract mail addresses out of address specifications conforming to RFC5322.

Str:A string potentially containing email addresses.
Returns:A set of extracted email addresses. An empty set is returned if no email addresses are discovered.
extract_email_addrs_vec
Type:function (str: string) : string_vec

Extract mail addresses out of address specifications conforming to RFC5322.

Str:A string potentially containing email addresses.
Returns:A vector of extracted email addresses. An empty vector is returned if no email addresses are discovered.
extract_first_email_addr
Type:function (str: string) : string

Extract the first email address from a string.

Str:A string potentially containing email addresses.
Returns:An email address or empty string if none found.
split_mime_email_addresses
Type:function (line: string) : set [string]

Split email addresses from MIME headers. The email addresses will include the display name and email address as it was given by the mail mail client. Note that this currently does not account for MIME group addresses and won’t handle them correctly. The group name will show up as part of an email address.

Str:The argument from a MIME header.
Returns:A set of addresses or empty string if none found.

Copyright 2016, The Bro Project. Last updated on December 19, 2018. Created using Sphinx 1.8.2.