-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Description
print.gmail_message() would be useful (reveals To, From, etc.) but it prints fields that aren't actually in an object of class "gmail_message". Or, rather, aren't necessarily present. With this workflow, they aren't available.
devtools::load_all()
#> Loading gmailr
msg <- mime() %>%
from("jenny.f.bryan@gmail.com") %>%
to("jenny@rstudio.com") %>%
text_body("post calling gmail_auth_config()")
x <- send_message(msg)
class(x)
#> [1] "gmail_message"
print(x)
#> Id: 15fb1221666ca31d
#> To:
#> From:
#> Date:
#> Subject:
#>
unclass(x)
#> $id
#> [1] "15fb1221666ca31d"
#>
#> $threadId
#> [1] "15fb1221666ca31d"
#>
#> $labelIds
#> $labelIds[[1]]
#> [1] "SENT"Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels