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: 
&lt;3enintwopcmkalza.bzlyjbpz-mlk-jvl.jvtalza.bzlyibpz-mlk-jvl....@calendar-server.bounces.google.com&gt;
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 
&lt;[email protected]&gt;; 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 &lt;[email protected]&gt;
Sender: Google Calendar &lt;[email protected]&gt;
Auto-Submitted: auto-generated
Message-ID: &lt;[email protected]&gt;
Date: Wed, 11 Jan 2012 18:16:48 +0000
Subject: Accepted: XXX Email Demo @ Thu Jan 12 10am - 2pm 
([email protected])
From: Test User2 &lt;[email protected]&gt;
To: "[email protected]" &lt;[email protected]&gt;
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

&lt;div style=3D""&gt;&lt;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;"&gt;&lt;tr&gt;&lt;td&gt;&lt;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"&gt;=
&lt;strong&gt;Test User2 has accepted this 
invitation.&lt;/strong&gt;&lt;/div&gt;&lt;div style=
=3D"padding:2px"&gt;&lt;h3 style=3D"padding:0 0 6px 
0;margin:0;font-family:Arial,=
Sans-serif;font-size:16px;font-weight:bold;color:#222"&gt;XXX Email 
Demo&lt;/h3&gt;&lt;=
table cellpadding=3D"0" cellspacing=3D"0" border=3D"0" summary=3D"Event det=
ails"&gt;&lt;tr&gt;&lt;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"&gt;&lt;div&gt;&lt;i 
style=3D=
"font-style:normal"&gt;When&lt;/i&gt;&lt;/div&gt;&lt;/td&gt;&lt;td 
style=3D"padding-bottom:10px;fon=
t-family:Arial,Sans-serif;font-size:13px;color:#222" valign=3D"top"&gt;Thu Jan=
 12 10am =E2=80=93 2pm &lt;span style=3D"color:#888"&gt;Eastern 
Time&lt;/span&gt;&lt;/td&gt;&lt;=
/tr&gt;&lt;tr&gt;&lt;td style=3D"padding:0 1em 10px 
0;font-family:Arial,Sans-serif;font=
-size:13px;color:#888;white-space:nowrap" valign=3D"top"&gt;&lt;div&gt;&lt;i 
style=3D"f=
ont-style:normal"&gt;Where&lt;/i&gt;&lt;/div&gt;&lt;/td&gt;&lt;td 
style=3D"padding-bottom:10px;font=
-family:Arial,Sans-serif;font-size:13px;color:#222" valign=3D"top"&gt;Plaza 74=
3&lt;span dir=3D"ltr"&gt; (&lt;a 
href=3D"http://maps.google.com/maps?q=3DPlaza+743&amp;a=
mp;hl=3Den" style=3D"color:#20c;white-space:nowrap" 
target=3D"_blank"&gt;map&lt;/=
a&gt;)&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=3D"padding:0 
1em 10px 0;font-family:Arial=
,Sans-serif;font-size:13px;color:#888;white-space:nowrap" 
valign=3D"top"&gt;&lt;d=
iv&gt;&lt;i 
style=3D"font-style:normal"&gt;Calendar&lt;/i&gt;&lt;/div&gt;&lt;/td&gt;&lt;td 
style=3D"paddi=
ng-bottom:10px;font-family:Arial,Sans-serif;font-size:13px;color:#222" vali=
gn=3D"top"&gt;[email protected]&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;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"&gt;&lt;div&gt;&lt;i 
style=3D"font-style:normal"&gt;Who&lt;/i&gt;&lt;/div&gt;&lt;=
/td&gt;&lt;td 
style=3D"padding-bottom:10px;font-family:Arial,Sans-serif;font-size=
:13px;color:#222" valign=3D"top"&gt;&lt;table cellspacing=3D"0" 
cellpadding=3D"0"=
&gt;&lt;tr&gt;&lt;td 
style=3D"padding-right:10px;font-family:Arial,Sans-serif;font-size=
:13px;color:#222"&gt;&lt;span style=3D"font-family:Courier 
New,monospace"&gt;&amp;#x2022=
;&lt;/span&gt;&lt;/td&gt;&lt;td 
style=3D"padding-right:10px;font-family:Arial,Sans-serif;f=
ont-size:13px;color:#222"&gt;&lt;div&gt;&lt;div style=3D"margin:0 0 0.3em 
0"&gt;test.user1=
@xxx-xxx-xxx.com&lt;span style=3D"font-size:11px;color:#888"&gt; - 
organizer&lt;/spa=
n&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td 
style=3D"padding-right:10px;font-family:Ari=
al,Sans-serif;font-size:13px;color:#222"&gt;&lt;span 
style=3D"font-family:Courier=
 New,monospace"&gt;&amp;#x2022;&lt;/span&gt;&lt;/td&gt;&lt;td 
style=3D"padding-right:10px;font-fa=
mily:Arial,Sans-serif;font-size:13px;color:#222"&gt;&lt;div&gt;&lt;div 
style=3D"margin:=
0 0 0.3em 0"&gt;Joe 
Vitiello&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td 
style=3D"padding-rig=
ht:10px;font-family:Arial,Sans-serif;font-size:13px;color:#222"&gt;&lt;span 
style=
=3D"font-family:Courier 
New,monospace"&gt;&amp;#x2022;&lt;/span&gt;&lt;/td&gt;&lt;td style=3D"pad=
ding-right:10px;font-family:Arial,Sans-serif;font-size:13px;color:#222"&gt;&lt;di=
v&gt;&lt;div style=3D"margin:0 0 0.3em 0"&gt;Test 
User2&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td=
 style=3D"padding-right:10px;font-family:Arial,Sans-serif;font-size:13px;co=
lor:#222"&gt;&lt;span style=3D"font-family:Courier 
New,monospace"&gt;&amp;#x2022;&lt;/span&gt;=
&lt;/td&gt;&lt;td 
style=3D"padding-right:10px;font-family:Arial,Sans-serif;font-size=
:13px;color:#222"&gt;&lt;div&gt;&lt;div style=3D"margin:0 0 0.3em 
0"&gt;test.subuser1@unis=
ys-pilot-1.com&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td 
style=3D"padding-right:10px;fon=
t-family:Arial,Sans-serif;font-size:13px;color:#222"&gt;&lt;span 
style=3D"font-fa=
mily:Courier New,monospace"&gt;&amp;#x2022;&lt;/span&gt;&lt;/td&gt;&lt;td 
style=3D"padding-right:=
10px;font-family:Arial,Sans-serif;font-size:13px;color:#222"&gt;&lt;div&gt;&lt;div
 styl=
e=3D"margin:0 0 0.3em 0"&gt;[email protected]&lt;span 
style=3D"fon=
t-size:11px;color:#888"&gt; - 
optional&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/t=
d&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td
 style=3D"background-color:#f6f6f6;co=
lor:#888;border-top:1px Solid #ccc;font-family:Arial,Sans-serif;font-size:1=
1px"&gt;&lt;p&gt;Invitation from &lt;a 
href=3D"https://www.google.com/calendar/"; target=
=3D"_blank" style=3D""&gt;Google Calendar&lt;/a&gt;&lt;/p&gt;&lt;p&gt;You are 
receiving this ema=
il at the account [email protected] because you are subscribed for=
 invitation replies on calendar 
[email protected].&lt;/p&gt;&lt;p&gt;To stop r=
eceiving these notifications, please log in to https://www.google.com/calen=
dar/ and change your notification settings for this 
calendar.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;=
&lt;/table&gt;&lt;/div&gt;
--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>

Reply via email to