read-email-cg-lib
Version:
Library to read emails
54 lines (50 loc) • 1.13 kB
JavaScript
/**
* Object to properties of attachments
* @type {{filename: null, contentType: null, content: null}}
*/
const attach = {
content: null,
contentType: null,
filename: null
};
/**
* Object to properties of emails
* @type {{date: null, attachments: null, subject: null, from: null, to: null, text: null}}
*/
const email = {
attachments: null,
date: null,
from: null,
subject: null,
text: null,
to: null
};
/**
* Object extra prop content
* @type {{timeZone: string, tls: boolean, sortDate: string}}
*/
const extraProp = {
sortDate: "desc",
timeZone: "",
tls: true
};
/**
* Object generally with prop file and content
* @type {{password: null, port: null, endDate: null, dateFormat: null, host: null, user: null, startDate: null, status: null}}
*/
const objectReadEmail = {
dateFormat: null,
endDate: null,
host: null,
password: null,
port: null,
startDate: null,
status: null,
user: null
};
module.exports = {
attach,
email,
extraProp,
objectEmail: objectReadEmail
};