Can GAM Handle 'Read/Unread' Mail Status?

55 views
Skip to first unread message

Joe Hogan

unread,
Feb 22, 2019, 5:06:21 AM2/22/19
to GAM for G Suite
If so can't seem to manage to get anywhere with it.

Basically, just want to change a load of unread emails with certain attributes, but not sure if my syntax is incorrect or if read/unread status is not available

gam user f...@bar.com modify messages removelabel unread query "category:updates label:unread before:2018/12/20" doit

Ross Scroggs

unread,
Feb 22, 2019, 9:28:20 AM2/22/19
to google-ap...@googlegroups.com
Joe,

Here is the query documentation: https://support.google.com/mail/answer/7190

You have to change your query slightly and the label is UNREAD:
1) verify that your query is reasonable
gam user f...@bar.com modify messages removelabel UNREAD query "category:updates is:unread before:2018/12/20"
would try to modify 2 messages for user f...@bar.com.org (max 1)
2) perform action
gam user f...@bar.com modify messages removelabel UNREAD query "category:updates is:unread before:2018/12/20" doit max_to_modify 2

Ross
Unit 1, Gore Cross Business Park, Corbin Way, Bridport, Dorset, DT6 3UX
Co Reg No: 5005577 - VAT Reg No: 429 0781 40. Place of Registration: England, Registered Office: Wessex House, Teign Road, Newton Abbot, TQ12 4AA.


--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/3596acf9-6acf-4455-9d5f-6a6d25a9826e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joe Hogan

unread,
Feb 22, 2019, 10:03:13 AM2/22/19
to GAM for G Suite
Dang it, I was so close! Thanks for your help, worked like a charm 😃
Reply all
Reply to author
Forward
0 new messages