The best - may solve both of your other problem, though when using the whole project qml file need to be taken care - would be to start with this example.
Due to the mentioned missing folder enum, the sent folder would look like:
Code:
model: MessageModel {
sortBy: MessageModel.Timestamp
sortOrder: MessageModel.DescendingOrder
filter:
MessageFilter {
type: MessageFilter.StandardFolder
value: 4 // folder enums are not offered by default.
comparator: MessageFilter.Equal
}
}
Meanwhile limiting to sms can be done:
Code:
MessageFilter {
type: MessageFilter.Type
value: MessageFilter.Sms
comparator: MessageFilter.Equal
}
Using both would require the usage of MessageIntersectionFilter and both of them.