<tr><thcolspan="2"><b><?php__("Is this email enabled?");?></b></th></tr>
<tr><tdstyle="width: 50%; text-align: justify"><?php__("You can enable or disable this email anytime. This will bounce any mail received on this address, but will not delete the stored email, or the redirections or password.");?><br/>
<tr><thcolspan="2"><b><?php__("Is it a POP/IMAP account?");?></b></th></tr>
<tr><tdstyle="width: 50%; text-align: justify"><?php__("POP/IMAP accounts are receiving emails in the server. To read those emails, you can use a Webmail, or a mail client such as Thunderbird. If you don't use POP/IMAP, you can configure your email to be a redirection to other existing emails. The maximum size is in megabytes, use 0 to make it infinite.");?><br/>
<p> </p>
<?phpif($islocal){?>
<p><?phpprintf(_('This mailbox is currently using %1$s / %2$s'),format_size($used),format_size($quotabytes));?></p>
<?php}?>
<?phpif($mailbox_action=="DELETE"){?>
<p><spanclass="error"><?php__("This mailbox is pending deletion. You can recover its mails by setting it to 'Yes' NOW!");?></span></p>
<?php}?>
</td>
<td>
<p>
...
...
@@ -61,7 +94,7 @@ foreach($res as $key=>$val) $$key=$val;
<tableclass="tedit">
<tr><td><labelfor="pass"><?php__("Enter a POP/IMAP password");?></label></td><td><inputtype="password"class="int"name="pass"id="pass"value=""size="20"maxlength="32"/></td></tr>
<tr><td><labelfor="quota"><?php__("Maximum allowed size of this Mailbox");?></label></td><td><inputtype="text"class="int intleft"style="text-align: right"name="quota"id="quota"value="<?phpehe($quota);?>"size="7"maxlength="6"/><spanclass="int intright"><?php__("MB");?></span></td></tr>
<tr><td><labelfor="quotamb"><?php__("Maximum allowed size of this Mailbox");?></label></td><td><inputtype="text"class="int intleft"style="text-align: right"name="quotamb"id="quotamb"value="<?phpehe($quotamb);?>"size="7"maxlength="6"/><spanclass="int intright"><?php__("MB");?></span></td></tr>
$err->raise("mail",_("The email you entered is syntaxically incorrect"));
returnfalse;
}
...
...
@@ -211,10 +211,13 @@ class m_mail {
$err->log("mail","get_details");
$mail_id=intval($mail_id);
// Validate that this email is owned by me...
if(!($mail=$this->is_it_my_mail($mail_id))){
returnfalse;
}
// We fetch all the informations for that email: these will fill the hastable :
$db->query("SELECT a.address, a.password, a.`enabled`, d.domaine AS domain, m.quota, m.quota*1024*1024 AS quotabytes, m.bytes AS used, NOT ISNULL(m.id) AS islocal, a.type, r.recipients, m.lastlogin
FROM (address a LEFT JOIN mailbox m ON m.address_id=a.id) LEFT JOIN recipient r ON r.address_id=a.id, domaines d WHERE a.id=$mail_id AND d.id=a.domain_id;");
$db->query("SELECT a.address, a.password, a.enabled, d.domaine AS domain, m.quota, m.quota*1024*1024 AS quotabytes, m.bytes AS used, NOT ISNULL(m.id) AS islocal, a.type, r.recipients, m.lastlogin, a.mail_action, m.mail_action AS mailbox_action FROM (address a LEFT JOIN mailbox m ON m.address_id=a.id) LEFT JOIN recipient r ON r.address_id=a.id, domaines d WHERE a.id=".$mail_id." AND d.id=a.domain_id;");
if(!$db->next_record())returnfalse;
$details=$db->Record;
// if necessary, fill the typedata with data from hooks ...