X-Git-Url: http://git.maemo.org/git/?p=qwerkisync;a=blobdiff_plain;f=EventParsers%2FVMGEntities%2FVMessage.cpp;h=443070e4c568ef6b1862af91632d502998e4383b;hp=75ace8f4806232485db81cf8e0d5e9db01257aa1;hb=f3569fd45504745ccde6944c0dc25c17c0b92dd5;hpb=04b1a38b50ac1b0a547e49eed30a65a766fcd528 diff --git a/EventParsers/VMGEntities/VMessage.cpp b/EventParsers/VMGEntities/VMessage.cpp index 75ace8f..443070e 100644 --- a/EventParsers/VMGEntities/VMessage.cpp +++ b/EventParsers/VMGEntities/VMessage.cpp @@ -89,6 +89,14 @@ bool VMessage::Read(const QString &initialLine, QTextStream &stream, EventTypes: { QString box = lineData.mid(lineData.indexOf(":") + 1); bool isOutgoing(box == "SENT"); + + // Early out once we know we're not processing this type of message + if((!isOutgoing && !CurrentSettings().ShouldProcess(Settings::INCOMING, EventTypes::EVENT_TYPE_SMS)) + || isOutgoing && !CurrentSettings().ShouldProcess(Settings::OUTGOING, EventTypes::EVENT_TYPE_SMS)) + { + return false; + } + if (isOutgoing == false && box != "INBOX") { qDebug() << "Unexpected box: " << box;