This class inherits from the Instance
class and
implements the functions of extracting the text and the date from an eml type
file.
This class inherits from Instance
and implements the
obtainSource
and obtainDate
abstracts functions.
bdpar::Instance
-> ExtractorEml
Inherited methods
bdpar::Instance$addBanPipes()
bdpar::Instance$addFlowPipes()
bdpar::Instance$addProperties()
bdpar::Instance$checkCompatibility()
bdpar::Instance$getBanPipes()
bdpar::Instance$getData()
bdpar::Instance$getDate()
bdpar::Instance$getFlowPipes()
bdpar::Instance$getNamesOfProperties()
bdpar::Instance$getPath()
bdpar::Instance$getProperties()
bdpar::Instance$getSource()
bdpar::Instance$getSpecificProperty()
bdpar::Instance$invalidate()
bdpar::Instance$isInstanceValid()
bdpar::Instance$isSpecificProperty()
bdpar::Instance$setData()
bdpar::Instance$setDate()
bdpar::Instance$setProperties()
bdpar::Instance$setSource()
bdpar::Instance$setSpecificProperty()
new()
Creates a ExtractorEml
object.
ExtractorEml$new(path, PartSelectedOnMPAlternative = NULL)
path
A character
value. Path of the eml file.
PartSelectedOnMPAlternative
A character
value. Configuration to read
the eml files. If it is NULL, checks if is defined in the
"extractorEML.mpaPartSelected" field of bdpar.Options
variable.
obtainDate()
Obtains the date of the eml file. Calls the function read_emails and obtains 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").
ExtractorEml$obtainDate()
obtainSource()
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.
ExtractorEml$obtainSource()
getPartSelectedOnMPAlternative()
Gets of PartSelectedOnMPAlternative variable.
ExtractorEml$getPartSelectedOnMPAlternative()
Value of PartSelectedOnMPAlternative variable.
setPartSelectedOnMPAlternative()
Gets of PartSelectedOnMPAlternative
variable.
ExtractorEml$setPartSelectedOnMPAlternative(PartSelectedOnMPAlternative)
PartSelectedOnMPAlternative
A character
value. The
new value of PartSelectedOnMPAlternative variable.
Instance
character
representation
clone()
The objects of this class are cloneable with this method.
ExtractorEml$clone(deep = FALSE)
deep
Whether to make a deep clone.
The way to indicate which part to choose in the email, when is a multipart email,
is through the "extractorEML.mpaPartSelected"
field of bdpar.Options
variable.
bdpar.Options
, ExtractorSms
,
ExtractorYtbid
, Instance