Skip to content

Commit 099b03c

Browse files
committed
Show info message in inbox folder if "only local incoming mails" configured
1 parent 2a54ce0 commit 099b03c

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

components/ILIAS/Mail/classes/class.ilMailFolderGUI.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,13 @@ protected function showFolder(): void
481481
self::PARAM_TARGET_FOLDER
482482
);
483483

484+
if ($this->folder->isInbox()) {
485+
$mail_options = new ilMailOptions($this->user->getId());
486+
if ($mail_options->getIncomingType() === ilMailOptions::INCOMING_LOCAL) {
487+
$this->tpl->setOnScreenMessage(ilGlobalTemplateInterface::MESSAGE_TYPE_INFO, $this->lng->txt('incoming_local_no_new_mails_inbox'), true);
488+
}
489+
}
490+
484491
$table = new MailFolderTableUI(
485492
$url_builder,
486493
$action_token,

lang/ilias_de.lang

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11451,6 +11451,7 @@ lti#:#user_lng#:#Sprache
1145111451
lti#:#user_provider_subtab#:#Lokal definierte Provider bzw. Tools
1145211452
ltiv#:#ltiv_create#:#Zertifikat für LTI-Konsument-Objekt erstellen
1145311453
ltiv#:#ltiv_create_info#:#Wählen Sie ein abgeschlossenes LTI-Konsument-Objekt aus, um ein Zertifikat dafür zu generieren.
11454+
mail#:#incoming_local_no_new_mails_inbox#:#Ihr Konto ist so konfiguriert, dass E-Mails an Ihre E-Mail-Adresse empfangen werden. <br>Sie können E-Mails in diesem Posteingang nur sehen, wenn Ihr Konto so konfiguriert ist, dass diese lokal empfangen werden.
1145411455
mail#:#back_to_folder#:#Zurück zum Ordner
1145511456
mail#:#chat_users_have_been_invited#:#Die Benutzer wurden eingeladen:
1145611457
mail#:#chat_users_without_login#:#Die folgenden Benutzer haben kein ILIAS-Konto und können nicht eingeladen werden:
@@ -17896,4 +17897,4 @@ wsp#:#wsp_type_ltiv#:#Zertifikat: LTI-Konsument
1789617897
wsp#:#wsp_type_scov#:#Zertifikat: SCORM
1789717898
wsp#:#wsp_type_tstv#:#Zertifikat: Test
1789817899
wsp#:#wsp_type_webr#:#Weblink
17899-
wsp#:#wsp_type_wfld#:#Ordner
17900+
wsp#:#wsp_type_wfld#:#Ordner

lang/ilias_en.lang

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11452,6 +11452,7 @@ lti#:#user_lng#:#User Languague
1145211452
lti#:#user_provider_subtab#:#Providers Defined by Users
1145311453
ltiv#:#ltiv_create#:#Create Certificate for LTI Consumer Object
1145411454
ltiv#:#ltiv_create_info#:#Select a completed LTI consumer object to generate a certificate for it
11455+
mail#:#incoming_local_no_new_mails_inbox#:#Your account is configured to receive mails to your mail address. <br>You can only see mails in this inbox if your account is configured to receive them locally.
1145511456
mail#:#back_to_folder#:#Back to Folder
1145611457
mail#:#chat_users_have_been_invited#:#The following users have been invited:
1145711458
mail#:#chat_users_without_login#:#The following users don't have an ILIAS account and can't be invited to a chat room:
@@ -17897,4 +17898,4 @@ wsp#:#wsp_type_ltiv#:#Certificate: LTI Consumer
1789717898
wsp#:#wsp_type_scov#:#Certificate: SCORM
1789817899
wsp#:#wsp_type_tstv#:#Certificate: Test
1789917900
wsp#:#wsp_type_webr#:#Weblink
17900-
wsp#:#wsp_type_wfld#:#Folder
17901+
wsp#:#wsp_type_wfld#:#Folder

0 commit comments

Comments
 (0)