mail-xmlrpc.php File Reference

Go to the source code of this file.

Functions

 addMailGroup ($group, $mail)
 addMailObjectClass ($login)
 addVDomain ($domain)
 changeMailalias ($login, $aliaslist)
 changeMailbox ($login, $mailbox)
 changeMaildrop ($login, $droplist)
 changeMailEnable ($login, $boolean)
 changeMailhost ($login, $mailhost)
 changeQuota ($login, $mailuserquota)
 cleanup_arr ($array)
 (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com (c) 2007-2008 Mandriva, http://www.mandriva.com/
 computeMailGroupAlias ($group)
 deleteMailGroupAliases ($group)
 delVDomain ($domain)
 getVDomain ($domain)
 getVDomains ($filter)
 getVDomainUsers ($domain, $filter)
 getVDomainUsersCount ($domain)
 hasGroupMailObjectClass ($group)
 hasMailObjectClass ($login)
 hasVDomainSupport ()
 removeMail ($login)
 removeMailGroup ($group)
 resetUsersVDomainQuota ($domain)
 setVDomainDescription ($domain, $description)
 setVDomainQuota ($domain, $quota)
 syncMailGroupAliases ($group, $foruser="*")


Function Documentation

addMailGroup ( group,
mail 
)

Definition at line 73 of file mail-xmlrpc.php.

References $group, and xmlCall().

Referenced by _mail_changeGroup().

00073                                      {
00074     return xmlCall("mail.addMailGroup",array($group, $mail));
00075 }

Here is the call graph for this function:

addMailObjectClass ( login  ) 

Definition at line 77 of file mail-xmlrpc.php.

References $login, and xmlCall().

00077                                     {
00078     xmlCall("mail.addMailObjectClass", $login);
00079 }

Here is the call graph for this function:

addVDomain ( domain  ) 

Definition at line 104 of file mail-xmlrpc.php.

References $domain, and xmlCall().

00104                              {
00105     xmlCall("mail.addVDomain", array($domain));
00106 }

Here is the call graph for this function:

changeMailalias ( login,
aliaslist 
)

Definition at line 49 of file mail-xmlrpc.php.

References $login, cleanup_arr(), and xmlCall().

00049                                             {
00050     return xmlCall("mail.changeMailalias",array($login, cleanup_arr($aliaslist)));
00051 }

Here is the call graph for this function:

changeMailbox ( login,
mailbox 
)

Definition at line 53 of file mail-xmlrpc.php.

References $login, and xmlCall().

00053                                          {
00054     return xmlCall("mail.changeMailbox", array($login, $mailbox));
00055 }

Here is the call graph for this function:

changeMaildrop ( login,
droplist 
)

Definition at line 41 of file mail-xmlrpc.php.

References $arr, $login, cleanup_arr(), hasVDomainSupport(), and xmlCall().

00041                                            {
00042     $arr = cleanup_arr($droplist);
00043     if ((count($arr) == 0) && !hasVDomainSupport()) {
00044       return; //if no maildrop specified
00045     }
00046     return xmlCall("mail.changeMaildrop",array($login,$arr));
00047 }

Here is the call graph for this function:

changeMailEnable ( login,
boolean 
)

Definition at line 37 of file mail-xmlrpc.php.

References $login, and xmlCall().

00037                                            {
00038     return xmlCall("mail.changeMailEnable",array($login,$boolean));
00039 }

Here is the call graph for this function:

changeMailhost ( login,
mailhost 
)

Definition at line 57 of file mail-xmlrpc.php.

References $login, and xmlCall().

00057                                            {
00058     return xmlCall("mail.changeMailhost", array($login, $mailhost));
00059 }

Here is the call graph for this function:

changeQuota ( login,
mailuserquota 
)

Definition at line 61 of file mail-xmlrpc.php.

References $login, and xmlCall().

00061                                              {
00062     return xmlCall("mail.changeQuota", array($login, $mailuserquota));
00063 }

Here is the call graph for this function:

cleanup_arr ( array  ) 

(c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com (c) 2007-2008 Mandriva, http://www.mandriva.com/

Id
mail-xmlrpc.php 6756 2010-04-28 14:41:50Z cdelfosse

This file is part of Mandriva Management Console (MMC).

MMC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

MMC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with MMC; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 26 of file mail-xmlrpc.php.

Referenced by changeMailalias(), and changeMaildrop().

00026                              {
00027     /* FIXME: Do we need this function ? */
00028     $res = array();
00029     foreach ($array as $item) {
00030         if ((preg_match("/^([0-9a-zA-Z@._-]){1,}$/",$item))&&(array_search($item,$res)===False)) {
00031             $res[] = $item;
00032         }
00033     }
00034     return $res;
00035 }

computeMailGroupAlias ( group  ) 

Definition at line 140 of file mail-xmlrpc.php.

References $group, and xmlCall().

Referenced by _mail_baseGroupEdit().

00140                                        {
00141     return xmlCall("mail.computeMailGroupAlias", array($group));
00142 }

Here is the call graph for this function:

deleteMailGroupAliases ( group  ) 

Definition at line 81 of file mail-xmlrpc.php.

References $group, and xmlCall().

Referenced by _mail_changeGroup(), and _mail_delGroup().

00081                                         {
00082     xmlCall("mail.deleteMailGroupAliases", array($group));
00083 }

Here is the call graph for this function:

delVDomain ( domain  ) 

Definition at line 108 of file mail-xmlrpc.php.

References $domain, and xmlCall().

00108                              {
00109     xmlCall("mail.delVDomain", array($domain));
00110 }

Here is the call graph for this function:

getVDomain ( domain  ) 

Definition at line 124 of file mail-xmlrpc.php.

References $domain, and xmlCall().

00124                              {
00125     return xmlCall("mail.getVDomain", array($domain));
00126 }

Here is the call graph for this function:

getVDomains ( filter  ) 

Definition at line 128 of file mail-xmlrpc.php.

References $filter, and xmlCall().

Referenced by _mail_baseGroupEdit().

00128                               {
00129     return xmlCall("mail.getVDomains", array($filter));
00130 }

Here is the call graph for this function:

getVDomainUsers ( domain,
filter 
)

Definition at line 136 of file mail-xmlrpc.php.

References $domain, $filter, and xmlCall().

00136                                            {
00137     return xmlCall("mail.getVDomainUsers", array($domain, $filter));
00138 }

Here is the call graph for this function:

getVDomainUsersCount ( domain  ) 

Definition at line 132 of file mail-xmlrpc.php.

References $domain, and xmlCall().

00132                                        {
00133     return xmlCall("mail.getVDomainUsersCount", array($domain));
00134 }

Here is the call graph for this function:

hasGroupMailObjectClass ( group  ) 

Definition at line 93 of file mail-xmlrpc.php.

References $group, and xmlCall().

Referenced by _mail_baseGroupEdit(), and _mail_changeGroup().

00093                                          {
00094     return xmlCall("mail.hasMailGroupObjectClass", array($group));
00095 }

Here is the call graph for this function:

hasMailObjectClass ( login  ) 

Definition at line 89 of file mail-xmlrpc.php.

References $login, and xmlCall().

Referenced by _mail_baseEdit().

00089                                     {
00090     return xmlCall("mail.hasMailObjectClass",array($login));
00091 }

Here is the call graph for this function:

hasVDomainSupport (  ) 

Definition at line 97 of file mail-xmlrpc.php.

References $_SESSION, and xmlCall().

Referenced by _mail_baseEdit(), _mail_baseGroupEdit(), _mail_changeGroup(), and changeMaildrop().

00097                              {
00098     if (!isset($_SESSION["hasVDomainSupport"])) {
00099         $_SESSION["hasVDomainSupport"] = xmlCall("mail.hasVDomainSupport", null);
00100     }
00101     return $_SESSION["hasVDomainSupport"];
00102 }

Here is the call graph for this function:

removeMail ( login  ) 

Definition at line 65 of file mail-xmlrpc.php.

References $login, and xmlCall().

00065                             {
00066     return xmlCall("mail.removeMail",array($login));
00067 }

Here is the call graph for this function:

removeMailGroup ( group  ) 

Definition at line 69 of file mail-xmlrpc.php.

References $group, and xmlCall().

Referenced by _mail_changeGroup().

00069                                  {
00070     return xmlCall("mail.removeMailGroup",array($group));
00071 }

Here is the call graph for this function:

resetUsersVDomainQuota ( domain  ) 

Definition at line 120 of file mail-xmlrpc.php.

References $domain, and xmlCall().

00120                                          {
00121     xmlCall("mail.resetUsersVDomainQuota", array($domain));
00122 }

Here is the call graph for this function:

setVDomainDescription ( domain,
description 
)

Definition at line 112 of file mail-xmlrpc.php.

References $domain, and xmlCall().

00112                                                       {
00113     xmlCall("mail.setVDomainDescription", array($domain, $description));
00114 }

Here is the call graph for this function:

setVDomainQuota ( domain,
quota 
)

Definition at line 116 of file mail-xmlrpc.php.

References $domain, and xmlCall().

00116                                           {
00117     xmlCall("mail.setVDomainQuota", array($domain, $quota));
00118 }

Here is the call graph for this function:

syncMailGroupAliases ( group,
foruser = "*" 
)

Definition at line 85 of file mail-xmlrpc.php.

References $group, and xmlCall().

Referenced by _mail_addUserToGroup(), _mail_changeGroup(), _mail_changeUserPrimaryGroup(), and _mail_delUserFromGroup().

00085                                                       {
00086     xmlCall("mail.syncMailGroupAliases", array($group, $foruser));
00087 }

Here is the call graph for this function:


Generated on Tue May 4 11:47:54 2010 for MMC web interface by  doxygen 1.5.8