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

Fix the message list bug #216

Merged
merged 1 commit into from
Oct 10, 2021
Merged

Fix the message list bug #216

merged 1 commit into from
Oct 10, 2021

Conversation

igbanam
Copy link
Contributor

@igbanam igbanam commented Oct 10, 2021

With the current version of Himalaya, the Vim front breaks because it
can't find headers.subject in the JSON output from Himalaya. The JSON
output today from Himalaya representing a message looks like so

    {
      "uid": 12345,
      "flags": [],
      "subject": "Subject",
      "subject_len": 7,
      "sender": "Sender",
      "sender_len": 6,
      "date": "2020-12-11 06:38:19"
    },

And the JSON for a message is structured like so

{
  "response": {
    "content": "Some email with attachments — strings attached.\r\n",
    "hasAttachment": 1
  }
}

This reverts some of the changes in b9a9d0e, but not all of them.

Resolves #208

With the current version of Himalaya, the Vim front breaks because it
can't find headers.subject in the JSON output from Himalaya. The JSON
output today from Himalaya representing a message looks like so

```json
    {
      "uid": 12345,
      "flags": [],
      "subject": "Subject",
      "subject_len": 7,
      "sender": "Sender",
      "sender_len": 6,
      "date": "2020-12-11 06:38:19"
    },
```

This reverts some of the changes in b9a9d0e, but not all of them.
@soywod soywod merged commit 794860b into pimalaya:master Oct 10, 2021
@soywod
Copy link
Member

soywod commented Oct 10, 2021

Thanks for your help 🎉

Since the message refactor, many details broke (see #199 (comment)), the JSON API is one of them. The v0.5.0 should come very soon with big structural changes and bug fixes.

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

Successfully merging this pull request may close these issues.

Vim(let):E716: Key not present in Dictionary: "headers.subject"
2 participants