java - iCalendar Meeting Response Not Being Parsed -


i'm trying create client can accept meeting invitation using activesync. have meetingresponse on activesync working, when send confirmation email organizer , attach icalendar formatted reply, doesn't parsed out server should. instead, it's converted attachment , users attendee status never gets updated.

here's mime email i'm sending:

from: t@xxx.ca to: tester testing <test@xxx.ca> message-id: <i8swl8yv.-4t2@-1387408011.xxx.ca> subject: accepted: test 11:36 wed mime-version: 1.0 content-type: multipart/alternative;   boundary="----=_part_0_1114661696.1429717004439"  ------=_part_0_1114661696.1429717004439 content-type: text/plain; charset=utf-8 content-transfer-encoding: quoted-printable  these forced comments ------=_part_0_1114661696.1429717004439 content-type: text/calendar; method=reply; charset=utf-8; name=meeting.ics content-transfer-encoding: quoted-printable  begin:vcalendar method:reply prodid:xxxemail version:2.0 begin:vevent attendee;partstat=accepted:mailto:t@xxx.ca organizer:mailto:test@xxx.ca dtstart:20150422t120000 dtend:20150422t123000 dtstamp:20150422t113625 location;language=en-us:here uid:3d6d7b89-de7e-45a1-b916-19dedb2b1adc class:public status:confirmed transp:opaque priority:5 sequence:0 end:vevent end:vcalendar  ------=_part_0_1114661696.1429717004439-- 

does see issue icalendar reply? or how mime formatted? or ideas why won't work?

edit: requested, here's example mime email correctly parsed on server:

content-type: multipart/alternative; boundary="===============0124021817==" x-client-id: 57 x-mailer: blackberry email (10.3.1.2576) message-id: <20150422140519.5439570.43618.57@xxx.ca> date: wed, 22 apr 2015 10:05:19 -0400 subject: accepted: test @ 10:04 wed from: <t@xxx.ca> to: <test@xxx.ca> mime-version: 1.0  --===============0124021817== content-type: text/plain; charset="us-ascii" content-transfer-encoding: quoted-printable  commment  --===============0124021817== content-type: text/calendar; charset="utf-8"; name="meeting.ics"; method=reply content-transfer-encoding: quoted-printable  begin:vcalendar prodid:-//research in motion//rim app//en version:2.0 calscale:gregorian method:reply begin:vtimezone tzid:america/new_york begin:standard dtstart:20071104t020000 rrule:freq=3dyearly;byday=3d1su;bymonth=3d11 tzname:est tzoffsetfrom:-0400 tzoffsetto:-0500 end:standard begin:daylight dtstart:20070311t020000 rrule:freq=3dyearly;byday=3d2su;bymonth=3d3 tzname:edt tzoffsetfrom:-0500 tzoffsetto:-0400 end:daylight end:vtimezone begin:vevent attendee;rsvp=3dtrue;role=3dreq-participant;cn=3dtest test;partstat=3dacce= pted:mailto:  t@xxx.ca comment:commment created:20150422t140505z dtend;tzid=3damerica/new_york:20150422t110000 dtstamp:20150422t140518z dtstart;tzid=3damerica/new_york:20150422t103000 location:here organizer;cn=3dtesting tester:mailto:test@xxx.ca sequence:0 status:confirmed summary:test @ 10:04 wed transp:opaque uid:a885c120-abad-4418-ab24-8b93e57194f0 begin:valarm action:display description:test @ 10:04 wed in 15 minutes. trigger;related=3dstart:-pt15m x-wr-alarmuid:9b758290-e8f8-11e4-afff-b57e838ad0c3 end:valarm end:vevent end:vcalendar  --===============0124021817==-- 

i've tried including timezone information , still didn't work. have email program accepts meeting invites properly, , icalendar attachment identical theirs (they base64 encode icalendar attachment i've tried no luck).

when using different mime writer (this 1 came android open source project), vcalendar content i'm sending interpreted , parsed correctly. can't see differences in mime format though (besides being base64 encoded tried , didn't work)...?

date: mon, 27 apr 2015 14:22:43 -0400 subject: accepted: test event monday 2:22 message-id: <i907pyoo.17vp@-1387408011.xxx.ca> from: t@xxx.ca to: "tester testing" <test@xxx.ca> mime-version: 1.0 content-type: multipart/alternative; boundary=" _com.android.email_7881218929099440"  ----_com.android.email_7881218929099440 content-type: text/plain; charset=utf-8 content-transfer-encoding: base64  ----_com.android.email_7881218929099440 content-type: text/calendar;  name="meeting.ics" content-transfer-encoding: base64  qkvhsu46vknbtevorefsdqpnrvrit0q6ukvqtfknclbst0rjrdpywfhfbwfpba0kvkvsu0lptjoyljanckjfr0loolzfvkvova0kvuleokfgqzmynureltk1mjytnenfrs05mtlblui4rkixqzu1rtbcqw0kqvruru5eruu7uefsvfnuqvq9qundrvburuq6tufjtfrponraehh4lmnhdqppukdbtklarvi6tufjtfrponrlc3raehh4lmnhdqpevfnuqvjuojiwmtuwndi3vde0mzawma0krfrftkq6mjaxnta0mjdumtuwmdawdqpevfnuqu1qojiwmtuwndi3vde0mjizmq0kte9dqvrjt047tefor1vbr0u9zw4tvvm6agvyzq0kq0xbu1m6ufvctelddqptvefuvvm6q09orklstuvedqpuukfou1a6t1bbuvvfdqpquklpukluwto1dqptrvfvru5drtowdqpftkq6vkvwru5udqpftkq6vknbtevorefs  ----_com.android.email_7881218929099440-- 

try using multipart/mixed instead of multipart/alternative.


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -