16 $option[
'steps'] = Mail\MailMessageTable::getCount(array(
17 '=INDEX_VERSION' => static::INDEX_VERSION,
19 $option[
'count'] = Mail\MailMessageTable::getCount(array(
20 '<=INDEX_VERSION' => static::INDEX_VERSION,
23 if ($option[
'steps'] >= $option[
'count'])
28 $res = Mail\MailMessageTable::getList(array(
31 'FIELD_FROM',
'FIELD_REPLY_TO',
32 'FIELD_TO',
'FIELD_CC',
'FIELD_BCC',
36 '<INDEX_VERSION' => static::INDEX_VERSION,
38 'order' => array(
'ID' =>
'ASC'),
42 while ($item = $res->fetch())
47 'SEARCH_CONTENT' => Message::prepareSearchContent($item),
48 'INDEX_VERSION' => static::INDEX_VERSION,
51 Mail\MailMessageTable::update($item[
'ID'], $fields);