Hi Team,
I need to apply an existing label to all messages within a user's mailbox. I tried the GAM commands listed below, but they aren't working as expected and are returning zero matched messages. Could someone help me with the correct query to target "All Mail"?

I tried the below two commands as well but it just applies the label for a handful of emails not all.
gam user X...@XXX.com modify messages query "before:tomorrow" addlabel "_ 🔏Archive - Do Not Alter" maxtomodify 10000000 doit 2> failures.txt
gam user
X...@XXX.com
modify messages query "anywhere" addlabel "_ 🔏Archive - Do Not Alter" maxtomodify 10000000 doit 2> failures.txt
Let me know if someone can help.