Email Recall

7,017 views
Skip to first unread message

Mi0Tx

unread,
Dec 10, 2016, 8:51:54 PM12/10/16
to GAM for G Suite
Is there a way to recall an email using GAM? If for example a user sent out an email within the organization by mistake..


Thanks!!

Ross Scroggs

unread,
Dec 11, 2016, 1:39:00 PM12/11/16
to google-ap...@googlegroups.com
You can't recall it but you can delete it. Get the RFC 822 Message Id; for some recipient, choose the message and select Show orginal in the pull-down at the right end of the subject line; you want everything within <>.

gam all users  delete messages query "rfc822msgid:string-of-letter...@domain.com"

On Dec 10, 2016, at 5:51 PM, Mi0Tx <miro...@gmail.com> wrote:

Is there a way to recall an email using GAM? If for example a user sent out an email within the organization by mistake..


Thanks!!

--
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/55e24f3a-9f69-45ad-be10-16492262e801%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ross Scroggs

unread,
Dec 11, 2016, 1:45:40 PM12/11/16
to google-ap...@googlegroups.com
But wait, there's more. You have to confirm deleting the messages.

This will show you what's going to happen but won't actually perform the delete.

gam all users  delete messages query "rfc822msgid:string-of-letter...@domain.com"

Adding the doit argument confirms that you know what you're doing.

gam all users  delete messages query "rfc822msgid:string-of-letter...@domain.com" doit

Ross

On Dec 10, 2016, at 5:51 PM, Mi0Tx <miro...@gmail.com> wrote:

Is there a way to recall an email using GAM? If for example a user sent out an email within the organization by mistake..


Thanks!!

Message has been deleted

Mi0Tx

unread,
Dec 11, 2016, 2:22:36 PM12/11/16
to GAM for G Suite
Thank you both!! I am going to test it out!

I appreciate you both!

Regards,


On Sunday, December 11, 2016 at 12:45:40 PM UTC-6, Ross Scroggs wrote:
But wait, there's more. You have to confirm deleting the messages.

This will show you what's going to happen but won't actually perform the delete.

gam all users  delete messages query "rfc822msgid:string-of-letters...@domain.com"

Adding the doit argument confirms that you know what you're doing.

gam all users  delete messages query "rfc822msgid:string-of-letters...@domain.com" doit

Ross

On Dec 10, 2016, at 5:51 PM, Mi0Tx <miro...@gmail.com> wrote:

Is there a way to recall an email using GAM? If for example a user sent out an email within the organization by mistake..


Thanks!!

--
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-manager+unsub...@googlegroups.com.

Mi0Tx

unread,
Dec 11, 2016, 5:27:59 PM12/11/16
to GAM for G Suite
I keep getting Got 0 messages...



On Sunday, December 11, 2016 at 12:45:40 PM UTC-6, Ross Scroggs wrote:
But wait, there's more. You have to confirm deleting the messages.

This will show you what's going to happen but won't actually perform the delete.

gam all users  delete messages query "rfc822msgid:string-of-letters...@domain.com"

Adding the doit argument confirms that you know what you're doing.

gam all users  delete messages query "rfc822msgid:string-of-letters...@domain.com" doit

Ross

On Dec 10, 2016, at 5:51 PM, Mi0Tx <miro...@gmail.com> wrote:

Is there a way to recall an email using GAM? If for example a user sent out an email within the organization by mistake..


Thanks!!

--
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-manager+unsub...@googlegroups.com.

Robert Robinson

unread,
Dec 12, 2016, 4:13:37 AM12/12/16
to GAM for G Suite
You need to include  "rfc822msgid:

in the command.

Mi0Tx

unread,
Dec 12, 2016, 7:25:27 AM12/12/16
to GAM for G Suite
Worked like a charm!

Thanks Robert!

Deidre Hugo

unread,
Jun 5, 2018, 5:44:43 AM6/5/18
to GAM for G Suite
@Ross, 

Why can't I find the rfc id in Gmail? I can find this:
Message-ID: <CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O5...@mail.gmail.com>

I've clicked to see the original message, but can't see anything that starts with rfc822msgid?


On Sunday, 11 December 2016 21:39:00 UTC+3, Ross Scroggs wrote:
You can't recall it but you can delete it. Get the RFC 822 Message Id; for some recipient, choose the message and select Show orginal in the pull-down at the right end of the subject line; you want everything within <>.

