1 <?php
2 /*
3 This code is part of GOsa (https://gosa.gonicus.de)
4 Copyright (C) 2004 Cajus Pollmeier
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
22 class mailMethod
23 {
24 var $uattrib= "uid";
25 var $folder_prefix = "";
26 var $user_prefix = "";
28 function mailMethod(&$config)
29 {
30 /* Check if the mail account identification attribute
31 is overridden in the configuration file
32 */
33 if($config->get_cfg_value("mailAttribute") != ""){
34 $new_uattrib= strtolower($config->get_cfg_value("mailAttribute"));
35 if(in_array($new_uattrib,array("mail","uid"))){
36 $this->uattrib = $new_uattrib;
37 }else{
38 trigger_error(sprintf("Unsupported 'mailAttribute' in gosa configuration specified, use 'mail' or 'uid', instead of '%s'.", $new_uattrib));
39 }
40 }
41 }
43 function connect($gosaMailServer)
44 {
45 return (TRUE);
46 }
48 function disconnect()
49 {
50 }
52 function getQuota($folder)
53 {
54 return (array('quotaUsage' => 0, 'gosaMailQuota' => 0));
55 }
57 function getMailboxList($folder, $uid)
58 {
59 return (array("INBOX"));
60 }
62 function setQuota($folder, $gosaMailQuota)
63 {
64 return (TRUE);
65 }
67 function updateMailbox($folder)
68 {
69 }
71 function deleteMailbox($folder)
72 {
73 return (TRUE);
74 }
76 function setSharedFolderPermissions($folder, $permissions)
77 {
78 }
80 function configureFilter($user, $gosaMailDeliveryMode,
81 $mail, $gosaMailAlternateAddress,
82 $gosaMailMaxSize,
83 $gosaSpamMailbox, $gosaSpamSortLevel,
84 $gosaVacationMessage)
85 {
86 }
88 function fixAttributesOnLoad(&$mailObject)
89 {
90 }
92 function fixAttributesOnStore(&$mailObject)
93 {
94 }
96 function fixAttributesOnRemove(&$mailObject)
97 {
98 }
100 }
102 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
103 ?>