equal
deleted
inserted
replaced
95 if (it.value() == folderId) { |
95 if (it.value() == folderId) { |
96 return it.key(); |
96 return it.key(); |
97 } |
97 } |
98 } |
98 } |
99 |
99 |
100 return QMessage::DraftsFolder; |
100 return QMessage::InboxFolder; |
101 } |
101 } |
102 |
102 |
103 QMessage QMessagePrivate::convert(const QMailMessage &message) |
103 QMessage QMessagePrivate::convert(const QMailMessage &message) |
104 { |
104 { |
105 QMessage result; |
105 QMessage result; |
292 return convert(d_ptr->_message.parentFolderId()); |
292 return convert(d_ptr->_message.parentFolderId()); |
293 } |
293 } |
294 |
294 |
295 QMessage::StandardFolder QMessage::standardFolder() const |
295 QMessage::StandardFolder QMessage::standardFolder() const |
296 { |
296 { |
|
297 if (!d_ptr->_message.parentFolderId().isValid()) |
|
298 return QMessage::DraftsFolder; |
297 return QMessagePrivate::standardFolder(convert(d_ptr->_message.parentFolderId())); |
299 return QMessagePrivate::standardFolder(convert(d_ptr->_message.parentFolderId())); |
298 } |
300 } |
299 |
301 |
300 QMessageAddress QMessage::from() const |
302 QMessageAddress QMessage::from() const |
301 { |
303 { |