Bulk Mark emails as Read for User Inbox

10 views
Skip to first unread message

Mike

unread,
Sep 3, 2025, 10:30:57 AM (2 days ago) Sep 3
to GAM for Google Workspace
I'm trying to mark all emails within a certain timeframe as read, when i run the search query i get 200 emails. 

>gam user em...@domain.com show messages query "after:2024/12/01 before:2024/12/03 is:unread" countsonly

But when i run the modify it only applies to the first email, is this intended behavior and i need to output \ reinput it to a CSV?

>gam user em...@domain.com modify messages query "after:2024/12/01 before:2024/12/03 is:unread" removelabel UNREAD doit


Ross Scroggs

unread,
Sep 3, 2025, 10:35:52 AM (2 days ago) Sep 3
to google-ap...@googlegroups.com
You have to specify how many messages you want to modify:
gam user em...@domain.com modify messages query "after:2024/12/01 before:2024/12/03 is:unread" removelabel UNREAD doit maxtomodify N

N = 0 - modify all
N > 0 - limit number of modifications

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/d9214513-8e70-46ac-a07e-452a8b372200n%40googlegroups.com.

Mike

unread,
Sep 3, 2025, 10:45:49 AM (2 days ago) Sep 3
to GAM for Google Workspace
Thanks Ross!
Reply all
Reply to author
Forward
0 new messages