You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Follow tidyverse style guide conventions. Use `cli::cli_abort()` for error messa
27
27
OAuth authentication is managed through the gargle package. Users must provide their own OAuth client via`gm_auth_configure()`. Authentication state is maintained across sessions. See`R/gm_auth.R` for implementation details.
28
28
29
29
**HTTP Requests**
30
-
All Gmail API calls go through httr. Request and response handling follows gargle conventions. The most recent API response is available via`gm_last_response()` for debugging.
30
+
All Gmail API calls go through httr. Request and response handling follows gargle conventions. The most recent API response is available via`gargle::gargle_last_response()` for debugging.
31
31
32
32
**MIME Message Construction**
33
33
Email messages are built using MIME (Multipurpose Internet Mail Extensions) format. The`gm_mime()` function creates a base MIME object, which is then populated using builder functions like`gm_to()`,`gm_subject()`, and`gm_text_body()`. See`R/gm_mime.R` for the implementation.
Copy file name to clipboardExpand all lines: NEWS.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,21 @@
1
1
#gmailr (development version)
2
2
3
+
* All HTTP responses are passed through`gargle::response_process()`, which updates gmailr's error handling to be consistent with other packages that use gargle for HTTP requests. Users might notice that errors are more verbose (and hopefully more informative). Also the class vector has changed:
* Functions that lack the`gm_` prefix have been removed, concluding a deprecation process that kicked off with gmailr 1.0.0 (released 2019-08-23). These functions were hard deprecated in gmailr 2.0.0 (released 2023-06-30). This eliminates many name conflicts with other packages (including the base package).
6
11
7
12
* Legacy auth functions`clear_token()`,`gmail_auth()`, and`use_secret_file()` have been removed, following the same deprecation timeline as described above.
8
13
14
+
*`gm_last_response()` is deprecated, in favor of`gargle::gargle_last_response()`, since gmailr no longer caches the last response itself.
15
+
9
16
##Bug fixes
10
17
11
-
* Fixed MIME structure for emails with text+HTML bodies and attachments. These messages now correctly use nested`multipart/mixed` (outer) containing`multipart/alternative` (text/HTML), preventing the loss of some of the message parts (#202).
18
+
* Fixed MIME structure for emails with text+HTML bodies and attachments. These messages now correctly use nested`multipart/mixed` (outer) containing`multipart/alternative` (innertext/HTML), preventing the loss of some of the message parts (#202).