I'm trying to send a properly formatted iCalendar file as an attachment to a gmail address from Google App Engine.
When I send the email (programmatically) to a gmail address, the email with attachment is received, but gmail is not automatically providing a link to add event to Google Calendar. If I forward the exact same email, with the attachment to the same gmail address, gmail does prompt to automatically add the event. This tells me my iCalendar file is formatted properly and makes me think it may have to do with my headers:
Content-Type: text/calendar; charset=US-ASCII; name="cal.ics"
Content-Disposition: attachment; filename="cal.ics"
Content-Transfer-Encoding: base64
Any insight as to why it isn't recognizing/automatically asking to add the google calendar event when I sent it through my app, but it does recognize the ics file when I simply send an email manually?