FETCH: FETCH

Description Usage Arguments Value Examples

View source: R/fetch.R

Description

Fetch message (section) for given id.

Usage

1
FETCH(imap, msg_id, section = "HEADER")

Arguments

imap

imap object

msg_id

message id as returned from SEARCH command

section

section to fetch
"" - complete message
"HEADER" - header
"TEXT" - body

Value

character

Examples

1
2
3
4
5
## Not run: 
   imap %>% SELECT("INBOX") %>%
      FETCH(1, "") %>% execute()

## End(Not run)

crazycapivara/imapr documentation built on May 14, 2019, 11:32 a.m.