Obsolete
Status Update
Comments
gk...@google.com <gk...@google.com> #3
Thanks for your request. We will investigate this issue and see if we can implement the behavior you've requested.
db...@gmail.com <db...@gmail.com> #4
As an additional alternative, it should be possible to specify a label in the options for GmailApp.sendEmail().
A work-around is proposed in StackOverflow:http://stackoverflow.com/a/18727687/1677912
A work-around is proposed in StackOverflow:
le...@leciak.pl <le...@leciak.pl> #5
Are there any news on adding the ability to archive and add a label to specific emails (not threads)? From a corporate shared mailbox perspective auto threading emails by subject is a serious issue (eg. we recive two emails from the same person with same subject but with different description).
Since it's available in pure mailbox view is that such a big effort to make it available also in Google Script?
Since it's available in pure mailbox view is that such a big effort to make it available also in Google Script?
[Deleted User] <[Deleted User]> #6
Looking forward to having this implemented. As has been mentioned automatic threading based on subject is a big no-no for our enterprise. We get automated reports and other documents sent to us by customers and suppliers and they are lumped together in threads making it very difficult for me to let Apps Script process them automatically since labels (i.e. outlook folders) have to be applied to entire threads (even though the messages in these threads often need to be treated differently).
ph...@gmail.com <ph...@gmail.com> #7
Please add this function (and message.getlabel too) we need to scan message not only the thread.
bu...@spprep.org <bu...@spprep.org> #8
Will there be any progress on this issue? Threading is great for humans, but if you are scripting, accessing and manipulating individual messages is MUCH more important, especially if it can be done from the normal user interface. Anything you can do to the thread you should be able to do at the message level.
me...@gmail.com <me...@gmail.com> #10
Activate advanced google services/gmail api and use the gmail api functions.
I have resolved the same issue :)
I have resolved the same issue :)
ml...@ridgefieldps.net <ml...@ridgefieldps.net> #11
Thanks!
Description
Currently the GmailApp api only allows to add/change labels to GmailThread but not to GmailMessage.
Note that google does have a way to tag single messages outside of GAS: in gmail set the option to not group messages, and it will let you put different labels to messages with the same subject.
However, if you use the GmailApp api on an account set up that way, in GAS it still gives you the threaded version, thus making it impossible to label a single message.
Notes:
Why is this a problem:
Currently we have code that processes messages using GmailApp. When the message is processed, it gets marked deleted. However when I later get the inbox messages again, the deleted messages that match some new message thread will appear again when I get the thread´s messages.
This causes a performance issue because over time the messages accumulate and GAS does not provide a way to get the thread messages filtered, so the code is forced to loop all the messages which will include the deleted ones.