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

Non-ASCII characters in "To" header #78

Closed
krlmlr opened this issue Apr 29, 2017 · 0 comments

Comments

@krlmlr
Copy link
Member

commented Apr 29, 2017

Example:

gmailr::create_draft(
  gmailr::mime(
    To = "Kirill Müller <krlmlr+r@mailbox.org>",
    Subject = "subject",
    body = "body"
  ),
  user_id = "me"
)

RFC 1342 (see #76 (comment)) doesn't seem to work here:

gmailr::create_draft(
  gmailr::mime(
    To = paste0(
      "=?utf-8?B?",
      base64enc::base64encode(charToRaw(enc2utf8("Kirill Müller <krlmlr+r@mailbox.org>"))),
      "?="),
    Subject = "subject",
    body = "body"
  ),
  user_id = "me"
)
## Error in gmailr_POST("drafts", user_id, class = "gmail_draft", query = list(uploadType = type),  : 
##   Gmail API error: 400
##   Invalid to header

This messes up revdep-check e-mails, might be easier to use only the e-mail address (and not the maintainer name) for now. CC @hadley.

@jimhester jimhester added the bug label Aug 13, 2019

@jimhester jimhester closed this in 12a4a3e Aug 15, 2019

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