equal
deleted
inserted
replaced
435 { |
435 { |
436 entry.rgPropVals[0].ulPropTag = PR_RECIPIENT_TYPE; |
436 entry.rgPropVals[0].ulPropTag = PR_RECIPIENT_TYPE; |
437 entry.rgPropVals[0].Value.l = type; |
437 entry.rgPropVals[0].Value.l = type; |
438 |
438 |
439 #ifdef _WIN32_WCE |
439 #ifdef _WIN32_WCE |
440 QString addressStr = addr.recipient(); |
440 QString addressStr = addr.addressee(); |
441 #else |
441 #else |
442 QString addressStr("[%1:%2]"); |
442 QString addressStr("[%1:%2]"); |
443 addressStr = addressStr.arg(addr.type() == QMessageAddress::Phone ? "SMS" : "SMTP"); |
443 addressStr = addressStr.arg(addr.type() == QMessageAddress::Phone ? "SMS" : "SMTP"); |
444 addressStr = addressStr.arg(addr.recipient()); |
444 addressStr = addressStr.arg(addr.addressee()); |
445 #endif |
445 #endif |
446 |
446 |
447 // TODO: Escape illegal characters, as per: http://msdn.microsoft.com/en-us/library/cc842281.aspx |
447 // TODO: Escape illegal characters, as per: http://msdn.microsoft.com/en-us/library/cc842281.aspx |
448 |
448 |
449 uint len = addressStr.length(); |
449 uint len = addressStr.length(); |
999 { |
999 { |
1000 if (!setMapiProperty(message, PR_SUBJECT, source.subject())) { |
1000 if (!setMapiProperty(message, PR_SUBJECT, source.subject())) { |
1001 qWarning() << "Unable to set subject in message."; |
1001 qWarning() << "Unable to set subject in message."; |
1002 *error = QMessageManager::FrameworkFault; |
1002 *error = QMessageManager::FrameworkFault; |
1003 } else { |
1003 } else { |
1004 QString emailAddress = source.from().recipient(); |
1004 QString emailAddress = source.from().addressee(); |
1005 if (!setMapiProperty(message, PR_SENDER_EMAIL_ADDRESS, emailAddress)) { |
1005 if (!setMapiProperty(message, PR_SENDER_EMAIL_ADDRESS, emailAddress)) { |
1006 qWarning() << "Unable to set sender address in message."; |
1006 qWarning() << "Unable to set sender address in message."; |
1007 *error = QMessageManager::FrameworkFault; |
1007 *error = QMessageManager::FrameworkFault; |
1008 } else { |
1008 } else { |
1009 #ifdef _WIN32_WCE |
1009 #ifdef _WIN32_WCE |
3030 if (_session.toStrongRef()->equal(it.value(), entryId)) { |
3030 if (_session.toStrongRef()->equal(it.value(), entryId)) { |
3031 return it.key(); |
3031 return it.key(); |
3032 } |
3032 } |
3033 } |
3033 } |
3034 |
3034 |
3035 return QMessage::InboxFolder; |
3035 return QMessage::DraftsFolder; |
3036 } |
3036 } |
3037 |
3037 |
3038 bool MapiStore::setAdviseSink(ULONG mask, IMAPIAdviseSink *sink) |
3038 bool MapiStore::setAdviseSink(ULONG mask, IMAPIAdviseSink *sink) |
3039 { |
3039 { |
3040 if (_adviseConnection != 0) { |
3040 if (_adviseConnection != 0) { |