knitr::opts_chunk$set(echo = TRUE) devtools::load_all() response <- readRDS("tmp/data/response-list.rds") search_all <- readRDS("tmp/data/response-search_all.rds") header <- readRDS("tmp/data/response-fetch_92.rds") %>% sub("crazycapivara@gmail.com", "coughing@cohen.salut", .) %>% sub("@travis-ci.org", "@stuff.hi", .)
imapr
performs IMAP queries via curl.
master
develop
require("devtools") install_github("crazycapivara/imapr")
library(imapr) host <- "imaps://imap.gmail.com" imap <- IMAP(host) %>% user("your_username", "your_password") imap[c("url", "path")]
response <- imap %>% LIST() %>% execute()
response %>% cat() imap %>% SELECT("INBOX") %>% .[c("url", "path")]
search_all <- imap %>% SELECT("INBOX") %>% SEARCH("ALL") %>% execute()
search_all %>% substr(1, 20)
header <- imap %>% SELECT("INBOX") %>% FETCH(1, sections("header_min")) %>% execute()
header %>% cat() ## To be continued ##
devtools::test(reporter = "tap")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.