Changeset View
Changeset View
Standalone View
Standalone View
lib/kolab_sync_data_email.php
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Lines | // $result['ConversationIndex'] = 'CA2CFA8A23'; | ||||
// Flagged message | // Flagged message | ||||
if (!empty($headers->flags['FLAGGED'])) { | if (!empty($headers->flags['FLAGGED'])) { | ||||
// Use FollowUp flag which is used in Android when message is marked with a star | // Use FollowUp flag which is used in Android when message is marked with a star | ||||
$result['flag'] = new Syncroton_Model_EmailFlag(array( | $result['flag'] = new Syncroton_Model_EmailFlag(array( | ||||
'flagType' => 'FollowUp', | 'flagType' => 'FollowUp', | ||||
'status' => Syncroton_Model_EmailFlag::STATUS_ACTIVE, | 'status' => Syncroton_Model_EmailFlag::STATUS_ACTIVE, | ||||
)); | )); | ||||
} else { | |||||
$result['flag'] = new Syncroton_Model_EmailFlag(); | |||||
} | } | ||||
// Importance/Priority | // Importance/Priority | ||||
if ($headers->priority) { | if ($headers->priority) { | ||||
if ($headers->priority < 3) { | if ($headers->priority < 3) { | ||||
$result['importance'] = 2; // High | $result['importance'] = 2; // High | ||||
} | } | ||||
else if ($headers->priority > 3) { | else if ($headers->priority > 3) { | ||||
▲ Show 20 Lines • Show All 1,449 Lines • Show Last 20 Lines |