From 6c6013e147415d811160a5d283f280979b01883e Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Fri, 15 Jan 2016 15:13:12 +0100 Subject: [PATCH] spit out a Warning when editing a mailbox without POP OR RECIPIENTS. Fixes #18 --- bureau/class/m_mail.php | 3 +++ bureau/locales/fr_FR/LC_MESSAGES/messages.po | 3 +++ 2 files changed, 6 insertions(+) diff --git a/bureau/class/m_mail.php b/bureau/class/m_mail.php index 250f23aa..41c41f9b 100644 --- a/bureau/class/m_mail.php +++ b/bureau/class/m_mail.php @@ -720,6 +720,9 @@ ORDER BY if (isset($red) && $red) { $db->query("INSERT INTO recipient SET address_id=" . $mail_id . ", recipients='" . addslashes($red) . "';"); } + if (!$islocal && !$red) { + $err->raise("mail", _("Warning: you created an email which is not an alias, and not a POP/IMAP mailbox. This is certainly NOT what you want to do. To fix this, edit the email address and check 'Yes' in POP/IMAP account, or set some recipients in the redirection field.")); + } return true; } diff --git a/bureau/locales/fr_FR/LC_MESSAGES/messages.po b/bureau/locales/fr_FR/LC_MESSAGES/messages.po index feb310a2..fb54c323 100644 --- a/bureau/locales/fr_FR/LC_MESSAGES/messages.po +++ b/bureau/locales/fr_FR/LC_MESSAGES/messages.po @@ -5523,3 +5523,6 @@ msgstr "Fichier Real Media" #~ msgid "The name you entered is incorrect" #~ msgstr "Le nom que vous avez entré est incorrect" + +msgid "Warning: you created an email which is not an alias, and not a POP/IMAP mailbox. This is certainly NOT what you want to do. To fix this, edit the email address and check 'Yes' in POP/IMAP account, or set some recipients in the redirection field." +msgstr "Attention : vous avez créé une adresse email qui n'est ni un alias, ni une boite POP/IMAP. Ce n'est probablement PAS ce que vous vouliez faire. Pour corriger cela, modifiez l'adresse mail, et choisissez 'Oui' dans Compte POP/IMAP ou entrez des destinataires dans le champ redirections."