edeR-package: Email data extraction using R

Description Details Author(s) Examples

Description

This package allows user to connect with Gmail server through IMAP and extract email header information from, to, cc, subject, and datetime. User can extract email data from any specific folder or label using the argument folder. To access "Drafts" and "Sent Mail" we need to input the argument as "[Gmail]/Drafts" and "[Gmail]/Sent Mail". Moreover user can search email with specific keyword in subject line or in emiail body message.

Details

Package: edeR
Type: Package
Depends: rJava, rjson, rJython
System dependency: Java runtime environment
Version: 1.0.0
Date: 2014-02-17
License: GPL-2

Author(s)

Jaynal Abedin

Maintainer: Jaynal Abedin <joystatru@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Not run: 
# Extract maximum 5 emails from the specified folder. 
# User needs to provide his/her valid Gmail address and password.
dat1 <- extractMbox(username="username@gmail.com",
                    password="password",
                    folder="foldar",
                    nmail=5)

# To extract maximum of 5 emails from inbox between June 6, 2013 to June 6, 2013
dat2 <- extractBetween(username="username@gmail.com",
                       password="password",
                       folder="inbox",
                       startDate="06-Jun-2013",
                       endDate="06-Jun-2013",
                       nmail=5)

# To extract maximum 5 emails with the word "keyword" within subject line
dat3 <-extractKeyword(username="username@gmail.com",
                      password="password",
                      kw="keyword",
                      nmail=5)       
# To extract maximum 5 emails with the word "keyword" within body message
dat4 <-extractKeywordB(username="username@gmail.com",
                       password="password",
                       kw="keyword",
                       nmail=5)
 
## End(Not run)

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