Move Nova bug fix 328185 to Zulu.

This commit is contained in:
jsun%netscape.com 1998-10-13 17:32:43 +00:00
Родитель cb68173af5
Коммит b696604239
1 изменённых файлов: 23 добавлений и 14 удалений

Просмотреть файл

@ -49,8 +49,7 @@ TransactionObject::TransactionObject(NSCalendar & cal,
JulianPtrArray & recipients, JulianPtrArray & recipients,
UnicodeString & subject, UnicodeString & subject,
JulianPtrArray & modifiers, JulianPtrArray & modifiers,
JulianForm * jf, /*JulianForm * jf, MWContext * context, */
MWContext * context,
UnicodeString & attendeeName, UnicodeString & attendeeName,
EFetchType fetchType) EFetchType fetchType)
: m_Modifiers(0), m_Recipients(0) : m_Modifiers(0), m_Recipients(0)
@ -69,8 +68,10 @@ TransactionObject::TransactionObject(NSCalendar & cal,
m_FetchType = fetchType; m_FetchType = fetchType;
// for sending IMIP messages // for sending IMIP messages
/*
m_JulianForm = jf; m_JulianForm = jf;
m_Context = context; m_Context = context;
*/
} }
//--------------------------------------------------------------------- //---------------------------------------------------------------------
TransactionObject::~TransactionObject() TransactionObject::~TransactionObject()
@ -324,26 +325,32 @@ TransactionObject::executeIMIP(JulianPtrArray * out,
} }
createContentTypeHeader(sMethod, sCharSet, sComponentType, sContentTypeHeader); createContentTypeHeader(sMethod, sCharSet, sComponentType, sContentTypeHeader);
// 10/12/98 10:24 AM // Use preference "calendar.imip.add_content_disp" to decide whether to add
// if' 0 out because this won't interoperate with Microsoft // "Content-Disposition: ... "
#if 0 // Default doesn't write it.
// added content-disposition to work with Lotus XP_Bool do_add_content_disp = FALSE;
if (((ICalComponent *)m_ICalComponentVctr->GetAt(0))->GetType() == ICalComponent::ICAL_COMPONENT_VEVENT)
if ((m_JulianForm) && (m_JulianForm->getCallbacks()) && (m_JulianForm->getCallbacks()->BoolPref))
(*m_JulianForm->getCallbacks()->BoolPref)("calendar.imip.add_content_disp", &do_add_content_disp);
if (do_add_content_disp)
{ {
sContentTypeHeader += "\r\nContent-Dispostion: inline; filename=\"event.ics\""; if (((ICalComponent *)m_ICalComponentVctr->GetAt(0))->GetType() == ICalComponent::ICAL_COMPONENT_VEVENT)
{
sContentTypeHeader += "\r\nContent-Dispostion: inline; filename=\"event.ics\"";
}
else if (((ICalComponent *)m_ICalComponentVctr->GetAt(0))->GetType() == ICalComponent::ICAL_COMPONENT_VFREEBUSY)
{
sContentTypeHeader += "\r\nContent-Dispostion: inline; filename=\"freebusy.ifb\"";
}
} }
else if (((ICalComponent *)m_ICalComponentVctr->GetAt(0))->GetType() == ICalComponent::ICAL_COMPONENT_VFREEBUSY)
{
sContentTypeHeader += "\r\nContent-Dispostion: inline; filename=\"freebusy.ifb\"";
}
#endif
//#ifdef DEBUG_ITIP //#ifdef DEBUG_ITIP
m_DebugITIPMessage = itipMessage; m_DebugITIPMessage = itipMessage;
//#endif /* DEBUG_ITIP */ //#endif /* DEBUG_ITIP */
// TODO: send it via mail API here // TODO: send it via mail API here
if (m_JulianForm != 0 && m_Context != 0 && m_Recipients != 0) if (/*m_JulianForm != 0 && m_Context != 0 &&*/ m_Recipients != 0)
{ {
int iOut; int iOut;
User * userTo; User * userTo;
@ -378,10 +385,12 @@ TransactionObject::executeIMIP(JulianPtrArray * out,
to = uTo.toCString(""); to = uTo.toCString("");
if (to != 0) if (to != 0)
{ {
/*
if (m_JulianForm->getCallbacks()->SendMessageUnattended) if (m_JulianForm->getCallbacks()->SendMessageUnattended)
iOut = (*m_JulianForm->getCallbacks()->SendMessageUnattended)(m_Context, to, subject, otherheaders, body); iOut = (*m_JulianForm->getCallbacks()->SendMessageUnattended)(m_Context, to, subject, otherheaders, body);
else else
iOut = 0; iOut = 0;
*/
delete [] to; delete [] to;
} }
if (from != 0) if (from != 0)