Deleting messages from specific users all at once

34 views
Skip to first unread message

Jon Lerner

unread,
Sep 30, 2024, 5:32:12 PM9/30/24
to GAM for Google Workspace
Hello,

I'm trying to run

gam user 'user' show messages query "from:'email' subject:'subject' after: date" 

on multiple emails at once. Is there a way I can edit the command to accommodate this?


Ross Scroggs

unread,
Sep 30, 2024, 5:42:39 PM9/30/24
to google-ap...@googlegroups.com
Yes.
Make a CSV file (Users.csv) with header: user
user

Output to screen
gam redirect stdout - multiprocess csv Users.csv gam user "~user" show messages query "from:'email' subject:'subject' after: date" 

or
Output to CSV file
gam redirect csv ./UsreEmails.csv multiprocess csv Users.csv gam user "~user" print messages query "from:'email' subject:'subject' after: date" 

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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/37e40d70-544e-4215-a5e1-2f3987b11b5en%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages