Skip to content

print.gmail_message() prints nonexistent fields #88

@jennybc

Description

@jennybc

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions