rem: if (rec.id_.isEmpty() || rec.subject_.isEmpty()) { qDebug("Writing this record would crash Qt"); return s; }
context: operator << (QDataStream & s, EmpathIndexRecord & rec){    if (rec.id_.isEmpty() || rec.subject_.isEmpty()) {        qDebug("Writing this record would crash Qt");        return s;    }    s   << rec.id_;    s   << (Q_UINT8)rec.tagged_;    if (rec.subject_.isNull())        rec.subject_ = QString::fromUtf8("");    s   << rec.subject_;    s   << rec.sender_;    s   << rec.date_;    s   << (Q_UINT8)rec.status_;    s   << rec.size_;    s   << rec.messageId_;    s   << rec.parentMessageId_;    return s;}