Skip to content
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

Gmail threads vs himalaya emails #569

Open
echo-bravo-yahoo opened this issue Mar 17, 2025 · 0 comments
Open

Gmail threads vs himalaya emails #569

echo-bravo-yahoo opened this issue Mar 17, 2025 · 0 comments

Comments

@echo-bravo-yahoo
Copy link

Hey!

I'm trying to write a query for Gmail emails that are unseen and have a label, e.g., himalaya envelope list -f "MyCustomLabel" "not flag Seen". This works pretty well for most situations, but I've found one situation where Gmail's thread & label concepts seem to differ a lot from himalaya's.

Consider this situation:

  • A first email, read, with the label MyCustomLabel but not the label Inbox.
  • A second email, in a thread with the first email (the sender sent to you twice, replying to the first), unread, with the label MyCustomLabel and the label Inbox.

A query for himalaya envelope list -f "MyCustomLabel" "not flag Seen" returns neither, because the first is read, and the second is in the Inbox folder (despite having the MyCustomLabel label in Gmail). A query for himalaya envelope list -f "Inbox" "not flag Seen and flag MyCustomLabel" returns neither because the first is read, and the second is not labelled with MyCustomLabel by himalaya even though it is in Gmail.

Here's an example of the second, unread email that's currently in the Inbox folder but has the MyCustomLabel label:

> himalaya envelope list -f "Inbox" -s 200 -o json
  {
    "id": "87595",
    "flags": [],
    "subject": "Re: Sr SWE, Web Apps [Remote] @ Machinify, Machine Learning for healthcare - Worth a chat!",
    "from": {
      "name": "REDACTED",
      "addr": "REDACTED"
    },
    "to": {
      "name": null,
      "addr": "REDACTED"
    },
    "date": "2025-03-13 20:50-05:00",
    "has_attachment": false
  }

And here's a screenshot of the email thread from the Gmail interface (it has 3 emails in the thread, but the 3rd is functionally the same as the 2nd - unread, labelled, in inbox):
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant