How to extract email data in R?

How can I export my email database from Gmail (or Thunderbird) to R?

Like the rgoogledocs and twitteR packages, is there a gmailR package or a standard format for exporting emails to stat packages?

Tal

+3
source share
4 answers

Standard email (on Unix) is either a file mbox(containing several messages) or an installation maildirwhere each email is a file in a directory.

, ascii. , MUA ( - ) MTA ( - , exim, qmail, postfix,...). MTA , POP3 IMAP, , ( Gmail Thunderbird) . , , , , .

R , , R POP3 IMAP .

+3

Gmail Thunderbird ... Gmail Thunderbird, ASCII, R script, R , ... . =)

" "... , R " "... Python JAVA, , ( - ) script, "" , R. R , , - .

... Python (JAVA, C... )!

P.S. , - ...

+2

Now there is an R-packet for extracting email data. This package is still under testing, but anyone can install it from GitHub, the package name is edeR. Right now, it can extract email data from Gmail with IMAP enabled.

+2
source

First you need to install it library(edeR). You may need to manually install Java 64 on Windows 8, you may need to enable IMAP access in Gmail.

dat3 <-extractKeyword(username="YOURLOGIN@gmail.com",
                  password="YouRPaSS",
                  kw="adsense",
                  nmail=5)

This will download 5 emails with the keyword 'adsense'.

+1
source

Source: https://habr.com/ru/post/1748641/


All Articles