Looking for count of emails from a specific sender

94 views
Skip to first unread message

Renate

unread,
May 6, 2025, 11:56:53 AM5/6/25
to GAM for Google Workspace
I've tried many iterations to get a count for the number of messages from a specific sender.  I found a query online that is supposed to do this, but keep getting invalid choice error for >>>user<<<.  If I remove the all users portion, I get the same error for >>>messages<<<. 

Here is the query:

gam user all users show messages query "from:user...@domain.com" sendermatchpattern "from:user...@domain.com" countsonly

The "from" and "sender" are the same email address.

I'm running GAM GMADV-XTD3 7.00.38 on Windows 11.  Other unrelated commands work, so my installation/configuration appears to be good.

Ross Scroggs

unread,
May 6, 2025, 12:02:04 PM5/6/25
to google-ap...@googlegroups.com
gam all users show messages query "from:user...@domain.com" sendermatchpattern "from:user...@domain.com" countsonly

You should upgrde to GAM7: https://github.com/GAM-team/GAM/wiki/How-to-Upgrade-GAMADV-XTD3-to-GAM7#windows

It uses your existing project.

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/e395ec0a-1b7c-47b5-b732-b60cd3676385n%40googlegroups.com.

Diego Fernando Rivera Gonzalez

unread,
May 6, 2025, 12:21:53 PM5/6/25
to google-ap...@googlegroups.com
¡Hola Renate!

Gracias por contactarnos. Tal como dice Ross, te recomiendo mucho que actualices a GAM7. El comando que estás usando es de una versión anterior y GAM7 tiene muchas mejoras y correcciones de errores. El enlace que te pasó Ross es la mejor manera de hacerlo.

¡Espero que esto resuelva tu problema!

Diego




--

Saludos


Diego F. Rivera Gonzalez

Ingeniero De Proyectos
PBX: (+574) 5407150

Renate

unread,
May 6, 2025, 1:19:19 PM5/6/25
to GAM for Google Workspace
Thank you for the quick responses!  My query is now working.  I will update to GAM 7.
Reply all
Reply to author
Forward
0 new messages