{"action":"created","issue":{"url":"https://api.github.com/repos/mastahyeti/OctoGAS/issues/10","labels_url":"https://api.github.com/repos/mastahyeti/OctoGAS/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/mastahyeti/OctoGAS/issues/10/comments","events_url":"https://api.github.com/repos/mastahyeti/OctoGAS/issues/10/events","html_url":"https://github.com/mastahyeti/OctoGAS/issues/10","id":54026266,"number":10,"title":"Muter bugs","user":{"login":"josh","id":137,"avatar_url":"https://avatars.githubusercontent.com/u/137?v=3","gravatar_id":"","url":"https://api.github.com/users/josh","html_url":"https://github.com/josh","followers_url":"https://api.github.com/users/josh/followers","following_url":"https://api.github.com/users/josh/following{/other_user}","gists_url":"https://api.github.com/users/josh/gists{/gist_id}","starred_url":"https://api.github.com/users/josh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh/subscriptions","organizations_url":"https://api.github.com/users/josh/orgs","repos_url":"https://api.github.com/users/josh/repos","events_url":"https://api.github.com/users/josh/events{/privacy}","received_events_url":"https://api.github.com/users/josh/received_events","type":"User","site_admin":true},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-12T07:15:12Z","updated_at":"2015-03-02T20:06:42Z","closed_at":"2015-01-12T07:15:17Z","body":"Yo @mastahyeti \r\n\r\nhttps://github.com/mastahyeti/OctoGAS/blob/92fd24e6b1462da1fb83d83e3eb1975508167785/src/muter.coffee#L33-L34\r\n\r\nSo I don't actually think `getMessagesForThreads` is some preload caching magic. It actually returns a nested array of the fetched messages for the threads. Here you just calling it and discarding the result. Then you call `thread.getMessages()` again every time later.\r\n\r\nhttps://github.com/mastahyeti/OctoGAS/blob/92fd24e6b1462da1fb83d83e3eb1975508167785/src/muter.coffee#L73-L78\r\n\r\nSecond, I don't think `unmute` works. Mute is a special \"non-user\" label that you would have to remove some how. Unfortunately the current api won't let you get it from `getUserLabelByName`. So theres basically no way to remove it. The same goes with the new \"Social\" and \"Promotions\" labels. Its still all private APIs for now. Definitely check your `label:mute` query. If theres like hundreds of messages, then your script is still trying to process those every run. That could probably be an API limit issue.\r\n\r\nI've started working on my own that uses a magic folder rather than the native mute https://github.com/josh/list-unsubscribe/blob/gas/Code.gs. Just my preference since that works on Mail.app on the iPhone."},"comment":{"url":"https://api.github.com/repos/mastahyeti/OctoGAS/issues/comments/76803415","html_url":"https://github.com/mastahyeti/OctoGAS/issues/10#issuecomment-76803415","issue_url":"https://api.github.com/repos/mastahyeti/OctoGAS/issues/10","id":76803415,"user":{"login":"mastahyeti","id":1144197,"avatar_url":"https://avatars.githubusercontent.com/u/1144197?v=3","gravatar_id":"","url":"https://api.github.com/users/mastahyeti","html_url":"https://github.com/mastahyeti","followers_url":"https://api.github.com/users/mastahyeti/followers","following_url":"https://api.github.com/users/mastahyeti/following{/other_user}","gists_url":"https://api.github.com/users/mastahyeti/gists{/gist_id}","starred_url":"https://api.github.com/users/mastahyeti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mastahyeti/subscriptions","organizations_url":"https://api.github.com/users/mastahyeti/orgs","repos_url":"https://api.github.com/users/mastahyeti/repos","events_url":"https://api.github.com/users/mastahyeti/events{/privacy}","received_events_url":"https://api.github.com/users/mastahyeti/received_events","type":"User","site_admin":true},"created_at":"2015-03-02T20:06:42Z","updated_at":"2015-03-02T20:06:42Z","body":"> Second, I don't think unmute works. Mute is a special \"non-user\" label that you would have to remove some how. Unfortunately the current api won't let you get it from getUserLabelByName. So theres basically no way to remove it. The same goes with the new \"Social\" and \"Promotions\" labels. Its still all private APIs for now. Definitely check your label:mute query. If theres like hundreds of messages, then your script is still trying to process those every run. That could probably be an API limit issue.\r\n\r\nYep. I validated this. I had been getting around this by moving the thread to the archive to unmute it. This no longer works. My new hack to fix this is to move the thread to the inbox and then move it to the archive. We'll see how soon this breaks. That change is in https://github.com/mastahyeti/OctoGAS/pull/11"}}