| PL/SQL Email Client | |||||
SUMMARY: FIELD | TYPE | METHOD | DETAIL: FIELD | TYPE | METHOD |
SELECT MAIL_CLIENT.GET_MESSAGE([msgnum]) FROM DUAL... or MAIL_CLIENT.GET_MAIL_HEADERS ...
SELECT VALUE(o) MAIL_OBJECT FROM TABLE(MAIL_CLIENT.GET_MAIL_HEADERS())
Field Summary | |
char(1) | answered
Indicates whether the message is marked as "answered". |
varchar2(100) | content_type
Content Type of the message. |
char(1) | deleted
Indicates whether the message is marked as "deleted". |
number | message_size
Message size in bytes. |
number(10) | msg_number
A Message object's message number is the relative position of this Message in its Folder. |
char(1) | read
Indicates whether the message is marked as "read". |
char(1) | recent
Indicates whether the message is marked as "recent". |
varchar2(100) | sender
Sender name of the message |
varchar2(100) | sender_email
Sender email of the message |
date | sent_date
Date on which the message was sent. |
varchar2(4000) | subject
Subject of the message |
Method Summary | |
| copy_message(p_target_folder varchar2)
Copies the message to another mailbox folder. |
blob | dump_blob()
Dumps the message "as it is"; i.e. does not interpret the message strcuture. |
clob | dump_clob()
Dumps the message "as it is"; i.e. does not interpret the message strcuture. |
blob | get_bodypart_content_blob(p_partindexes varchar2)
Returns the content of the messages' body part as BLOB. |
clob | get_bodypart_content_clob(p_partindexes varchar2)
Returns the content of the messages' body part as CLOB. |
varchar2 | get_bodypart_content_type(p_partindexes varchar2)
Returns the messages' content type |
varchar2 | get_bodypart_content_varchar2(p_partindexes varchar2)
Returns the content of the messages' body part as VARCHAR2. |
number | get_bodypart_multipart_count(p_partindexes varchar2)
Returns for a messages' body part (which is of type "multipart") the number of child body parts. |
clob | get_content_clob()
Tries to retrieve the text content of simple or multipart messages as a CLOB. |
varchar2 | get_content_type()
Returns the messages' content type |
varchar2 | get_content_varchar2()
Tries to retrieve the text content of simple or multipart messages as VARCHAR2. |
mail_header_t | get_headers(p_partindexes varchar2)
Lists all email headers of the specified body part. |
mail_header_t | get_headers()
Lists all message headers |
number | get_multipart_count()
Returns for multipart messages the content type of a specific body part. |
varchar2 | get_priority()
Returns the messages' priority flag |
date | get_receivedate()
Returns the datetime at which the message has been received by the mail server. |
mail_addr_t | get_recipients()
Returns all message recipients as table of MAIL_ADDR_T |
clob | get_simple_content_clob()
Retrieves the content of a simple text message as a CLOB. |
varchar2 | get_simple_content_varchar2()
Retrieves the content of a simple text message as VARCHAR2. |
number | get_size(p_partindexes varchar2)
Returns the size of the specified body part in bytes. |
number | get_size()
Returns the size of the whole message in bytes. |
mail_part_t | get_structure()
Returns (for multipart messages) the information about the contained body part hierarchy as table of MAIL_PART_T. |
varchar2 | get_uid()
Returns the message UID (if available) |
| mark_deleted()
Mark the message as "deleted". |
| mark_read()
Mark the message as "read". |
| mark_undeleted()
Removed the "deleted" mark from the message. |
| mark_unread()
Mark the message as "unread", therefore "new". |
| move_message(p_target_folder varchar2)
Moves the message to another mailbox folder; i.e. copies the message and marks it as deleted. |
Field Detail |
public number(10) msg_number
public varchar2(4000) subject
public varchar2(100) sender
public varchar2(100) sender_email
public date sent_date
public char(1) deleted
public char(1) read
public char(1) recent
public char(1) answered
public varchar2(100) content_type
public number message_size
Method Detail |
public varchar2 get_simple_content_varchar2()
public clob get_simple_content_clob()
public varchar2 get_content_varchar2()
public clob get_content_clob()
public varchar2 get_bodypart_content_varchar2(p_partindexes varchar2)
p_partindexes
-
the identifier for the selected body part - can be determined with the get_structure function.public clob get_bodypart_content_clob(p_partindexes varchar2)
p_partindexes
-
the identifier for the selected body part - can be determined with the get_structure function.public blob get_bodypart_content_blob(p_partindexes varchar2)
p_partindexes
-
the identifier for the selected body part - can be determined with the get_structure function.public varchar2 get_content_type()
public varchar2 get_priority()
public varchar2 get_bodypart_content_type(p_partindexes varchar2)
public number get_multipart_count()
public number get_bodypart_multipart_count(p_partindexes varchar2)
p_partindexes
-
the identifier for the selected body part - can be determined with the get_structure function.public mail_part_t get_structure()
SELECT * FROM TABLE(MAIL_CLIENT.GET_MESSAGE([msgnum]).GET_STRUCTURE())Example:
PARTINDEX CONTENT_TYPE CONTENT_DISPOSITION PART_SIZE ---------- ------------------------------ -------------------- ---------- 0 TEXT/PLAIN 330 1 multipart/RELATED -1 1,0 TEXT/HTML 668 1,1 IMAGE/JPEG INLINE 10122The PARTINDEX column contains the identifier for a specific body part.
public mark_read()
public mark_unread()
public mark_deleted()
public mark_undeleted()
public mail_header_t get_headers(p_partindexes varchar2)
p_partindexes
-
the identifier for the selected body part - can be determined with the get_structure function.public mail_header_t get_headers()
SELECT * FROM TABLE(MAIL_CLIENT.GET_MESSAGE([msgnum]).GET_HEADERS())
public number get_size(p_partindexes varchar2)
p_partindexes
-
the identifier for the selected body part - can be determined with the get_structure function.public number get_size()
public clob dump_clob()
public blob dump_blob()
public copy_message(p_target_folder varchar2)
p_target_folder
-
the absolute path of the target folderpublic move_message(p_target_folder varchar2)
p_target_folder
-
the absolute path of the target folderpublic varchar2 get_uid()
public date get_receivedate()
public mail_addr_t get_recipients()
| PL/SQL Email Client | |||||
SUMMARY: FIELD | TYPE | METHOD | DETAIL: FIELD | TYPE | METHOD |