squirt-reader-N1-plugin icon indicating copy to clipboard operation
squirt-reader-N1-plugin copied to clipboard

Email being incorrectly parsed

Open malonehedges opened this issue 8 years ago • 6 comments

Multiple emails have just had the email signature parsed, skipping the entire body of the message.

malonehedges avatar Apr 06 '16 00:04 malonehedges

I have the same issue. A lot of emails only get the signature.

EveraertJan avatar Apr 22 '16 08:04 EveraertJan

It does not work for me

felipemillan avatar May 20 '16 06:05 felipemillan

Hi there @felipemillan there was an issue with the React API I was using to render the words. I updated the code so it's compatable now! And bonus, you can set thresholding.

kwyn avatar May 23 '16 03:05 kwyn

@HarleyKwyn Thank you so much for the fix! 👍

malonehedges avatar May 23 '16 03:05 malonehedges

@malonehedges This is a common issue, I'm using a readability parse that's designed for web not e-mail. It's quite a project in and of itself to design a parser that works for all e-mails.

For those of you who don't know, the nylas client renders even plain text e-mails into html so that they're universal. This is a double edged sword and makes it so it can be difficult to find the right part of the e-mail programmatically.

Some thoughts I had on this were to build a fall back if standard parsing results is something oddly short or non-existent that just strips all html tags and gives you the e-mail in serialized form.

Thought I don't have time for this at the moment. Hopefully I'll get another weekend in the future to add those nice to haves :)

kwyn avatar May 23 '16 03:05 kwyn

I think I may have figured out how to do this intelligently now based on the word count plugin I just built. Will probably give it a shot over memorial day weekend. Keep y'all posted.

kwyn avatar May 24 '16 16:05 kwyn