Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
Table Body (tbody) |
---|
id | getAttachments |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getAttachments |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| Attachment[] |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getAttachments |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns an array of Attachment instances corresponding to the attachments of this message. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
id | getCCAddresses |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getCCAddresses |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getCCAddresses |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a String with all addresses present in the CC field of this message. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
id | getFromAddresses |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getFromAddresses |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getFromAddresses |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a String with all addresses present in the From field of this message. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getHeaders |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a String with all headers of this message. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getHtmlMsg |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getHtmlMsg |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a String with the HTML content of this message. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getPlainMsg |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getPlainMsg |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a String with the plain content of this message. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
id | getReceivedDate |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getReceivedDate |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| Date |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getReceivedDate |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a Date instace corresponding to the moment when the message was received. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Date |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
id | getRecipientAddresses |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getRecipientAddresses |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getRecipientAddresses |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a String with all addresses in the To field of this message. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
id | getReplyAddresses |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getReplyAddresses |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getReplyAddresses |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a String with all addresses in the Reply-To field of this message. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getSentDate |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| Date |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getSentDate |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a Date instance corresponding to the moment when this message was sent. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns Date |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
getSubject |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| String |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| getSubject |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns a String with the subject of this message. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
var msgs = plugins.mail.receiveMail(username, password, true, 0, null, properties);
if (msgs != null)
{
for (var i=0; i < msgs.length; i++)
{
var msg = msgs[i];
var str = '';
str += 'From: ' + msg.getFromAddresses() + '\n';
str += 'To: ' + msg.getRecipientAddresses() + '\n';
str += 'CC: ' + msg.getCCAddresses() + '\n';
str += 'Reply to: ' + msg.getReplyAddresses() + '\n';
str += 'Received on: ' + msg.getReceivedDate() + '\n';
str += 'Sent on: ' + msg.getSentDate() + '\n\n';
str += 'Subject: ' + msg.getSubject() + '\n\n';
str += 'Plain message: ' + msg.getPlainMsg() + '\n\n';
str += 'HTML message: ' + msg.getHtmlMsg() + '\n\n';
str += 'Headers: ' + msg.getHeaders() + '\n\n';
var attachments = msg.getAttachments();
if (attachments != null) {
str += 'Number of attachments: ' + attachments.length + '\n\n';
for (var j=0; j < attachments.length; j++)
{
var attachment = attachments[j];
str += 'Attachment ' + j + '\n';
str += ' Name: ' + attachment.getName() + '\n';
str += ' Size: ' + attachment.getData().length + '\n\n';
}
}
plugins.file.writeTXTFile('msg' + i + '.txt', str);
application.output('Message ' + i + ' retrieved.');
}
}
else
{
application.output("Failed to retrieve messages.");
}
|
|
|
|
|
|