return !empty($this->msgid);
}
- function whereAddUndelivered()
+ function whereAddDeliveryStatus($delivered = false)
{
$tn = $this->tableName();
- $this->whereAdd("$tn.msgid IS NULL OR $tn.msgid = ''");
+ if ($delivered) {
+ $this->whereAdd("$tn.msgid IS NOT NULL AND $tn.msgid != ''");
+ } else {
+ $this->whereAdd("$tn.msgid IS NULL OR $tn.msgid = ''");
+ }
}
function status() // used by commandline reporting at present..