rake task IMAP email import fails with emails without From: header
If the inbox contains an email without the From: header, currently this will cause the rake script to throw, and no more emails are processed.
I have this situation with an account on an Exchange server, and we have a spam filter on the server which sends out digest emails regarding spam. These emails do not have a from field. I am not sure if it is malformed, but it shouldnt affect the operation of the imap import operation.
I will attach a fix to silently ignore these emails.