gmail-api

How long are nextPageTokens remembered for Gmail and Calendar APIs?

大兔子大兔子 提交于 2021-02-20 19:02:15
问题 The Gmail and Calendar APIs return a nextPageToken value in the response from the users.messages.list and events.list endpoints when pagination is required. If the value of the nextPageToken is provided in the next request to these endpoints, the next page of results is returned. My question : How long are these nextPageToken s persisted behind the Gmail and Calendar APIs? Context : I am building an abstraction on top of both the Gmail and Calendar APIs to return a list of Activities, and

Google Apps Script - Changing label of individual email in Gmail

我是研究僧i 提交于 2021-02-19 15:53:33
问题 I want to change the label of an individual email programatically in gmail in a Google Script. I can't use the standard GmailApp service because it applies actions to the whole thread instead of an individual email. I've found a few examples of this being done with the Advanced Gmail API (Search/replace labels in specific messages (not the whole thread) with Google Apps Script). But I've not had success with this. I keep getting the following error: Invalid number of arguments provided.

Incremental authorization for Google OAuth2 Sign in with Spring Security

断了今生、忘了曾经 提交于 2021-02-19 08:47:05
问题 I was wondering if there is a way for authorizing incrementally with Spring Security (as mentioned here) By default spring security provides basic profile access when using Google sign OAuth verification. That flow is correct. I would however want to request for additional scopes (Gmail Read, Calendar read etc) on certain URL endpoints. I have already tried using the @PreAuthorize property on the endpoint along with enabling @EnableGlobalMethodSecurity(prePostEnabled = true) as in the code.

get the delivery status of email with mimekit/mailkit library

寵の児 提交于 2021-02-19 04:27:26
问题 I am using @jstedfast Mimekit/Mailkit library, For sending mass email from my app. I want to know how to get the delivery status of each email. This is my first try to get this and after some RnD i got that we have to set or pass report-type=delivery-status some where, but i didn't get any idea where to do that form the doc where i read this. i also try by overriding DeliveryStatusNotification,but got nothing.May be i am going in wrong direction to get the notification/status. protected

Google Scripts - Grab email address from bounced message and parse information

岁酱吖の 提交于 2021-02-18 17:18:13
问题 Good Morning, I am a newbie to javascript, google scripts, and regex. I have found very good information from Amit Agarwal at https://www.labnol.org/internet/gmail-bounced-email-report/29209/, but I'm having difficulty identifying what I specifically need to keep or need to update. Rather than using the bounce mailer-daemon addresses, I would like to grab the bounced messages from two labels in my gmail account (MinervaBounce and MILSBounce) and be able to differentiate which one the message

Google Scripts - Grab email address from bounced message and parse information

守給你的承諾、 提交于 2021-02-18 17:17:25
问题 Good Morning, I am a newbie to javascript, google scripts, and regex. I have found very good information from Amit Agarwal at https://www.labnol.org/internet/gmail-bounced-email-report/29209/, but I'm having difficulty identifying what I specifically need to keep or need to update. Rather than using the bounce mailer-daemon addresses, I would like to grab the bounced messages from two labels in my gmail account (MinervaBounce and MILSBounce) and be able to differentiate which one the message

How to disconnect Gmail API Service Instance?

。_饼干妹妹 提交于 2021-02-12 11:38:48
问题 In my Python3 program that uses the Gmail API, I want to re-instantiate the Gmail "service" instance every few hours for the purpose of enhanced reliability. I am not certain if this is required to better reliability, but I thought it would be useful. So, when I start my program, I run the below function, which as you can see, builds the Gmail "service" instance. Then, after a few hours, I run the same code again. However, this results in socker.timeout errors. I know this because the socket

As a recipient, is it possible to detect if an email was sent via Gmail's “Schedule Send” vs. “Send”?

∥☆過路亽.° 提交于 2021-02-11 13:30:04
问题 Just curious if the email headers are marked by Gmail to denote if the email was scheduled vs sent right away. 来源: https://stackoverflow.com/questions/63714946/as-a-recipient-is-it-possible-to-detect-if-an-email-was-sent-via-gmails-sched

Python Gmail API won't pass labelIds Parameter to List method

时光怂恿深爱的人放手 提交于 2021-02-11 13:01:37
问题 I've been trying to get a Python script set up that involves querying a Gmail account for unread messages. Ideally I'd like to make use of the Gmail API's "list" method with the optional query parameter filtering for messages with the labelId of "UNREAD". When I test this out on Google's site (https://developers.google.com/gmail/api/v1/reference/users/messages/list) , it works properly. But within my script, the labelId parameter seems to not be passed correctly and my output is always the