There are numerous reports of issues with Gmail labels, stars, unreads, message counts, and generally searching or counting combinations of these. Many of these seem to come from a common cause.
I understand that Google has obscurely documented
that: despite showing labels as if they belong to the conversation,
they actually belong to individual messages. And I understand that new messages appended to an existing conversation do not inherit any of the labels previously used in that conversation.
Two things could solve this, as I see it so far:
- Make sure new messages in a conversation automatically inherit user labels from the conversation.
- Work around this so that at least I can review conversations for which search criteria applies to conversations as if they had the labels and stars and unread statuses of their constituent messages.
What is a step-by-step workflow that ordinary Gmail users can use to work around this issue? Workflow examples might include, but are not limited to:
- Per-message or per-conversation handling / command sequences
- Installation and running of automated maintenance scripts
- Non-standard (non-intuitive) search queries
- Daily/Weekly (i.e. periodic) handling or procedures
- Creative uses of filters
- Labs features
Easily reproduce the issue yourself
- Send a test message to yourself.
- Open that new unread conversation that only has one message in it.
- Label that conversation with a new label “mylabel”. Then go back to inbox.
- Search for “is:starred label:mylabel” and verify that nothing shows up because nothing is starred.
- Open the test conversation.
- Reply to that message and send. Then go back to the inbox.
- Open that test conversation and click a star on this second message in the conversation. Then go back to the inbox.
- We verify that there is a conversation that has a star and has the label “mylabel”.
- Search the same search before (“is:starred label:mylabel”). We expect to find the test conversation there because it is both starred and has the “mylabel” label.
- BUG: No conversations show up.
But I’m still interested in finding the starred conversations that have that label.
List of documented cases and discussions
The following work flow helps.
Get into conversation mode if not already there. (General settings)
For each label:
- Select the label
- Check the box above the list to select all in the list.
- Check the link that appears at the top of the list to extend the selection to the rest of the labeled conversations.
At this point you have selected all conversations that have at least one message tagged with this label.
Drag the label from the list at left onto the selected conversations.
If you selected more than 100 You will be asked to confirm. Do so.
This takes half a minute to a minute per label depending on how many messages you are working with.
Are you done?
Check Go to search slot. search for has:nouserlabels This should NOT show any matching labels. If it does then there is at least one unlabeled message in that conversation.
Downside: Sent messages added to this thread will not inherit the labels.
Work on your filters. By default filters are ANDed together. However you can do things like
from:email@example.com OR to:firstname.lastname@example.org
in the has text box. This will label outgoing messages as well as incoming ones.