extractMbox: Extracts emails from specified folder

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

This function extracts email data from a specified folder

Usage

1
extractMbox(username, password, folder, 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"

folder

A character string of specific folder or label name from where the email data will be extracted

nmail

An integer for the number of emails to extract, default is all emails (nmail=-1)

Details

This function allow users to extract email data from specified folder. By default this function will extract all available emails from the specified folder but user can restrict number of emails to extract using nmail.

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)

Note

To extract "Sent Mail", the argument is folder="[Gmal]/Sent Mail"

Author(s)

Jaynal Abedin

See Also

extractBetween

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Extract maximum 5 emails from the specified folder
dat<-extractMbox(username="username@gmail.com",
                 password="password",
                 folder="folder",
                 nmail=5)
 
## End(Not run)

edeR documentation built on May 1, 2019, 6:46 p.m.