knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

bottle

The goal of bottle is to drop email attachment (in gmail) directly into a folder in seafile.

Installation

You can install the released version of bottle from CRAN with:

remotes::install_github("VincentGuyader/seafile")
remotes::install_github("VincentGuyader/bottle")

How To

library(bottle)
library(seafile)

First connect your gmail account

gmailr::gmail_auth()

Then ping your seafile repos

seafile::ping()

Now upload attchment to seafile

get_messages_id() %>% 
  import_files_from_gmail(path = tempdir()) %>% 
  upload_to_seafile(repos_id_destination = get_repo_id(name = "My Library"))

And remove email from inbox and put thme in seafile label

get_messages_id() %>%
  remove_from_inbox()


VincentGuyader/bottle documentation built on Sept. 30, 2019, 12:35 p.m.