NAME
STIX::Observable::EmailMessage - STIX Cyber-observable Object (SCO) - Email Message
SYNOPSIS
use STIX::Observable::EmailMessage;
my $email_message = STIX::Observable::EmailMessage->new();
DESCRIPTION
The Email Message Object represents an instance of an email message.
METHODS
STIX::Observable::EmailMessage inherits all methods from STIX::Observable and implements the following new ones.
- STIX::Observable::EmailMessage->new(%properties)
-
Create a new instance of STIX::Observable::EmailMessage.
- $email_message->additional_header_fields
-
Specifies any other header fields found in the email message, as a dictionary.
- $email_message->bcc_refs
-
Specifies the mailboxes that are 'BCC:' recipients of the email message.
- $email_message->cc_refs
-
Specifies the mailboxes that are 'CC:' recipients of the email message.
- $email_message->content_type
-
Specifies the value of the 'Content-Type' header of the email message.
- $email_message->date
-
Specifies the date/time that the email message was sent.
- $email_message->from_ref
-
Specifies the value of the 'From:' header of the email message.
- $email_message->id
- $email_message->message_id
-
Specifies the Message-ID field of the email message.
- $email_message->raw_email_ref
-
Specifies the raw binary contents of the email message, including both the headers and body, as a reference to an Artifact Object.
- $email_message->received_lines
-
Specifies one or more Received header fields that may be included in the email headers.
- $email_message->sender_ref
-
Specifies the value of the 'From' field of the email message.
- $email_message->subject
-
Specifies the subject of the email message.
- $email_message->to_refs
-
Specifies the mailboxes that are 'To:' recipients of the email message.
- $email_message->type
-
The value of this property MUST be
email-message
.
HELPERS
- $email_message->TO_JSON
-
Encode the object in JSON.
- $email_message->to_hash
-
Return the object HASH.
- $email_message->to_string
-
Encode the object in JSON.
- $email_message->validate
-
Validate the object using JSON Schema (see STIX::Schema).
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at https://github.com/giterlizzi/perl-STIX/issues. You will be notified automatically of any progress on your issue.
Source Code
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/giterlizzi/perl-STIX
git clone https://github.com/giterlizzi/perl-STIX.git
AUTHOR
Giuseppe Di Terlizzi <gdt@cpan.org>
LICENSE AND COPYRIGHT
This software is copyright (c) 2024 by Giuseppe Di Terlizzi.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.