Forward Message by ID

297 views
Skip to first unread message

Scott Ezell

unread,
Oct 31, 2022, 10:18:50 AM10/31/22
to GAM for Google Workspace
I know it's possible to use the message ID to print and delete an email. Is it possible to forward or send a single email to another user using the message ID?

Ross Scroggs

unread,
Oct 31, 2022, 10:33:59 AM10/31/22
to google-ap...@googlegroups.com
Scott,

Not in any obvious way that I see.

Ross

On Mon, Oct 31, 2022 at 7:18 AM Scott Ezell <scott...@lcschools.org> wrote:
I know it's possible to use the message ID to print and delete an email. Is it possible to forward or send a single email to another user using the message ID?

--
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/bbce31af-e17e-47db-9cc7-1e3890271dban%40googlegroups.com.


--

Scott Ezell

unread,
Oct 31, 2022, 10:35:22 AM10/31/22
to google-ap...@googlegroups.com
Thanks Ross.

 

Scott Ezell

Network Specialist

Lauderdale Co Schools 

E: scott...@lcschools.org  

O: 256-760-1307

www.lcschools.org



You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/ykfVHgpPOTY/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJkvRS96-qKCoKx2aPQfj%2BadRHnyksMqo%3D0_-axg%2Bg3Q3-qT2A%40mail.gmail.com.

James SEYMOUR

unread,
Oct 31, 2022, 7:43:37 PM10/31/22
to GAM for Google Workspace
Hey Scott,

Not sure if this is of any use as it is not a perfect solution. Using ...

gam user <Your Email Address> print messages query "subject:\"<Subject of Email>\"" showbody todrive

... will create a Google Sheet with the details of the message (threads). Then using ... 

gam csv gsheet <Your Email Address> <File ID> <Sheet Name> gam sendemail to <Recipient Email> from <Domain Sender Email> subject "~Subject" message "~Body"

... will send the email(s) to the Recipient, pulling the message details from the Google Sheet. You could also achieve this using CVS if preferred.

The drawback of this is that you cannot use the actual sender email as the From address, unless it is in your Domain. If it isn't you will need to substitute this with a domain email. This will also split up the threads into individual emails, so not sure if this is an issue.

Cheers

James

Scott Ezell

unread,
Nov 1, 2022, 9:11:04 AM11/1/22
to google-ap...@googlegroups.com
Thanks for the info. 

My main interest was getting the attachments, which I knew I couldn't see using 'showbody'. Turns out, there's also 'saveattachments'.


 

Scott Ezell

Network Specialist

Lauderdale Co Schools 

E: scott...@lcschools.org  

O: 256-760-1307

www.lcschools.org


Jerudong International School
https://www.jerudonginternationalschool.com
Follow us on:
http://www.facebook.com/jisbruneidarussalam http://www.twitter.com/jisbrunei http://www.instagram.com/jisbrunei https://www.youtube.com/user/JISBrunei https://www.flickr.com/photos/133960569@N03/albums

--
You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/ykfVHgpPOTY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.

Ross Scroggs

unread,
Nov 1, 2022, 7:47:39 PM11/1/22
to google-ap...@googlegroups.com
Scott,


Test and report,

Ross

On Mon, Oct 31, 2022 at 7:18 AM Scott Ezell <scott...@lcschools.org> wrote:
I know it's possible to use the message ID to print and delete an email. Is it possible to forward or send a single email to another user using the message ID?

--
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/bbce31af-e17e-47db-9cc7-1e3890271dban%40googlegroups.com.


--

James SEYMOUR

unread,
Nov 1, 2022, 8:38:32 PM11/1/22
to GAM for Google Workspace
Hi Ross,

Testing this, if I use a query on the subject line, like this;- 
gam user <My Email Address> forward message to <My Email Address> query "subject:\"[GAM] Forward Message by ID\"" doit
... it will forward the most recent email, not the original one in the thread. And not all the messages in the thread.

I can use the ID in a query OK ...
gam user <My Email Address> forward message to <My Email Address> query "rfc822msgid:bbxxxxx...@googlegroups.com" doit
... to forward the original email.

I am not sure if I am reading the command options correct, but I was thinking that I should be able to run ...
gam user <My Email Address> forward message to <My Email Address> ids "rfc822msgid:bbxxxxx...@googlegroups.com" doit
... and this should forward that message ID. But I get error "ERROR: 400: invalid - Invalid id value". Have I mis-understood the command options?

Cheers

James

Scott Ezell

unread,
Nov 2, 2022, 10:25:08 AM11/2/22
to GAM for Google Workspace
The first test I done, it said the message was forwarded, but never showed up in the other user's inbox. I tried it a couple more times, and checked the email log, and it never showed up there. BUT, they show up in my Sent messages. Odd.

But I then tried another message, and it went through correctly. I don't know what it was about that first one. I tried one from another user back to me, and that one worked correctly too.

The first one was the last message of a thread, the other two were single messages.


James SEYMOUR

unread,
Nov 3, 2022, 4:28:21 AM11/3/22
to google-ap...@googlegroups.com
Hi Scott,

Ross was working on this today and made a couple of bug fixes, you may want to update to 6.28.02 and check to see if this fixes the issue.

If not, it may be helpful to post the command you were using.

Regards


James Seymour
Head of Systems and Communication
[t] +673.24.11.000  Ext 1203
[Time Zone] GMT +8 Hours


Scott Ezell

unread,
Nov 3, 2022, 10:02:41 AM11/3/22
to google-ap...@googlegroups.com
We had talked yesterday, and he saw that the regex wasn't clearing the To: completely, and was sending the email to last one in the field, not the one I was specifying.

I've been testing this version. Looks like that issue is fixed. 

I also tried forwarding a thread (this thread), and that worked too. Pretty cool that it's still threaded on the receiver's end too. The only oddity, which I'm not sure could be fixed, is that every message in the thread appears to be from the account it was forwarded from. If the email in the thread was sent from me originally, then it has my name on it. If it was sent by one of you guys, then it has my email address on it, instead of my name. Not a big deal, since you guys have signatures.


 

Scott Ezell

Network Specialist

Lauderdale Co Schools 

E: scott...@lcschools.org  

O: 256-760-1307

www.lcschools.org


You received this message because you are subscribed to a topic in the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/ykfVHgpPOTY/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAAwSNAZ7KYe7LtYewTQZh8kAoq7nadO36i-ORS5qGqjvwqN8Tw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages