120 $structure = imap_fetchstructure($mbox, $jk, FT_UID);
124 $attachments = array();
126 if (!empty($parts)) {
129 for ($i = 1; $i < $nb; $i++) {
132 if ($part->ifdisposition && strtolower($part->disposition) ==
"attachment") {
133 $ext = $part->subtype;
137 $filename = $part->dparameters[0]->value;
138 $filename = imap_utf8($filename);
139 $attachments[] = array(
'type' => $part->type,
'filename' => $filename,
'pos' => $fpos);
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).