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

Some emails show up as (no subject) on Windows #21

Closed
billytcl opened this issue Oct 4, 2017 · 10 comments · May be fixed by tcotidiane33/Mailspring#16
Closed

Some emails show up as (no subject) on Windows #21

billytcl opened this issue Oct 4, 2017 · 10 comments · May be fixed by tcotidiane33/Mailspring#16

Comments

@billytcl
Copy link

billytcl commented Oct 4, 2017

Are there any related issues?

...

What operating system are you using?

Windows 10

What version of Mailspring are you using?

v1.0.0-20839f9b

--

Bug?

Is the issue related to a specific email provider (Gmail, Exchange, etc.)?

Gmail

Is the issue reproducible with a particular attachment, message, signature, etc?

Some email threads show up as (No Subject), even though gmail clearly shows them having a subject line. Body of email is OK. I can't figure out the common theme. See bottom of post for screenshots.

--

Feature Request?

Does this feature exist in another mail client or tool you use?

Shows correctly in Gmail

Mailspring:
image
image

Gmail:
image
image

@fenrisbear
Copy link

fenrisbear commented Oct 4, 2017

Applies to me as well (windows)

@bengotow
Copy link
Collaborator

bengotow commented Oct 4, 2017

Hey folks—wow, this is an interesting one. Does it happen to an entire block of messages / threads? Will see if I can reproduce.

@bengotow bengotow added the bug label Oct 4, 2017
@bengotow
Copy link
Collaborator

bengotow commented Oct 4, 2017

Hey folks—could you open the developer console in Mailspring (Menu > Developer > Toggle Developer Tools), select one of the threads in the thread list with (No Subject) and then run this command on the JavaScript console and paste the result here?

require('electron').clipboard.writeText(JSON.stringify({thread: $m.FocusedContentStore.focused('thread'), messagesSubjects: $m.MessageStore.items().map(m => m.subject)}, null, 2))

This will copy the thread object to the clipboard, as well as the subjects of each message on the thread. I'm curious to see whether all of the messages have no subject, or if it's just the thread that was created to hold the messages.

@fenrisbear
Copy link

  "thread": {
    "id": "t:Traw4tyCUePc25FK6eGwJqJ4zxtohHiLbcZza7y7v",
    "aid": "fd698de4",
    "metadata": [],
    "subject": "",
    "unread": false,
    "starred": false,
    "v": 6,
    "categories": [
      {
        "id": "g4zAKFYqYLX793sXUEZoLxXXuWCXdFPgAAwQN3xxi",
        "aid": "fd698de4",
        "role": "all",
        "path": "[Gmail]/All Mail",
        "__cls": "Folder"
      },
      {
        "id": "ofanp2CQyg6mSCdCNNxjYUBpw6bc2EBYoKBSo2q8o",
        "aid": "fd698de4",
        "role": "inbox",
        "path": "INBOX",
        "__cls": "Label"
      }
    ],
    "folders": [
      {
        "id": "g4zAKFYqYLX793sXUEZoLxXXuWCXdFPgAAwQN3xxi",
        "aid": "fd698de4",
        "role": "all",
        "path": "[Gmail]/All Mail",
        "__cls": "Folder"
      }
    ],
    "labels": [
      {
        "id": "ofanp2CQyg6mSCdCNNxjYUBpw6bc2EBYoKBSo2q8o",
        "aid": "fd698de4",
        "role": "inbox",
        "path": "INBOX",
        "__cls": "Label"
      }
    ],
    "participants": [
      {
        "aid": "fd698de4",
        "email": "*************",
        "thirdPartyData": {},
        "__cls": "Contact"
      },
      {
        "aid": "fd698de4",
        "name": "Spotify",
        "email": "hello@spotify.com",
        "thirdPartyData": {},
        "__cls": "Contact"
      }
    ],
    "attachmentCount": 0,
    "lmrt": 1504888500,
    "lmst": null,
    "inAllMail": true,
    "__cls": "Thread"
  },
  "messagesSubjects": [
    ""
  ]
}

@billytcl
Copy link
Author

billytcl commented Oct 4, 2017 via email

@bengotow
Copy link
Collaborator

bengotow commented Oct 4, 2017

Hey folks—thanks for the debug info! It looks like both the messages and the threads are missing subjects which helps narrow this down a bit.

Is there any chance you use Apple Mail, or a mail client that supports "redirecting" or "bouncing" messages? If so, it'd be great if you could send a copy of one of these emails (maybe one that isn't sensitive) to ben@foundry376.com. Unfortunately, it needs to be a redirect / bounce — typically forwarding a message changes its contents. In Apple Mail you can do it like this:

image

I'll add some additional logging to the next version of Mailspring so we can track this down better.

@bengotow
Copy link
Collaborator

bengotow commented Oct 4, 2017

Hey folks! It looks like I've been able to reproduce this thanks to #15. It seems this only happens on Windows and not on Mac OS X, but I have several emails where it's happening in my own inbox. Stay tuned. (Merging in #15)

@billytcl
Copy link
Author

billytcl commented Oct 4, 2017

Just wanted to say thanks for being so responsive to the bugs! I don't think I've ever seen a faster followup.

@Foundry376 Foundry376 changed the title Some emails show up as (no subject) Some emails show up as (no subject) on Windows Oct 5, 2017
@bengotow
Copy link
Collaborator

bengotow commented Oct 6, 2017

Hey—thanks @billytcl! Version 1.0.2 has been released and should fix this issue. Since your mailbox has already been synced, you'll need to go to Preferences > General and click the "Reset Email Cache" button at the bottom to force Mailspring to refetch the messages it couldn't parse before.

@kometchtech
Copy link
Contributor

I deleted cache and confirmed that I confirmed that there was no problem with the Japanese display of the subject.

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

Successfully merging a pull request may close this issue.

4 participants