5 require_once
'Services/User/classes/class.ilObjUser.php';
6 require_once
'Services/Mail/classes/class.ilMailbox.php';
7 require_once
'Services/Mail/classes/class.ilMail.php';
8 require_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
9 include_once
'Services/Mail/classes/class.ilMailFolderTableGUI.php';
45 $this->umail =
new ilMail($ilUser->getId());
46 $this->mbox =
new ilMailBox($ilUser->getId());
50 $_GET[
'mobj_id'] = $_POST[
'mobj_id'];
53 if(!(
int)
$_GET[
'mobj_id'])
55 $_GET[
'mobj_id'] = $this->mbox->getInboxFolder();
58 $ilCtrl->saveParameter($this,
'mobj_id');
59 $ilCtrl->setParameter($this,
'mobj_id',
$_GET[
'mobj_id']);
67 $_GET[
"cmd"] =
'editFolder';
70 $this->current_select_cmd =
$_POST[
'select_cmd'];
71 $this->current_selected_cmd =
$_POST[
'selected_cmd'];
73 else if (
$_POST[
"select_cmd2"])
76 $_GET[
"cmd"] =
'editFolder';
77 $this->current_select_cmd =
$_POST[
'select_cmd2'];
78 $this->current_selected_cmd =
$_POST[
'selected_cmd2'];
84 if (
$_GET[
'selected_cmd'] ==
"deleteMails" &&
$_GET[
"mail_id"])
86 $_GET[
"cmd"] =
"editFolder";
87 $this->current_selected_cmd =
"deleteMails";
94 $cmd = $this->ctrl->getCmd();
95 if(
$cmd ==
'changeFolder' &&
96 is_numeric(
$_POST[
'selected_cmd']) &&
99 $this->current_selected_cmd = (int)
$_POST[
'selected_cmd'];
102 $forward_class = $this->ctrl->getNextClass($this);
103 switch($forward_class)
105 case 'ilmailaddressbookgui':
106 include_once
'Services/Contact/classes/class.ilMailAddressbookGUI.php';
111 case 'ilmailoptionsgui':
112 include_once
'Services/Mail/classes/class.ilMailOptionsGUI.php';
117 case 'ilpublicuserprofilegui':
118 include_once(
"Services/User/classes/class.ilPublicUserProfileGUI.php");
119 $this->tpl->setTitle($this->lng->txt(
"mail"));
120 $this->ctrl->saveParameter($this,
"mail_id");
122 $profile_gui->setBackUrl($this->ctrl->getLinkTarget($this,
"showMail"));
123 $ret = $this->ctrl->forwardCommand($profile_gui);
126 $this->tpl->setContent(
$ret);
132 if (!(
$cmd = $this->ctrl->getCmd()))
146 if(
$_GET[
"mail_id"] !=
"")
148 if (is_array($mail_data = $this->umail->getMail(
$_GET[
"mail_id"])))
150 require_once
"Services/Contact/classes/class.ilAddressbook.php";
153 $tmp_user =
new ilObjUser($mail_data[
"sender_id"]);
154 if ($abook->checkEntryByLogin($tmp_user->getLogin()) > 0)
160 $abook->addEntry($tmp_user->getLogin(),
161 $tmp_user->getFirstname(),
162 $tmp_user->getLastname(),
163 $tmp_user->getEmail());
184 $this->umail->deleteMailsOfFolder(
$_GET[
'mobj_id']);
194 if($this->umail->countMailsOfFolder((
int)
$_GET[
'mobj_id']))
196 $this->askForConfirmation =
true;
208 $this->ctrl->setParameter($this,
"mail_id",
$_GET[
"mail_id"]);
210 $this->tpl->setTitle($this->lng->txt(
"mail"));
213 $this->tpl->setVariable(
"TBL_TITLE", $this->lng->txt(
"profile_of").
" ".
216 $this->tpl->setVariable(
"TBL_TITLE_IMG_ALT", $this->lng->txt(
"public_profile"));
218 include_once
'./Services/User/classes/class.ilPublicUserProfileGUI.php';
220 $profile_gui->setBackUrl($this->ctrl->getLinkTarget($this,
"showMail"));
221 $this->tpl->setContent($ilCtrl->getHTML($profile_gui));
233 $ilToolbar->addSeparator();
236 $ilToolbar->addButton($this->lng->txt(
'mail_add_subfolder'), $this->ctrl->getLinkTarget($this,
'addSubFolder'));
238 if($check_uf ==
true)
240 $ilToolbar->addButton($this->lng->txt(
'rename'), $this->ctrl->getLinkTarget($this,
'renameSubFolder'));
241 $ilToolbar->addButton($this->lng->txt(
'delete'), $this->ctrl->getLinkTarget($this,
'deleteSubFolder'));
248 public function showFolder($a_show_confirmation =
false)
256 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.mail.html',
'Services/Mail');
257 $this->tpl->setTitle($this->lng->txt(
'mail'));
259 $sentFolderId = $this->mbox->getSentFolder();
260 $draftsFolderId = $this->mbox->getDraftsFolder();
262 $isTrashFolder =
$_GET[
'mobj_id'] == $this->mbox->getTrashFolder();
263 $isSentFolder =
$_GET[
'mobj_id'] == $sentFolderId;
264 $isDraftFolder =
$_GET[
'mobj_id'] == $draftsFolderId;
266 if($this->current_selected_cmd ==
'deleteMails' &&
267 !$this->errorDelete &&
268 $this->current_selected_cmd !=
'confirm' &&
273 $confirmation->setHeaderText($this->lng->txt(
'mail_sure_delete'));
274 $this->ctrl->setParameter($this,
'mail_id', implode(
',', (array)
$_REQUEST[
'mail_id']));
275 $confirmation->setFormAction($this->ctrl->getFormAction($this,
'confirmDeleteMails'));
276 $confirmation->setConfirm($this->lng->txt(
'confirm'),
'confirmDeleteMails');
277 $confirmation->setCancel($this->lng->txt(
'cancel'),
'cancelDeleteMails');
278 $this->tpl->setVariable(
'CONFIRMATION', $confirmation->getHTML());
279 $a_show_confirmation =
true;
282 $folders = $this->mbox->getSubFolders();
283 $mtree =
new ilTree($ilUser->getId());
287 $check_local =
false;
291 $folder_d = $mtree->getNodeData(
$_GET[
'mobj_id']);
292 if($folder_d[
'm_type'] ==
'user_folder')
296 else if($folder_d[
'm_type'] ==
'local')
303 $mailtable->isSentFolder($isSentFolder)
304 ->isDraftFolder($isDraftFolder)
305 ->isTrashFolder($isTrashFolder)
307 $mailtable->setSelectedItems(
$_POST[
'mail_id']);
311 $mailtable->prepareHTML();
316 $this->lng->txt($e->getMessage()) !=
'-'.$e->getMessage().
'-' ?
317 $this->lng->txt($e->getMessage()) :
322 $table_html = $mailtable->getHtml();
324 $folder_options = array();
327 foreach($folders as $folder)
329 $folder_d = $mtree->getNodeData($folder[
'obj_id']);
331 if($folder[
'obj_id'] ==
$_GET[
'mobj_id'])
333 if($folder[
'type'] ==
'user_folder')
337 else if($folder[
'type'] ==
'local')
344 if($folder[
'type'] ==
'user_folder')
347 for ($i = 2; $i < $folder_d[
'depth'] - 1; $i++)
352 if ($folder_d[
'depth'] > 1)
357 $folder_options[$folder[
'obj_id']] = $pre.
' '.$folder[
'title'];
361 $folder_options[$folder[
'obj_id']] = $this->lng->txt(
'mail_'.$folder[
'title']);
366 if($a_show_confirmation ==
false && $this->askForConfirmation ==
false)
370 $ilToolbar->addText($this->lng->txt(
'mail_change_to_folder'));
371 include_once
'./Services/Form/classes/class.ilSelectInputGUI.php';
373 $si->setOptions($folder_options);
375 $ilToolbar->addInputItem(
$si);
377 $ilToolbar->addFormButton($this->lng->txt(
'change'),
'showFolder');
378 $ilToolbar->setFormAction($this->ctrl->getFormAction($this,
'showFolder'));
380 if($check_local ==
true || $check_uf ==
true)
387 if($mailtable->isTrashFolder() &&
388 $mailtable->getNumerOfMails() > 0 &&
389 $this->askForConfirmation)
392 $confirmation->setHeaderText($this->lng->txt(
'mail_empty_trash_confirmation'));
393 $confirmation->setFormAction($this->ctrl->getFormAction($this,
'performEmptyTrash'));
394 $confirmation->setConfirm($this->lng->txt(
'confirm'),
'performEmptyTrash');
395 $confirmation->setCancel($this->lng->txt(
'cancel'),
'cancelEmptyTrash');
396 $this->tpl->setVariable(
'CONFIRMATION', $confirmation->getHTML());
399 $this->tpl->setVariable(
'MAIL_TABLE', $table_html);
407 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
411 $oConfirmationGUI->setFormAction($this->ctrl->getFormAction($this,
"showFolder"));
412 $oConfirmationGUI->setHeaderText($this->lng->txt(
"mail_sure_delete_folder"));
413 $oConfirmationGUI->setCancel($this->lng->txt(
"cancel"),
"showFolder");
414 $oConfirmationGUI->setConfirm($this->lng->txt(
"confirm"),
"performDeleteSubfolder");
415 $this->tpl->setVariable(
'CONFIRMATION',$oConfirmationGUI->getHTML());
417 return $this->showFolder(
true);
420 return $this->showFolder(
false);
425 $new_parent = $this->mbox->getParentFolderId(
$_GET[
"mobj_id"]);
427 if ($this->mbox->deleteFolder(
$_GET[
"mobj_id"]))
431 $this->ctrl->setParameterByClass(
"ilMailGUI",
"mobj_id", $new_parent);
432 $this->ctrl->redirectByClass(
"ilMailGUI");
437 return $this->showFolder();
445 if (empty(
$_POST[
'subfolder_title']))
448 return $this->addSubFolder();
455 $this->ctrl->setParameterByClass(
"ilMailGUI",
'mobj_id', $mobj_id);
456 $this->ctrl->redirectByClass(
"ilMailGUI");
461 return $this->addSubFolder();
465 public function addSubFolder()
473 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
475 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.mail.html',
'Services/Mail');
476 $tpl->setTitle($this->lng->txt(
'mail'));
479 $oForm->setFormAction($ilCtrl->getFormAction($this,
'performAddSubFolder'));
480 $oForm->setTitle($this->lng->txt(
'mail_add_folder'));
484 $oTitle->setTitle($this->lng->txt(
'title'));
485 $oTitle->setPostVar(
'subfolder_title');
486 $oForm->addItem($oTitle);
488 $oForm->addCommandButton(
'performAddSubFolder', $this->lng->txt(
'save'));
489 $oForm->addCommandButton(
'showFolder', $this->lng->txt(
'cancel'));
491 $tpl->setVariable(
'FORM', $oForm->getHTML());
497 public function renameSubFolder()
505 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
507 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.mail.html',
'Services/Mail');
508 $tpl->setTitle($this->lng->txt(
'mail'));
511 $oForm->setFormAction($ilCtrl->getFormAction($this,
'performRenameSubFolder'));
512 $oForm->setTitle($this->lng->txt(
'mail_rename_folder'));
516 $oTitle->setTitle($this->lng->txt(
'title'));
517 $tmp_data = $this->mbox->getFolderData(
$_GET[
"mobj_id"]);
518 $oTitle->setValue($tmp_data[
"title"]);
519 $oTitle->setPostVar(
'subfolder_title');
520 $oForm->addItem($oTitle);
522 $oForm->addCommandButton(
'performRenameSubFolder', $this->lng->txt(
'save'));
523 $oForm->addCommandButton(
'showFolder', $this->lng->txt(
'cancel'));
524 $tpl->setVariable(
'FORM', $oForm->getHTML());
534 $tmp_data = $this->mbox->getFolderData(
$_GET[
"mobj_id"]);
535 if ($tmp_data[
"title"] !=
$_POST[
"subfolder_title"])
537 if (
$_POST[
"subfolder_title"] ==
"")
540 return $this->renameSubFolder();
548 $this->ctrl->redirectByClass(
"ilMailGUI");
553 return $this->renameSubFolder();
557 return $this->showFolder();
562 switch ($this->current_selected_cmd)
565 if(!(
int)
$_GET[
"mail_id"] || !(
int)$this->current_selected_cmd)
568 return $this->showMail();
571 if ($this->umail->moveMailsToFolder(array(
$_GET[
"mail_id"]), $this->current_selected_cmd))
574 $this->ctrl->redirectByClass(
"ilMailGUI");
590 switch ($this->current_selected_cmd)
592 case 'markMailsRead':
593 if(is_array(
$_POST[
"mail_id"]))
595 $this->umail->markRead(
$_POST[
"mail_id"]);
602 case 'markMailsUnread':
603 if(is_array(
$_POST[
"mail_id"]))
605 $this->umail->markUnread(
$_POST[
"mail_id"]);
615 if($this->mbox->getTrashFolder() ==
$_GET[
"mobj_id"])
617 if(!is_array(
$_POST[
"mail_id"]))
620 $this->errorDelete =
true;
626 if(!is_array(
$_POST[
"mail_id"]))
630 else if($this->umail->moveMailsToFolder(
$_POST[
"mail_id"], $this->mbox->getTrashFolder()))
643 $this->ctrl->setParameterByClass(
"ilmailoptionsgui",
"cmd",
"add");
644 $this->ctrl->redirectByClass(
"ilmailoptionsgui");
648 if(!is_array(
$_POST[
"mail_id"]))
652 else if($this->umail->moveMailsToFolder(
$_POST[
"mail_id"],$this->current_selected_cmd))
671 if($this->mbox->getTrashFolder() ==
$_GET[
'mobj_id'])
673 $_POST[
'mail_id'] = $mail_ids = explode(
',',
$_GET[
'mail_id']);
674 if(!is_array($mail_ids))
678 else if($this->umail->deleteMails($mail_ids))
694 $this->ctrl->redirect($this);
700 public function showMail()
707 global
$ilUser, $ilToolbar, $ilTabs;
715 $ilTabs->clearTargets();
716 $ilTabs->setBackTarget($this->lng->txt(
'back_to_folder'), $this->ctrl->getFormAction($this,
'showFolder'));
718 $this->umail->markRead(array((
int)
$_GET[
'mail_id']));
719 $mailData = $this->umail->getMail((
int)$_GET[
'mail_id']);
721 $this->tpl->setTitle($this->lng->txt(
'mail_mails_of'));
723 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
726 $form->setPreventDoubleSubmission(
false);
727 $form->setTableWidth(
'100%');
728 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
729 $form->setFormAction($this->ctrl->getFormAction($this,
'showMail'));
730 $this->ctrl->clearParameters($this);
731 $form->setTitle($this->lng->txt(
'mail_mails_of'));
738 include_once
'Services/Accessibility/classes/class.ilAccessKeyGUI.php';
745 if($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID)
747 $this->ctrl->setParameterByClass(
'ilmailformgui',
'mail_id', (
int)$_GET[
'mail_id']);
748 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'reply');
749 $this->ctrl->clearParametersByClass(
'iliasmailformgui');
750 $ilToolbar->addButton($this->lng->txt(
'reply'), $this->ctrl->getLinkTargetByClass(
'ilmailformgui'),
'',
ilAccessKey::REPLY);
751 $this->ctrl->clearParameters($this);
754 $this->ctrl->setParameterByClass(
'ilmailformgui',
'mail_id', (
int)$_GET[
'mail_id']);
755 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'forward');
756 $this->ctrl->clearParametersByClass(
'iliasmailformgui');
757 $ilToolbar->addButton($this->lng->txt(
'forward'), $this->ctrl->getLinkTargetByClass(
'ilmailformgui'),
'',
ilAccessKey::FORWARD_MAIL);
758 $this->ctrl->clearParameters($this);
760 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
761 $ilToolbar->addButton($this->lng->txt(
'print'), $this->ctrl->getLinkTarget($this,
'printMail'),
'_blank');
762 $this->ctrl->clearParameters($this);
764 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
765 $this->ctrl->setParameter($this,
'selected_cmd',
'deleteMails');
766 $ilToolbar->addButton($this->lng->txt(
'delete'), $this->ctrl->getLinkTarget($this),
'',
ilAccessKey::DELETE);
767 $this->ctrl->clearParameters($this);
769 if($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID)
771 $linked_fullname = $sender->getPublicName();
772 $picture =
ilUtil::img($sender->getPersonalPicturePath(
'xsmall'), $sender->getPublicName());
773 $add_to_addb_button =
'';
777 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
778 $this->ctrl->setParameter($this,
'user', $sender->getId());
779 $linked_fullname =
'<br /><a href="' . $this->ctrl->getLinkTarget($this,
'showUser') .
'" title="'.$linked_fullname.
'">' . $linked_fullname .
'</a>';
780 $this->ctrl->clearParameters($this);
783 if($sender->getId() != $ilUser->getId())
785 require_once
'Services/Contact/classes/class.ilAddressbook.php';
787 if($abook->checkEntryByLogin($sender->getLogin()) == 0)
789 $tplbtn =
new ilTemplate(
'tpl.buttons.html',
true,
true);
791 $tplbtn->setCurrentBlock(
'btn_cell');
792 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
793 $tplbtn->setVariable(
'BTN_LINK', $this->ctrl->getLinkTarget($this,
'add'));
794 $this->ctrl->clearParameters($this);
795 $tplbtn->setVariable(
'BTN_TXT', $this->lng->txt(
'mail_add_to_addressbook'));
796 $tplbtn->parseCurrentBlock();
798 $add_to_addb_button =
'<br />' . $tplbtn->get();
803 $from->
setHtml($picture .
' ' . $linked_fullname . $add_to_addb_button);
804 $form->addItem($from);
806 else if(!$sender || !$sender->getId())
809 $from->
setHtml($mailData[
'import_name'] .
' (' . $this->lng->txt(
'user_deleted') .
')');
810 $form->addItem($from);
816 $form->addItem($from);
823 if($mailData[
'rcp_cc'])
830 if($mailData[
'rcp_bcc'])
834 $form->addItem($bcc);
839 $form->addItem($subject);
843 $form->addItem($date);
847 $form->addItem($message);
849 if($mailData[
'attachments'])
855 foreach($mailData[
'attachments'] as
$file)
860 $att->
setHtml($radiog->render());
861 $form->addCommandButton(
'deliverFile', $this->lng->txt(
'download'));
862 $form->addItem($att);
865 $isTrashFolder =
false;
866 if($this->mbox->getTrashFolder() == $_GET[
'mobj_id'])
868 $isTrashFolder =
true;
871 $current_folder_data = $this->mbox->getFolderData((
int)$_GET[
'mobj_id']);
873 $selectOptions = array();
874 $actions = $this->mbox->getActions((
int)$_GET[
"mobj_id"]);
875 foreach($actions as $key => $action)
877 if($key ==
'moveMails')
879 $folders = $this->mbox->getSubFolders();
880 foreach($folders as $folder)
883 ($folder[
"type"] !=
'trash' || !$isTrashFolder) &&
884 $folder[
'obj_id'] != $current_folder_data[
'obj_id']
888 if($folder[
'type'] !=
'user_folder')
890 $optionText = $action .
' ' . $this->lng->txt(
'mail_' . $folder[
'title']) . ($folder[
'type'] ==
'trash' ?
' (' . $this->lng->txt(
'delete') .
')' :
'');
894 $optionText = $action .
' ' . $folder[
'title'];
897 $selectOptions[$folder[
'obj_id']] = $optionText;
903 if($current_folder_data[
'type'] ==
'user_folder')
905 $txt_folder = $current_folder_data[
'title'];
909 $txt_folder = $this->lng->txt(
'mail_' . $current_folder_data[
'title']);
911 $ilToolbar->addSeparator();
912 $ilToolbar->addText(sprintf($this->lng->txt(
'current_folder'), $txt_folder));
914 if(is_array($selectOptions) && count($selectOptions))
916 include_once
'Services/Form/classes/class.ilSelectInputGUI.php';
918 $actions->setOptions($selectOptions);
919 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
920 $ilToolbar->setFormAction($this->ctrl->getFormAction($this,
'showMail'));
921 $ilToolbar->addInputItem($actions);
922 $ilToolbar->addFormButton($this->lng->txt(
'submit'),
'changeFolder');
926 $prevMail = $this->umail->getPreviousMail((
int)$_GET[
'mail_id']);
927 $nextMail = $this->umail->getNextMail((
int)$_GET[
'mail_id']);
928 if(is_array($prevMail) || is_array($nextMail))
930 $ilToolbar->addSeparator();
932 if($prevMail[
'mail_id'])
934 $this->ctrl->setParameter($this,
'mail_id', $prevMail[
'mail_id']);
935 $ilToolbar->addButton($this->lng->txt(
'previous'), $this->ctrl->getLinkTarget($this,
'showMail'));
936 $this->ctrl->clearParameters($this);
939 if($nextMail[
'mail_id'])
941 $this->ctrl->setParameter($this,
'mail_id', $nextMail[
'mail_id']);
942 $ilToolbar->addButton($this->lng->txt(
'next'), $this->ctrl->getLinkTarget($this,
'showMail'));
943 $this->ctrl->clearParameters($this);
947 $this->tpl->setContent($form->getHTML());
954 public function printMail()
961 $tplprint =
new ilTemplate(
'tpl.mail_print.html',
true,
true,
'Services/Mail');
962 $tplprint->setVariable(
'JSPATH', $tpl->tplPath);
964 $mailData = $this->umail->getMail((
int)$_GET[
'mail_id']);
971 $tplprint->setVariable(
'TXT_FROM', $this->lng->txt(
'from'));
972 if($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID)
974 $tplprint->setVariable(
'FROM', $sender->getPublicName());
976 else if(!$sender || !$sender->getId())
978 $tplprint->setVariable(
'FROM', $mailData[
'import_name'] .
' (' . $this->lng->txt(
'user_deleted') .
')');
982 $tplprint->setVariable(
'FROM', ilMail::_getIliasMailerName());
985 $tplprint->setVariable(
'TXT_TO', $this->lng->txt(
'mail_to'));
986 $tplprint->setVariable(
'TO', $mailData[
'rcp_to']);
988 if($mailData[
'rcp_cc'])
990 $tplprint->setCurrentBlock(
'cc');
991 $tplprint->setVariable(
'TXT_CC', $this->lng->txt(
'cc'));
992 $tplprint->setVariable(
'CC', $mailData[
'rcp_cc']);
993 $tplprint->parseCurrentBlock();
996 if($mailData[
'rcp_bcc'])
998 $tplprint->setCurrentBlock(
'bcc');
999 $tplprint->setVariable(
'TXT_BCC', $this->lng->txt(
'bc'));
1000 $tplprint->setVariable(
'BCC', $mailData[
'rcp_bcc']);
1001 $tplprint->parseCurrentBlock();
1004 $tplprint->setVariable(
'TXT_SUBJECT', $this->lng->txt(
'subject'));
1005 $tplprint->setVariable(
'SUBJECT', htmlspecialchars($mailData[
'm_subject']));
1007 $tplprint->setVariable(
'TXT_DATE', $this->lng->txt(
'date'));
1010 $tplprint->setVariable(
'TXT_MESSAGE', $this->lng->txt(
'message'));
1011 $tplprint->setVariable(
'MAIL_MESSAGE', nl2br(htmlspecialchars($mailData[
'm_message'])));
1020 $_GET[
"mail_id"] =
$_SESSION[
"mail_id"];
1028 : $_GET[
"filename"]));
1033 require_once
"./Services/Mail/classes/class.ilFileDataMail.php";
1039 if(!is_array($file = $mfile->getAttachmentPathByMD5Filename(
$filename, $_GET[
'mail_id'])))
1061 $sentFolderId = $this->mbox->getSentFolder();
1062 $draftsFolderId = $this->mbox->getDraftsFolder();
1064 $isTrashFolder = $_GET[
'mobj_id'] == $this->mbox->getTrashFolder();
1065 $isSentFolder = $_GET[
'mobj_id'] == $sentFolderId;
1066 $isDraftFolder = $_GET[
'mobj_id'] == $draftsFolderId;
1069 $table->isSentFolder($isSentFolder)
1070 ->isDraftFolder($isDraftFolder)
1071 ->isTrashFolder($isTrashFolder)
1073 $table->resetOffset();
1074 $table->writeFilterToSession();
1076 $this->showFolder();
1084 $sentFolderId = $this->mbox->getSentFolder();
1085 $draftsFolderId = $this->mbox->getDraftsFolder();
1087 $isTrashFolder = $_GET[
'mobj_id'] == $this->mbox->getTrashFolder();
1088 $isSentFolder = $_GET[
'mobj_id'] == $sentFolderId;
1089 $isDraftFolder = $_GET[
'mobj_id'] == $draftsFolderId;
1092 $table->isSentFolder($isSentFolder)
1093 ->isDraftFolder($isDraftFolder)
1094 ->isTrashFolder($isTrashFolder)
1096 $table->resetOffset();
1097 $table->resetFilter();
1099 $this->showFolder();