Learn R Programming

edeR (version 1.0.0)

extractKeyword: Extracts email with specified keyword in the subject line

Description

This function extracts email data with specific keyword in the subject line

Usage

extractKeyword(username, password, kw, nmail = -1)

Arguments

username
A character string of email address for example, "xxx@gmail.com"
password
A character string of password of the email address for example "xyz123"
kw
A character string of specific keyword that will be searched within subject line
nmail
An integer for the number of emails to extract, default is all emails (nmail=-1)

Value

n_message
Number of available email in the specified folder
data
The extracted data frame with the field unique id (uid), sender (from), receiver either direct or cc'd (to), subject of mail (subj), time stamp (datetime)

Details

Extracts emails with exact keyword kw in the subject line

See Also

extractKeywordB

Examples

Run this code
## Not run: 
# # To extract maximum 5 emails with the word "keyword" within subject line
# dat <-extractKeyword(username="username@gmail.com",
#                      password="password",
#                      kw="keyword",
#                      nmail=5)
#  ## End(Not run)

Run the code above in your browser using DataLab