Description Usage Arguments Format Details Inherit Methods Private fields See Also
It is a class that inherits from the Instance
class and
implements the functions of extracting the text and the date of an eml-type
file.
1 | ExtractorSms$new(path)
|
path |
(character) Path of the eml-type file. |
An object of class R6ClassGenerator
of length 24.
The way to indicate which part to choose in the email is through an .ini file which contains the following structure (being xxxx, text / plain or text / html):
[eml]
PartSelectedOnMPAlternative = xxxx
To be able to use this class it is necessary to have python installed.
This class inherits from Instance
and implements the
obtainSource
and obtainDate
abstracts functions.
obtainDate Function that obtain the date of the eml file. Call the function read_emails and obtain the date of the file indicated in the path and then transforms it into the generic date format, that is "%a %b %d %H:%M:%S %Z %Y" (Example: "Thu May 02 06:52:36 UTC 2013").
Usage
obtainDate()
obtainSource Function that obtains the source of the eml file. Calls the function read_emails and obtains the source of the file indicated in the path. In addition, it initializes the data with the initial source.
Usage
obtainSource()
getPartSelectedOnMPAlternative Getter of PartSelectedOnMPAlternative variable.
Usage
getPartSelectedOnMPAlternative()
Value
Value of PartSelectedOnMPAlternative variable.
setPartSelectedOnMPAlternative Setter of PartSelectedOnMPAlternative variable.
Usage
setPartSelectedOnMPAlternative(PartSelectedOnMPAlternative)
Arguments
PartSelectedOnMPAlternative (character) The new value of PartSelectedOnMPAlternative variable.
PartSelectedOnMPAlternative (character) Configuration to read the eml files. Indicates whether the text/plain part or the text/html part is read.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.