gam all users  delete messages query "rfc822msgid:string-of-letters...@domain.com"

On Dec 10, 2016, at 5:51 PM, Mi0Tx <miro...@gmail.com> wrote:

Is there a way to recall an email using GAM? If for example a user sent out an email within the organization by mistake..


Thanks!!

--
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-manager+unsub...@googlegroups.com.

Deidre Hugo

unread,
Jun 5, 2018, 6:07:44 AM6/5/18
to GAM for G Suite
Or am I just being blonde and have to add it manually ;-)

e.g. 

gam all users  delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O5...@mail.gmail.com"


On Sunday, 11 December 2016 21:45:40 UTC+3, Ross Scroggs wrote:
But wait, there's more. You have to confirm deleting the messages.

This will show you what's going to happen but won't actually perform the delete.

gam all users  delete messages query "rfc822msgid:string-of-letters...@domain.com"

Adding the doit argument confirms that you know what you're doing.

gam all users  delete messages query "rfc822msgid:string-of-letters...@domain.com" doit

Ross

On Dec 10, 2016, at 5:51 PM, Mi0Tx <miro...@gmail.com> wrote:

Is there a way to recall an email using GAM? If for example a user sent out an email within the organization by mistake..


Thanks!!

--
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-manager+unsub...@googlegroups.com.

Ross Scroggs

unread,
Jun 5, 2018, 8:30:47 AM6/5/18
to google-ap...@googlegroups.com
Deidre,

Internal name: rfc822msgid
Human name: Message-ID

They refer to the same data.

·         D I S C L A I M E R
The information transmitted is intended only for the person or organisation to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or organisation other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer.
This email and its contents have been scanned for viruses, but the scanner may not be able to detect or repair all viruses and variants. Please be aware that there is a risk involved whenever downloading email attachments to your computer or sending email attachments to others. Kuwait English School and its software providers accept no liability for loss or damage incurred as a result of downloading email attachments.

--
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.

Deidre Hugo

unread,
Jun 6, 2018, 1:20:50 AM6/6/18
to GAM for G Suite
Ross, you are an absolute genius. Thank you. 

On that note - I ran the first command just to see if it'll work. 

It, of course, checks the entire domain. 

If the email was sent to only our Senior Teachers using the group seniort...@domain.com, will it work if I change the command to:

gam group ~groupemail delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90c...@mail.gmail.com"

Thank you! 



On Tuesday, 5 June 2018 15:30:47 UTC+3, Ross Scroggs wrote:
Deidre,

Internal name: rfc822msgid
Human name: Message-ID

They refer to the same data.

On Jun 5, 2018, at 3:07 AM, 'Deidre Hugo' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

Or am I just being blonde and have to add it manually ;-)

e.g. 

gam all users  delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90cAmGZAWw@mail.gmail.com"

+KimNilsson

unread,
Jun 6, 2018, 6:50:18 AM6/6/18
to GAM for G Suite
Hi, Deidre!

You should be fine testing that.
It'll tell you immediately if your user reference "group ~groupemail" doesn't work.

✉ Kevin Melillo

unread,
Jun 6, 2018, 7:58:11 AM6/6/18
to google-ap...@googlegroups.com
It may be easier just to export the members from your group, and use that to do the search\delete...  here is the command we use when we have to purge

gam csv users.csv gam user ~Email delete messages query "rfc822msgid:<MessageId> AND after:2018/06/06" max_to_delete 3 doit

We take the list of users we know are affected, via the Email Audit Log, dedupe it, and then put them in users.csv

This way, it does not have to process all of our over 100,000 users.
We probably do not need the date modifier, since it is searching on a specific Message ID, but we use it anyway.  It also helps when we have to purge on sender\subject as well.

--
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.

For more options, visit https://groups.google.com/d/optout.


--
Kevin Melillo
Electronic Communications Analyst
Information Technology
445 Hoes Lane
Piscataway, NJ 08854

Phone:732-465-6609 | Mobile: 732-609-4331

Ross Scroggs

unread,
Jun 6, 2018, 9:34:29 AM6/6/18
to google-ap...@googlegroups.com
Deidre,

