-
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<HttpError 400 when requesting https://www.googleapis.com/gmail/v1/users/julian.klode%40gmail.com/messages/15c69db4486d0718/modify?alt=json returned "Can only add on e of: INBOX, SPAM, TRASH"> #26
Comments
The gmail API fails with an error otherwise. fixes gauteh#26
See pull request #27 |
Seems like the best approach, do you have any reference for the API behavior? Also, I guess we should print a warning. The most defensive approach would be to drop either TRASH or SPAM labels, but I don't think it is the most frequently desired behavior. |
I don't think there's any reference, only the error message (and well it makes sense). Could make the handling dependant on the excluded tags in the notmuch config. If spam and trash are excluded, do what I did; otherwise apply inbox again (that would match the visible local behaviour). |
Hm ok, seems too complicated. I guess we should just mirror gmails behavior like you do now. But:
|
The gmail API fails with an error otherwise. fixes gauteh#26
Pull request updated. |
Thanks, for some reason I never receive notifications from this issue. |
If I locally tag a mail as both +inbox and +trash (which makes no sense, really), the sync fails. gmailieer should instead just drop the inbox tag and add the trash tag I guess.
The text was updated successfully, but these errors were encountered: