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());
281 $folders = $this->mbox->getSubFolders();
282 $mtree =
new ilTree($ilUser->getId());
286 $check_local =
false;
290 $folder_d = $mtree->getNodeData(
$_GET[
'mobj_id']);
291 if($folder_d[
'm_type'] ==
'user_folder')
295 else if($folder_d[
'm_type'] ==
'local')
302 $mailtable->isSentFolder($isSentFolder)
303 ->isDraftFolder($isDraftFolder)
304 ->isTrashFolder($isTrashFolder)
306 $mailtable->setSelectedItems(
$_POST[
'mail_id']);
310 $mailtable->prepareHTML();
315 $this->lng->txt($e->getMessage()) !=
'-'.$e->getMessage().
'-' ?
316 $this->lng->txt($e->getMessage()) :
321 $table_html = $mailtable->getHtml();
323 $folder_options = array();
326 foreach($folders as $folder)
328 $folder_d = $mtree->getNodeData($folder[
'obj_id']);
330 if($folder[
'obj_id'] ==
$_GET[
'mobj_id'])
332 if($folder[
'type'] ==
'user_folder')
336 else if($folder[
'type'] ==
'local')
343 if($folder[
'type'] ==
'user_folder')
346 for ($i = 2; $i < $folder_d[
'depth'] - 1; $i++)
351 if ($folder_d[
'depth'] > 1)
356 $folder_options[$folder[
'obj_id']] = $pre.
' '.$folder[
'title'];
360 $folder_options[$folder[
'obj_id']] = $this->lng->txt(
'mail_'.$folder[
'title']);
365 if($a_show_confirmation ==
false)
369 $ilToolbar->addText($this->lng->txt(
'mail_change_to_folder'));
370 include_once
'./Services/Form/classes/class.ilSelectInputGUI.php';
372 $si->setOptions($folder_options);
374 $ilToolbar->addInputItem(
$si);
376 $ilToolbar->addFormButton($this->lng->txt(
'change'),
'showFolder');
377 $ilToolbar->setFormAction($this->ctrl->getFormAction($this,
'showFolder'));
379 if($check_local ==
true || $check_uf ==
true)
386 if($mailtable->isTrashFolder() &&
387 $mailtable->getNumerOfMails() > 0 &&
388 $this->askForConfirmation)
391 $confirmation->setHeaderText($this->lng->txt(
'mail_empty_trash_confirmation'));
392 $confirmation->setFormAction($this->ctrl->getFormAction($this,
'performEmptyTrash'));
393 $confirmation->setConfirm($this->lng->txt(
'confirm'),
'performEmptyTrash');
394 $confirmation->setCancel($this->lng->txt(
'cancel'),
'cancelEmptyTrash');
395 $this->tpl->setVariable(
'CONFIRMATION', $confirmation->getHTML());
398 $this->tpl->setVariable(
'MAIL_TABLE', $table_html);
406 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
410 $oConfirmationGUI->setFormAction($this->ctrl->getFormAction($this,
"showFolder"));
411 $oConfirmationGUI->setHeaderText($this->lng->txt(
"mail_sure_delete_folder"));
412 $oConfirmationGUI->setCancel($this->lng->txt(
"cancel"),
"showFolder");
413 $oConfirmationGUI->setConfirm($this->lng->txt(
"confirm"),
"performDeleteSubfolder");
414 $this->tpl->setVariable(
'CONFIRMATION',$oConfirmationGUI->getHTML());
416 return $this->showFolder(
true);
419 return $this->showFolder(
false);
424 $new_parent = $this->mbox->getParentFolderId(
$_GET[
"mobj_id"]);
426 if ($this->mbox->deleteFolder(
$_GET[
"mobj_id"]))
430 $this->ctrl->setParameterByClass(
"ilMailGUI",
"mobj_id", $new_parent);
431 $this->ctrl->redirectByClass(
"ilMailGUI");
436 return $this->showFolder();
444 if (empty(
$_POST[
'subfolder_title']))
447 return $this->addSubFolder();
454 $this->ctrl->setParameterByClass(
"ilMailGUI",
'mobj_id', $mobj_id);
455 $this->ctrl->redirectByClass(
"ilMailGUI");
460 return $this->addSubFolder();
464 public function addSubFolder()
472 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
474 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.mail.html',
'Services/Mail');
475 $tpl->setTitle($this->lng->txt(
'mail'));
478 $oForm->setFormAction($ilCtrl->getFormAction($this,
'performAddSubFolder'));
479 $oForm->setTitle($this->lng->txt(
'mail_add_folder'));
483 $oTitle->setTitle($this->lng->txt(
'title'));
484 $oTitle->setPostVar(
'subfolder_title');
485 $oForm->addItem($oTitle);
487 $oForm->addCommandButton(
'performAddSubFolder', $this->lng->txt(
'save'));
488 $oForm->addCommandButton(
'showFolder', $this->lng->txt(
'cancel'));
490 $tpl->setVariable(
'FORM', $oForm->getHTML());
496 public function renameSubFolder()
504 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
506 $tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.mail.html',
'Services/Mail');
507 $tpl->setTitle($this->lng->txt(
'mail'));
510 $oForm->setFormAction($ilCtrl->getFormAction($this,
'performRenameSubFolder'));
511 $oForm->setTitle($this->lng->txt(
'mail_rename_folder'));
515 $oTitle->setTitle($this->lng->txt(
'title'));
516 $tmp_data = $this->mbox->getFolderData(
$_GET[
"mobj_id"]);
517 $oTitle->setValue($tmp_data[
"title"]);
518 $oTitle->setPostVar(
'subfolder_title');
519 $oForm->addItem($oTitle);
521 $oForm->addCommandButton(
'performRenameSubFolder', $this->lng->txt(
'save'));
522 $oForm->addCommandButton(
'showFolder', $this->lng->txt(
'cancel'));
523 $tpl->setVariable(
'FORM', $oForm->getHTML());
533 $tmp_data = $this->mbox->getFolderData(
$_GET[
"mobj_id"]);
534 if ($tmp_data[
"title"] !=
$_POST[
"subfolder_title"])
536 if (
$_POST[
"subfolder_title"] ==
"")
539 return $this->renameSubFolder();
547 $this->ctrl->redirectByClass(
"ilMailGUI");
552 return $this->renameSubFolder();
556 return $this->showFolder();
561 switch ($this->current_selected_cmd)
564 if(!(
int)
$_GET[
"mail_id"] || !(
int)$this->current_selected_cmd)
567 return $this->showMail();
570 if ($this->umail->moveMailsToFolder(array(
$_GET[
"mail_id"]), $this->current_selected_cmd))
573 $this->ctrl->redirectByClass(
"ilMailGUI");
589 switch ($this->current_selected_cmd)
591 case 'markMailsRead':
592 if(is_array(
$_POST[
"mail_id"]))
594 $this->umail->markRead(
$_POST[
"mail_id"]);
601 case 'markMailsUnread':
602 if(is_array(
$_POST[
"mail_id"]))
604 $this->umail->markUnread(
$_POST[
"mail_id"]);
614 if($this->mbox->getTrashFolder() ==
$_GET[
"mobj_id"])
616 if(!is_array(
$_POST[
"mail_id"]))
619 $this->errorDelete =
true;
625 if(!is_array(
$_POST[
"mail_id"]))
629 else if($this->umail->moveMailsToFolder(
$_POST[
"mail_id"], $this->mbox->getTrashFolder()))
642 $this->ctrl->setParameterByClass(
"ilmailoptionsgui",
"cmd",
"add");
643 $this->ctrl->redirectByClass(
"ilmailoptionsgui");
647 if(!is_array(
$_POST[
"mail_id"]))
651 else if($this->umail->moveMailsToFolder(
$_POST[
"mail_id"],$this->current_selected_cmd))
670 if($this->mbox->getTrashFolder() ==
$_GET[
'mobj_id'])
672 $_POST[
'mail_id'] = $mail_ids = explode(
',',
$_GET[
'mail_id']);
673 if(!is_array($mail_ids))
677 else if($this->umail->deleteMails($mail_ids))
693 $this->ctrl->redirect($this);
699 public function showMail()
706 global
$ilUser, $ilToolbar, $ilTabs;
714 $ilTabs->clearTargets();
715 $ilTabs->setBackTarget($this->lng->txt(
'back_to_folder'), $this->ctrl->getFormAction($this,
'showFolder'));
717 $this->umail->markRead(array((
int)
$_GET[
'mail_id']));
718 $mailData = $this->umail->getMail((
int)$_GET[
'mail_id']);
720 $this->tpl->setTitle($this->lng->txt(
'mail_mails_of'));
722 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
725 $form->setTableWidth(
'100%');
726 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
727 $form->setFormAction($this->ctrl->getFormAction($this,
'showMail'));
728 $this->ctrl->clearParameters($this);
729 $form->setTitle($this->lng->txt(
'mail_mails_of'));
736 include_once
'Services/Accessibility/classes/class.ilAccessKeyGUI.php';
743 if($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID)
745 $this->ctrl->setParameterByClass(
'ilmailformgui',
'mail_id', (
int)$_GET[
'mail_id']);
746 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'reply');
747 $this->ctrl->clearParametersByClass(
'iliasmailformgui');
748 $ilToolbar->addButton($this->lng->txt(
'reply'), $this->ctrl->getLinkTargetByClass(
'ilmailformgui'),
'',
ilAccessKey::REPLY);
749 $this->ctrl->clearParameters($this);
752 $this->ctrl->setParameterByClass(
'ilmailformgui',
'mail_id', (
int)$_GET[
'mail_id']);
753 $this->ctrl->setParameterByClass(
'ilmailformgui',
'type',
'forward');
754 $this->ctrl->clearParametersByClass(
'iliasmailformgui');
755 $ilToolbar->addButton($this->lng->txt(
'forward'), $this->ctrl->getLinkTargetByClass(
'ilmailformgui'),
'',
ilAccessKey::FORWARD_MAIL);
756 $this->ctrl->clearParameters($this);
758 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
759 $ilToolbar->addButton($this->lng->txt(
'print'), $this->ctrl->getLinkTarget($this,
'printMail'),
'_blank');
760 $this->ctrl->clearParameters($this);
762 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
763 $this->ctrl->setParameter($this,
'selected_cmd',
'deleteMails');
764 $ilToolbar->addButton($this->lng->txt(
'delete'), $this->ctrl->getLinkTarget($this),
'',
ilAccessKey::DELETE);
765 $this->ctrl->clearParameters($this);
767 if($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID)
769 $linked_fullname = $sender->getPublicName();
770 $picture =
ilUtil::img($sender->getPersonalPicturePath(
'xsmall'), $sender->getPublicName());
771 $add_to_addb_button =
'';
775 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
776 $this->ctrl->setParameter($this,
'user', $sender->getId());
777 $linked_fullname =
'<br /><a href="' . $this->ctrl->getLinkTarget($this,
'showUser') .
'" title="'.$linked_fullname.
'">' . $linked_fullname .
'</a>';
778 $this->ctrl->clearParameters($this);
781 if($sender->getId() != $ilUser->getId())
783 require_once
'Services/Contact/classes/class.ilAddressbook.php';
785 if($abook->checkEntryByLogin($sender->getLogin()) == 0)
787 $tplbtn =
new ilTemplate(
'tpl.buttons.html',
true,
true);
789 $tplbtn->setCurrentBlock(
'btn_cell');
790 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
791 $tplbtn->setVariable(
'BTN_LINK', $this->ctrl->getLinkTarget($this,
'add'));
792 $this->ctrl->clearParameters($this);
793 $tplbtn->setVariable(
'BTN_TXT', $this->lng->txt(
'mail_add_to_addressbook'));
794 $tplbtn->parseCurrentBlock();
796 $add_to_addb_button =
'<br />' . $tplbtn->get();
801 $from->
setHtml($picture .
' ' . $linked_fullname . $add_to_addb_button);
802 $form->addItem($from);
804 else if(!$sender || !$sender->getId())
807 $from->
setHtml($mailData[
'import_name'] .
' (' . $this->lng->txt(
'user_deleted') .
')');
808 $form->addItem($from);
814 $form->addItem($from);
821 if($mailData[
'rcp_cc'])
828 if($mailData[
'rcp_bcc'])
832 $form->addItem($bcc);
837 $form->addItem($subject);
841 $form->addItem($date);
845 $form->addItem($message);
847 if($mailData[
'attachments'])
853 foreach($mailData[
'attachments'] as
$file)
858 $att->
setHtml($radiog->render());
859 $form->addCommandButton(
'deliverFile', $this->lng->txt(
'download'));
860 $form->addItem($att);
863 $isTrashFolder =
false;
864 if($this->mbox->getTrashFolder() == $_GET[
'mobj_id'])
866 $isTrashFolder =
true;
869 $current_folder_data = $this->mbox->getFolderData((
int)$_GET[
'mobj_id']);
871 $selectOptions = array();
872 $actions = $this->mbox->getActions((
int)$_GET[
"mobj_id"]);
873 foreach($actions as $key => $action)
875 if($key ==
'moveMails')
877 $folders = $this->mbox->getSubFolders();
878 foreach($folders as $folder)
881 ($folder[
"type"] !=
'trash' || !$isTrashFolder) &&
882 $folder[
'obj_id'] != $current_folder_data[
'obj_id']
886 if($folder[
'type'] !=
'user_folder')
888 $optionText = $action .
' ' . $this->lng->txt(
'mail_' . $folder[
'title']) . ($folder[
'type'] ==
'trash' ?
' (' . $this->lng->txt(
'delete') .
')' :
'');
892 $optionText = $action .
' ' . $folder[
'title'];
895 $selectOptions[$folder[
'obj_id']] = $optionText;
901 if($current_folder_data[
'type'] ==
'user_folder')
903 $txt_folder = $current_folder_data[
'title'];
907 $txt_folder = $this->lng->txt(
'mail_' . $current_folder_data[
'title']);
909 $ilToolbar->addSeparator();
910 $ilToolbar->addText(sprintf($this->lng->txt(
'current_folder'), $txt_folder));
912 if(is_array($selectOptions) && count($selectOptions))
914 include_once
'Services/Form/classes/class.ilSelectInputGUI.php';
916 $actions->setOptions($selectOptions);
917 $this->ctrl->setParameter($this,
'mail_id', (
int)$_GET[
'mail_id']);
918 $ilToolbar->setFormAction($this->ctrl->getFormAction($this,
'showMail'));
919 $ilToolbar->addInputItem($actions);
920 $ilToolbar->addFormButton($this->lng->txt(
'submit'),
'changeFolder');
924 $prevMail = $this->umail->getPreviousMail((
int)$_GET[
'mail_id']);
925 $nextMail = $this->umail->getNextMail((
int)$_GET[
'mail_id']);
926 if(is_array($prevMail) || is_array($nextMail))
928 $ilToolbar->addSeparator();
930 if($prevMail[
'mail_id'])
932 $this->ctrl->setParameter($this,
'mail_id', $prevMail[
'mail_id']);
933 $ilToolbar->addButton($this->lng->txt(
'previous'), $this->ctrl->getLinkTarget($this,
'showMail'));
934 $this->ctrl->clearParameters($this);
937 if($nextMail[
'mail_id'])
939 $this->ctrl->setParameter($this,
'mail_id', $nextMail[
'mail_id']);
940 $ilToolbar->addButton($this->lng->txt(
'next'), $this->ctrl->getLinkTarget($this,
'showMail'));
941 $this->ctrl->clearParameters($this);
945 $this->tpl->setContent($form->getHTML());
952 public function printMail()
959 $tplprint =
new ilTemplate(
'tpl.mail_print.html',
true,
true,
'Services/Mail');
960 $tplprint->setVariable(
'JSPATH', $tpl->tplPath);
962 $mailData = $this->umail->getMail((
int)$_GET[
'mail_id']);
969 $tplprint->setVariable(
'TXT_FROM', $this->lng->txt(
'from'));
970 if($sender && $sender->getId() && $sender->getId() != ANONYMOUS_USER_ID)
972 $tplprint->setVariable(
'FROM', $sender->getPublicName());
974 else if(!$sender || !$sender->getId())
976 $tplprint->setVariable(
'FROM', $mailData[
'import_name'] .
' (' . $this->lng->txt(
'user_deleted') .
')');
980 $tplprint->setVariable(
'FROM', ilMail::_getIliasMailerName());
983 $tplprint->setVariable(
'TXT_TO', $this->lng->txt(
'mail_to'));
984 $tplprint->setVariable(
'TO', $mailData[
'rcp_to']);
986 if($mailData[
'rcp_cc'])
988 $tplprint->setCurrentBlock(
'cc');
989 $tplprint->setVariable(
'TXT_CC', $this->lng->txt(
'cc'));
990 $tplprint->setVariable(
'CC', $mailData[
'rcp_cc']);
991 $tplprint->parseCurrentBlock();
994 if($mailData[
'rcp_bcc'])
996 $tplprint->setCurrentBlock(
'bcc');
997 $tplprint->setVariable(
'TXT_BCC', $this->lng->txt(
'bc'));
998 $tplprint->setVariable(
'BCC', $mailData[
'rcp_bcc']);
999 $tplprint->parseCurrentBlock();
1002 $tplprint->setVariable(
'TXT_SUBJECT', $this->lng->txt(
'subject'));
1003 $tplprint->setVariable(
'SUBJECT', htmlspecialchars($mailData[
'm_subject']));
1005 $tplprint->setVariable(
'TXT_DATE', $this->lng->txt(
'date'));
1008 $tplprint->setVariable(
'TXT_MESSAGE', $this->lng->txt(
'message'));
1009 $tplprint->setVariable(
'MAIL_MESSAGE', nl2br(htmlspecialchars($mailData[
'm_message'])));
1018 $_GET[
"mail_id"] =
$_SESSION[
"mail_id"];
1026 : $_GET[
"filename"]));
1031 require_once
"./Services/Mail/classes/class.ilFileDataMail.php";
1037 if(!is_array($file = $mfile->getAttachmentPathByMD5Filename(
$filename, $_GET[
'mail_id'])))
1059 $sentFolderId = $this->mbox->getSentFolder();
1060 $draftsFolderId = $this->mbox->getDraftsFolder();
1062 $isTrashFolder = $_GET[
'mobj_id'] == $this->mbox->getTrashFolder();
1063 $isSentFolder = $_GET[
'mobj_id'] == $sentFolderId;
1064 $isDraftFolder = $_GET[
'mobj_id'] == $draftsFolderId;
1067 $table->isSentFolder($isSentFolder)
1068 ->isDraftFolder($isDraftFolder)
1069 ->isTrashFolder($isTrashFolder)
1071 $table->resetOffset();
1072 $table->writeFilterToSession();
1074 $this->showFolder();
1082 $sentFolderId = $this->mbox->getSentFolder();
1083 $draftsFolderId = $this->mbox->getDraftsFolder();
1085 $isTrashFolder = $_GET[
'mobj_id'] == $this->mbox->getTrashFolder();
1086 $isSentFolder = $_GET[
'mobj_id'] == $sentFolderId;
1087 $isDraftFolder = $_GET[
'mobj_id'] == $draftsFolderId;
1090 $table->isSentFolder($isSentFolder)
1091 ->isDraftFolder($isDraftFolder)
1092 ->isTrashFolder($isTrashFolder)
1094 $table->resetOffset();
1095 $table->resetFilter();
1097 $this->showFolder();