This: gam group ~groupemail would only work in the context of a gam csv command, you want:
$ gam group seniort...@domain.com delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90c...@mail.gmail.com" max_to_delete 3 doit
This method processes the users serially.

Kevin's suggestion is the following:
$ gam group  seniort...@domain.com print users primaryemail > Users.csv
$ gam csv Users.csv gam ~primaryEmail delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90c...@mail.gmail.com" max_to_delete 3 doit
One-liner equivalent:
$ gam group seniort...@domain.com print users primaryemail | gam csv - gam ~primaryEmail delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90c...@mail.gmail.com" max_to_delete 3 doit

These methods process the users in parallel thus will execute faster. For small groups, the first method is simpler to input and the speed shouldn't matter. 

Ross
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.

Ross Scroggs

unread,
Jun 6, 2018, 2:01:50 PM6/6/18
to google-ap...@googlegroups.com
Deidre,

With my Advanced Gam you can get parallel processing with the simple form of the command I showed previously.
$ gam config auto_batch_min 1 group seniort...@domain.com delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O5...@mail.gmail.com" max_to_delete 3 doit
The config auto_batch_min 1 option tells gam to use parallel processing if the group has more that one member.

Ross

On Wed, Jun 6, 2018 at 6:34 AM Ross Scroggs <ross.s...@gmail.com> wrote:
Deidre,

This: gam group ~groupemail would only work in the context of a gam csv command, you want:
$ gam group seniort...@domain.com delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O5...@mail.gmail.com" max_to_delete 3 doit
This method processes the users serially.

Kevin's suggestion is the following:
$ gam group  seniort...@domain.com print users primaryemail > Users.csv
$ gam csv Users.csv gam ~primaryEmail delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O5...@mail.gmail.com" max_to_delete 3 doit
One-liner equivalent:
$ gam group seniort...@domain.com print users primaryemail | gam csv - gam ~primaryEmail delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O5...@mail.gmail.com" max_to_delete 3 doit

These methods process the users in parallel thus will execute faster. For small groups, the first method is simpler to input and the speed shouldn't matter. 

Ross
On Jun 5, 2018, at 10:20 PM, 'Deidre Hugo' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

Ross, you are an absolute genius. Thank you. 

On that note - I ran the first command just to see if it'll work. 

It, of course, checks the entire domain. 

If the email was sent to only our Senior Teachers using the group seniort...@domain.com, will it work if I change the command to:

gam group ~groupemail delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O5...@mail.gmail.com"

Thank you! 



On Tuesday, 5 June 2018 15:30:47 UTC+3, Ross Scroggs wrote:
Deidre,

Internal name: rfc822msgid
Human name: Message-ID

They refer to the same data.

On Jun 5, 2018, at 3:07 AM, 'Deidre Hugo' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

Or am I just being blonde and have to add it manually ;-)

e.g. 

gam all users  delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O5...@mail.gmail.com"


On Sunday, 11 December 2016 21:45:40 UTC+3, Ross Scroggs wrote:
But wait, there's more. You have to confirm deleting the messages.

This will show you what's going to happen but won't actually perform the delete.

gam all users  delete messages query "rfc822msgid:string-of-letter...@domain.com"

Adding the doit argument confirms that you know what you're doing.

gam all users  delete messages query "rfc822msgid:string-of-letter...@domain.com" doit

Ross

On Dec 10, 2016, at 5:51 PM, Mi0Tx <miro...@gmail.com> wrote:

Is there a way to recall an email using GAM? If for example a user sent out an email within the organization by mistake..


Thanks!!

--
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.

·         D I S C L A I M E R
The information transmitted is intended only for the person or organisation to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or organisation other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer.
This email and its contents have been scanned for viruses, but the scanner may not be able to detect or repair all viruses and variants. Please be aware that there is a risk involved whenever downloading email attachments to your computer or sending email attachments to others. Kuwait English School and its software providers accept no liability for loss or damage incurred as a result of downloading email attachments.

--
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/0058db63-4fca-4fc8-b74d-9756e9572957%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

·         D I S C L A I M E R
The information transmitted is intended only for the person or organisation to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or organisation other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer.
This email and its contents have been scanned for viruses, but the scanner may not be able to detect or repair all viruses and variants. Please be aware that there is a risk involved whenever downloading email attachments to your computer or sending email attachments to others. Kuwait English School and its software providers accept no liability for loss or damage incurred as a result of downloading email attachments.

