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 · 1 comment
Open

Gmail threads vs himalaya emails #569

echo-bravo-yahoo opened this issue Mar 17, 2025 · 1 comment
Labels
bug Something isn't working

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

@soywod
Copy link
Member

soywod commented Mar 24, 2025

I see what you mean. It's part of a bigger problem, where every action is tieded up to a folder or mailbox. IMAP works this way be design. This makes the thread feature bearely usable, because messages are usually in different folders. Adding a folder filter inside the search query could fix the issue, but it challenges the whole structure. I definitely need to find a better solution to that problem. Thank you for initiating the point!

@soywod soywod added the bug Something isn't working label Mar 24, 2025
@soywod soywod moved this to Todo in Pimalaya Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants