gam user a...@test.com modify messages query "to:b1@test.com in:inbox" addlabel "BD/b1" removelabel "INBOX" maxtomodify 9000000 doit
On Jul 25, 2021, at 11:07 PM, Rajagopal Suresh <sures...@gmail.com> wrote:
HiThanks for your suggestion. I need one more help.I have created a batch file to archive emails with the below syntax but found it is creating a new label instead of taking the existing label which is already available. could you please help me take the existing label for the below syntax.
gam user a...@test.com modify messages query "to:b1@test.com in:inbox" addlabel "b1" removelabel "INBOX" maxtomodify 9000000 doit
I have created already a label name with b1 under BD (parent label) in a1 email account so please guide me on how can I mention in the command to take sublabels like BD\b1.The above syntax is creating a new label for archiving emails but not taking the existing label b1 which is under BD parent group.Please help me to suggest commands for my issue.Just put them in one line after the other, save it as txt file.then dogam batch filename.txtHi,Please guide me to create batch file to run the gam command to transfer the drive data for 20 accounts using batch files with below syntax.Syntax:
--
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/a8955d65-bc9e-4a2e-b21f-6ba0634b76acn%40googlegroups.com.