applications – Gmail Nested labels on android

I use nested labels on my laptop for organizing email since it reduces the number of labels I see.
But on my android phone the nesting doesn’t appear to work.
“HOA” as main label and “HOA/docs” as the sublabel. The label is the same of both laptop and phone, but they do not nest on my phone.
Am I missing some setting on my phone or is it just something that a phone cannot.

Is it possible to add a banner to a forwarded gmail?

I have a few infrequently used gmail accounts which forward on to another account which is regularly monitored.

When these infrequently used accounts receive emails and forward them on, I can get very similar looking emails which actually come from different addresses yet look at a very quick glance to be duplicates which is mildly annoying.

Is there any easy way to add a banner or prefix the subject line for example to say “this originated from…” or something along those lines?

I know there are banners which are added to emails identifying that the email originated outside a domain or a warning about containing viruses etc but I’m guessing this is a feature of the local server so was wondering whether there was anything that could be done with gmail.


Is it possible to circumvent the 2FA protection on Gmail using a stolen photo id?

Digital-based KYCs (Know Your Customer checks) are widespread these days, and given the number of reported data breaches, it is not unreasonable to assume that there’s a non-zero risk that photos of one’s ID used has been obtained by an unauthorized party (the ID could also have been obtained through regular theft or robbery).

The question is, could the unauthorized party circumvent our 2FA and password by attempting to do a “password recovery” on our Gmail by providing the aforementioned ID as identity proof? If so, is there a way to prevent/negate this potential attack-vector?

Django can send email from Python Shell but Gmail blocks mail when sent from front end form

I’m trying to make a password reset via email page following the tutorial here:

I can send emails while in the Python-Django shell but when I try to send it via that form, Gmail blocks my messages.

I have my email settings in configured as:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

When I do this using the shell, I’m able to receive the email:

>>> from django.core.mail import send_mail
>>> send_mail('test email', 'hello world', '', (''))

My password reset form looks like this (base_generic just has some bootstrap and jquery CDN stuff along with a navbar)

{% extends "OracleOC/base_generic.html" %}

{% block content %}
  <form action="" method="post">
  {% csrf_token %}

  {% if %}
    {{ }}
  {% endif %}
      <p>Please enter your email:</p>
      <p>{{ }}</p>
    <input type="submit" class="btn btn-primary main_menu_button" value="Reset password">
{% endblock %}

When I press submit, everything looks fine and I get a

(17/Jan/2021 07:04:12) "GET /accounts/password_reset/done/ HTTP/1.1" 200 2105

in my Django console but I get a copy of the message in my sender gmail box with this message:
Gmail blocked my message!

No authentication error, Insecure Apps setting on.

How can I search for a specific word in an email thread in Gmail for Android?

I have opened an email thread (aka conversation) in Gmail for Android. I would like to search a string (e.g., word or phrase).

How can I search for a specific word in an email thread in Gmail for Android?

How do I automatically delete old Google email (Gmail)

This is a work in-progress answer, but I figured I’d post my draft here in hopes of getting some visibility to help me finish it.

Gmail has implemented some strict security features that makes it complicated to run scripts on it. Unfortunately, unless you’re familiar with the Gmail API and how its credentials system works, implementing such a script very difficult to figure out. In fact, I’m not really sure how it works, but through trial-and-error I was able to get a script working that deletes all Gmail older than 70 months every hour. You can modify this script for any search criteria.

I would appreciate any feedback, especially from someone who actually understands this stuff, to help me complete this guide.

  1. Go to
  2. Click on “New Project” to create a new project. Give it a title.
  3. In the code editor, replace the empty function with this code:
function batchDeleteEmail() {
 var batchSize = 100 // Process up to 100 threads at once
 var threads ='older_than:70m');
 for (j = 0; j < threads.length; j+=batchSize) {
   GmailApp.moveThreadsToTrash(threads.slice(j, j+batchSize));
  1. Rename the file to (or something similar)
  2. Steps 6-10 below may not be necessary. Please let me know whether they are.
  3. On the left side of the screen, hover over the gear symbol and then click on Project Settings.
  4. Enable “Show “appsscript.json” manifest file in editor”
  5. On the left side of the screen, click on the < > to return to the code editor
  6. You should see a new file appear, appscript.json. Click on it.
  7. Edit the file to add an oauthScopes entry for It should look something like this. The part in green is to be added. The rest may be different.
 "oauthScopes": (
 "timeZone": "America/New_York",
 "dependencies": {
   "enabledAdvancedServices": (
       "userSymbol": "Gmail",
       "version": "v1",
       "serviceId": "gmail"
 "exceptionLogging": "STACKDRIVER",
 "runtimeVersion": "V8"
  1. Go to the Google Cloud Platform,
  2. Click on Create Project
  3. For simplicity, give the project the same name as your script
  4. From the project menu, go to the project’s settings
  5. Now you need to enable the “Gmail API”. From the navigation menu in the upper-left corner, click on “APIs and Services -> Dashboard”
  6. Click on “+ Enable APIs and Services”
  7. In the search box, type in “gmail”.
  8. The “Gmail API” will appear as a result. Click on it.
  9. The management page will appear. Click “ENABLE” You’ll be sent back to the dashboard.
  10. Click on “Create Credentials”

At this point, you need to provide credentials. I got this working after a bunch of trial and error, but I don’t remember all the details. I think you need to create a test user, and mark the project as internal only, and then assign Gmail API permissions. Once this is all working, you can then create a trigger that runs your script on a regular schedule. I will update this answer soon to provide those details.

google apps script – forward and append gmail subject with sender’s email address

I need to forward mail messages that append the subject with the first part of the sender’s email address. So for example, our VoIP service sends a gmail when a user gets a voicemail but the subject only reads “voicemail message.” The sender is the phone number at the VoIP domain. So the sender would be I want to take the 555-555-1234 and forward and append the subject so the subject reads “555-555-1234 Voice Message.” And ideas?

Sort email by the number of unread messages in gmail web

I would like to sort the email senders by the number of unread messages.

In the web version of gmail, they don’t support this feature as far as I know.

How can I do this?

gmail – Additional space purchase

After constantly receiving message on my gmail that I am out of storage space and deleting anything and everything I can, I have finally caved in and purchased some extra space – except I am STILL getting the same message. If they block my emails I am in trouble. The payment has been confirmed and it is now weeks since I paid. Anyone have any information on how I can sort this out? Thanks.