I have run into a problem where the Email Migration API (I'm using the .Net library) is truncating all of my email attachments, rendering them corrupt. The mail messages are migrated without error but when I download the attachment from the newly created message it is truncated. This seems to be occurring on all attachments and the POST message (attached) seems to look fine when sent to Google.
For example, the following calendar invite attachment is truncated at "NUM-GUESTS=" Original: BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REPLY BEGIN:VEVENT DTSTART:20120112T150000Z DTEND:20120112T190000Z DTSTAMP:20120111T181648Z ORGANIZER;[email protected]:mailto:[email protected] UID:[email protected] ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=Test U ser2;X-NUM-GUESTS=0:mailto:[email protected] CREATED:20120111T035104Z DESCRIPTION: LAST-MODIFIED:20120111T181648Z LOCATION:Plaza 743 SEQUENCE:0 STATUS:CONFIRMED SUMMARY:XXX Email Demo TRANSP:OPAQUE CATEGORIES:http://schemas.google.com/g/2005#event END:VEVENT END:VCALENDAR Attachment from migrated mail message: BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REPLY BEGIN:VEVENT DTSTART:20120112T150000Z DTEND:20120112T190000Z DTSTAMP:20120111T181648Z ORGANIZER;[email protected]:mailto:[email protected] UID:[email protected] ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=Test U ser2;X-NUM-GUESTS= -- You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/WEKtgFZS-o0J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.
POST https://apps-apis.google.com/a/feeds/migration/2.0/xxx-xxx-xxx.com/test.user2/mail/batch HTTP/1.1 Content-Type: application/atom+xml; charset=UTF-8 User-Agent: G-Google-Clone/GDataGAuthRequestFactory-CS-Version=1.8.0.0 Authorization: GoogleLogin auth=DQAAAEoBAADbYw1P66NHaw9KoAc7cf_HRx2G9vegRXSudEU6Gp7ydTG5SoLRdvZjVngplWVAWjyHsapUALjesT6-hGoc0KYiBYLIZsKcsCSipMWvRhCXj8QmCJ4wZbPmjLZ_ExfTK2rAKza2vlHERGlwaJm-kjyERFZ-k7En3Xzq9-gFdgt1d_xz6AXckP7A3ijW6LRnSJNYTTef7uCsR5u4ndYJ1L3_NOtlXyheA5qjkKWCyayd-yQJNa1HHUfXhS-4bGN0hZEpJIx7xLxFu1EY6QcmB8ue5o9dUvTWRupOj6CRkdQJyol52URZ1f7TOnCk27r7TzDuy7xuAycuFIbI6g0ctMS2-aJgXS1mTZ83A-chIxiPGjjZ-pzHHiOL0uVB_Deh6skikpgTFexieV-DAPx3UhRVUJ2c3yqvpb4sY8A0Q-jXZKYayxrAySrk58wlL5kJ0vc GData-Version: 1.0 Host: apps-apis.google.com Content-Length: 11282 Expect: 100-continue <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:batch="http://schemas.google.com/gdata/batch" xmlns:gd="http://schemas.google.com/g/2005"> <entry> <apps:label labelName="Legal Hold" xmlns:apps="http://schemas.google.com/apps/2006" /> <apps:mailItemProperty value="IS_INBOX" xmlns:apps="http://schemas.google.com/apps/2006" /> <apps:rfc822Msg encoding="NONE" xmlns:apps="http://schemas.google.com/apps/2006">From AMMtboBhBq0T7TtTB9us+yK+krKkuBiT/hX6FCOO@legal Wed Jan 11 10:16:49 2012 Delivered-To: [email protected] Received: by 10.223.78.133 with SMTP id l5cs154583fak; Wed, 11 Jan 2012 10:16:51 -0800 (PST) Received: by 10.236.76.201 with SMTP id b49mr63474yhe.11.1326305809042; Wed, 11 Jan 2012 10:16:49 -0800 (PST) Return-Path: <3enintwopcmkalza.bzlyjbpz-mlk-jvl.jvtalza.bzlyibpz-mlk-jvl....@calendar-server.bounces.google.com> Received: from mail-yx0-f201.google.com (mail-yx0-f201.google.com [209.85.213.201]) by mx.google.com with ESMTPS id u30si2130294yhm.128.2012.01.11.10.16.48 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Jan 2012 10:16:48 -0800 (PST) Received-SPF: pass (google.com: domain of 3enintwopcmkalza.bzlyjbpz-mlk-jvl.jvtalza.bzlyibpz-mlk-jvl....@calendar-server.bounces.google.com designates 209.85.213.201 as permitted sender) client-ip=209.85.213.201; Authentication-Results: mx.google.com; spf=pass (google.com: domain of 3enintwopcmkalza.bzlyjbpz-mlk-jvl.jvtalza.bzlyibpz-mlk-jvl....@calendar-server.bounces.google.com designates 209.85.213.201 as permitted sender) smtp.mail=3enintwopcmkalza.bzlyjbpz-mlk-jvl.jvtalza.bzlyibpz-mlk-jvl....@calendar-server.bounces.google.com; dkim=pass [email protected] Received: by yenm2 with SMTP id m2so120246yen.4 for <[email protected]>; Wed, 11 Jan 2012 10:16:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=gamma; h=mime-version:reply-to:sender:auto-submitted:message-id:date:subject :from:to:content-type; bh=P2iQXd76qXVrRzmIPHthzuf45gJsHUnArEV6N9zFlys=; b=bouPcBr5P82m+au9fr+CSsac99kklfqxVK+XzrzpMpB3ayXCSlRvCrFJXijvSKMemA u3mleIuXkcoi2T8n5gMKG2Iy7uutMogKFunvapJ41C8TqEoB6tMVm3esbA39pG2VFGTN b+cdhQ7CErddVAT+lzwASlTtHi68bJ8asv1pc= MIME-Version: 1.0 Received: by 10.236.128.180 with SMTP id f40mr13909224yhi.9.1326305808394; Wed, 11 Jan 2012 10:16:48 -0800 (PST) Reply-To: Test User2 <[email protected]> Sender: Google Calendar <[email protected]> Auto-Submitted: auto-generated Message-ID: <[email protected]> Date: Wed, 11 Jan 2012 18:16:48 +0000 Subject: Accepted: XXX Email Demo @ Thu Jan 12 10am - 2pm ([email protected]) From: Test User2 <[email protected]> To: "[email protected]" <[email protected]> Content-Type: multipart/mixed; boundary=20cf300fb4c792a97e04b644a2d0 --20cf300fb4c792a97e04b644a2d0 Content-Type: multipart/alternative; boundary=20cf300fb4c792a97804b644a2ce --20cf300fb4c792a97804b644a2ce Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes Content-Transfer-Encoding: base64 VGVzdCBVc2VyMiBoYXMgYWNjZXB0ZWQgdGhpcyBpbnZpdGF0aW9uLg0KDQpUaXRsZTogSEhTIEVt YWlsIERlbW8NCldoZW46IFRodSBKYW4gMTIgMTBhbSDigJMgMnBtIEVhc3Rlcm4gVGltZQ0KV2hl cmU6IFBsYXphIDc0Mw0KQ2FsZW5kYXI6IHRlc3QudXNlcjFAdWlzLWZlZC1jb2UuY29tDQpXaG86 DQogICAgICogdGVzdC51c2VyMUB1aXMtZmVkLWNvZS5jb20gLSBvcmdhbml6ZXINCiAgICAgKiBK b2UgVml0aWVsbG8NCiAgICAgKiBUZXN0IFVzZXIyDQogICAgICogdGVzdC5zdWJ1c2VyMUB1bmlz eXMtcGlsb3QtMS5jb20NCiAgICAgKiB0ZXN0LnN1YnVzZXIyQHVuaXN5cy1waWxvdC0xLmNvbSAt IG9wdGlvbmFsDQoNCg0KSW52aXRhdGlvbiBmcm9tIEdvb2dsZSBDYWxlbmRhcjogaHR0cHM6Ly93 d3cuZ29vZ2xlLmNvbS9jYWxlbmRhci8NCg0KWW91IGFyZSByZWNlaXZpbmcgdGhpcyBlbWFpbCBh dCB0aGUgYWNjb3VudCB0ZXN0LnVzZXIxQHVpcy1mZWQtY29lLmNvbSAgDQpiZWNhdXNlIHlvdSBh cmUgc3Vic2NyaWJlZCBmb3IgaW52aXRhdGlvbiByZXBsaWVzIG9uIGNhbGVuZGFyICANCnRlc3Qu dXNlcjFAdWlzLWZlZC1jb2UuY29tLg0KDQpUbyBzdG9wIHJlY2VpdmluZyB0aGVzZSBub3RpZmlj YXRpb25zLCBwbGVhc2UgbG9nIGluIHRvICANCmh0dHBzOi8vd3d3Lmdvb2dsZS5jb20vY2FsZW5k YXIvIGFuZCBjaGFuZ2UgeW91ciBub3RpZmljYXRpb24gc2V0dGluZ3MgZm9yICANCnRoaXMgY2Fs ZW5kYXIuDQo= --20cf300fb4c792a97804b644a2ce Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable <div style=3D""><table cellspacing=3D"0" cellpadding=3D"8" border=3D"0" sum= mary=3D"" style=3D"width:100%;font-family:Arial,Sans-serif;border:1px Solid= #ccc;border-width:1px 2px 2px 1px;background-color:#fff;"><tr><td><div sty= le=3D"padding:6px 10px;margin:0 0 4px 0;font-family:Arial,Sans-serif;font-s= ize:13px;line-height:1.4;border:1px Solid #ccc;background:#ffc;color:#222">= <strong>Test User2 has accepted this invitation.</strong></div><div style= =3D"padding:2px"><h3 style=3D"padding:0 0 6px 0;margin:0;font-family:Arial,= Sans-serif;font-size:16px;font-weight:bold;color:#222">XXX Email Demo</h3><= table cellpadding=3D"0" cellspacing=3D"0" border=3D"0" summary=3D"Event det= ails"><tr><td style=3D"padding:0 1em 10px 0;font-family:Arial,Sans-serif;fo= nt-size:13px;color:#888;white-space:nowrap" valign=3D"top"><div><i style=3D= "font-style:normal">When</i></div></td><td style=3D"padding-bottom:10px;fon= t-family:Arial,Sans-serif;font-size:13px;color:#222" valign=3D"top">Thu Jan= 12 10am =E2=80=93 2pm <span style=3D"color:#888">Eastern Time</span></td><= /tr><tr><td style=3D"padding:0 1em 10px 0;font-family:Arial,Sans-serif;font= -size:13px;color:#888;white-space:nowrap" valign=3D"top"><div><i style=3D"f= ont-style:normal">Where</i></div></td><td style=3D"padding-bottom:10px;font= -family:Arial,Sans-serif;font-size:13px;color:#222" valign=3D"top">Plaza 74= 3<span dir=3D"ltr"> (<a href=3D"http://maps.google.com/maps?q=3DPlaza+743&a= mp;hl=3Den" style=3D"color:#20c;white-space:nowrap" target=3D"_blank">map</= a>)</span></td></tr><tr><td style=3D"padding:0 1em 10px 0;font-family:Arial= ,Sans-serif;font-size:13px;color:#888;white-space:nowrap" valign=3D"top"><d= iv><i style=3D"font-style:normal">Calendar</i></div></td><td style=3D"paddi= ng-bottom:10px;font-family:Arial,Sans-serif;font-size:13px;color:#222" vali= gn=3D"top">[email protected]</td></tr><tr><td style=3D"padding:0 1= em 10px 0;font-family:Arial,Sans-serif;font-size:13px;color:#888;white-spac= e:nowrap" valign=3D"top"><div><i style=3D"font-style:normal">Who</i></div><= /td><td style=3D"padding-bottom:10px;font-family:Arial,Sans-serif;font-size= :13px;color:#222" valign=3D"top"><table cellspacing=3D"0" cellpadding=3D"0"= ><tr><td style=3D"padding-right:10px;font-family:Arial,Sans-serif;font-size= :13px;color:#222"><span style=3D"font-family:Courier New,monospace">&#x2022= ;</span></td><td style=3D"padding-right:10px;font-family:Arial,Sans-serif;f= ont-size:13px;color:#222"><div><div style=3D"margin:0 0 0.3em 0">test.user1= @xxx-xxx-xxx.com<span style=3D"font-size:11px;color:#888"> - organizer</spa= n></div></div></td></tr><tr><td style=3D"padding-right:10px;font-family:Ari= al,Sans-serif;font-size:13px;color:#222"><span style=3D"font-family:Courier= New,monospace">&#x2022;</span></td><td style=3D"padding-right:10px;font-fa= mily:Arial,Sans-serif;font-size:13px;color:#222"><div><div style=3D"margin:= 0 0 0.3em 0">Joe Vitiello</div></div></td></tr><tr><td style=3D"padding-rig= ht:10px;font-family:Arial,Sans-serif;font-size:13px;color:#222"><span style= =3D"font-family:Courier New,monospace">&#x2022;</span></td><td style=3D"pad= ding-right:10px;font-family:Arial,Sans-serif;font-size:13px;color:#222"><di= v><div style=3D"margin:0 0 0.3em 0">Test User2</div></div></td></tr><tr><td= style=3D"padding-right:10px;font-family:Arial,Sans-serif;font-size:13px;co= lor:#222"><span style=3D"font-family:Courier New,monospace">&#x2022;</span>= </td><td style=3D"padding-right:10px;font-family:Arial,Sans-serif;font-size= :13px;color:#222"><div><div style=3D"margin:0 0 0.3em 0">test.subuser1@unis= ys-pilot-1.com</div></div></td></tr><tr><td style=3D"padding-right:10px;fon= t-family:Arial,Sans-serif;font-size:13px;color:#222"><span style=3D"font-fa= mily:Courier New,monospace">&#x2022;</span></td><td style=3D"padding-right:= 10px;font-family:Arial,Sans-serif;font-size:13px;color:#222"><div><div styl= e=3D"margin:0 0 0.3em 0">[email protected]<span style=3D"fon= t-size:11px;color:#888"> - optional</span></div></div></td></tr></table></t= d></tr></table></div></td></tr><tr><td style=3D"background-color:#f6f6f6;co= lor:#888;border-top:1px Solid #ccc;font-family:Arial,Sans-serif;font-size:1= 1px"><p>Invitation from <a href=3D"https://www.google.com/calendar/" target= =3D"_blank" style=3D"">Google Calendar</a></p><p>You are receiving this ema= il at the account [email protected] because you are subscribed for= invitation replies on calendar [email protected].</p><p>To stop r= eceiving these notifications, please log in to https://www.google.com/calen= dar/ and change your notification settings for this calendar.</p></td></tr>= </table></div> --20cf300fb4c792a97804b644a2ce Content-Type: text/calendar; charset=UTF-8; method=REPLY Content-Transfer-Encoding: 7bit BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar 70.9054//EN VERSION:2.0 CALSCALE:GREGORIAN METHOD:REPLY BEGIN:VEVENT DTSTART:20120112T150000Z DTEND:20120112T190000Z DTSTAMP:20120111T181648Z ORGANIZER;[email protected]:mailto:[email protected] UID:[email protected] ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=Test U ser2;X-NUM-GUESTS=0:mailto:[email protected] CREATED:20120111T035104Z DESCRIPTION: LAST-MODIFIED:20120111T181648Z LOCATION:Plaza 743 SEQUENCE:0 STATUS:CONFIRMED SUMMARY:XXX Email Demo TRANSP:OPAQUE CATEGORIES:http://schemas.google.com/g/2005#event END:VEVENT END:VCALENDAR --20cf300fb4c792a97804b644a2ce-- --20cf300fb4c792a97e04b644a2d0 Content-Type: application/ics; name="invite.ics" Content-Disposition: attachment; filename="invite.ics" Content-Transfer-Encoding: base64 --20cf300fb4c792a97e04b644a2d0-- </apps:rfc822Msg> <category term="http://schemas.google.com/apps/2006#mailItem" scheme="http://schemas.google.com/g/2005#kind" /> </entry> </feed>
