Forwarding an email to dropbox BCC'd with no To fails. I would
expect it to pick the the "From: John Doe j@doe.com" section
and use that as the sent_to:
Dropbox: connecting to secure.emailsrvr.com...
Dropbox: logged in to secure.emailsrvr.com, new messages...
Dropbox: fetching message...
Dropbox: error processing email: PGError: ERROR: null value in column "sent_to" violates not-null constraint
: INSERT INTO "emails" ("mediator_id", "cc", "updated_at", "imap_message_id", "sent_to", "bcc", "body", "deleted_at", "sent_at", "subject", "mediator_type", "sent_from", "header", "user_id", "received_at", "created_at", "state") VALUES(573, NULL, '2010-05-12 04:21:12.091650', E'<20100511212057.0834ca95@acheron.home.theadmin.org>', NULL, NULL, E'
Begin forwarded message:
Date: Tue, 11 May 2010 18:07:01 -0400
From: John Doe <j@doe.com>
To: Eric Davis <a@e.com>
Subject: Re: Checking in
', NULL, '2010-05-12 04:20:57.000000', E'Fw: Checking in', E'Contact', E'e@a.com', NULL, 1, '2010-05-12 04:20:57.000000', '2010-05-12 04:21:12.091650', E'Expanded') RETURNING "id", From: e@.com, Subject: Fw: Checking in
Dropbox: messages processed: 1, archived: 0, discarded: 1.