--
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/9e880fb3-9f5c-4bf9-96c9-d6e7927212c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Deidre Hugo

unread,
Jun 7, 2018, 4:48:15 AM6/7/18
to GAM for G Suite
Wow - GAM Master, thank you so very much! Really appreciate the feedback. 


On Wednesday, 6 June 2018 21:01:50 UTC+3, Ross Scroggs wrote:
Deidre,

With my Advanced Gam you can get parallel processing with the simple form of the command I showed previously.
$ gam config auto_batch_min 1 group seniort...@domain.com delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90cAmGZA...@mail.gmail.com" max_to_delete 3 doit
The config auto_batch_min 1 option tells gam to use parallel processing if the group has more that one member.

Ross
On Wed, Jun 6, 2018 at 6:34 AM Ross Scroggs <ross.s...@gmail.com> wrote:
Deidre,

This: gam group ~groupemail would only work in the context of a gam csv command, you want:
$ gam group seniort...@domain.com delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90c...@mail.gmail.com" max_to_delete 3 doit
This method processes the users serially.

Kevin's suggestion is the following:
$ gam group  seniort...@domain.com print users primaryemail > Users.csv
$ gam csv Users.csv gam ~primaryEmail delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90c...@mail.gmail.com" max_to_delete 3 doit
One-liner equivalent:
$ gam group seniort...@domain.com print users primaryemail | gam csv - gam ~primaryEmail delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90c...@mail.gmail.com" max_to_delete 3 doit

These methods process the users in parallel thus will execute faster. For small groups, the first method is simpler to input and the speed shouldn't matter. 

Ross
On Jun 5, 2018, at 10:20 PM, 'Deidre Hugo' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

Ross, you are an absolute genius. Thank you. 

On that note - I ran the first command just to see if it'll work. 

It, of course, checks the entire domain. 

If the email was sent to only our Senior Teachers using the group seniort...@domain.com, will it work if I change the command to:

gam group ~groupemail delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90c...@mail.gmail.com"

Thank you! 



On Tuesday, 5 June 2018 15:30:47 UTC+3, Ross Scroggs wrote:
Deidre,

Internal name: rfc822msgid
Human name: Message-ID

They refer to the same data.

On Jun 5, 2018, at 3:07 AM, 'Deidre Hugo' via GAM for G Suite <google-ap...@googlegroups.com> wrote:

Or am I just being blonde and have to add it manually ;-)

e.g. 

gam all users  delete messages query "rfc822msgid:CAO+oH4+5JFWgSpqyCtJr=onyXkv85j1x2O55ajCW90cAmGZAWw@mail.gmail.com"


On Sunday, 11 December 2016 21:45:40 UTC+3, Ross Scroggs wrote:
But wait, there's more. You have to confirm deleting the messages.

This will show you what's going to happen but won't actually perform the delete.

gam all users  delete messages query "rfc822msgid:string-of-letters...@domain.com"

Adding the doit argument confirms that you know what you're doing.

gam all users  delete messages query "rfc822msgid:string-of-letters...@domain.com" doit

Ross

On Dec 10, 2016, at 5:51 PM, Mi0Tx <miro...@gmail.com> wrote:

Is there a way to recall an email using GAM? If for example a user sent out an email within the organization by mistake..


Thanks!!

--
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-manager+unsub...@googlegroups.com.

·         D I S C L A I M E R
The information transmitted is intended only for the person or organisation to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or organisation other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer.
This email and its contents have been scanned for viruses, but the scanner may not be able to detect or repair all viruses and variants. Please be aware that there is a risk involved whenever downloading email attachments to your computer or sending email attachments to others. Kuwait English School and its software providers accept no liability for loss or damage incurred as a result of downloading email attachments.

--
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-manager+unsub...@googlegroups.com.

·         D I S C L A I M E R
The information transmitted is intended only for the person or organisation to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or organisation other than the intended recipient is prohibited. If you receive this in error, please contact the sender and delete the material from any computer.
This email and its contents have been scanned for viruses, but the scanner may not be able to detect or repair all viruses and variants. Please be aware that there is a risk involved whenever downloading email attachments to your computer or sending email attachments to others. Kuwait English School and its software providers accept no liability for loss or damage incurred as a result of downloading email attachments.

--
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-manager+unsub...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages