<font size="2"><font face="arial,helvetica,sans-serif"><div><font size="2"><font face="arial,helvetica,sans-serif">The sort story, I have been attempting to use the Google Migration assistant to migrate emails from one google account to another, about 80,000 emails. </font></font></div>
<div><font size="2"><font face="arial,helvetica,sans-serif">I have two problems.</font></font></div><div><font size="2"><font face="arial,helvetica,sans-serif">1. Many emails that fail to transfer because of errors like "</font></font>Invalid RFC 822 Message: Date header &quot;Mon Feb 05 22:07:16 2007&quot; is invalid." See full error below.</div>
<div><font size="2"><font face="arial,helvetica,sans-serif"> emails that.</font></font></div><div><font size="2"><font face="arial,helvetica,sans-serif">2. I need to delete the emails from the old account that have been transferred.</font></font></div>
<div><font size="2"><font face="arial,helvetica,sans-serif"><br></font></font></div><div><font size="2"><font face="arial,helvetica,sans-serif">And the Two question are:</font></font></div><div><font size="2"><font face="arial,helvetica,sans-serif">1:</font></font></div>
<div>I am able to connect and get an email. But I am not clear how I would check that the header is valid or identify the problem.</div><div><div>grl = imaplib.IMAP4_SSL('<a href="http://imap.gmail.com">imap.gmail.com</a>', 993)</div>
<div>grl.login('<a href="mailto:name@domain.com">name@domain.com</a>', 'password')</div></div><div>grl.fetch(17006, 'uid')</div><div># So now I have an email how do I check the header, I know how to view it but not check it for RFC 822.</div>
<div><br></div><div>2:</div><div>Since I don't know which emails have been transferred I want to delete all the email that have. To be more correct I don't know which ones on the old account, when they are moved to the new account they get the label as transferred. How should I compare emails? The uid is different on each server so I think using the TO: FROM: and DATE: TIME: would work. </div>
<div>How do I compare emails in this way?</div><div>How to I get the TO: FROM: DATE: TIME: from one email to reach for the same email in the other account.</div><div><font size="2"><font face="arial,helvetica,sans-serif"><br>
</font></font></div><div><br></div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial">Sample error from google migration app.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial">2011-08-16T16:47:47.141-06:00  808 E:Network ExchangeMigration!WinHttp::ExecuteHttpRequestIStreamResponse @ 696 (<a href="mailto:gmetanias@glsworld.com"><span style="text-decoration: underline ; color: #2b29ee">gmetanias@domain.com</span></a>)> Response:</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial">Invalid RFC 822 Message: Date header &quot;Mon Feb 05 22:07:16 2007&quot; is invalid.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial">2011-08-16T16:47:47.141-06:00  808 E:Migration ExchangeMigration!EmailUploader::HandleStatus @ 462 (<a href="mailto:gmetanias@glsworld.com"><span style="text-decoration: underline ; color: #2b29ee">gmetanias@domain.com</span></a>)> Permanent Message Failure, skipping the message!.</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial">2011-08-16T16:47:47.328-06:00  808 E:Migration ExchangeMigration!IMAPMessageWrapper::GetMessageSentTime @ 154 (<a href="mailto:gmetanias@glsworld.com"><span style="text-decoration: underline ; color: #2b29ee">gmetanias@domain.com</span></a>)> Failed with 0x80004005, last successful line = 151.</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial">2011-08-16T16:47:47.328-06:00  808 E:Migration ExchangeMigration!IMAPMessageWrapper::GetMessageReceivedTime @ 170 (<a href="mailto:gmetanias@glsworld.com"><span style="text-decoration: underline ; color: #2b29ee">gmetanias@domain.com</span></a>)> Failed with 0x80004001, last successful line = 168.</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial">2011-08-16T16:47:47.328-06:00  808 E:Migration ExchangeMigration!GetMessageDescription @ 198 (<a href="mailto:gmetanias@glsworld.com"><span style="text-decoration: underline ; color: #2b29ee">gmetanias@domain.com</span></a>)> Sent: 2011-08-16T22:47:47.000Z. Received: 2011-08-16T22:47:47.000Z. Size: 196114. Subject RE: ppt templates.</p>
</div><div><br></div></font></font><br>-- <br>Thanks<div>Vincent Davis</div><div>720-301-3003<span></span><span></span></div><br>