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";
26 function mailMethod(&$config)
27 {
28 /* Check if the mail account identification attribute
29 is overridden in the configuration file
30 */
31 if(isset($config->current['MAIL_ATTRIB']) && !empty($config->current['MAIL_ATTRIB'])){
32 $new_uattrib= strtolower($config->current['MAIL_ATTRIB']);
33 if(in_array($new_uattrib,array("mail","uid"))){
34 $this->uattrib = $new_uattrib;
35 }else{
36 trigger_error(sprintf("Unsupported MAIL_ATTRIB in gosa configuration specified, use 'mail' or 'uid', instead of '%s'.", $new_uattrib));
37 }
38 }
39 }
41 function connect($gosaMailServer)
42 {
43 return (TRUE);
44 }
46 function disconnect()
47 {
48 }
50 function getQuota($folder)
51 {
52 return (array('quotaUsage' => 0, 'gosaMailQuota' => 0));
53 }
55 function getMailboxList($folder, $uid)
56 {
57 return (array("INBOX"));
58 }
60 function setQuota($folder, $gosaMailQuota)
61 {
62 return (TRUE);
63 }
65 function updateMailbox($folder)
66 {
67 }
69 function deleteMailbox($folder)
70 {
71 return (TRUE);
72 }
74 function setSharedFolderPermissions($folder, $permissions)
75 {
76 }
78 function configureFilter($user, $gosaMailDeliveryMode,
79 $mail, $gosaMailAlternateAddress,
80 $gosaMailMaxSize,
81 $gosaSpamMailbox, $gosaSpamSortLevel,
82 $gosaVacationMessage)
83 {
84 }
86 function fixAttributesOnLoad(&$mailObject)
87 {
88 }
90 function fixAttributesOnStore(&$mailObject)
91 {
92 }
94 function fixAttributesOnRemove(&$mailObject)
95 {
96 }
98 }
100 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
101 ?>