We have a system in place where users send emails with attachments to a specific email. The attachment is processed, and then I want it to forward that email to me to alert me that it's been processed - however I do not want it duplicating the attachment in the forwarded email. Is this possible?I've already tried setting the attachments property to null in the options, as well as just sending a new email with the same subject (which unfortunately isn't grouped into the same thread, so that wont work for me).
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/98ddeae6-92b6-44f1-921a-49cc840a6b1a%40googlegroups.com.
You'll want to make sure to use the ThreadID of the original emailwhen you create the stripped email. Just copy subject and body AND the ThreadID (but not the attachments)..
On Wed, Mar 4, 2020 at 9:48 AM 'Michael Miller' via Google Apps Script Community <google-apps-sc...@googlegroups.com> wrote:
--
We have a system in place where users send emails with attachments to a specific email. The attachment is processed, and then I want it to forward that email to me to alert me that it's been processed - however I do not want it duplicating the attachment in the forwarded email. Is this possible?I've already tried setting the attachments property to null in the options, as well as just sending a new email with the same subject (which unfortunately isn't grouped into the same thread, so that wont work for me).
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
Thank you, I think this is what I was missing. The link you included seems to be for Gmail API. By chance, do you know if it's possible to set the ThreadId in Google Apps Script? I'm using the GmailApp.sendEmail method, which doesnt seem to support it.
https://developers.google.com/apps-script/reference/gmail/gmail-app#sendEmail(String,String,String,Object)
On Wednesday, March 4, 2020 at 2:06:38 PM UTC-6, Jean-Luc Vanhulst wrote:
You'll want to make sure to use the ThreadID of the original emailwhen you create the stripped email. Just copy subject and body AND the ThreadID (but not the attachments)..
On Wed, Mar 4, 2020 at 9:48 AM 'Michael Miller' via Google Apps Script Community <google-apps-sc...@googlegroups.com> wrote:
--
We have a system in place where users send emails with attachments to a specific email. The attachment is processed, and then I want it to forward that email to me to alert me that it's been processed - however I do not want it duplicating the attachment in the forwarded email. Is this possible?I've already tried setting the attachments property to null in the options, as well as just sending a new email with the same subject (which unfortunately isn't grouped into the same thread, so that wont work for me).
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/98ddeae6-92b6-44f1-921a-49cc840a6b1a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/78c156d2-6881-43bb-8b6f-c6ace0931eae%40googlegroups.com.
On Thu, Mar 5, 2020 at 11:46 AM 'Michael Miller' via Google Apps Script Community <google-apps-sc...@googlegroups.com> wrote:
Thank you, I think this is what I was missing. The link you included seems to be for Gmail API. By chance, do you know if it's possible to set the ThreadId in Google Apps Script? I'm using the GmailApp.sendEmail method, which doesnt seem to support it.
https://developers.google.com/apps-script/reference/gmail/gmail-app#sendEmail(String,String,String,Object)
On Wednesday, March 4, 2020 at 2:06:38 PM UTC-6, Jean-Luc Vanhulst wrote:
You'll want to make sure to use the ThreadID of the original emailwhen you create the stripped email. Just copy subject and body AND the ThreadID (but not the attachments)..
On Wed, Mar 4, 2020 at 9:48 AM 'Michael Miller' via Google Apps Script Community <google-apps-sc...@googlegroups.com> wrote:
--
We have a system in place where users send emails with attachments to a specific email. The attachment is processed, and then I want it to forward that email to me to alert me that it's been processed - however I do not want it duplicating the attachment in the forwarded email. Is this possible?I've already tried setting the attachments property to null in the options, as well as just sending a new email with the same subject (which unfortunately isn't grouped into the same thread, so that wont work for me).
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/98ddeae6-92b6-44f1-921a-49cc840a6b1a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
I tried that, but I cant seem to remove the To address. If possible, I would like to forward the email to me and not include the original sender in the email. Maybe that's not possible, and I just need to settle with including them in the response..
On Thursday, March 5, 2020 at 10:52:13 AM UTC-6, Jean-Luc Vanhulst wrote:
On Thu, Mar 5, 2020 at 11:46 AM 'Michael Miller' via Google Apps Script Community <google-apps-sc...@googlegroups.com> wrote:
Thank you, I think this is what I was missing. The link you included seems to be for Gmail API. By chance, do you know if it's possible to set the ThreadId in Google Apps Script? I'm using the GmailApp.sendEmail method, which doesnt seem to support it.
https://developers.google.com/apps-script/reference/gmail/gmail-app#sendEmail(String,String,String,Object)
On Wednesday, March 4, 2020 at 2:06:38 PM UTC-6, Jean-Luc Vanhulst wrote:
You'll want to make sure to use the ThreadID of the original emailwhen you create the stripped email. Just copy subject and body AND the ThreadID (but not the attachments)..
On Wed, Mar 4, 2020 at 9:48 AM 'Michael Miller' via Google Apps Script Community <google-apps-sc...@googlegroups.com> wrote:
--
We have a system in place where users send emails with attachments to a specific email. The attachment is processed, and then I want it to forward that email to me to alert me that it's been processed - however I do not want it duplicating the attachment in the forwarded email. Is this possible?I've already tried setting the attachments property to null in the options, as well as just sending a new email with the same subject (which unfortunately isn't grouped into the same thread, so that wont work for me).
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/98ddeae6-92b6-44f1-921a-49cc840a6b1a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/78c156d2-6881-43bb-8b6f-c6ace0931eae%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/24f4a8d7-a763-443e-b8df-2dcdc697d4c5%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/98ddeae6-92b6-44f1-921a-49cc840a6b1a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/78c156d2-6881-43bb-8b6f-c6ace0931eae%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/98ddeae6-92b6-44f1-921a-49cc840a6b1a%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/78c156d2-6881-43bb-8b6f-c6ace0931eae%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/24f4a8d7-a763-443e-b8df-2dcdc697d4c5%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/a29586e3-83d9-40f2-9b32-4c69ac7e71f9%40googlegroups.com.
Best Regards,
Michael Miller
Advantage Cable Services, Inc.
P Go Green! Print this email only when necessary. Thank you for helping to be environmentally responsible.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAKTLZ53zicdbRKwKL4E0%3DyPhj_o5buP%2BKNzb2Zsv2OnJ2BfCtg%40mail.gmail.com.
/**
*
*/
function run() {
forwardWithoutAttachments_('subject:Indian language support');
}
/**
* Forward without attachments
* @param {string} query
* @return {GoogleAppsScript.GmailApp.GmailMessage}
*/
function forwardWithoutAttachments_(query) {
/**
* @type {GoogleAppsScript.Gmail.GmailMessage}
*/
const message = GmailApp.search(query)
.reduce((p, c) => {
p = p.concat(c.getMessages());
console.log(c.getFirstMessageSubject());
return p;
}, [])
.find(msg => msg.getAttachments().length);
return message.forward('alexanderivanov...@gmail.com', { attachments: [] });
}
Best Regards,
Michael Miller
Advantage Cable Services, Inc.
P Go Green! Print this email only when necessary. Thank you for helping to be environmentally responsible.
It's strange because an empty array as the attachments works great for me
/**
*
*/
function run() {
forwardWithoutAttachments_('subject:Indian language support');
}
/**
* Forward without attachments
* @param {string} query
* @return {GoogleAppsScript.GmailApp.GmailMessage}
*/
function forwardWithoutAttachments_(query) {
/**
* @type {GoogleAppsScript.Gmail.GmailMessage}
*/
const message = GmailApp.search(query)
.reduce((p, c) => {
p = p.concat(c.getMessages());
console.log(c.getFirstMessageSubject());
return p;
}, [])
.find(msg => msg.getAttachments().length);
Best, Alex
On Wednesday, March 4, 2020 at 5:48:41 PM UTC+3, Michael Miller wrote:
We have a system in place where users send emails with attachments to a specific email. The attachment is processed, and then I want it to forward that email to me to alert me that it's been processed - however I do not want it duplicating the attachment in the forwarded email. Is this possible?I've already tried setting the attachments property to null in the options, as well as just sending a new email with the same subject (which unfortunately isn't grouped into the same thread, so that wont work for me).
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/0d52f85d-0de0-49dc-8ac6-39b48af3e67d%40googlegroups.com.
Best, Alex
On Wednesday, March 4, 2020 at 5:48:41 PM UTC+3, Michael Miller wrote:
We have a system in place where users send emails with attachments to a specific email. The attachment is processed, and then I want it to forward that email to me to alert me that it's been processed - however I do not want it duplicating the attachment in the forwarded email. Is this possible?I've already tried setting the attachments property to null in the options, as well as just sending a new email with the same subject (which unfortunately isn't grouped into the same thread, so that wont work for me).
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-community+unsub...@googlegroups.com.
Best Regards,
Michael Miller
Advantage Cable Services, Inc.
P Go Green! Print this email only when necessary. Thank you for helping to be environmentally responsible.
Best, Alex
On Wednesday, March 4, 2020 at 5:48:41 PM UTC+3, Michael Miller wrote:
We have a system in place where users send emails with attachments to a specific email. The attachment is processed, and then I want it to forward that email to me to alert me that it's been processed - however I do not want it duplicating the attachment in the forwarded email. Is this possible?I've already tried setting the attachments property to null in the options, as well as just sending a new email with the same subject (which unfortunately isn't grouped into the same thread, so that wont work for me).
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/0d52f85d-0de0-49dc-8ac6-39b48af3e67d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/8d6d8c3d-6f5a-4ef0-8756-6387d2907f3d%40googlegroups.com.