Relative Content

Tag Archive for gmail-apigoogle-workspace

Deleting Personal Emails from Gmail Efficiently

My Gmail reached the 15 GB limit, so I archived old emails with Thunderbird and I want to delete all the emails that are older than two weeks. Using the GUI is cumbersome because it seems like I can only delete 100 at a time. So I thought I could create a test app and add my Google Account as a test user to speed up the deletion. I created OAuth credentials in Google Cloud Console and wrote a python script that is called locally from a python virtual environment. Maybe I have to publish the app to have the scope to delete, and I would prefer not to publish the app. Here is the code:

Deleting Personal Emails from Gmail Efficiently

My Gmail reached the 15 GB limit, so I archived old emails with Thunderbird and I want to delete all the emails that are older than two weeks. Using the GUI is cumbersome because it seems like I can only delete 100 at a time. So I thought I could create a test app and add my Google Account as a test user to speed up the deletion. I created OAuth credentials in Google Cloud Console and wrote a python script that is called locally from a python virtual environment. Maybe I have to publish the app to have the scope to delete, and I would prefer not to publish the app. Here is the code:

Deleting Personal Emails from Gmail Efficiently

My Gmail reached the 15 GB limit, so I archived old emails with Thunderbird and I want to delete all the emails that are older than two weeks. Using the GUI is cumbersome because it seems like I can only delete 100 at a time. So I thought I could create a test app and add my Google Account as a test user to speed up the deletion. I created OAuth credentials in Google Cloud Console and wrote a python script that is called locally from a python virtual environment. Maybe I have to publish the app to have the scope to delete, and I would prefer not to publish the app. Here is the code:

Deleting Personal Emails from Gmail Efficiently

My Gmail reached the 15 GB limit, so I archived old emails with Thunderbird and I want to delete all the emails that are older than two weeks. Using the GUI is cumbersome because it seems like I can only delete 100 at a time. So I thought I could create a test app and add my Google Account as a test user to speed up the deletion. I created OAuth credentials in Google Cloud Console and wrote a python script that is called locally from a python virtual environment. Maybe I have to publish the app to have the scope to delete, and I would prefer not to publish the app. Here is the code:

forward the gmail programmatically using python

I have a Gmail thread ID, and I want to forward the entire email chain along with all attachments to another email address. What gmail apis or code do I need to follow to accomplish this?

Gmail Pub/Sub Topic is skipping a significant chunk of updates – not publishing them

I am leveraging Gmail push notification (using StreamingPull) to see if we can keep a near real-time sync with the User’s Gmail inbox.
Occasionally, I see a big gap between updates for some users. For example, my system retrieved pub/sub message (update) for user A with history ID = 10_000, and we don’t see any pub/sub messages for User A until like 30 minutes later with history ID = 10_500, and there were a number of updates in between that happened within that 30 minutes window. But, for some reasons, it doesn’t look like those updates were published to Gmail pub/sub that I am subscribed to.

Gmail Pub/Sub Topic is skipping a significant chunk of updates – not publishing them

I am leveraging Gmail push notification (using StreamingPull) to see if we can keep a near real-time sync with the User’s Gmail inbox.
Occasionally, I see a big gap between updates for some users. For example, my system retrieved pub/sub message (update) for user A with history ID = 10_000, and we don’t see any pub/sub messages for User A until like 30 minutes later with history ID = 10_500, and there were a number of updates in between that happened within that 30 minutes window. But, for some reasons, it doesn’t look like those updates were published to Gmail pub/sub that I am subscribed to.

Bulk signature upload in Gmail

We’re looking for APIs and code for the bulk signature upload in Gmail. One signature is for new emails and one is for forwarding and reply emails.