KartikTalwar/gmail.js — pull request #91 by atestu (2014-10-16 19:03:05+00:00)
Title: jQuery parsing failed for some emails

I haven't found the exact reason why but jQuery definitely fails to parse the content of some emails, for instance this content:

```
"This is a receipt for your latest DigitalOcean payment. Nothing is due at this time.

-----------------------------------------------------

DigitalOcean Receipt - 2014-10-01 20:01:30 UTC

Amount: $5.00

DigitalOcean

101 Avenue of the Americas, 11th Floor

New York, NY 10013

-----------------------------------------------------

Did you know that you can earn a $25 account credit for each friend you refer to DigitalOcean? Just visit your referral program page to spread the word: https://cloud.digitalocean.com/settings/referrals

We appreciate your business!

Happy Coding,

DigitalOcean

"
```

The problem was that it just made everything failed. I've added a try/catch to fallback to the raw content of the email if jQuery fails.