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'])){
32 $this->uattrib = $config->current['MAIL_ATTRIB'];
33 }
34 }
36 function connect($gosaMailServer)
37 {
38 return (TRUE);
39 }
41 function disconnect()
42 {
43 }
45 function getQuota($folder)
46 {
47 return (array('quotaUsage' => 0, 'gosaMailQuota' => 0));
48 }
50 function getMailboxList($folder, $uid)
51 {
52 return (array("INBOX"));
53 }
55 function setQuota($folder, $gosaMailQuota)
56 {
57 return (TRUE);
58 }
60 function updateMailbox($folder)
61 {
62 }
64 function deleteMailbox($folder)
65 {
66 return (TRUE);
67 }
69 function setSharedFolderPermissions($folder, $permissions)
70 {
71 }
73 function configureFilter($user, $gosaMailDeliveryMode,
74 $mail, $gosaMailAlternateAddress,
75 $gosaMailMaxSize,
76 $gosaSpamMailbox, $gosaSpamSortLevel,
77 $gosaVacationMessage)
78 {
79 }
81 function fixAttributesOnLoad(&$mailObject)
82 {
83 }
85 function fixAttributesOnStore(&$mailObject)
86 {
87 }
89 function fixAttributesOnRemove(&$mailObject)
90 {
91 }
93 }
95 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
96 ?>