Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`print.gmail_message()` prints nonexistent fields #88

Closed
jennybc opened this issue Nov 12, 2017 · 0 comments

Comments

@jennybc
Copy link
Member

commented Nov 12, 2017

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"

@jimhester jimhester closed this in ae319b5 Aug 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.