SuiteCRM-Core/public/legacy/modules/InboundEmail/Overview.php
Clemente Raposo 5aa0daf046 Merge next into suite 8
Merge commit 'de4bf25cb3' into release/8.4.0-beta

# Conflicts:
#	public/legacy/data/SugarBean.php
#	public/legacy/include/Smarty/plugins/function.sugarvar.php
#	public/legacy/include/SugarDateTime.php
#	public/legacy/include/database/MysqliManager.php
#	public/legacy/modules/Alerts/metadata/listviewdefs.php
#	public/legacy/modules/SugarFeed/Dashlets/SugarFeedDashlet/SugarFeedDashlet.php
#	public/legacy/modules/Trackers/metadata/SearchFields.php
#	public/legacy/modules/Trackers/metadata/listviewdefs.php
#	public/legacy/modules/UpgradeWizard/SugarMerge/EditViewMerge.php
#	public/legacy/suitecrm_version.php
2023-07-21 15:22:52 +01:00

40 lines
1,014 B
PHP

<?php
/**
* Simple class to mirror the passed object from an imap_fetch_overview() call
*/
#[\AllowDynamicProperties]
class Overview
{
public $subject;
public $from;
public $fromaddr;
public $to;
public $toaddr;
public $date;
public $message_id;
public $size;
public $uid;
public $msgno;
public $recent;
public $flagged;
public $answered;
public $deleted;
public $seen;
public $draft;
public $indices;
public function __construct()
{
global $dictionary;
if (!isset($dictionary['email_cache']) || empty($dictionary['email_cache'])) {
if (file_exists('custom/metadata/email_cacheMetaData.php')) {
include('custom/metadata/email_cacheMetaData.php');
} else {
include('metadata/email_cacheMetaData.php');
}
}
$this->fieldDefs = $dictionary['email_cache']['fields'];
$this->indices = $dictionary['email_cache']['indices'];
}
}