Creating branches/Stylite-EPL-11.1

This commit is contained in:
Ralf Becker 2011-07-01 10:37:47 +00:00
parent c13c463143
commit aee4ea4724
265 changed files with 68033 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,804 @@
<?php
require_once "HTTP/WebDAV/Server.php";
require_once "System.php";
/**
* Filesystem access using WebDAV
*
* @access public
* @author Hartmut Holzgraefe <hartmut@php.net>
* @version @package-version@
*/
class HTTP_WebDAV_Server_Filesystem extends HTTP_WebDAV_Server
{
/**
* Root directory for WebDAV access
*
* Defaults to webserver document root (set by ServeRequest)
*
* @access private
* @var string
*/
var $base = "";
/**
* MySQL Host where property and locking information is stored
*
* @access private
* @var string
*/
var $db_host = "localhost";
/**
* MySQL database for property/locking information storage
*
* @access private
* @var string
*/
var $db_name = "webdav";
/**
* MySQL table name prefix
*
* @access private
* @var string
*/
var $db_prefix = "";
/**
* MySQL user for property/locking db access
*
* @access private
* @var string
*/
var $db_user = "root";
/**
* MySQL password for property/locking db access
*
* @access private
* @var string
*/
var $db_passwd = "";
/**
* Serve a webdav request
*
* @access public
* @param string
*/
function ServeRequest($base = false)
{
// special treatment for litmus compliance test
// reply on its identifier header
// not needed for the test itself but eases debugging
foreach (apache_request_headers() as $key => $value) {
if (stristr($key, "litmus")) {
error_log("Litmus test $value");
header("X-Litmus-reply: ".$value);
}
}
// set root directory, defaults to webserver document root if not set
if ($base) {
$this->base = realpath($base); // TODO throw if not a directory
} else if (!$this->base) {
$this->base = $this->_SERVER['DOCUMENT_ROOT'];
}
// establish connection to property/locking db
mysql_connect($this->db_host, $this->db_user, $this->db_passwd) or die(mysql_error());
mysql_select_db($this->db_name) or die(mysql_error());
// TODO throw on connection problems
// let the base class do all the work
parent::ServeRequest();
}
/**
* No authentication is needed here
*
* @access private
* @param string HTTP Authentication type (Basic, Digest, ...)
* @param string Username
* @param string Password
* @return bool true on successful authentication
*/
function check_auth($type, $user, $pass)
{
return true;
}
/**
* PROPFIND method handler
*
* @param array general parameter passing array
* @param array return array for file properties
* @return bool true on success
*/
function PROPFIND(&$options, &$files)
{
// get absolute fs path to requested resource
$fspath = $this->base . $options["path"];
// sanity check
if (!file_exists($fspath)) {
return false;
}
// prepare property array
$files["files"] = array();
// store information for the requested path itself
$files["files"][] = $this->fileinfo($options["path"]);
// information for contained resources requested?
if (!empty($options["depth"])) { // TODO check for is_dir() first?
// make sure path ends with '/'
$options["path"] = $this->_slashify($options["path"]);
// try to open directory
$handle = @opendir($fspath);
if ($handle) {
// ok, now get all its contents
while ($filename = readdir($handle)) {
if ($filename != "." && $filename != "..") {
$files["files"][] = $this->fileinfo($options["path"].$filename);
}
}
// TODO recursion needed if "Depth: infinite"
closedir($handle);
}
}
// ok, all done
return true;
}
/**
* Get properties for a single file/resource
*
* @param string resource path
* @return array resource properties
*/
function fileinfo($path)
{
// map URI path to filesystem path
$fspath = $this->base . $path;
// create result array
$info = array();
// TODO remove slash append code when base clase is able to do it itself
$info["path"] = is_dir($fspath) ? $this->_slashify($path) : $path;
$info["props"] = array();
// no special beautified displayname here ...
$info["props"][] = $this->mkprop("displayname", strtoupper($path));
// creation and modification time
$info["props"][] = $this->mkprop("creationdate", filectime($fspath));
$info["props"][] = $this->mkprop("getlastmodified", filemtime($fspath));
// type and size (caller already made sure that path exists)
if (is_dir($fspath)) {
// directory (WebDAV collection)
$info["props"][] = $this->mkprop("resourcetype", array($this->mkprop('collection', '')));
$info["props"][] = $this->mkprop("getcontenttype", "httpd/unix-directory");
} else {
// plain file (WebDAV resource)
$info["props"][] = $this->mkprop("resourcetype", "");
if (is_readable($fspath)) {
$info["props"][] = $this->mkprop("getcontenttype", $this->_mimetype($fspath));
} else {
$info["props"][] = $this->mkprop("getcontenttype", "application/x-non-readable");
}
$info["props"][] = $this->mkprop("getcontentlength", filesize($fspath));
}
// get additional properties from database
$query = "SELECT ns, name, value
FROM {$this->db_prefix}properties
WHERE path = '$path'";
$res = mysql_query($query);
while ($row = mysql_fetch_assoc($res)) {
$info["props"][] = $this->mkprop($row["ns"], $row["name"], $row["value"]);
}
mysql_free_result($res);
return $info;
}
/**
* detect if a given program is found in the search PATH
*
* helper function used by _mimetype() to detect if the
* external 'file' utility is available
*
* @param string program name
* @param string optional search path, defaults to $PATH
* @return bool true if executable program found in path
*/
function _can_execute($name, $path = false)
{
// path defaults to PATH from environment if not set
if ($path === false) {
$path = getenv("PATH");
}
// check method depends on operating system
if (!strncmp(PHP_OS, "WIN", 3)) {
// on Windows an appropriate COM or EXE file needs to exist
$exts = array(".exe", ".com");
$check_fn = "file_exists";
} else {
// anywhere else we look for an executable file of that name
$exts = array("");
$check_fn = "is_executable";
}
// now check the directories in the path for the program
foreach (explode(PATH_SEPARATOR, $path) as $dir) {
// skip invalid path entries
if (!file_exists($dir)) continue;
if (!is_dir($dir)) continue;
// and now look for the file
foreach ($exts as $ext) {
if ($check_fn("$dir/$name".$ext)) return true;
}
}
return false;
}
/**
* try to detect the mime type of a file
*
* @param string file path
* @return string guessed mime type
*/
function _mimetype($fspath)
{
if (@is_dir($fspath)) {
// directories are easy
return "httpd/unix-directory";
} else if (function_exists("mime_content_type")) {
// use mime magic extension if available
$mime_type = mime_content_type($fspath);
} else if ($this->_can_execute("file")) {
// it looks like we have a 'file' command,
// lets see it it does have mime support
$fp = popen("file -i '$fspath' 2>/dev/null", "r");
$reply = fgets($fp);
pclose($fp);
// popen will not return an error if the binary was not found
// and find may not have mime support using "-i"
// so we test the format of the returned string
// the reply begins with the requested filename
if (!strncmp($reply, "$fspath: ", strlen($fspath)+2)) {
$reply = substr($reply, strlen($fspath)+2);
// followed by the mime type (maybe including options)
if (preg_match('|^[[:alnum:]_-]+/[[:alnum:]_-]+;?.*|', $reply, $matches)) {
$mime_type = $matches[0];
}
}
}
if (empty($mime_type)) {
// Fallback solution: try to guess the type by the file extension
// TODO: add more ...
// TODO: it has been suggested to delegate mimetype detection
// to apache but this has at least three issues:
// - works only with apache
// - needs file to be within the document tree
// - requires apache mod_magic
// TODO: can we use the registry for this on Windows?
// OTOH if the server is Windos the clients are likely to
// be Windows, too, and tend do ignore the Content-Type
// anyway (overriding it with information taken from
// the registry)
// TODO: have a seperate PEAR class for mimetype detection?
switch (strtolower(strrchr(basename($fspath), "."))) {
case ".html":
$mime_type = "text/html";
break;
case ".gif":
$mime_type = "image/gif";
break;
case ".jpg":
$mime_type = "image/jpeg";
break;
default:
$mime_type = "application/octet-stream";
break;
}
}
return $mime_type;
}
/**
* GET method handler
*
* @param array parameter passing array
* @return bool true on success
*/
function GET(&$options)
{
// get absolute fs path to requested resource
$fspath = $this->base . $options["path"];
// sanity check
if (!file_exists($fspath)) return false;
// is this a collection?
if (is_dir($fspath)) {
return $this->GetDir($fspath, $options);
}
// detect resource type
$options['mimetype'] = $this->_mimetype($fspath);
// detect modification time
// see rfc2518, section 13.7
// some clients seem to treat this as a reverse rule
// requiering a Last-Modified header if the getlastmodified header was set
$options['mtime'] = filemtime($fspath);
// detect resource size
$options['size'] = filesize($fspath);
// no need to check result here, it is handled by the base class
if (!($options['stream'] = fopen($fspath, "r")))
{
return '403 Forbidden';
}
return true;
}
/**
* GET method handler for directories
*
* This is a very simple mod_index lookalike.
* See RFC 2518, Section 8.4 on GET/HEAD for collections
*
* @param string directory path
* @return void function has to handle HTTP response itself
*/
function GetDir($fspath, &$options)
{
$path = $this->_slashify($options["path"]);
if ($path != $options["path"]) {
header("Location: ".$this->base_uri.$path);
exit;
}
// fixed width directory column format
$format = "%15s %-19s %-s\n";
$handle = @opendir($fspath);
if (!$handle) {
return false;
}
echo "<html><head><title>Index of ".htmlspecialchars($options['path'])."</title></head>\n";
echo "<h1>Index of ".htmlspecialchars($options['path'])."</h1>\n";
echo "<pre>";
printf($format, "Size", "Last modified", "Filename");
echo "<hr>";
while ($filename = readdir($handle)) {
if ($filename != "." && $filename != "..") {
$fullpath = $fspath.$filename;
$name = htmlspecialchars($filename);
printf($format,
number_format(filesize($fullpath)),
strftime("%Y-%m-%d %H:%M:%S", filemtime($fullpath)),
'<a href="'.$name.'">'.$name.'</a>');
}
}
echo "</pre>";
closedir($handle);
echo "</html>\n";
exit;
}
/**
* PUT method handler
*
* @param array parameter passing array
* @return bool true on success
*/
function PUT(&$options)
{
$fspath = $this->base . $options["path"];
if (!@is_dir(dirname($fspath))) {
return "409 Conflict";
}
$options["new"] = ! file_exists($fspath);
$fp = fopen($fspath, "w");
return $fp;
}
/**
* MKCOL method handler
*
* @param array general parameter passing array
* @return bool true on success
*/
function MKCOL($options)
{
$path = $this->base .$options["path"];
$parent = dirname($path);
$name = basename($path);
if (!file_exists($parent)) {
return "409 Conflict";
}
if (!is_dir($parent)) {
return "403 Forbidden";
}
if ( file_exists($parent."/".$name) ) {
return "405 Method not allowed";
}
if (!empty($this->_SERVER["CONTENT_LENGTH"])) { // no body parsing yet
return "415 Unsupported media type";
}
$stat = mkdir($parent."/".$name, 0777);
if (!$stat) {
return "403 Forbidden";
}
return ("201 Created");
}
/**
* DELETE method handler
*
* @param array general parameter passing array
* @return bool true on success
*/
function DELETE($options)
{
$path = $this->base . "/" .$options["path"];
if (!file_exists($path)) {
return "404 Not found";
}
if (is_dir($path)) {
$query = "DELETE FROM {$this->db_prefix}properties
WHERE path LIKE '".$this->_slashify($options["path"])."%'";
mysql_query($query);
System::rm("-rf $path");
} else {
unlink($path);
}
$query = "DELETE FROM {$this->db_prefix}properties
WHERE path = '$options[path]'";
mysql_query($query);
return "204 No Content";
}
/**
* MOVE method handler
*
* @param array general parameter passing array
* @return bool true on success
*/
function MOVE($options)
{
return $this->COPY($options, true);
}
/**
* COPY method handler
*
* @param array general parameter passing array
* @return bool true on success
*/
function COPY($options, $del=false)
{
// TODO Property updates still broken (Litmus should detect this?)
if (!empty($this->_SERVER["CONTENT_LENGTH"])) { // no body parsing yet
return "415 Unsupported media type";
}
// no copying to different WebDAV Servers yet
if (isset($options["dest_url"])) {
return "502 bad gateway";
}
$source = $this->base .$options["path"];
if (!file_exists($source)) return "404 Not found";
$dest = $this->base . $options["dest"];
$new = !file_exists($dest);
$existing_col = false;
if (!$new) {
if ($del && is_dir($dest)) {
if (!$options["overwrite"]) {
return "412 precondition failed";
}
$dest .= basename($source);
if (file_exists($dest)) {
$options["dest"] .= basename($source);
} else {
$new = true;
$existing_col = true;
}
}
}
if (!$new) {
if ($options["overwrite"]) {
$stat = $this->DELETE(array("path" => $options["dest"]));
if (($stat{0} != "2") && (substr($stat, 0, 3) != "404")) {
return $stat;
}
} else {
return "412 precondition failed";
}
}
if (is_dir($source) && ($options["depth"] != "infinity")) {
// RFC 2518 Section 9.2, last paragraph
return "400 Bad request";
}
if ($del) {
if (!rename($source, $dest)) {
return "500 Internal server error";
}
$destpath = $this->_unslashify($options["dest"]);
if (is_dir($source)) {
$query = "UPDATE {$this->db_prefix}properties
SET path = REPLACE(path, '".$options["path"]."', '".$destpath."')
WHERE path LIKE '".$this->_slashify($options["path"])."%'";
mysql_query($query);
}
$query = "UPDATE {$this->db_prefix}properties
SET path = '".$destpath."'
WHERE path = '".$options["path"]."'";
mysql_query($query);
} else {
if (is_dir($source)) {
$files = System::find($source);
$files = array_reverse($files);
} else {
$files = array($source);
}
if (!is_array($files) || empty($files)) {
return "500 Internal server error";
}
foreach ($files as $file) {
if (is_dir($file)) {
$file = $this->_slashify($file);
}
$destfile = str_replace($source, $dest, $file);
if (is_dir($file)) {
if (!is_dir($destfile)) {
// TODO "mkdir -p" here? (only natively supported by PHP 5)
if (!@mkdir($destfile)) {
return "409 Conflict";
}
}
} else {
if (!@copy($file, $destfile)) {
return "409 Conflict";
}
}
}
$query = "INSERT INTO {$this->db_prefix}properties
SELECT *
FROM {$this->db_prefix}properties
WHERE path = '".$options['path']."'";
}
return ($new && !$existing_col) ? "201 Created" : "204 No Content";
}
/**
* PROPPATCH method handler
*
* @param array general parameter passing array
* @return bool true on success
*/
function PROPPATCH(&$options)
{
global $prefs, $tab;
$msg = "";
$path = $options["path"];
$dir = dirname($path)."/";
$base = basename($path);
foreach ($options["props"] as $key => $prop) {
if ($prop["ns"] == "DAV:") {
$options["props"][$key]['status'] = "403 Forbidden";
} else {
if (isset($prop["val"])) {
$query = "REPLACE INTO {$this->db_prefix}properties
SET path = '$options[path]'
, name = '$prop[name]'
, ns= '$prop[ns]'
, value = '$prop[val]'";
} else {
$query = "DELETE FROM {$this->db_prefix}properties
WHERE path = '$options[path]'
AND name = '$prop[name]'
AND ns = '$prop[ns]'";
}
mysql_query($query);
}
}
return "";
}
/**
* LOCK method handler
*
* @param array general parameter passing array
* @return bool true on success
*/
function LOCK(&$options)
{
// get absolute fs path to requested resource
$fspath = $this->base . $options["path"];
// TODO recursive locks on directories not supported yet
if (is_dir($fspath) && !empty($options["depth"])) {
return "409 Conflict";
}
$options["timeout"] = time()+300; // 5min. hardcoded
if (isset($options["update"])) { // Lock Update
$where = "WHERE path = '$options[path]' AND token = '$options[update]'";
$query = "SELECT owner, exclusivelock FROM {$this->db_prefix}locks $where";
$res = mysql_query($query);
$row = mysql_fetch_assoc($res);
mysql_free_result($res);
if (is_array($row)) {
$query = "UPDATE {$this->db_prefix}locks
SET expires = '$options[timeout]'
, modified = ".time()."
$where";
mysql_query($query);
$options['owner'] = $row['owner'];
$options['scope'] = $row["exclusivelock"] ? "exclusive" : "shared";
$options['type'] = $row["exclusivelock"] ? "write" : "read";
return true;
} else {
return false;
}
}
$query = "INSERT INTO {$this->db_prefix}locks
SET token = '$options[locktoken]'
, path = '$options[path]'
, created = ".time()."
, modified = ".time()."
, owner = '$options[owner]'
, expires = '$options[timeout]'
, exclusivelock = " .($options['scope'] === "exclusive" ? "1" : "0")
;
mysql_query($query);
return mysql_affected_rows() ? "200 OK" : "409 Conflict";
}
/**
* UNLOCK method handler
*
* @param array general parameter passing array
* @return bool true on success
*/
function UNLOCK(&$options)
{
$query = "DELETE FROM {$this->db_prefix}locks
WHERE path = '$options[path]'
AND token = '$options[token]'";
mysql_query($query);
return mysql_affected_rows() ? "204 No Content" : "409 Conflict";
}
/**
* checkLock() helper
*
* @param string resource path to check for locks
* @return bool true on success
*/
function checkLock($path)
{
$result = false;
$query = "SELECT owner, token, created, modified, expires, exclusivelock
FROM {$this->db_prefix}locks
WHERE path = '$path'
";
$res = mysql_query($query);
if ($res) {
$row = mysql_fetch_array($res);
mysql_free_result($res);
if ($row) {
$result = array( "type" => "write",
"scope" => $row["exclusivelock"] ? "exclusive" : "shared",
"depth" => 0,
"owner" => $row['owner'],
"token" => $row['token'],
"created" => $row['created'],
"modified" => $row['modified'],
"expires" => $row['expires']
);
}
}
return $result;
}
/**
* create database tables for property and lock storage
*
* @param void
* @return bool true on success
*/
function create_database()
{
// TODO
return false;
}
}
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode:nil
* End:
*/

View File

@ -0,0 +1,237 @@
<?php
//
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Hartmut Holzgraefe <hholzgra@php.net> |
// | Christian Stocker <chregu@bitflux.ch> |
// +----------------------------------------------------------------------+
//
// $Id: _parse_lockinfo.php,v 1.4 2006/10/10 11:53:17 hholzgra Exp $
//
/**
* helper class for parsing LOCK request bodies
*
* @package HTTP_WebDAV_Server
* @author Hartmut Holzgraefe <hholzgra@php.net>
* @version @package-version@
*/
class _parse_lockinfo
{
/**
* success state flag
*
* @var bool
* @access public
*/
var $success = false;
/**
* lock type, currently only "write"
*
* @var string
* @access public
*/
var $locktype = "";
/**
* lock scope, "shared" or "exclusive"
*
* @var string
* @access public
*/
var $lockscope = "";
/**
* lock owner information
*
* @var string
* @access public
*/
var $owner = "";
/**
* flag that is set during lock owner read
*
* @var bool
* @access private
*/
var $collect_owner = false;
/**
* constructor
*
* @param string path of stream to read
* @access public
*/
function _parse_lockinfo($path)
{
// we assume success unless problems occur
$this->success = true;
// remember if any input was parsed
$had_input = false;
// open stream
$f_in = fopen($path, "r");
if (!$f_in) {
$this->success = false;
return;
}
// create namespace aware parser
$xml_parser = xml_parser_create_ns("UTF-8", " ");
// set tag and data handlers
xml_set_element_handler($xml_parser,
array(&$this, "_startElement"),
array(&$this, "_endElement"));
xml_set_character_data_handler($xml_parser,
array(&$this, "_data"));
// we want a case sensitive parser
xml_parser_set_option($xml_parser,
XML_OPTION_CASE_FOLDING, false);
// parse input
while ($this->success && !feof($f_in)) {
$line = fgets($f_in);
if (is_string($line)) {
$had_input = true;
$this->success &= xml_parse($xml_parser, $line, false);
}
}
// finish parsing
if ($had_input) {
$this->success &= xml_parse($xml_parser, "", true);
}
// check if required tags where found
$this->success &= !empty($this->locktype);
$this->success &= !empty($this->lockscope);
// free parser resource
xml_parser_free($xml_parser);
// close input stream
fclose($f_in);
}
/**
* tag start handler
*
* @param resource parser
* @param string tag name
* @param array tag attributes
* @return void
* @access private
*/
function _startElement($parser, $name, $attrs)
{
// namespace handling
if (strstr($name, " ")) {
list($ns, $tag) = explode(" ", $name);
} else {
$ns = "";
$tag = $name;
}
if ($this->collect_owner) {
// everything within the <owner> tag needs to be collected
$ns_short = "";
$ns_attr = "";
if ($ns) {
if ($ns == "DAV:") {
$ns_short = "D:";
} else {
$ns_attr = " xmlns='$ns'";
}
}
$this->owner .= "<$ns_short$tag$ns_attr>";
} else if ($ns == "DAV:") {
// parse only the essential tags
switch ($tag) {
case "write":
$this->locktype = $tag;
break;
case "exclusive":
case "shared":
$this->lockscope = $tag;
break;
case "owner":
$this->collect_owner = true;
break;
}
}
}
/**
* data handler
*
* @param resource parser
* @param string data
* @return void
* @access private
*/
function _data($parser, $data)
{
// only the <owner> tag has data content
if ($this->collect_owner) {
$this->owner .= $data;
}
}
/**
* tag end handler
*
* @param resource parser
* @param string tag name
* @return void
* @access private
*/
function _endElement($parser, $name)
{
// namespace handling
if (strstr($name, " ")) {
list($ns, $tag) = explode(" ", $name);
} else {
$ns = "";
$tag = $name;
}
// <owner> finished?
if (($ns == "DAV:") && ($tag == "owner")) {
$this->collect_owner = false;
}
// within <owner> we have to collect everything
if ($this->collect_owner) {
$ns_short = "";
$ns_attr = "";
if ($ns) {
if ($ns == "DAV:") {
$ns_short = "D:";
} else {
$ns_attr = " xmlns='$ns'";
}
}
$this->owner .= "</$ns_short$tag$ns_attr>";
}
}
}
?>

View File

@ -0,0 +1,251 @@
<?php
//
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Hartmut Holzgraefe <hholzgra@php.net> |
// | Christian Stocker <chregu@bitflux.ch> |
// +----------------------------------------------------------------------+
//
// $Id: _parse_propfind.php,v 1.4 2006/10/10 11:53:17 hholzgra Exp $
//
/**
* helper class for parsing PROPFIND request bodies
*
* @package HTTP_WebDAV_Server
* @author Hartmut Holzgraefe <hholzgra@php.net>
* @version @package-version@
*/
class _parse_propfind
{
/**
* success state flag
*
* @var bool
* @access public
*/
var $success = false;
/**
* found properties are collected here
*
* @var array
* @access public
*/
var $props = false;
/**
* found (CalDAV) filters are collected here
*
* @var array
* @access public
*/
var $filters = false;
/**
* found other tags, eg. CalDAV calendar-multiget href's
*
* @var array
* @access public
*/
var $other = false;
/**
* what we are currently parsing: props or filters
*
* @var array
* @access private
*/
var $use = 'props';
/**
* Root tag, usually 'propfind' for PROPFIND, but can be eg. 'calendar-query' or 'calendar-multiget' for CalDAV REPORT
*
* @var array with keys 'name' and 'ns'
*/
var $root;
/**
* internal tag nesting depth counter
*
* @var int
* @access private
*/
var $depth = 0;
/**
* constructor
*
* @access public
*/
function _parse_propfind($path)
{
// success state flag
$this->success = true;
// property storage array
$this->props = array();
// internal tag depth counter
$this->depth = 0;
// remember if any input was parsed
$had_input = false;
// open input stream
$f_in = fopen($path, "r");
if (!$f_in) {
$this->success = false;
return;
}
// create XML parser
$xml_parser = xml_parser_create_ns("UTF-8", " ");
// set tag and data handlers
xml_set_element_handler($xml_parser,
array(&$this, "_startElement"),
array(&$this, "_endElement"));
xml_set_character_data_handler($xml_parser,
array(&$this,'_charData')
);
// we want a case sensitive parser
xml_parser_set_option($xml_parser,
XML_OPTION_CASE_FOLDING, false);
// parse input
while ($this->success && !feof($f_in)) {
$line = fgets($f_in);
if (is_string($line)) {
$had_input = true;
$this->success &= xml_parse($xml_parser, $line, false);
}
}
// finish parsing
if ($had_input) {
$this->success &= xml_parse($xml_parser, "", true);
}
// free parser
xml_parser_free($xml_parser);
// close input stream
fclose($f_in);
// if no input was parsed it was a request
if(!count($this->props)) $this->props = "all"; // default
}
/**
* start tag handler
*
* @access private
* @param resource parser
* @param string tag name
* @param array tag attributes
*/
function _startElement($parser, $name, $attrs)
{
// name space handling
if (strstr($name, " ")) {
list($ns, $tag) = explode(" ", $name);
if ($ns == "")
$this->success = false;
} else {
$ns = "";
$tag = $name;
}
// record root tag
if ($this->depth == 0) {
$this->root = array('name' => $tag, 'xmlns' => $ns);
}
// special tags at level 1: <allprop> and <propname>
if ($this->depth == 1) {
$this->use = 'props';
switch ($tag)
{
case "allprop":
$this->props = "all";
break;
case "propname":
$this->props = "names";
break;
case 'prop':
break;
case 'filter':
$this->use = 'filters';
break;
default:
$this->use = 'other';
break;
}
}
// requested properties are found at level 2
// CalDAV filters can be at deeper levels too and we need the attrs, same for other tags (eg. multiget href's)
if ($this->depth == 2 || $this->use == 'filters' && $this->depth >= 2 || $this->use == 'other') {
$prop = array("name" => $tag);
if ($ns)
$prop["xmlns"] = $ns;
if ($this->use != 'props') {
$prop['attrs'] = $attrs;
$prop['depth'] = $this->depth;
}
// this can happen if we have allprop and prop in one propfind:
// <allprop /><prop><blah /></prop>, eg. blah is not automatic returned by allprop
if (!is_array($this->{$this->use}) && $this->{$this->use}) $this->{$this->use} = array($this->{$this->use});
$this->{$this->use}[] = $prop;
}
// increment depth count
$this->depth++;
}
/**
* end tag handler
*
* @access private
* @param resource parser
* @param string tag name
*/
function _endElement($parser, $name)
{
// here we only need to decrement the depth count
$this->depth--;
}
/**
* char data handler for non prop tags, eg. href's in CalDAV multiget, or filter contents
*
* @access private
* @param resource parser
* @param string character data
*/
function _charData($parser, $data)
{
if ($this->use != 'props' && ($n = count($this->{$this->use})) && ($data = trim($data))) {
$this->{$this->use}[$n-1]['data'] = $data;
}
}
}

View File

@ -0,0 +1,223 @@
<?php
//
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Hartmut Holzgraefe <hholzgra@php.net> |
// | Christian Stocker <chregu@bitflux.ch> |
// +----------------------------------------------------------------------+
//
// $Id: _parse_proppatch.php,v 1.6 2006/10/10 11:53:17 hholzgra Exp $
//
/**
* helper class for parsing PROPPATCH request bodies
*
* @package HTTP_WebDAV_Server
* @author Hartmut Holzgraefe <hholzgra@php.net>
* @version @package-version@
*/
class _parse_proppatch
{
/**
*
*
* @var
* @access
*/
var $success;
/**
*
*
* @var
* @access
*/
var $props;
/**
*
*
* @var
* @access
*/
var $depth;
/**
*
*
* @var
* @access
*/
var $mode;
/**
*
*
* @var
* @access
*/
var $current;
/**
* constructor
*
* @param string path of input stream
* @access public
*/
function _parse_proppatch($path)
{
$this->success = true;
$this->depth = 0;
$this->props = array();
$had_input = false;
$f_in = fopen($path, "r");
if (!$f_in) {
$this->success = false;
return;
}
$xml_parser = xml_parser_create_ns("UTF-8", " ");
xml_set_element_handler($xml_parser,
array(&$this, "_startElement"),
array(&$this, "_endElement"));
xml_set_character_data_handler($xml_parser,
array(&$this, "_data"));
xml_parser_set_option($xml_parser,
XML_OPTION_CASE_FOLDING, false);
while($this->success && !feof($f_in)) {
$line = fgets($f_in);
if (is_string($line)) {
$had_input = true;
$this->success &= xml_parse($xml_parser, $line, false);
}
}
if($had_input) {
$this->success &= xml_parse($xml_parser, "", true);
}
xml_parser_free($xml_parser);
fclose($f_in);
}
/**
* tag start handler
*
* @param resource parser
* @param string tag name
* @param array tag attributes
* @return void
* @access private
*/
function _startElement($parser, $name, $attrs)
{
if (strstr($name, " ")) {
list($ns, $tag) = explode(" ", $name);
if ($ns == "")
$this->success = false;
} else {
$ns = "";
$tag = $name;
}
if ($this->depth == 1) {
$this->mode = $tag;
}
if ($this->depth == 3) {
$prop = array("name" => $tag);
$this->current = array("name" => $tag, "ns" => $ns, "status"=> 200);
if ($this->mode == "set") {
$this->current["val"] = ""; // default set val
}
}
if ($this->depth >= 4) {
$this->current["val"] .= "<$tag";
if (isset($attr)) {
foreach ($attr as $key => $val) {
$this->current["val"] .= ' '.$key.'="'.str_replace('"','&quot;', $val).'"';
}
}
$this->current["val"] .= ">";
}
$this->depth++;
}
/**
* tag end handler
*
* @param resource parser
* @param string tag name
* @return void
* @access private
*/
function _endElement($parser, $name)
{
if (strstr($name, " ")) {
list($ns, $tag) = explode(" ", $name);
if ($ns == "")
$this->success = false;
} else {
$ns = "";
$tag = $name;
}
$this->depth--;
if ($this->depth >= 4) {
$this->current["val"] .= "</$tag>";
}
if ($this->depth == 3) {
if (isset($this->current)) {
$this->props[] = $this->current;
unset($this->current);
}
}
}
/**
* input data handler
*
* @param resource parser
* @param string data
* @return void
* @access private
*/
function _data($parser, $data)
{
if (isset($this->current)) {
$this->current["val"] .= $data;
}
}
}
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* indent-tabs-mode:nil
* End:
*/

824
egw-pear/Log.php Normal file
View File

@ -0,0 +1,824 @@
<?php
/**
* $Header: /repository/pear/Log/Log.php,v 1.64 2006/10/08 23:03:15 jon Exp $
* $Horde: horde/lib/Log.php,v 1.15 2000/06/29 23:39:45 jon Exp $
*
* @version $Revision: 1.64 $
* @package Log
*/
define('PEAR_LOG_EMERG', 0); /** System is unusable */
define('PEAR_LOG_ALERT', 1); /** Immediate action required */
define('PEAR_LOG_CRIT', 2); /** Critical conditions */
define('PEAR_LOG_ERR', 3); /** Error conditions */
define('PEAR_LOG_WARNING', 4); /** Warning conditions */
define('PEAR_LOG_NOTICE', 5); /** Normal but significant */
define('PEAR_LOG_INFO', 6); /** Informational */
define('PEAR_LOG_DEBUG', 7); /** Debug-level messages */
define('PEAR_LOG_ALL', bindec('11111111')); /** All messages */
define('PEAR_LOG_NONE', bindec('00000000')); /** No message */
/* Log types for PHP's native error_log() function. */
define('PEAR_LOG_TYPE_SYSTEM', 0); /** Use PHP's system logger */
define('PEAR_LOG_TYPE_MAIL', 1); /** Use PHP's mail() function */
define('PEAR_LOG_TYPE_DEBUG', 2); /** Use PHP's debugging connection */
define('PEAR_LOG_TYPE_FILE', 3); /** Append to a file */
/**
* The Log:: class implements both an abstraction for various logging
* mechanisms and the Subject end of a Subject-Observer pattern.
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @author Jon Parise <jon@php.net>
* @since Horde 1.3
* @package Log
*/
class Log
{
/**
* Indicates whether or not the log can been opened / connected.
*
* @var boolean
* @access private
*/
var $_opened = false;
/**
* Instance-specific unique identification number.
*
* @var integer
* @access private
*/
var $_id = 0;
/**
* The label that uniquely identifies this set of log messages.
*
* @var string
* @access private
*/
var $_ident = '';
/**
* The default priority to use when logging an event.
*
* @var integer
* @access private
*/
var $_priority = PEAR_LOG_INFO;
/**
* The bitmask of allowed log levels.
*
* @var integer
* @access private
*/
var $_mask = PEAR_LOG_ALL;
/**
* Holds all Log_observer objects that wish to be notified of new messages.
*
* @var array
* @access private
*/
var $_listeners = array();
/**
* Maps canonical format keys to position arguments for use in building
* "line format" strings.
*
* @var array
* @access private
*/
var $_formatMap = array('%{timestamp}' => '%1$s',
'%{ident}' => '%2$s',
'%{priority}' => '%3$s',
'%{message}' => '%4$s',
'%{file}' => '%5$s',
'%{line}' => '%6$s',
'%{function}' => '%7$s',
'%\{' => '%%{');
/**
* Attempts to return a concrete Log instance of type $handler.
*
* @param string $handler The type of concrete Log subclass to return.
* Attempt to dynamically include the code for
* this subclass. Currently, valid values are
* 'console', 'syslog', 'sql', 'file', and 'mcal'.
*
* @param string $name The name of the actually log file, table, or
* other specific store to use. Defaults to an
* empty string, with which the subclass will
* attempt to do something intelligent.
*
* @param string $ident The identity reported to the log system.
*
* @param array $conf A hash containing any additional configuration
* information that a subclass might need.
*
* @param int $level Log messages up to and including this level.
*
* @return object Log The newly created concrete Log instance, or
* null on an error.
* @access public
* @since Log 1.0
*/
function &factory($handler, $name = '', $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$handler = strtolower($handler);
$class = 'Log_' . $handler;
$classfile = 'Log/' . $handler . '.php';
/*
* Attempt to include our version of the named class, but don't treat
* a failure as fatal. The caller may have already included their own
* version of the named class.
*/
if (!class_exists($class)) {
include_once $classfile;
}
/* If the class exists, return a new instance of it. */
if (class_exists($class)) {
$obj = new $class($name, $ident, $conf, $level);
return $obj;
}
$null = null;
return $null;
}
/**
* Attempts to return a reference to a concrete Log instance of type
* $handler, only creating a new instance if no log instance with the same
* parameters currently exists.
*
* You should use this if there are multiple places you might create a
* logger, you don't want to create multiple loggers, and you don't want to
* check for the existance of one each time. The singleton pattern does all
* the checking work for you.
*
* <b>You MUST call this method with the $var = &Log::singleton() syntax.
* Without the ampersand (&) in front of the method name, you will not get
* a reference, you will get a copy.</b>
*
* @param string $handler The type of concrete Log subclass to return.
* Attempt to dynamically include the code for
* this subclass. Currently, valid values are
* 'console', 'syslog', 'sql', 'file', and 'mcal'.
*
* @param string $name The name of the actually log file, table, or
* other specific store to use. Defaults to an
* empty string, with which the subclass will
* attempt to do something intelligent.
*
* @param string $ident The identity reported to the log system.
*
* @param array $conf A hash containing any additional configuration
* information that a subclass might need.
*
* @param int $level Log messages up to and including this level.
*
* @return object Log The newly created concrete Log instance, or
* null on an error.
* @access public
* @since Log 1.0
*/
function &singleton($handler, $name = '', $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
static $instances;
if (!isset($instances)) $instances = array();
$signature = serialize(array($handler, $name, $ident, $conf, $level));
if (!isset($instances[$signature])) {
$instances[$signature] = &Log::factory($handler, $name, $ident,
$conf, $level);
}
return $instances[$signature];
}
/**
* Abstract implementation of the open() method.
* @since Log 1.0
*/
function open()
{
return false;
}
/**
* Abstract implementation of the close() method.
* @since Log 1.0
*/
function close()
{
return false;
}
/**
* Abstract implementation of the flush() method.
* @since Log 1.8.2
*/
function flush()
{
return false;
}
/**
* Abstract implementation of the log() method.
* @since Log 1.0
*/
function log($message, $priority = null)
{
return false;
}
/**
* A convenience function for logging a emergency event. It will log a
* message at the PEAR_LOG_EMERG log level.
*
* @param mixed $message String or object containing the message
* to log.
*
* @return boolean True if the message was successfully logged.
*
* @access public
* @since Log 1.7.0
*/
function emerg($message)
{
return $this->log($message, PEAR_LOG_EMERG);
}
/**
* A convenience function for logging an alert event. It will log a
* message at the PEAR_LOG_ALERT log level.
*
* @param mixed $message String or object containing the message
* to log.
*
* @return boolean True if the message was successfully logged.
*
* @access public
* @since Log 1.7.0
*/
function alert($message)
{
return $this->log($message, PEAR_LOG_ALERT);
}
/**
* A convenience function for logging a critical event. It will log a
* message at the PEAR_LOG_CRIT log level.
*
* @param mixed $message String or object containing the message
* to log.
*
* @return boolean True if the message was successfully logged.
*
* @access public
* @since Log 1.7.0
*/
function crit($message)
{
return $this->log($message, PEAR_LOG_CRIT);
}
/**
* A convenience function for logging a error event. It will log a
* message at the PEAR_LOG_ERR log level.
*
* @param mixed $message String or object containing the message
* to log.
*
* @return boolean True if the message was successfully logged.
*
* @access public
* @since Log 1.7.0
*/
function err($message)
{
return $this->log($message, PEAR_LOG_ERR);
}
/**
* A convenience function for logging a warning event. It will log a
* message at the PEAR_LOG_WARNING log level.
*
* @param mixed $message String or object containing the message
* to log.
*
* @return boolean True if the message was successfully logged.
*
* @access public
* @since Log 1.7.0
*/
function warning($message)
{
return $this->log($message, PEAR_LOG_WARNING);
}
/**
* A convenience function for logging a notice event. It will log a
* message at the PEAR_LOG_NOTICE log level.
*
* @param mixed $message String or object containing the message
* to log.
*
* @return boolean True if the message was successfully logged.
*
* @access public
* @since Log 1.7.0
*/
function notice($message)
{
return $this->log($message, PEAR_LOG_NOTICE);
}
/**
* A convenience function for logging a information event. It will log a
* message at the PEAR_LOG_INFO log level.
*
* @param mixed $message String or object containing the message
* to log.
*
* @return boolean True if the message was successfully logged.
*
* @access public
* @since Log 1.7.0
*/
function info($message)
{
return $this->log($message, PEAR_LOG_INFO);
}
/**
* A convenience function for logging a debug event. It will log a
* message at the PEAR_LOG_DEBUG log level.
*
* @param mixed $message String or object containing the message
* to log.
*
* @return boolean True if the message was successfully logged.
*
* @access public
* @since Log 1.7.0
*/
function debug($message)
{
return $this->log($message, PEAR_LOG_DEBUG);
}
/**
* Returns the string representation of the message data.
*
* If $message is an object, _extractMessage() will attempt to extract
* the message text using a known method (such as a PEAR_Error object's
* getMessage() method). If a known method, cannot be found, the
* serialized representation of the object will be returned.
*
* If the message data is already a string, it will be returned unchanged.
*
* @param mixed $message The original message data. This may be a
* string or any object.
*
* @return string The string representation of the message.
*
* @access private
*/
function _extractMessage($message)
{
/*
* If we've been given an object, attempt to extract the message using
* a known method. If we can't find such a method, default to the
* "human-readable" version of the object.
*
* We also use the human-readable format for arrays.
*/
if (is_object($message)) {
if (method_exists($message, 'getmessage')) {
$message = $message->getMessage();
} else if (method_exists($message, 'tostring')) {
$message = $message->toString();
} else if (method_exists($message, '__tostring')) {
if (version_compare(PHP_VERSION, '5.0.0', 'ge')) {
$message = (string)$message;
} else {
$message = $message->__toString();
}
} else {
$message = print_r($message, true);
}
} else if (is_array($message)) {
if (isset($message['message'])) {
$message = $message['message'];
} else {
$message = print_r($message, true);
}
}
/* Otherwise, we assume the message is a string. */
return $message;
}
/**
* Using debug_backtrace(), returns the file, line, and enclosing function
* name of the source code context from which log() was invoked.
*
* @param int $depth The initial number of frames we should step
* back into the trace.
*
* @return array Array containing three strings: the filename, the line,
* and the function name from which log() was called.
*
* @access private
* @since Log 1.9.4
*/
function _getBacktraceVars($depth)
{
/* Start by generating a backtrace from the current call (here). */
$backtrace = debug_backtrace();
/*
* If we were ultimately invoked by the composite handler, we need to
* increase our depth one additional level to compensate.
*/
if (strcasecmp(@$backtrace[$depth+1]['class'], 'Log_composite') == 0) {
$depth++;
}
/*
* We're interested in the frame which invoked the log() function, so
* we need to walk back some number of frames into the backtrace. The
* $depth parameter tells us where to start looking. We go one step
* further back to find the name of the encapsulating function from
* which log() was called.
*/
$file = @$backtrace[$depth]['file'];
$line = @$backtrace[$depth]['line'];
$func = @$backtrace[$depth + 1]['function'];
/*
* However, if log() was called from one of our "shortcut" functions,
* we're going to need to go back an additional step.
*/
if (in_array($func, array('emerg', 'alert', 'crit', 'err', 'warning',
'notice', 'info', 'debug'))) {
$file = @$backtrace[$depth + 1]['file'];
$line = @$backtrace[$depth + 1]['line'];
$func = @$backtrace[$depth + 2]['function'];
}
/*
* If we couldn't extract a function name (perhaps because we were
* executed from the "main" context), provide a default value.
*/
if (is_null($func)) {
$func = '(none)';
}
/* Return a 3-tuple containing (file, line, function). */
return array($file, $line, $func);
}
/**
* Produces a formatted log line based on a format string and a set of
* variables representing the current log record and state.
*
* @return string Formatted log string.
*
* @access private
* @since Log 1.9.4
*/
function _format($format, $timestamp, $priority, $message)
{
/*
* If the format string references any of the backtrace-driven
* variables (%5, %6, %7), generate the backtrace and fetch them.
*/
if (strpos($format, '%5') || strpos($format, '%6') || strpos($format, '%7')) {
list($file, $line, $func) = $this->_getBacktraceVars(2);
}
/*
* Build the formatted string. We use the sprintf() function's
* "argument swapping" capability to dynamically select and position
* the variables which will ultimately appear in the log string.
*/
return sprintf($format,
$timestamp,
$this->_ident,
$this->priorityToString($priority),
$message,
isset($file) ? $file : '',
isset($line) ? $line : '',
isset($func) ? $func : '');
}
/**
* Returns the string representation of a PEAR_LOG_* integer constant.
*
* @param int $priority A PEAR_LOG_* integer constant.
*
* @return string The string representation of $level.
*
* @since Log 1.0
*/
function priorityToString($priority)
{
$levels = array(
PEAR_LOG_EMERG => 'emergency',
PEAR_LOG_ALERT => 'alert',
PEAR_LOG_CRIT => 'critical',
PEAR_LOG_ERR => 'error',
PEAR_LOG_WARNING => 'warning',
PEAR_LOG_NOTICE => 'notice',
PEAR_LOG_INFO => 'info',
PEAR_LOG_DEBUG => 'debug'
);
return $levels[$priority];
}
/**
* Returns the the PEAR_LOG_* integer constant for the given string
* representation of a priority name. This function performs a
* case-insensitive search.
*
* @param string $name String containing a priority name.
*
* @return string The PEAR_LOG_* integer contstant corresponding
* the the specified priority name.
*
* @since Log 1.9.0
*/
function stringToPriority($name)
{
$levels = array(
'emergency' => PEAR_LOG_EMERG,
'alert' => PEAR_LOG_ALERT,
'critical' => PEAR_LOG_CRIT,
'error' => PEAR_LOG_ERR,
'warning' => PEAR_LOG_WARNING,
'notice' => PEAR_LOG_NOTICE,
'info' => PEAR_LOG_INFO,
'debug' => PEAR_LOG_DEBUG
);
return $levels[strtolower($name)];
}
/**
* Calculate the log mask for the given priority.
*
* This method may be called statically.
*
* @param integer $priority The priority whose mask will be calculated.
*
* @return integer The calculated log mask.
*
* @access public
* @since Log 1.7.0
*/
function MASK($priority)
{
return (1 << $priority);
}
/**
* Calculate the log mask for all priorities up to the given priority.
*
* This method may be called statically.
*
* @param integer $priority The maximum priority covered by this mask.
*
* @return integer The resulting log mask.
*
* @access public
* @since Log 1.7.0
*
* @deprecated deprecated since Log 1.9.4; use Log::MAX() instead
*/
function UPTO($priority)
{
return Log::MAX($priority);
}
/**
* Calculate the log mask for all priorities greater than or equal to the
* given priority. In other words, $priority will be the lowest priority
* matched by the resulting mask.
*
* This method may be called statically.
*
* @param integer $priority The minimum priority covered by this mask.
*
* @return integer The resulting log mask.
*
* @access public
* @since Log 1.9.4
*/
function MIN($priority)
{
return PEAR_LOG_ALL ^ ((1 << $priority) - 1);
}
/**
* Calculate the log mask for all priorities less than or equal to the
* given priority. In other words, $priority will be the highests priority
* matched by the resulting mask.
*
* This method may be called statically.
*
* @param integer $priority The maximum priority covered by this mask.
*
* @return integer The resulting log mask.
*
* @access public
* @since Log 1.9.4
*/
function MAX($priority)
{
return ((1 << ($priority + 1)) - 1);
}
/**
* Set and return the level mask for the current Log instance.
*
* @param integer $mask A bitwise mask of log levels.
*
* @return integer The current level mask.
*
* @access public
* @since Log 1.7.0
*/
function setMask($mask)
{
$this->_mask = $mask;
return $this->_mask;
}
/**
* Returns the current level mask.
*
* @return interger The current level mask.
*
* @access public
* @since Log 1.7.0
*/
function getMask()
{
return $this->_mask;
}
/**
* Check if the given priority is included in the current level mask.
*
* @param integer $priority The priority to check.
*
* @return boolean True if the given priority is included in the current
* log mask.
*
* @access private
* @since Log 1.7.0
*/
function _isMasked($priority)
{
return (Log::MASK($priority) & $this->_mask);
}
/**
* Returns the current default priority.
*
* @return integer The current default priority.
*
* @access public
* @since Log 1.8.4
*/
function getPriority()
{
return $this->_priority;
}
/**
* Sets the default priority to the specified value.
*
* @param integer $priority The new default priority.
*
* @access public
* @since Log 1.8.4
*/
function setPriority($priority)
{
$this->_priority = $priority;
}
/**
* Adds a Log_observer instance to the list of observers that are listening
* for messages emitted by this Log instance.
*
* @param object $observer The Log_observer instance to attach as a
* listener.
*
* @param boolean True if the observer is successfully attached.
*
* @access public
* @since Log 1.0
*/
function attach(&$observer)
{
if (!is_a($observer, 'Log_observer')) {
return false;
}
$this->_listeners[$observer->_id] = &$observer;
return true;
}
/**
* Removes a Log_observer instance from the list of observers.
*
* @param object $observer The Log_observer instance to detach from
* the list of listeners.
*
* @param boolean True if the observer is successfully detached.
*
* @access public
* @since Log 1.0
*/
function detach($observer)
{
if (!is_a($observer, 'Log_observer') ||
!isset($this->_listeners[$observer->_id])) {
return false;
}
unset($this->_listeners[$observer->_id]);
return true;
}
/**
* Informs each registered observer instance that a new message has been
* logged.
*
* @param array $event A hash describing the log event.
*
* @access private
*/
function _announce($event)
{
foreach ($this->_listeners as $id => $listener) {
if ($event['priority'] <= $this->_listeners[$id]->_priority) {
$this->_listeners[$id]->notify($event);
}
}
}
/**
* Indicates whether this is a composite class.
*
* @return boolean True if this is a composite class.
*
* @access public
* @since Log 1.0
*/
function isComposite()
{
return false;
}
/**
* Sets this Log instance's identification string.
*
* @param string $ident The new identification string.
*
* @access public
* @since Log 1.6.3
*/
function setIdent($ident)
{
$this->_ident = $ident;
}
/**
* Returns the current identification string.
*
* @return string The current Log instance's identification string.
*
* @access public
* @since Log 1.6.3
*/
function getIdent()
{
return $this->_ident;
}
}

231
egw-pear/Log/composite.php Normal file
View File

@ -0,0 +1,231 @@
<?php
/**
* $Header: /repository/pear/Log/Log/composite.php,v 1.28 2006/06/29 07:12:34 jon Exp $
* $Horde: horde/lib/Log/composite.php,v 1.2 2000/06/28 21:36:13 jon Exp $
*
* @version $Revision: 1.28 $
* @package Log
*/
/**
* The Log_composite:: class implements a Composite pattern which
* allows multiple Log implementations to receive the same events.
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @author Jon Parise <jon@php.net>
*
* @since Horde 1.3
* @since Log 1.0
* @package Log
*
* @example composite.php Using the composite handler.
*/
class Log_composite extends Log
{
/**
* Array holding all of the Log instances to which log events should be
* sent.
*
* @var array
* @access private
*/
var $_children = array();
/**
* Constructs a new composite Log object.
*
* @param boolean $name This parameter is ignored.
* @param boolean $ident This parameter is ignored.
* @param boolean $conf This parameter is ignored.
* @param boolean $level This parameter is ignored.
*
* @access public
*/
function Log_composite($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_ident = $ident;
}
/**
* Opens all of the child instances.
*
* @return True if all of the child instances were successfully opened.
*
* @access public
*/
function open()
{
/* Attempt to open each of our children. */
$this->_opened = true;
foreach ($this->_children as $id => $child) {
$this->_opened &= $this->_children[$id]->open();
}
/* If all children were opened, return success. */
return $this->_opened;
}
/**
* Closes all of the child instances.
*
* @return True if all of the child instances were successfully closed.
*
* @access public
*/
function close()
{
/* Attempt to close each of our children. */
$closed = true;
foreach ($this->_children as $id => $child) {
$closed &= $this->_children[$id]->close();
}
/* Track the _opened state for consistency. */
$this->_opened = false;
/* If all children were closed, return success. */
return $closed;
}
/**
* Flushes all child instances. It is assumed that all of the children
* have been successfully opened.
*
* @return True if all of the child instances were successfully flushed.
*
* @access public
* @since Log 1.8.2
*/
function flush()
{
/* Attempt to flush each of our children. */
$flushed = true;
foreach ($this->_children as $id => $child) {
$flushed &= $this->_children[$id]->flush();
}
/* If all children were flushed, return success. */
return $flushed;
}
/**
* Sends $message and $priority to each child of this composite. If the
* children aren't already open, they will be opened here.
*
* @param mixed $message String or object containing the message
* to log.
* @param string $priority (optional) The priority of the message.
* Valid values are: PEAR_LOG_EMERG,
* PEAR_LOG_ALERT, PEAR_LOG_CRIT,
* PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and
* PEAR_LOG_DEBUG.
*
* @return boolean True if the entry is successfully logged.
*
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/*
* If the handlers haven't been opened, attempt to open them now.
* However, we don't treat failure to open all of the handlers as a
* fatal error. We defer that consideration to the success of calling
* each handler's log() method below.
*/
if (!$this->_opened) {
$this->open();
}
/* Attempt to log the event using each of the children. */
$success = true;
foreach ($this->_children as $id => $child) {
$success &= $this->_children[$id]->log($message, $priority);
}
$this->_announce(array('priority' => $priority, 'message' => $message));
/* Return success if all of the children logged the event. */
return $success;
}
/**
* Returns true if this is a composite.
*
* @return boolean True if this is a composite class.
*
* @access public
*/
function isComposite()
{
return true;
}
/**
* Sets this identification string for all of this composite's children.
*
* @param string $ident The new identification string.
*
* @access public
* @since Log 1.6.7
*/
function setIdent($ident)
{
/* Call our base class's setIdent() method. */
parent::setIdent($ident);
/* ... and then call setIdent() on all of our children. */
foreach ($this->_children as $id => $child) {
$this->_children[$id]->setIdent($ident);
}
}
/**
* Adds a Log instance to the list of children.
*
* @param object $child The Log instance to add.
*
* @return boolean True if the Log instance was successfully added.
*
* @access public
*/
function addChild(&$child)
{
/* Make sure this is a Log instance. */
if (!is_a($child, 'Log')) {
return false;
}
$this->_children[$child->_id] = &$child;
return true;
}
/**
* Removes a Log instance from the list of children.
*
* @param object $child The Log instance to remove.
*
* @return boolean True if the Log instance was successfully removed.
*
* @access public
*/
function removeChild($child)
{
if (!is_a($child, 'Log') || !isset($this->_children[$child->_id])) {
return false;
}
unset($this->_children[$child->_id]);
return true;
}
}

204
egw-pear/Log/console.php Normal file
View File

@ -0,0 +1,204 @@
<?php
/**
* $Header: /repository/pear/Log/Log/console.php,v 1.23 2006/06/29 07:09:21 jon Exp $
*
* @version $Revision: 1.23 $
* @package Log
*/
/**
* The Log_console class is a concrete implementation of the Log::
* abstract class which writes message to the text console.
*
* @author Jon Parise <jon@php.net>
* @since Log 1.1
* @package Log
*
* @example console.php Using the console handler.
*/
class Log_console extends Log
{
/**
* Handle to the current output stream.
* @var resource
* @access private
*/
var $_stream = STDOUT;
/**
* Should the output be buffered or displayed immediately?
* @var string
* @access private
*/
var $_buffering = false;
/**
* String holding the buffered output.
* @var string
* @access private
*/
var $_buffer = '';
/**
* String containing the format of a log line.
* @var string
* @access private
*/
var $_lineFormat = '%1$s %2$s [%3$s] %4$s';
/**
* String containing the timestamp format. It will be passed directly to
* strftime(). Note that the timestamp string will generated using the
* current locale.
* @var string
* @access private
*/
var $_timeFormat = '%b %d %H:%M:%S';
/**
* Constructs a new Log_console object.
*
* @param string $name Ignored.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_console($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
if (!empty($conf['stream'])) {
$this->_stream = $conf['stream'];
}
if (isset($conf['buffering'])) {
$this->_buffering = $conf['buffering'];
}
if (!empty($conf['lineFormat'])) {
$this->_lineFormat = str_replace(array_keys($this->_formatMap),
array_values($this->_formatMap),
$conf['lineFormat']);
}
if (!empty($conf['timeFormat'])) {
$this->_timeFormat = $conf['timeFormat'];
}
/*
* If output buffering has been requested, we need to register a
* shutdown function that will dump the buffer upon termination.
*/
if ($this->_buffering) {
register_shutdown_function(array(&$this, '_Log_console'));
}
}
/**
* Destructor
*/
function _Log_console()
{
$this->close();
}
/**
* Open the output stream.
*
* @access public
* @since Log 1.9.7
*/
function open()
{
$this->_opened = true;
return true;
}
/**
* Closes the output stream.
*
* This results in a call to flush().
*
* @access public
* @since Log 1.9.0
*/
function close()
{
$this->flush();
$this->_opened = false;
return true;
}
/**
* Flushes all pending ("buffered") data to the output stream.
*
* @access public
* @since Log 1.8.2
*/
function flush()
{
/*
* If output buffering is enabled, dump the contents of the buffer to
* the output stream.
*/
if ($this->_buffering && (strlen($this->_buffer) > 0)) {
fwrite($this->_stream, $this->_buffer);
$this->_buffer = '';
}
return fflush($this->_stream);
}
/**
* Writes $message to the text console. Also, passes the message
* along to any Log_observer instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
/* Build the string containing the complete log line. */
$line = $this->_format($this->_lineFormat,
strftime($this->_timeFormat),
$priority, $message) . "\n";
/*
* If buffering is enabled, append this line to the output buffer.
* Otherwise, print the line to the output stream immediately.
*/
if ($this->_buffering) {
$this->_buffer .= $line;
} else {
fwrite($this->_stream, $line);
}
/* Notify observers about this log message. */
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
}

230
egw-pear/Log/daemon.php Normal file
View File

@ -0,0 +1,230 @@
<?php
// $Id: daemon.php,v 1.2 2005/02/26 14:48:58 chagenbu Exp $
/**
* The Log_daemon class is a concrete implementation of the Log::
* abstract class which sends messages to syslog daemon on UNIX-like machines.
* This class uses the syslog protocol: http://www.ietf.org/rfc/rfc3164.txt
*
* @author Bart van der Schans <schans@dds.nl>
* @version $Revision: 1.2 $
* @package Log
*/
class Log_daemon extends Log
{
/**
* Integer holding the log facility to use.
* @var string
*/
var $_name = LOG_DAEMON;
/**
* Var holding the resource pointer to the socket
* @var resource
*/
var $_socket;
/**
* The ip address or servername
* @see http://www.php.net/manual/en/transports.php
* @var string
*/
var $_ip = '127.0.0.1';
/**
* Protocol to use (tcp, udp, etc.)
* @see http://www.php.net/manual/en/transports.php
* @var string
*/
var $_proto = 'udp';
/**
* Port to connect to
* @var int
*/
var $_port = 514;
/**
* Maximum message length in bytes
* @var int
*/
var $_maxsize = 4096;
/**
* Socket timeout in seconds
* @var int
*/
var $_timeout = 1;
/**
* Constructs a new syslog object.
*
* @param string $name The syslog facility.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $maxLevel Maximum level at which to log.
* @access public
*/
function Log_daemon($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
/* Ensure we have a valid integer value for $name. */
if (empty($name) || !is_int($name)) {
$name = LOG_SYSLOG;
}
$this->_id = md5(microtime());
$this->_name = $name;
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
if (isset($conf['ip'])) {
$this->_ip = $conf['ip'];
}
if (isset($conf['proto'])) {
$this->_proto = $conf['proto'];
}
if (isset($conf['port'])) {
$this->_port = $conf['port'];
}
if (isset($conf['maxsize'])) {
$this->_maxsize = $conf['maxsize'];
}
if (isset($conf['timeout'])) {
$this->_timeout = $conf['timeout'];
}
$this->_proto = $this->_proto . '://';
register_shutdown_function(array(&$this, '_Log_daemon'));
}
/**
* Destructor.
*
* @access private
*/
function _Log_daemon()
{
$this->close();
}
/**
* Opens a connection to the system logger, if it has not already
* been opened. This is implicitly called by log(), if necessary.
* @access public
*/
function open()
{
if (!$this->_opened) {
$this->_opened = (bool)($this->_socket = @fsockopen(
$this->_proto . $this->_ip,
$this->_port,
$errno,
$errstr,
$this->_timeout));
}
return $this->_opened;
}
/**
* Closes the connection to the system logger, if it is open.
* @access public
*/
function close()
{
if ($this->_opened) {
$this->_opened = false;
return fclose($this->_socket);
}
return true;
}
/**
* Sends $message to the currently open syslog connection. Calls
* open() if necessary. Also passes the message along to any Log_observer
* instances that are observing this Log.
*
* @param string $message The textual message to be logged.
* @param int $priority (optional) The priority of the message. Valid
* values are: LOG_EMERG, LOG_ALERT, LOG_CRIT,
* LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO,
* and LOG_DEBUG. The default is LOG_INFO.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* If the connection isn't open and can't be opened, return failure. */
if (!$this->_opened && !$this->open()) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
/* Set the facility level. */
$facility_level = intval($this->_name) +
intval($this->_toSyslog($priority));
/* Prepend ident info. */
if (!empty($this->_ident)) {
$message = $this->_ident . ' ' . $message;
}
/* Check for message length. */
if (strlen($message) > $this->_maxsize) {
$message = substr($message, 0, ($this->_maxsize) - 10) . ' [...]';
}
/* Write to socket. */
fwrite($this->_socket, '<' . $facility_level . '>' . $message . "\n");
$this->_announce(array('priority' => $priority, 'message' => $message));
}
/**
* Converts a PEAR_LOG_* constant into a syslog LOG_* constant.
*
* This function exists because, under Windows, not all of the LOG_*
* constants have unique values. Instead, the PEAR_LOG_* were introduced
* for global use, with the conversion to the LOG_* constants kept local to
* to the syslog driver.
*
* @param int $priority PEAR_LOG_* value to convert to LOG_* value.
*
* @return The LOG_* representation of $priority.
*
* @access private
*/
function _toSyslog($priority)
{
static $priorities = array(
PEAR_LOG_EMERG => LOG_EMERG,
PEAR_LOG_ALERT => LOG_ALERT,
PEAR_LOG_CRIT => LOG_CRIT,
PEAR_LOG_ERR => LOG_ERR,
PEAR_LOG_WARNING => LOG_WARNING,
PEAR_LOG_NOTICE => LOG_NOTICE,
PEAR_LOG_INFO => LOG_INFO,
PEAR_LOG_DEBUG => LOG_DEBUG
);
/* If we're passed an unknown priority, default to LOG_INFO. */
if (!is_int($priority) || !in_array($priority, $priorities)) {
return LOG_INFO;
}
return $priorities[$priority];
}
}

141
egw-pear/Log/display.php Normal file
View File

@ -0,0 +1,141 @@
<?php
/**
* $Header: /repository/pear/Log/Log/display.php,v 1.9 2006/06/29 07:09:21 jon Exp $
*
* @version $Revision: 1.9 $
* @package Log
*/
/**
* The Log_display class is a concrete implementation of the Log::
* abstract class which writes message into browser in usual PHP maner.
* This may be useful because when you use PEAR::setErrorHandling in
* PEAR_ERROR_CALLBACK mode error messages are not displayed by
* PHP error handler.
*
* @author Paul Yanchenko <pusher@inaco.ru>
* @since Log 1.8.0
* @package Log
*
* @example display.php Using the display handler.
*/
class Log_display extends Log
{
/**
* String to output before an error message
* @var string
* @access private
*/
var $_error_prepend = '';
/**
* String to output after an error message
* @var string
* @access private
*/
var $_error_append = '';
/**
* String used to represent a line break.
* @var string
* @access private
*/
var $_linebreak = "<br />\n";
/**
* Constructs a new Log_display object.
*
* @param string $name Ignored.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_display($name = '', $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
if (isset($conf['error_prepend'])) {
$this->_error_prepend = $conf['error_prepend'];
} else {
$this->_error_prepend = ini_get('error_prepend_string');
}
if (isset($conf['error_append'])) {
$this->_error_append = $conf['error_append'];
} else {
$this->_error_append = ini_get('error_append_string');
}
if (isset($conf['linebreak'])) {
$this->_linebreak = $conf['linebreak'];
}
}
/**
* Opens the display handler.
*
* @access public
* @since Log 1.9.6
*/
function open()
{
$this->_opened = true;
return true;
}
/**
* Closes the display handler.
*
* @access public
* @since Log 1.9.6
*/
function close()
{
$this->_opened = false;
return true;
}
/**
* Writes $message to the text browser. Also, passes the message
* along to any Log_observer instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
/* Build and output the complete log line. */
echo $this->_error_prepend .
'<b>' . ucfirst($this->priorityToString($priority)) . '</b>: '.
nl2br(htmlspecialchars($message)) .
$this->_error_append . $this->_linebreak;
/* Notify observers about this log message. */
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
}

127
egw-pear/Log/error_log.php Normal file
View File

@ -0,0 +1,127 @@
<?php
/**
* $Header: /repository/pear/Log/Log/error_log.php,v 1.8 2006/06/29 07:09:21 jon Exp $
*
* @version $Revision: 1.8 $
* @package Log
*/
/**
* The Log_error_log class is a concrete implementation of the Log abstract
* class that logs messages using PHP's error_log() function.
*
* @author Jon Parise <jon@php.net>
* @since Log 1.7.0
* @package Log
*
* @example error_log.php Using the error_log handler.
*/
class Log_error_log extends Log
{
/**
* The error_log() log type.
* @var integer
* @access private
*/
var $_type = PEAR_LOG_TYPE_SYSTEM;
/**
* The type-specific destination value.
* @var string
* @access private
*/
var $_destination = '';
/**
* Additional headers to pass to the mail() function when the
* PEAR_LOG_TYPE_MAIL type is used.
* @var string
* @access private
*/
var $_extra_headers = '';
/**
* Constructs a new Log_error_log object.
*
* @param string $name Ignored.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_error_log($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_type = $name;
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
if (!empty($conf['destination'])) {
$this->_destination = $conf['destination'];
}
if (!empty($conf['extra_headers'])) {
$this->_extra_headers = $conf['extra_headers'];
}
}
/**
* Opens the handler.
*
* @access public
* @since Log 1.9.6
*/
function open()
{
$this->_opened = true;
return true;
}
/**
* Closes the handler.
*
* @access public
* @since Log 1.9.6
*/
function close()
{
$this->_opened = false;
return true;
}
/**
* Logs $message using PHP's error_log() function. The message is also
* passed along to any Log_observer instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
$success = error_log($this->_ident . ': ' . $message, $this->_type,
$this->_destination, $this->_extra_headers);
$this->_announce(array('priority' => $priority, 'message' => $message));
return $success;
}
}

312
egw-pear/Log/file.php Normal file
View File

@ -0,0 +1,312 @@
<?php
/**
* $Header: /repository/pear/Log/Log/file.php,v 1.45 2006/01/11 07:56:37 jon Exp $
*
* @version $Revision: 1.45 $
* @package Log
*/
/**
* The Log_file class is a concrete implementation of the Log abstract
* class that logs messages to a text file.
*
* @author Jon Parise <jon@php.net>
* @author Roman Neuhauser <neuhauser@bellavista.cz>
* @since Log 1.0
* @package Log
*
* @example file.php Using the file handler.
*/
class Log_file extends Log
{
/**
* String containing the name of the log file.
* @var string
* @access private
*/
var $_filename = 'php.log';
/**
* Handle to the log file.
* @var resource
* @access private
*/
var $_fp = false;
/**
* Should new log entries be append to an existing log file, or should the
* a new log file overwrite an existing one?
* @var boolean
* @access private
*/
var $_append = true;
/**
* Should advisory file locking (i.e., flock()) be used?
* @var boolean
* @access private
*/
var $_locking = false;
/**
* Integer (in octal) containing the log file's permissions mode.
* @var integer
* @access private
*/
var $_mode = 0644;
/**
* Integer (in octal) specifying the file permission mode that will be
* used when creating directories that do not already exist.
* @var integer
* @access private
*/
var $_dirmode = 0755;
/**
* String containing the format of a log line.
* @var string
* @access private
*/
var $_lineFormat = '%1$s %2$s [%3$s] %4$s';
/**
* String containing the timestamp format. It will be passed directly to
* strftime(). Note that the timestamp string will generated using the
* current locale.
* @var string
* @access private
*/
var $_timeFormat = '%b %d %H:%M:%S';
/**
* String containing the end-on-line character sequence.
* @var string
* @access private
*/
var $_eol = "\n";
/**
* Constructs a new Log_file object.
*
* @param string $name Ignored.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_file($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_filename = $name;
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
if (isset($conf['append'])) {
$this->_append = $conf['append'];
}
if (isset($conf['locking'])) {
$this->_locking = $conf['locking'];
}
if (!empty($conf['mode'])) {
if (is_string($conf['mode'])) {
$this->_mode = octdec($conf['mode']);
} else {
$this->_mode = $conf['mode'];
}
}
if (!empty($conf['dirmode'])) {
if (is_string($conf['dirmode'])) {
$this->_dirmode = octdec($conf['dirmode']);
} else {
$this->_dirmode = $conf['dirmode'];
}
}
if (!empty($conf['lineFormat'])) {
$this->_lineFormat = str_replace(array_keys($this->_formatMap),
array_values($this->_formatMap),
$conf['lineFormat']);
}
if (!empty($conf['timeFormat'])) {
$this->_timeFormat = $conf['timeFormat'];
}
if (!empty($conf['eol'])) {
$this->_eol = $conf['eol'];
} else {
$this->_eol = (strstr(PHP_OS, 'WIN')) ? "\r\n" : "\n";
}
register_shutdown_function(array(&$this, '_Log_file'));
}
/**
* Destructor
*/
function _Log_file()
{
if ($this->_opened) {
$this->close();
}
}
/**
* Creates the given directory path. If the parent directories don't
* already exist, they will be created, too.
*
* This implementation is inspired by Python's os.makedirs function.
*
* @param string $path The full directory path to create.
* @param integer $mode The permissions mode with which the
* directories will be created.
*
* @return True if the full path is successfully created or already
* exists.
*
* @access private
*/
function _mkpath($path, $mode = 0700)
{
/* Separate the last pathname component from the rest of the path. */
$head = dirname($path);
$tail = basename($path);
/* Make sure we've split the path into two complete components. */
if (empty($tail)) {
$head = dirname($path);
$tail = basename($path);
}
/* Recurse up the path if our current segment does not exist. */
if (!empty($head) && !empty($tail) && !is_dir($head)) {
$this->_mkpath($head, $mode);
}
/* Create this segment of the path. */
return @mkdir($head, $mode);
}
/**
* Opens the log file for output. If the specified log file does not
* already exist, it will be created. By default, new log entries are
* appended to the end of the log file.
*
* This is implicitly called by log(), if necessary.
*
* @access public
*/
function open()
{
if (!$this->_opened) {
/* If the log file's directory doesn't exist, create it. */
if (!is_dir(dirname($this->_filename))) {
$this->_mkpath($this->_filename, $this->_dirmode);
}
/* Determine whether the log file needs to be created. */
$creating = !file_exists($this->_filename);
/* Obtain a handle to the log file. */
$this->_fp = fopen($this->_filename, ($this->_append) ? 'a' : 'w');
/* We consider the file "opened" if we have a valid file pointer. */
$this->_opened = ($this->_fp !== false);
/* Attempt to set the file's permissions if we just created it. */
if ($creating && $this->_opened) {
chmod($this->_filename, $this->_mode);
}
}
return $this->_opened;
}
/**
* Closes the log file if it is open.
*
* @access public
*/
function close()
{
/* If the log file is open, close it. */
if ($this->_opened && fclose($this->_fp)) {
$this->_opened = false;
}
return ($this->_opened === false);
}
/**
* Flushes all pending data to the file handle.
*
* @access public
* @since Log 1.8.2
*/
function flush()
{
return fflush($this->_fp);
}
/**
* Logs $message to the output window. The message is also passed along
* to any Log_observer instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* If the log file isn't already open, open it now. */
if (!$this->_opened && !$this->open()) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
/* Build the string containing the complete log line. */
$line = $this->_format($this->_lineFormat,
strftime($this->_timeFormat),
$priority, $message) . $this->_eol;
/* If locking is enabled, acquire an exclusive lock on the file. */
if ($this->_locking) {
flock($this->_fp, LOCK_EX);
}
/* Write the log line to the log file. */
$success = (fwrite($this->_fp, $line) !== false);
/* Unlock the file now that we're finished writing to it. */
if ($this->_locking) {
flock($this->_fp, LOCK_UN);
}
/* Notify observers about this log message. */
$this->_announce(array('priority' => $priority, 'message' => $message));
return $success;
}
}

246
egw-pear/Log/mail.php Normal file
View File

@ -0,0 +1,246 @@
<?php
/**
* $Header: /repository/pear/Log/Log/mail.php,v 1.24 2006/01/30 05:37:18 jon Exp $
*
* @version $Revision: 1.24 $
* @package Log
*/
/**
* The Log_mail class is a concrete implementation of the Log:: abstract class
* which sends log messages to a mailbox.
* The mail is actually sent when you close() the logger, or when the destructor
* is called (when the script is terminated).
*
* PLEASE NOTE that you must create a Log_mail object using =&, like this :
* $logger =& Log::factory("mail", "recipient@example.com", ...)
*
* This is a PEAR requirement for destructors to work properly.
* See http://pear.php.net/manual/en/class.pear.php
*
* @author Ronnie Garcia <ronnie@mk2.net>
* @author Jon Parise <jon@php.net>
* @since Log 1.3
* @package Log
*
* @example mail.php Using the mail handler.
*/
class Log_mail extends Log
{
/**
* String holding the recipient's email address.
* @var string
* @access private
*/
var $_recipient = '';
/**
* String holding the sender's email address.
* @var string
* @access private
*/
var $_from = '';
/**
* String holding the email's subject.
* @var string
* @access private
*/
var $_subject = '[Log_mail] Log message';
/**
* String holding an optional preamble for the log messages.
* @var string
* @access private
*/
var $_preamble = '';
/**
* String containing the format of a log line.
* @var string
* @access private
*/
var $_lineFormat = '%1$s %2$s [%3$s] %4$s';
/**
* String containing the timestamp format. It will be passed directly to
* strftime(). Note that the timestamp string will generated using the
* current locale.
* @var string
* @access private
*/
var $_timeFormat = '%b %d %H:%M:%S';
/**
* String holding the mail message body.
* @var string
* @access private
*/
var $_message = '';
/**
* Constructs a new Log_mail object.
*
* Here is how you can customize the mail driver with the conf[] hash :
* $conf['from'] : the mail's "From" header line,
* $conf['subject'] : the mail's "Subject" line.
*
* @param string $name The filename of the logfile.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_mail($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_recipient = $name;
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
if (!empty($conf['from'])) {
$this->_from = $conf['from'];
} else {
$this->_from = ini_get('sendmail_from');
}
if (!empty($conf['subject'])) {
$this->_subject = $conf['subject'];
}
if (!empty($conf['preamble'])) {
$this->_preamble = $conf['preamble'];
}
if (!empty($conf['lineFormat'])) {
$this->_lineFormat = str_replace(array_keys($this->_formatMap),
array_values($this->_formatMap),
$conf['lineFormat']);
}
if (!empty($conf['timeFormat'])) {
$this->_timeFormat = $conf['timeFormat'];
}
/* register the destructor */
register_shutdown_function(array(&$this, '_Log_mail'));
}
/**
* Destructor. Calls close().
*
* @access private
*/
function _Log_mail()
{
$this->close();
}
/**
* Starts a new mail message.
* This is implicitly called by log(), if necessary.
*
* @access public
*/
function open()
{
if (!$this->_opened) {
if (!empty($this->_preamble)) {
$this->_message = $this->_preamble . "\r\n\r\n";
}
$this->_opened = true;
}
return $this->_opened;
}
/**
* Closes the message, if it is open, and sends the mail.
* This is implicitly called by the destructor, if necessary.
*
* @access public
*/
function close()
{
if ($this->_opened) {
if (!empty($this->_message)) {
$headers = "From: $this->_from\r\n";
$headers .= "User-Agent: Log_mail";
if (mail($this->_recipient, $this->_subject, $this->_message,
$headers) == false) {
error_log("Log_mail: Failure executing mail()", 0);
return false;
}
/* Clear the message string now that the email has been sent. */
$this->_message = '';
}
$this->_opened = false;
}
return ($this->_opened === false);
}
/**
* Flushes the log output by forcing the email message to be sent now.
* Events that are logged after flush() is called will be appended to a
* new email message.
*
* @access public
* @since Log 1.8.2
*/
function flush()
{
/*
* It's sufficient to simply call close() to flush the output.
* The next call to log() will cause the handler to be reopened.
*/
return $this->close();
}
/**
* Writes $message to the currently open mail message.
* Calls open(), if necessary.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* If the message isn't open and can't be opened, return failure. */
if (!$this->_opened && !$this->open()) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
/* Build the string containing the complete log line. */
$this->_message .= $this->_format($this->_lineFormat,
strftime($this->_timeFormat),
$priority, $message) . "\r\n";
/* Notify observers about this log message. */
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
}

170
egw-pear/Log/mcal.php Normal file
View File

@ -0,0 +1,170 @@
<?php
/**
* $Header: /repository/pear/Log/Log/mcal.php,v 1.18 2005/02/26 14:48:58 chagenbu Exp $
* $Horde: horde/lib/Log/mcal.php,v 1.2 2000/06/28 21:36:13 jon Exp $
*
* @version $Revision: 1.18 $
* @package Log
*/
/**
* The Log_mcal class is a concrete implementation of the Log::
* abstract class which sends messages to a local or remote calendar
* store accessed through MCAL.
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @since Horde 1.3
* @since Log 1.0
* @package Log
*/
class Log_mcal extends Log
{
/**
* holding the calendar specification to connect to.
* @var string
* @access private
*/
var $_calendar = '{localhost/mstore}';
/**
* holding the username to use.
* @var string
* @access private
*/
var $_username = '';
/**
* holding the password to use.
* @var string
* @access private
*/
var $_password = '';
/**
* holding the options to pass to the calendar stream.
* @var integer
* @access private
*/
var $_options = 0;
/**
* ResourceID of the MCAL stream.
* @var string
* @access private
*/
var $_stream = '';
/**
* Integer holding the log facility to use.
* @var string
* @access private
*/
var $_name = LOG_SYSLOG;
/**
* Constructs a new Log_mcal object.
*
* @param string $name The category to use for our events.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_mcal($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_name = $name;
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
$this->_calendar = $conf['calendar'];
$this->_username = $conf['username'];
$this->_password = $conf['password'];
$this->_options = $conf['options'];
}
/**
* Opens a calendar stream, if it has not already been
* opened. This is implicitly called by log(), if necessary.
* @access public
*/
function open()
{
if (!$this->_opened) {
$this->_stream = mcal_open($this->_calendar, $this->_username,
$this->_password, $this->_options);
$this->_opened = true;
}
return $this->_opened;
}
/**
* Closes the calendar stream, if it is open.
* @access public
*/
function close()
{
if ($this->_opened) {
mcal_close($this->_stream);
$this->_opened = false;
}
return ($this->_opened === false);
}
/**
* Logs $message and associated information to the currently open
* calendar stream. Calls open() if necessary. Also passes the
* message along to any Log_observer instances that are observing
* this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* If the connection isn't open and can't be opened, return failure. */
if (!$this->_opened && !$this->open()) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
$date_str = date('Y:n:j:G:i:s');
$dates = explode(':', $date_str);
mcal_event_init($this->_stream);
mcal_event_set_title($this->_stream, $this->_ident);
mcal_event_set_category($this->_stream, $this->_name);
mcal_event_set_description($this->_stream, $message);
mcal_event_add_attribute($this->_stream, 'priority', $priority);
mcal_event_set_start($this->_stream, $dates[0], $dates[1], $dates[2],
$dates[3], $dates[4], $dates[5]);
mcal_event_set_end($this->_stream, $dates[0], $dates[1], $dates[2],
$dates[3], $dates[4], $dates[5]);
mcal_append_event($this->_stream);
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
}

358
egw-pear/Log/mdb2.php Normal file
View File

@ -0,0 +1,358 @@
<?php
/**
* $Header: /repository/pear/Log/Log/mdb2.php,v 1.5 2006/01/08 03:35:44 jon Exp $
*
* @version $Revision: 1.5 $
* @package Log
*/
/** PEAR's MDB2 package */
require_once 'MDB2.php';
MDB2::loadFile('Date');
/**
* The Log_mdb2 class is a concrete implementation of the Log:: abstract class
* which sends messages to an SQL server. Each entry occupies a separate row
* in the database.
*
* This implementation uses PEAR's MDB2 database abstraction layer.
*
* CREATE TABLE log_table (
* id INT NOT NULL,
* logtime TIMESTAMP NOT NULL,
* ident CHAR(16) NOT NULL,
* priority INT NOT NULL,
* message VARCHAR(200),
* PRIMARY KEY (id)
* );
*
* @author Lukas Smith <smith@backendmedia.com>
* @author Jon Parise <jon@php.net>
* @since Log 1.9.0
* @package Log
*/
class Log_mdb2 extends Log
{
/**
* Variable containing the DSN information.
* @var mixed
* @access private
*/
var $_dsn = '';
/**
* Array containing our set of DB configuration options.
* @var array
* @access private
*/
var $_options = array('persistent' => true);
/**
* Object holding the database handle.
* @var object
* @access private
*/
var $_db = null;
/**
* Resource holding the prepared statement handle.
* @var resource
* @access private
*/
var $_statement = null;
/**
* Flag indicating that we're using an existing database connection.
* @var boolean
* @access private
*/
var $_existingConnection = false;
/**
* String holding the database table to use.
* @var string
* @access private
*/
var $_table = 'log_table';
/**
* String holding the name of the ID sequence.
* @var string
* @access private
*/
var $_sequence = 'log_id';
/**
* Maximum length of the $ident string. This corresponds to the size of
* the 'ident' column in the SQL table.
* @var integer
* @access private
*/
var $_identLimit = 16;
/**
* Set of field types used in the database table.
* @var array
* @access private
*/
var $_types = array(
'id' => 'integer',
'logtime' => 'timestamp',
'ident' => 'text',
'priority' => 'text',
'message' => 'clob'
);
/**
* Constructs a new sql logging object.
*
* @param string $name The target SQL table.
* @param string $ident The identification field.
* @param array $conf The connection configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_mdb2($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_table = $name;
$this->_mask = Log::UPTO($level);
/* If an options array was provided, use it. */
if (isset($conf['options']) && is_array($conf['options'])) {
$this->_options = $conf['options'];
}
/* If a specific sequence name was provided, use it. */
if (!empty($conf['sequence'])) {
$this->_sequence = $conf['sequence'];
}
/* If a specific sequence name was provided, use it. */
if (isset($conf['identLimit'])) {
$this->_identLimit = $conf['identLimit'];
}
/* Now that the ident limit is confirmed, set the ident string. */
$this->setIdent($ident);
/* If an existing database connection was provided, use it. */
if (isset($conf['db'])) {
$this->_db = &$conf['db'];
$this->_existingConnection = true;
$this->_opened = true;
} elseif (isset($conf['singleton'])) {
$this->_db = &MDB2::singleton($conf['singleton'], $this->_options);
$this->_existingConnection = true;
$this->_opened = true;
} else {
$this->_dsn = $conf['dsn'];
}
}
/**
* Opens a connection to the database, if it has not already
* been opened. This is implicitly called by log(), if necessary.
*
* @return boolean True on success, false on failure.
* @access public
*/
function open()
{
if (!$this->_opened) {
/* Use the DSN and options to create a database connection. */
$this->_db = &MDB2::connect($this->_dsn, $this->_options);
if (PEAR::isError($this->_db)) {
return false;
}
/* Create a prepared statement for repeated use in log(). */
if (!$this->_prepareStatement()) {
return false;
}
/* We now consider out connection open. */
$this->_opened = true;
}
return $this->_opened;
}
/**
* Closes the connection to the database if it is still open and we were
* the ones that opened it. It is the caller's responsible to close an
* existing connection that was passed to us via $conf['db'].
*
* @return boolean True on success, false on failure.
* @access public
*/
function close()
{
/* If we have a statement object, free it. */
if (is_object($this->_statement)) {
$this->_statement->free();
$this->_statement = null;
}
/* If we opened the database connection, disconnect it. */
if ($this->_opened && !$this->_existingConnection) {
$this->_opened = false;
return $this->_db->disconnect();
}
return ($this->_opened === false);
}
/**
* Sets this Log instance's identification string. Note that this
* SQL-specific implementation will limit the length of the $ident string
* to sixteen (16) characters.
*
* @param string $ident The new identification string.
*
* @access public
* @since Log 1.8.5
*/
function setIdent($ident)
{
$this->_ident = substr($ident, 0, $this->_identLimit);
}
/**
* Inserts $message to the currently open database. Calls open(),
* if necessary. Also passes the message along to any Log_observer
* instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* If the connection isn't open and can't be opened, return failure. */
if (!$this->_opened && !$this->open()) {
return false;
}
/* If we don't already have a statement object, create one. */
if (!is_object($this->_statement) && !$this->_prepareStatement()) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
/* Build our set of values for this log entry. */
$values = array(
'id' => $this->_db->nextId($this->_sequence),
'logtime' => MDB2_Date::mdbNow(),
'ident' => $this->_ident,
'priority' => $priority,
'message' => $message
);
/* Execute the SQL query for this log entry insertion. */
$this->_db->expectError(MDB2_ERROR_NOSUCHTABLE);
$result = &$this->_statement->execute($values);
$this->_db->popExpect();
/* Attempt to handle any errors. */
if (PEAR::isError($result)) {
/* We can only handle MDB2_ERROR_NOSUCHTABLE errors. */
if ($result->getCode() != MDB2_ERROR_NOSUCHTABLE) {
return false;
}
/* Attempt to create the target table. */
if (!$this->_createTable()) {
return false;
}
/* Recreate our prepared statement resource. */
$this->_statement->free();
if (!$this->_prepareStatement()) {
return false;
}
/* Attempt to re-execute the insertion query. */
$result = $this->_statement->execute($values);
if (PEAR::isError($result)) {
return false;
}
}
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
/**
* Create the log table in the database.
*
* @return boolean True on success or false on failure.
* @access private
*/
function _createTable()
{
$this->_db->loadModule('Manager', null, true);
$result = $this->_db->manager->createTable(
$this->_table,
array(
'id' => array('type' => $this->_types['id']),
'logtime' => array('type' => $this->_types['logtime']),
'ident' => array('type' => $this->_types['ident']),
'priority' => array('type' => $this->_types['priority']),
'message' => array('type' => $this->_types['message'])
)
);
if (PEAR::isError($result)) {
return false;
}
$result = $this->_db->manager->createIndex(
$this->_table,
'unique_id',
array('fields' => array('id' => true), 'unique' => true)
);
if (PEAR::isError($result)) {
return false;
}
return true;
}
/**
* Prepare the SQL insertion statement.
*
* @return boolean True if the statement was successfully created.
*
* @access private
* @since Log 1.9.0
*/
function _prepareStatement()
{
$this->_statement = &$this->_db->prepare(
'INSERT INTO ' . $this->_table .
' (id, logtime, ident, priority, message)' .
' VALUES(:id, :logtime, :ident, :priority, :message)',
$this->_types, MDB2_PREPARE_MANIP);
/* Return success if we didn't generate an error. */
return (PEAR::isError($this->_statement) === false);
}
}

91
egw-pear/Log/null.php Normal file
View File

@ -0,0 +1,91 @@
<?php
/**
* $Header: /repository/pear/Log/Log/null.php,v 1.5 2006/06/29 07:09:21 jon Exp $
*
* @version $Revision: 1.5 $
* @package Log
*/
/**
* The Log_null class is a concrete implementation of the Log:: abstract
* class. It simply consumes log events.
*
* @author Jon Parise <jon@php.net>
* @since Log 1.8.2
* @package Log
*
* @example null.php Using the null handler.
*/
class Log_null extends Log
{
/**
* Constructs a new Log_null object.
*
* @param string $name Ignored.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_null($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
}
/**
* Opens the handler.
*
* @access public
* @since Log 1.9.6
*/
function open()
{
$this->_opened = true;
return true;
}
/**
* Closes the handler.
*
* @access public
* @since Log 1.9.6
*/
function close()
{
$this->_opened = false;
return true;
}
/**
* Simply consumes the log event. The message will still be passed
* along to any Log_observer instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
}

129
egw-pear/Log/observer.php Normal file
View File

@ -0,0 +1,129 @@
<?php
/**
* $Header: /repository/pear/Log/Log/observer.php,v 1.18 2006/04/25 06:02:23 jon Exp $
* $Horde: horde/lib/Log/observer.php,v 1.5 2000/06/28 21:36:13 jon Exp $
*
* @version $Revision: 1.18 $
* @package Log
*/
/**
* The Log_observer:: class implements the Observer end of a Subject-Observer
* pattern for watching log activity and taking actions on exceptional events.
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @since Horde 1.3
* @since Log 1.0
* @package Log
*
* @example observer_mail.php An example Log_observer implementation.
*/
class Log_observer
{
/**
* Instance-specific unique identification number.
*
* @var integer
* @access private
*/
var $_id = 0;
/**
* The minimum priority level of message that we want to hear about.
* PEAR_LOG_EMERG is the highest priority, so we will only hear messages
* with an integer priority value less than or equal to ours. It defaults
* to PEAR_LOG_INFO, which listens to everything except PEAR_LOG_DEBUG.
*
* @var string
* @access private
*/
var $_priority = PEAR_LOG_INFO;
/**
* Creates a new basic Log_observer instance.
*
* @param integer $priority The highest priority at which to receive
* log event notifications.
*
* @access public
*/
function Log_observer($priority = PEAR_LOG_INFO)
{
$this->_id = md5(microtime());
$this->_priority = $priority;
}
/**
* Attempts to return a new concrete Log_observer instance of the requested
* type.
*
* @param string $type The type of concreate Log_observer subclass
* to return.
* @param integer $priority The highest priority at which to receive
* log event notifications.
* @param array $conf Optional associative array of additional
* configuration values.
*
* @return object The newly created concrete Log_observer
* instance, or null on an error.
*/
function &factory($type, $priority = PEAR_LOG_INFO, $conf = array())
{
$type = strtolower($type);
$class = 'Log_observer_' . $type;
/*
* If the desired class already exists (because the caller has supplied
* it from some custom location), simply instantiate and return a new
* instance.
*/
if (class_exists($class)) {
$object = new $class($priority, $conf);
return $object;
}
/* Support both the new-style and old-style file naming conventions. */
$newstyle = true;
$classfile = dirname(__FILE__) . '/observer_' . $type . '.php';
if (!file_exists($classfile)) {
$classfile = 'Log/' . $type . '.php';
$newstyle = false;
}
/*
* Attempt to include our version of the named class, but don't treat
* a failure as fatal. The caller may have already included their own
* version of the named class.
*/
@include_once $classfile;
/* If the class exists, return a new instance of it. */
if (class_exists($class)) {
/* Support both new-style and old-style construction. */
if ($newstyle) {
$object = new $class($priority, $conf);
} else {
$object = new $class($priority);
}
return $object;
}
$null = null;
return $null;
}
/**
* This is a stub method to make sure that Log_Observer classes do
* something when they are notified of a message. The default behavior
* is to just print the message, which is obviously not desireable in
* practically any situation - which is why you need to override this
* method. :)
*
* @param array $event A hash describing the log event.
*/
function notify($event)
{
print_r($event);
}
}

294
egw-pear/Log/sql.php Normal file
View File

@ -0,0 +1,294 @@
<?php
/**
* $Header: /repository/pear/Log/Log/sql.php,v 1.40 2006/01/03 04:12:45 jon Exp $
* $Horde: horde/lib/Log/sql.php,v 1.12 2000/08/16 20:27:34 chuck Exp $
*
* @version $Revision: 1.40 $
* @package Log
*/
/*
* We require the PEAR DB class. This is generally defined in the DB.php file,
* but it's possible that the caller may have provided the DB class, or a
* compatible wrapper (such as the one shipped with MDB2), so we first check
* for an existing 'DB' class before including 'DB.php'.
*/
if (!class_exists('DB')) {
require_once 'DB.php';
}
/**
* The Log_sql class is a concrete implementation of the Log::
* abstract class which sends messages to an SQL server. Each entry
* occupies a separate row in the database.
*
* This implementation uses PHP's PEAR database abstraction layer.
*
* CREATE TABLE log_table (
* id INT NOT NULL,
* logtime TIMESTAMP NOT NULL,
* ident CHAR(16) NOT NULL,
* priority INT NOT NULL,
* message VARCHAR(200),
* PRIMARY KEY (id)
* );
*
* @author Jon Parise <jon@php.net>
* @since Horde 1.3
* @since Log 1.0
* @package Log
*
* @example sql.php Using the SQL handler.
*/
class Log_sql extends Log
{
/**
* Variable containing the DSN information.
* @var mixed
* @access private
*/
var $_dsn = '';
/**
* String containing the SQL insertion statement.
*
* @var string
* @access private
*/
var $_sql = '';
/**
* Array containing our set of DB configuration options.
* @var array
* @access private
*/
var $_options = array('persistent' => true);
/**
* Object holding the database handle.
* @var object
* @access private
*/
var $_db = null;
/**
* Resource holding the prepared statement handle.
* @var resource
* @access private
*/
var $_statement = null;
/**
* Flag indicating that we're using an existing database connection.
* @var boolean
* @access private
*/
var $_existingConnection = false;
/**
* String holding the database table to use.
* @var string
* @access private
*/
var $_table = 'log_table';
/**
* String holding the name of the ID sequence.
* @var string
* @access private
*/
var $_sequence = 'log_id';
/**
* Maximum length of the $ident string. This corresponds to the size of
* the 'ident' column in the SQL table.
* @var integer
* @access private
*/
var $_identLimit = 16;
/**
* Constructs a new sql logging object.
*
* @param string $name The target SQL table.
* @param string $ident The identification field.
* @param array $conf The connection configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_sql($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_table = $name;
$this->_mask = Log::UPTO($level);
/* Now that we have a table name, assign our SQL statement. */
if (!empty($this->_sql)) {
$this->_sql = $conf['sql'];
} else {
$this->_sql = 'INSERT INTO ' . $this->_table .
' (id, logtime, ident, priority, message)' .
' VALUES(?, CURRENT_TIMESTAMP, ?, ?, ?)';
}
/* If an options array was provided, use it. */
if (isset($conf['options']) && is_array($conf['options'])) {
$this->_options = $conf['options'];
}
/* If a specific sequence name was provided, use it. */
if (!empty($conf['sequence'])) {
$this->_sequence = $conf['sequence'];
}
/* If a specific sequence name was provided, use it. */
if (isset($conf['identLimit'])) {
$this->_identLimit = $conf['identLimit'];
}
/* Now that the ident limit is confirmed, set the ident string. */
$this->setIdent($ident);
/* If an existing database connection was provided, use it. */
if (isset($conf['db'])) {
$this->_db = &$conf['db'];
$this->_existingConnection = true;
$this->_opened = true;
} else {
$this->_dsn = $conf['dsn'];
}
}
/**
* Opens a connection to the database, if it has not already
* been opened. This is implicitly called by log(), if necessary.
*
* @return boolean True on success, false on failure.
* @access public
*/
function open()
{
if (!$this->_opened) {
/* Use the DSN and options to create a database connection. */
$this->_db = &DB::connect($this->_dsn, $this->_options);
if (DB::isError($this->_db)) {
return false;
}
/* Create a prepared statement for repeated use in log(). */
if (!$this->_prepareStatement()) {
return false;
}
/* We now consider out connection open. */
$this->_opened = true;
}
return $this->_opened;
}
/**
* Closes the connection to the database if it is still open and we were
* the ones that opened it. It is the caller's responsible to close an
* existing connection that was passed to us via $conf['db'].
*
* @return boolean True on success, false on failure.
* @access public
*/
function close()
{
if ($this->_opened && !$this->_existingConnection) {
$this->_opened = false;
$this->_db->freePrepared($this->_statement);
return $this->_db->disconnect();
}
return ($this->_opened === false);
}
/**
* Sets this Log instance's identification string. Note that this
* SQL-specific implementation will limit the length of the $ident string
* to sixteen (16) characters.
*
* @param string $ident The new identification string.
*
* @access public
* @since Log 1.8.5
*/
function setIdent($ident)
{
$this->_ident = substr($ident, 0, $this->_identLimit);
}
/**
* Inserts $message to the currently open database. Calls open(),
* if necessary. Also passes the message along to any Log_observer
* instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* If the connection isn't open and can't be opened, return failure. */
if (!$this->_opened && !$this->open()) {
return false;
}
/* If we don't already have our statement object yet, create it. */
if (!is_object($this->_statement) && !$this->_prepareStatement()) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
/* Build our set of values for this log entry. */
$id = $this->_db->nextId($this->_sequence);
$values = array($id, $this->_ident, $priority, $message);
/* Execute the SQL query for this log entry insertion. */
$result =& $this->_db->execute($this->_statement, $values);
if (DB::isError($result)) {
return false;
}
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
/**
* Prepare the SQL insertion statement.
*
* @return boolean True if the statement was successfully created.
*
* @access private
* @since Log 1.9.1
*/
function _prepareStatement()
{
$this->_statement = $this->_db->prepare($this->_sql);
/* Return success if we didn't generate an error. */
return (DB::isError($this->_statement) === false);
}
}

225
egw-pear/Log/sqlite.php Normal file
View File

@ -0,0 +1,225 @@
<?php
/**
* $Header: /repository/pear/Log/Log/sqlite.php,v 1.5 2005/12/05 05:38:31 jon Exp $
*
* @version $Revision: 1.5 $
* @package Log
*/
/**
* The Log_sqlite class is a concrete implementation of the Log::
* abstract class which sends messages to an Sqlite database.
* Each entry occupies a separate row in the database.
*
* This implementation uses PHP native Sqlite functions.
*
* CREATE TABLE log_table (
* id INTEGER PRIMARY KEY NOT NULL,
* logtime NOT NULL,
* ident CHAR(16) NOT NULL,
* priority INT NOT NULL,
* message
* );
*
* @author Bertrand Mansion <bmansion@mamasam.com>
* @author Jon Parise <jon@php.net>
* @since Log 1.8.3
* @package Log
*
* @example sqlite.php Using the Sqlite handler.
*/
class Log_sqlite extends Log
{
/**
* Array containing the connection defaults
* @var array
* @access private
*/
var $_options = array('mode' => 0666,
'persistent' => false);
/**
* Object holding the database handle.
* @var object
* @access private
*/
var $_db = null;
/**
* Flag indicating that we're using an existing database connection.
* @var boolean
* @access private
*/
var $_existingConnection = false;
/**
* String holding the database table to use.
* @var string
* @access private
*/
var $_table = 'log_table';
/**
* Constructs a new sql logging object.
*
* @param string $name The target SQL table.
* @param string $ident The identification field.
* @param mixed $conf Can be an array of configuration options used
* to open a new database connection
* or an already opened sqlite connection.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_sqlite($name, $ident = '', &$conf, $level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_table = $name;
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
if (is_array($conf)) {
foreach ($conf as $k => $opt) {
$this->_options[$k] = $opt;
}
} else {
// If an existing database connection was provided, use it.
$this->_db =& $conf;
$this->_existingConnection = true;
}
}
/**
* Opens a connection to the database, if it has not already
* been opened. This is implicitly called by log(), if necessary.
*
* @return boolean True on success, false on failure.
* @access public
*/
function open()
{
if (is_resource($this->_db)) {
$this->_opened = true;
return $this->_createTable();
} else {
/* Set the connection function based on the 'persistent' option. */
if (empty($this->_options['persistent'])) {
$connectFunction = 'sqlite_open';
} else {
$connectFunction = 'sqlite_popen';
}
/* Attempt to connect to the database. */
if ($this->_db = $connectFunction($this->_options['filename'],
(int)$this->_options['mode'],
$error)) {
$this->_opened = true;
return $this->_createTable();
}
}
return $this->_opened;
}
/**
* Closes the connection to the database if it is still open and we were
* the ones that opened it. It is the caller's responsible to close an
* existing connection that was passed to us via $conf['db'].
*
* @return boolean True on success, false on failure.
* @access public
*/
function close()
{
/* We never close existing connections. */
if ($this->_existingConnection) {
return false;
}
if ($this->_opened) {
$this->_opened = false;
sqlite_close($this->_db);
}
return ($this->_opened === false);
}
/**
* Inserts $message to the currently open database. Calls open(),
* if necessary. Also passes the message along to any Log_observer
* instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* If the connection isn't open and can't be opened, return failure. */
if (!$this->_opened && !$this->open()) {
return false;
}
// Extract the string representation of the message.
$message = $this->_extractMessage($message);
// Build the SQL query for this log entry insertion.
$q = sprintf('INSERT INTO [%s] (logtime, ident, priority, message) ' .
"VALUES ('%s', '%s', %d, '%s')",
$this->_table,
strftime('%Y-%m-%d %H:%M:%S', time()),
sqlite_escape_string($this->_ident),
$priority,
sqlite_escape_string($message));
if (!($res = @sqlite_unbuffered_query($this->_db, $q))) {
return false;
}
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
/**
* Checks whether the log table exists and creates it if necessary.
*
* @return boolean True on success or false on failure.
* @access private
*/
function _createTable()
{
$q = "SELECT name FROM sqlite_master WHERE name='" . $this->_table .
"' AND type='table'";
$res = sqlite_query($this->_db, $q);
if (sqlite_num_rows($res) == 0) {
$q = 'CREATE TABLE [' . $this->_table . '] (' .
'id INTEGER PRIMARY KEY NOT NULL, ' .
'logtime NOT NULL, ' .
'ident CHAR(16) NOT NULL, ' .
'priority INT NOT NULL, ' .
'message)';
if (!($res = sqlite_unbuffered_query($this->_db, $q))) {
return false;
}
}
return true;
}
}

160
egw-pear/Log/syslog.php Normal file
View File

@ -0,0 +1,160 @@
<?php
/**
* $Header: /repository/pear/Log/Log/syslog.php,v 1.23 2005/02/26 14:48:59 chagenbu Exp $
* $Horde: horde/lib/Log/syslog.php,v 1.6 2000/06/28 21:36:13 jon Exp $
*
* @version $Revision: 1.23 $
* @package Log
*/
/**
* The Log_syslog class is a concrete implementation of the Log::
* abstract class which sends messages to syslog on UNIX-like machines
* (PHP emulates this with the Event Log on Windows machines).
*
* @author Chuck Hagenbuch <chuck@horde.org>
* @since Horde 1.3
* @since Log 1.0
* @package Log
*
* @example syslog.php Using the syslog handler.
*/
class Log_syslog extends Log
{
/**
* Integer holding the log facility to use.
* @var string
* @access private
*/
var $_name = LOG_SYSLOG;
/**
* Constructs a new syslog object.
*
* @param string $name The syslog facility.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_syslog($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
/* Ensure we have a valid integer value for $name. */
if (empty($name) || !is_int($name)) {
$name = LOG_SYSLOG;
}
$this->_id = md5(microtime());
$this->_name = $name;
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
}
/**
* Opens a connection to the system logger, if it has not already
* been opened. This is implicitly called by log(), if necessary.
* @access public
*/
function open()
{
if (!$this->_opened) {
openlog($this->_ident, LOG_PID, $this->_name);
$this->_opened = true;
}
return $this->_opened;
}
/**
* Closes the connection to the system logger, if it is open.
* @access public
*/
function close()
{
if ($this->_opened) {
closelog();
$this->_opened = false;
}
return ($this->_opened === false);
}
/**
* Sends $message to the currently open syslog connection. Calls
* open() if necessary. Also passes the message along to any Log_observer
* instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param int $priority (optional) The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* If the connection isn't open and can't be opened, return failure. */
if (!$this->_opened && !$this->open()) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
if (!syslog($this->_toSyslog($priority), $message)) {
return false;
}
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
/**
* Converts a PEAR_LOG_* constant into a syslog LOG_* constant.
*
* This function exists because, under Windows, not all of the LOG_*
* constants have unique values. Instead, the PEAR_LOG_* were introduced
* for global use, with the conversion to the LOG_* constants kept local to
* to the syslog driver.
*
* @param int $priority PEAR_LOG_* value to convert to LOG_* value.
*
* @return The LOG_* representation of $priority.
*
* @access private
*/
function _toSyslog($priority)
{
static $priorities = array(
PEAR_LOG_EMERG => LOG_EMERG,
PEAR_LOG_ALERT => LOG_ALERT,
PEAR_LOG_CRIT => LOG_CRIT,
PEAR_LOG_ERR => LOG_ERR,
PEAR_LOG_WARNING => LOG_WARNING,
PEAR_LOG_NOTICE => LOG_NOTICE,
PEAR_LOG_INFO => LOG_INFO,
PEAR_LOG_DEBUG => LOG_DEBUG
);
/* If we're passed an unknown priority, default to LOG_INFO. */
if (!is_int($priority) || !in_array($priority, $priorities)) {
return LOG_INFO;
}
return $priorities[$priority];
}
}

269
egw-pear/Log/win.php Normal file
View File

@ -0,0 +1,269 @@
<?php
/**
* $Header: /repository/pear/Log/Log/win.php,v 1.20 2006/07/26 05:21:47 jon Exp $
*
* @version $Revision: 1.20 $
* @package Log
*/
/**
* The Log_win class is a concrete implementation of the Log abstract
* class that logs messages to a separate browser window.
*
* The concept for this log handler is based on part by Craig Davis' article
* entitled "JavaScript Power PHP Debugging:
*
* http://www.zend.com/zend/tut/tutorial-DebugLib.php
*
* @author Jon Parise <jon@php.net>
* @since Log 1.7.0
* @package Log
*
* @example win.php Using the window handler.
*/
class Log_win extends Log
{
/**
* The name of the output window.
* @var string
* @access private
*/
var $_name = 'LogWindow';
/**
* The title of the output window.
* @var string
* @access private
*/
var $_title = 'Log Output Window';
/**
* Mapping of log priorities to styles.
* @var array
* @access private
*/
var $_styles = array(
PEAR_LOG_EMERG => 'color: red;',
PEAR_LOG_ALERT => 'color: orange;',
PEAR_LOG_CRIT => 'color: yellow;',
PEAR_LOG_ERR => 'color: green;',
PEAR_LOG_WARNING => 'color: blue;',
PEAR_LOG_NOTICE => 'color: indigo;',
PEAR_LOG_INFO => 'color: violet;',
PEAR_LOG_DEBUG => 'color: black;'
);
/**
* String buffer that holds line that are pending output.
* @var array
* @access private
*/
var $_buffer = array();
/**
* Constructs a new Log_win object.
*
* @param string $name Ignored.
* @param string $ident The identity string.
* @param array $conf The configuration array.
* @param int $level Log messages up to and including this level.
* @access public
*/
function Log_win($name, $ident = '', $conf = array(),
$level = PEAR_LOG_DEBUG)
{
$this->_id = md5(microtime());
$this->_name = $name;
$this->_ident = $ident;
$this->_mask = Log::UPTO($level);
if (isset($conf['title'])) {
$this->_title = $conf['title'];
}
if (isset($conf['styles']) && is_array($conf['styles'])) {
$this->_styles = $conf['styles'];
}
if (isset($conf['colors']) && is_array($conf['colors'])) {
foreach ($conf['colors'] as $level => $color) {
$this->_styles[$level] .= "color: $color;";
}
}
register_shutdown_function(array(&$this, '_Log_win'));
}
/**
* Destructor
*/
function _Log_win()
{
if ($this->_opened || (count($this->_buffer) > 0)) {
$this->close();
}
}
/**
* The first time open() is called, it will open a new browser window and
* prepare it for output.
*
* This is implicitly called by log(), if necessary.
*
* @access public
*/
function open()
{
if (!$this->_opened) {
$win = $this->_name;
$styles = $this->_styles;
if (!empty($this->_ident)) {
$identHeader = "$win.document.writeln('<th>Ident</th>')";
} else {
$identHeader = '';
}
echo <<< EOT
<script language="JavaScript">
$win = window.open('', '{$this->_name}', 'toolbar=no,scrollbars,width=600,height=400');
$win.document.writeln('<html>');
$win.document.writeln('<head>');
$win.document.writeln('<title>{$this->_title}</title>');
$win.document.writeln('<style type="text/css">');
$win.document.writeln('body { font-family: monospace; font-size: 8pt; }');
$win.document.writeln('td,th { font-size: 8pt; }');
$win.document.writeln('td,th { border-bottom: #999999 solid 1px; }');
$win.document.writeln('td,th { border-right: #999999 solid 1px; }');
$win.document.writeln('tr { text-align: left; vertical-align: top; }');
$win.document.writeln('td.l0 { $styles[0] }');
$win.document.writeln('td.l1 { $styles[1] }');
$win.document.writeln('td.l2 { $styles[2] }');
$win.document.writeln('td.l3 { $styles[3] }');
$win.document.writeln('td.l4 { $styles[4] }');
$win.document.writeln('td.l5 { $styles[5] }');
$win.document.writeln('td.l6 { $styles[6] }');
$win.document.writeln('td.l7 { $styles[7] }');
$win.document.writeln('</style>');
$win.document.writeln('</head>');
$win.document.writeln('<body>');
$win.document.writeln('<table border="0" cellpadding="2" cellspacing="0">');
$win.document.writeln('<tr><th>Time</th>');
$identHeader
$win.document.writeln('<th>Priority</th><th width="100%">Message</th></tr>');
</script>
EOT;
$this->_opened = true;
}
return $this->_opened;
}
/**
* Closes the output stream if it is open. If there are still pending
* lines in the output buffer, the output window will be opened so that
* the buffer can be drained.
*
* @access public
*/
function close()
{
/*
* If there are still lines waiting to be written, open the output
* window so that we can drain the buffer.
*/
if (!$this->_opened && (count($this->_buffer) > 0)) {
$this->open();
}
if ($this->_opened) {
$this->_writeln('</table>');
$this->_writeln('</body></html>');
$this->_opened = false;
}
return ($this->_opened === false);
}
/**
* Writes a single line of text to the output window.
*
* @param string $line The line of text to write.
*
* @access private
*/
function _writeln($line)
{
/* Add this line to our output buffer. */
$this->_buffer[] = $line;
/* Buffer the output until this page's headers have been sent. */
if (!headers_sent()) {
return;
}
/* If we haven't already opened the output window, do so now. */
if (!$this->_opened && !$this->open()) {
return false;
}
/* Drain the buffer to the output window. */
$win = $this->_name;
foreach ($this->_buffer as $line) {
echo "<script language='JavaScript'>\n";
echo "$win.document.writeln('" . addslashes($line) . "');\n";
echo "self.focus();\n";
echo "</script>\n";
}
/* Now that the buffer has been drained, clear it. */
$this->_buffer = array();
}
/**
* Logs $message to the output window. The message is also passed along
* to any Log_observer instances that are observing this Log.
*
* @param mixed $message String or object containing the message to log.
* @param string $priority The priority of the message. Valid
* values are: PEAR_LOG_EMERG, PEAR_LOG_ALERT,
* PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING,
* PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG.
* @return boolean True on success or false on failure.
* @access public
*/
function log($message, $priority = null)
{
/* If a priority hasn't been specified, use the default value. */
if ($priority === null) {
$priority = $this->_priority;
}
/* Abort early if the priority is above the maximum logging level. */
if (!$this->_isMasked($priority)) {
return false;
}
/* Extract the string representation of the message. */
$message = $this->_extractMessage($message);
$message = preg_replace('/\r\n|\n|\r/', '<br />', $message);
list($usec, $sec) = explode(' ', microtime());
/* Build the output line that contains the log entry row. */
$line = '<tr>';
$line .= sprintf('<td>%s.%s</td>',
strftime('%H:%M:%S', $sec), substr($usec, 2, 2));
if (!empty($this->_ident)) {
$line .= '<td>' . $this->_ident . '</td>';
}
$line .= '<td>' . ucfirst($this->priorityToString($priority)) . '</td>';
$line .= sprintf('<td class="l%d">%s</td>', $priority, $message);
$line .= '</tr>';
$this->_writeln($line);
$this->_announce(array('priority' => $priority, 'message' => $message));
return true;
}
}

2818
egw-pear/Net/IMAP.php Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1145
egw-pear/Net/Sieve.php Normal file

File diff suppressed because it is too large Load Diff

556
egw-pear/Net/Socket.php Normal file
View File

@ -0,0 +1,556 @@
<?php
//
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/2_02.txt. |
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Stig Bakken <ssb@php.net> |
// | Chuck Hagenbuch <chuck@horde.org> |
// +----------------------------------------------------------------------+
//
// $Id: Socket.php,v 1.28 2006/12/13 21:32:03 cweiske Exp $
require_once 'PEAR.php';
define('NET_SOCKET_READ', 1);
define('NET_SOCKET_WRITE', 2);
define('NET_SOCKET_ERROR', 4);
/**
* Generalized Socket class.
*
* @version 1.1
* @author Stig Bakken <ssb@php.net>
* @author Chuck Hagenbuch <chuck@horde.org>
*/
class Net_Socket extends PEAR {
/**
* Socket file pointer.
* @var resource $fp
*/
var $fp = null;
/**
* Whether the socket is blocking. Defaults to true.
* @var boolean $blocking
*/
var $blocking = true;
/**
* Whether the socket is persistent. Defaults to false.
* @var boolean $persistent
*/
var $persistent = false;
/**
* The IP address to connect to.
* @var string $addr
*/
var $addr = '';
/**
* The port number to connect to.
* @var integer $port
*/
var $port = 0;
/**
* Number of seconds to wait on socket connections before assuming
* there's no more data. Defaults to no timeout.
* @var integer $timeout
*/
var $timeout = false;
/**
* Number of bytes to read at a time in readLine() and
* readAll(). Defaults to 2048.
* @var integer $lineLength
*/
var $lineLength = 2048;
/**
* Connect to the specified port. If called when the socket is
* already connected, it disconnects and connects again.
*
* @param string $addr IP address or host name.
* @param integer $port TCP port number.
* @param boolean $persistent (optional) Whether the connection is
* persistent (kept open between requests
* by the web server).
* @param integer $timeout (optional) How long to wait for data.
* @param array $options See options for stream_context_create.
*
* @access public
*
* @return boolean | PEAR_Error True on success or a PEAR_Error on failure.
*/
function connect($addr, $port = 0, $persistent = null, $timeout = null, $options = null)
{
if (is_resource($this->fp)) {
@fclose($this->fp);
$this->fp = null;
}
if (!$addr) {
return $this->raiseError('$addr cannot be empty');
} elseif (strspn($addr, '.0123456789') == strlen($addr) ||
strstr($addr, '/') !== false) {
$this->addr = $addr;
} else {
$this->addr = @gethostbyname($addr);
}
$this->port = $port % 65536;
if ($persistent !== null) {
$this->persistent = $persistent;
}
if ($timeout !== null) {
$this->timeout = $timeout;
}
$errno = 0;
$errstr = '';
if ($options && function_exists('stream_socket_client')) {
if ($this->timeout) {
$timeout = $this->timeout;
} else {
$timeout = 0;
}
$context = stream_context_create($options);
$flags = ($this->persistent === true ? STREAM_CLIENT_CONNECT | STREAM_CLIENT_PERSISTENT : STREAM_CLIENT_CONNECT);
$fp = @stream_socket_client($this->addr.':'.$this->port, $errno, $errstr, $timeout, $flags, $context);
} else {
$openfunc = $this->persistent ? 'pfsockopen' : 'fsockopen';
if ($this->timeout) {
$fp = @$openfunc($this->addr, $this->port, $errno, $errstr, $this->timeout);
} else {
$fp = @$openfunc($this->addr, $this->port, $errno, $errstr);
}
}
if (!$fp) {
return $this->raiseError($errstr, $errno);
}
$this->fp = $fp;
return $this->setBlocking($this->blocking);
}
/**
* Disconnects from the peer, closes the socket.
*
* @access public
* @return mixed true on success or an error object otherwise
*/
function disconnect()
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
@fclose($this->fp);
$this->fp = null;
return true;
}
/**
* Find out if the socket is in blocking mode.
*
* @access public
* @return boolean The current blocking mode.
*/
function isBlocking()
{
return $this->blocking;
}
/**
* Sets whether the socket connection should be blocking or
* not. A read call to a non-blocking socket will return immediately
* if there is no data available, whereas it will block until there
* is data for blocking sockets.
*
* @param boolean $mode True for blocking sockets, false for nonblocking.
* @access public
* @return mixed true on success or an error object otherwise
*/
function setBlocking($mode)
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
$this->blocking = $mode;
socket_set_blocking($this->fp, $this->blocking);
return true;
}
/**
* Sets the timeout value on socket descriptor,
* expressed in the sum of seconds and microseconds
*
* @param integer $seconds Seconds.
* @param integer $microseconds Microseconds.
* @access public
* @return mixed true on success or an error object otherwise
*/
function setTimeout($seconds, $microseconds)
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
return socket_set_timeout($this->fp, $seconds, $microseconds);
}
/**
* Sets the file buffering size on the stream.
* See php's stream_set_write_buffer for more information.
*
* @param integer $size Write buffer size.
* @access public
* @return mixed on success or an PEAR_Error object otherwise
*/
function setWriteBuffer($size)
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
$returned = stream_set_write_buffer($this->fp, $code);
if ($returned == 0) {
return true;
}
return $this->raiseError('Cannot set write buffer.');
}
/**
* Returns information about an existing socket resource.
* Currently returns four entries in the result array:
*
* <p>
* timed_out (bool) - The socket timed out waiting for data<br>
* blocked (bool) - The socket was blocked<br>
* eof (bool) - Indicates EOF event<br>
* unread_bytes (int) - Number of bytes left in the socket buffer<br>
* </p>
*
* @access public
* @return mixed Array containing information about existing socket resource or an error object otherwise
*/
function getStatus()
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
return socket_get_status($this->fp);
}
/**
* Get a specified line of data
*
* @access public
* @return $size bytes of data from the socket, or a PEAR_Error if
* not connected.
*/
function gets($size)
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
return @fgets($this->fp, $size);
}
/**
* Read a specified amount of data. This is guaranteed to return,
* and has the added benefit of getting everything in one fread()
* chunk; if you know the size of the data you're getting
* beforehand, this is definitely the way to go.
*
* @param integer $size The number of bytes to read from the socket.
* @access public
* @return $size bytes of data from the socket, or a PEAR_Error if
* not connected.
*/
function read($size)
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
return @fread($this->fp, $size);
}
/**
* Write a specified amount of data.
*
* @param string $data Data to write.
* @param integer $blocksize Amount of data to write at once.
* NULL means all at once.
*
* @access public
* @return mixed true on success or an error object otherwise
*/
function write($data, $blocksize = null)
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
if (is_null($blocksize) && !OS_WINDOWS) {
return fwrite($this->fp, $data);
} else {
if (is_null($blocksize)) {
$blocksize = 1024;
}
$pos = 0;
$size = strlen($data);
while ($pos < $size) {
$written = @fwrite($this->fp, substr($data, $pos, $blocksize));
if ($written === false) {
return false;
}
$pos += $written;
}
return $pos;
}
}
/**
* Write a line of data to the socket, followed by a trailing "\r\n".
*
* @access public
* @return mixed fputs result, or an error
*/
function writeLine($data)
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
return fwrite($this->fp, $data . "\r\n");
}
/**
* Tests for end-of-file on a socket descriptor.
*
* Also returns true if the socket is disconnected.
*
* @access public
* @return bool
*/
function eof()
{
return (!is_resource($this->fp) || feof($this->fp));
}
/**
* Reads a byte of data
*
* @access public
* @return 1 byte of data from the socket, or a PEAR_Error if
* not connected.
*/
function readByte()
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
return ord(@fread($this->fp, 1));
}
/**
* Reads a word of data
*
* @access public
* @return 1 word of data from the socket, or a PEAR_Error if
* not connected.
*/
function readWord()
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
$buf = @fread($this->fp, 2);
return (ord($buf[0]) + (ord($buf[1]) << 8));
}
/**
* Reads an int of data
*
* @access public
* @return integer 1 int of data from the socket, or a PEAR_Error if
* not connected.
*/
function readInt()
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
$buf = @fread($this->fp, 4);
return (ord($buf[0]) + (ord($buf[1]) << 8) +
(ord($buf[2]) << 16) + (ord($buf[3]) << 24));
}
/**
* Reads a zero-terminated string of data
*
* @access public
* @return string, or a PEAR_Error if
* not connected.
*/
function readString()
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
$string = '';
while (($char = @fread($this->fp, 1)) != "\x00") {
$string .= $char;
}
return $string;
}
/**
* Reads an IP Address and returns it in a dot formated string
*
* @access public
* @return Dot formated string, or a PEAR_Error if
* not connected.
*/
function readIPAddress()
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
$buf = @fread($this->fp, 4);
return sprintf("%s.%s.%s.%s", ord($buf[0]), ord($buf[1]),
ord($buf[2]), ord($buf[3]));
}
/**
* Read until either the end of the socket or a newline, whichever
* comes first. Strips the trailing newline from the returned data.
*
* @access public
* @return All available data up to a newline, without that
* newline, or until the end of the socket, or a PEAR_Error if
* not connected.
*/
function readLine()
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
ob_start();
$line = '';
$timeout = time() + $this->timeout;
while (!feof($this->fp) && (!$this->timeout || time() < $timeout)) {
$line .= fgets($this->fp, $this->lineLength);
if (substr($line, -1) == "\n") {
ob_end_clean();
return rtrim($line, "\r\n");
}
}
ob_end_clean();
return $line;
}
/**
* Read until the socket closes, or until there is no more data in
* the inner PHP buffer. If the inner buffer is empty, in blocking
* mode we wait for at least 1 byte of data. Therefore, in
* blocking mode, if there is no data at all to be read, this
* function will never exit (unless the socket is closed on the
* remote end).
*
* @access public
*
* @return string All data until the socket closes, or a PEAR_Error if
* not connected.
*/
function readAll()
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
$data = '';
while (!feof($this->fp)) {
$data .= @fread($this->fp, $this->lineLength);
}
return $data;
}
/**
* Runs the equivalent of the select() system call on the socket
* with a timeout specified by tv_sec and tv_usec.
*
* @param integer $state Which of read/write/error to check for.
* @param integer $tv_sec Number of seconds for timeout.
* @param integer $tv_usec Number of microseconds for timeout.
*
* @access public
* @return False if select fails, integer describing which of read/write/error
* are ready, or PEAR_Error if not connected.
*/
function select($state, $tv_sec, $tv_usec = 0)
{
if (!is_resource($this->fp)) {
return $this->raiseError('not connected');
}
$read = null;
$write = null;
$except = null;
if ($state & NET_SOCKET_READ) {
$read[] = $this->fp;
}
if ($state & NET_SOCKET_WRITE) {
$write[] = $this->fp;
}
if ($state & NET_SOCKET_ERROR) {
$except[] = $this->fp;
}
if (false === ($sr = stream_select($read, $write, $except, $tv_sec, $tv_usec))) {
return false;
}
$result = 0;
if (count($read)) {
$result |= NET_SOCKET_READ;
}
if (count($write)) {
$result |= NET_SOCKET_WRITE;
}
if (count($except)) {
$result |= NET_SOCKET_ERROR;
}
return $result;
}
}

View File

@ -0,0 +1,49 @@
<?php
/**
* EGroupware - modified PEAR modules
*
* @link http://www.egroupware.org
* @package egw-pear
* @subpackage setup
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
$setup_info['egw-pear']['name'] = 'egw-pear';
$setup_info['egw-pear']['title'] = 'egw-pear';
$setup_info['egw-pear']['version'] = '1.8';
$setup_info['egw-pear']['app_order'] = 99;
$setup_info['egw-pear']['enable'] = 0; // no need to show anywhere in EGroupware
$setup_info['egw-pear']['author'] = array(
'name' => 'PEAR - PHP Extension and Application Repository',
'url' => 'http://pear.php.net',
);
$setup_info['egw-pear']['license'] = 'PHP';
$setup_info['egw-pear']['description'] =
'A place for PEAR modules modified for eGroupWare.';
$setup_info['egw-pear']['note'] =
'This application is a place for PEAR modules used by eGroupWare, which are NOT YET available from pear,
because we patched them somehow and the PEAR modules are not released upstream.
This application is under the LGPL license because the GPL is not compatible with the PHP license.
If the modules are available from PEAR they do NOT belong here anymore.';
$setup_info['egw-pear']['maintainer'] = array(
'name' => 'eGroupWare coreteam',
'email' => 'egroupware-developers@lists.sourceforge.net',
);
// installation checks for egw-pear
$setup_info['egw-pear']['check_install'] = array(
// we need pear itself to be installed
'' => array(
'func' => 'pear_check',
'from' => 'FMail',
),
// Net_Socket is required from Net_IMAP & Net_Sieve
'Net_Socket' => array(
'func' => 'pear_check',
'from' => 'FMail',
),
);

View File

@ -0,0 +1,71 @@
#
# dbmail-ldap v3 directory schema
#
# Based on the Qmail schema
# Modified for dbmail by Paul Stevens <paul@nfg.nl>
# Modified for dbmail by Lars Kneschke <lkneschke@metaways.de> too
#
# This schema depends on:
# - core.schema
# - cosine.schema
# - nis.schema
#
# This schema conflicts with
# - qmailuser.schema
# Attribute Type Definitions
attributetype ( 1.3.6.1.4.1.12340.6.2.1.1 NAME 'mailQuota'
DESC 'The amount of space the user can use until all further messages get bounced.'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.12340.6.2.1.2 NAME 'mailForwardingAddress'
DESC 'Address(es) to forward all incoming messages to.'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.4.1.12340.6.2.1.3 NAME 'mailHost'
DESC 'Name or address of the MTA host to use for recipient'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
attributetype ( 1.3.6.1.4.1.12340.6.2.1.4 NAME 'dbmailUID'
DESC 'UID of the user on the mailsystem'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.12340.6.2.1.5 NAME 'dbmailGID'
DESC 'GID of the user on the mailsystem'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.12340.6.2.1.6 NAME 'mailAlternateAddress'
DESC 'Secondary (alias) mailaddresses for the same user'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
attributetype ( 1.3.6.1.4.1.12340.6.2.1.7 NAME 'deliveryMode'
DESC 'multi field entries of: normal, forwardonly'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.12340.6.2.1.8 NAME 'accountStatus'
DESC 'The status of a user account: active, disabled'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44 SINGLE-VALUE )
# Object Class Definitions
objectclass ( 1.3.6.1.4.1.12340.6.2.2.1 NAME 'dbmailUser'
DESC 'DBMail-LDAP User' SUP top AUXILIARY
MUST ( uid $ mail )
MAY ( userPassword $ uidNumber $ gidNumber $ mailQuota $ mailForwardingAddress $ mailHost $ mailAlternateAddress $ dbmailUID $ dbmailGID $ deliveryMode $ accountStatus ) )
objectclass ( 1.3.6.1.4.1.12340.6.2.2.2 NAME 'dbmailForwardingAddress'
DESC 'DBMail-LDAP Forwarding Address' SUP top AUXILIARY
MUST ( mail $ mailForwardingAddress ) )

754
emailadmin/doc/main.cf Normal file
View File

@ -0,0 +1,754 @@
# Global Postfix configuration file. This file lists only a subset
# of all 300+ parameters. See the sample-xxx.cf files for a full list.
#
# The general format is lines with parameter = value pairs. Lines
# that begin with whitespace continue the previous line. A value can
# contain references to other $names or ${name}s.
#
# NOTE - CHANGE NO MORE THAN 2-3 PARAMETERS AT A TIME, AND TEST IF
# POSTFIX STILL WORKS AFTER EVERY CHANGE.
# SOFT BOUNCE
#
# The soft_bounce parameter provides a limited safety net for
# testing. When soft_bounce is enabled, mail will remain queued that
# would otherwise bounce. This parameter disables locally-generated
# bounces, and prevents the SMTP server from rejecting mail permanently
# (by changing 5xx replies into 4xx replies). However, soft_bounce
# is no cure for address rewriting mistakes or mail routing mistakes.
#
#soft_bounce = no
# LOCAL PATHNAME INFORMATION
#
# The queue_directory specifies the location of the Postfix queue.
# This is also the root directory of Postfix daemons that run chrooted.
# See the files in examples/chroot-setup for setting up Postfix chroot
# environments on different UNIX systems.
#
queue_directory = /var/spool/postfix
# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin
# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.
#
daemon_directory = /usr/lib/postfix
# QUEUE AND PROCESS OWNERSHIP
#
# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM. In
# particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
# USER.
#
mail_owner = postfix
# The default_privs parameter specifies the default rights used by
# the local delivery agent for delivery to external file or command.
# These rights are used in the absence of a recipient user context.
# DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
#
#default_privs = nobody
# INTERNET HOST AND DOMAIN NAMES
#
# The myhostname parameter specifies the internet hostname of this
# mail system. The default is to use the fully-qualified domain name
# from gethostname(). $myhostname is used as a default value for many
# other configuration parameters.
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
# $mydomain is used as a default value for many other configuration
# parameters.
#
#mydomain = domain.tld
# SENDING MAIL
#
# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from. The default is to append $myhostname,
# which is fine for small sites. If you run a domain with multiple
# machines, you should (1) change this to $mydomain and (2) set up
# a domain-wide alias database that aliases each user to
# user@that.users.mailhost.
#
# For the sake of consistency between sender and recipient addresses,
# myorigin also specifies the default domain name that is appended
# to recipient addresses that have no @domain part.
#
#myorigin = $myhostname
#myorigin = $mydomain
# RECEIVING MAIL
# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
# See also the proxy_interfaces parameter, for network addresses that
# are forwarded to us via a proxy or network address translator.
#
# Note: you need to stop/start Postfix when this parameter changes.
#
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a
# proxy or network address translation unit. This setting extends
# the address list specified with the inet_interfaces parameter.
#
# You must specify your proxy/NAT addresses when your system is a
# backup MX host for other domains, otherwise mail delivery loops
# will happen when the primary MX host is down.
#
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
#
# These domains are routed to the delivery agent specified with the
# local_transport parameter setting. By default, that is the UNIX
# compatible delivery agent that lookups all recipients in /etc/passwd
# and /etc/aliases or their equivalent.
#
# The default is $myhostname + localhost.$mydomain. On a mail domain
# gateway, you should also include $mydomain.
#
# Do not specify the names of virtual domains - those domains are
# specified elsewhere (see sample-virtual.cf).
#
# Do not specify the names of domains that this machine is backup MX
# host for. Specify those names via the relay_domains settings for
# the SMTP server, or use permit_mx_backup if you are lazy (see
# sample-smtpd.cf).
#
# The local machine is always the final destination for mail addressed
# to user@[the.net.work.address] of an interface that the mail system
# receives mail on (see the inet_interfaces parameter).
#
# Specify a list of host or domain names, /file/name or type:table
# patterns, separated by commas and/or whitespace. A /file/name
# pattern is replaced by its contents; a type:table is matched when
# a name matches a lookup key (the right-hand side is ignored).
# Continue long lines by starting the next line with whitespace.
#
# DO NOT LIST RELAY DESTINATIONS IN MYDESTINATION.
# SPECIFY RELAY DESTINATIONS IN RELAY_DOMAINS.
#
# See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
#
#mydestination = $myhostname, localhost.$mydomain
#mydestination = $myhostname, localhost.$mydomain $mydomain
#mydestination = $myhostname, localhost.$mydomain, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain
mydestination = $myhostname, localhost.$mydomain $mydomain,
kneschke.de, phpgw.de, egroupware.org, linux-at-work.de, lists.kneschke.de
# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#
# The local_recipient_maps parameter specifies optional lookup tables
# with all names or addresses of users that are local with respect
# to $mydestination and $inet_interfaces.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown local users. This parameter is defined by default.
#
# To turn off local recipient checking in the SMTP server, specify
# local_recipient_maps = (i.e. empty).
#
# The default setting assumes that you use the default Postfix local
# delivery agent for local delivery. You need to update the
# local_recipient_maps setting if:
#
# - You define $mydestination domain recipients in files other than
# /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
# For example, you define $mydestination domain recipients in
# the $virtual_mailbox_maps files.
#
# - You redefine the local delivery agent in master.cf.
#
# - You redefine the "local_transport" setting in main.cf.
#
# - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
# feature of the Postfix local delivery agent (see sample-local.cf).
#
# Details are described in the LOCAL_RECIPIENT_README file.
#
# Beware: if the Postfix SMTP server runs chrooted, you probably have
# to access the passwd file via the proxymap service, in order to
# overcome chroot restrictions. The alternative, having a copy of
# the system passwd file in the chroot jail is just not practical.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify a bare username, an @domain.tld
# wild-card, or specify a user@domain.tld address.
#
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =
# The unknown_local_recipient_reject_code specifies the SMTP server
# response code when a recipient domain matches $mydestination or
# $inet_interfaces, while $local_recipient_maps is non-empty and the
# recipient address or address local-part is not found.
#
# The default setting is 550 (reject mail) but it is safer to start
# with 450 (try again later) until you are certain that your
# local_recipient_maps settings are OK.
#
unknown_local_recipient_reject_code = 550
#unknown_local_recipient_reject_code = 450
# TRUST AND RELAY CONTROL
# The mynetworks parameter specifies the list of "trusted" SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay mail
# through Postfix. See the smtpd_recipient_restrictions parameter
# in file sample-smtpd.cf.
#
# You can specify the list of "trusted" network addresses by hand
# or you can let Postfix do it for you (which is the default).
#
# By default (mynetworks_style = subnet), Postfix "trusts" SMTP
# clients in the same IP subnetworks as the local machine.
# On Linux, this does works correctly only with interfaces specified
# with the "ifconfig" command.
#
# Specify "mynetworks_style = class" when Postfix should "trust" SMTP
# clients in the same IP class A/B/C networks as the local machine.
# Don't do this with a dialup site - it would cause Postfix to "trust"
# your entire provider's network. Instead, specify an explicit
# mynetworks list by hand, as described below.
#
# Specify "mynetworks_style = host" when Postfix should "trust"
# only the local machine.
#
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
# Alternatively, you can specify the mynetworks list by hand, in
# which case Postfix ignores the mynetworks_style setting.
#
# Specify an explicit list of network/netmask patterns, where the
# mask specifies the number of bits in the network part of a host
# address.
#
# You can also specify the absolute pathname of a pattern file instead
# of listing the patterns here. Specify type:table for table-based lookups
# (the value on the table right-hand side is not used).
#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
# The relay_domains parameter restricts what destinations this system will
# relay mail to. See the smtpd_recipient_restrictions restriction in the
# file sample-smtpd.cf for detailed information.
#
# By default, Postfix relays mail
# - from "trusted" clients (IP address matches $mynetworks) to any destination,
# - from "untrusted" clients to destinations that match $relay_domains or
# subdomains thereof, except addresses with sender-specified routing.
# The default relay_domains value is $mydestination.
#
# In addition to the above, the Postfix SMTP server by default accepts mail
# that Postfix is final destination for:
# - destinations that match $inet_interfaces,
# - destinations that match $mydestination
# - destinations that match $virtual_alias_domains,
# - destinations that match $virtual_mailbox_domains.
# These destinations do not need to be listed in $relay_domains.
#
# Specify a list of hosts or domains, /file/name patterns or type:name
# lookup tables, separated by commas and/or whitespace. Continue
# long lines by starting the next line with whitespace. A file name
# is replaced by its contents; a type:name table is matched when a
# (parent) domain appears as lookup key.
#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction in the file sample-smtpd.cf.
#
#relay_domains = $mydestination
# INTERNET OR INTRANET
# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = gateway.my.domain
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
# REJECTING UNKNOWN RELAY USERS
#
# The relay_recipient_maps parameter specifies optional lookup tables
# with all addresses in the domains that match $relay_domains.
#
# If this parameter is defined, then the SMTP server will reject
# mail for unknown relay users. This feature is off by default.
#
# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify an @domain.tld wild-card, or specify
# a user@domain.tld address.
#
#relay_recipient_maps = hash:/etc/postfix/relay_recipients
# INPUT RATE CONTROL
#
# The in_flow_delay configuration parameter implements mail input
# flow control. This feature is turned on by default, although it
# still needs further development (it's disabled on SCO UNIX due
# to an SCO bug).
#
# A Postfix process will pause for $in_flow_delay seconds before
# accepting a new message, when the message arrival rate exceeds the
# message delivery rate. With the default 100 SMTP server process
# limit, this limits the mail inflow to 100 messages a second more
# than the number of messages delivered per second.
#
# Specify 0 to disable the feature. Valid delays are 0..10.
#
#in_flow_delay = 1s
# ADDRESS REWRITING
#
# Insert text from sample-rewrite.cf if you need to do address
# masquerading.
#
# Insert text from sample-canonical.cf if you need to do address
# rewriting, or if you need username->Firstname.Lastname mapping.
# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#
# Insert text from sample-virtual.cf if you need virtual domain support.
# "USER HAS MOVED" BOUNCE MESSAGES
#
# Insert text from sample-relocated.cf if you need "user has moved"
# style bounce messages. Alternatively, you can bounce recipients
# with an SMTP server access table. See sample-smtpd.cf.
# TRANSPORT MAP
#
# Insert text from sample-transport.cf if you need explicit routing.
# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
#
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases(5) for syntax
# details.
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible. Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi". This is a separate
# configuration parameter, because alias_maps (see above) may specify
# tables that are not necessarily all under control by Postfix.
#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
# ADDRESS EXTENSIONS (e.g., user+foo)
#
# The recipient_delimiter parameter specifies the separator between
# user names and address extensions (user+foo). See canonical(5),
# local(8), relocated(5) and virtual(5) for the effects this has on
# aliases, canonical, virtual, relocated and .forward file lookups.
# Basically, the software tries user+foo and .forward+foo before
# trying user and .forward.
#
#recipient_delimiter = +
# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/
# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail
# The mailbox_command parameter specifies the optional external
# command to use instead of mailbox delivery. The command is run as
# the recipient with proper HOME, SHELL and LOGNAME environment settings.
# Exception: delivery for root is done as $default_user.
#
# Other environment variables of interest: USER (recipient username),
# EXTENSION (address extension), DOMAIN (domain part of address),
# and LOCAL (the address localpart).
#
# Unlike other Postfix configuration parameters, the mailbox_command
# parameter is not subjected to $parameter substitutions. This is to
# make it easier to specify shell syntax (see example below).
#
# Avoid shell meta characters because they will force Postfix to run
# an expensive shell process. Procmail alone is expensive enough.
#
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
# The mailbox_transport specifies the optional transport in master.cf
# to use after processing aliases and .forward files. This parameter
# has precedence over the mailbox_command, fallback_transport and
# luser_relay parameters.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#mailbox_transport = lmtp:unix:/file/name
mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
#mailbox_transport = cyrus
# The fallback_transport specifies the optional transport in master.cf
# to use for recipients that are not found in the UNIX passwd database.
# This parameter has precedence over the luser_relay parameter.
#
# Specify a string of the form transport:nexthop, where transport is
# the name of a mail delivery transport defined in master.cf. The
# :nexthop part is optional. For more details see the sample transport
# configuration file.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must update the "local_recipient_maps" setting in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =
# The luser_relay parameter specifies an optional destination address
# for unknown recipients. By default, mail for unknown@$mydestination
# and unknown@[$inet_interfaces] is returned as undeliverable.
#
# The following expansions are done on luser_relay: $user (recipient
# username), $shell (recipient shell), $home (recipient home directory),
# $recipient (full recipient address), $extension (recipient address
# extension), $domain (recipient domain), $local (entire recipient
# localpart), $recipient_delimiter. Specify ${name?value} or
# ${name:value} to expand value only when $name does (does not) exist.
#
# luser_relay works only for the default Postfix local delivery agent.
#
# NOTE: if you use this feature for accounts not in the UNIX password
# file, then you must specify "local_recipient_maps =" (i.e. empty) in
# the main.cf file, otherwise the SMTP server will reject mail for
# non-UNIX accounts with "User unknown in local recipient table".
#
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
# JUNK MAIL CONTROLS
#
# The controls listed here are only a very small subset. See the file
# sample-smtpd.cf for an elaborate list of anti-UCE controls.
# The header_checks parameter specifies an optional table with patterns
# that each logical message header is matched against, including
# headers that span multiple physical lines.
#
# By default, these patterns also apply to MIME headers and to the
# headers of attached messages. With older Postfix versions, MIME and
# attached message headers were treated as body text.
#
# For details, see the sample-filter.cf file.
#
#header_checks = regexp:/etc/postfix/header_checks
# FAST ETRN SERVICE
#
# Postfix maintains per-destination logfiles with information about
# deferred mail, so that mail can be flushed quickly with the SMTP
# "ETRN domain.tld" command, or by executing "sendmail -qRdomain.tld".
#
# By default, Postfix maintains deferred mail logfile information
# only for destinations that Postfix is willing to relay to (as
# specified in the relay_domains parameter). For other destinations,
# Postfix attempts to deliver ALL queued mail after receiving the
# SMTP "ETRN domain.tld" command, or after execution of "sendmail
# -qRdomain.tld". This can be slow when a lot of mail is queued.
#
# The fast_flush_domains parameter controls what destinations are
# eligible for this "fast ETRN/sendmail -qR" service.
#
#fast_flush_domains = $relay_domains
#fast_flush_domains =
# The disable_vrfy_command parameter allows you to disable the SMTP
# VRFY command. This stops some techniques used by spammers to harvest
# email addresses.
#
disable_vrfy_command = yes
# SHOW SOFTWARE VERSION OR NOT
#
# The smtpd_banner parameter specifies the text that follows the 220
# code in the SMTP server's greeting banner. Some people like to see
# the mail version advertised. By default, Postfix shows no version.
#
# You MUST specify $myhostname at the start of the text. That is an
# RFC requirement. Postfix itself does not care.
#
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
# PARALLEL DELIVERY TO THE SAME DESTINATION
#
# How many parallel deliveries to the same user or domain? With local
# delivery, it does not make sense to do massively parallel delivery
# to the same user, because mailbox updates must happen sequentially,
# and expensive pipelines in .forward files can cause disasters when
# too many are run at the same time. With SMTP deliveries, 10
# simultaneous connections to the same domain could be sufficient to
# raise eyebrows.
#
# Each message delivery transport has its XXX_destination_concurrency_limit
# parameter. The default is $default_destination_concurrency_limit for
# most delivery transports. For the local delivery agent the default is 2.
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20
# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.
#
debug_peer_level = 2
# The debug_peer_list parameter specifies an optional list of domain
# or network patterns, /file/name patterns or type:name tables. When
# an SMTP client or server host name or address matches a pattern,
# increase the verbose logging level by the amount specified in the
# debug_peer_level parameter.
#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain
# The debugger_command specifies the external command that is executed
# when a Postfix daemon program is run with the -D option.
#
# Use "command .. & sleep 5" so that the debugger can attach before
# the process marches on. If you use an X-based debugger, be sure to
# set up your XAUTHORITY environment variable before starting Postfix.
#
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# If you don't have X installed on the Postfix machine, try:
# debugger_command =
# PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
# echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
# >$config_directory/$process_name.$process_id.log & sleep 5
# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail
# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases
# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
#
mailq_path = /usr/bin/mailq
# setgid_group: The group for mail submission and queue management
# commands. This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop
# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man
# sample_directory: The location of the Postfix sample configuration files.
#
sample_directory = /usr/share/doc/postfix-2.0.19/sample
# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.0.19/readme
default_destination_concurrency_limit = 2
#alias_database = hash:/etc/mail/aliases
local_destination_concurrency_limit = 2
alias_maps = hash:/etc/mail/aliases
content_filter = smtp-amavis:[127.0.0.1]:10024
queue_minfree = 100000000
message_size_limit = 50000000
mailbox_size_limit = 500000000
smtpd_helo_required=yes
smtpd_helo_restrictions=permit_mynetworks, reject_invalid_hostname, reject_invalid_hostname
smtpd_sender_restrictions=permit_mynetworks, reject_unknown_sender_domain, reject_non_fqdn_sender
virtual_maps = ldap:aliases, ldap:mailboxes
aliases_server_host = 127.0.0.1
aliases_search_base = dc=domain,dc=loc
aliases_query_filter = (&(|(mail=%s)(mailalternateaddress=%s))(objectclass=posixaccount)(deliveryMode=forwardonly)(accountstatus=active))
aliases_bind_dn = cn=thepostfixadmin,dc=domain,dc=loc
aliases_bind_pw = thepassword
aliases_result_attribute = mailforwardingaddress
aliases_version = 3
mailboxes_server_host = 127.0.0.1
mailboxes_search_base = dc=domain,dc=loc
mailboxes_query_filter = (&(|(mail=%s)(mailalternateaddress=%s))(objectclass=posixaccount)(accountstatus=active))
mailboxes_bind_dn = cn=thepostfixadmin,dc=domain,dc=loc
mailboxes_bind_pw = thepassword
mailboxes_result_attribute = uid, mailforwardingaddress
mailboxes_version = 3
#SMTPD mit SASL-Authentification verwenden
smtpd_sasl_auth_enable = yes
#Zusatz-Optionen: Keine anonyme-Anmeldung verwenden
smtpd_sasl_security_options = noanonymous
#Wieder ein Workaround für ältere Clients und Outlook
broken_sasl_auth_clients = yes
# ODER meine Netze und SASL erlauben
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_rbl_client relays.ordb.org,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client blackholes.wirehub.net,
reject_rbl_client list.dsbl.org,
reject_rbl_client dnsbl.sorbs.net,
reject_unauth_destination,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_pipelining,
reject_unknown_sender_domain,
reject_unknown_recipient_domain
# reject_unknown_client
# reject_rbl_client proxies.relays.monkeys.com,
# incoming SSL
smtpd_use_tls = yes
#smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/ssl/private/smtp.linux-at-work.de/smtp.linux-at-work.de.key
smtpd_tls_cert_file = /etc/ssl/private/smtp.linux-at-work.de/smtp.linux-at-work.de.crt
smtpd_tls_CAfile = /etc/ssl/certs/ca-cert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
#outgoing SSL
smtp_tls_key_file = /etc/ssl/private/smtp.linux-at-work.de/smtp.linux-at-work.de.key
smtp_tls_cert_file = /etc/ssl/private/smtp.linux-at-work.de/smtp.linux-at-work.de.crt
smtp_tls_CAfile = /etc/ssl/certs/ca-cert.pem
smtp_tls_CApath = /etc/ssl/certs
smtp_tls_loglevel = 2
# The server and client negotiate a session, which takes some computer time
# and network bandwidth. The session is cached only in the smtpd process
# actually using this session and is lost when the process dies.
# To share the session information between the smtp processes, a disc based
# session cache can be used based on the SDBM databases (routines included
# in Postfix/TLS). Since concurrent writing must be supported, only SDBM
# can be used.
#
smtp_tls_session_cache_database = sdbm:/etc/postfix/smtp_scache
# By default TLS is disabled, so no difference to plain postfix is visible.
# If you enable TLS it will be used when offered by the server.
# WARNING: I didn't have access to other software (except those explicitely
# listed) to test the interaction. On corresponding mailing list
# there was a discussion going on about MS exchange servers offering
# STARTTLS even if it is not configured, so it might be wise to not
# use this option on your central mail hub, as you don't know in advance
# whether you are going to hit such host. Use the recipient/site specific
# options instead.
# HINT: I have it switched on on my mailservers and did experience one
# single failure since client side TLS is implemented. (There was one
# misconfired MS Exchange server; I contacted ths admin.) Hence, I am happy
# with it running all the time, but I am interested in testing anyway.
# You have been warned, however :-)
#
# In case of failure, a "4xx" code is issued and the mail stays in the queue.
#
# Explicitely switch it on here, if you want it.
#
#smtp_use_tls = yes

View File

@ -0,0 +1,103 @@
#
# qmail-ldap v3 directory schema
#
# The offical qmail-ldap OID assigned by IANA is 7914
#
# Created by: David E. Storey <dave@tamos.net>
#
# Modified and included into qmail-ldap by Andre Oppermann <opi@nrg4u.com>
#
# Schema fixes by Mike Jackson <mjj@pp.fi>
#
#
# This schema depends on:
# - core.schema
# - cosine.schema
# - nis.schema
#
#
# Example from new format
#
# attributetype ( 1.3.6.1.1.1.1.0 NAME 'uidNumber'
# DESC 'An integer uniquely identifying a user in an administrative domain'
# EQUALITY integerMatch
# SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
# Attribute Type Definitions
attributetype ( 1.3.6.1.4.1.7914.1.2.1.1 NAME 'qmailUID'
DESC 'UID of the user on the mailsystem'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.2 NAME 'qmailGID'
DESC 'GID of the user on the mailsystem'
EQUALITY integerMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.3 NAME 'mailMessageStore'
DESC 'Path to the maildir/mbox on the mail system'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.4 NAME 'mailAlternateAddress'
DESC 'Secondary (alias) mailaddresses for the same user'
EQUALITY caseIgnoreIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.5 NAME 'mailQuota'
DESC 'The amount of space the user can use until all further messages get bounced.'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.6 NAME 'mailHost'
DESC 'On which qmail server the messagestore of this user is located.'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE)
attributetype ( 1.3.6.1.4.1.7914.1.2.1.7 NAME 'mailForwardingAddress'
DESC 'Address(es) to forward all incoming messages to.'
EQUALITY caseIgnoreIA5Match
SUBSTR caseIgnoreIA5SubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.8 NAME 'deliveryProgramPath'
DESC 'Program to execute for all incoming mails.'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.9 NAME 'qmailDotMode'
DESC 'Interpretation of .qmail files: both, dotonly, ldaponly, ldapwithprog, none'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.10 NAME 'deliveryMode'
DESC 'multi field entries of: normal, forwardonly, nombox, localdelivery, reply, echo'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44 )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.11 NAME 'mailReplyText'
DESC 'A reply text for every incoming message'
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{4096} SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.12 NAME 'accountStatus'
DESC 'The status of a user account: active, nopop, disabled, deleted'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44 SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.7914.1.2.1.14 NAME 'qmailAccountPurge'
DESC 'The earliest date when a mailMessageStore will be purged'
EQUALITY numericStringMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.36 SINGLE-VALUE )
# Object Class Definitions
objectclass ( 1.3.6.1.4.1.7914.1.2.2.1 NAME 'qmailUser'
DESC 'QMail-LDAP User' SUP top AUXILIARY
MUST ( mail $ uid )
MAY ( mailMessageStore $ homeDirectory $ userPassword $
mailAlternateAddress $ qmailUID $ qmailGID $ mailQuota $
mailHost $ mailForwardingAddress $ deliveryProgramPath $
qmailDotMode $ deliveryMode $ mailReplyText $
accountStatus $ qmailAccountPurge ) )

View File

@ -0,0 +1,46 @@
<?php
/***************************************************************************\
* eGroupWare - EmailAdmin *
* http://www.linux-at-work.de *
* http://www.egroupware.org *
* Written by : Lars Kneschke [lkneschke@linux-at-work.de] *
* ------------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License version 2 as published *
* by the Free Software Foundation. *
\***************************************************************************/
/* $Id$ */
class ajaxemailadmin
{
function ajaxemailadmin()
{
$this->bo = new emailadmin_bo();
}
function addACL($_accountName, $_aclData)
{
if(!empty($_accountName))
{
$acl = implode('',(array)$_aclData['acl']);
$data = $this->bofelamimail->addACL($this->sessionDataAjax['folderName'], $_accountName, $acl);
#$response = new xajaxResponse();
#$response->addScript("window.close();");
#$response->addAssign("accountName", "value", $this->sessionDataAjax['folderName'].'-'.$_accountName.'-'.$acl);
#return $response->getXML();
}
}
function updateACLView()
{
$folderACL = $this->bofelamimail->getIMAPACL($this->sessionDataAjax['folderName']);
$response = new xajaxResponse();
$response->addAssign("aclTable", "innerHTML", $this->createACLTable($folderACL));
return $response->getXML();
}
}
?>

View File

@ -0,0 +1,209 @@
<?php
/**
* EGroupware EMailAdmin: Support for Cyrus IMAP
*
* @link http://www.stylite.de
* @package emailadmin
* @author Ralf Becker <rb@stylite.de>
* @author Klaus Leithoff <kl@stylite.de>
* @author Lars Kneschke
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
include_once(EGW_SERVER_ROOT."/emailadmin/inc/class.defaultimap.inc.php");
/**
* Manages connection to Cyrus IMAP server
*/
class cyrusimap extends defaultimap
{
/**
* Capabilities of this class (pipe-separated): default, sieve, admin, logintypeemail
*/
const CAPABILITIES = 'default|sieve|admin|logintypeemail';
// mailbox delimiter
var $mailboxDelimiter = '.';
// mailbox prefix
var $mailboxPrefix = '';
var $enableCyrusAdmin = false;
var $cyrusAdminUsername;
var $cyrusAdminPassword;
/**
* Updates an account
*
* @param array $_hookValues only value for key 'account_lid' and 'new_passwd' is used
*/
function addAccount($_hookValues)
{
return $this->updateAccount($_hookValues);
}
/**
* Delete an account
*
* @param array $_hookValues only value for key 'account_lid' is used
*/
function deleteAccount($_hookValues)
{
// some precausion to really delete just _one_ account
if (strpos($_hookValues['account_lid'],'%') !== false ||
strpos($_hookValues['account_lid'],'*') !== false)
{
return false;
}
return !!$this->deleteUsers($_hookValues['account_lid']);
}
/**
* Delete multiple (user-)mailboxes via a wildcard, eg. '%' for whole domain
*
* Domain is the configured domain and it uses the Cyrus admin user
*
* @return string $username='%' username containing wildcards, default '%' for all users of a domain
* @return int|boolean number of deleted mailboxes on success or false on error
*/
function deleteUsers($username='%')
{
if(!$this->enableCyrusAdmin || empty($username)) {
return false;
}
// we need a admin connection
if($this->_connected === true && !$this->isAdminConnection) {
$this->disconnect();
if(!$this->openConnection(true)) {
return false;
}
}
$mailboxName = $this->getUserMailboxString($username);
list($reference,$restriction) = explode($username,$mailboxName,2);
$mboxes = $this->getMailboxes($reference,$username.$restriction);
//error_log(__METHOD__."('$username') getMailboxes('$reference','$username$restriction') = ".array2string($mboxes));
foreach($mboxes as $mbox) {
// give the admin account the rights to delete this mailbox
if(PEAR::isError($this->setACL($mbox, $this->adminUsername, 'lrswipcda'))) {
$this->disconnect();
return false;
}
if(PEAR::isError($this->deleteMailbox($mbox))) {
$this->disconnect();
return false;
}
}
$this->disconnect();
return count($mboxes);
}
/**
* returns information about a user
* currently only supported information is the current quota
*
* @param string $_username
* @return array userdata
*/
function getUserData($_username)
{
if($this->_connected === true) {
//error_log(__METHOD__."try to disconnect");
$this->disconnect();
}
$this->openConnection(true);
$userData = array();
if($quota = $this->getQuotaByUser($_username)) {
$userData['quotaLimit'] = $quota / 1024;
}
$this->disconnect();
return $userData;
}
/**
* Set information about a user
* currently only supported information is the current quota
*
* @param string $_username
* @param int $_quota
*/
function setUserData($_username, $_quota)
{
if(!$this->enableCyrusAdmin) {
return false;
}
if($this->_connected === true) {
$this->disconnect();
}
// create a admin connection
if(!$this->openConnection(true)) {
return false;
}
$mailboxName = $this->getUserMailboxString($_username);
if((int)$_quota > 0) {
// enable quota
$quota_value = $this->setStorageQuota($mailboxName, (int)$_quota*1024);
} else {
// disable quota
$quota_value = $this->setStorageQuota($mailboxName, -1);
}
$this->disconnect();
return true;
}
/**
* Updates an account
*
* @param array $_hookValues only value for key 'account_lid' and 'new_passwd' is used
*/
function updateAccount($_hookValues)
{
if(!$this->enableCyrusAdmin) {
return false;
}
#_debug_array($_hookValues);
$username = $_hookValues['account_lid'];
if(isset($_hookValues['new_passwd'])) {
$userPassword = $_hookValues['new_passwd'];
}
if($this->_connected === true) {
$this->disconnect();
}
// we need a admin connection
if(!$this->openConnection(true)) {
return false;
}
// create the mailbox, with the account_lid, as it is passed from the hook values (gets transformed there if needed)
$mailboxName = $this->getUserMailboxString($username, $mailboxName);
// make sure we use the correct username here.
$username = $this->getMailBoxUserName($username);
$folderInfo = $this->getMailboxes('', $mailboxName, true);
if(empty($folderInfo)) {
if(!PEAR::isError($this->createMailbox($mailboxName))) {
if(PEAR::isError($this->setACL($mailboxName, $username, "lrswipcda"))) {
# log error message
}
}
}
$this->disconnect();
}
}

View File

@ -0,0 +1,182 @@
<?php
/**
* EGroupware EMailAdmin: Support for DBMail IMAP with dbmailUser LDAP schema
*
* @link http://www.stylite.de
* @package emailadmin
* @author Ralf Becker <rb@stylite.de>
* @author Klaus Leithoff <kl@stylite.de>
* @author Lars Kneschke
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
include_once(EGW_SERVER_ROOT."/emailadmin/inc/class.defaultimap.inc.php");
/**
* Support for DBMail IMAP with qmailUser LDAP schema
*
* @todo base this class on dbmailqmailuser or the other way around
*/
class dbmaildbmailuser extends defaultimap
{
/**
* Capabilities of this class (pipe-separated): default, sieve, admin, logintypeemail
*/
const CAPABILITIES = 'default|sieve';
function addAccount($_hookValues) {
return $this->updateAccount($_hookValues);
}
#function deleteAccount($_hookValues) {
#}
function getUserData($_username) {
$userData = array();
$ds = $GLOBALS['egw']->ldap->ldapConnect(
$GLOBALS['egw_info']['server']['ldap_host'],
$GLOBALS['egw_info']['server']['ldap_root_dn'],
$GLOBALS['egw_info']['server']['ldap_root_pw']
);
if(!is_resource($ds)) {
return false;
}
$filter = '(&(objectclass=posixaccount)(uid='. $_username .')(dbmailGID='. sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id'])) .'))';
$justthese = array('dn', 'objectclass', 'mailQuota');
if($sri = ldap_search($ds, $GLOBALS['egw_info']['server']['ldap_context'], $filter, $justthese)) {
if($info = ldap_get_entries($ds, $sri)) {
if(isset($info[0]['mailquota'][0])) {
$userData['quotaLimit'] = $info[0]['mailquota'][0] / 1048576;
}
}
}
return $userData;
}
function updateAccount($_hookValues) {
if(!$uidnumber = (int)$_hookValues['account_id']) {
return false;
}
$ds = $GLOBALS['egw']->ldap->ldapConnect(
$GLOBALS['egw_info']['server']['ldap_host'],
$GLOBALS['egw_info']['server']['ldap_root_dn'],
$GLOBALS['egw_info']['server']['ldap_root_pw']
);
if(!is_resource($ds)) {
return false;
}
$filter = '(&(objectclass=posixaccount)(uidnumber='. $uidnumber .'))';
$justthese = array('dn', 'objectclass', 'dbmailUID', 'dbmailGID', 'mail');
$sri = ldap_search($ds, $GLOBALS['egw_info']['server']['ldap_context'], $filter, $justthese);
if($info = ldap_get_entries($ds, $sri)) {
if((!in_array('dbmailuser',$info[0]['objectclass']) && !in_array('dbmailUser',$info[0]['objectclass'])) && $info[0]['mail']) {
$newData['objectclass'] = $info[0]['objectclass'];
unset($newData['objectclass']['count']);
$newData['objectclass'][] = 'dbmailuser';
sort($newData['objectclass']);
$newData['dbmailGID'] = sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id']));
$newData['dbmailUID'] = (!empty($this->domainName)) ? $_hookValues['account_lid'] .'@'. $this->domainName : $_hookValues['account_lid'];
if(!ldap_modify($ds, $info[0]['dn'], $newData)) {
#print ldap_error($ds);
}
return true;
} else {
$newData = array();
$newData['dbmailUID'] = (!empty($this->domainName)) ? $_hookValues['account_lid'] .'@'. $this->domainName : $_hookValues['account_lid'];
$newData['dbmailGID'] = sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id']));
if(!ldap_modify($ds, $info[0]['dn'], $newData)) {
print ldap_error($ds);
_debug_array($newData);
exit;
#return false;
}
}
}
return false;
}
function setUserData($_username, $_quota) {
$ds = $GLOBALS['egw']->ldap->ldapConnect(
$GLOBALS['egw_info']['server']['ldap_host'],
$GLOBALS['egw_info']['server']['ldap_root_dn'],
$GLOBALS['egw_info']['server']['ldap_root_pw']
);
if(!is_resource($ds)) {
return false;
}
$filter = '(&(objectclass=posixaccount)(uid='. $_username .'))';
$justthese = array('dn', 'objectclass', 'dbmailGID', 'dbmailUID', 'mail');
$sri = ldap_search($ds, $GLOBALS['egw_info']['server']['ldap_context'], $filter, $justthese);
if($info = ldap_get_entries($ds, $sri)) {
$validLDAPConfig = false;
if(in_array('dbmailuser',$info[0]['objectclass']) || in_array('dbmailUser',$info[0]['objectclass'])) {
$validLDAPConfig = true;
}
if(!in_array('dbmailuser',$info[0]['objectclass']) && !in_array('dbmailUser',$info[0]['objectclass']) && $info[0]['mail']) {
$newData['objectclass'] = $info[0]['objectclass'];
unset($newData['objectclass']['count']);
$newData['objectclass'][] = 'dbmailUser';
sort($newData['objectclass']);
$newData['dbmailGID'] = sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id']));
$newData['dbmailUID'] = (!empty($this->domainName)) ? $_username .'@'. $this->domainName : $_username;
if(ldap_modify($ds, $info[0]['dn'], $newData)) {
$validLDAPConfig = true;
}
} else {
if ((in_array('dbmailuser',$info[0]['objectclass']) || in_array('dbmailUser',$info[0]['objectclass'])) && !$info[0]['dbmailuid']) {
$newData = array();
$newData['dbmailUID'] = (!empty($this->domainName)) ? $_username .'@'. $this->domainName : $_username;
if(!ldap_modify($ds, $info[0]['dn'], $newData)) {
#print ldap_error($ds);
#return false;
}
}
if ((in_array('dbmailuser',$info[0]['objectclass']) || in_array('dbmailUser',$info[0]['objectclass'])) && !$info[0]['dbmailgid']) {
$newData = array();
$newData['dbmailGID'] = sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id']));
if(!ldap_modify($ds, $info[0]['dn'], $newData)) {
#print ldap_error($ds);
#return false;
}
}
}
if($validLDAPConfig) {
$newData = array();
if((int)$_quota >= 0) {
$newData['mailQuota'] = (int)$_quota * 1048576;
} else {
$newData['mailQuota'] = array();
}
if(!ldap_modify($ds, $info[0]['dn'], $newData)) {
#print ldap_error($ds);
return false;
}
}
return true;
}
return false;
}
}

View File

@ -0,0 +1,161 @@
<?php
/**
* EGroupware EMailAdmin: Support for DBMail IMAP with qmailUser LDAP schema
*
* @link http://www.stylite.de
* @package emailadmin
* @author Ralf Becker <rb@stylite.de>
* @author Klaus Leithoff <kl@stylite.de>
* @author Lars Kneschke
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
include_once(EGW_SERVER_ROOT."/emailadmin/inc/class.defaultimap.inc.php");
/**
* Support for DBMail IMAP with qmailUser LDAP schema
*
* @todo base this class on dbmaildbmailuser or the other way around
*/
class dbmailqmailuser extends defaultimap
{
/**
* Capabilities of this class (pipe-separated): default, sieve, admin, logintypeemail
*/
const CAPABILITIES = 'default|sieve';
function addAccount($_hookValues) {
return $this->updateAccount($_hookValues);
}
#function deleteAccount($_hookValues) {
#}
function getUserData($_username) {
$userData = array();
$ds = $GLOBALS['egw']->ldap->ldapConnect(
$GLOBALS['egw_info']['server']['ldap_host'],
$GLOBALS['egw_info']['server']['ldap_root_dn'],
$GLOBALS['egw_info']['server']['ldap_root_pw']
);
if(!is_resource($ds)) {
return false;
}
$filter = '(&(objectclass=posixaccount)(uid='. $_username .')(qmailGID='. sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id'])) .'))';
$justthese = array('dn', 'objectclass', 'mailQuota');
if($sri = ldap_search($ds, $GLOBALS['egw_info']['server']['ldap_context'], $filter, $justthese)) {
if($info = ldap_get_entries($ds, $sri)) {
if(isset($info[0]['mailquota'][0])) {
$userData['quotaLimit'] = $info[0]['mailquota'][0] / 1048576;
}
}
}
return $userData;
}
function updateAccount($_hookValues) {
if(!$uidnumber = (int)$_hookValues['account_id']) {
return false;
}
$ds = $GLOBALS['egw']->ldap->ldapConnect(
$GLOBALS['egw_info']['server']['ldap_host'],
$GLOBALS['egw_info']['server']['ldap_root_dn'],
$GLOBALS['egw_info']['server']['ldap_root_pw']
);
if(!is_resource($ds)) {
return false;
}
$filter = '(&(objectclass=posixaccount)(uidnumber='. $uidnumber .'))';
$justthese = array('dn', 'objectclass', 'qmailUID', 'qmailGID', 'mail');
$sri = ldap_search($ds, $GLOBALS['egw_info']['server']['ldap_context'], $filter, $justthese);
if($info = ldap_get_entries($ds, $sri)) {
if(!in_array('qmailuser',$info[0]['objectclass']) && $info[0]['email']) {
$newData['objectclass'] = $info[0]['objectclass'];
unset($newData['objectclass']['count']);
$newData['objectclass'][] = 'qmailuser';
sort($newData['objectclass']);
$newData['qmailGID'] = sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id']));
#$newData['qmailUID'] = (!empty($this->domainName)) ? $_username .'@'. $this->domainName : $_username;
ldap_modify($ds, $info[0]['dn'], $newData);
return true;
} else {
$newData = array();
$newData['qmailGID'] = sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id']));
#$newData['qmailUID'] = (!empty($this->domainName)) ? $_username .'@'. $this->domainName : $_username;
if(!ldap_modify($ds, $info[0]['dn'], $newData)) {
#print ldap_error($ds);
#return false;
}
}
}
return false;
}
function setUserData($_username, $_quota) {
$ds = $GLOBALS['egw']->ldap->ldapConnect(
$GLOBALS['egw_info']['server']['ldap_host'],
$GLOBALS['egw_info']['server']['ldap_root_dn'],
$GLOBALS['egw_info']['server']['ldap_root_pw']
);
if(!is_resource($ds)) {
return false;
}
$filter = '(&(objectclass=posixaccount)(uid='. $_username .'))';
$justthese = array('dn', 'objectclass', 'qmailGID', 'mail');
$sri = ldap_search($ds, $GLOBALS['egw_info']['server']['ldap_context'], $filter, $justthese);
if($info = ldap_get_entries($ds, $sri)) {
#_debug_array($info);
if(!in_array('qmailuser',$info[0]['objectclass']) && $info[0]['email']) {
$newData['objectclass'] = $info[0]['objectclass'];
unset($newData['objectclass']['count']);
$newData['objectclass'][] = 'qmailuser';
sort($newData['objectclass']);
$newData['qmailGID'] = sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id']));
ldap_modify($ds, $info[0]['dn'], $newData);
} else {
if (in_array('qmailuser',$info[0]['objectclass']) && !$info[0]['qmailgid']) {
$newData = array();
$newData['qmailGID'] = sprintf("%u", crc32($GLOBALS['egw_info']['server']['install_id']));
if(!ldap_modify($ds, $info[0]['dn'], $newData)) {
#print ldap_error($ds);
#return false;
}
}
}
$newData = array();
if((int)$_quota >= 0) {
$newData['mailQuota'] = (int)$_quota * 1048576;
} else {
$newData['mailQuota'] = array();
}
if(!ldap_modify($ds, $info[0]['dn'], $newData)) {
#print ldap_error($ds);
return false;
}
return true;
}
return false;
}
}

View File

@ -0,0 +1,669 @@
<?php
/**
* EGroupware EMailAdmin: Support for Cyrus IMAP (or other IMAP Server supporting Sieve)
*
* @link http://www.stylite.de
* @package emailadmin
* @author Ralf Becker <rb@stylite.de>
* @author Klaus Leithoff <kl@stylite.de>
* @author Lars Kneschke
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
require_once 'Net/IMAP.php';
define('IMAP_NAMESPACE_PERSONAL', 'personal');
define('IMAP_NAMESPACE_OTHERS' , 'others');
define('IMAP_NAMESPACE_SHARED' , 'shared');
define('IMAP_NAMESPACE_ALL' , 'all');
/**
* This class holds all information about the imap connection.
* This is the base class for all other imap classes.
*
* Also proxies Sieve calls to emailadmin_sieve (eg. it behaves like the former felamimail bosieve),
* to allow IMAP plugins to also manage Sieve connection.
*/
class defaultimap extends Net_IMAP
{
/**
* Capabilities of this class (pipe-separated): default, sieve, admin, logintypeemail
*/
const CAPABILITIES = 'default|sieve';
/**
* ImapServerId
*
* @var int
*/
var $ImapServerId;
/**
* the password to be used for admin connections
*
* @var string
*/
var $adminPassword;
/**
* the username to be used for admin connections
*
* @var string
*/
var $adminUsername;
/**
* enable encryption
*
* @var bool
*/
var $encryption;
/**
* the hostname/ip address of the imap server
*
* @var string
*/
var $host;
/**
* the password for the user
*
* @var string
*/
var $password;
/**
* the port of the imap server
*
* @var integer
*/
var $port = 143;
/**
* the username
*
* @var string
*/
var $username;
/**
* the domainname to be used for vmailmgr logins
*
* @var string
*/
var $domainName = false;
/**
* validate ssl certificate
*
* @var bool
*/
var $validatecert;
/**
* the mailbox delimiter
*
* @var string
*/
var $mailboxDelimiter = '/';
/**
* the mailbox prefix. maybe used by uw-imap only?
*
* @var string
*/
var $mailboxPrefix = '~/mail';
/**
* is the mbstring extension available
*
* @var unknown_type
*/
var $mbAvailable;
/**
* Mailboxes which get automatic created for new accounts (INBOX == '')
*
* @var array
*/
var $imapLoginType;
var $defaultDomain;
/**
* disable internal conversion from/to ut7
* get's used by Net_IMAP
*
* @var array
*/
var $_useUTF_7 = false;
/**
* a debug switch
*/
var $debug = false;
/**
* Sieve available
*
* @var boolean
*/
var $enableSieve = false;
/**
* Hostname / IP of sieve host
*
* @var string
*/
var $sieveHost;
/**
* Port of Sieve service
*
* @var int
*/
var $sievePort = 2000;
/**
* the construtor
*
* @return void
*/
function __construct()
{
if (function_exists('mb_convert_encoding')) {
$this->mbAvailable = TRUE;
}
$this->restoreSessionData();
// construtor for Net_IMAP stuff
$this->Net_IMAPProtocol();
}
/**
* Magic method to re-connect with the imapserver, if the object get's restored from the session
*/
function __wakeup()
{
#$this->openConnection($this->isAdminConnection); // we need to re-connect
}
/**
* adds a account on the imap server
*
* @param array $_hookValues
* @return bool true on success, false on failure
*/
function addAccount($_hookValues)
{
return true;
}
/**
* updates a account on the imap server
*
* @param array $_hookValues
* @return bool true on success, false on failure
*/
function updateAccount($_hookValues)
{
return true;
}
/**
* deletes a account on the imap server
*
* @param array $_hookValues
* @return bool true on success, false on failure
*/
function deleteAccount($_hookValues)
{
return true;
}
function disconnect()
{
//error_log(__METHOD__.function_backtrace());
$retval = parent::disconnect();
if( PEAR::isError($retval)) error_log(__METHOD__.$retval->message);
$this->_connected = false;
}
/**
* converts a foldername from current system charset to UTF7
*
* @param string $_folderName
* @return string the encoded foldername
*/
function encodeFolderName($_folderName)
{
if($this->mbAvailable) {
return mb_convert_encoding($_folderName, "UTF7-IMAP", $GLOBALS['egw']->translation->charset());
}
// if not
// we can encode only from ISO 8859-1
return imap_utf7_encode($_folderName);
}
/**
* returns the supported capabilities of the imap server
* return false if the imap server does not support capabilities
*
* @return array the supported capabilites
*/
function getCapabilities()
{
if(!is_array($this->sessionData['capabilities'][$this->host])) {
return false;
}
return $this->sessionData['capabilities'][$this->host];
}
/**
* return the delimiter used by the current imap server
*
* @return string the delimimiter
*/
function getDelimiter()
{
return isset($this->sessionData['delimiter'][$this->host]) ? $this->sessionData['delimiter'][$this->host] : $this->mailboxDelimiter;
}
/**
* Create transport string
*
* @return string the transportstring
*/
function _getTransportString()
{
if($this->encryption == 2) {
$connectionString = "tls://". $this->host;
} elseif($this->encryption == 3) {
$connectionString = "ssl://". $this->host;
} else {
// no tls
$connectionString = $this->host;
}
return $connectionString;
}
/**
* Create the options array for SSL/TLS connections
*
* @return string the transportstring
*/
function _getTransportOptions()
{
if($this->validatecert === false) {
if($this->encryption == 2) {
return array(
'tls' => array(
'verify_peer' => false,
'allow_self_signed' => true,
)
);
} elseif($this->encryption == 3) {
return array(
'ssl' => array(
'verify_peer' => false,
'allow_self_signed' => true,
)
);
}
} else {
if($this->encryption == 2) {
return array(
'tls' => array(
'verify_peer' => true,
'allow_self_signed' => false,
)
);
} elseif($this->encryption == 3) {
return array(
'ssl' => array(
'verify_peer' => true,
'allow_self_signed' => false,
)
);
}
}
return null;
}
/**
* get the effective Username for the Mailbox, as it is depending on the loginType
* @param string $_username
* @return string the effective username to be used to access the Mailbox
*/
function getMailBoxUserName($_username)
{
switch ($this->loginType)
{
case 'email':
$_username = $_username;
$accountID = $GLOBALS['egw']->accounts->name2id($_username);
$accountemail = $GLOBALS['egw']->accounts->id2name($accountID,'account_email');
//$accountemail = $GLOBALS['egw']->accounts->read($GLOBALS['egw']->accounts->name2id($_username,'account_email'));
if (!empty($accountemail))
{
list($lusername,$domain) = explode('@',$accountemail,2);
if (strtolower($domain) == strtolower($this->domainName) && !empty($lusername))
{
$_username = $lusername;
}
}
break;
case 'uidNumber':
$_username = 'u'.$GLOBALS['egw']->accounts->name2id($_username);
break;
}
return $_username;
}
/**
* Create mailbox string from given mailbox-name and user-name
*
* @param string $_folderName=''
* @return string utf-7 encoded (done in getMailboxName)
*/
function getUserMailboxString($_username, $_folderName='')
{
$nameSpaces = $this->getNameSpaces();
if(!isset($nameSpaces['others'])) {
return false;
}
$_username = $this->getMailBoxUserName($_username);
if($this->loginType == 'vmailmgr' || $this->loginType == 'email' || $this->loginType == 'uidNumber') {
$_username .= '@'. $this->domainName;
}
$mailboxString = $nameSpaces['others'][0]['name'] . $_username . (!empty($_folderName) ? $nameSpaces['others'][0]['delimiter'] . $_folderName : '');
return $mailboxString;
}
/**
* get list of namespaces
*
* @return array array containing information about namespace
*/
function getNameSpaces()
{
if(!$this->_connected) {
return false;
}
$retrieveDefault = false;
if($this->hasCapability('NAMESPACE')) {
$nameSpace = $this->getNamespace();
if( PEAR::isError($nameSpace)) {
//error_log("emailadmin::defaultimap->getNameSpaces: called from->".function_backtrace());
if ($this->debug) error_log("emailadmin::defaultimap->getNameSpaces:".print_r($nameSpace,true));
$retrieveDefault = true;
} else {
$result = array();
$result['personal'] = $nameSpace['personal'];
if(is_array($nameSpace['others'])) {
$result['others'] = $nameSpace['others'];
}
if(is_array($nameSpace['shared'])) {
$result['shared'] = $nameSpace['shared'];
}
}
}
if (!$this->hasCapability('NAMESPACE') || $retrieveDefault) {
$delimiter = $this->getHierarchyDelimiter();
if( PEAR::isError($delimiter)) $delimiter = '/';
$result['personal'] = array(
0 => array(
'name' => '',
'delimiter' => $delimiter
)
);
}
return $result;
}
/**
* returns the quota for given foldername
* gets quota for the current user only
*
* @param string $_folderName
* @return string the current quota for this folder
*/
# function getQuota($_folderName)
# {
# if(!is_resource($this->mbox)) {
# $this->openConnection();
# }
#
# if(function_exists('imap_get_quotaroot') && $this->supportsCapability('QUOTA')) {
# $quota = @imap_get_quotaroot($this->mbox, $this->encodeFolderName($_folderName));
# if(is_array($quota) && isset($quota['STORAGE'])) {
# return $quota['STORAGE'];
# }
# }
#
# return false;
# }
/**
* return the quota for another user
* used by admin connections only
*
* @param string $_username
* @return string the quota for specified user
*/
function getQuotaByUser($_username)
{
$mailboxName = $this->getUserMailboxString($_username);
//error_log(__METHOD__.$mailboxName);
$storageQuota = $this->getStorageQuota($mailboxName);
//error_log(__METHOD__.$_username);
//error_log(__METHOD__.$mailboxName);
if ( PEAR::isError($storageQuota)) error_log(__METHOD__.$storageQuota->message);
if(is_array($storageQuota) && isset($storageQuota['QMAX'])) {
return (int)$storageQuota['QMAX'];
}
return false;
}
/**
* returns information about a user
*
* Only a stub, as admin connection requires, which is only supported for Cyrus
*
* @param string $_username
* @return array userdata
*/
function getUserData($_username)
{
return array();
}
/**
* opens a connection to a imap server
*
* @param bool $_adminConnection create admin connection if true
*
* @return resource the imap connection
*/
function openConnection($_adminConnection=false)
{
//error_log(__METHOD__.function_backtrace());
//error_log(__METHOD__.__LINE__.($_adminConnection?' Adminconnection':'').array2string($this));
unset($this->_connectionErrorObject);
if($_adminConnection) {
$username = $this->adminUsername;
$password = $this->adminPassword;
$options = '';
$this->isAdminConnection = true;
} else {
$username = $this->loginName;
$password = $this->password;
$options = $_options;
$this->isAdminConnection = false;
}
$this->setStreamContextOptions($this->_getTransportOptions());
$this->setTimeout(20);
if( PEAR::isError($status = parent::connect($this->_getTransportString(), $this->port, $this->encryption == 1)) ) {
if ($this->debug) error_log(__METHOD__."Could not connect with ".$this->_getTransportString()." on Port ".$this->port." Encryption==1?".$this->encryption);
if ($this->debug) error_log(__METHOD__."Status connect:".$status->message);
$this->_connectionErrorObject = $status;
return false;
}
if(empty($username))
{
if ($this->debug) error_log(__METHOD__."No username supplied.".function_backtrace());
return false;
}
if( PEAR::isError($status = parent::login($username, $password, 'LOGIN', !$this->isAdminConnection)) ) {
if ($this->debug) error_log(__METHOD__."Could not log in with ->".$username.":".$password."<-");
if ($this->debug) error_log(__METHOD__."Status login:".array2string($status->message));
//error_log(__METHOD__.'Called from:'.function_backtrace());
$this->disconnect();
$this->_connectionErrorObject = $status;
return false;
}
return true;
}
/**
* restore session variable
*
*/
function restoreSessionData()
{
$this->sessionData = $GLOBALS['egw']->session->appsession('imap_session_data');
}
/**
* save session variable
*
*/
function saveSessionData()
{
$GLOBALS['egw']->session->appsession('imap_session_data','',$this->sessionData);
}
/**
* set userdata
*
* @param string $_username username of the user
* @param int $_quota quota in bytes
* @return bool true on success, false on failure
*/
function setUserData($_username, $_quota)
{
return true;
}
/**
* check if imap server supports given capability
*
* @param string $_capability the capability to check for
* @return bool true if capability is supported, false if not
*/
function supportsCapability($_capability)
{
return $this->hasCapability($_capability);
}
/**
* Instance of emailadmin_sieve
*
* @var emailadmin_sieve
*/
private $sieve;
public $scriptName;
public $error;
//public $error;
/**
* Proxy former felamimail bosieve methods to internal emailadmin_sieve instance
*
* @param string $name
* @param array $params
*/
public function __call($name,array $params=null)
{
if ($this->debug) error_log(__METHOD__.'->'.$name.' with params:'.array2string($params));
switch($name)
{
case 'installScript':
case 'getScript':
case 'setActive':
case 'setEmailNotification':
case 'getEmailNotification':
case 'setRules':
case 'getRules':
case 'retrieveRules':
case 'getVacation':
case 'setVacation':
if (is_null($this->sieve))
{
$this->sieve = new emailadmin_sieve($this);
$this->scriptName =& $this->sieve->scriptName;
$this->error =& $this->sieve->error;
}
$ret = call_user_func_array(array($this->sieve,$name),$params);
//error_log(__CLASS__.'->'.$name.'('.array2string($params).') returns '.array2string($ret));
return $ret;
}
throw new egw_exception_wrong_parameter("No method '$name' implemented!");
}
public function setVacationUser($_euser, $_scriptName, $_vacation)
{
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.' User:'.array2string($_euser).' Scriptname:'.array2string($_scriptName).' VacationMessage:'.array2string($_vacation));
if (is_null($this->sieve))
{
$this->sieve = new emailadmin_sieve();
$this->scriptName =& $this->sieve->scriptName;
$this->error =& $this->sieve->error;
$this->sieve->icServer = $this;
}
return $this->sieve->setVacationUser($_euser, $_scriptName, $_vacation);
}
/**
* set the asyncjob for a timed vacation
*
* @param array $_vacation the vacation to set/unset
* @return void
*/
function setAsyncJob ($_vacation, $_scriptName=null)
{
// setting up an async job to enable/disable the vacation message
$async = new asyncservice();
$user = (isset($_vacation['account_id'])&&!empty($_vacation['account_id'])?$_vacation['account_id']:$GLOBALS['egw_info']['user']['account_id']);
$async_id = (isset($_vacation['id'])&&!empty($_vacation['id'])?$_vacation['id']:"felamimail-vacation-$user");
$async->delete($async_id); // ="felamimail-vacation-$user");
$_scriptName = (!empty($_scriptName)?$_scriptName:(isset($_vacation['scriptName'])&&!empty($_vacation['scriptName'])?$_vacation['scriptName']:'felamimail'));
$end_date = $_vacation['end_date'] + 24*3600; // end-date is inclusive, so we have to add 24h
if ($_vacation['status'] == 'by_date' && time() < $end_date)
{
$time = time() < $_vacation['start_date'] ? $_vacation['start_date'] : $end_date;
$async->set_timer($time,$async_id,'felamimail.bosieve.async_vacation',$_vacation+array('scriptName'=>$_scriptName),$user);
}
}
}

View File

@ -0,0 +1,94 @@
<?php
/***************************************************************************\
* EGroupWare - EMailAdmin *
* http://www.egroupware.org *
* Written by : Lars Kneschke [lkneschke@linux-at-work.de] *
* ------------------------------------------------- *
* This program 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. *
\***************************************************************************/
/* $Id$ */
class defaultpop
{
var $profileData;
function defaultpop($_profileData)
{
$this->profileData = $_profileData;
}
function addAccount($_hookValues)
{
return true;
}
function deleteAccount($_hookValues)
{
return true;
}
function encodeFolderName($_folderName)
{
if($this->mbAvailable)
{
return mb_convert_encoding( $_folderName, "UTF7-IMAP", "ISO_8859-1" );
}
// if not
return imap_utf7_encode($_folderName);
}
function getMailboxString($_folderName='')
{
if($this->profileData['imapTLSEncryption'] == 'yes' &&
$this->profileData['imapTLSAuthentication'] == 'yes')
{
if(empty($this->profileData['imapPort']))
$port = '995';
else
$port = $this->profileData['imapPort'];
$mailboxString = sprintf("{%s:%s/pop3/ssl}%s",
$this->profileData['imapServer'],
$port,
$_folderName);
}
// don't check cert
elseif($this->profileData['imapTLSEncryption'] == 'yes')
{
if(empty($this->profileData['imapPort']))
$port = '995';
else
$port = $this->profileData['imapPort'];
$mailboxString = sprintf("{%s:%s/pop3/ssl/novalidate-cert}%s",
$this->profileData['imapServer'],
$port,
$_folderName);
}
// no tls
else
{
if(empty($this->profileData['imapPort']))
$port = '110';
else
$port = $this->profileData['imapPort'];
$mailboxString = sprintf("{%s:%s/pop3}%s",
$this->profileData['imapServer'],
$port,
$_folderName);
}
return $this->encodeFolderName($mailboxString);
}
function updateAccount($_hookValues)
{
return true;
}
}
?>

View File

@ -0,0 +1,97 @@
<?php
/***************************************************************************\
* EGroupWare - EMailAdmin *
* http://www.egroupware.org *
* Written by : Lars Kneschke [lkneschke@linux-at-work.de] *
* ------------------------------------------------- *
* This program 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. *
\***************************************************************************/
/* $Id$ */
class defaultsmtp
{
/**
* Capabilities of this class (pipe-separated): default, forward
*/
const CAPABILITIES = 'default';
/**
* SmtpServerId
*
* @var int
*/
var $SmtpServerId;
var $smtpAuth = false;
var $editForwardingAddress = false;
var $host;
var $port;
var $username;
var $password;
var $defaultDomain;
// the constructor
function defaultsmtp($defaultDomain=null)
{
$this->defaultDomain = $defaultDomain ? $defaultDomain : $GLOBALS['egw_info']['server']['mail_suffix'];
}
// add a account
function addAccount($_hookValues)
{
return true;
}
// delete a account
function deleteAccount($_hookValues)
{
return true;
}
function getAccountEmailAddress($_accountName)
{
$accountID = $GLOBALS['egw']->accounts->name2id($_accountName);
$emailAddress = $GLOBALS['egw']->accounts->id2name($accountID,'account_email');
if(empty($emailAddress))
$emailAddress = $_accountName.'@'.$this->defaultDomain;
$realName = trim($GLOBALS['egw_info']['user']['firstname'] . (!empty($GLOBALS['egw_info']['user']['firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['lastname']);
return array(
array(
'name' => $realName,
'address' => $emailAddress,
'type' => 'default'
)
);
}
function getUserData($_uidnumber) {
$userData = array();
return $userData;
}
function saveSMTPForwarding($_accountID, $_forwardingAddress, $_keepLocalCopy) {
return true;
}
function setUserData($_uidnumber, $_mailAlternateAddress, $_mailForwardingAddress, $_deliveryMode) {
return true;
}
// update a account
function updateAccount($_hookValues) {
return true;
}
}
?>

View File

@ -0,0 +1,27 @@
<?php
/***************************************************************************\
* eGroupWare - EMailAdmin *
* http://www.egroupware.org *
* Written by : Lars Kneschke [lkneschke@egrouware.org] *
* ------------------------------------------------- *
* This program 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; version 2 of the License. *
\***************************************************************************/
/* $Id: class.bopreferences.inc.php,v 1.26 2005/11/28 18:00:18 lkneschke Exp $ */
class ea_identity
{
// email address of the user
var $emailAddress;
// real name of the user
var $realName;
// name of the organization
var $organization;
// the default identity
var $default = true;
}
?>

View File

@ -0,0 +1,160 @@
<?php
/***************************************************************************\
* eGroupWare - EMailAdmin *
* http://www.egroupware.org *
* Written by : Lars Kneschke [lkneschke@egrouware.org] *
* ------------------------------------------------- *
* This program 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; version 2 of the License. *
\***************************************************************************/
/* $Id: class.bopreferences.inc.php,v 1.26 2005/11/28 18:00:18 lkneschke Exp $ */
class ea_preferences
{
// users identities
var $identities = array();
// users incoming server(imap)
var $ic_server = array();
// users outgoing server(smtp)
var $og_server = array();
// users preferences
var $preferences = array();
// enable userdefined accounts
var $userDefinedAccounts = false;
// enable userdefined signatures
var $ea_user_defined_signatures = false;
function getIdentity($_id = false)
{
if($_id !== false)
{
return $this->identities[$_id];
}
else
{
//error_log(__METHOD__.__LINE__.' called with $_id=-1 ->'.function_backtrace());
return $this->identities;
}
}
function getIncomingServer($_id = false)
{
if($_id !== false)
{
//error_log(__METHOD__.__LINE__.' called with $_id='.$_id.' ->'.function_backtrace());
return $this->ic_server[$_id];
}
else
{
//error_log(__METHOD__.__LINE__.' called with $_id=false ->'.function_backtrace());
return $this->ic_server;
}
}
function getOutgoingServer($_id = false)
{
if($_id !== false )
{
return $this->og_server[$_id];
}
else
{
//error_log(__METHOD__.__LINE__.' called with $_id=false ->'.function_backtrace());
return $this->og_server;
}
}
function getPreferences() {
return $this->preferences;
}
function getUserEMailAddresses() {
$identities = $this->getIdentity();
if(count($identities) == 0) {
return false;
}
$userEMailAdresses = array();
foreach($identities as $identity) {
$userEMailAdresses[$identity->emailAddress] = $identity->realName;
}
return $userEMailAdresses;
}
function setIdentity($_identityObject, $_id = false)
{
if(is_a($_identityObject, 'ea_identity'))
{
if($_id !== false)
{
$this->identities[$_id] = $_identityObject;
}
else
{
//error_log(__METHOD__.__LINE__.' called with $_id=false ->'.function_backtrace());
$this->identities[] = $_identityObject;
}
return true;
}
return false;
}
function setIncomingServer($_serverObject, $_id = false)
{
if(is_a($_serverObject, 'defaultimap'))
{
if($_id !== false)
{
$this->ic_server[$_id] = $_serverObject;
}
else
{
//error_log(__METHOD__.__LINE__.' called with $_id=false ->'.function_backtrace());
$this->ic_server[] = $_serverObject;
}
return true;
}
return false;
}
function setOutgoingServer($_serverObject, $_id = false)
{
if(is_a($_serverObject, 'defaultsmtp'))
{
if($_id !== false)
{
$this->og_server[$_id] = $_serverObject;
}
else
{
//error_log(__METHOD__.__LINE__.' called with $_id=false ->'.function_backtrace());
$this->og_server[] = $_serverObject;
}
return true;
}
return false;
}
function setPreferences($_preferences)
{
$this->preferences = $_preferences;
return true;
}
}
?>

View File

@ -0,0 +1,925 @@
<?php
/**
* EGroupware EMailAdmin: Business logic
*
* @link http://www.stylite.de
* @package emailadmin
* @author Ralf Becker <rb@stylite.de>
* @author Klaus Leithoff <kl@stylite.de>
* @author Lars Kneschke
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
/**
* Business logic
*/
class emailadmin_bo extends so_sql
{
/**
* Name of our table
*/
const TABLE = 'egw_emailadmin';
/**
* Name of app the table is registered
*/
const APP = 'emailadmin';
/**
* Fields that are numeric
*/
static $numericfields = array(
'ea_profile_id',
'ea_smtp_port',
'ea_smtp_auth',
'ea_editforwardingaddress',
'ea_smtp_ldap_use_default',
'ea_imap_port',
'ea_imap_tsl_auth',
'ea_imap_tsl_encryption',
'ea_imap_enable_cyrus',
'ea_imap_enable_sieve',
'ea_imap_sieve_port',
'ea_user_defined_identities',
'ea_user_defined_accounts',
'ea_order',
'ea_active',
'ea_group',
'ea_user',
'ea_appname',
'ea_user_defined_signatures',
);
static $sessionData = array();
#var $userSessionData;
var $LDAPData;
//var $SMTPServerType = array(); // holds a list of config options
static $SMTPServerType = array(
'defaultsmtp' => array(
'fieldNames' => array(
'smtpServer',
'smtpPort',
'smtpAuth',
'ea_smtp_auth_username',
'ea_smtp_auth_password',
'smtpType'
),
'description' => 'standard SMTP-Server',
'classname' => 'defaultsmtp'
),
'postfixldap' => array(
'fieldNames' => array(
'smtpServer',
'smtpPort',
'smtpAuth',
'ea_smtp_auth_username',
'ea_smtp_auth_password',
'smtpType',
'editforwardingaddress',
'smtpLDAPServer',
'smtpLDAPAdminDN',
'smtpLDAPAdminPW',
'smtpLDAPBaseDN',
'smtpLDAPUseDefault'
),
'description' => 'Postfix (qmail Schema)',
'classname' => 'postfixldap'
),
'postfixinetorgperson' => array(
'fieldNames' => array(
'smtpServer',
'smtpPort',
'smtpAuth',
'ea_smtp_auth_username',
'ea_smtp_auth_password',
'smtpType',
),
'description' => 'Postfix (inetOrgPerson Schema)',
'classname' => 'postfixinetorgperson'
),
'smtpplesk' => array(
'fieldNames' => array(
'smtpServer',
'smtpPort',
'smtpAuth',
'ea_smtp_auth_username',
'ea_smtp_auth_password',
'smtpType',
'editforwardingaddress',
),
'description' => 'Plesk SMTP-Server (Qmail)',
'classname' => 'smtpplesk'
),
'postfixdbmailuser' => array(
'fieldNames' => array(
'smtpServer',
'smtpPort',
'smtpAuth',
'ea_smtp_auth_username',
'ea_smtp_auth_password',
'smtpType',
'editforwardingaddress',
'smtpLDAPServer',
'smtpLDAPAdminDN',
'smtpLDAPAdminPW',
'smtpLDAPBaseDN',
'smtpLDAPUseDefault'
),
'description' => 'Postfix (dbmail Schema)',
'classname' => 'postfixdbmailuser'
),
);
//var $IMAPServerType = array(); // holds a list of config options
static $IMAPServerType = array(
'defaultimap' => array(
'fieldNames' => array(
'imapServer',
'imapPort',
'imapType',
'imapLoginType',
'imapTLSEncryption',
'imapTLSAuthentication',
'imapAuthUsername',
'imapAuthPassword'
),
'description' => 'standard IMAP server',
'protocol' => 'imap',
'classname' => 'defaultimap'
),
'cyrusimap' => array(
'fieldNames' => array(
'imapServer',
'imapPort',
'imapType',
'imapLoginType',
'imapTLSEncryption',
'imapTLSAuthentication',
'imapEnableCyrusAdmin',
'imapAdminUsername',
'imapAdminPW',
'imapEnableSieve',
'imapSieveServer',
'imapSievePort',
'imapAuthUsername',
'imapAuthPassword'
),
'description' => 'Cyrus IMAP Server',
'protocol' => 'imap',
'classname' => 'cyrusimap'
),
'dbmailqmailuser' => array(
'fieldNames' => array(
'imapServer',
'imapPort',
'imapType',
'imapLoginType',
'imapTLSEncryption',
'imapTLSAuthentication',
'imapEnableSieve',
'imapSieveServer',
'imapSievePort',
'imapAuthUsername',
'imapAuthPassword',
),
'description' => 'DBMail (qmailUser schema)',
'protocol' => 'imap',
'classname' => 'dbmailqmailuser'
),
'pleskimap' => array(
'fieldNames' => array(
'imapServer',
'imapPort',
'imapType',
'imapLoginType',
'imapTLSEncryption',
'imapTLSAuthentication',
'imapAuthUsername',
'imapAuthPassword'
),
'description' => 'Plesk IMAP Server (Courier)',
'protocol' => 'imap',
'classname' => 'pleskimap'
),
'dbmaildbmailuser' => array(
'fieldNames' => array(
'imapServer',
'imapPort',
'imapType',
'imapLoginType',
'imapTLSEncryption',
'imapTLSAuthentication',
'imapEnableSieve',
'imapSieveServer',
'imapSievePort',
'imapAuthUsername',
'imapAuthPassword'
),
'description' => 'DBMail (dbmailUser schema)',
'protocol' => 'imap',
'classname' => 'dbmaildbmailuser'
),
);
var $imapClass; // holds the imap/pop3 class
var $smtpClass; // holds the smtp class
var $tracking; // holds the tracking object
function __construct($_profileID=false,$_restoreSesssion=true)
{
parent::__construct(self::APP,self::TABLE,null,'',true);
//error_log(__METHOD__.function_backtrace());
if (!is_object($GLOBALS['emailadmin_bo']))
{
$GLOBALS['emailadmin_bo'] = $this;
}
$this->soemailadmin = new emailadmin_so();
//translate the standard entry description
self::$SMTPServerType['defaultsmtp']['description'] = lang('standard SMTP-Server');
self::$IMAPServerType['defaultimap']['description'] = lang('standard IMAP Server');
if ($_restoreSesssion) // && !(is_array(self::$sessionData) && (count(self::$sessionData)>0)) )
{
$this->restoreSessionData();
}
if ($_restoreSesssion===false) // && (is_array(self::$sessionData) && (count(self::$sessionData)>0)) )
{
// make sure session data will be created new
self::$sessionData = array();
self::saveSessionData();
}
#_debug_array(self::$sessionData);
if(!($_profileID === false))
{
$this->profileID = $_profileID;
$this->profileData = $this->getProfile($_profileID);
// try autoloading class, if that fails include it from emailadmin
$class = self::$IMAPServerType[$this->profileData['imapType']]['classname'];
if (!empty($class))
{
if (!class_exists($class))
{
include_once(EGW_INCLUDE_ROOT.'/emailadmin/inc/class.'.$class.'.inc.php');
}
$this->imapClass = new $class;
}
$class = self::$SMTPServerType[$this->profileData['smtpType']]['classname'];
if (!empty($class))
{
if (!class_exists($class))
{
include_once(EGW_INCLUDE_ROOT.'/emailadmin/inc/class.'.$class.'.inc.php');
}
$this->smtpClass = new $class;
}
}
$this->tracking = new emailadmin_tracking($this);
}
function delete($profileid=null)
{
if (empty($profileid)) return 0;
$deleted = parent::delete(array('ea_profile_id' => $profileid));
if (!is_array($profileid)) $profileid = (array)$profileid;
foreach ($profileid as $tk => $pid)
{
self::$sessionData['profile'][$pid] = array();
}
$GLOBALS['egw']->contenthistory->updateTimeStamp('emailadmin_profiles', $profileid, 'delete', time());
self::saveSessionData();
return $deleted;
}
function save()
{
$content = $this->data;
$old = $this->read($content);
$this->data = $content;
if ((!isset($this->data['ea_appname']) || empty($this->data['ea_appname']) ) &&
(!isset($this->data['ea_group']) || empty($this->data['ea_group']) ) &&
(!isset($this->data['ea_user']) || empty($this->data['ea_user']) ) &&
(isset($this->data['ea_active']) && !empty($this->data['ea_active']) && $this->data['ea_active'] ))
{
//error_log(__METHOD__.__LINE__.' Content to save:'.array2string($this->data));
$new_config = array();
foreach(array(
'ea_imap_server' => 'mail_server',
'ea_imap_type' => 'mail_server_type',
'ea_imap_login_type' => 'mail_login_type',
'ea_default_domain' => 'mail_suffix',
'ea_smtp_server' => 'smtp_server',
'ea_smtp_port' => 'smpt_port',
)+($this->data['ea_smtp_auth']=='yes' ? array( //ToDo: if no, we may have to reset config values for that too?
'ea_smtp_auth_username' => 'smtp_auth_user',
'ea_smtp_auth_password' => 'smtp_auth_passwd',
) : array()) as $ea_name => $config_name)
{
if (isset($this->data[$ea_name]))
{
if ($ea_name != 'ea_imap_type')
{
$new_config[$config_name] = $this->data[$ea_name];
}
else // imap type, no pop3 code anymore
{
$new_config[$config_name] = 'imap'.($this->data['ea_imap_tsl_encryption'] ? 's' : '');
}
}
}
if (count($new_config))
{
foreach($new_config as $name => $value)
{
//error_log(__METHOD__.__LINE__.' Saving to config:'."$name,$value,phpgwapi");
config::save_value($name,$value,'phpgwapi');
}
//echo "<p>eGW configuration update: ".print_r($new_config,true)."</p>\n";
}
}
if (!($result = parent::save()))
{
$GLOBALS['egw']->contenthistory->updateTimeStamp('emailadmin_profiles', $this->data['ea_profile_id'], $old === false ? 'add' : 'modify', time());
//error_log(__METHOD__.__LINE__.array2string($content));
$this->tracking->track($content,(is_array($old)?$old:array()),null,false,null,true);
}
return $result;
}
function addAccount($_hookValues)
{
if (is_object($this->imapClass))
{
#ExecMethod("emailadmin.".$this->imapClass.".addAccount",$_hookValues,3,$this->profileData);
$this->imapClass->addAccount($_hookValues);
}
if (is_object($this->smtpClass))
{
#ExecMethod("emailadmin.".$this->smtpClass.".addAccount",$_hookValues,3,$this->profileData);
$this->smtpClass->addAccount($_hookValues);
}
self::$sessionData =array();
$this->saveSessionData();
}
function deleteAccount($_hookValues)
{
if (is_object($this->imapClass))
{
#ExecMethod("emailadmin.".$this->imapClass.".deleteAccount",$_hookValues,3,$this->profileData);
$this->imapClass->deleteAccount($_hookValues);
}
if (is_object($this->smtpClass))
{
#ExecMethod("emailadmin.".$this->smtpClass.".deleteAccount",$_hookValues,3,$this->profileData);
$this->smtpClass->deleteAccount($_hookValues);
}
self::$sessionData = array();
$this->saveSessionData();
}
function getAccountEmailAddress($_accountName, $_profileID)
{
$profileData = $this->getProfile($_profileID);
#$smtpClass = self::$SMTPServerType[$profileData['smtpType']]['classname'];
$smtpClass = CreateObject('emailadmin.'.self::$SMTPServerType[$profileData['smtpType']]['classname']);
#return empty($smtpClass) ? False : ExecMethod("emailadmin.$smtpClass.getAccountEmailAddress",$_accountName,3,$profileData);
return is_object($smtpClass) ? $smtpClass->getAccountEmailAddress($_accountName) : False;
}
function getFieldNames($_serverTypeID, $_class)
{
switch($_class)
{
case 'imap':
return self::$IMAPServerType[$_serverTypeID]['fieldNames'];
break;
case 'smtp':
return self::$SMTPServerType[$_serverTypeID]['fieldNames'];
break;
}
}
function getLDAPStorageData($_serverid)
{
$storageData = $this->soemailadmin->getLDAPStorageData($_serverid);
return $storageData;
}
function getMailboxString($_folderName)
{
if (is_object($this->imapClass))
{
return ExecMethod("emailadmin.".$this->imapClass.".getMailboxString",$_folderName,3,$this->profileData);
return $this->imapClass->getMailboxString($_folderName);
}
else
{
return false;
}
}
function getProfile($_profileID)
{
if (!(is_array(self::$sessionData) && (count(self::$sessionData)>0))) $this->restoreSessionData();
if (is_array(self::$sessionData) && (count(self::$sessionData)>0) && self::$sessionData['profile'][$_profileID]) {
//error_log("sessionData Restored for Profile $_profileID <br>");
return self::$sessionData['profile'][$_profileID];
}
$profileData = $this->soemailadmin->getProfileList($_profileID);
$found = false;
if (is_array($profileData) && count($profileData))
{
foreach($profileData as $n => $data)
{
if ($data['ProfileID'] == $_profileID)
{
$found = $n;
break;
}
}
}
if ($found === false) // no existing profile selected
{
if (is_array($profileData) && count($profileData)) { // if we have a profile use that
reset($profileData);
list($found,$data) = each($profileData);
$this->profileID = $_profileID = $data['profileID'];
} elseif ($GLOBALS['egw_info']['server']['smtp_server']) { // create a default profile, from the data in the api config
$this->profileID = $_profileID = $this->soemailadmin->addProfile(array(
'description' => $GLOBALS['egw_info']['server']['smtp_server'],
'defaultDomain' => $GLOBALS['egw_info']['server']['mail_suffix'],
'organisationName' => '',
'userDefinedAccounts' => '',
'userDefinedIdentities' => '',
),array(
'smtpServer' => $GLOBALS['egw_info']['server']['smtp_server'],
'smtpPort' => $GLOBALS['egw_info']['server']['smtp_port'],
'smtpAuth' => '',
'smtpType' => 'defaultsmtp',
),array(
'imapServer' => $GLOBALS['egw_info']['server']['mail_server'] ?
$GLOBALS['egw_info']['server']['mail_server'] : $GLOBALS['egw_info']['server']['smtp_server'],
'imapPort' => '143',
'imapType' => 'defaultimap', // imap
'imapLoginType' => $GLOBALS['egw_info']['server']['mail_login_type'] ?
$GLOBALS['egw_info']['server']['mail_login_type'] : 'standard',
'imapTLSEncryption' => '0',
'imapTLSAuthentication' => '',
));
$profileData[$found = 0] = array(
'smtpType' => 'defaultsmtp',
'imapType' => 'defaultimap',
);
}
}
$fieldNames = array();
if (isset($profileData[$found]))
{
$fieldNames = array_merge(self::$SMTPServerType[$profileData[$found]['smtpType']]['fieldNames'],
self::$IMAPServerType[$profileData[$found]['imapType']]['fieldNames']);
}
$fieldNames[] = 'description';
$fieldNames[] = 'defaultDomain';
$fieldNames[] = 'profileID';
$fieldNames[] = 'organisationName';
$fieldNames[] = 'userDefinedAccounts';
$fieldNames[] = 'userDefinedIdentities';
$fieldNames[] = 'ea_appname';
$fieldNames[] = 'ea_group';
$fieldNames[] = 'ea_user';
$fieldNames[] = 'ea_active';
$fieldNames[] = 'ea_user_defined_signatures';
$fieldNames[] = 'ea_default_signature';
$fieldNames[] = 'ea_stationery_active_templates';
$profileData = $this->soemailadmin->getProfile($_profileID, $fieldNames);
$profileData['imapTLSEncryption'] = ($profileData['imapTLSEncryption'] == 'yes' ? 1 : (int)$profileData['imapTLSEncryption']);
if(strlen($profileData['ea_stationery_active_templates']) > 0)
{
$profileData['ea_stationery_active_templates'] = explode(',',$profileData['ea_stationery_active_templates']);
}
self::$sessionData['profile'][$_profileID] = $profileData;
$this->saveSessionData();
return $profileData;
}
function getProfileList($_profileID='',$_appName=false,$_groupID=false,$_accountID=false)
{
if ($_appName!==false ||$_groupID!==false ||$_accountID!==false) {
return $this->soemailadmin->getProfileList($_profileID,false,$_appName,$_groupID,$_accountID);
} else {
return $this->soemailadmin->getProfileList($_profileID);
}
}
/**
* Get a list of supported SMTP servers
*
* Calls hook "smtp_server_types" to allow applications to supply own server-types
*
* @return array classname => label pairs
*/
static public function getSMTPServerTypes()
{
$retData = array();
foreach(self::$SMTPServerType as $key => $value)
{
$retData[$key] = $value['description'];
}
foreach($GLOBALS['egw']->hooks->process('smtp_server_types',array(),true) as $app => $data)
{
if ($data) $retData += $data;
}
return $retData;
}
/**
* Get a list of supported IMAP servers
*
* Calls hook "imap_server_types" to allow applications to supply own server-types
*
* @param boolean $extended=true
* @return array classname => label pairs
*/
static public function getIMAPServerTypes($extended=true)
{
$retData = array();
foreach(self::$IMAPServerType as $key => $value)
{
if ($extended)
{
$retData[$key]['description'] = $value['description'];
$retData[$key]['protocol'] = $value['protocol'];
}
else
{
$retData[$key] = $value['description'];
}
}
foreach($GLOBALS['egw']->hooks->process(array(
'location' => 'imap_server_types',
'extended' => $extended,
),array(),true) as $app => $data)
{
if ($data) $retData += $data;
}
return $retData;
}
/**
* Get EMailAdmin profile for a user
*
* @param string $_appName=''
* @param int|array $_groups=''
* @return ea_preferences
*/
function getUserProfile($_appName='', $_groups='')
{
if (!(is_array(self::$sessionData) && (count(self::$sessionData)>0))) $this->restoreSessionData();
if (is_array(self::$sessionData) && count(self::$sessionData)>0 && self::$sessionData['ea_preferences'])
{
//error_log("sessionData Restored for UserProfile<br>");
return self::$sessionData['ea_preferences'];
}
$appName = ($_appName != '' ? $_appName : $GLOBALS['egw_info']['flags']['currentapp']);
if(!is_array($_groups)) {
// initialize with 0 => means no group id
$groups = array(0);
// set the second entry to the users primary group
$groups[] = $GLOBALS['egw_info']['user']['account_primary_group'];
$userGroups = $GLOBALS['egw']->accounts->membership($GLOBALS['egw_info']['user']['account_id']);
foreach((array)$userGroups as $groupInfo) {
$groups[] = $groupInfo['account_id'];
}
} else {
$groups = $_groups;
}
if($data = $this->soemailadmin->getUserProfile($appName, $groups,$GLOBALS['egw_info']['user']['account_id']))
{
//error_log(__METHOD__.__LINE__.array2string($data));
$eaPreferences = CreateObject('emailadmin.ea_preferences');
// fetch the IMAP / incomming server data
if (!class_exists($icClass=$data['imapType']))
{
if (!file_exists($file=EGW_INCLUDE_ROOT.'/emailadmin/inc/class.'.$icClass.'.inc.php'))
{
$file = EGW_INCLUDE_ROOT.'/emailadmin/inc/class.'.($icClass='defaultimap').'.inc.php';
}
include_once($file);
}
$icServer = new $icClass;
$icServer->ImapServerId = $data['profileID']*-1;
$icServer->encryption = ($data['imapTLSEncryption'] == 'yes' ? 1 : (int)$data['imapTLSEncryption']);
$icServer->host = $data['imapServer'];
$icServer->port = $data['imapPort'];
$icServer->validatecert = $data['imapTLSAuthentication'] == 'yes';
$icServer->username = $GLOBALS['egw_info']['user']['account_lid'];
$icServer->password = $GLOBALS['egw_info']['user']['passwd'];
// restore the default loginType and check if there are forced/predefined user access Data ($imapAuthType may be set to admin)
list($data['imapLoginType'],$imapAuthType) = explode('#',$data['imapLoginType'],2);
$icServer->loginType = $data['imapLoginType'];
$icServer->domainName = $data['defaultDomain'];
// $icServer->loginName = $data['imapLoginType'] == 'standard' ? $GLOBALS['egw_info']['user']['account_lid'] : $GLOBALS['egw_info']['user']['account_lid'].'@'.$data['defaultDomain'];
$icServer->loginName = emailadmin_smtp_ldap::mailbox_addr($GLOBALS['egw_info']['user'],$data['defaultDomain'],$data['imapLoginType']);
$icServer->enableCyrusAdmin = ($data['imapEnableCyrusAdmin'] == 'yes');
$icServer->adminUsername = $data['imapAdminUsername'];
$icServer->adminPassword = $data['imapAdminPW'];
$icServer->enableSieve = ($data['imapEnableSieve'] == 'yes');
if (!empty($data['imapSieveServer']))
{
$icServer->sieveHost = $data['imapSieveServer'];
}
$icServer->sievePort = $data['imapSievePort'];
if ($imapAuthType == 'admin') {
if (!empty($data['imapAuthUsername'])) $icServer->username = $icServer->loginName = $data['imapAuthUsername'];
if (!empty($data['imapAuthPassword'])) $icServer->password = $data['imapAuthPassword'];
}
if ($imapAuthType == 'email' || $icServer->loginType == 'email') {
$icServer->username = $icServer->loginName = $GLOBALS['egw_info']['user']['account_email'];
}
if (method_exists($icServer,'init')) $icServer->init();
$eaPreferences->setIncomingServer($icServer,(int)$icServer->ImapServerId);
// fetch the SMTP / outgoing server data
if (!class_exists($ogClass=$data['smtpType']))
{
if (!file_exists($file=EGW_INCLUDE_ROOT.'/emailadmin/inc/class.'.$ogClass.'.inc.php'))
{
$file = EGW_INCLUDE_ROOT.'/emailadmin/inc/class.'.($ogClass='defaultsmtp').'.inc.php';
}
include_once($file);
}
$ogServer = new $ogClass($icServer->domainName);
$ogServer->SmtpServerId = $data['profileID']*-1;
$ogServer->host = $data['smtpServer'];
$ogServer->port = $data['smtpPort'];
$ogServer->editForwardingAddress = ($data['editforwardingaddress'] == 'yes');
$ogServer->smtpAuth = $data['smtpAuth'] == 'yes';
if($ogServer->smtpAuth) {
if(!empty($data['ea_smtp_auth_username'])) {
$ogServer->username = $data['ea_smtp_auth_username'];
} else {
// if we use special logintypes for IMAP, we assume this to be used for SMTP too
if ($imapAuthType == 'email' || $icServer->loginType == 'email') {
$ogServer->username = $GLOBALS['egw_info']['user']['account_email'];
} elseif ($icServer->loginType == 'vmailmgr') {
$ogServer->username = $GLOBALS['egw_info']['user']['account_lid'].'@'.$icServer->domainName;
} else {
$ogServer->username = $GLOBALS['egw_info']['user']['account_lid'];
}
}
if(!empty($data['ea_smtp_auth_password'])) {
$ogServer->password = $data['ea_smtp_auth_password'];
} else {
$ogServer->password = $GLOBALS['egw_info']['user']['passwd'];
}
}
if (method_exists($ogServer,'init')) $ogServer->init();
$eaPreferences->setOutgoingServer($ogServer,(int)$ogServer->SmtpServerId);
$i=0;
foreach($ogServer->getAccountEmailAddress($GLOBALS['egw_info']['user']['account_lid']) as $emailAddresses)
{
$identity = CreateObject('emailadmin.ea_identity');
$identity->emailAddress = $emailAddresses['address'];
$identity->realName = $emailAddresses['name'];
$identity->default = ($emailAddresses['type'] == 'default');
$identity->organization = $data['organisationName'];
$identity->id = ($i==0?$data['profileID']*-1:$i);
// first identity found will be associated with the profileID
$eaPreferences->setIdentity($identity,($i==0?$data['profileID']*-1:$i));
$i++;
}
$eaPreferences->userDefinedAccounts = ($data['userDefinedAccounts'] == 'yes');
$eaPreferences->userDefinedIdentities = ($data['userDefinedIdentities'] == 'yes');
$eaPreferences->ea_user_defined_signatures = ($data['ea_user_defined_signatures'] == 'yes');
$eaPreferences->ea_default_signature = $data['ea_default_signature'];
if(strlen($data['ea_stationery_active_templates']) > 0)
{
$eaPreferences->ea_stationery_active_templates = explode(',',$data['ea_stationery_active_templates']);
}
self::$sessionData['ea_preferences'] = $eaPreferences;
$this->saveSessionData();
return $eaPreferences;
}
return false;
}
function getUserData($_accountID)
{
if($userProfile = $this->getUserProfile('felamimail')) {
$icServerKeys = array_keys((array)$userProfile->ic_server);
$profileID = array_shift($icServerKeys);
$icServer = $userProfile->getIncomingServer($profileID);
if(is_a($icServer, 'defaultimap') && $username = $GLOBALS['egw']->accounts->id2name($_accountID)) {
$icUserData = $icServer->getUserData($username);
}
$ogServerKeys = array_keys((array)$userProfile->og_server);
$profileID = array_shift($ogServerKeys);
$ogServer = $userProfile->getOutgoingServer($profileID);
if(is_a($ogServer, 'defaultsmtp')) {
$ogUserData = $ogServer->getUserData($_accountID);
}
return (array)$icUserData + (array)$ogUserData;
}
return false;
}
function restoreSessionData()
{
$GLOBALS['egw_info']['flags']['autoload'] = array(__CLASS__,'autoload');
//echo function_backtrace()."<br>";
//unserializing the sessiondata, since they are serialized for objects sake
self::$sessionData = (array) unserialize($GLOBALS['egw']->session->appsession('session_data','emailadmin'));
}
/**
* Autoload classes from emailadmin, 'til they get autoloading conform names
*
* @param string $class
*/
static function autoload($class)
{
if (file_exists($file=EGW_INCLUDE_ROOT.'/emailadmin/inc/class.'.$class.'.inc.php'))
{
include_once($file);
}
}
function saveSMTPForwarding($_accountID, $_forwardingAddress, $_keepLocalCopy)
{
if (is_object($this->smtpClass))
{
#$smtpClass = CreateObject('emailadmin.'.$this->smtpClass,$this->profileID);
#$smtpClass->saveSMTPForwarding($_accountID, $_forwardingAddress, $_keepLocalCopy);
$this->smtpClass->saveSMTPForwarding($_accountID, $_forwardingAddress, $_keepLocalCopy);
}
}
/**
* called by the validation hook in setup
*
* @param array $settings following keys: mail_server, mail_server_type {IMAP|IMAPS|POP-3|POP-3S},
* mail_login_type {standard|vmailmgr}, mail_suffix (domain), smtp_server, smtp_port, smtp_auth_user, smtp_auth_passwd
*/
function setDefaultProfile($settings)
{
if (($profiles = $this->soemailadmin->getProfileList(0,true)))
{
//error_log(__METHOD__.__LINE__.' Found profile 2 merge');
$profile = array_shift($profiles);
}
else
{
//error_log(__METHOD__.__LINE__.' Create profile 4 merge');
$profile = array(
'smtpType' => 'defaultsmtp',
'description' => 'default profile (created by setup)',
//'ea_appname' => '', // default is null, and expected to be null if empty
//'ea_group' => 0,
//'ea_user' => 0,
'ea_active' => 1,
);
if (empty($settings['mail_server'])) $profile['userDefinedAccounts'] = 'yes';
if (empty($settings['mail_server'])) $profile['userDefinedIdentities'] == 'yes';
if (empty($settings['mail_server'])) $profile['ea_user_defined_signatures'] == 'yes';
}
foreach($to_parse = array(
'mail_server' => 'imapServer',
'mail_server_type' => array(
'imap' => array(
'imapType' => 'defaultimap',
'imapPort' => 143,
'imapTLSEncryption' => 0,
),
'imaps' => array(
'imapType' => 'defaultimap',
'imapPort' => 993,
'imapTLSEncryption' => '3',
),
),
'mail_login_type' => 'imapLoginType',
'mail_suffix' => 'defaultDomain',
'smtp_server' => 'smtpServer',
'smtp_port' => 'smtpPort',
'smtp_auth_user' => 'ea_smtp_auth_username',
'smtp_auth_passwd' => 'ea_smtp_auth_password',
) as $setup_name => $ea_name_data)
{
if (!is_array($ea_name_data))
{
$profile[$ea_name_data] = $settings[$setup_name];
if ($setup_name == 'smtp_auth_user') $profile['stmpAuth'] = !empty($settings['smtp_auth_user']);
}
else
{
foreach($ea_name_data as $setup_val => $ea_data)
{
if ($setup_val == $settings[$setup_name])
{
foreach($ea_data as $var => $val)
{
if ($var != 'imapType' || $val != 'defaultimap') // old code: || $profile[$var] < 3) // dont kill special imap server types
{
$profile[$var] = $val;
}
}
break;
}
}
}
}
// merge the other not processed values unchanged
$profile = array_merge($profile,array_diff_assoc($settings,$to_parse));
//error_log(__METHOD__.__LINE__.' Profile to Save:'.array2string($profile).' Profile to Parse:'.array2string($to_parse));
$this->soemailadmin->updateProfile($profile);
self::$sessionData['profile'] = array();
$this->saveSessionData();
//echo "<p>EMailAdmin profile update: ".print_r($profile,true)."</p>\n"; exit;
}
function saveSessionData()
{
// serializing the session data, for the sake of objects
if (is_object($GLOBALS['egw']->session)) // otherwise setup(-cli) fails
{
$GLOBALS['egw']->session->appsession('session_data','emailadmin',serialize(self::$sessionData));
}
#$GLOBALS['egw']->session->appsession('user_session_data','',$this->userSessionData);
}
function saveUserData($_accountID, $_formData) {
if($userProfile = $this->getUserProfile('felamimail'))
{
$ogServerKeys = array_keys((array)$userProfile->og_server);
$profileID = array_shift($ogServerKeys);
$ogServer = $userProfile->getOutgoingServer($profileID);
if(is_a($ogServer, 'defaultsmtp')) {
$ogServer->setUserData($_accountID,
(array)$_formData['mailAlternateAddress'],
(array)$_formData['mailForwardingAddress'],
$_formData['deliveryMode'],
$_formData['accountStatus'],
$_formData['mailLocalAddress']
);
}
$icServerKeys = array_keys((array)$userProfile->ic_server);
$profileID = array_shift($icServerKeys);
$icServer = $userProfile->getIncomingServer($profileID);
if(is_a($icServer, 'defaultimap') && $username = $GLOBALS['egw']->accounts->id2name($_accountID)) {
$icServer->setUserData($username, $_formData['quotaLimit']);
}
// calling a hook to allow other apps to monitor the changes
$_formData['account_id'] = $_accountID;
$_formData['location'] = 'editaccountemail';
$GLOBALS['egw']->hooks->process($_formData);
return true;
self::$sessionData = array();
$this->saveSessionData();
}
return false;
}
function setOrder($_order) {
if(is_array($_order)) {
$this->soemailadmin->setOrder($_order);
}
self::$sessionData = array();
$this->saveSessionData();
}
function updateAccount($_hookValues) {
if (is_object($this->imapClass)) {
#ExecMethod("emailadmin.".$this->imapClass.".updateAccount",$_hookValues,3,$this->profileData);
$this->imapClass->updateAccount($_hookValues);
}
if (is_object($this->smtpClass)) {
#ExecMethod("emailadmin.".$this->smtpClass.".updateAccount",$_hookValues,3,$this->profileData);
$this->smtpClass->updateAccount($_hookValues);
}
self::$sessionData = array();
$this->saveSessionData();
}
}

View File

@ -0,0 +1,121 @@
<?php
/**
* eGroupWare - eMailAdmin hooks
*
* @link http://www.egroupware.org
* @package emailadmin
* @author Klaus Leithoff <leithoff-AT-stylite.de>
* @copyright (c) 2008-8 by leithoff-At-stylite.de
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
/**
* diverse static emailadmin hooks
*/
class emailadmin_hooks
{
// hook to plug in into admin (managable) applications list
static function admin()
{
// Only Modify the $file and $title variables.....
$title = $appname = 'emailadmin';
$file = Array(
'Site Configuration' => $GLOBALS['egw']->link('/index.php','menuaction=emailadmin.emailadmin_ui.index')
);
//Do not modify below this line
display_section($appname,$title,$file);
}
/**
* Hook called if account emailadim settings has to be modified
*
* @param array $data
* @param int $data['account_id'] numerical id
*/
static function edit_user($data)
{
//echo "called hook and function<br>".function_backtrace()."<br>";
//_debug_array($data);
if ($data['account_id'] && // can't set it on add
$GLOBALS['egw_info']['user']['apps']['emailadmin'])
{
$GLOBALS['menuData'][] = array(
'description' => 'eMailAdmin: User assigned Profile',
'url' => '/index.php',
'extradata' => 'menuaction=emailadmin.emailadmin_ui.index'
);
}
}
/**
* Hook called after group emailadim settings has to be modified
*
* @param array $data
* @param int $data['account_id'] numerical id
*/
static function edit_group($data)
{
#echo "called hook and function<br>";
#_debug_array($data);
# somehow the $data var seems to be quite sparsely populated, so we dont check any further
if (#!empty($data['account_id']) && $data['account_id'] < 0 && // can't set it on add
$GLOBALS['egw_info']['user']['apps']['emailadmin'])
{
$GLOBALS['menuData'][] = array(
'description' => 'eMailAdmin: Group assigned Profile',
'url' => '/index.php',
'extradata' => 'menuaction=emailadmin.emailadmin_ui.index'
);
}
}
/**
* Hook called before an account get deleted
*
* @param array $data
* @param int $data['account_id'] numerical id
* @param string $data['account_lid'] account-name
* @param int $data['new_owner'] account-id of new owner, or false if data should get deleted
*/
static function deleteaccount(array $data)
{
if((int)$data['account_id'] > 0 &&
$GLOBALS['egw_info']['user']['apps']['emailadmin'])
{
$boemailadmin = new emailadmin_bo();
$profileList = $boemailadmin->getProfileList($profileID,$appName,$groupID,(int) $data['account_id']);
if (is_array($profileList)) {
foreach ($profileList as $key => $value) {
$boemailadmin->delete($value['profileID']);
}
}
}
}
/**
* Hook called before a group get deleted
*
* @param array $data
* @param int $data['account_id'] numerical id
* @param string $data['account_name'] account-name
*/
static function deletegroup(array $data)
{
if ((int)$data['account_id'] < 0 &&
$GLOBALS['egw_info']['user']['apps']['emailadmin'])
{
$boemailadmin = new emailadmin_bo();
$profileList = $boemailadmin->getProfileList($profileID,$appName,(int) $data['account_id'],$accountID);
if (is_array($profileList)) {
foreach ($profileList as $key => $value) {
$boemailadmin->deleteProfile($value['profileID']);
}
}
}
}
}

View File

@ -0,0 +1,518 @@
<?php
/**
* EGroupware EMailAdmin: Support for Sieve scripts
*
* See the inclosed smartsieve-NOTICE file for conditions of use and distribution.
*
* @link http://www.egroupware.org
* @package emailadmin
* @author Stephen Grier <stephengrier@users.sourceforge.net>
* @copyright 2002 by Stephen Grier <stephengrier@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
/**
* Support for Sieve scripts
*/
class emailadmin_script {
var $name; /* filename of script. */
var $script; /* full ascii text of script from server. */
var $size; /* size of script in bytes. */
var $so; /* boolean: is it safe to overwrite script?
* only safe if we recognise encoding. */
var $mode; /* basic or advanced. Smartsieve can only read/write basic. */
var $rules; /* array of sieve rules. */
var $vacation; /* vacation settings. */
var $emailNotification; /* email notification settings. */
var $pcount; /* highest priority value in ruleset. */
var $errstr; /* error text. */
/**
* Switch on some error_log debug messages
*
* @var boolean
*/
var $debug=false;
// class constructor
function __construct ($scriptname) {
$this->name = $scriptname;
$this->script = '';
$this->size = 0;
$this->so = true;
$this->mode = '';
$this->rules = array();
$this->vacation = array();
$this->emailNotification = array(); // Added email notifications
$this->pcount = 0;
$this->errstr = '';
}
// get sieve script rules for this user
/**
* Retrieve the rules
*
* @param bosieve $connection
* @return boolean true, if script written successfull
*/
function retrieveRules ($connection) {
#global $_SESSION;
$continuebit = 1;
$sizebit = 2;
$anyofbit = 4;
$keepbit = 8;
$regexbit = 128;
if (!isset($this->name)){
$this->errstr = 'retrieveRules: no script name specified';
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.": no script name specified");
return false;
}
if (!is_object($connection)) {
$this->errstr = "retrieveRules: no sieve session open";
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.": no sieve session open");
return false;
}
// if script doesn't yet exist, nothing to retrieve.
// safe to write to this script file.
#LK if (!AppSession::scriptExists($this->name)) {
#LK $this->so = true;
#LK return true;
#LK }
#print "<br><br><br><br>get Script ". $this->name ."<bR>";
if(PEAR::isError($script = $connection->getScript($this->name))) {
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.": error retrieving script: ".$script->getMessage());
return $script;
}
#print "<br>AAA: Script is ". htmlentities($script) ."<br>";
$lines = array();
$lines = preg_split("/\n/",$script); //,PREG_SPLIT_NO_EMPTY);
$rules = array();
$vacation = array();
$emailNotification = array(); // Added email notifications
$regexps = array('^ *##PSEUDO','^ *#rule','^ *#vacation','^ *#mode');
$regexps[] = '^ *#notify'; // Added email notifications
/* first line should be the script size. eg: {123}. */
#$line = array_shift($lines);
#if (!preg_match("/^\{(\d+)\}$/", $line, $bits)){
# print 'retrieveRules: unexpected value: ' . $line .'<br>';
# $this->errstr = 'retrieveRules: unexpected value: ' . $line;
# return false;
#}
#LK $this->size = $bits[1];
/* next line should be the recognised encoded head. if not, the script
* is of an unrecognised format, and we should not overwrite it. */
$line = array_shift($lines);
if (!preg_match("/^# ?Mail(.*)rules for/", $line)){
$this->errstr = 'retrieveRules: encoding not recognised';
$this->so = false;
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.": encoding not recognised");
return false;
}
$this->so = true;
$line = array_shift($lines);
while (isset($line)){
foreach ($regexps as $regexp){
if (preg_match("/$regexp/i",$line)){
$line = rtrim($line);
if (preg_match("/^ *#rule&&(.*)&&(.*)&&(.*)&&(.*)&&(.*)&&(.*)&&(.*)&&(.*)&&(.*)&&(.*)&&(.*)$/i",$line,$bits)){
$rule = array();
$rule['priority'] = $bits[1];
$rule['status'] = $bits[2];
$rule['from'] = stripslashes($bits[3]);
$rule['to'] = stripslashes($bits[4]);
$rule['subject'] = stripslashes($bits[5]);
$rule['action'] = $bits[6];
$rule['action_arg'] = $bits[7];
// <crnl>s will be encoded as \\n. undo this.
$rule['action_arg'] = preg_replace("/\\\\n/","\r\n",$rule['action_arg']);
$rule['action_arg'] = stripslashes($rule['action_arg']);
$rule['flg'] = $bits[8]; // bitwise flag
$rule['field'] = stripslashes($bits[9]);
$rule['field_val'] = stripslashes($bits[10]);
$rule['size'] = $bits[11];
$rule['continue'] = ($bits[8] & $continuebit);
$rule['gthan'] = ($bits[8] & $sizebit); // use 'greater than'
$rule['anyof'] = ($bits[8] & $anyofbit);
$rule['keep'] = ($bits[8] & $keepbit);
$rule['regexp'] = ($bits[8] & $regexbit);
$rule['unconditional'] = 0;
if (!$rule['from'] && !$rule['to'] && !$rule['subject'] &&
!$rule['field'] && !$rule['size'] && $rule['action']) {
$rule['unconditional'] = 1;
}
array_push($rules,$rule);
if ($rule['priority'] > $this->pcount) {
$this->pcount = $rule['priority'];
}
}
if (preg_match("/^ *#vacation&&(.*)&&(.*)&&(.*)&&(.*)&&(.*)/i",$line,$bits) ||
preg_match("/^ *#vacation&&(.*)&&(.*)&&(.*)&&(.*)/i",$line,$bits)) {
$vacation['days'] = $bits[1];
$vaddresslist = $bits[2];
$vaddresslist = preg_replace("/\"|\s/","",$vaddresslist);
$vaddresses = array();
$vaddresses = preg_split("/,/",$vaddresslist);
$vacation['text'] = $bits[3];
// <crnl>s will be encoded as \\n. undo this.
$vacation['text'] = preg_replace("/\\\\n/","\r\n",$vacation['text']);
if (strpos($bits[4],'-')!== false)
{
$vacation['status'] = 'by_date';
list($vacation['start_date'],$vacation['end_date']) = explode('-',$bits[4]);
}
else
{
$vacation['status'] = $bits[4];
}
$vacation['addresses'] = &$vaddresses;
$vacation['forwards'] = $bits[5];
}
if (preg_match("/^ *#notify&&(.*)&&(.*)&&(.*)/i",$line,$bits)) {
$emailNotification['status'] = $bits[1];
$emailNotification['externalEmail'] = $bits[2];
$emailNotification['displaySubject'] = $bits[3];
}
if (preg_match("/^ *#mode&&(.*)/i",$line,$bits)){
if ($bits[1] == 'basic')
$this->mode = 'basic';
elseif ($bits[1] == 'advanced')
$this->mode = 'advanced';
else
$this->mode = 'unknown';
}
}
}
$line = array_shift($lines);
}
$this->script = $script;
$this->rules = $rules;
$this->vacation = $vacation;
$this->emailNotification = $emailNotification; // Added email notifications
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.": Script succesful retrieved: ".print_r($vacation,true));
return true;
}
// update and save sieve script
function updateScript ($connection)
{
#global $_SESSION,$default,$sieve;
global $default,$sieve;
$activerules = 0;
$regexused = 0;
$rejectused = 0;
$username = $GLOBALS['egw_info']['user']['account_lid'];
$version = $GLOBALS['egw_info']['apps']['felamimail']['version'];
//include "$default->lib_dir/version.php";
if (!is_object($connection))
{
$this->errstr = "updateScript: no sieve session open";
return false;
}
// don't overwrite a file if not created by SmartSieve,
// unless configured to do so.
#LK if (!$this->so && !$default->allow_write_unrecognised_scripts) {
#LK $this->errstr = 'updateScript: encoding not recognised: not safe to overwrite ' . $this->name;
#LK return false;
#LK }
// lets generate the main body of the script from our rules
$newscriptbody = "";
$continue = 1;
foreach ($this->rules as $rule) {
$newruletext = "";
// don't print this rule if disabled.
if ($rule['status'] != 'ENABLED') {
} else {
$activerules = 1;
// conditions
$anyall = "allof";
if ($rule['anyof']) $anyall = "anyof";
if ($rule['regexp']) {
$regexused = 1;
}
$started = 0;
if (!$rule['unconditional']) {
if (!$continue) $newruletext .= "els";
$newruletext .= "if " . $anyall . " (";
if ($rule['from']) {
if (preg_match("/^\s*!/", $rule['from'])){
$newruletext .= 'not ';
$rule['from'] = preg_replace("/^\s*!/","",$rule['from']);
}
$match = ':contains';
if (preg_match("/\*|\?/", $rule['from'])) $match = ':matches';
if ($rule['regexp']) $match = ':regex';
$newruletext .= "address " . $match . " [\"From\"]";
$newruletext .= " \"" . addslashes($rule['from']) . "\"";
$started = 1;
}
if ($rule['to']) {
if ($started) $newruletext .= ", ";
if (preg_match("/^\s*!/", $rule['to'])){
$newruletext .= 'not ';
$rule['to'] = preg_replace("/^\s*!/","",$rule['to']);
}
$match = ':contains';
if (preg_match("/\*|\?/", $rule['to'])) $match = ':matches';
if ($rule['regexp']) $match = ':regex';
$newruletext .= "address " . $match . " [\"To\",\"TO\",\"Cc\",\"CC\"]";
$newruletext .= " \"" . addslashes($rule['to']) . "\"";
$started = 1;
}
if ($rule['subject']) {
if ($started) $newruletext .= ", ";
if (preg_match("/^\s*!/", $rule['subject'])){
$newruletext .= 'not ';
$rule['subject'] = preg_replace("/^\s*!/","",$rule['subject']);
}
$match = ':contains';
if (preg_match("/\*|\?/", $rule['subject'])) $match = ':matches';
if ($rule['regexp']) $match = ':regex';
$newruletext .= "header " . $match . " \"subject\"";
$newruletext .= " \"" . addslashes($rule['subject']) . "\"";
$started = 1;
}
if ($rule['field'] && $rule['field_val']) {
if ($started) $newruletext .= ", ";
if (preg_match("/^\s*!/", $rule['field_val'])){
$newruletext .= 'not ';
$rule['field_val'] = preg_replace("/^\s*!/","",$rule['field_val']);
}
$match = ':contains';
if (preg_match("/\*|\?/", $rule['field_val'])) $match = ':matches';
if ($rule['regexp']) $match = ':regex';
$newruletext .= "header " . $match . " \"" . addslashes($rule['field']) . "\"";
$newruletext .= " \"" . addslashes($rule['field_val']) . "\"";
$started = 1;
}
if ($rule['size']) {
$xthan = " :under ";
if ($rule['gthan']) $xthan = " :over ";
if ($started) $newruletext .= ", ";
$newruletext .= "size " . $xthan . $rule['size'] . "K";
$started = 1;
}
}
// actions
if (!$rule['unconditional']) $newruletext .= ") {\n\t";
if (preg_match("/folder/i",$rule['action'])) {
$newruletext .= "fileinto \"" . $rule['action_arg'] . "\";";
}
if (preg_match("/reject/i",$rule['action'])) {
$newruletext .= "reject text: \n" . $rule['action_arg'] . "\n.\n;";
$rejectused = 1;
}
if (preg_match("/address/i",$rule['action'])) {
$newruletext .= "redirect \"" . $rule['action_arg'] . "\";";
}
if (preg_match("/discard/i",$rule['action'])) {
$newruletext .= "discard;";
}
if ($rule['keep']) $newruletext .= "\n\tkeep;";
if (!$rule['unconditional']) $newruletext .= "\n}";
$continue = 0;
if ($rule['continue']) $continue = 1;
if ($rule['unconditional']) $continue = 1;
$newscriptbody .= $newruletext . "\n\n";
} // end 'if ! ENABLED'
}
// vacation rule
if ($this->vacation) {
$vacation = $this->vacation;
if (!$vacation['days']) $vacation['days'] = $default->vacation_days;
if (!$vacation['text']) $vacation['text'] = $default->vacation_text;
if (!$vacation['status']) $vacation['status'] = 'on';
// filter out invalid addresses.
$ok_vaddrs = array();
foreach($vacation['addresses'] as $addr){
if ($addr != '' && preg_match("/\@/",$addr))
array_push($ok_vaddrs,$addr);
}
$vacation['addresses'] = $ok_vaddrs;
if (!$vacation['addresses'][0]){
$defaultaddr = $sieve->user . '@' . $sieve->maildomain;
array_push($vacation['addresses'],$defaultaddr);
}
if ($vacation['status'] == 'on' || $vacation['status'] == 'by_date' &&
$vacation['start_date'] <= time() && time() < $vacation['end_date']+24*3600) // +24*3600 to include the end_date day
{
if (trim($vacation['forwards'])) {
$if = array();
foreach($vacation['addresses'] as $addr) {
$if[] = 'address :contains ["To","TO","Cc","CC"] "'.$addr.'"';
}
$newscriptbody .= 'if anyof ('.implode(', ',$if).") {\n";
foreach(preg_split('/, ?/',$vacation['forwards']) as $addr) {
$newscriptbody .= "\tredirect \"".$addr."\";\n";
}
$newscriptbody .= "\tkeep;\n}\n";
}
$vacation_active = true;
$newscriptbody .= "vacation :days " . $vacation['days'] . " :addresses [";
$first = 1;
foreach ($vacation['addresses'] as $vaddress) {
if (!$first) $newscriptbody .= ", ";
$newscriptbody .= "\"" . $vaddress . "\"";
$first = 0;
}
$message = $vacation['text'];
if ($vacation['start_date'] || $vacation['end_date'])
{
$message = str_replace(array('$$start$$','$$end$$'),array(
date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'],$vacation['start_date']),
date($GLOBALS['egw_info']['user']['preferences']['common']['dateformat'],$vacation['end_date']),
),$message);
}
$newscriptbody .= "] text:\n" . $message . "\n.\n;\n\n";
}
// update with any changes.
$this->vacation = $vacation;
}
if ($this->emailNotification && $this->emailNotification['status'] == 'on') {
// format notification email header components
$notification_email = $this->emailNotification['externalEmail'];
// format notification body
$egw_site_title = $GLOBALS['egw_info']['server']['site_title'];
$notification_body = lang("You have received a new message on the")." {$egw_site_title}"."\n";
$notification_body .= "\n";
$notification_body .= 'From: $from$'."\n";
if ($this->emailNotification['displaySubject']) {
$notification_body .= 'Subject: $subject$'."\n";
}
//$notification_body .= 'Size: $size$'."\n";
$newscriptbody .= 'notify :message "'.$notification_body.'" :method "mailto" :options "'.$notification_email.'";'."\n";
//$newscriptbody .= 'notify :message "'.$notification_body.'" :method "mailto" :options "'.$notification_email.'?subject='.$notification_subject.'";'."\n";
$newscriptbody .= 'keep;'."\n\n";
}
// generate the script head
$newscripthead = "";
$newscripthead .= "#Mail filter rules for " . $username . "\n";
$newscripthead .= '#Generated by ' . $username . ' using FeLaMiMail ' . $version . ' ' . date($default->script_date_format);
$newscripthead .= "\n";
if ($activerules) {
$newscripthead .= "require [\"fileinto\"";
if ($regexused) $newscripthead .= ",\"regex\"";
if ($rejectused) $newscripthead .= ",\"reject\"";
if ($this->vacation && $vacation_active) {
$newscripthead .= ",\"vacation\"";
}
if ($this->emailNotification && $this->emailNotification['status'] == 'on') $newscripthead .= ',"notify"'; // Added email notifications
$newscripthead .= "];\n\n";
} else {
// no active rules, but might still have an active vacation rule
if ($this->vacation && $vacation_active)
$newscripthead .= "require [\"vacation\"];\n\n";
if ($this->emailNotification && $this->emailNotification['status'] == 'on') $newscripthead .= "require [\"notify\"];\n\n"; // Added email notifications
}
// generate the encoded script foot
$newscriptfoot = "";
$pcount = 1;
$newscriptfoot .= "##PSEUDO script start\n";
foreach ($this->rules as $rule) {
// only add rule to foot if status != deleted. this is how we delete a rule.
if ($rule['status'] != 'DELETED') {
$rule['action_arg'] = addslashes($rule['action_arg']);
// we need to handle \r\n here.
$rule['action_arg'] = preg_replace("/\r\n/","\\n",$rule['action_arg']);
/* reset priority value. note: we only do this
* for compatibility with Websieve. */
$rule['priority'] = $pcount;
$newscriptfoot .= "#rule&&" . $rule['priority'] . "&&" . $rule['status'] . "&&" .
addslashes($rule['from']) . "&&" . addslashes($rule['to']) . "&&" . addslashes($rule['subject']) . "&&" . $rule['action'] . "&&" .
addslashes($rule['action_arg']) . "&&" . $rule['flg'] . "&&" . addslashes($rule['field']) . "&&" . addslashes($rule['field_val']) . "&&" . $rule['size'] . "\n";
$pcount = $pcount+2;
}
}
if ($this->vacation) {
$vacation = $this->vacation;
$newscriptfoot .= "#vacation&&" . $vacation['days'] . "&&";
$first = 1;
foreach ($vacation['addresses'] as $address) {
if (!$first) $newscriptfoot .= ", ";
$newscriptfoot .= "\"" . $address . "\"";
$first = 0;
}
$vacation['text'] = preg_replace("/\r\n/","\\n",$vacation['text']);
$newscriptfoot .= "&&" . $vacation['text'] . "&&" .
($vacation['status']=='by_date' ? $vacation['start_date'].'-'.$vacation['end_date'] : $vacation['status']);
if ($vacation['forwards']) $newscriptfoot .= '&&' . $vacation['forwards'];
$newscriptfoot .= "\n";
}
if ($this->emailNotification) {
$emailNotification = $this->emailNotification;
$newscriptfoot .= "#notify&&" . $emailNotification['status'] . "&&" . $emailNotification['externalEmail'] . "&&" . $emailNotification['displaySubject'] . "\n";
}
$newscriptfoot .= "#mode&&basic\n";
$newscript = $newscripthead . $newscriptbody . $newscriptfoot;
$this->script = $newscript;
#print "<pre>$newscript</pre>"; exit;
$scriptfile = $this->name;
#print "<hr><pre>".htmlentities($newscript)."</pre><hr>";
if (!$connection->installScript($this->name, $newscript, true)) {
$this->errstr = 'updateScript: putscript failed: ' . $connection->errstr;
return false;
}
return true;
}
}

View File

@ -0,0 +1,214 @@
<?php
/**
* EGroupware EMailAdmin: Support for Sieve scripts
*
* @link http://www.egroupware.org
* @package emailadmin
* @author Ralf Becker <rb@stylite.de>
* @author Klaus Leithoff <kl@stylite.de>
* @author Lars Kneschke
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
include_once('Net/Sieve.php');
/**
* Support for Sieve scripts
*/
class emailadmin_sieve extends Net_Sieve
{
/**
* @var object $icServer object containing the information about the imapserver
*/
var $icServer;
/**
* @var object $icServer object containing the information about the imapserver
*/
var $scriptName;
/**
* @var object $error the last PEAR error object
*/
var $error;
/**
* Switch on some error_log debug messages
*
* @var boolean
*/
var $debug = false;
/**
* Constructor
*
* @param defaultimap $_icServer
*/
function __construct(defaultimap $_icServer=null)
{
parent::Net_Sieve();
$this->scriptName = !empty($GLOBALS['egw_info']['user']['preferences']['felamimail']['sieveScriptName']) ? $GLOBALS['egw_info']['user']['preferences']['felamimail']['sieveScriptName'] : 'felamimail';
$this->displayCharset = $GLOBALS['egw']->translation->charset();
if (!is_null($_icServer) && $this->_connect($_icServer) === 'die') {
die('Sieve not activated');
}
}
/**
* Open connection to the sieve server
*
* @param defaultimap $_icServer
* @param string $euser='' effictive user, if given the Cyrus admin account is used to login on behalf of $euser
* @return mixed 'die' = sieve not enabled, false=connect or login failure, true=success
*/
function _connect($_icServer,$euser='')
{
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.array2string($euser));
if(is_a($_icServer,'defaultimap') && $_icServer->enableSieve) {
if (!empty($_icServer->sieveHost))
{
$sieveHost = $_icServer->sieveHost;
}
else
{
$sieveHost = $_icServer->host;
}
//error_log(__METHOD__.__LINE__.'->'.$sieveHost);
$sievePort = $_icServer->sievePort;
$useTLS = $_icServer->encryption > 0;
if ($euser) {
$username = $_icServer->adminUsername;
$password = $_icServer->adminPassword;
} else {
$username = $_icServer->loginName;
$password = $_icServer->password;
}
$this->icServer = $_icServer;
} else {
return 'die';
}
if(PEAR::isError($this->error = $this->connect($sieveHost , $sievePort, null, $useTLS) ) ){
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.": error in connect($sieveHost,$sievePort): ".$this->error->getMessage());
return false;
}
if(PEAR::isError($this->error = $this->login($username, $password, null, $euser) ) ){
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.array2string($this->icServer));
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.": error in login($username,$password,null,$euser): ".$this->error->getMessage());
return false;
}
return true;
}
function getRules($_scriptName) {
return $this->rules;
}
function getVacation($_scriptName) {
return $this->vacation;
}
function getEmailNotification($_scriptName) {
return $this->emailNotification;
}
function setRules($_scriptName, $_rules)
{
if (!$_scriptName) $_scriptName = $this->scriptName;
$script = new emailadmin_script($_scriptName);
$script->debug = $this->debug;
if($script->retrieveRules($this)) {
$script->rules = $_rules;
$script->updateScript($this);
return true;
}
return false;
}
function setVacation($_scriptName, $_vacation)
{
if (!$_scriptName) $_scriptName = $this->scriptName;
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__."($_scriptName,".print_r($_vacation,true).')');
$script = new emailadmin_script($_scriptName);
$script->debug = $this->debug;
if($script->retrieveRules($this)) {
$script->vacation = $_vacation;
$script->updateScript($this);
/*
// setting up an async job to enable/disable the vacation message
$async = new asyncservice();
$user = $GLOBALS['egw_info']['user']['account_id'];
$async->delete($async_id ="felamimail-vacation-$user");
$end_date = $_vacation['end_date'] + 24*3600; // end-date is inclusive, so we have to add 24h
if ($_vacation['status'] == 'by_date' && time() < $end_date)
{
$time = time() < $_vacation['start_date'] ? $_vacation['start_date'] : $end_date;
$async->set_timer($time,$async_id,'felamimail.bosieve.async_vacation',$_vacation+array('scriptName'=>$_scriptName),$user);
}
*/
return true;
}
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__."($_scriptName,".print_r($_vacation,true).') could not retrieve rules!');
return false;
}
/**
* Set vacation with admin right for an other user, used to async enable/disable vacation
*
* @param string $_euser
* @param string $_scriptName
* @param string $_vaction
* @return boolean true on success false otherwise
*/
function setVacationUser($_euser, $_scriptName, $_vacation)
{
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.' User:'.array2string($_euser).' Scriptname:'.array2string($_scriptName).' VacationMessage:'.array2string($_vacation));
if (!$_scriptName) $_scriptName = $this->scriptName;
if ($this->_connect($this->icServer,$_euser) === true) {
$this->setVacation($_scriptName,$_vacation);
// we need to logout, so further vacation's get processed
$error = $this->_cmdLogout();
if ($this->debug) error_log(__CLASS__.'::'.__METHOD__.' logout '.(PEAR::isError($error) ? 'failed: '.$ret->getMessage() : 'successful'));
return true;
}
return false;
}
function setEmailNotification($_scriptName, $_emailNotification) {
if (!$_scriptName) $_scriptName = $this->scriptName;
if ($_emailNotification['externalEmail'] == '' || !preg_match("/\@/",$_emailNotification['externalEmail'])) {
$_emailNotification['status'] = 'off';
$_emailNotification['externalEmail'] = '';
}
$script = new emailadmin_script($_scriptName);
if ($script->retrieveRules($this)) {
$script->emailNotification = $_emailNotification;
return $script->updateScript($this);
}
return false;
}
function retrieveRules($_scriptName) {
if (!$_scriptName) $_scriptName = $this->scriptName;
$script = new emailadmin_script($_scriptName);
if($script->retrieveRules($this)) {
$this->rules = $script->rules;
$this->vacation = $script->vacation;
$this->emailNotification = $script->emailNotification; // Added email notifications
return true;
}
return false;
}
}

View File

@ -0,0 +1,468 @@
<?php
/**
* EGroupware EMailAdmin: generic base class for SMTP configuration via LDAP
*
* @link http://www.stylite.de
* @package emailadmin
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2010 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
include_once(EGW_INCLUDE_ROOT.'/emailadmin/inc/class.defaultsmtp.inc.php');
/**
* Generic base class for SMTP configuration via LDAP
*
* This class uses just inetOrgPerson schema to store primary mail address and aliases
*
* Aliases are stored as aditional mail Attributes. The primary mail address is the first one.
* This schema does NOT support forwarding or disabling of an account for mail.
*
* Please do NOT copy this class! Extend it and set the constants different
* (incl. protected config var as long as we can not require PHP5.3 for LSB).
*/
class emailadmin_smtp_ldap extends defaultsmtp
{
/**
* Name of schema, has to be in the right case!
*/
const SCHEMA = 'inetOrgPerson';
/**
* Attribute to enable mail for an account, OR false if existence of ALIAS_ATTR is enough for mail delivery
*/
const MAIL_ENABLE_ATTR = false;
/**
* Attribute value to enable mail for an account, OR false if existense of attribute is enough to enable account
*/
const MAIL_ENABLED = false;
/**
* Attribute for aliases OR false to use mail
*/
const ALIAS_ATTR = false;
/**
* Primary mail address required as an alias too: true or false
*/
const REQUIRE_MAIL_AS_ALIAS=false;
/**
* Attribute for forwards OR false if not possible
*/
const FORWARD_ATTR = false;
/**
* Attribute to only forward mail, OR false if not available
*/
const FORWARD_ONLY_ATTR = false;
/**
* Attribute value to only forward mail
*/
const FORWARD_ONLY = false;
/**
* Attribute for mailbox, to which mail gets delivered OR false if not supported
*/
const MAILBOX_ATTR = false;
/**
* Log all LDAP writes / actions to error_log
*/
var $debug = false;
/**
* LDAP schema configuration
*
* Parent can NOT use constants direct as we have no late static binding in currenlty required PHP 5.2
*
* @var array
*/
protected $config = array(
'schema' => self::SCHEMA,
'mail_enable_attr' => self::MAIL_ENABLE_ATTR,
'mail_enabled' => self::MAIL_ENABLED,
'alias_attr' => self::ALIAS_ATTR,
'require_mail_as_alias' => self::REQUIRE_MAIL_AS_ALIAS,
'forward_attr' => self::FORWARD_ATTR,
'forward_only_attr' => self::FORWARD_ONLY_ATTR,
'forward_only' => self::FORWARD_ONLY,
'mailbox_attr' => self::MAILBOX_ATTR,
);
/**
* from here on implementation, please do NOT copy but extend it!
*/
/**
* Hook called on account creation
*
* @param array $_hookValues values for keys 'account_email', 'account_firstname', 'account_lastname', 'account_lid'
* @return boolean true on success, false on error writing to ldap
*/
function addAccount($_hookValues)
{
$mailLocalAddress = $_hookValues['account_email'] ? $_hookValues['account_email'] :
common::email_address($_hookValues['account_firstname'],
$_hookValues['account_lastname'],$_hookValues['account_lid'],$this->defaultDomain);
$ds = $GLOBALS['egw']->ldap->ldapConnect();
$filter = "uid=".$_hookValues['account_lid'];
if (!($sri = @ldap_search($ds,$GLOBALS['egw_info']['server']['ldap_context'],$filter)))
{
return false;
}
$allValues = ldap_get_entries($ds, $sri);
$accountDN = $allValues[0]['dn'];
$objectClasses = $allValues[0]['objectclass'];
unset($objectClasses['count']);
// add our mail schema, if not already set
if(!in_array($this->config['schema'],$objectClasses) && !in_array(strtolower($this->config['schema']),$objectClasses))
{
$objectClasses[] = $this->config['schema'];
}
// the new code for postfix+cyrus+ldap
$newData = array(
'mail' => $mailLocalAddress,
'objectclass' => $objectClasses
);
// does schema have explicit alias attribute AND require mail added as alias too
if ($this->config['alias_attr'] && $this->config['require_mail_as_alias'] && $this->config['alias_attr'])
{
$newData[$this->config['alias_attr']] = $mailLocalAddress;
}
// does schema support enabling/disabling mail via attribute
if ($this->config['mail_enable_attr'])
{
$newData[$this->config['mail_enable_attr']] = $this->config['mail_enabled'];
}
// does schema support an explicit mailbox name --> set it
if ($this->config['mailbox_attr'])
{
$newData[$this->config['mailbox_attr']] = self::mailbox_addr($_hookValues);
}
if (!($ret = ldap_mod_replace($ds, $accountDN, $newData)) || $this->debug)
{
error_log(__METHOD__.'('.array2string(func_get_args()).") --> ldap_mod_replace(,'$accountDN',".
array2string($newData).') returning '.array2string($ret).
(!$ret?' ('.ldap_error($ds).')':''));
}
return $ret;
}
/**
* Get all email addresses of an account
*
* @param string $_accountName
* @return array
*/
function getAccountEmailAddress($_accountName)
{
$emailAddresses = array();
$ds = $GLOBALS['egw']->ldap->ldapConnect();
$filter = sprintf("(&(uid=%s)(objectclass=posixAccount))",$_accountName);
$attributes = array('dn','mail',$this->config['alias_attr']);
$sri = @ldap_search($ds, $GLOBALS['egw_info']['server']['ldap_context'], $filter, $attributes);
if ($sri)
{
$realName = trim($GLOBALS['egw_info']['user']['firstname'] . (!empty($GLOBALS['egw_info']['user']['firstname']) ? ' ' : '') . $GLOBALS['egw_info']['user']['lastname']);
$allValues = ldap_get_entries($ds, $sri);
if(isset($allValues[0]['mail']))
{
foreach($allValues[0]['mail'] as $key => $value)
{
if ($key === 'count') continue;
$emailAddresses[] = array (
'name' => $realName,
'address' => $value,
'type' => !$key ? 'default' : 'alternate',
);
}
}
if ($this->config['alias_attr'] && isset($allValues[0][$this->config['alias_attr']]))
{
foreach($allValues[0][$this->config['alias_attr']] as $key => $value)
{
if ($key === 'count') continue;
$emailAddresses[] = array(
'name' => $realName,
'address' => $value,
'type' => 'alternate'
);
}
}
}
if ($this->debug) error_log(__METHOD__."('$_acountName') returning ".array2string($emailAddresses));
return $emailAddresses;
}
/**
* Get the data of a given user
*
* @param int $_uidnumber numerical user-id
* @return array
*/
function getUserData($_uidnumber)
{
$userData = array();
$ldap = $GLOBALS['egw']->ldap->ldapConnect();
if (($sri = @ldap_search($ldap,$GLOBALS['egw_info']['server']['ldap_context'],'(uidnumber='.(int)$_uidnumber.')',array($this->config['schema']))))
{
$allValues = ldap_get_entries($ldap, $sri);
if ($this->debug) error_log(__METHOD__."($_uidnumber) --> ldap_search(,{$GLOBALS['egw_info']['server']['ldap_context']},'(uidnumber=$_uidnumber)') --> ldap_get_entries=".array2string($allValues[0]));
if ($allValues['count'] > 0)
{
$userData['mailLocalAddress'] = $allValues[0]['mail'][0];
if ($this->config['alias_attr'])
{
$userData['mailAlternateAddress'] = (array)$allValues[0][$this->config['alias_attr']];
unset($userData['mailAlternateAddress']['count']);
}
else
{
$userData['mailAlternateAddress'] = (array)$allValues[0]['mail'];
unset($userData['mailAlternateAddress']['count']);
unset($userData['mailAlternateAddress'][0]);
$userData['mailAlternateAddress'] = array_values($userData['mailAlternateAddress']);
}
if ($this->config['mail_enable_attr'])
{
$userData['accountStatus'] = isset($allValues[0][$this->config['mail_enable_attr']]) &&
($this->config['mail_enabled'] && $allValues[0][$this->config['mail_enable_attr']][0] == $this->config['mail_enabled'] ||
!$this->config['mail_enabled'] && $allValues[0][$this->config['alias_attr']]['count'] > 0) ? 'active' : '';
}
else
{
$userData['accountStatus'] = $allValues[0][$this->config['alias_attr']]['count'] > 0 ? 'active' : '';
}
$userData['mailForwardingAddress'] = $this->config['forward_attr'] ? $allValues[0][$this->config['forward_attr']] : array();
unset($userData['mailForwardingAddress']['count']);
//$userData['deliveryProgramPath'] = $allValues[0][$this->config['mailbox_attr']][0];
if ($this->config['mailbox_attr']) $userData[$this->config['mailbox_attr']] = $allValues[0][$this->config['mailbox_attr']][0];
if ($this->config['forward_only_attr'])
{
$userData['deliveryMode'] = isset($allValues[0][$this->config['forward_only_attr']]) &&
($this->config['forward_only'] && $allValues[0][$this->config['forward_only_attr']][0] == $this->config['forward_only'] ||
!$this->config['forward_only'] && $allValues[0][$this->config['forward_only_attr']]['count'] > 0) ? 'forwardOnly' : '';
}
else
{
$userData['deliveryMode'] = '';
}
// eg. suse stores all email addresses as aliases
if ($this->config['require_mail_as_alias'] &&
($k = array_search($userData['mailLocalAddress'],$userData['mailAlternateAddress'])) !== false)
{
unset($userData['mailAlternateAddress'][$k]);
}
}
}
if ($this->debug) error_log(__METHOD__."('$_uidnumber') returning ".array2string($userData));
return $userData;
}
/**
* Set the data of a given user
*
* @param int $_uidnumber numerical user-id
* @param array $_mailAlternateAddress
* @param array $_mailForwardingAddress
* @param string $_deliveryMode
* @param string $_accountStatus
* @param string $_mailLocalAddress
* @return boolean true on success, false on error writing to ldap
*/
function setUserData($_uidnumber, $_mailAlternateAddress, $_mailForwardingAddress, $_deliveryMode, $_accountStatus, $_mailLocalAddress)
{
$filter = 'uidnumber='.(int)$_uidnumber;
$ldap = $GLOBALS['egw']->ldap->ldapConnect();
if (!($sri = @ldap_search($ldap,$GLOBALS['egw_info']['server']['ldap_context'],$filter)))
{
return false;
}
$allValues = ldap_get_entries($ldap, $sri);
$accountDN = $allValues[0]['dn'];
$uid = $allValues[0]['uid'][0];
$objectClasses = $allValues[0]['objectclass'];
unset($objectClasses['count']);
if(!in_array($this->config['schema'],$objectClasses) && !in_array(strtolower($this->config['schema']),$objectClasses))
{
$objectClasses[] = $this->config['schema'];
$newData['objectclass'] = $objectClasses;
}
sort($_mailAlternateAddress);
sort($_mailForwardingAddress);
$newData['mail'] = $_mailLocalAddress;
// does schema have explicit alias attribute
if ($this->config['alias_attr'])
{
$newData[$this->config['alias_attr']] = (array)$_mailAlternateAddress;
// all email must be stored as alias for suse
if ($this->config['require_mail_as_alias'] && !in_array($_mailLocalAddress,(array)$_mailAlternateAddress))
{
$newData[$this->config['alias_attr']][] = $_mailLocalAddress;
}
}
// or de we add them - if existing - to mail attr
elseif ($_mailAlternateAddress)
{
$newData['mail'] = array_merge((array)$newData['mail'],(array)$_mailAlternateAddress);
}
// does schema support to store forwards
if ($this->config['forward_attr'])
{
$newData[$this->config['forward_attr']] = (array)$_mailForwardingAddress;
}
// does schema support only forwarding incomming mail
if ($this->config['forward_only_attr'])
{
$newData[$this->config['forward_only_attr']] = $_deliveryMode ? $this->config['forward_only'] : array();
}
// does schema support enabling/disabling mail via attribute
if ($this->config['mail_enable_attr'])
{
$newData[$this->config['mail_enable_attr']] = $_accountStatus ? $this->config['mail_enabled'] : array();
}
// does schema support an explicit mailbox name --> set it with $uid@$domain
if ($this->config['mailbox_attr'])
{
$newData[$this->config['mailbox_attr']] = self::mailbox_addr(array(
'account_id' => $_uidnumber,
'account_lid' => $uid,
'account_email' => $_mailLocalAddress,
));
}
if ($this->debug) error_log(__METHOD__.'('.array2string(func_get_args()).") --> ldap_mod_replace(,'$accountDN',".array2string($newData).')');
return ldap_mod_replace($ldap, $accountDN, $newData);
}
/**
* Saves the forwarding information
*
* @param int $_accountID
* @param string $_forwardingAddress
* @param string $_keepLocalCopy 'yes'
* @return boolean true on success, false on error writing to ldap
*/
function saveSMTPForwarding($_accountID, $_forwardingAddress, $_keepLocalCopy)
{
$ds = $GLOBALS['egw']->ldap->ldapConnect();
$filter = sprintf('(&(uidnumber=%d)(objectclass=posixAccount))',$_accountID);
$attributes = array('dn',$this->config['forward_attr'],'objectclass');
if ($this->config['forward_only_attr'])
{
$attributes[] = $this->config['forward_only_attr'];
}
$sri = ldap_search($ds, $GLOBALS['egw_info']['server']['ldap_context'], $filter, $attributes);
if ($sri)
{
$newData = array();
$allValues = ldap_get_entries($ds, $sri);
$objectClasses = $allValues[0]['objectclass'];
$newData['objectclass'] = $allValues[0]['objectclass'];
unset($newData['objectclass']['count']);
if(!in_array($this->config['schema'],$objectClasses))
{
$newData['objectclass'][] = $this->config['schema'];
}
if ($this->config['forward_attr'])
{
if(!empty($_forwardingAddress))
{
if(is_array($allValues[0][$this->config['forward_attr']]))
{
$newData[$this->config['forward_attr']] = $allValues[0][$this->config['forward_attr']];
unset($newData[$this->config['forward_attr']]['count']);
$newData[$this->config['forward_attr']][0] = $_forwardingAddress;
}
else
{
$newData[$this->config['forward_attr']] = (array)$_forwardingAddress;
}
if ($this->config['forward_only_attr'])
{
$newData['deliverymode'] = $_keepLocalCopy == 'yes' ? array() : $this->config['forward_only'];
}
}
else
{
$newData[$this->config['forward_attr']] = array();
}
}
if ($this->debug) error_log(__METHOD__.'('.array2string(func_get_args()).") --> ldap_mod_replace(,'$accountDN',".array2string($newData).')');
return ldap_modify ($ds, $allValues[0]['dn'], $newData);
}
}
/**
* Build mailbox address for given account and mail_addr_type
*
* If $account is an array (with values for keys account_(id|lid|email), it does NOT call accounts class
*
* @param int|array $account account_id or whole account array with values for keys
* @param string $domain=null domain, default use $this->defaultDomain
* @param string $mail_login_type=null standard(uid), vmailmgr(uid@domain), email or uidNumber,
* default use $GLOBALS['egw_info']['server']['mail_login_type']
* @return string
*/
/*static*/ public function mailbox_addr($account,$domain=null,$mail_login_type=null)
{
if (is_null($domain)) $domain = $this->defaultDomain;
if (is_null($mail_login_type)) $mail_login_type = $GLOBALS['egw_info']['server']['mail_login_type'];
switch($mail_login_type)
{
case 'email':
$mbox = is_array($account) ? $account['account_email'] : $GLOBALS['egw']->accounts->id2name($account,'account_email');
break;
case 'uidNumber':
if (is_array($account)) $account = $account['account_id'];
$mbox = 'u'.$account.'@'.$domain;
break;
case 'standard':
$mbox = is_array($account) ? $account['account_lid'] : $GLOBALS['egw']->accounts->id2name($account);
break;
case 'vmailmgr':
default:
$mbox = is_array($account) ? $account['account_lid'] : $GLOBALS['egw']->accounts->id2name($account);
$mbox .= '@'.$domain;
break;
}
if ($this->debug) error_log(__METHOD__."(".array2string($account).",'$domain','$mail_login_type') = '$mbox'");
return $mbox;
}
}

View File

@ -0,0 +1,462 @@
<?php
/***************************************************************************\
* EGroupWare - EMailAdmin *
* http://www.egroupware.org *
* Written by : Lars Kneschke [lkneschke@egroupware.org] *
* ------------------------------------------------- *
* This program 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. *
\***************************************************************************/
/* $Id$ */
class emailadmin_so
{
var $db;
var $table = 'egw_emailadmin';
var $db_cols = array(
'ea_profile_id' => 'profileID',
'ea_smtp_server' => 'smtpServer',
'ea_smtp_type' => 'smtpType',
'ea_smtp_port' => 'smtpPort',
'ea_smtp_auth' => 'smtpAuth',
'ea_editforwardingaddress' => 'editforwardingaddress',
'ea_smtp_ldap_server' => 'smtpLDAPServer',
'ea_smtp_ldap_basedn' => 'smtpLDAPBaseDN',
'ea_smtp_ldap_admindn' => 'smtpLDAPAdminDN',
'ea_smtp_ldap_adminpw' => 'smtpLDAPAdminPW',
'ea_smtp_ldap_use_default' => 'smtpLDAPUseDefault',
'ea_imap_server' => 'imapServer',
'ea_imap_type' => 'imapType',
'ea_imap_port' => 'imapPort',
'ea_imap_login_type' => 'imapLoginType',
'ea_imap_auth_username' => 'imapAuthUsername',
'ea_imap_auth_password' => 'imapAuthPassword',
'ea_imap_tsl_auth' => 'imapTLSAuthentication',
'ea_imap_tsl_encryption' => 'imapTLSEncryption',
'ea_imap_enable_cyrus' => 'imapEnableCyrusAdmin',
'ea_imap_admin_user' => 'imapAdminUsername',
'ea_imap_admin_pw' => 'imapAdminPW',
'ea_imap_enable_sieve' => 'imapEnableSieve',
'ea_imap_sieve_server' => 'imapSieveServer',
'ea_imap_sieve_port' => 'imapSievePort',
'ea_description' => 'description',
'ea_default_domain' => 'defaultDomain',
'ea_organisation_name' => 'organisationName',
'ea_user_defined_identities' => 'userDefinedIdentities',
'ea_user_defined_accounts' => 'userDefinedAccounts',
'ea_order' => 'ea_order',
'ea_active' => 'ea_active',
'ea_group' => 'ea_group',
'ea_user' => 'ea_user',
'ea_appname' => 'ea_appname',
'ea_smtp_auth_username' => 'ea_smtp_auth_username',
'ea_smtp_auth_password' => 'ea_smtp_auth_password',
'ea_user_defined_signatures' => 'ea_user_defined_signatures',
'ea_default_signature' => 'ea_default_signature',
'ea_stationery_active_templates' => 'ea_stationery_active_templates',
);
function __construct()
{
if (is_object($GLOBALS['egw_setup']->db))
{
$this->db = clone($GLOBALS['egw_setup']->db);
}
else
{
$this->db = clone($GLOBALS['egw']->db);
}
$this->db->set_app('emailadmin');
}
/**
* Convert array with internal values/names to db-column-names
*
* @param array $vals
* @return array
*/
function vals2db($vals)
{
$cols = array();
foreach($vals as $key => $val)
{
if (($k = array_search($key,$this->db_cols)) === false) $k = $key;
$cols[$k] = $val;
}
return $cols;
}
/**
* Convert array with db-columns/-values to internal names
*
* @param array $vals
* @return array
*/
function db2vals($cols)
{
$vals = array();
foreach($cols as $key => $val)
{
if (isset($this->db_cols[$key])) $key = $this->db_cols[$key];
$vals[$key] = $val;
}
return $vals;
}
function updateProfile($_globalSettings, $_smtpSettings=array(), $_imapSettings=array())
{
$profileID = (int) $_globalSettings['profileID'];
unset($_globalSettings['profileID']);
$where = $profileID ? array('ea_profile_id' => $profileID) : false;
$this->db->insert($this->table,$this->vals2db($_smtpSettings+$_globalSettings+$_imapSettings),$where,__LINE__,__FILE__);
return $profileID ? $profileID : $this->db->get_last_insert_id($this->table,'ea_profile_id');
}
function addProfile($_globalSettings, $_smtpSettings, $_imapSettings)
{
unset($_globalSettings['profileID']); // just in case
return $this->updateProfile($_globalSettings, $_smtpSettings, $_imapSettings);
}
function deleteProfile($_profileID)
{
$this->db->delete($this->table,array('ea_profile_id' => $_profileID),__LINE__ , __FILE__);
}
function getProfile($_profileID, $_fieldNames)
{
$_fieldNames = array_keys($this->vals2db(array_flip($_fieldNames)));
$this->db->select($this->table,$_fieldNames,array('ea_profile_id' => $_profileID), __LINE__, __FILE__);
if (($data = $this->db->row(true))) {
return $this->db2vals($data);
}
return $data;
}
function getUserProfile($_appName, $_groups, $_user = NULL)
{
if(empty($_appName) || !is_array($_groups))
return false;
if (!empty($_user)) {
$where = $this->db->expression(
$this->table,'(',
array('ea_appname'=>$_appName),
' OR ea_appname IS NULL or ea_appname = \'\') and ',
'(',
array('ea_group'=>$_groups),
' OR ea_group IS NULL or ea_group = \'\') and ',
'(',
array('ea_user'=>$_user),
' OR ea_user IS NULL or ea_user = \'0\' or ea_user = \'\')'
);
} else {
$where = $this->db->expression(
$this->table,'(',
array('ea_appname'=>$_appName),
' OR ea_appname IS NULL or ea_appname = \'\') and ',
'(',
array('ea_group'=>$_groups),
' OR ea_group IS NULL or ea_group = \'\')'
);
}
$anyValues = 0;
// retrieve the Global/Overall Settings
$this->db->select($this->table,'ea_profile_id',$where, __LINE__, __FILE__, false, 'ORDER BY ea_order', false, 1);
if (($data = $this->db->row(true))) {
$globalDefaults = $this->getProfile($data['ea_profile_id'], $this->db_cols);
$anyValues++;
} else {
error_log("emailadmin::emailadmin_so->getUserProfile, no Default configured");
$globalDefaults = array();
}
// retrieve application settings if set
if (strlen($_appName)>0) {
$this->db->select($this->table,'ea_profile_id',$this->db->expression($this->table,'(',array('ea_appname'=>$_appName),' and ea_active=1)'), __LINE__, __FILE__, false, 'ORDER BY ea_order', false, 1);
if (($data = $this->db->row(true))) {
$appDefaults = $this->getProfile($data['ea_profile_id'], $this->db_cols);
$globalDefaults = self::mergeProfileData($globalDefaults, $appDefaults);
$anyValues++;
}
}
// retrieve primary-group settings if set
if (is_array($_groups) && $_groups[1] == $GLOBALS['egw_info']['user']['account_primary_group']) {
$this->db->select($this->table,'ea_profile_id',$this->db->expression($this->table,'(',array('ea_group'=>$_groups[1]),' and ea_active=1)'), __LINE__, __FILE__, false, 'ORDER BY ea_order', false, 1);
if (($data = $this->db->row(true))) {
$groupDefaults = $this->getProfile($data['ea_profile_id'], $this->db_cols);
$globalDefaults = self::mergeProfileData($globalDefaults, $groupDefaults);
$anyValues++;
}
}
// retrieve usersettings if set
if (!empty($_user) && $_user != 0) {
$this->db->select($this->table,'ea_profile_id',$this->db->expression($this->table,'(',array('ea_user'=>$_user),' and ea_active=1)'), __LINE__, __FILE__, false, 'ORDER BY ea_order', false, 1);
if (($data = $this->db->row(true))) {
$userDefaults = $this->getProfile($data['ea_profile_id'], $this->db_cols);
$globalDefaults = self::mergeProfileData($globalDefaults, $userDefaults);
$anyValues++;
}
}
if ($anyValues) {
return $globalDefaults;
} else {
return false;
}
}
/*
* merge profile data.
* for each key of the mergeInTo Array check if there is a value set in the toMerge Array and replace it.
*/
static function mergeProfileData($mergeInTo, $toMerge)
{
if (is_array($toMerge) && count($toMerge)>0)
{
$allkeys = array_unique(array_keys($mergeInTo)+array_keys($toMerge));
foreach ($allkeys as $i => $key) {
if (!array_key_exists($key, $mergeInTo) && array_key_exists($key, $toMerge) && !empty($toMerge[$key]))
{
$mergeInTo[$key]=$toMerge[$key];
} else {
if (array_key_exists($key, $toMerge) && !empty($toMerge[$key]))
{
#error_log($key.'->'.$toMerge[$key]);
switch ($key) {
case 'imapLoginType':
// if the logintype is admin, it will be added to the default value
if ($toMerge[$key] =='admin' || $toMerge[$key] =='email') {
// take the first value found by explode, which is assumed the default value
list($mergeInTo[$key],$rest) = explode('#',$mergeInTo[$key],2);
$mergeInTo[$key] = $mergeInTo[$key].'#'.$toMerge[$key];
#error_log($mergeInTo[$key]);
break;
}
case 'imapServer':
case 'imapType':
case 'imapPort':
case 'imapTLSEncryption':
case 'imapTLSAuthentication':
case 'imapEnableCyrusAdmin':
case 'imapAdminUsername':
case 'imapAdminPW':
if (strlen($toMerge['imapServer'])>0) $mergeInTo[$key]=$toMerge[$key];
break;
case 'smtpPort':
case 'smtpType':
case 'smtpServer':
if (strlen($toMerge['smtpServer'])>0) $mergeInTo[$key]=$toMerge[$key];
break;
case 'smtpLDAPServer':
case 'smtpLDAPBaseDN':
case 'smtpLDAPAdminDN':
case 'smtpLDAPAdminPW':
case 'smtpLDAPUseDefault':
if (strlen($toMerge['smtpLDAPServer'])>0) $mergeInTo[$key]=$toMerge[$key];
break;
case 'ea_default_signature':
$testVal = $toMerge['ea_default_signature'];
//bofelamimail::getCleanHTML($testVal);
$testVal = html::purify($testVal);
if (strlen($testVal)>10 || $testVal != '<br>' || $testVal != '<br />') $mergeInTo[$key]=$toMerge[$key];
break;
default:
$mergeInTo[$key]=$toMerge[$key];
}
}
}
}
}
return $mergeInTo;
}
function getProfileList($_profileID=0,$_defaultProfile=false,$_appName=false,$_groupID=false,$_accountID=false)
{
$where = false;
if ((int) $_profileID)
{
$where = array('ea_profile_id' => $_profileID);
}
elseif ($_defaultProfile)
{
$where[] = "(ea_appname ='' or ea_appname is NULL)";
$where[] = "(ea_group=0 or ea_group is NULL)";
$where[] = "(ea_user =0 or ea_user is NULL)";
}
elseif ($_appName)
{
$where['ea_appname'] = $_appName;
}
elseif ((int) $_groupID)
{
$where['ea_group'] = (int) $_groupID;
}
elseif ((int) $_accountID)
{
$where['ea_user'] = (int) $_accountID;
}
//error_log(__METHOD__.__LINE__.' Where Condition:'.array2string($where).' Backtrace:'.function_backtrace());
$this->db->select($this->table,'*',$where, __LINE__,__FILE__,false,(int) $_profileID ? '' : 'ORDER BY ea_order');
$serverList = false;
while (($row = $this->db->row(true)))
{
$serverList[] = $this->db2vals($row);
}
return $serverList;
}
function getUserData($_accountID)
{
$ldap = $GLOBALS['egw']->common->ldapConnect();
if (($sri = @ldap_search($ldap,$GLOBALS['egw_info']['server']['ldap_context'],"(uidnumber=$_accountID)")))
{
$allValues = ldap_get_entries($ldap, $sri);
if ($allValues['count'] > 0)
{
#print "found something<br>";
$userData["mailLocalAddress"] = $allValues[0]["mail"][0];
$userData["mailAlternateAddress"] = $allValues[0]["mailalternateaddress"];
$userData["accountStatus"] = $allValues[0]["accountstatus"][0];
$userData["mailRoutingAddress"] = $allValues[0]["mailforwardingaddress"];
$userData["qmailDotMode"] = $allValues[0]["qmaildotmode"][0];
$userData["deliveryProgramPath"] = $allValues[0]["deliveryprogrampath"][0];
$userData["deliveryMode"] = $allValues[0]["deliverymode"][0];
unset($userData["mailAlternateAddress"]["count"]);
unset($userData["mailRoutingAddress"]["count"]);
return $userData;
}
}
// if we did not return before, return false
return false;
}
function saveUserData($_accountID, $_accountData)
{
$ldap = $GLOBALS['egw']->common->ldapConnect();
// need to be fixed
if(is_numeric($_accountID))
{
$filter = "uidnumber=$_accountID";
}
else
{
$filter = "uid=$_accountID";
}
$sri = @ldap_search($ldap,$GLOBALS['egw_info']['server']['ldap_context'],$filter);
if ($sri)
{
$allValues = ldap_get_entries($ldap, $sri);
$accountDN = $allValues[0]['dn'];
$uid = $allValues[0]['uid'][0];
$homedirectory = $allValues[0]['homedirectory'][0];
$objectClasses = $allValues[0]['objectclass'];
unset($objectClasses['count']);
}
else
{
return false;
}
if(empty($homedirectory))
{
$homedirectory = "/home/".$uid;
}
// the old code for qmail ldap
$newData = array
(
'mail' => $_accountData["mailLocalAddress"],
'mailAlternateAddress' => $_accountData["mailAlternateAddress"],
'mailRoutingAddress' => $_accountData["mailRoutingAddress"],
'homedirectory' => $homedirectory,
'mailMessageStore' => $homedirectory."/Maildir/",
'gidnumber' => '1000',
'qmailDotMode' => $_accountData["qmailDotMode"],
'deliveryProgramPath' => $_accountData["deliveryProgramPath"]
);
if(!in_array('qmailUser',$objectClasses) &&
!in_array('qmailuser',$objectClasses))
{
$objectClasses[] = 'qmailuser';
}
// the new code for postfix+cyrus+ldap
$newData = array
(
'mail' => $_accountData["mailLocalAddress"],
'accountStatus' => $_accountData["accountStatus"],
'objectclass' => $objectClasses
);
if(is_array($_accountData["mailAlternateAddress"]))
{
$newData['mailAlternateAddress'] = $_accountData["mailAlternateAddress"];
}
else
{
$newData['mailAlternateAddress'] = array();
}
if($_accountData["accountStatus"] == 'active')
{
$newData['accountStatus'] = 'active';
}
else
{
$newData['accountStatus'] = 'disabled';
}
if(!empty($_accountData["deliveryMode"]))
{
$newData['deliveryMode'] = $_accountData["deliveryMode"];
}
else
{
$newData['deliveryMode'] = array();
}
if(is_array($_accountData["mailRoutingAddress"]))
{
$newData['mailForwardingAddress'] = $_accountData["mailRoutingAddress"];
}
else
{
$newData['mailForwardingAddress'] = array();
}
#print "DN: $accountDN<br>";
ldap_mod_replace ($ldap, $accountDN, $newData);
#print ldap_error($ldap);
// also update the account_email field in egw_accounts
// when using sql account storage
if($GLOBALS['egw_info']['server']['account_repository'] == 'sql')
{
$this->db->update('egw_accounts',array(
'account_email' => $_accountData["mailLocalAddress"]
),
array(
'account_id' => $_accountID
),__LINE__,__FILE__
);
}
return true;
}
}
?>

View File

@ -0,0 +1,281 @@
<?php
/**
* EMailAdmin - history
*
* @link http://www.egroupware.org
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @package addressbook
* @copyright (c) 2007 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id: class.emailadmin_tracking.inc.php 29941 2010-04-22 15:39:32Z nathangray $
*/
/**
* EMailAdmin - tracking object
*/
class emailadmin_tracking extends bo_tracking
{
/**
* Application we are tracking (required!)
*
* @var string
*/
var $app = 'emailadmin';
/**
* Name of the id-field, used as id in the history log (required!)
*
* @var string
*/
var $id_field = 'ea_profile_id';
/**
* Name of the field with the creator id, if the creator of an entry should be notified
*
* @var string
*/
//var $creator_field = '';
/**
* Name of the field with the id(s) of assinged users, if they should be notified
*
* @var string
*/
//var $assigned_field = '';
/**
* Translate field-name to 2-char history status
*
* @var array
*/
var $field2history = array(
'ea_smtp_server' => 'ea_smtp_server',
'ea_smtp_type' => 'ea_smtp_type',
'ea_smtp_port' => 'ea_smtp_port',
'ea_smtp_auth' => 'ea_smtp_auth',
'ea_editforwardingaddress' => 'ea_editforwardingaddress',
'ea_smtp_ldap_server' => 'ea_smtp_ldap_server',
'ea_smtp_ldap_basedn' => 'ea_smtp_ldap_basedn',
'ea_smtp_ldap_admindn' => 'ea_smtp_ldap_admindn',
'ea_smtp_ldap_adminpw' => 'ea_smtp_ldap_adminpw',
'ea_smtp_ldap_use_default' => 'ea_smtp_ldap_use_default',
'ea_imap_server' => 'ea_imap_server',
'ea_imap_type' => 'ea_imap_type',
'ea_imap_port' => 'ea_imap_port',
'ea_imap_login_type' => 'ea_imap_login_type',
'ea_imap_tsl_auth' => 'ea_imap_tsl_auth',
'ea_imap_tsl_encryption' => 'ea_imap_tsl_encryption',
'ea_imap_enable_cyrus' => 'ea_imap_enable_cyrus',
'ea_imap_admin_user' => 'ea_imap_admin_user',
'ea_imap_admin_pw' => 'ea_imap_admin_pw',
'ea_imap_enable_sieve' => 'ea_imap_enable_sieve',
'ea_imap_sieve_server' => 'ea_imap_sieve_server',
'ea_imap_sieve_port' => 'ea_imap_sieve_port',
'ea_description' => 'ea_description',
'ea_default_domain' => 'ea_default_domain',
'ea_organisation_name' => 'ea_organisation_name',
'ea_user_defined_identities' => 'ea_user_defined_identities',
'ea_user_defined_accounts' => 'ea_user_defined_accounts',
'ea_order' => 'ea_order',
'ea_appname' => 'ea_appname',
'ea_group' => 'ea_group',
'ea_user' => 'ea_user',
'ea_active' => 'ea_active',
'ea_smtp_auth_username' => 'ea_smtp_auth_username',
'ea_smtp_auth_password' => 'ea_smtp_auth_password',
'ea_user_defined_signatures' => 'ea_user_defined_signatures',
'ea_default_signature' => 'ea_default_signature',
'ea_imap_auth_username' => 'ea_imap_auth_username',
'ea_imap_auth_password' => 'ea_imap_auth_password',
'ea_stationery_active_templates' => 'ea_stationery_active_templates'
);
/**
* Translate field name to label
*/
public $field2label = array(
'ea_smtp_server' => 'SMTP server',
'ea_smtp_type' => 'SMTP type',
'ea_smtp_port' => 'SMTP port',
'ea_smtp_auth' => 'SMTP authentification',
'ea_editforwardingaddress' => 'edit forwarding address',
'ea_smtp_ldap_server' => 'SMTP Ldap Server',
'ea_smtp_ldap_basedn' => '',
'ea_smtp_ldap_admindn' => '',
'ea_smtp_ldap_adminpw' => 'SMTP Ldap admin password',
'ea_smtp_ldap_use_default' => 'SMTP Ldap use default',
'ea_imap_server' => 'IMAP server',
'ea_imap_type' => 'IMAP type',
'ea_imap_port' => 'IMAP port',
'ea_imap_login_type' => 'IMAP login type',
'ea_imap_tsl_auth' => 'IMAP Tsl authentification',
'ea_imap_tsl_encryption' => 'IMAP Tsl encryption',
'ea_imap_enable_cyrus' => 'IMAP enable Cyrus',
'ea_imap_admin_user' => 'IMAP admin user',
'ea_imap_admin_pw' => 'IMAP admin password',
'ea_imap_enable_sieve' => 'IMAP enable Sieve',
'ea_imap_sieve_server' => 'IMAP Sieve server',
'ea_imap_sieve_port' => 'IMAP Sieve port',
'ea_description' => 'Description',
'ea_default_domain' => 'Default domain',
'ea_organisation_name' => 'Organisation',
'ea_user_defined_identities' => 'User defined identities',
'ea_user_defined_accounts' => 'User defined accounts',
'ea_order' => 'Order',
'ea_appname' => 'Application',
'ea_group' => 'Group',
'ea_user' => 'User',
'ea_active' => 'Active',
'ea_smtp_auth_username' => 'SMTP authentification user',
'ea_smtp_auth_password' => 'SMTP authentification password',
'ea_user_defined_signatures' => 'User defined signatures',
'ea_default_signature' => 'Default signature',
'ea_imap_auth_username' => 'IMAP authentification user',
'ea_imap_auth_password' => 'IMAP authentification password',
'ea_stationery_active_templates' => ''
);
/**
* Fields that contain passwords
*/
static $passwordFields = array(
'ea_smtp_auth_password',
'ea_imap_auth_password',
'ea_smtp_ldap_adminpw',
'ea_imap_admin_pw',
);
/**
* Should the user (passed to the track method or current user if not passed) be used as sender or get_config('sender')
*
* @var boolean
*/
var $prefer_user_as_sender = false;
/**
* Instance of the emailadmin_bo class calling us
*
* @access private
* @var emailadmin_bo
*/
var $emailadmin_bo;
/**
* Constructor
*
* @param emailadmin_bo &$emailadmin_bo
* @return tracker_tracking
*/
function __construct(&$emailadmin_bo)
{
parent::__construct(); // calling the constructor of the extended class
$this->emailadmin_bo =& $emailadmin_bo;
}
/**
* Tracks the changes in one entry $data, by comparing it with the last version in $old
*
* @param array $data current entry
* @param array $old=null old/last state of the entry or null for a new entry
* @param int $user=null user who made the changes, default to current user
* @param boolean $deleted=null can be set to true to let the tracking know the item got deleted or undeleted
* @param array $changed_fields=null changed fields from ealier call to $this->changed_fields($data,$old), to not compute it again
* @param boolean $skip_notification=false do NOT send any notification
* @return int|boolean false on error, integer number of changes logged or true for new entries ($old == null)
*/
public function track(array $data,array $old=null,$user=null,$deleted=null,array $changed_fields=null,$skip_notification=false)
{
foreach (self::$passwordFields as $k => $v)
{
if (is_array($data))
{
foreach($data as $key => &$dd)
{
if ($key == $v && !empty($dd))
{
$dd = $this->maskstring($dd);
}
}
}
if (is_array($old))
{
foreach($old as $ko => &$do)
{
//error_log(__METHOD__.__LINE__.$ko);
if ($ko == $v && !empty($do))
{
$do = $this->maskstring($do);
}
}
}
}
//error_log(__METHOD__.__LINE__.array2string($data));
//error_log(__METHOD__.__LINE__.array2string($old));
return parent::track($data,$old,$user,$deleted,$changed_fields,$skip_notifications);
}
private function maskstring($data)
{
$length =strlen($data);
$first = substr($data,0,1);
$last = substr($data,-1);
if ($length<3)
{
$data = str_repeat('*',$length);
}
else
{
$data = $first.str_repeat('*',($length-2>0?$length-2:1)).$last;
}
return $data;
}
/**
* Get a notification-config value
*
* @param string $what
* - 'copy' array of email addresses notifications should be copied too, can depend on $data
* - 'lang' string lang code for copy mail
* - 'sender' string send email address
* @param array $data current entry
* @param array $old=null old/last state of the entry or null for a new entry
* @return mixed
*/
function get_config($name,$data,$old=null)
{
return null;
}
/**
* Get the modified / new message (1. line of mail body) for a given entry, can be reimplemented
*
* @param array $data
* @param array $old
* @return string
*/
function get_message($data,$old)
{
return null;
}
/**
* Get the subject of the notification
*
* @param array $data
* @param array $old
* @return string
*/
function get_subject($data,$old)
{
return null;
}
/**
* Get the details of an entry
*
* @param array $data
*
* @return array of details as array with values for keys 'label','value','type'
*/
function get_details($data)
{
return null;
}
}

View File

@ -0,0 +1,428 @@
<?php
/**
* EGroupware EMailAdmin: User interface
*
* @link http://www.stylite.de
* @package emailadmin
* @author Klaus Leithoff <kl@stylite.de>
* @copyright (c) 2009-10 by Klaus Leithoff <kl-AT-stylite.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
/**
* User interface
*/
class emailadmin_ui extends emailadmin_bo
{
var $public_functions = array
(
'index' => True,
'add' => True,
'delete' => True,
'edit' => True,
'save' => True,
'listProfiles' => True,
);
function __construct()
{
parent::__construct();
}
/**
* Main emailadmin page
*
* @param array $content=null
* @param string $msg=null
*/
function index(array $content=null,$msg=null)
{
$accountID = false;
$groupID = false;
$filter = '';
$rowsfound = 0;
if(is_int(intval($_GET['account_id'])) && !empty($_GET['account_id']))
{
if ( intval($_GET['account_id']) < 0 ) {
$groupID = intval($_GET['account_id']);
$filter['ea_group'] = intval($_GET['account_id']);
} else {
$accountID = intval($_GET['account_id']);
$filter['ea_user'] = intval($_GET['account_id']);
}
$r = parent::search($filter);
$rowsfound = count($r);
}
if ($rowsfound)
{
if (($accountID || !empty($groupID)) && $rowsfound == 1)
{
$linkData = array
(
'menuaction' => 'emailadmin.emailadmin_ui.edit',
'profileid' => $r[0]['ea_profile_id']
);
$addJavaScript = "<script type=\"text/javascript\">".'egw_openWindowCentered2(\''.$GLOBALS['egw']->link('/index.php',$linkData).'\',\'ea_editProfile\',700,600);</script>';
}
} else {
if ($accountID || !empty($groupID)) {
$linkData = array
(
'menuaction' => 'emailadmin.emailadmin_ui.edit',
'account_id' => ($accountID ? $accountID : $groupID)
);
$addJavaScript = "<script type=\"text/javascript\">".'egw_openWindowCentered2(\''.$GLOBALS['egw']->link('/index.php',$linkData).'\',\'ea_addProfile\',700,600);</script>';
}
}
if ($accountID || !empty($groupID)) {
$linkData = array
(
'menuaction' => 'emailadmin.emailadmin_ui.index',
);
$listLink = '<a href="'.$GLOBALS['egw']->link('/index.php',$linkData).
'" onClick="return confirm(\''.lang('Do you really want to reset the filter for the Profile listing').'?\')">'.
lang('reset filter').'</a>';
if ($GLOBALS['egw_info']['user']['apps']['admin']) {
$linkData = array
(
'menuaction' => 'admin.uiaccounts.list_'.($accountID ? 'users' : 'groups'),
);
$listLink2 = '<a href="'.$GLOBALS['egw']->link('/index.php',$linkData).'">'.($accountID ? lang('Back to Admin/Userlist'): lang('Back to Admin/Grouplist')).'</a>';
}
unset($r);
$subtitle = ($accountID || !empty($groupID) ? ' '.($accountID ? lang('filtered by Account') : lang('filtered by Group')).' ['.$listLink.']'.' ['.$listLink2.']': '');
}
//_debug_array($content);
$tpl = new etemplate('emailadmin.index');
if (!is_array($content))
{
$content = array(
'nm' => $GLOBALS['egw']->session->appsession('index',parent::APP),
);
if (!is_array($content['nm']))
{
$content['nm'] = array(
'get_rows' => 'emailadmin.emailadmin_ui.get_rows', // I method/callback to request the data for the rows
'no_filter' => True, // nofilter
'no_filter2' => True, // I disable the 2. filter (params are the same as for filter)
'no_cat' => True, // I disable the cat-selectbox
'lettersearch' => True, // I show a lettersearch
'searchletter' => false, // I0 active letter of the lettersearch or false for [all]
'start' => 0, // IO position in list
'order' => 'ea_order, ea_profile_id', // IO name of the column to sort after (optional for the sortheaders)
'sort' => 'ASC', // IO direction of the sort: 'ASC' or 'DESC'
//'default_cols' => '!comment,ctime', // I columns to use if there's no user or default pref (! as first char uses all but the columns listed)
'csv_fields' => false, // I false=disable csv export, true or unset=enable it with auto-detected fieldnames,
//or array with name=>label or name=>array('label'=>label,'type'=>type) pairs (type is a eT widget-type)
);
}
}
elseif(isset($content['nm']['rows']['delete']))
{
list($profileids) = each($content['nm']['rows']['delete']);
unset($content['nm']['rows']['delete']);
if ($profileids && self::delete($profileids))
{
$content['msg'] = lang('%1 entries deleted.',1);
}
else
{
$content['msg'] = lang('Error deleting entry!');
}
}
elseif(isset($content['delete']))
{
unset($content['delete']);
if (($deleted = self::delete($content['nm']['rows']['selected'])))
{
$content['msg'] = lang('%1 entries deleted.',$deleted);
}
else
{
$content['msg'] = lang('Error deleting entry!');
}
}
if (isset($_GET['msg'])) $msg = $_GET['msg'];
$content['msg'] .= $msg;
/*
if ($content['action'] || $content['nm']['rows'])
{
if ($content['action'])
{
// SOME ACTION AS EDIT, DELETE, ...
$content['msg'] = self::action($content['action'],$content['nm']['rows']['checked']);
unset($content['action']);
}
elseif($content['nm']['rows']['delete'])
{
$content['msg'] = self::action('delete',array_keys($content['nm']['rows']['delete']));
}
unset($content['nm']['rows']);
}
*/
if ($content['AddProfile'])
{
unset($content['AddProfile']);
}
if ($content['button'])
{
if ($content['button'])
{
list($button) = each($content['button']);
unset($content['button']);
}
switch($button)
{
default:
break;
}
}
$sel_options['ea_smtp_type']=parent::getSMTPServerTypes();
$sel_options['ea_imap_type']=parent::getIMAPServerTypes(false);
$sel_options['ea_appname'] =self::getAllowedApps();
// setting for the top of the app, etc.
$content['addJavaScript'] = $addJavaScript;
$content['subtitle'] = $subtitle;
if (!empty($filter)) foreach ($filter as $fk => $fv) $content['nm']['col_filter'][$fk] = $fv;
// seTting the Title of the app
$GLOBALS['egw_info']['flags']['app_header'] = lang('emailadmin');
$tpl->exec('emailadmin.emailadmin_ui.index',$content,$sel_options,$readonlys,array('nm' => $content['nm']));
}
/**
* query the table
*
* reimplemented from so_sql to disable action-buttons based on the acl and make some modification on the data
*
* @param array &$query
* @param array &$rows returned rows/cups
* @param array &$readonlys eg. to disable buttons based on acl
* @param boolean $id_only=false if true only return (via $rows) an array of ids, dont save state to session
* @return int total number of rows matching the selection
*/
function get_rows(&$query_in,&$rows,&$readonlys,$id_only=false)
{
$query = $query_in;
$filteredby = '';
if ($query['searchletter']) // only show rows if the order-criteria starts with the given letter
{
$query['col_filter'][] = (in_array($query['order'],parent::$numericfields) || (is_string($query['order']) && !(strpos($query['order'],',')===false)) ? 'ea_description' : $query['order']).' '.
$GLOBALS['egw']->db->capabilities['case_insensitive_like'].' '.$GLOBALS['egw']->db->quote($query['searchletter'].'%');
if (in_array($query['order'],parent::$numericfields)) $query_in['order'] = $query['order'] = 'ea_description';
$filteredby = $query['order'].' '.lang('starts with').' '.$query['searchletter'];
}
$GLOBALS['egw_info']['flags']['app_header'] = lang('emailadmin').($filteredby? ' - '.$filteredby:'');
$total = parent::get_rows($query,$rows,$readonlys);
return $total;
}
static function getAllowedApps()
{
$applications = array(
'calendar' => $GLOBALS['egw_info']['apps']['calendar']['title'],
'felamimail' => $GLOBALS['egw_info']['apps']['felamimail']['title'],
);
asort($applications);
return $applications = array_merge(array('' => lang('any application')),$applications);
}
static function getIMAPLoginTypes($serverclass='defaultimap')
{
if (empty($serverclass)) $serverclass = 'defaultimap';
//error_log(__METHOD__.' called with:'.$serverclass." with capabilities:".parent::$IMAPServerType[$serverclass]['imapcapabilities']);
$returnval = array(
'standard' => lang('username (standard)'),
'vmailmgr' => lang('username@domainname (Virtual MAIL ManaGeR)'),
'admin' => lang('Username/Password defined by admin'),
'uidNumber' => lang('UserId@domain eg. u1234@domain'),
);
if (strpos($serverclass,'_') === false)
{
include_once(EGW_INCLUDE_ROOT.'/emailadmin/inc/class.'.$serverclass.'.inc.php');
}
if (!empty($serverclass) && stripos(constant($serverclass.'::CAPABILITIES'),'logintypeemail') !== false)
{
$returnval['email'] = lang('use Users eMail-Address (as seen in Useraccount)');
}
return $returnval;
}
function edit($content=null)
{
//$this->editProfile($profileid);
$etpl = new etemplate(parent::APP.'.edit');
if(!is_array($content))
{
$rowfound = false;
$filter = array();
if(is_int(intval($_GET['account_id'])) && !empty($_GET['account_id']))
{
$GLOBALS['egw']->accounts->get_account_name(intval($_GET['account_id']),$lid,$fname,$lname);
if ( intval($_GET['account_id']) < 0 ) {
$groupID = intval($_GET['account_id']);
$content['ea_group'] = $filter['ea_group'] = $groupID;
} else {
$accountID = intval($_GET['account_id']);
$content['ea_user'] = $filter['ea_user'] = $accountID;
}
$content['ea_active'] = 'yes';
$content['ea_imap_login_type'] = 'admin';
$content['ea_description'] = common::display_fullname($lid,$fname,$lname,intval($_GET['account_id']));
}
if (!empty($_GET['profileid']))
{
$profileID = intval($_GET['profileid']);
$filter['ea_profile_id'] = $profileID;
$rowfound = parent::read($filter);
}
else
{
$content['ea_user_defined_accounts'] = "yes";
}
}
else
{
$rowfound = true;
// handle action/submit buttons
if (isset($content['delete']))
{
unset($content['delete']);
$button = 'delete';
}
if (isset($content['cancel']))
{
unset($content['cancel']);
$button = 'cancel';
}
if (isset($content['apply']))
{
unset($content['apply']);
$button = 'apply';
}
if (isset($content['save']))
{
unset($content['save']);
$button = 'save';
}
unset($content['manage_stationery_templates']);
//unset($content['tabs']);
if (!empty($content['smtp_senders_email']))
{
$content['ea_smtp_auth_username'] = $content['ea_smtp_auth_username'].';'.$content['smtp_senders_email'];
unset($content['smtp_senders_email']);
}
$this->data = $content;
switch ($button)
{
case 'delete':
if (($deleted = self::delete($content['ea_profile_id'])))
{
$msg = lang('%1 entries deleted.',$deleted);
}
else
{
$msg = lang('Error deleting entry!');
}
$js = "opener.location.href='".$GLOBALS['egw']->link('/index.php',array(
'menuaction' => parent::APP.'.emailadmin_ui.index',
'msg' => $msg,
))."';";
$js .= 'window.close();';
echo "<html>\n<body>\n<script>\n$js\n</script>\n</body>\n</html>\n";
$GLOBALS['egw']->common->egw_exit();
break;
case 'cancel':
$js .= 'window.close();';
echo "<html>\n<body>\n<script>\n$js\n</script>\n</body>\n</html>\n";
$GLOBALS['egw']->common->egw_exit();
break;
case 'apply':
case 'save':
if ($etpl->validation_errors()) break; // the user need to fix the error, before we can save the entry
//_debug_array($this->data);
if (parent::save() != 0)
{
$msg = lang('Error saving the entry!!!');
$button = '';
}
else
{
$msg = lang('Entry saved');
}
$js = "opener.location.href='".$GLOBALS['egw']->link('/index.php',array(
'menuaction' => parent::APP.'.emailadmin_ui.index',
'msg' => $msg,
))."';";
if ($button == 'save')
{
$js .= 'window.close();';
echo "<html>\n<body>\n<script>\n$js\n</script>\n</body>\n</html>\n";
$GLOBALS['egw']->common->egw_exit();
break;
}
$row;
}
}
if ($rowfound) $content = array_merge($this->data,array());
$preserv['smtpcapabilities'] = $content['smtpcapabilities'] =
constant((!empty($content['ea_smtp_type'])?$content['ea_smtp_type']:'defaultsmtp').'::CAPABILITIES');
$preserv['imapcapabilities'] = $content['imapcapabilities'] =
constant((!empty($content['ea_imap_type'])?$content['ea_imap_type']:'defaultimap').'::CAPABILITIES');
if (!empty($msg)) $content['msg'] = $msg;
list($content['ea_smtp_auth_username'],$content['smtp_senders_email']) = explode(';',$content['ea_smtp_auth_username']);
$preserv['ea_profile_id'] = $content['ea_profile_id'];
//$preserv['ea_stationery_active_templates'] = $content['ea_stationery_active_templates'];
$sel_options['ea_smtp_type']=parent::getSMTPServerTypes();
$sel_options['ea_imap_type']=parent::getIMAPServerTypes(false);
$sel_options['ea_appname'] =self::getAllowedApps();
$sel_options['ea_imap_login_type'] = self::getIMAPLoginTypes($content['ea_imap_type']);
// Stationery settings
$bostationery = new felamimail_bostationery();
$sel_options['ea_stationery_active_templates'] = $bostationery->get_stored_templates();
// setup history
$content['history'] = array(
'id' => $content['ea_profile_id'],
'app' => 'emailadmin'
);
//_debug_array($content);
foreach($this->tracking->field2label as $field => $label) {
$sel_options['status'][$field] = lang($label);
}
/*
$content['stored_templates'] = html::checkbox_multiselect(
'ea_stationery_active_templates',$content['ea_stationery_active_templates']
,$bostationery->get_stored_templates(),true,'',3,true,'width: 100%;');
$content['manage_stationery_templates'] =
html::a_href(
lang('manage stationery templates'),
'/index.php?menuaction=etemplate.editor.edit',
array('name' => 'felamimail.stationery'),
'target="_blank"'
);
*/
//_debug_array($this->data);
return $etpl->exec(parent::APP.'.emailadmin_ui.edit',$content,$sel_options,$readonlys,$preserv,2);
}
function add()
{
$this->edit();
}
function delete($profileid=null)
{
$_profileID = ($profileid ? $profileid : (int)$_GET['profileid']);
if (empty($_profileID)) return 0;
return parent::delete($_profileID);
}
function listProfiles()
{
$GLOBALS['egw']->hooks->register_all_hooks();
self::index();
}
}

View File

@ -0,0 +1,458 @@
<?php
/***************************************************************************\
* EGroupWare - EMailAdmin IMAP via Plesk *
* http://www.egroupware.org *
* Written and (c) 2006 by RalfBecker-AT-outdoor-training.de *
* ------------------------------------------------------------------------- *
* emailadmin plugin for plesk: *
* - tested with Plesk7.5 under Linux, but should work with other plesk *
* versions and Windows too as it uses plesks cli (command line interface) *
* - this plugin ONLY works if you have root access to the webserver !!! *
* - you need to have mail activated for the domain in plesk first *
* - you need to configure the path to plesk's mail.sh or mail.exe cli by *
* editing this file (search for psa_mail_script) for now *
* - to allow the webserver to use the mail cli under Linux you need to *
* install the sudo package and add the following line to your sudoers *
* file using the visudo command as root: *
* wwwrun ALL = NOPASSWD: /usr/local/psa/bin/mail.sh *
* Replace wwwrun with the user the webserver is running as and, if *
* necessary adapt the path to mail.sh. *
* PLEASE NOTE: This allows all webserver users to run the mail.sh script *
* and to change the mail configuration of ALL domains !!! *
* => as with the "LDAP, Postfix & Cyrus" plugin the plesk one creates mail *
* users and manages passwords, aliases, forwards and quota from within *
* eGroupWare - no need to additionally visit the plesk interface anymore *
* ------------------------------------------------------------------------- *
* This program 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; version 2 of the License. *
\***************************************************************************/
/* $Id$ */
include_once(EGW_SERVER_ROOT."/emailadmin/inc/class.defaultimap.inc.php");
class pleskimap extends defaultimap
{
/**
* @var string $psa_mail_script full path to Plesk's mail.sh (Linux including sudo!) or mail.exe (Windows) interface
*/
var $psa_mail_script = '/usr/bin/sudo /usr/local/psa/bin/mail.sh'; // 'C:/psa/bin/mail.exe'
/**
* @var boolean $allways_create_mailbox true = allways create a mailbox on user creation,
* false = only if a local email (no forward) is given. To use felamimail you need a mailbox!
*/
var $allways_create_mailbox = true;
/**
* @var array $create_folders=array('Send','Trash') folders to automatic create and subscribe on account creation
*/
var $create_folders = array('Sent','Trash');
/**
* @var string/boolean $error string with last error-message or false
*/
var $error = false;
/**
* Create a full mailbox or just forward, depending on the given email address
* If email matches the default domain, we create a full mailbox, otherwise we create a forward
*
* @param array $hookValues
* @param string $action='create'
* @return boolean true on success, false otherwise
*/
function addAccount($hookValues,$action='create')
{
//echo "<p>pleskimap::addAccount(".print_r($hookValues,true).")</p>\n";
$defaultDomain = $this->profileData['defaultDomain'] ? $this->profileData['defaultDomain'] :
$GLOBALS['egw_info']['server']['mail_suffix'];
$localEmail = $hookValues['account_lid'].'@'.$defaultDomain;
$aliases = $forwards = array();
// is the given email a local address from our default domain?
if (substr($hookValues['account_email'],-1-strlen($defaultDomain)) != '@'.$defaultDomain)
{
$forwards[] = $hookValues['account_email'];
}
elseif ($hookValues['account_email'] != $localEmail)
{
$aliases[] = $hookValues['account_email'];
}
// add a default alias with Firstname.Lastname
if (!in_array($alias=$hookValues['account_firstname'].'.'.$hookValues['account_lastname'],$aliases) &&
$this->is_email($alias))
{
$aliases[] = $alias;
}
$info = $this->plesk_mail($action,$hookValues['account_lid'],$hookValues['account_passwd'],
$action != 'create' && !$aliases ? null : $aliases,$forwards,$this->allways_create_mailbox);
if (!$info['SUCCESS']) return false;
if ($forwards && !$this->allways_create_mailbox) return true; // no mailbox created, only a forward
// create Sent & Trash mailboxes and subscribe them
if(($mbox = @imap_open ($this->getMailboxString(),$localEmail,$hookValues['account_passwd'])))
{
$list = imap_getmailboxes($mbox, $this->getMailboxString(),'INBOX');
$delimiter = isset($list[0]->delimiter) ? $list[0]->delimiter : '.';
imap_subscribe($mbox,$this->getMailboxString('INBOX'));
foreach($this->create_folders as $folder)
{
$mailBoxName = 'INBOX'.$delimiter.$folder;
if(imap_createmailbox($mbox,imap_utf7_encode('{'.$this->profileData['imapServer'].'}'.$mailBoxName)))
{
imap_subscribe($mbox,$this->getMailboxString($mailBoxName));
}
}
imap_close($mbox);
}
return true;
}
function deleteAccount($hookValues)
{
//echo "<p>pleskimap::deleteAccount(".print_r($hookValues,true).")</p>\n";
return $this->plesk_mail('remove',$hookValues['account_lid']);
}
function updateAccount($hookValues)
{
//echo "<p>pleskimap::updateAccount(".print_r($hookValues,true).")</p>\n";
if($hookValues['account_lid'] != $hookValues['old_loginid'])
{
$this->error = lang("Plesk can't rename users --> request ignored");
return false;
}
return $this->addAccount($hookValues,'update');
}
/**
* Read data from the mail account
*
* @param string/int $accountID
* @return array/boolean with keys mailLocalAddress, mailAlternateAddress, accountStatus, mailRoutingAddress, ... or false if not found
*/
function getUserData($accountID)
{
//echo "<p>pleskimap::getUserData('$accountID')</p>\n";
if (!($info = $this->plesk_mail('info',$accountID))) return false;
//_debug_array($info);
$data = array(
'mailLocalAddress' => $info['Mailname'].'@'.$info['Domain'],
'mailAlternateAddress' => $info['Alias(es)'] ? explode(' ',$info['Alias(es)']) : array(),
'accountStatus' => $info['Mailbox'] == 'true' || $info['Redirect'] == 'true' ? 'active' : 'disabled',
'mailRoutingAddress' => $info['Redirect address'] ? explode(' ',$info['Redirect address']) : false,
'deliveryMode' => $info['Redirect'] == 'true' && $info['Mailbox'] == 'false' ? 'forwardOnly' : '',
// 'qmailDotMode' => false,
// 'deliveryProgramPath' => false,
'quotaLimit' => $info['Mbox quota'] == 'Unlimited' ? '' : $info['Mbox quota']/1024.0,
);
//_debug_array($data);
return $data;
}
/**
* Save mail account data
*
* @param string/int $accountID
* @param array $accountData with keys mailLocalAddress, mailAlternateAddress, accountStatus, mailRoutingAddress, ...
* @return boolean true on success, false otherwise
*/
function saveUserData($accountID, $accountData)
{
//echo "<p>pleskimap::saveUserData('$accountID',".print_r($accountData,true).")</p>\n";
// not used: $accountData['accountStatus']=='active', $accountData['qmailDotMode'], $accountData['deliveryProgramPath']
$info = $this->plesk_mail('update',$accountID,null,
$accountData['mailAlternateAddress'] ? $accountData['mailAlternateAddress'] : array(),
$accountData['mailRoutingAddress'] ? $accountData['mailRoutingAddress'] : array(),
empty($accountData['deliveryMode']),
1024*(float)$accountData['quotaLimit'],$accountData['accountStatus']=='active');
if (!$info['SUCCSESS'])
{
if ($info) $this->error = implode(', ',$info);
return false;
}
return true;
}
/**
* call plesk's mail command line interface
*
* Usage: mail.sh command <mail_name> [options]
*
* Available commands:
* --create or -c <mail>@<domain> creates mail account
* --update or -u <mail>@<domain> updates mail account parameters
* --remove or -r <mail>@<domain> removes mail account
* --info or -i <mail>@<domain> retrieves mail account information
* --on <domain> enables mail service for domain
* --off <domain> disables mail service for domain
* --help or -h displays this help page
*
* Available options:
* -cp_access <true|false> enables control panel access (default:
* true)
* -mailbox <true|false> creates/removes mailbox
* -passwd <passwd> sets mailbox password [see the note
* below for details]
* -boxpass <passwd> obsolete alias for option "passwd"
* (this option may be removed from
* future releases)
* -passwd_type <plain|crypt> specifies the type of mailbox
* password, ignored if no password
* specified [see the note below for
* details]
* -mbox_quota <KB> limits the mailbox quota to the
* desired amount
* -boxquota <KB> obsolete alias for option "mbox_quota"
* (this option may be removed from
* future releases)
* -aliases <add|del>:<name1[,name2]> adds or deletes mail
* alias(es) to/from mailname
* -mgroups <add|del>:<list1[,list2]> adds or removes mail name
* to/from mail group
* -redirect <true|false> switches mail redirect on/off
* -rediraddr <addr> sets redirect to address (required if
* redirect is enabled)
* -group <true|false> switches mail group on/off
* -groupmem <add|del>:<addr1[,addr2]> adds/removes address(-es)
* to/from mail group
* -repo <add|del>:<file1[,file2]> adds/removes file to/from
* attachments repository
* [deprecated, use
* autoresponder.sh]
* -autorsp <true|false> switches all autoresponders on/off
* [deprecated, use autoresponder.sh]
* -autoname <name> autoresponder name (required for all
* autoresponder options) [deprecated,
* use autoresponder.sh]
* -autostatus <true|false> switches on/off autoresponder with
* specified name (true) [deprecated,
* use autoresponder.sh]
* -autoreq <subj|body>:<string> or <always> defines the condition
* for the autoresponder
* to be activated
* whether the
* specified pattern is
* encountered in the
* subject or body, or
* to respond always
* [deprecated, use
* autoresponder.sh]
* -autosubj <original|string> the subject line to be set up into
* autoresponder ("Re: <incoming
* subject>") or a custom string
* [deprecated, use autoresponder.sh]
* -auto_replyto <string> return address that will be set up
* into the autoresponder's messages
* [deprecated, use autoresponder.sh]
* -autotext <string> autoresponder message text
* [deprecated, use autoresponder.sh]
* -autoatch <add|del>:<file1[,file2]> adds/removes autoresponder
* attachment files
* [deprecated, use
* autoresponder.sh]
* -autofrq <number> defines the maximum number of
* responses to a unique e-mail address
* per day [deprecated, use
* autoresponder.sh]
* -autostor <number> defines the number of unique addresses
* to be stored for autoresponder
* [deprecated, use autoresponder.sh]
* -autored <addr> defines the e-mail address to forward
* all incoming mail to [deprecated, use
* autoresponder.sh]
* -multiple-sessions <true|false> allow multiple sessions
*
* Note:
* For security reasons, you can transfer not encrypted passwords via environment
* variable PSA_PASSWORD, by specifying the empty value in the command line for
* the passwd arguments (like " -passwd ''") and setting the password value in
* the PSA_PASSWORD variable.
* Similarly, you can transfer the crypted password via the environment variable
* PSA_CRYPTED_PASSWORD, by specifying the empty value in the command line for
* the passwd arguments (like " -passwd ''") and by setting the password value in
* the PSA_CRYPTED_PASSWORD variable.
*
* Version: psa v7.5.0_build75041208.07 os_SuSE 9.1
*
* mail.sh --info account@domain.com
* Mailname: account
* Domain: domain.com
* Alias(es): Firstname.Lastname
* CP Access: true
* Mailbox: true
* Password: geheim
* Password type: plain
* Mbox quota: Unlimited
* Redirect: false
* Mailgroup: false
* File repository: Empty
* Autoresponder: false
* Antivirus mail
* checking: Disabled
*
* SUCCESS: Gathering information for 'account@domain.com' complete
*
* mail.sh --info bogus@domain.com
* An error occured during getting mailname information: Mailname 'bogus@domain.com' doesn't exists
*
* @param string $action 'info', 'create', 'update' or 'remove'
* @param string/int $account account_lid or numerical account_id
* @param string $password=null string with password or null to not change
* @param array $aliases=null array with aliases or null to not change the aliases
* @param array $forwards=null array of email address to forward or null to not change
* @param boolean $keepLocalCopy=null if forwarding keep a local copy or not, null = dont change
* @param int $quota_kb=null mailbox quota in kb
* @return boolean/array array with returned values or false otherwise, error-message in $this->error
*/
function plesk_mail($action,$account,$password=null,$aliases=null,$forwards=null,$keepLocalCopy=null,$quota_kb=null)
{
//echo "<p>smtpplesk::plesk_mail('$action','$account','$password',".print_r($aliases,true).",".print_r($forwards,true).",".(is_null($keepLocalCopy)?'':(int)$keepLocalCopy).",$quota_kb)</p>\n";
$this->error = false;
if (is_numeric($account))
{
$account_lid = $GLOBALS['egw']->accounts->id2name($account);
}
elseif ($GLOBALS['egw']->accounts->name2id($account))
{
$account_lid = $account;
}
if (!$account_lid)
{
$this->error = lang("Account '%1' not found !!!",$account);
return false;
}
if (!in_array($action,array('info','create','update','remove')))
{
$this->error = lang("Unsupported action '%1' !!!",$action);
return false;
}
$defaultDomain = $this->profileData['defaultDomain'] ? $this->profileData['defaultDomain'] :
$GLOBALS['egw_info']['server']['mail_suffix'];
if ($action == 'update' && !($info = $this->plesk_mail('info',$account)))
{
$action = 'create'; // mail-account does not yet exist --> create it
}
$localEmail = $account_lid.'@'.$defaultDomain;
$script = $this->psa_mail_script . ' --'.$action . ' ' . $localEmail;
if ($action != 'info')
{
// invalidate our cache
$GLOBALS['egw']->session->appsession('plesk-email-'.$account_lid,'emailadmin',false);
// we dont set passwords shorten then 5 chars, as it only give an error in plesk
if (!is_null($password) && $password)
{
if (strlen($password) < 5 || strpos($password,$account_lid) !== false)
{
$this->error = lang('Plesk requires passwords to have at least 5 characters and not contain the account-name --> password NOT set!!!');
}
else
{
$script .= ' -passwd \''.str_replace('\'','\\\'',$password).'\' -passwd_type plain';
}
}
if ($action == 'create' || !is_null($forwards) || !is_null($keepLocalCopy))
{
$script .= ' -mailbox '.(!$forwards || $keepLocalCopy ? 'true' : 'false');
}
// plesk allows only one forwarding address, we ignore everything but the first
if (!is_null($forwards) && (!$forwards || $this->is_email($forwards[0])))
{
$script .= ' -redirect '.(!$forwards ? 'false' : 'true -rediraddr '.$forwards[0]);
}
if ($action == 'update')
{
if (!is_null($aliases))
{
$existing_aliases = explode(' ',$info['Alias(es)']); // without domain!
$delete_aliases = array();
foreach($existing_aliases as $alias)
{
if ($alias && !in_array($alias,$aliases) && !in_array($alias.'@'.$defaultDomain,$aliases))
{
$delete_aliases[] = $alias;
}
}
if ($delete_aliases)
{
$script .= ' -aliases del:'.implode(',',$delete_aliases);
}
foreach($aliases as $n => $alias)
{
if (in_array($alias,$existing_aliases) || in_array(str_replace('@'.$defaultDomain,'',$alias),$existing_aliases))
{
unset($aliases[$n]); // no change
}
}
}
}
if (!is_null($aliases) && count($aliases))
{
foreach($aliases as $alias)
{
if (!$this->is_email($alias)) return false; // security precausion
}
$script .= ' -aliases add:'.str_replace('@'.$defaultDomain,'',implode(',',$aliases));
}
if (!is_null($quota_kb) && (int)$quota_kb)
{
$script .= ' -mbox_quota '.(int)$quota_kb;
}
}
//echo "<p>$script</p>\n";
if (!($fp = popen($script.' 2>&1','r')))
{
$this->error = lang("Plesk mail script '%1' not found !!!",$this->psa_mail_script);
return false;
}
$values = array();
while(!feof($fp))
{
$line = trim(fgets($fp));
list($name,$value) = preg_split('/: */',$line,2);
if (!is_null($value) && strpos($name,'An error occured') === false && $name)
{
$values[$name] = $value;
}
elseif ($line)
{
$values[] = $line;
}
}
pclose($fp);
if (!$values['SUCCESS'])
{
$this->error = implode(', ',$values);
return false;
}
return $values;
}
/**
* checks for valid email addresse (local mail address dont need a domain!)
*
* Important as we run shell scripts with the address and one could try to run arbitrary commands this way!!!
* We only allow letters a-z, numbers and the following other chars: _ . - @
*
* @return boolean
*/
function is_email($email)
{
return preg_match('/^[@a-z0-9_.-]+$/i',$email);
}
}

View File

@ -0,0 +1,92 @@
<?php
/**
* EGroupware EMailAdmin: Postfix with dbmailUser schema
*
* @link http://www.egroupware.org
* @package emailadmin
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2010 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
/**
* Postfix with dbmailUser schema
*/
class postfixdbmailuser extends emailadmin_smtp_ldap
//class emailadmin_smtp_dbmailuser extends emailadmin_smtp_ldap
{
/**
* Capabilities of this class (pipe-separated): default, forward
*/
const CAPABILITIES = 'default|forward';
/**
* Name of schema, has to be the correct case!
*/
const SCHEMA = 'dbmailUser';
/**
* Attribute to enable mail for an account, OR false if existence of ALIAS_ATTR is enough for mail delivery
*/
const MAIL_ENABLE_ATTR = 'accountstatus';
/**
* Attribute value to enable mail for an account, OR false if existense of attribute is enough to enable account
*/
const MAIL_ENABLED = 'active';
/**
* Attribute for aliases OR false to use mail
*/
const ALIAS_ATTR = 'mailalternateaddress';
/**
* Primary mail address required as an alias too: true or false
*/
const REQUIRE_MAIL_AS_ALIAS=false;
/**
* Attribute for forwards OR false if not possible
*/
const FORWARD_ATTR = 'mailforwardingaddress';
/**
* Attribute to only forward mail, OR false if not available
*/
const FORWARD_ONLY_ATTR = 'deliverymode';
/**
* Attribute value to only forward mail
*/
const FORWARD_ONLY = 'forwardOnly';
/**
* Attribute for mailbox, to which mail gets delivered OR false if not supported
*/
//const MAILBOX_ATTR = 'deliveryprogrampath';
//const MAILBOX_ATTR = 'dbmailuid';
const MAILBOX_ATTR = false;
/**
* Log all LDAP writes / actions to error_log
*/
var $debug = false;
/**
* LDAP schema configuration
*
* Parent can NOT use constants direct as we have no late static binding in currenlty required PHP 5.2
*
* @var array
*/
protected $config = array(
'schema' => self::SCHEMA,
'mail_enable_attr' => self::MAIL_ENABLE_ATTR,
'mail_enabled' => self::MAIL_ENABLED,
'alias_attr' => self::ALIAS_ATTR,
'require_mail_as_alias' => self::REQUIRE_MAIL_AS_ALIAS,
'forward_attr' => self::FORWARD_ATTR,
'forward_only_attr' => self::FORWARD_ONLY_ATTR,
'forward_only' => self::FORWARD_ONLY,
'mailbox_attr' => self::MAILBOX_ATTR,
);
}

View File

@ -0,0 +1,16 @@
<?php
/**
* eGroupWare EmailAdmin - old Postfix with inetOrgPerson schema
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package emailadmin
* @link http://www.egroupware.org
* @version $Id$
*/
/**
* @deprecated use emailadmin_smtp_ldap class
*/
class postfixinetorgperson extends emailadmin_smtp_ldap
{
}

View File

@ -0,0 +1,90 @@
<?php
/**
* EGroupware EMailAdmin: Postfix with old qmailUser schema
*
* @link http://www.egroupware.org
* @package emailadmin
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @copyright (c) 2010 by Ralf Becker <RalfBecker-AT-outdoor-training.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
/**
* Postfix with old qmailUser schema
*/
class postfixldap extends emailadmin_smtp_ldap
//class emailadmin_smtp_qmailuser extends emailadmin_smtp_ldap
{
/**
* Capabilities of this class (pipe-separated): default, forward
*/
const CAPABILITIES = 'default|forward';
/**
* Name of schema, has to be in the right case!
*/
const SCHEMA = 'qmailUser';
/**
* Attribute to enable mail for an account, OR false if existence of ALIAS_ATTR is enough for mail delivery
*/
const MAIL_ENABLE_ATTR = 'accountstatus';
/**
* Attribute value to enable mail for an account, OR false if existense of attribute is enough to enable account
*/
const MAIL_ENABLED = 'active';
/**
* Attribute for aliases OR false to use mail
*/
const ALIAS_ATTR = 'mailalternateaddress';
/**
* Primary mail address required as an alias too: true or false
*/
const REQUIRE_MAIL_AS_ALIAS=false;
/**
* Attribute for forwards OR false if not possible
*/
const FORWARD_ATTR = 'mailforwardingaddress';
/**
* Attribute to only forward mail, OR false if not available
*/
const FORWARD_ONLY_ATTR = 'deliverymode';
/**
* Attribute value to only forward mail
*/
const FORWARD_ONLY = 'forwardOnly';
/**
* Attribute for mailbox, to which mail gets delivered OR false if not supported
*/
const MAILBOX_ATTR = 'mailmessagestore';
/**
* Log all LDAP writes / actions to error_log
*/
var $debug = false;
/**
* LDAP schema configuration
*
* Parent can NOT use constants direct as we have no late static binding in currenlty required PHP 5.2
*
* @var array
*/
protected $config = array(
'schema' => self::SCHEMA,
'mail_enable_attr' => self::MAIL_ENABLE_ATTR,
'mail_enabled' => self::MAIL_ENABLED,
'alias_attr' => self::ALIAS_ATTR,
'require_mail_as_alias' => self::REQUIRE_MAIL_AS_ALIAS,
'forward_attr' => self::FORWARD_ATTR,
'forward_only_attr' => self::FORWARD_ONLY_ATTR,
'forward_only' => self::FORWARD_ONLY,
'mailbox_attr' => self::MAILBOX_ATTR,
);
}

View File

@ -0,0 +1,98 @@
<?php
/***************************************************************************\
* EGroupWare - EMailAdmin SMTP via Plesk *
* http://www.egroupware.org *
* Written and (c) 2006 by RalfBecker-AT-outdoor-training.de *
* ------------------------------------------------------------------------- *
* emailadmin plugin for plesk: *
* - tested with Plesk7.5 under Linux, but should work with other plesk *
* versions and Windows too as it uses plesks cli (command line interface) *
* - this plugin ONLY works if you have root access to the webserver !!! *
* - configuration instructions are in the class.pleskimap.inc.php *
* => as with the "LDAP, Postfix & Cyrus" plugin the plesk one creates mail *
* users and manages passwords, aliases, forwards and quota from within *
* eGroupWare - no need to additionally visit the plesk interface anymore *
* ------------------------------------------------------------------------- *
* This program 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. *
\***************************************************************************/
/* $Id$ */
include_once(EGW_SERVER_ROOT."/emailadmin/inc/class.defaultsmtp.inc.php");
include_once(EGW_SERVER_ROOT."/emailadmin/inc/class.pleskimap.inc.php");
class smtpplesk extends defaultsmtp
{
/**
* Capabilities of this class (pipe-separated): default, forward
*/
const CAPABILITIES = 'default|forward';
/**
* @var string/boolean $error string with last error-message or false
*/
var $error = false;
/**
* call plesk's mail command line interface
*
* The actual code is in the pleskimap class, to not double it.
*
* @param string $action 'info', 'create', 'update' or 'remove'
* @param string/int $account account_lid or numerical account_id
* @param string $password=null string with password or null to not change
* @param array $aliases=null array with aliases or null to not change the aliases
* @param string/boolean $forward=null email address to forward, false to not forward or null to not change
* @param boolean $keepLocalCopy=null if forwarding keep a local copy or not, null = dont change
* @param int $quota_kb=null mailbox quota in kb
* @return boolean/array array with returned values or false otherwise, error-message in $this->error
*/
function plesk_mail($action,$account,$password=null,$aliases=null,$forward=null,$keepLocalCopy=null,$quota_kb=null)
{
static $plesk;
if (!is_object($plesk))
{
$plesk = new pleskimap(null);
$this->error =& $plesk->error;
}
return $plesk->plesk_mail($action,$account,$password,$aliases,$forward,$keepLocalCopy,$quota_kb);
}
function addAccount($hookValues)
{
// account is added via pleskimap::addAccount();
}
/**
* Returns the email address of the current user
*
* @param string/int $accountName account-id or -lis (name)
* @return array of arrays with keys name, address and type={default|alternate}
*/
function getAccountEmailAddress()
{
//echo "<p>smtpplesk::getAccountEmailAddress()</p>\n";
return array(array(
'name' => $GLOBALS['egw_info']['user']['fullname'],
'address' => $GLOBALS['egw_info']['user']['email'],
'type' => 'default'
));
}
/**
* Save SMTP forwarding address
*
* @param int $accountID user-id
* @param string $forwardingAddress email to forward to
* @param string $keepLocalCopy 'yes' or something else
*/
function saveSMTPForwarding($accountID, $forwardingAddress, $keepLocalCopy)
{
//echo "<p>smtpplesk::saveSMTPForwarding('$accountID','$forwardingAddress','$keepLocalCopy')</p>\n";
return $this->plesk_mail('update',$accountID,null,null,array($forwardingAddress),$keepLocalCopy == 'yes');
}
}

View File

@ -0,0 +1,219 @@
<?php
/**
* EGroupware EMailAdmin: Edit user account
*
* @link http://www.stylite.de
* @package emailadmin
* @author Klaus Leithoff <kl@stylite.de>
* @author Lars Kneschke
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
/**
* Edit user account
*/
class uiuserdata
{
var $public_functions = array
(
'editUserData' => True,
'saveUserData' => True
);
/**
* @var Template
*/
var $t;
/**
* @var emailadmin_bo
*/
var $boemailadmin;
/**
* Constructor
*/
function __construct()
{
$this->t = new Template(EGW_APP_TPL);
$this->boemailadmin = new emailadmin_bo();
}
function display_app_header()
{
$GLOBALS['egw']->js->validate_file('jscode','editUserdata','emailadmin');
$GLOBALS['egw_info']['flags']['include_xajax'] = True;
$GLOBALS['egw']->common->egw_header();
echo parse_navbar();
}
function editUserData($_useCache='0')
{
$accountID = $_GET['account_id'];
$GLOBALS['account_id'] = $accountID;
$this->display_app_header();
$this->translate();
$this->t->set_file(array("editUserData" => "edituserdata.tpl"));
$this->t->set_block('editUserData','form','form');
$this->t->set_block('editUserData','link_row','link_row');
$this->t->set_var("th_bg",$GLOBALS['egw_info']["theme"]["th_bg"]);
$this->t->set_var("tr_color1",$GLOBALS['egw_info']["theme"]["row_on"]);
$this->t->set_var("tr_color2",$GLOBALS['egw_info']["theme"]["row_off"]);
$this->t->set_var("lang_email_config",lang("edit email settings"));
$this->t->set_var("lang_emailAddress",lang("email address"));
$this->t->set_var("lang_emailaccount_active",lang("email account active"));
$this->t->set_var("lang_mailAlternateAddress",lang("alternate email address"));
$this->t->set_var("lang_mailRoutingAddress",lang("forward email's to"));
$this->t->set_var("lang_forward_also_to",lang("forward also to"));
$this->t->set_var("lang_button",lang("save"));
$this->t->set_var("lang_deliver_extern",lang("deliver extern"));
$this->t->set_var("lang_deliver_extern",lang("deliver extern"));
$this->t->set_var("lang_edit_email_settings",lang("edit email settings"));
$this->t->set_var("lang_ready",lang("Done"));
$this->t->set_var("link_back",$GLOBALS['egw']->link('/admin/accounts.php'));
$linkData = array
(
'menuaction' => 'emailadmin.uiuserdata.saveUserData',
'account_id' => $accountID
);
$this->t->set_var("form_action", $GLOBALS['egw']->link('/index.php',$linkData));
$this->t->set_var('url_image_add',$GLOBALS['egw']->common->image('phpgwapi','new'));
$this->t->set_var('url_image_edit',$GLOBALS['egw']->common->image('phpgwapi','edit'));
$this->t->set_var('url_image_delete',$GLOBALS['egw']->common->image('phpgwapi','delete'));
// only when we show a existing user
if($userData = $this->boemailadmin->getUserData($accountID)) {
$addresses = array();
foreach((array)$userData['mailAlternateAddress'] as $data) {
$addresses[$data] = $data;
}
$this->t->set_var('selectbox_mailAlternateAddress', html::select(
'mailAlternateAddress',
'',
$addresses,
true,
"style='width: 100%;' id='mailAlternateAddress'",
5)
);
$addresses = array();
foreach((array)$userData['mailForwardingAddress'] as $data) {
$addresses[$data] = $data;
}
$this->t->set_var('selectbox_mailRoutingAddress', html::select(
'mailForwardingAddress',
'',
$addresses,
true,
"style='width: 100%;' id='mailRoutingAddress'",
5)
);
$this->t->set_var("quotaLimit",$userData["quotaLimit"]);
$this->t->set_var("mailLocalAddress",$userData["mailLocalAddress"]);
$this->t->set_var("mailAlternateAddress",'');
$this->t->set_var("mailRoutingAddress",'');
$this->t->set_var("selected_".$userData["qmailDotMode"],'selected');
$this->t->set_var("deliveryProgramPath",$userData["deliveryProgramPath"]);
$this->t->set_var("uid",rawurlencode($_accountData["dn"]));
if ($userData["accountStatus"] == "active")
$this->t->set_var("account_checked","checked");
if ($userData["deliveryMode"] == "forwardOnly")
$this->t->set_var("forwardOnly_checked","checked");
if ($_accountData["deliverExtern"] == "active")
$this->t->set_var("deliver_checked","checked");
} else {
$this->t->set_var("mailLocalAddress",'');
$this->t->set_var("mailAlternateAddress",'');
$this->t->set_var("mailRoutingAddress",'');
$this->t->set_var("options_mailAlternateAddress",lang('no alternate email address'));
$this->t->set_var("options_mailRoutingAddress",lang('no forwarding email address'));
$this->t->set_var("account_checked",'');
$this->t->set_var("forwardOnly_checked",'');
$this->t->set_var('selectbox_mailAlternateAddress', html::select(
'mailAlternateAddress',
'',
array(),
true,
"style='width: 100%;' id='mailAlternateAddress'",
5)
);
$this->t->set_var('selectbox_mailRoutingAddress', html::select(
'mailForwardingAddress',
'',
array(),
true,
"style='width: 100%;' id='mailRoutingAddress'",
5)
);
$this->t->set_var('quotaLimit','');
}
// create the menu on the left, if needed
$menuClass =& CreateObject('admin.uimenuclass');
$this->t->set_var('rows',$menuClass->createHTMLCode('edit_user'));
$this->t->pparse("out","form");
}
function saveUserData()
{
if($_POST["accountStatus"] == "on") {
$accountStatus = "active";
}
if($_POST["forwardOnly"] == "on") {
$deliveryMode = "forwardOnly";
}
$formData = array (
'mailLocalAddress' => $_POST["mailLocalAddress"],
'mailAlternateAddress' => $_POST["mailAlternateAddress"],
'mailForwardingAddress' => $_POST["mailForwardingAddress"],
'quotaLimit' => $_POST["quotaLimit"],
'qmailDotMode' => $_POST["qmailDotMode"],
'deliveryProgramPath' => $_POST["deliveryProgramPath"],
'accountStatus' => $accountStatus,
'deliveryMode' => $deliveryMode
);
$this->boemailadmin->saveUserData($_GET['account_id'], $formData);
// read date fresh from ldap storage
$this->editUserData();
}
function translate()
{
$this->t->set_var('th_bg',$GLOBALS['egw_info']['theme']['th_bg']);
$this->t->set_var('lang_add',lang('add'));
$this->t->set_var('lang_done',lang('Done'));
$this->t->set_var('lang_remove',lang('remove'));
$this->t->set_var('lang_remove',lang('remove'));
$this->t->set_var('lang_advanced_options',lang('advanced options'));
$this->t->set_var('lang_qmaildotmode',lang('qmaildotmode'));
$this->t->set_var('lang_default',lang('default'));
$this->t->set_var('lang_quota_settings',lang('quota settings'));
$this->t->set_var('lang_qoutainmbyte',lang('qouta size in MByte'));
$this->t->set_var('lang_inmbyte',lang('in MByte'));
$this->t->set_var('lang_0forunlimited',lang('leave empty for no quota'));
$this->t->set_var('lang_forward_only',lang('forward only'));
$this->t->set_var('lang_enter_new_address',lang('Add new email address:'));
$this->t->set_var('lang_update_current_address',lang('Update current email address:'));
}
}

13
emailadmin/index.php Normal file
View File

@ -0,0 +1,13 @@
<?php
/***************************************************************************\
* EGroupWare - EMailAdmin
* @link http://www.egroupware.org
* @package emailadmin
* @author Klaus Leithoff <kl-AT-stylite.de>
* @copyright (c) 2009-10 by Klaus Leithoff <kl-AT-stylite.de>
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
\***************************************************************************/
header('Location: ../index.php?menuaction=emailadmin.emailadmin_ui.index'.
(isset($_GET['sessionid']) ? '&sessionid='.$_GET['sessionid'].'&kp3='.$_GET['kp3'] : ''));

View File

@ -0,0 +1,42 @@
var tab = new Tabs(5,'activetab','inactivetab','tab','tabcontent','','','tabpage');
var smtp = new Tabs(5,'activetab','inactivetab','smtp','smtpcontent','smtpselector','','');
var imap = new Tabs(6,'activetab','inactivetab','imap','imapcontent','imapselector','','');
function initAll() {
tab.init();
smtp.init();
imap.init();
var imapType = document.getElementsByName("imapsettings[imapType]")[0];
var v=imapType.value; imap.display(imapType.value); imapType.value=v;
onchange_imapsettings(v, 'imapLoginType');
}
function ea_setIMAPDefaults(_imapType) {
var currentInput = document.getElementsByName("imapsettings[" + _imapType + "][imapPort]")[0];
onchange_imapsettings(_imapType, 'imapLoginType');
if(_imapType > 1) {
// imap
if(currentInput.value == '110') {
currentInput.value = '143';
}
} else {
// pop3
if(currentInput.value == '143') {
currentInput.value = '110';
}
}
}
function onchange_imapsettings(_imapType,_varname) {
var currentAuthType = document.getElementsByName("imapsettings[" + _imapType + "][" + _varname + "]")[0];
var imapuser = document.getElementsByName("imapsettings[" + _imapType + "][imapAuthUsername]")[0];
var imappw = document.getElementsByName("imapsettings[" + _imapType + "][imapAuthPassword]")[0];
if (currentAuthType.value == "admin") {
imapuser.disabled = false;
imappw.disabled = false;
} else {
imapuser.disabled=true;
imappw.disabled=true;
}
}

View File

@ -0,0 +1,59 @@
function addRow(_selectBoxName, _prompt) {
result = prompt(_prompt, '');
if((result == '') || (result == null)) {
return false;
}
var newOption = new Option(result, result);
selectBox = document.getElementById(_selectBoxName);
var length = selectBox.length;
selectBox.options[length] = newOption;
selectBox.selectedIndex = length;
}
function editRow(_selectBoxName, _prompt) {
selectBox = document.getElementById(_selectBoxName);
selectedItem = selectBox.selectedIndex;
if(selectedItem != null && selectedItem != -1) {
value = selectBox.options[selectedItem].text;
result = prompt(_prompt, value);
if((result == '') || (result == null)) {
return false;
}
var newOption = new Option(result, result);
selectBox.options[selectedItem] = newOption;
selectBox.selectedIndex = selectedItem;
}
}
function removeRow(_selectBoxName) {
selectBox = document.getElementById(_selectBoxName);
selectedItem = selectBox.selectedIndex;
if(selectedItem != null) {
selectBox.options[selectedItem] = null;
}
selectedItem--;
if(selectedItem >= 0) {
selectBox.selectedIndex = selectedItem;
} else if (selectBox.length > 0) {
selectBox.selectedIndex = 0;
}
}
function selectAllOptions(_selectBoxName) {
selectBox = document.getElementById(_selectBoxName);
for(var i=0;i<selectBox.length;i++) {
selectBox[i].selected=true;
}
}

View File

@ -0,0 +1,56 @@
function getOrder(tableID) {
order = '';
table = document.getElementById(tableID);
inputElements = table.getElementsByTagName('tr');
for(i=0; i<inputElements.length; i++)
{
//alert(inputElements[i].value);
if(i>0)
order = order + ',';
order = order + inputElements[i].id;
}
return order;
}
function moveUp(node) {
// get the row node
thisRow = node.parentNode.parentNode;
if(thisRow.previousSibling)
{
currentNode = thisRow.previousSibling;
while(currentNode.nodeType != 1)
{
if(!currentNode.previousSibling)
return;
currentNode = currentNode.previousSibling;
}
thisRow.parentNode.insertBefore(thisRow,currentNode);
//getOrder('tabel1');
}
}
function moveDown(node) {
// get the row node
thisRow = node.parentNode.parentNode;
if(thisRow.nextSibling)
{
currentNode = thisRow.nextSibling;
while(currentNode.nodeType != 1)
{
if(!currentNode.nextSibling)
return;
currentNode = currentNode.nextSibling;
}
thisRow.parentNode.insertBefore(currentNode,thisRow);
//getOrder('tabel1');
}
}
function saveOrder()
{
xajax_doXMLHTTP("emailadmin.ajaxemailadmin.setOrder", getOrder('nextMatchBody'));
}

View File

@ -0,0 +1,68 @@
add profile emailadmin ca Afegir perfil
admin dn emailadmin ca dn del administrador
admin password emailadmin ca Contrasenya del administrador
admin username emailadmin ca Mom d'usuari del administrador
advanced options emailadmin ca Opcions avançades
alternate email address emailadmin ca Adreça de correu alternativa
cyrus imap server emailadmin ca Servidor IMAP Cyrus
cyrus imap server administration emailadmin ca Administració del servidor IMAP Cyrus
default emailadmin ca predeterminada
deliver extern emailadmin ca entrega externa
do you really want to delete this profile emailadmin ca Realmente voleu esborrar aquest perfil?
domainname emailadmin ca Nom del domini
edit email settings emailadmin ca Editar configuració del compte
email account active emailadmin ca Compte de correu electrònic actiu
email address emailadmin ca Adreça de correu electrònic
enable cyrus imap server administration emailadmin ca activar administració del servidor Cyrus IMAP
enable sieve emailadmin ca Activar Sieve
enter your default mail domain (from: user@domain) emailadmin ca Entreu el domini predeterminat (de usuari@domini)
forward also to emailadmin ca Reenviar també a
forward email's to emailadmin ca Reenviar correus a
forward only emailadmin ca Només reenviar
imap admin password admin ca Contrasenya de l'administrador IMAP
imap admin user admin ca Usuari administrador IMAP
imap c-client version < 2001 emailadmin ca Versió C-Client IMAP < 2001
imap server hostname or ip address emailadmin ca Servidor IMAP o adreça IP
imap server logintyp emailadmin ca Tipus de sessió del servidor IMAP
imap server port emailadmin ca Port del servidor IMAP
imap/pop3 server name emailadmin ca Nom del servidor POP/IMAP
in mbyte emailadmin ca en MBytes
ldap basedn emailadmin ca basedn per a LDAP
ldap server emailadmin ca Aervidor LDAP
ldap server accounts dn emailadmin ca Comptes DN del servidor LDAP
ldap server admin dn emailadmin ca Administrador DN del servidor LDAP
ldap server admin password emailadmin ca Contrasenya del administrador del servidor LDAP
ldap server hostname or ip address emailadmin ca Nom del servidor LDAP o adreça IP
ldap settings emailadmin ca Configuració LDAP
leave empty for no quota emailadmin ca Deixar en blanc per a no posar quota
mail settings admin ca Configuració del correu
name of organisation emailadmin ca Nom de l'organització
no alternate email address emailadmin ca sense adreça de correu alternativa
no forwarding email address emailadmin ca sense adreça de correu per a reenviar
pop3 server hostname or ip address emailadmin ca Nom del servidor POP3 o adreça IP
pop3 server port emailadmin ca Port del servidor POP3
postfix with ldap emailadmin ca Postfix amb LDAP
profile list emailadmin ca Llista de perfils
profile name emailadmin ca Nom del perfil
qmaildotmode emailadmin ca Modus de punt de qmail
qouta size in mbyte emailadmin ca Mida de la quota en MBytes
quota settings emailadmin ca Configuració de les quotas
remove emailadmin ca Esborrar
select type of imap/pop3 server emailadmin ca Seleccioneu el tipus de servidor IMAP/POP3
select type of smtp server emailadmin ca Seleccioneu el tipus de servidor SMTP
sieve server hostname or ip address emailadmin ca Nom del servidor Sieve o adreça IP
sieve server port emailadmin ca Port del servidor Sieve
sieve settings emailadmin ca Configuració de Sieve
smtp server name emailadmin ca Nom del servidor SMTP
smtp-server hostname or ip address emailadmin ca Nom del servidor SMTP o adreça IP
smtp-server port emailadmin ca Port del servidor SMTP
standard emailadmin ca Estàndar
standard imap server emailadmin ca Servidor IMAP estàndar
standard pop3 server emailadmin ca Servidor POP3 estàndar
standard smtp-server emailadmin ca Servidor SMTP estàndar
use ldap defaults emailadmin ca Usar les opcions predeterminades per LDAP
use smtp auth emailadmin ca Usar identificació SMTP
use tls authentication emailadmin ca Usar identificació TLS
use tls encryption emailadmin ca Usar xifrat TLS
users can define their own emailaccounts emailadmin ca Els usuaris poden definir els seus propis comptes de correu
virtual mail manager emailadmin ca Gestor de correu virtual

143
emailadmin/lang/egw_cs.lang Normal file
View File

@ -0,0 +1,143 @@
account '%1' not found !!! emailadmin cs Účet '%1' nebyl nalezen !!!
active templates emailadmin cs Aktivní šablony
add new email address: emailadmin cs Přidat novou e-mailovou adresu:
add profile emailadmin cs Přidat profil
admin dn emailadmin cs Dn (distiguished name) administrátora
admin password emailadmin cs Heslo administrátora
admin username emailadmin cs Uživatelské jméno administrátora
advanced options emailadmin cs Rozšířené volby
alternate email address emailadmin cs Alternativní e-mailová adresa
any application emailadmin cs Kterákoli aplikace
any group emailadmin cs Kterákoli skupina
any user emailadmin cs Kterýkoli uživatel
back to admin/grouplist emailadmin cs Zpět na Administrátor/Skupiny uživatelů
back to admin/userlist emailadmin cs Zpět na Administrátor/Uživatelské účty
bad login name or password. emailadmin cs Chybné přihlašovací jméno nebo heslo.
bad or malformed request. server responded: %s emailadmin cs Chybný nebo špatně fomulovaný požadavek. Server odpověděl: %s
bad request: %s emailadmin cs Chybný požadavek: %s
can be used by application emailadmin cs Může být použit aplikací
can be used by group emailadmin cs Může být použit skupinou
can be used by user emailadmin cs Může být použit uživatelem
connection dropped by imap server. emailadmin cs Připojení ukončeno IMAP serverem.
could not complete request. reason given: %s emailadmin cs Nemohu dokončit požadavek. Důvod: %s
could not open secure connection to the imap server. %s : %s. emailadmin cs Nemohu otevřít zabezpečené připojení na IMAP server. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin cs CRAM-MD5 nebo DIGEST-MD5 vyžadují nainstalovaný balíček Auth_SASL.
cyrus imap server emailadmin cs Cyrus IMAP Server
cyrus imap server administration emailadmin cs Administrace Cyrus IMAP serveru
default emailadmin cs výchozí
deliver extern emailadmin cs doručit externě
do not validate certificate emailadmin cs Neověřovat certifikát
do you really want to delete this profile emailadmin cs Opravdu chcete smazat tento profil
do you really want to reset the filter for the profile listing emailadmin cs Opravdu chcete vyresetovat filtr pro seznam profilů
domainname emailadmin cs Doménové jméno
edit email settings emailadmin cs Editovat nastavení e-mailu
email account active emailadmin cs E-mailový účet aktivní
email address emailadmin cs E-mailová adresa
email settings common cs Nastavení e-mailu
emailadmin emailadmin cs Administrátor pošty
emailadmin: group assigned profile common cs Administrátor pošty: profil přidělený skupině
emailadmin: user assigned profile common cs Administrátor pošty: profil přidělený uživateli
enable cyrus imap server administration emailadmin cs Povolit administraci Cyrus IMAP serveru
enable sieve emailadmin cs Povolit Sieve
encrypted connection emailadmin cs Šifrované připojení
encryption settings emailadmin cs Nastavení šifrování
enter your default mail domain (from: user@domain) emailadmin cs Zadejte Vaši výchozí poštovní doménu (z: uživatel@doména)
error connecting to imap server. %s : %s. emailadmin cs Chyba spojení na IMAP server. %s : %s.
error connecting to imap server: [%s] %s. emailadmin cs Chyba spojení na IMAP server: [%s] %s.
filtered by account emailadmin cs filtrováno podle účtu
filtered by group emailadmin cs filtrováno podle skupiny
forward also to emailadmin cs Přeposlat také na
forward email's to emailadmin cs Přeposílat e-maily na
forward only emailadmin cs Jen přeposlat
global options emailadmin cs Globální volby
if using ssl or tls, you must have the php openssl extension loaded. emailadmin cs Pokud chcete používat SSL nebo TLS, musíte mít nahráno openssl rozšíření PHP.
imap admin password admin cs Heslo IMAP administrátora
imap admin user admin cs Uživatelský účet IMAP administrátora
imap c-client version < 2001 emailadmin cs IMAP C-klient verze < 2001
imap server closed the connection. emailadmin cs IMAP server ukončil spojení.
imap server closed the connection. server responded: %s emailadmin cs IMAP server ukončil spojení. Server odpověděl: %s
imap server hostname or ip address emailadmin cs DNS jméno nebo IP adresa IMAP serveru
imap server logintyp emailadmin cs Typ přihlášení na IMAP server
imap server name emailadmin cs Název IMAP serveru
imap server port emailadmin cs Port IMAP serveru
imap/pop3 server name emailadmin cs Název IMAP/POP3 serveru
in mbyte emailadmin cs v MBytech
inactive emailadmin cs neaktivní
ldap basedn emailadmin cs LDAP basedn
ldap server emailadmin cs LDAP server
ldap server accounts dn emailadmin cs DN (distinguished name) účtů na LDAP serveru
ldap server admin dn emailadmin cs DN (distinguished name) administrátora LDAP serveru
ldap server admin password emailadmin cs Heslo administrátora LDAP serveru
ldap server hostname or ip address emailadmin cs DNS jméno nebo IP adresa LDAP serveru
ldap settings emailadmin cs LDAP nastavení
leave empty for no quota emailadmin cs ponechte prázdné, nechcete-li kvótu
mail settings admin cs Nastavení pošty
manage stationery templates emailadmin cs Spravovat šablony dopisů
name of organisation emailadmin cs Název organizace
no alternate email address emailadmin cs bez alternativní e-mailové adresy
no encryption emailadmin cs bez šifrování
no forwarding email address emailadmin cs bez e-mailové adresy pro přeposílání
no message returned. emailadmin cs Žádná zpráva se nevrátila.
no supported imap authentication method could be found. emailadmin cs Nebyla nalezena žádná podporovaná metoda IMAP autentikace.
order emailadmin cs Pořadí
organisation emailadmin cs Organizace
plesk can't rename users --> request ignored emailadmin cs Plesk nemůže přejmenovávat uživatele --> požadavek ignorován
plesk imap server (courier) emailadmin cs Plesk IMAP server (Courier)
plesk mail script '%1' not found !!! emailadmin cs Plesk poštovní skript '%1' nebyl nalezen !!!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin cs Plesk vyžaduje, aby měla hesla nejméně 5 znaků a neobsahovala název účtu --> heslo nebylo nastaveno!!!
plesk smtp-server (qmail) emailadmin cs Plesk SMTP server (Qmail)
pop3 server hostname or ip address emailadmin cs DNS jméno nebo IP adresa POP3 serveru
pop3 server port emailadmin cs Port POP3 serveru
postfix with ldap emailadmin cs Postfix s LDAP
profile access rights emailadmin cs přístupová práva profilu
profile is active emailadmin cs Profil je aktivní
profile list emailadmin cs Seznam profilů
profile name emailadmin cs Název profilu
qmaildotmode emailadmin cs Tečkový režim Qmail
qouta size in mbyte emailadmin cs Velikost kvóty v MBytech
quota settings emailadmin cs Nastavení kvóty
remove emailadmin cs Odstranit
reset filter emailadmin cs vyresetovat filtr
select type of imap server emailadmin cs Vyberte typ IMAP serveru
select type of imap/pop3 server emailadmin cs Vyberte typ IMAP/POP3 serveru
select type of smtp server emailadmin cs Vyberte typ SMTP serveru
send using this email-address emailadmin cs Odeslat s touto e-mailovou adresou
server settings emailadmin cs Nastavení serveru
sieve server hostname or ip address emailadmin cs DNS jméno nebo IP adresa Sieve serveru
sieve server port emailadmin cs Port Sieve serveru
sieve settings emailadmin cs Nastavení sieve
smtp authentication emailadmin cs SMTP autentikace
smtp options emailadmin cs Volby SMTP
smtp server name emailadmin cs Jméno SMTP serveru
smtp settings emailadmin cs Nastavení SMTP
smtp-server hostname or ip address emailadmin cs DNS jméno nebo IP adresa SMTP serveru
smtp-server port emailadmin cs Port SMTP serveru
standard emailadmin cs Standardní
standard imap server emailadmin cs Standardní IMAP server
standard pop3 server emailadmin cs Standardní POP3 server
standard smtp-server emailadmin cs Standardní SMTP server
stationery emailadmin cs Šablony
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin cs Vypadá to, že IMAP server nepodporuje vybranou autentikační metodu. Zkontaktujte prosím Vašeho systémového administrátora.
this php has no imap support compiled in!! emailadmin cs Toto PHP nemá zkompilovanou podporu IMAPu.
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin cs Pro použití TLS připojení musíte provozovat verzi PHP 5.1.0 nebo vyšší.
unexpected response from server to authenticate command. emailadmin cs Neočekávaná odpověď serveru na příkaz AUTHENTICATE.
unexpected response from server to digest-md5 response. emailadmin cs Neočekávaná odpověď serveru na Digest-MD5 odpověď.
unexpected response from server to login command. emailadmin cs Neočekávaná odpověď serveru na příkaz LOGIN.
unknown imap response from the server. server responded: %s emailadmin cs Neznámá IMAP odpověď server. Odpověděl: %s
unsupported action '%1' !!! emailadmin cs Nepodporovaná akce '%1' !!!
update current email address: emailadmin cs Aktualizovat současnou e-mailovou adresu:
use ldap defaults emailadmin cs Použít výchozí hodnoty LDAP
use predefined username and password defined below emailadmin cs Použít předdefinované uživatelské jméno a heslo uvedené níže
use smtp auth emailadmin cs Použít SMTP autentikaci
use tls authentication emailadmin cs Použít TLS autentikaci
use tls encryption emailadmin cs Použít TLS šifrování
user can edit forwarding address emailadmin cs Uživatel smí editovat adresu pro přeposílání
username (standard) emailadmin cs uživatelské jméno (standardní)
username/password defined by admin emailadmin cs Uživatelské jméno/Heslo definované administrátorem
username@domainname (virtual mail manager) emailadmin cs uživatelskéjméno@doména (Virtuální správce pošty)
users can define their own emailaccounts emailadmin cs Uživatelé smí definovat vlastní poštovní účty
users can define their own identities emailadmin cs Uživatelé smí definovat své vlastní identity
users can define their own signatures emailadmin cs Uživatelé smí definovat své vlastní podpisy
users can utilize these stationery templates emailadmin cs Uživatelé mohou využívat tyto šablony dopisů
vaction messages with start- and end-date require an admin account to be set! emailadmin cs Automatické odpovědi v nepřítomnosti, které mají určeno počáteční a koncové datum, vyžadují nastavení administrátorského účtu.
virtual mail manager emailadmin cs Virtuální správce pošty

View File

@ -0,0 +1,69 @@
add profile emailadmin da Tilføj Profil
admin dn emailadmin da admin dn
admin password emailadmin da admin adgangskode
admin passwort emailadmin da admin adgangskode
admin username emailadmin da admin brugernavn
advanced options emailadmin da avanceret indstillinger
alternate email address emailadmin da alternativ e-mail adresse
cyrus imap server emailadmin da Cyrus IMAP Server
cyrus imap server administration emailadmin da Cyrus IMAP server administration
default emailadmin da standart
deliver extern emailadmin da lever ekstern
do you really want to delete this profile emailadmin da Vil du virkelig slette denne profil
domainname emailadmin da domæne navn
edit email settings emailadmin da redigere e-mail indstillingerne
email account active emailadmin da e-mail konto aktiv
email address emailadmin da e-mail adresse
enable cyrus imap server administration emailadmin da aktivere Cyrus IMAP server administration
enable sieve emailadmin da aktiver Sieve
enter your default mail domain (from: user@domain) emailadmin da Indtast dit standart post domæne (fra: bruger@domæne)
forward also to emailadmin da videresend også til
forward email's to emailadmin da videresend e-mails til
forward only emailadmin da videresend kun
imap admin password admin da IMAP admin adgangskode
imap admin user admin da IMAP admin bruger
imap c-client version < 2001 emailadmin da IMAP C-Klient Version < 2001
imap server hostname or ip address emailadmin da IMAP server domænenavn eller IP adresse
imap server logintyp emailadmin da IMAP server login type
imap server port emailadmin da IMAP server port
imap/pop3 server name emailadmin da IMAP/POP3 server navn
in mbyte emailadmin da i Megabytes
ldap basedn emailadmin da LDAP basedn
ldap server emailadmin da LDAP server
ldap server accounts dn emailadmin da LDAP server konto DN
ldap server admin dn emailadmin da LDAP server admin DN
ldap server admin password emailadmin da LDAP server admin adgangskode
ldap server hostname or ip address emailadmin da LDAP server domænenavn eller IP adresse
ldap settings emailadmin da LDAP indstillinger
leave empty for no quota emailadmin da efterlad tom hvis ingen citat
mail settings admin da Post indstillinger
name of organisation emailadmin da Navn på organisation
no alternate email address emailadmin da ingen alternativ e-mail adresse
no forwarding email address emailadmin da ingen viderestillet e-mail adresse
pop3 server hostname or ip address emailadmin da POP3 server domænenavn eller IP adresse
pop3 server port emailadmin da POP server port
postfix with ldap emailadmin da Postfix med LDAP
profile list emailadmin da Profil liste
profile name emailadmin da Profil navn
qmaildotmode emailadmin da qmaildotmode
qouta size in mbyte emailadmin da quota størrelse i Megabytes
quota settings emailadmin da quota indstillinger
remove emailadmin da fjern
select type of imap/pop3 server emailadmin da Vælg type IMAP/POP3 server
select type of smtp server emailadmin da Vælg time POP3 server
sieve server hostname or ip address emailadmin da Sieve server domænenavn eller IP adresse
sieve server port emailadmin da Sieve server port
sieve settings emailadmin da Sieve indstillinger
smtp server name emailadmin da SMTP server navn
smtp-server hostname or ip address emailadmin da SMTP server domænenavn eller IP adresse
smtp-server port emailadmin da SMTP server port
standard emailadmin da Standart
standard imap server emailadmin da Standart IMAP server
standard pop3 server emailadmin da Standart POP3 server
standard smtp-server emailadmin da Standart SMTP server
use ldap defaults emailadmin da brug LDAP standarter
use smtp auth emailadmin da Brug SMTP autorisation
use tls authentication emailadmin da Brug TLS autorisation
use tls encryption emailadmin da Brug TLS kryptering
users can define their own emailaccounts emailadmin da Brugere kan selv definere deres egne e-mail kontoer
virtual mail manager emailadmin da Virtuel post håndtering

151
emailadmin/lang/egw_de.lang Normal file
View File

@ -0,0 +1,151 @@
%1 entries deleted. emailadmin de %1 Einträge gelöscht
account '%1' not found !!! emailadmin de Benutzerkonto '%1' nicht gefunden !!!
active templates emailadmin de Aktive Vorlagen
add new email address: emailadmin de Neue EMailadresse hinzufügen
add profile emailadmin de Profil hinzufügen
admin dn emailadmin de Admin DN
admin password emailadmin de Admin Passwort
admin username emailadmin de Administrator Benutzername
advanced options emailadmin de erweiterte Einstellungen
alternate email address emailadmin de zusätzliche E-Mail-Adressen
any application emailadmin de jede Anwendung
any group emailadmin de jede Gruppe
any user emailadmin de jeder Benutzer
back to admin/grouplist emailadmin de Zurück zu: Admin/Gruppenverwaltung
back to admin/userlist emailadmin de Zurück zu: Admin/Benutzerverwaltung
bad login name or password. emailadmin de Falscher Benutzername oder Passwort.
bad or malformed request. server responded: %s emailadmin de Falsche oder ungültige Anfrage. Server antwortet: %s
bad request: %s emailadmin de Falsche Anfrage: %s
can be used by application emailadmin de Kann von folgender Anwendung verwendet werden
can be used by group emailadmin de Kann von folgender Gruppe verwendet werden
can be used by user emailadmin de Kann von folgendem Benutzer verwendet werden
connection dropped by imap server. emailadmin de Verbindung von IMAP-Server beendet.
could not complete request. reason given: %s emailadmin de Konnte Anfrage nicht beenden. Grund: %s
could not open secure connection to the imap server. %s : %s. emailadmin de Konnte keine sichere Verbindung zum IMAP Server aufbauen. %s: %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin de CRAM-MD5 oder DIGEST-MD5 erfordert, das das Auth_SASL Packet installiert ist.
cyrus imap server emailadmin de Cyrus IMAP-Server
cyrus imap server administration emailadmin de Cyrus IMAP-Server Administration
default emailadmin de Vorgabe
deliver extern emailadmin de extern ausliefern
do not validate certificate emailadmin de Zertifikat nicht überprüfen
do you really want to delete this profile emailadmin de Wollen Sie dieses Profil wirklich löschen
do you really want to reset the filter for the profile listing emailadmin de Möchten Sie den Filter für die Profilliste wirklich zurücksetzen?
domainname emailadmin de Domänenname
edit email settings emailadmin de E-Mail-Einstellungen
email account active emailadmin de E-Mail-Konto aktiv
email address emailadmin de E-Mail-Adresse
email settings common de E-Mail-Konto
emailadmin emailadmin de EMailAdmin
emailadmin: group assigned profile common de eMailAdmin: Vordefiniertes Gruppenprofil
emailadmin: user assigned profile common de eMailAdmin: Vordefiniertes Benutzerprofil
enable cyrus imap server administration emailadmin de Cyrus IMAP-Server Administration aktivieren
enable sieve emailadmin de Sieve aktivieren
encrypted connection emailadmin de verschlüsselte Verbindung
encryption settings emailadmin de Verschlüsselungseinstellungen
enter your default mail domain (from: user@domain) emailadmin de Standard E-Mail-Domain (Von: benutzer@domain)
entry saved emailadmin de Eintrag gespeichert
error connecting to imap server. %s : %s. emailadmin de Fehler beim Verbinden mit dem IMAP Server. %s : %s.
error connecting to imap server: [%s] %s. emailadmin de Fehler beim Verbinden mit dem IMAP Server. [%s] %s.
error deleting entry! emailadmin de Fehler beim löschen des Eintrags
error saving the entry!!! emailadmin de Fehler beim speichern!!!
filtered by account emailadmin de Suche nach Benutzerprofilen
filtered by group emailadmin de Suche nach Gruppenprofilen
forward also to emailadmin de zusätzlich weiterleiten
forward email's to emailadmin de E-Mails weiterleiten an
forward only emailadmin de nur weiterleiten
global options emailadmin de Globale Optionen
if using ssl or tls, you must have the php openssl extension loaded. emailadmin de Wenn Sie SSL oder TLS benutzen, müssen Sie die openssl PHP Erweiterung geladen haben.
imap admin password admin de IMAP Administrator Passwort
imap admin user admin de IMAP Administrator Benutzer
imap c-client version < 2001 emailadmin de IMAP C-Client Version < 2001
imap server closed the connection. emailadmin de IMAP Server hat die Verbindung beendet.
imap server closed the connection. server responded: %s emailadmin de IMAP Server hat die Verbindung beendet. Server Antwort: %s
imap server hostname or ip address emailadmin de IMAP-Server Hostname oder IP-Adresse
imap server logintyp emailadmin de IMAP-Server Loginverfahren
imap server name emailadmin de IMAP-Server Name
imap server port emailadmin de IMAP-Server Port
imap/pop3 server name emailadmin de IMAP/POP3-Server Name
in mbyte emailadmin de in MByte
inactive emailadmin de inaktiv
ldap basedn emailadmin de LDAP BaseDN
ldap server emailadmin de LDAP Server
ldap server accounts dn emailadmin de LDAP-Server Benutzerkonten DN
ldap server admin dn emailadmin de LDAP-Server Administrator DN
ldap server admin password emailadmin de LDAP-Server Administrator-Passwort
ldap server hostname or ip address emailadmin de LDAP-Server Hostname oder IP-Adresse
ldap settings emailadmin de LDAP-Einstellungen
leave empty for no quota emailadmin de leer lassen um Quota zu deaktivieren
mail settings admin de E-Mail-Einstellungen
manage stationery templates emailadmin de Briefpapiervorlagen verwalten
name of organisation emailadmin de Name der Organisation
no alternate email address emailadmin de keine zusätzlichen E-Mail-Adressen
no encryption emailadmin de keine Verschlüsselung
no forwarding email address emailadmin de keine Weiterleitungsadresse definiert
no message returned. emailadmin de Keine Nachricht zurückgeliefert.
no supported imap authentication method could be found. emailadmin de Keine unterstützte IMAP-Authentifizierungsmethode gefunden.
order emailadmin de Reihenfolge
organisation emailadmin de Organisation
plesk can't rename users --> request ignored emailadmin de Plesk kann keine Benutzer umbenennen --> Anforderung ignoriert
plesk imap server (courier) emailadmin de Plesk IMAP Server (Courier)
plesk mail script '%1' not found !!! emailadmin de Plesk Mail Skript '%1' nicht gefunden !!!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin de Plesk verlangt, dass Passworte mindestens 5 Zeichen lang sind und nicht den Benutzernamen enthalten --> Passwort nicht gesetzt!!!
plesk smtp-server (qmail) emailadmin de Plesk SMTP-Server (Qmail)
pop3 server hostname or ip address emailadmin de POP3-Server Hostname oder IP-Adresse
pop3 server port emailadmin de POP3-Server Port
postfix with ldap emailadmin de Postfix mit LDAP
profile access rights emailadmin de Profilzugriffsrechte
profile is active emailadmin de Profil ist aktiv
profile list emailadmin de Profilliste
profile name emailadmin de Profilname
qmaildotmode emailadmin de qmaildotmode
qouta size in mbyte emailadmin de Quota Größe in MByte
quota settings emailadmin de Quota Einstellungen
remove emailadmin de Entfernen
reset filter emailadmin de Filter zurücksetzen
select type of imap server emailadmin de IMAP-Server Typ auswählen
select type of imap/pop3 server emailadmin de IMAP/POP3-Server Typ auswählen
select type of smtp server emailadmin de SMTP-Server Typ auswählen
send using this email-address emailadmin de zum Versenden wird diese E-Mail Adresse benutzt
server settings emailadmin de Server-Einstellungen
sieve server hostname or ip address emailadmin de Sieve-Server Hostname oder IP-Adresse
sieve server port emailadmin de Sieve-Server Port
sieve settings emailadmin de Sieve Einstellungen
smtp authentication emailadmin de SMTP Anmeldung
smtp options emailadmin de SMTP Optionen
smtp server name emailadmin de SMTP-Server Name
smtp settings emailadmin de SMTP Einstellungen
smtp-server hostname or ip address emailadmin de SMTP-Server Hostname oder IP-Adresse
smtp-server port emailadmin de SMTP-Server Port
standard emailadmin de Vorgabe
standard imap server emailadmin de Standard IMAP-Server
standard pop3 server emailadmin de Standard POP3-Server
standard smtp-server emailadmin de Standard SMTP-Server
starts with emailadmin de startet mit
stationery emailadmin de Briefpapier
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin de Der IMAP Server scheint die eingestellte Authentifizierungsmethode nicht zu unterstützen. Bitte fragen Sie ihren Systemadministrator.
this php has no imap support compiled in!! emailadmin de Dieses PHP hat keine IMAP Unterstützung!!!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin de Um eine TLS Verbindung zu verwenden, benötigen Sie PHP 5.1.0 oder neuer.
unexpected response from server to authenticate command. emailadmin de Unerwartete Antwort des Servers auf das AUTHENTICATE Kommando.
unexpected response from server to digest-md5 response. emailadmin de Unerwartete Antwort des Servers auf die Digest-MD5 Antwort.
unexpected response from server to login command. emailadmin de Unerwartete Antwort des Servers auf das LOGIN Komando.
unknown imap response from the server. server responded: %s emailadmin de Unbekannte IMAP Antwort vom Server. Server antwortet: %s
unsupported action '%1' !!! emailadmin de Nicht unterstützte Aktion '%1' !!!
update current email address: emailadmin de Aktualisiere aktuelle EMailadresse
use ldap defaults emailadmin de LDAP Standardeinstellungen benutzen
use predefined username and password defined below emailadmin de Verwende den unten vordefinierten Benutzernamen und Passwort
use smtp auth emailadmin de SMTP Auth benutzen
use tls authentication emailadmin de TLS Authentifizierung benutzen
use tls encryption emailadmin de TLS Verschlüsselung benutzen
use users email-address (as seen in useraccount) emailadmin de Benutzt E-Mail Adresse des Benutzters (Die unter seinem Benutzerkonto angezeigt wird)
user can edit forwarding address emailadmin de Anwender können ihre Weiterleitungsadresse bearbeiten
userid@domain eg. u1234@domain emailadmin de UserId@domain z.B. u1234@domain
username (standard) emailadmin de Benutzername (Standard)
username/password defined by admin emailadmin de Benutzername/Passwort vordefiniert
username@domainname (virtual mail manager) emailadmin de Benutzername@Domänenname (Virtual MAIL ManaGeR)
users can define their own emailaccounts emailadmin de Anwender können ihre eigenen Konten definieren
users can define their own identities emailadmin de Anwender können ihre eigenen Identitäten definieren
users can define their own signatures emailadmin de Anwender können ihre eigenen Signaturen definieren
users can utilize these stationery templates emailadmin de Benutzer können diese Briefpapiervorlagen verwenden
vaction messages with start- and end-date require an admin account to be set! emailadmin de Urlaubsbenachrichtigungen mit Start- und Enddatum benötigen einen gesetzten Administrator Benutzer!
virtual mail manager emailadmin de Virtual MAIL ManaGeR
you have received a new message on the emailadmin de Sie haben eine neue Nachricht erhalten

151
emailadmin/lang/egw_en.lang Executable file
View File

@ -0,0 +1,151 @@
%1 entries deleted. emailadmin en %1 entries deleted.
account '%1' not found !!! emailadmin en Account '%1' not found!
active templates emailadmin en Active templates
add new email address: emailadmin en Add new email address:
add profile emailadmin en Add profile
admin dn emailadmin en Admin dn
admin password emailadmin en Admin password
admin username emailadmin en Admin user name
advanced options emailadmin en Advanced options
alternate email address emailadmin en Alternate email address
any application emailadmin en Any application
any group emailadmin en Any group
any user emailadmin en Any user
back to admin/grouplist emailadmin en Back to Admin / Group list
back to admin/userlist emailadmin en Back to Admin / User list
bad login name or password. emailadmin en Bad login name or password.
bad or malformed request. server responded: %s emailadmin en Bad or malformed request. %s
bad request: %s emailadmin en Bad request: %s
can be used by application emailadmin en Can be used by application
can be used by group emailadmin en Can be used by group
can be used by user emailadmin en Can be used by user
connection dropped by imap server. emailadmin en Connection dropped by IMAP server.
could not complete request. reason given: %s emailadmin en Could not complete request. %s
could not open secure connection to the imap server. %s : %s. emailadmin en Could not open secure connection to the IMAP server. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin en CRAM-MD5 or DIGEST-MD5 requires the Auth_SASL package to be installed.
cyrus imap server emailadmin en Cyrus IMAP server
cyrus imap server administration emailadmin en Cyrus IMAP server administration
default emailadmin en Default
deliver extern emailadmin en Deliver extern
do not validate certificate emailadmin en Do not validate certificate
do you really want to delete this profile emailadmin en Do you really want to delete this profile?
do you really want to reset the filter for the profile listing emailadmin en Do you really want to reset the filter for the profile listing?
domainname emailadmin en Domain name
edit email settings emailadmin en Edit email settings
email account active emailadmin en Email account active
email address emailadmin en Email address
email settings common en Email settings
emailadmin emailadmin en eMailAdmin
emailadmin: group assigned profile common en eMailAdmin: Group assigned profile
emailadmin: user assigned profile common en eMailAdmin: User assigned profile
enable cyrus imap server administration emailadmin en Enable Cyrus IMAP server administration
enable sieve emailadmin en Enable Sieve
encrypted connection emailadmin en Encrypted connection
encryption settings emailadmin en Encryption settings
enter your default mail domain (from: user@domain) emailadmin en Enter your default mail domain from: user@domain
entry saved emailadmin en Entry saved
error connecting to imap server. %s : %s. emailadmin en Error connecting to IMAP server. %s : %s.
error connecting to imap server: [%s] %s. emailadmin en Error connecting to IMAP server: [%s] %s.
error deleting entry! emailadmin en Error deleting entry!
error saving the entry!!! emailadmin en Error saving the entry!
filtered by account emailadmin en Filtered by account
filtered by group emailadmin en Filtered by group
forward also to emailadmin en Forward also to
forward email's to emailadmin en Forward email's to
forward only emailadmin en Forward only
global options emailadmin en Global options
if using ssl or tls, you must have the php openssl extension loaded. emailadmin en If using SSL or TLS, you must have the PHP openssl extension loaded.
imap admin password admin en IMAP admin password
imap admin user admin en IMAP admin user
imap c-client version < 2001 emailadmin en IMAP C-Client Version < 2001
imap server closed the connection. emailadmin en IMAP server closed the connection.
imap server closed the connection. server responded: %s emailadmin en IMAP Server closed the connection. Server Responded: %s
imap server hostname or ip address emailadmin en IMAP server hostname or ip address
imap server logintyp emailadmin en IMAP server login type
imap server name emailadmin en IMAP server name
imap server port emailadmin en IMAP server port
imap/pop3 server name emailadmin en IMAP/POP3 server name
in mbyte emailadmin en in MByte
inactive emailadmin en Inactive
ldap basedn emailadmin en LDAP basedn
ldap server emailadmin en LDAP server
ldap server accounts dn emailadmin en LDAP server accounts DN
ldap server admin dn emailadmin en LDAP server admin DN
ldap server admin password emailadmin en LDAP server admin password
ldap server hostname or ip address emailadmin en LDAP server host name or IP address
ldap settings emailadmin en LDAP settings
leave empty for no quota emailadmin en Leave empty for no quota
mail settings admin en Mail settings
manage stationery templates emailadmin en Manage stationery templates
name of organisation emailadmin en Name of organization
no alternate email address emailadmin en No alternate email address
no encryption emailadmin en No encryption
no forwarding email address emailadmin en No forwarding email address
no message returned. emailadmin en No message returned
no supported imap authentication method could be found. emailadmin en No supported IMAP authentication method could be found.
order emailadmin en Order
organisation emailadmin en Organisation
plesk can't rename users --> request ignored emailadmin en Plesk can't rename users --> request ignored
plesk imap server (courier) emailadmin en Plesk IMAP Server (Courier)
plesk mail script '%1' not found !!! emailadmin en Plesk mail script '%1' not found!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin en Plesk requires passwords to have at least 5 characters and not contain the account name --> password NOT set!
plesk smtp-server (qmail) emailadmin en Plesk SMTP-Server (Qmail)
pop3 server hostname or ip address emailadmin en POP3 server hostname or IP address
pop3 server port emailadmin en POP3 server port
postfix with ldap emailadmin en Postfix with LDAP
profile access rights emailadmin en Profile access rights
profile is active emailadmin en Profile is active
profile list emailadmin en Profile list
profile name emailadmin en Profile name
qmaildotmode emailadmin en qmaildotmode
qouta size in mbyte emailadmin en Qouta size in MByte
quota settings emailadmin en Quota settings
remove emailadmin en Remove
reset filter emailadmin en Reset filter
select type of imap server emailadmin en Select type of IMAP server
select type of imap/pop3 server emailadmin en Select type of IMAP/POP3 server
select type of smtp server emailadmin en Select type of SMTP server
send using this email-address emailadmin en Send using this email address
server settings emailadmin en Server settings
sieve server hostname or ip address emailadmin en Sieve server hostname or IP address
sieve server port emailadmin en Sieve server port
sieve settings emailadmin en Sieve settings
smtp authentication emailadmin en SMTP authentication
smtp options emailadmin en SMTP options
smtp server name emailadmin en SMTP server name
smtp settings emailadmin en SMTP settings
smtp-server hostname or ip address emailadmin en SMTP server hostname or IP address
smtp-server port emailadmin en SMTP server port
standard emailadmin en Standard
standard imap server emailadmin en Standard IMAP server
standard pop3 server emailadmin en Standard POP3 server
standard smtp-server emailadmin en Standard SMTP server
starts with emailadmin en Starts with
stationery emailadmin en Stationery
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin en The IMAP server does not appear to support the authentication method selected. Contact your system administrator.
this php has no imap support compiled in!! emailadmin en This PHP has no IMAP support compiled in!!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin en To use a TLS connection, you must be running a version of PHP 5.1.0 or higher.
unexpected response from server to authenticate command. emailadmin en Unexpected response from server to AUTHENTICATE command.
unexpected response from server to digest-md5 response. emailadmin en Unexpected response from server to Digest-MD5 response.
unexpected response from server to login command. emailadmin en Unexpected response from server to LOGIN command.
unknown imap response from the server. server responded: %s emailadmin en Unknown IMAP response from the server. %s
unsupported action '%1' !!! emailadmin en Unsupported action '%1' !
update current email address: emailadmin en Update current email address:
use ldap defaults emailadmin en Use LDAP defaults
use predefined username and password defined below emailadmin en Use predefined username and password defined below
use smtp auth emailadmin en Use SMTP authentication
use tls authentication emailadmin en Use TLS authentication
use tls encryption emailadmin en Use TLS encryption
use users email-address (as seen in useraccount) emailadmin en Use users email address, as set in user account
user can edit forwarding address emailadmin en User can edit forwarding address
userid@domain eg. u1234@domain emailadmin en UserId@domain eg. u1234@domain
username (standard) emailadmin en Username (standard)
username/password defined by admin emailadmin en Username / Password defined by admin
username@domainname (virtual mail manager) emailadmin en username@domainname (Virtual MAIL ManaGeR)
users can define their own emailaccounts emailadmin en Users can define their own email accounts
users can define their own identities emailadmin en Users can define their own identities
users can define their own signatures emailadmin en Users can define their own signatures
users can utilize these stationery templates emailadmin en Users can utilize these stationery templates
vaction messages with start- and end-date require an admin account to be set! emailadmin en Vacation messages with start and end date require an admin account to be set!
virtual mail manager emailadmin en Virtual MAIL ManaGeR
you have received a new message on the emailadmin en You have received a new message on the

View File

@ -0,0 +1,143 @@
account '%1' not found !!! emailadmin es-es ¡No se encontró la cuenta '%1'!
active templates emailadmin es-es Plantillas activas
add new email address: emailadmin es-es Añadir nueva dirección de correo
add profile emailadmin es-es Añadir perfil
admin dn emailadmin es-es dn del administrador
admin password emailadmin es-es contraseña del administrador
admin username emailadmin es-es usuario del administrador
advanced options emailadmin es-es opciones avanzadas
alternate email address emailadmin es-es dirección de correo alternativa
any application emailadmin es-es cualquier aplicación
any group emailadmin es-es cualquier grupo
any user emailadmin es-es cualquier usuario
back to admin/grouplist emailadmin es-es Volver a Administración/Lista de grupos
back to admin/userlist emailadmin es-es Volver a Administración/Lista de usuarios
bad login name or password. emailadmin es-es Nombre de usuario o contraseña incorrectos
bad or malformed request. server responded: %s emailadmin es-es Petición errónea o mal formado. El servidor respondió: %s
bad request: %s emailadmin es-es Petición errónea: %s
can be used by application emailadmin es-es puede usarse por la aplicación
can be used by group emailadmin es-es puede usarse por el grupo
can be used by user emailadmin es-es puede usarse por el usuario
connection dropped by imap server. emailadmin es-es El servidor IMAP ha interrumpido la conexión
could not complete request. reason given: %s emailadmin es-es No se pudo completar la solicitud. Motivo: %s
could not open secure connection to the imap server. %s : %s. emailadmin es-es No se pudo abrir una conexión segura con el servidor IMAP. %s: %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin es-es CRAM-MD5 o DIGEST-MD5 necesitan el paquete Auth_SASL para estar instalado.
cyrus imap server emailadmin es-es Servidor IMAP Cyrus
cyrus imap server administration emailadmin es-es Administración del servidor IMAP Cyrus
default emailadmin es-es predeterminada
deliver extern emailadmin es-es entrega externa
do not validate certificate emailadmin es-es No validar el certificado
do you really want to delete this profile emailadmin es-es ¿Realmente desea borrar este perfil?
do you really want to reset the filter for the profile listing emailadmin es-es Realmente desea restablecer el filtro para la lista de perfiles
domainname emailadmin es-es nombre del dominio
edit email settings emailadmin es-es editar configuración de la cuenta
email account active emailadmin es-es cuenta de correo electrónico activa
email address emailadmin es-es dirección de correo electrónico
email settings common es-es Configuración del correo electrónico
emailadmin emailadmin es-es Administración del correo electrónico
emailadmin: group assigned profile common es-es eMailAdmin: perfil asignado al grupo
emailadmin: user assigned profile common es-es eMailAdmin: perfil asignado al usuario
enable cyrus imap server administration emailadmin es-es activar administración del servidor Cyrus IMAP
enable sieve emailadmin es-es activar Sieve
encrypted connection emailadmin es-es conexión cifrada
encryption settings emailadmin es-es configuración del cifrado
enter your default mail domain (from: user@domain) emailadmin es-es introduzca el dominio predeterminado (de usuario@dominio)
error connecting to imap server. %s : %s. emailadmin es-es Error al conectar con el servidor IMAP. %s: %s.
error connecting to imap server: [%s] %s. emailadmin es-es Error al conectar con el servidor IMAP: [%s] %s.
filtered by account emailadmin es-es filtrado por cuenta
filtered by group emailadmin es-es filtrado por grupo
forward also to emailadmin es-es reenviar también a
forward email's to emailadmin es-es reenviar correos a
forward only emailadmin es-es sólo reenviar
global options emailadmin es-es opciones globales
if using ssl or tls, you must have the php openssl extension loaded. emailadmin es-es Si usa SSL o TLS, debe tener cargada la extensión openssl de PHP.
imap admin password admin es-es contraseña del administrador IMAP
imap admin user admin es-es usuario administrador IMAP
imap c-client version < 2001 emailadmin es-es Versión C-Cliente IMAP < 2001
imap server closed the connection. emailadmin es-es El servidor IMAP cerró la conexión.
imap server closed the connection. server responded: %s emailadmin es-es El servidor IMAP cerró la conexión. El servidor respondió: %s
imap server hostname or ip address emailadmin es-es Servidor IMAP o dirección IP
imap server logintyp emailadmin es-es Tipo de sesión del servidor IMAP
imap server name emailadmin es-es Nombre del servidor IMAP
imap server port emailadmin es-es Puerto del servidor IMAP
imap/pop3 server name emailadmin es-es Nombre del servidor POP/IMAP
in mbyte emailadmin es-es en MBytes
inactive emailadmin es-es inactivo
ldap basedn emailadmin es-es basedn para LDAP
ldap server emailadmin es-es servidor LDAP
ldap server accounts dn emailadmin es-es DN para cuentas del servidor LDAP
ldap server admin dn emailadmin es-es DN del administrador del servidor LDAP
ldap server admin password emailadmin es-es contraseña del administrador del servidor LDAP
ldap server hostname or ip address emailadmin es-es Nombre del servidor LDAP o dirección IP
ldap settings emailadmin es-es Configuración LDAP
leave empty for no quota emailadmin es-es Dejar en blanco para no poner cuota
mail settings admin es-es Configuración del correo.
manage stationery templates emailadmin es-es Gestionar plantillas preimpresas
name of organisation emailadmin es-es Nombre de la organización
no alternate email address emailadmin es-es Sin dirección de correo alternativa
no encryption emailadmin es-es Sin cifrar
no forwarding email address emailadmin es-es Sin dirección de correo para reenviar
no message returned. emailadmin es-es No se devolvió ningún mensaje.
no supported imap authentication method could be found. emailadmin es-es No se pudo encontrar ningún método soportado de identificación IMAP.
order emailadmin es-es orden
organisation emailadmin es-es organización
plesk can't rename users --> request ignored emailadmin es-es Plesk no puede renombrar usuarios --> Se ignora la solicitud
plesk imap server (courier) emailadmin es-es Servidor IMAP Plesk (Courier)
plesk mail script '%1' not found !!! emailadmin es-es ¡No se encontró el script de correo de Plesk '%1'!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin es-es Plesk requiere que las contraseñas tengan al menos 5 caracteres y no contengan el nombre de la cuenta --> NO se establece la contraseña
plesk smtp-server (qmail) emailadmin es-es Servidor SMTP de Plesk (Qmail)
pop3 server hostname or ip address emailadmin es-es Nombre del servidor POP3 o dirección IP
pop3 server port emailadmin es-es Puerto del servidor POP3
postfix with ldap emailadmin es-es Postfix con LDAP
profile access rights emailadmin es-es Derechos de acceso del perfil
profile is active emailadmin es-es el perfil está activo
profile list emailadmin es-es Lista de perfiles
profile name emailadmin es-es Nombre del perfil
qmaildotmode emailadmin es-es Modo de punto de qmail
qouta size in mbyte emailadmin es-es Tamaño de la cuota en MBytes
quota settings emailadmin es-es Configuración de las cuotas
remove emailadmin es-es borrar
reset filter emailadmin es-es restablecer filtro
select type of imap server emailadmin es-es Seleccione el tipo de servidor IMAP
select type of imap/pop3 server emailadmin es-es Seleccione el tipo de servidor IMAP/POP3
select type of smtp server emailadmin es-es Seleccione el tipo de servidor SMTP
send using this email-address emailadmin es-es enviar usando esta dirección de correo electrónico
server settings emailadmin es-es configuración del servidor
sieve server hostname or ip address emailadmin es-es Nombre del servidor Sieve o dirección IP
sieve server port emailadmin es-es Puerto del servidor Sieve
sieve settings emailadmin es-es Configuración de Sieve
smtp authentication emailadmin es-es identificación SMTP
smtp options emailadmin es-es opciones SMTP
smtp server name emailadmin es-es Nombre del servidor SMTP
smtp settings emailadmin es-es configuración SMTP
smtp-server hostname or ip address emailadmin es-es Nombre del servidor SMTP o dirección IP
smtp-server port emailadmin es-es Puerto del servidor SMTP
standard emailadmin es-es Estándar
standard imap server emailadmin es-es Servidor IMAP estándar
standard pop3 server emailadmin es-es Servidor POP3 estándar
standard smtp-server emailadmin es-es Servidor SMTP estándar
stationery emailadmin es-es material preimpreso
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin es-es El servidor IMAP no parece soportar el método de identificación seleccionado. Por favor, póngase en contacto el administrador de su sistema.
this php has no imap support compiled in!! emailadmin es-es ¡¡Esta instalación de PHP no tiene soporte IMAP!!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin es-es Para usar una conexión TLS, debe ejecutar una versión de PHP 5.1.0 o superior.
unexpected response from server to authenticate command. emailadmin es-es Respuesta inesperada del servidor al comando AUTHENTICATE.
unexpected response from server to digest-md5 response. emailadmin es-es Respuesta inesperada del servidor a la respuesta Digest-MD5.
unexpected response from server to login command. emailadmin es-es Respuesta inesperada del servidor al comando LOGIN.
unknown imap response from the server. server responded: %s emailadmin es-es Respuesta IMAP desconocida del servidor. El servidor respondió: %s
unsupported action '%1' !!! emailadmin es-es ¡La acción '%1' no está soportada!
update current email address: emailadmin es-es Actualizar la dirección de correo actual:
use ldap defaults emailadmin es-es usar las opciones predeterminadas para LDAP
use predefined username and password defined below emailadmin es-es Usar el usuario predefinido y las contraseñas definidas debajo
use smtp auth emailadmin es-es Usar identificación SMTP
use tls authentication emailadmin es-es Usar identificación TLS
use tls encryption emailadmin es-es Usar cifrado TLS
user can edit forwarding address emailadmin es-es El usuario puede editar la dirección de reenvío
username (standard) emailadmin es-es usuario (estándar)
username/password defined by admin emailadmin es-es Usuario/contraseña definida por el administrador
username@domainname (virtual mail manager) emailadmin es-es usuario@dominio (Gestor de correo virtual)
users can define their own emailaccounts emailadmin es-es Los usuarios pueden definir sus propias cuentas de correo
users can define their own identities emailadmin es-es Los usuarios pueden definir sus propias identidades
users can define their own signatures emailadmin es-es Los usuarios pueden definir sus propias firmas
users can utilize these stationery templates emailadmin es-es Los usuarios pueden utilizar estas plantillas preimpresas
vaction messages with start- and end-date require an admin account to be set! emailadmin es-es Los mensajes con fecha de inicio y fin requieren establecer una cuenta de administrador
virtual mail manager emailadmin es-es Gestor de correo virtual

45
emailadmin/lang/egw_et.lang Executable file
View File

@ -0,0 +1,45 @@
account '%1' not found !!! emailadmin et Kontot '%1' ei leitud !!!
add new email address: emailadmin et Lisa uus email aadress
add profile emailadmin et Lisa Profiil
admin password emailadmin et admin parool
admin username emailadmin et admin kasutajanimi
alternate email address emailadmin et Alternatiivne email aadress
bad login name or password. emailadmin et Vale kasutajanimi või parool
cyrus imap server emailadmin et Cyrus IMAP Server
cyrus imap server administration emailadmin et Cyrus IMAP server administreerimine
default emailadmin et vaikimisi
do not validate certificate emailadmin et ära valideeri sertifikaati
do you really want to delete this profile emailadmin et Tahad tõesti kustutada seda Profiili
domainname emailadmin et Doomeninimi
edit email settings emailadmin et muuda emaili setinguid
email account active emailadmin et email konto aktiivne
email address emailadmin et email aadress
email settings common et Email setingud
encrypted connection emailadmin et krüpteeritud ühendus
encryption settings emailadmin et Krüpteerimise setingud
enter your default mail domain (from: user@domain) emailadmin et Sisesta oma vaikimisi mail doomen (kasutaja@doomen)
global options emailadmin et Globaalsed omadused
imap admin password admin et IMAP admin parool
imap admin user admin et IMAP admin kasutaja
imap c-client version < 2001 emailadmin et IMAP C-Client Versioon < 2001
imap server closed the connection. emailadmin et IMAP server sulges ühenduse.
imap server closed the connection. server responded: %s emailadmin et IMAP Server sulges ühenduse. Server Vastas: %s
imap server name emailadmin et imap serveri nimi
imap server port emailadmin et IMAP serveri port
imap/pop3 server name emailadmin et IMAP/POP3 server nimi
ldap settings emailadmin et LDAP setingud
mail settings admin et Mail setingud
no alternate email address emailadmin et pole alternatiivset email aadressi
no encryption emailadmin et ilna krüpteeringutta
organisation emailadmin et Organisatsioon
pop3 server port emailadmin et POP3 serveri port
remove emailadmin et eemalda
select type of imap server emailadmin et vali IMAP serveri tüüp
select type of imap/pop3 server emailadmin et vali IMAP/POP3 serveri tüüp
select type of smtp server emailadmin et Vali SMTP serveri tüüp
server settings emailadmin et Serveri setingud
sieve server port emailadmin et Sieve serveri port
sieve settings emailadmin et Sieve setingud
smtp server name emailadmin et SMTP serveri nimi
smtp settings emailadmin et SMTP setingud
smtp-server port emailadmin et SMTP serveri port

View File

@ -0,0 +1,66 @@
add profile emailadmin fa افزودن مجموعه تنظیمات
admin dn emailadmin fa dn مدیر
admin password emailadmin fa گذرواژه مدیر
admin passwort emailadmin fa گذرواژه مدیر
admin username emailadmin fa نام کاربری مدیر
advanced options emailadmin fa تنظیمات پیشرفته
alternate email address emailadmin fa نشانی پست الکترونیکی دیگر
any application emailadmin fa همه کاربردها
any group emailadmin fa همه گروهها
can be used by application emailadmin fa استفاده شود توسط کاربرد
can be used by group emailadmin fa استفاده شود توسط گروه
default emailadmin fa پیش فرض
deliver extern emailadmin fa حمل بیرونی
do you really want to delete this profile emailadmin fa آیا واقعا می خواهید این مجموعه تنظیمات را حذف کنید؟
domainname emailadmin fa نام حوزه
edit email settings emailadmin fa ویرایش تنظیمات نامه الکترونیکی
email account active emailadmin fa حساب نامه الکترونیکی فعال
email address emailadmin fa نشانی الکترونیکی
emailadmin emailadmin fa مدیر رایانامه
enable sieve emailadmin fa فعالسازی Sieve
encryption settings emailadmin fa تنظیمات رمز نگاری
enter your default mail domain (from: user@domain) emailadmin fa حوزه پیش فرض خود را وارد کنید:(مثلا: fgpars.net)
forward also to emailadmin fa همچنین ارسال به
forward email's to emailadmin fa ارسال نامه ها به
forward only emailadmin fa فقط ارسال به
global options emailadmin fa گزینه های عمومی
imap admin password admin fa گذرواژه مدیر IMAP
imap admin user admin fa کاربر مدیر IMAP
imap server hostname or ip address emailadmin fa نام میزبان یا نشانی IP کارگزار IMAP
imap server logintyp emailadmin fa نوع ورود کارگزار IMAP
imap server port emailadmin fa درگاه کارگزار IMAP
imap/pop3 server name emailadmin fa نام کارگزار IMAP/POP3
in mbyte emailadmin fa به مگابایت
leave empty for no quota emailadmin fa برای بدون سهمیه بودن، خالی بگذارید
mail settings admin fa تنظیمات نامه
name of organisation emailadmin fa نام سازمان
no alternate email address emailadmin fa بدون نشانی نامه الکترونیکی دیگر
no forwarding email address emailadmin fa بدون نشانی نامه الکترونیکی ارسال به دیگری
order emailadmin fa ترتیب
organisation emailadmin fa سازمان
pop3 server hostname or ip address emailadmin fa نام میزبان یا نشانی IP کارگزار POP3
pop3 server port emailadmin fa درگاه کارگزار POP3
profile access rights emailadmin fa حقوق دسترسی مجموعه تنظیمات
profile list emailadmin fa لیست مجموعه تنظیمات
profile name emailadmin fa نام مجموعه تنظیمات
qouta size in mbyte emailadmin fa اندازه سهمیه به مگابایت
quota settings emailadmin fa تنظیمات سهمیه
remove emailadmin fa حذف
select type of imap/pop3 server emailadmin fa نوع کارگزار IMAP/POP3 را انتخاب کنید
select type of smtp server emailadmin fa نوع کارگزار SMTP را انتخاب کنید
server settings emailadmin fa تنظیمات کارگزار
sieve server hostname or ip address emailadmin fa نام میزبان یا نشانی IP کارگزار Sieve
sieve server port emailadmin fa درگاه کارگزار Sieve
sieve settings emailadmin fa تنظیمات Sieve
smtp authentication emailadmin fa تصدیق smtp
smtp server name emailadmin fa نام کارگزار SMTP
smtp settings emailadmin fa تنظیمات smtp
smtp-server hostname or ip address emailadmin fa نشانی IP یا نام میزبان SMTP
smtp-server port emailadmin fa درگاه کارگزار SMTP
standard emailadmin fa استاندارد
standard imap server emailadmin fa کارگزار استاندارد IMAP
standard pop3 server emailadmin fa کارگزار استاندارد POP3
standard smtp-server emailadmin fa کارگزار استاندارد SMTP
use ldap defaults emailadmin fa از پیش فرضهای LDAP استفاده شود
use smtp auth emailadmin fa استفاده از تصدیق در SMTP
users can define their own emailaccounts emailadmin fa کاربران می توانند حسابهای کاربری را خودشان تعریف کنند

151
emailadmin/lang/egw_fi.lang Normal file
View File

@ -0,0 +1,151 @@
%1 entries deleted. emailadmin fi %1 tapahtumaa poistettu
account '%1' not found !!! emailadmin fi Tiliä '%1' ei löytynyt!
active templates emailadmin fi Aktiiviset mallipohjat
add new email address: emailadmin fi Lisää uusi sähköpostiosoite
add profile emailadmin fi Lisää profiili
admin dn emailadmin fi Ylläpitäjän dn
admin password emailadmin fi Ylläpitäjän salasana
admin username emailadmin fi Ylläpitäjän käyttäjätunnus
advanced options emailadmin fi Lisäasetukset
alternate email address emailadmin fi Vaihtoehtoinen sähköpostiosoite
any application emailadmin fi Mikä tahansa sovellus
any group emailadmin fi Mikä tahansa ryhmä
any user emailadmin fi Kuka tahansa käyttäjä
back to admin/grouplist emailadmin fi Takaisin ylläpitoon / Ryhmäluetteloon
back to admin/userlist emailadmin fi Takaisin ylläpitoon / Käyttäjäluetteloon
bad login name or password. emailadmin fi Väärä käyttäjätunnus tai salasana
bad or malformed request. server responded: %s emailadmin fi Väärä tai viallinen pyyntö. %s
bad request: %s emailadmin fi Väärä pyyntö: %s
can be used by application emailadmin fi Sovellukselle
can be used by group emailadmin fi Ryhmälle
can be used by user emailadmin fi Käyttäjälle
connection dropped by imap server. emailadmin fi Yhteys IMAP palvelimeen katkesi.
could not complete request. reason given: %s emailadmin fi Pyyntöä ei voitu toteuttaa. %s
could not open secure connection to the imap server. %s : %s. emailadmin fi Turvattua yhteyttä IMAP palvelimeen ei voitu avata. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin fi CRAM-MD5 tai DIGEST-MD5 käyttö edellyttää Auth_SASL paketin asentamista.
cyrus imap server emailadmin fi Cyrus IMAP -palvelin
cyrus imap server administration emailadmin fi Cyrus IMAP -palvelimen hallinta
default emailadmin fi Oletus
deliver extern emailadmin fi Deliver extern
do not validate certificate emailadmin fi Älä tarkista sertifikaattia
do you really want to delete this profile emailadmin fi Haluatko varmasti poistaa tämän profiilin?
do you really want to reset the filter for the profile listing emailadmin fi Haluatko varmasti uudelleenasettaa suotimen profiililuetteloon?
domainname emailadmin fi Verkkotunnus
edit email settings emailadmin fi Muokkaa sähköpostin asetuksia
email account active emailadmin fi Sähköpostitili käytössä
email address emailadmin fi Sähköpostiosoite
email settings common fi Sähköpostin asetukset
emailadmin emailadmin fi Sähköpostin ylläpito
emailadmin: group assigned profile common fi Sähköpostin ylläpito: Ryhmälle suunnattu profiili
emailadmin: user assigned profile common fi Sähköpostin ylläpito: Käyttäjälle suunnattu profiili
enable cyrus imap server administration emailadmin fi Ota Cyrus IMAP -palvelimen hallinta käyttöön
enable sieve emailadmin fi Ota Sieve käyttöön
encrypted connection emailadmin fi Yhteyden suojaus
encryption settings emailadmin fi Yhteyden suojausasetukset
enter your default mail domain (from: user@domain) emailadmin fi Anna oletusverkkotunnus (käyttäjä@verkkotunnus)
entry saved emailadmin fi Tallennettu
error connecting to imap server. %s : %s. emailadmin fi Virhe yhdistettäessä IMAP palvelimeen. %s : %s.
error connecting to imap server: [%s] %s. emailadmin fi Virhe yhdistettäessä IMAP palvelimeen. [%s] %s.
error deleting entry! emailadmin fi Virhe poistettaessa!
error saving the entry!!! emailadmin fi Virhe tallennettaessa!
filtered by account emailadmin fi Käyttäjätilien mukaan
filtered by group emailadmin fi Ryhmän mukaan
forward also to emailadmin fi Välitä osoitteeseen
forward email's to emailadmin fi Välitä osoitteeseen
forward only emailadmin fi Ainoastaan edelleenlähetys
global options emailadmin fi Yleiset asetukset
if using ssl or tls, you must have the php openssl extension loaded. emailadmin fi Jos SSL tai TLS on käytössä, PHP openssl lisäosa pitää olla ladattuna.
imap admin password admin fi IMAP admin salasana
imap admin user admin fi IMAP admin käyttäjätunnus
imap c-client version < 2001 emailadmin fi IMAP C-Client versio < 2001
imap server closed the connection. emailadmin fi IMAP palvelin katkaisi yhteyden.
imap server closed the connection. server responded: %s emailadmin fi IMAP palvelin katkaisi yhteyden. %s
imap server hostname or ip address emailadmin fi IMAP -palvelimen nimi tai IP-osoite
imap server logintyp emailadmin fi IMAP -palvelimen käyttäjätunnistus
imap server name emailadmin fi IMAP -palvelimen nimi
imap server port emailadmin fi IMAP -palvelimen portti
imap/pop3 server name emailadmin fi IMAP / POP3 -palvelimen nimi
in mbyte emailadmin fi Megatavua
inactive emailadmin fi Ei käytössä
ldap basedn emailadmin fi LDAP basedn
ldap server emailadmin fi LDAP -palvelin
ldap server accounts dn emailadmin fi LDAP -tunnusten DN
ldap server admin dn emailadmin fi LDAP -ylläpidon DN
ldap server admin password emailadmin fi LDAP -hallinnan salasana
ldap server hostname or ip address emailadmin fi LDAP -palvelimen nimi tai IP-osoite
ldap settings emailadmin fi LDAP -asetukset
leave empty for no quota emailadmin fi Jätä tyhjäksi, jos ei rajoiteta
mail settings admin fi Sähköpostin asetukset
manage stationery templates emailadmin fi Hallitse sähköpostin taustakuvamallipohjia
name of organisation emailadmin fi Organisaation nimi
no alternate email address emailadmin fi Ei vaihtoehtoista osoitetta
no encryption emailadmin fi Ei suojausta
no forwarding email address emailadmin fi Välityksen sähköpostiosoitetta ei löytynyt
no message returned. emailadmin fi Viestiä ei palautettu
no supported imap authentication method could be found. emailadmin fi Tuettua IMAP tunnistustapaa ei löydetty.
order emailadmin fi Järjestys
organisation emailadmin fi Organisaatio
plesk can't rename users --> request ignored emailadmin fi Plesk ei voi nimetä käyttäjiä --> pyyntö hylätty
plesk imap server (courier) emailadmin fi Plesk IMAP palvelin (Courier)
plesk mail script '%1' not found !!! emailadmin fi Plesk sähköpostiskriptiä '%1' ei löydy !!!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin fi Plesk:n salasanassa pitää olla vähintään 5 merkkiä, eikä se saa olla käyttäjätilin nimi --> salasanaa EI ole asetettu !!!
plesk smtp-server (qmail) emailadmin fi Plesk SMTP-palvelin (Qmail)
pop3 server hostname or ip address emailadmin fi POP3 -palvelimen nimi tai IP-osoite
pop3 server port emailadmin fi POP3 -palvelimen portti
postfix with ldap emailadmin fi Postfix ja LDAP
profile access rights emailadmin fi Profiilin käyttöoikeudet
profile is active emailadmin fi Profiili on aktiivinen
profile list emailadmin fi Profiileiluettelo
profile name emailadmin fi Profiilin nimi
qmaildotmode emailadmin fi qmaildotmode
qouta size in mbyte emailadmin fi Tallennuskiintiö Mt
quota settings emailadmin fi Tallennuskiintiön asetukset
remove emailadmin fi Poista
reset filter emailadmin fi Poista suodatin
select type of imap server emailadmin fi Valitse IMAP -palvelimen tyyppi
select type of imap/pop3 server emailadmin fi Valitse IMAP / POP3 -palvelimen tyyppi
select type of smtp server emailadmin fi Valitse SMTP -palvelimen tyyppi
send using this email-address emailadmin fi Lähetä käyttäen tätä sähköpostiosoitetta
server settings emailadmin fi Palvelimen asetukset
sieve server hostname or ip address emailadmin fi Sieve -palvelimen nimi tai IP-osoite
sieve server port emailadmin fi Sieve -palvelimen portti
sieve settings emailadmin fi Sieven asetukset
smtp authentication emailadmin fi SMTP -tunnistus
smtp options emailadmin fi SMTP -asetukset
smtp server name emailadmin fi SMTP -palvelimen nimi
smtp settings emailadmin fi SMTP -asetukset
smtp-server hostname or ip address emailadmin fi SMTP -palvelimen nimi tai IP-osoite
smtp-server port emailadmin fi SMTP -palvelimen portti
standard emailadmin fi Vakio
standard imap server emailadmin fi Vakio IMAP -palvelin
standard pop3 server emailadmin fi Vakio POP3 -palvelin
standard smtp-server emailadmin fi Vakio SMTP -palvelin
starts with emailadmin fi Alkaa:
stationery emailadmin fi Sähköpostin taustakuvamallipohjat
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin fi IMAP palvelimelta ei löydy tukea valitulle tunnistusmuodolle, ota yhteyttä järjestelmän pääkäyttäjään.
this php has no imap support compiled in!! emailadmin fi Tämä PHP ei sisällä IMAP tukea!!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin fi Käyttääksesi TLS yhteyttä, sinulla pitää olla käytössä PHP 5.1.0 tai uudempi versio.
unexpected response from server to authenticate command. emailadmin fi Odottamaton vastaus palvelimen AUTHENTICATE komennolta.
unexpected response from server to digest-md5 response. emailadmin fi Odottamaton vastaus palvelimen Digest-MD5 vastauksesta.
unexpected response from server to login command. emailadmin fi Odottamaton vastaus palvelimen LOGIN komennolta.
unknown imap response from the server. server responded: %s emailadmin fi Tuntematon IMAP vastaus palvelimelta. Palvelin vastasi: %s
unsupported action '%1' !!! emailadmin fi Toiminto, jota ei tueta '%1' !!!
update current email address: emailadmin fi Päivitä nykyinen sähköpostiosoite:
use ldap defaults emailadmin fi Käytä LDAP -oletuksia
use predefined username and password defined below emailadmin fi Käytä esimääriteltyä käyttäjänimeä ja salasanaa
use smtp auth emailadmin fi Käytä SMTP -käyttäjätunnistusta
use tls authentication emailadmin fi Käytä TLS -käyttäjätunnistusta
use tls encryption emailadmin fi Käytä TLS -salausta
use users email-address (as seen in useraccount) emailadmin fi Käytä käyttäjän sähköpostiosoitetta
user can edit forwarding address emailadmin fi Käyttäjä voi muokata välitys osoitetta
userid@domain eg. u1234@domain emailadmin fi käyttäjätunnus@verkkotunnus
username (standard) emailadmin fi Käyttäjätunnus (standardi)
username/password defined by admin emailadmin fi Ylläpidon määrittelemä käyttäjätunnus/salasana
username@domainname (virtual mail manager) emailadmin fi käyttäjätunnus@verkkotunnus (Virtual MAIL ManaGeR)
users can define their own emailaccounts emailadmin fi Käyttäjät voivat määritellä omia sähköpostitilejä
users can define their own identities emailadmin fi Käyttäjät voivat määritellä omia identiteettejä
users can define their own signatures emailadmin fi Käyttäjät voivat määritellä omia allekirjoituksia
users can utilize these stationery templates emailadmin fi Käyttäjät voivat määritellä omia sähköpostin taustakuvamallipohjia
vaction messages with start- and end-date require an admin account to be set! emailadmin fi Lomavastaajaviestit alkamis- ja loppumispäiväyksellä vaativat ylläpitotilin asetuksen.
virtual mail manager emailadmin fi Virtual MAIL ManaGeR
you have received a new message on the emailadmin fi Sinulle on uusi viesti

122
emailadmin/lang/egw_fr.lang Normal file
View File

@ -0,0 +1,122 @@
account '%1' not found !!! emailadmin fr Le compte %1 n'a pas été trouvé!!!
add new email address: emailadmin fr Ajouter une nouvelle adresse email:
add profile emailadmin fr Ajouter un profil
admin dn emailadmin fr DN administrateur
admin password emailadmin fr Mot de passe administrateur
admin username emailadmin fr Nom d'utilisateur de l'administrateur
advanced options emailadmin fr Options avancées
alternate email address emailadmin fr Adresse email alternative
any application emailadmin fr Toutes les applications
any group emailadmin fr Tous les groupes
bad login name or password. emailadmin fr ID login ou mot de passe erroné
bad or malformed request. server responded: %s emailadmin fr Requête invalide ou erronnée. Réponse serveur: %s
bad request: %s emailadmin fr Requête invalide: %s
can be used by application emailadmin fr Peut être utilisée par application
can be used by group emailadmin fr Peut être utilisée par groupe
connection dropped by imap server. emailadmin fr Connexion interrompue par le Serveur IMAP.
could not complete request. reason given: %s emailadmin fr Impossible d'effectuer la requête. Raison invoquée: %s
could not open secure connection to the imap server. %s : %s. emailadmin fr Impossible d'ouvrir la connexion sécurisée avec le serveur IMAP. %s: %s
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin fr CRAM-MD5 ou DIGEST-MD5 requiert l'installation du progiciel Auth_SASL
cyrus imap server emailadmin fr Serveur Cyrus IMAP
cyrus imap server administration emailadmin fr Administration du serveur Cyrus IMAP
default emailadmin fr défaut
deliver extern emailadmin fr Relai de messagerie
do not validate certificate emailadmin fr ne pas valider le certificat
do you really want to delete this profile emailadmin fr Voulez-vous vraiment supprimer ce profil?
domainname emailadmin fr Nom de domaine
edit email settings emailadmin fr Modifier les paramètres de messagerie
email account active emailadmin fr Compte de messagerie actif
email address emailadmin fr Adresse de messagerie
email settings common fr Paramètres de messagerie
emailadmin emailadmin fr Administration de la messagerie
enable cyrus imap server administration emailadmin fr Activer la gestion du serveur Cyrus IMAP
enable sieve emailadmin fr Activer Sieve
encrypted connection emailadmin fr connexion chiffrée
encryption settings emailadmin fr Paramètres de chiffrement
enter your default mail domain (from: user@domain) emailadmin fr Introduisez votre domaine par défaut (utilisateur@domaine.com)
error connecting to imap server. %s : %s. emailadmin fr Erreur de connexion avec le serveur IMAP. %s: %s.
error connecting to imap server: [%s] %s. emailadmin fr Erreur de connexion avec le serveur IMAP. [%s] %s.
forward also to emailadmin fr Transférer aussi à
forward email's to emailadmin fr Transférer les emails à
forward only emailadmin fr Seulement transférer
global options emailadmin fr Options globales
if using ssl or tls, you must have the php openssl extension loaded. emailadmin fr Si vous utilisez SSl ou TLS, vous devez avoir chargé l'extension PHP openssl
imap admin password admin fr Mot de passe de l'administrateur IMAP
imap admin user admin fr ID administrateur IMAP
imap c-client version < 2001 emailadmin fr IMAP C-Client Version < 2001
imap server closed the connection. emailadmin fr Le serveur IMAP a interrompu la connexion.
imap server closed the connection. server responded: %s emailadmin fr Le serveur IMAP a interrompu la connexion. Réponse du serveur: %s.
imap server hostname or ip address emailadmin fr Nom du serveur IMAP ou adresse IP
imap server logintyp emailadmin fr Type d'authentification IMAP
imap server name emailadmin fr Nom du serveur IMAP
imap server port emailadmin fr Port IMAP
imap/pop3 server name emailadmin fr Nom du serveur IMAP/POP3
in mbyte emailadmin fr en Mo
ldap basedn emailadmin fr LDAP DN de base
ldap server emailadmin fr LDAP Serveur
ldap server accounts dn emailadmin fr LDAP DN contenant les comptes utilisateurs
ldap server admin dn emailadmin fr LDAP DN administrateur
ldap server admin password emailadmin fr LDAP Mot de passe administateur
ldap server hostname or ip address emailadmin fr LDAP Nom du serveur ou adresse IP
ldap settings emailadmin fr LDAP Paramètres
leave empty for no quota emailadmin fr Laisser vide pour ne pas avoir de quota
mail settings admin fr Paramètres de messagerie
name of organisation emailadmin fr Nom de l'entreprise
no alternate email address emailadmin fr Pas d'adresse email alternative
no encryption emailadmin fr pas de chiffrement
no forwarding email address emailadmin fr Pas d'adresse email de transfert
no message returned. emailadmin fr Aucun message n'est retourné.
no supported imap authentication method could be found. emailadmin fr Il n'a été trouvé aucune méthode d'authentification IMAP supportée
order emailadmin fr Ordre
organisation emailadmin fr Organisation
plesk can't rename users --> request ignored emailadmin fr Plesk ne peut pas renommer les utilisateurs --> requête ignorée
plesk imap server (courier) emailadmin fr Serveur IMAP Plesk (Courier)
plesk mail script '%1' not found !!! emailadmin fr Le script email Plesk '%1' introuvable!!!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin fr Plesk requiert des mots de passe d'au moins 5 caractères qui ne comprennent pas le nom du compte --> le mot de passe n'est PAS fixé!!!
plesk smtp-server (qmail) emailadmin fr Serveur SMTP Plesk (Qmail)
pop3 server hostname or ip address emailadmin fr Nom ou adresse IP du POP3
pop3 server port emailadmin fr Port POP3
postfix with ldap emailadmin fr Postfix avec support LDAP
profile access rights emailadmin fr droits d'accès du profil
profile list emailadmin fr Liste des profils
profile name emailadmin fr Nom de profil
qmaildotmode emailadmin fr qmaildotmode
qouta size in mbyte emailadmin fr Taille du quota en Mo
quota settings emailadmin fr Paramètres de quota
remove emailadmin fr Supprimer
select type of imap server emailadmin fr Sélectionner le type de serveur IMAP
select type of imap/pop3 server emailadmin fr Sélectionner le type de serveur IMAP/POP3
select type of smtp server emailadmin fr Sélectionner le type de serveur SMTP
server settings emailadmin fr Configuration du serveur
sieve server hostname or ip address emailadmin fr Nom ou adresse IP du serveur Sieve
sieve server port emailadmin fr Port Sieve
sieve settings emailadmin fr Paramètres Sieve
smtp authentication emailadmin fr Authentication SMTP
smtp options emailadmin fr Options SMTP
smtp server name emailadmin fr Nom du serveur SMTP
smtp settings emailadmin fr Paramètres SMTP
smtp-server hostname or ip address emailadmin fr Nom ou adresse IP du serveur SMTP
smtp-server port emailadmin fr Port SMTP
standard emailadmin fr Standard
standard imap server emailadmin fr Serveur IMAP standard
standard pop3 server emailadmin fr Serveur POP3 standard
standard smtp-server emailadmin fr Serveur SMTP standard
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin fr Le serveur IMAP ne supporterait pas la méthode d'authentication sélectionnée. Veuillez contacter votre administrateur système.
this php has no imap support compiled in!! emailadmin fr Ce PHP ne comprend pas de support IMAP!!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin fr Pour utiliser une connexion TLS, vous devez utiliser une version PHP 5.1.0 ou plus élevée.
unexpected response from server to authenticate command. emailadmin fr Réponse inattendue du serveur à la commande AUTHENTICATE.
unexpected response from server to digest-md5 response. emailadmin fr Réponse inattendue du serveur à la réponse Digest-MD5.
unexpected response from server to login command. emailadmin fr Réponse inattendue du serveur à la commande LOGIN.
unknown imap response from the server. server responded: %s emailadmin fr Réponse IMAP inconnue du serveur. Le serveur a répondu: %s
unsupported action '%1' !!! emailadmin fr Action '%1' non supportée!!!
update current email address: emailadmin fr Mettre à jour l'adresse email actuelle:
use ldap defaults emailadmin fr Utiliser les paramètres LDAP par défaut
use smtp auth emailadmin fr Utiliser l'authentification SMTP
use tls authentication emailadmin fr Utiliser l'authentification TLS
use tls encryption emailadmin fr Utiliser le cryptage TLS
user can edit forwarding address emailadmin fr L'utilisateur peut modifier l'adresse de transfert.
username (standard) emailadmin fr nom de l'utilisateur (standard)
username@domainname (virtual mail manager) emailadmin fr utilisateur@domaine (Virtual MAIL ManaGeR)
users can define their own emailaccounts emailadmin fr Les utilisateurs peuvent définir leurs propres comptes de messagerie
users can define their own signatures emailadmin fr les utilisateurs peuvent définir leurs propres signatures
virtual mail manager emailadmin fr Virtual MAIL ManaGeR

68
emailadmin/lang/egw_hr.lang Executable file
View File

@ -0,0 +1,68 @@
add profile emailadmin hr Add Profile
admin dn emailadmin hr admin dn
admin password emailadmin hr admin password
admin username emailadmin hr admin username
advanced options emailadmin hr advanced options
alternate email address emailadmin hr alternate email address
cyrus imap server emailadmin hr Cyrus IMAP Server
cyrus imap server administration emailadmin hr Cyrus IMAP server administration
default emailadmin hr default
deliver extern emailadmin hr deliver extern
do you really want to delete this profile emailadmin hr Do you really want to delete this Profile
domainname emailadmin hr domainname
edit email settings emailadmin hr edit email settings
email account active emailadmin hr email account active
email address emailadmin hr email address
enable cyrus imap server administration emailadmin hr enable Cyrus IMAP server administration
enable sieve emailadmin hr enable Sieve
enter your default mail domain (from: user@domain) emailadmin hr Enter your default mail domain (from: user@domain)
forward also to emailadmin hr forward also to
forward email's to emailadmin hr forward email's to
forward only emailadmin hr forward only
imap admin password admin hr IMAP admin password
imap admin user admin hr IMAP admin user
imap server hostname or ip address emailadmin hr IMAP server hostname or ip address
imap server logintyp emailadmin hr IMAP server login type
imap server port emailadmin hr IMAP server port
imap/pop3 server name emailadmin hr IMAP/POP3 server name
in mbyte emailadmin hr in MByte
ldap basedn emailadmin hr LDAP basedn
ldap server emailadmin hr LDAP server
ldap server accounts dn emailadmin hr LDAP server accounts DN
ldap server admin dn emailadmin hr LDAP server admin DN
ldap server admin password emailadmin hr LDAP server admin password
ldap server hostname or ip address emailadmin hr LDAP server hostname or ip address
ldap settings emailadmin hr LDAP settings
leave empty for no quota emailadmin hr leave empty for no quota
mail settings admin hr Mail settings
name of organisation emailadmin hr Name of organization
no alternate email address emailadmin hr no alternate email address
no forwarding email address emailadmin hr no forwarding email address
pop3 server hostname or ip address emailadmin hr POP3 server hostname or ip address
pop3 server port emailadmin hr POP3 server port
postfix with ldap emailadmin hr Postfix with LDAP
profile list emailadmin hr Profile List
profile name emailadmin hr Profile Name
qmaildotmode emailadmin hr qmaildotmode
qouta size in mbyte emailadmin hr qouta size in MByte
quota settings emailadmin hr quota settings
remove emailadmin hr remove
select type of imap/pop3 server emailadmin hr Select type of IMAP/POP3 server
select type of smtp server emailadmin hr Select type of SMTP Server
sieve server hostname or ip address emailadmin hr Sieve server hostname or ip address
sieve server port emailadmin hr Sieve server port
sieve settings emailadmin hr Sieve settings
smtp server name emailadmin hr SMTP server name
smtp-server hostname or ip address emailadmin hr SMTP server hostname or IP address
smtp-server port emailadmin hr SMTP server port
standard emailadmin hr Standard
standard imap server emailadmin hr Standard IMAP server
standard pop3 server emailadmin hr Standard POP3 server
standard smtp-server emailadmin hr Standard SMTP server
use ldap defaults emailadmin hr use LDAP defaults
use smtp auth emailadmin hr Use SMTP auth
use tls authentication emailadmin hr Use TLS authentication
use tls encryption emailadmin hr Use TLS encryption
users can define their own emailaccounts emailadmin hr Users can define their own email accounts
virtual mail manager emailadmin hr Virtual MAIL ManaGeR
IMAP C-Client Version < 2001 emailadmin hr IMAP C-Client Version < 2001

143
emailadmin/lang/egw_hu.lang Normal file
View File

@ -0,0 +1,143 @@
account '%1' not found !!! emailadmin hu '%1' felhasználói azonosító nem található!
active templates emailadmin hu Aktív vázlatok
add new email address: emailadmin hu Új email cím hozzáadása:
add profile emailadmin hu Profil hozzáadása
admin dn emailadmin hu Admin dn
admin password emailadmin hu adminisztrátor jelszava
admin username emailadmin hu adminisztrátor neve
advanced options emailadmin hu haladó beállítások
alternate email address emailadmin hu alternatív emailcím
any application emailadmin hu Bármelyik modul
any group emailadmin hu Bármelyik csoport
any user emailadmin hu bármely felhasználó
back to admin/grouplist emailadmin hu Vissza az csoportok adminisztráláshoz
back to admin/userlist emailadmin hu Vissza a felhasználók adminisztráláshoz
bad login name or password. emailadmin hu Hibás belépési név vagy jelszó.
bad or malformed request. server responded: %s emailadmin hu Hibás kérés. Szerver válasza: %s
bad request: %s emailadmin hu Hibás kérés: %s
can be used by application emailadmin hu Ez a modul használhatja
can be used by group emailadmin hu Ez a csoport használhatja
can be used by user emailadmin hu a felhasználó alkalmazhatja
connection dropped by imap server. emailadmin hu A kapcsolatot az IMAP szerver eldobta.
could not complete request. reason given: %s emailadmin hu Kérést nem lehet teljesíteni. Az ok: %s
could not open secure connection to the imap server. %s : %s. emailadmin hu Nem létesíthető titkos csatorna az IMAP szerverhez. %s : %s
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin hu CRAM-MD5 vagy DIGEST-MD5 használatához az Auth_SASL csomagot telepíteni kell.
cyrus imap server emailadmin hu Cyrus IMAP-kiszolgáló
cyrus imap server administration emailadmin hu Cyrus IMAP-kiszolgáló adminisztrációja
default emailadmin hu Alapértelmezett
deliver extern emailadmin hu külső kézbesítés
do not validate certificate emailadmin hu ne ellenőrizze a tanúsítványt
do you really want to delete this profile emailadmin hu Valóban törölni kívánja ezt a profilt
do you really want to reset the filter for the profile listing emailadmin hu Valóban törölni szeretnéd a profillista szűrőt?
domainname emailadmin hu tartománynév
edit email settings emailadmin hu email beállítások szerkesztése
email account active emailadmin hu email azonosító aktív
email address emailadmin hu email cím
email settings common hu Email beállítások
emailadmin emailadmin hu EmailAdmin
emailadmin: group assigned profile common hu eMailAdmin: csoport a profilhoz hozzárendelve
emailadmin: user assigned profile common hu eMailAdmin: felhasználó a profilhoz hozzárendelve
enable cyrus imap server administration emailadmin hu Cyrus IMAP-kiszolgáló adminisztrációjának engedélyezése
enable sieve emailadmin hu Sieve engedélyezése
encrypted connection emailadmin hu titkosított kapcsolat
encryption settings emailadmin hu Titkosítás beállításai
enter your default mail domain (from: user@domain) emailadmin hu Adja meg az alapértelmezett levelezési tartományt (a felhasználó@tartomány-ból)
error connecting to imap server. %s : %s. emailadmin hu Hiba történt az IMAP szerverhez csatlakozás közben. %s : %s
error connecting to imap server: [%s] %s. emailadmin hu Hiba történt az IMAP szerverhez csatlakozás közben. [%s ]: %s
filtered by account emailadmin hu Fiók szerint szűrve
filtered by group emailadmin hu Csoport szerint szűrve
forward also to emailadmin hu továbbítsd ide is
forward email's to emailadmin hu email továbbítása ide
forward only emailadmin hu továbbítás csak ide
global options emailadmin hu Globális opciók
if using ssl or tls, you must have the php openssl extension loaded. emailadmin hu SSL vagy TLS használatához a PHP openssl kiterjesztését telepíteni kell.
imap admin password admin hu IMAP adminisztrátor jelszava
imap admin user admin hu IMAP adminisztrátor felhasználóneve
imap c-client version < 2001 emailadmin hu IMAP C-Client verzió < 2001
imap server closed the connection. emailadmin hu Az IMAP szerver lezárta a kapcsolatot.
imap server closed the connection. server responded: %s emailadmin hu Az IMAP szerver lezárta a kapcsolatot: %s
imap server hostname or ip address emailadmin hu IMAP szerver hosztneve vagy IP címe
imap server logintyp emailadmin hu IMAP szerver bejelentkezési típusa
imap server name emailadmin hu IMAP szerver neve
imap server port emailadmin hu IMAP szerver portja
imap/pop3 server name emailadmin hu IMAP/POP3 szerver neve
in mbyte emailadmin hu MBájtban
inactive emailadmin hu inaktív
ldap basedn emailadmin hu LDAP basedn
ldap server emailadmin hu LDAP szerver
ldap server accounts dn emailadmin hu LDAP szerver accounts DN
ldap server admin dn emailadmin hu LDAP szerver admin DN
ldap server admin password emailadmin hu LDAP szerver adminisztrátorának jelszava
ldap server hostname or ip address emailadmin hu LDAP szerver hosztneve vagy IP címe
ldap settings emailadmin hu LDAP beállítások
leave empty for no quota emailadmin hu hagyja üresen a kvóta figyelmen kívül hagyásához
mail settings admin hu Levelezési beállítások
manage stationery templates emailadmin hu Irodaszer minták kezelése
name of organisation emailadmin hu Szervezet neve
no alternate email address emailadmin hu nincs alternatív email cím
no encryption emailadmin hu titkosítás nélkül
no forwarding email address emailadmin hu nincs továbbküldési email cím
no message returned. emailadmin hu Nincs visszaadott üzenet.
no supported imap authentication method could be found. emailadmin hu Nem található támogatott IMAP hitelesítés.
order emailadmin hu Rendezés
organisation emailadmin hu Szervezet
plesk can't rename users --> request ignored emailadmin hu A Plesk nem tudja átnevezni a felhasználókat -> kérés figyelmen kívül hagyva
plesk imap server (courier) emailadmin hu Plesk IMAP Szerver (Courier)
plesk mail script '%1' not found !!! emailadmin hu Plesk levél szkript '%1' nem található!!!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin hu Plesk megköveteli, hogy a jelszó legalább 5 karakter legyen és ne tartalmazza a felhasználói nevet --> jelszó beállítása NEM történt meg!!!
plesk smtp-server (qmail) emailadmin hu Plesk SMTP-Szerver (Qmail)
pop3 server hostname or ip address emailadmin hu POP3 szerver hosztneve vagy IP címe
pop3 server port emailadmin hu POP3 szerver portja
postfix with ldap emailadmin hu Postfix LDAP-vel
profile access rights emailadmin hu profil elérési jogosultságok
profile is active emailadmin hu a profil inaktív
profile list emailadmin hu Profil lista
profile name emailadmin hu Profilnév
qmaildotmode emailadmin hu qmaildotmode
qouta size in mbyte emailadmin hu kvóta mérete Megabájtban
quota settings emailadmin hu kvóta beállításai
remove emailadmin hu eltávolítás
reset filter emailadmin hu szűrö törlése
select type of imap server emailadmin hu IMAP szerver típusának kiválasztása
select type of imap/pop3 server emailadmin hu Válassza ki az IMAP/POP3 szerver típusát
select type of smtp server emailadmin hu Válassza ki az SMTP szerver típusát
send using this email-address emailadmin hu Küldés erről az e-mail címről
server settings emailadmin hu Szerver beállítások
sieve server hostname or ip address emailadmin hu Sieve szerver hosztneve vagy IP címe
sieve server port emailadmin hu Sieve szerver port
sieve settings emailadmin hu SIEVE beállítások
smtp authentication emailadmin hu SMTP azonosítás
smtp options emailadmin hu SMTP opciók
smtp server name emailadmin hu SMTP szerver neve
smtp settings emailadmin hu SMTP beállítások
smtp-server hostname or ip address emailadmin hu SMTP szerver hosztneve vagy IP címe
smtp-server port emailadmin hu SMTP szerver portja
standard emailadmin hu Szabványos
standard imap server emailadmin hu Szabványos IMAP-kiszolgáló
standard pop3 server emailadmin hu Szabványos POP3-kiszolgáló
standard smtp-server emailadmin hu Szabványos SMTP-kiszolgáló
stationery emailadmin hu Irodaszer
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin hu Az IMAP szerver úgy tűnik nem támogatja a kiválasztott hitelesítést. Lépjen kapcsolatba az adminisztrátorral.
this php has no imap support compiled in!! emailadmin hu A használt PHP verzió nem tartalmaz IMAP támogatást! (telepíteni kell)
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin hu TLS kapcsolat használatához legalább PHP 5.1.0-val kell rendelkeznie.
unexpected response from server to authenticate command. emailadmin hu Váratlan válasz a szervertől az AUTHENTICATE parancsra.
unexpected response from server to digest-md5 response. emailadmin hu Váratlan válasz a szervertől a Digest-MD5 parancsra.
unexpected response from server to login command. emailadmin hu Váratlan válasz a szervertől a LOGIN parancsra.
unknown imap response from the server. server responded: %s emailadmin hu Váratlan válasz a szervertől: %s
unsupported action '%1' !!! emailadmin hu Nem támogatott művelet '%1' !!!
update current email address: emailadmin hu Jelenlegi email cím frissítése:
use ldap defaults emailadmin hu használja az LDAP alapbeállításokat
use predefined username and password defined below emailadmin hu Használd a lent megadott felhasználónevet és jelszót
use smtp auth emailadmin hu SMTP hitelesítés használata
use tls authentication emailadmin hu TLS hitelesítés használata
use tls encryption emailadmin hu TLS kódolás használata
user can edit forwarding address emailadmin hu Felhasználó szerkesztheti a továbbításkor a címeket
username (standard) emailadmin hu felhasználó név (standard)
username/password defined by admin emailadmin hu Az adminisztrátok által meghatározott felhasználó és jelszó
username@domainname (virtual mail manager) emailadmin hu felhasználónév@tartománynév (Virtual MAIL ManaGeR)
users can define their own emailaccounts emailadmin hu A felhasználók saját maguk állíthatják be az email postafiókjaikat
users can define their own identities emailadmin hu A felhasználók beállíthatják a saját azonosítójukat
users can define their own signatures emailadmin hu A felhasználók beállíthatják a saját aláírásukat
users can utilize these stationery templates emailadmin hu A felhasználók alkalmazhatják az irodaszer mintákat
vaction messages with start- and end-date require an admin account to be set! emailadmin hu A házon kívül üzenet érvényességi dátumának megadása adminisztrátor szintű hozzáférést igényel!
virtual mail manager emailadmin hu Virtuális MAIL ManaGeR

View File

@ -0,0 +1,86 @@
%1 entries deleted. emailadmin id %1 entri dihapus.
account '%1' not found !!! emailadmin id Akoun '%1' tidak ditemukan !!!
active templates emailadmin id Templat yang aktif
add new email address: emailadmin id Tambah alamat email baru:
add profile emailadmin id Tambah Profil
admin dn emailadmin id Admin dn
admin password emailadmin id Password Admin
admin username emailadmin id Nama Admin
advanced options emailadmin id Opsi Canggih
alternate email address emailadmin id Alamat email pengganti
any application emailadmin id Semua aplikasi
any group emailadmin id Semua kelompok
any user emailadmin id semua pengguna
back to admin/grouplist emailadmin id Kembali ke Admin/Daftar Kelompok
back to admin/userlist emailadmin id Kembali ke Admin/Daftar pengguna
bad login name or password. emailadmin id Nama atau password tidak benar.
could not open secure connection to the imap server. %s : %s. emailadmin id Could not open secure connection to the IMAP server. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin id CRAM-MD5 or DIGEST-MD5 requires the Auth_SASL package to be installed.
cyrus imap server emailadmin id Server Cyrus IMAP
cyrus imap server administration emailadmin id Administrasi server Cyrus IMAP
default emailadmin id bawaan
deliver extern emailadmin id pengiriman eksternal
domainname emailadmin id Nama Domain
edit email settings emailadmin id Edit pengaturan email
email account active emailadmin id Akoun Email aktif
email address emailadmin id Alamat Email
email settings common id Pengaturan Email
emailadmin emailadmin id AdminEMail
emailadmin: group assigned profile common id AdminEMail: Profil menurut kelompok
emailadmin: user assigned profile common id AdminEMail: Profil menurut pengguna
enable sieve emailadmin id Bolehkan Sieve
encrypted connection emailadmin id koneksi ter-enkripsi
encryption settings emailadmin id Pengaturan Enkripsi
enter your default mail domain (from: user@domain) emailadmin id Berikan nama domain email anda (dari: pengguna@domain)
filtered by account emailadmin id saringan menurut Akoun
filtered by group emailadmin id saringan menurut Kelompok
forward only emailadmin id Hanya Forward
global options emailadmin id Opsi Global
imap admin password admin id password admin IMAP
imap admin user admin id admin IMAP
imap c-client version < 2001 emailadmin id IMAP C-Client Version < 2001
in mbyte emailadmin id dalam MByte
inactive emailadmin id tidak aktif
ldap basedn emailadmin id LDAP basedn
ldap server emailadmin id LDAP server
ldap settings emailadmin id Pengaturan LDAP
leave empty for no quota emailadmin id kosongkan bila tanpa kuota
mail settings admin id Pengaturan Mail
name of organisation emailadmin id Nama Organisasi
no alternate email address emailadmin id tanpa alamat email pengganti
no encryption emailadmin id tanpa enkripsi
order emailadmin id Urutan
organisation emailadmin id Organisasi
profile list emailadmin id Daftar Profil
profile name emailadmin id Nama Profil
qmaildotmode emailadmin id qmaildotmode
qouta size in mbyte emailadmin id Kuota dalam MByte
quota settings emailadmin id Pengaturan Kuota
remove emailadmin id Buang
reset filter emailadmin id ulangi penyaringan
select type of imap server emailadmin id Pilih tipe Server IMAP
select type of imap/pop3 server emailadmin id Pilih tipe Server IMAP/POP3
select type of smtp server emailadmin id Pilih tipe Server SMTP
send using this email-address emailadmin id kirim menggunakan alamat eMail ini
server settings emailadmin id Pengaturan Server
sieve server hostname or ip address emailadmin id Sieve server hostname or ip address
sieve server port emailadmin id Sieve server port
sieve settings emailadmin id Pengaturan Sieve
smtp authentication emailadmin id Otentikasi SMTP
smtp options emailadmin id Opsi SMTP
smtp server name emailadmin id Nama server SMTP
smtp settings emailadmin id Pengaturan SMTP
smtp-server hostname or ip address emailadmin id Nama atau alamat IP server SMTP
smtp-server port emailadmin id Port server SMTP
standard emailadmin id Standar
standard imap server emailadmin id Server IMAP Standar
standard pop3 server emailadmin id Server POP3 Standar
standard smtp-server emailadmin id Server SMTP Standar
starts with emailadmin id diawali dengan
stationery emailadmin id Stationery
unexpected response from server to login command. emailadmin id Unexpected response from server to LOGIN command.
update current email address: emailadmin id Memperbarui alamat email saat ini:
username (standard) emailadmin id namapengguna (standar)
username/password defined by admin emailadmin id Namapengguna/Password dibuat oleh admin
username@domainname (virtual mail manager) emailadmin id username@domainname (Virtual MAIL ManaGeR)
virtual mail manager emailadmin id Virtual MAIL ManaGeR

View File

@ -0,0 +1,97 @@
account '%1' not found !!! emailadmin it Account '%1' non trovato !!!
add profile emailadmin it Aggiungi Profilo
admin dn emailadmin it dn amministratore
admin password emailadmin it password amministratore
admin username emailadmin it username amministratore
advanced options emailadmin it opzioni avanzate
alternate email address emailadmin it indirizzo email alternativo
any application emailadmin it ogni applicazione
any group emailadmin it ogni gruppo
bad login name or password. emailadmin it Nome utente o password errati.
bad or malformed request. server responded: %s emailadmin it Richiesta errata o mal composta. Il Server ha risposto: %s
bad request: %s emailadmin it Richiesta errata: %s
can be used by application emailadmin it può essere usato da applicazione
can be used by group emailadmin it può essere usato da gruppo
connection dropped by imap server. emailadmin it Connessione interrotta dal sever IMAP.
could not complete request. reason given: %s emailadmin it Impossibile completare la richiesta. Motivazione data: %s
could not open secure connection to the imap server. %s : %s. emailadmin it Non è possibile aprire una connessione sicura al server IMAP. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin it CRAM-MD5 o DIGEST-MD5 richiede che il pacchetto Auth_SASL sia installato.
cyrus imap server emailadmin it Server IMAP Cyrus
cyrus imap server administration emailadmin it Amministrazione Server IMAP Cyrus
default emailadmin it predefinito
do you really want to delete this profile emailadmin it Vuoi davvero cancellare questo Profilo
domainname emailadmin it nome dominio
edit email settings emailadmin it modifica impostazioni email
email account active emailadmin it account email attivo
email address emailadmin it indirizzo email
email settings common it Impostazioni email
emailadmin emailadmin it Gestione Email
enable cyrus imap server administration emailadmin it abilita amministrazione Server IMAP Cyrus
enable sieve emailadmin it abilita Sieve
encryption settings emailadmin it impostazioni cifratura
enter your default mail domain (from: user@domain) emailadmin it Inserisci il tuo dominio di posta predefinito (da: utente@dominio)
error connecting to imap server. %s : %s. emailadmin it Errore in connessione al server IMAP. %s : %s.
error connecting to imap server: [%s] %s. emailadmin it Errore in connessione al server IMAP: [%s] %s.
forward also to emailadmin it Inoltra anche a
forward email's to emailadmin it Inoltra email a
forward only emailadmin it Inoltra solo
global options emailadmin it Opzioni globali
imap admin password admin it Password amministratore IMAP
imap admin user admin it User amministratore IMAP
imap c-client version < 2001 emailadmin it Versione C-Cliente < 2001
imap server hostname or ip address emailadmin it Nome Host o IP del server IMAP
imap server logintyp emailadmin it Tipo login server IMAP
imap server port emailadmin it Porta server IMAP
imap/pop3 server name emailadmin it Nome server IMAP/POP3
in mbyte emailadmin it in MByte
ldap basedn emailadmin it LDAP basedn
ldap server emailadmin it server LDAP
ldap server accounts dn emailadmin it DN account server LDAP
ldap server admin dn emailadmin it DN amministratore server LDAP
ldap server admin password emailadmin it password amministratore server LDAP
ldap server hostname or ip address emailadmin it Nome host o IP server LDAP
ldap settings emailadmin it impostazioni LDAP
leave empty for no quota emailadmin it lascia vuoto per nessuna quota
mail settings admin it Impostazioni Posta
name of organisation emailadmin it Nome dell'organizzazione
no alternate email address emailadmin it nessun indirizzo email alternativo
no forwarding email address emailadmin it nessun indirizzo email di inoltro
no message returned. emailadmin it nessun messaggio ricevuto
order emailadmin it ordine
organisation emailadmin it organizzazione
pop3 server hostname or ip address emailadmin it Nome host o IP server POP3
pop3 server port emailadmin it porta server POP3
postfix with ldap emailadmin it Postfix con LDAP
profile access rights emailadmin it diritti di accesso profilo
profile list emailadmin it Elenco Profili
profile name emailadmin it Nome Profilo
qmaildotmode emailadmin it qmaildotmode
qouta size in mbyte emailadmin it dimensione quota in MByte
quota settings emailadmin it impostazioni quota
remove emailadmin it rimuovi
select type of imap/pop3 server emailadmin it Seleziona il tipo si server IMAP/POP3
select type of smtp server emailadmin it Seleziona il tipo di server SMTP
server settings emailadmin it impostazioni server
sieve server hostname or ip address emailadmin it Nome host o IP server Sieve
sieve server port emailadmin it porta server Sieve
sieve settings emailadmin it impostazioni SIeve
smtp authentication emailadmin it autenticazione smtp
smtp options emailadmin it opzioni smtp
smtp server name emailadmin it nome server SMTP
smtp settings emailadmin it impostazioni smtp
smtp-server hostname or ip address emailadmin it Nome host o IP server SMTP
smtp-server port emailadmin it porta server SMTP
standard emailadmin it Standard
standard imap server emailadmin it Server IMAP standard
standard pop3 server emailadmin it Server POP3 standard
standard smtp-server emailadmin it Server SMTP standard
unsupported action '%1' !!! emailadmin it Azione non supportata '%1' !!!
use ldap defaults emailadmin it usa predefiniti LDAP
use smtp auth emailadmin it usa autenticazione SMTP
use tls authentication emailadmin it usa autenticazione TLS
use tls encryption emailadmin it usa crittografia TLS
user can edit forwarding address emailadmin it l'utente può modificare indirizzo di inoltro
username (standard) emailadmin it nome utente (standard)
username@domainname (virtual mail manager) emailadmin it nomeutente@nome dominio (ManaGeR MAIL Virtuale)
users can define their own emailaccounts emailadmin it Gli utenti possono definire i propri account email
virtual mail manager emailadmin it ManaGeR MAIL Virtuale

68
emailadmin/lang/egw_iw.lang Executable file
View File

@ -0,0 +1,68 @@
add profile emailadmin iw הוסף פרופיל
admin dn emailadmin iw של המנהל dn
admin password emailadmin iw סיסמת מנהל
admin username emailadmin iw שם משתמש של המנהל
advanced options emailadmin iw אופציות מתקדמות
alternate email address emailadmin iw כתובת דואר אלקטרוני חילופי
cyrus imap server emailadmin iw Cyrus IMAP שרת
cyrus imap server administration emailadmin iw Cyrus IMAP ניהול שרת
default emailadmin iw ברירת מחדל
deliver extern emailadmin iw מסירה חיצונית
do you really want to delete this profile emailadmin iw בטוח שברצונך למחוק פרופיל זה
domainname emailadmin iw שם הדומיין
edit email settings emailadmin iw ערוך הגדרות דואר אלקטרוני
email account active emailadmin iw חשבון דואר אלקטרוני פעיל
email address emailadmin iw כתובת דואר אלקטרוני
enable cyrus imap server administration emailadmin iw Cyrus IMAP איפשור ניהול שרת
enable sieve emailadmin iw Sieve אישפור
enter your default mail domain (from: user@domain) emailadmin iw (user@domain :ציין את דומיין דואר המחדלי שלך (לדוגמא
forward also to emailadmin iw להעביר גם אל
forward email's to emailadmin iw להעביר דואר אלקטרוני אל
forward only emailadmin iw העבר בלבד
imap admin password admin iw IMAP סיסמת ניהול
imap admin user admin iw IMAP שם מנהל
imap c-client version < 2001 emailadmin iw IMAP C-Client Version < 2001
imap server hostname or ip address emailadmin iw שלו IP- או כתובת הIMAP שם שרת
imap server logintyp emailadmin iw IMAP סוג כניסה לשרת
imap server port emailadmin iw IMAP פורט שרת
imap/pop3 server name emailadmin iw IMAP/POP3 שם שרת
in mbyte emailadmin iw MB-ב
ldap basedn emailadmin iw dn הביסי של LDAP
ldap server emailadmin iw LDAP שרת
ldap server accounts dn emailadmin iw LDAP של שרת חשבונות DN
ldap server admin dn emailadmin iw LDAP מנהל שרת של DN
ldap server admin password emailadmin iw LDAP סיסמה של מנהל שרת
ldap server hostname or ip address emailadmin iw IP או כתובת LDAP שם שרת
ldap settings emailadmin iw LDAP הגדרות
leave empty for no quota emailadmin iw השאר ריק ללא הקצאה
mail settings admin iw הגדרות דואר
name of organisation emailadmin iw שם האירגון
no alternate email address emailadmin iw אין כתובת דואר אלקטרוני חלופי
no forwarding email address emailadmin iw אין כתובת להעברת דואר אלקטרוני
pop3 server hostname or ip address emailadmin iw IP או כתובת pop3 שם שרת
pop3 server port emailadmin iw POP3 פורט שרת
postfix with ldap emailadmin iw LDAP עם Postfix
profile list emailadmin iw רשימת פרופילים
profile name emailadmin iw שם פרופיל
qmaildotmode emailadmin iw qmaildotmode
qouta size in mbyte emailadmin iw MB-גודל הקצאה ב
quota settings emailadmin iw הגדרות הקצאה
remove emailadmin iw הסר
select type of imap/pop3 server emailadmin iw IMAP/POP3 בחר סוג שרת
select type of smtp server emailadmin iw SMTP בחר סוג שרת
sieve server hostname or ip address emailadmin iw IP או כתובת Sieve שם שרת
sieve server port emailadmin iw Sieve פורט שרת
sieve settings emailadmin iw Sieve הגדרות
smtp server name emailadmin iw SMTP שם שרת
smtp-server hostname or ip address emailadmin iw IP או כתובת SMTP שם שרת
smtp-server port emailadmin iw SMTP פורת שרת
standard emailadmin iw תקני
standard imap server emailadmin iw תקני IMAP שרת
standard pop3 server emailadmin iw תקני POP3 שרת
standard smtp-server emailadmin iw תקני SMTP שרת
use ldap defaults emailadmin iw LDAP השתמש בברירות מחדל של
use smtp auth emailadmin iw LDAP השתמש באימות משתמשים של
use tls authentication emailadmin iw TLS השתמש באימות
use tls encryption emailadmin iw TLS השתמש בהצפנת
users can define their own emailaccounts emailadmin iw משתמשים יכולים להגדיר בעצמם את חשבונות דואר האלקטרוני שלהם
virtual mail manager emailadmin iw מלהל דואר וירטואלי

View File

@ -0,0 +1 @@

View File

@ -0,0 +1,61 @@
add profile emailadmin lv Pievienot profilu
admin dn emailadmin lv administratora dn
admin password emailadmin lv administratora parole
admin username emailadmin lv administratora lietotājvārds
advanced options emailadmin lv uzlabotās iespējas
alternate email address emailadmin lv alternatīvas e-pasta adreses
cyrus imap server emailadmin lv Cyrus IMAP serveris
cyrus imap server administration emailadmin lv Cyrus IMAP servera administrēšana
default emailadmin lv noklusējums
do you really want to delete this profile emailadmin lv Vai tu tiešām vēlies dzēst šo profilu?
domainname emailadmin lv domēna vārds
edit email settings emailadmin lv rediģēt e-pasta uzstādījumus
email account active emailadmin lv e-pasta konts aktīvs
email address emailadmin lv e-pasta adrese
enable cyrus imap server administration emailadmin lv atļaut Cyrus IMAP servera administrēšanu
enable sieve emailadmin lv atļaut Sieve
enter your default mail domain (from: user@domain) emailadmin lv Ievadi noklusēto pasta domēnu (no: lietotājs@domēns)
forward also to emailadmin lv pārsūtīt arī
forward email's to emailadmin lv pārsūtīt e-pasta vēstules
forward only emailadmin lv tikai pārsūtīt
imap admin password admin lv IMAP administratora parole
imap admin user admin lv IMAP administrators
imap c-client version < 2001 emailadmin lv IMAP C-Client Version <2001
imap server hostname or ip address emailadmin lv IMAP servera hosta vārds vai IP adrese
imap server logintyp emailadmin lv IMAP servera autorizācijas veids
imap server port emailadmin lv IMAP servera ports
imap/pop3 server name emailadmin lv IMAP/POP3 servera nosaukums
ldap basedn emailadmin lv LDAP bāzes dn
ldap server emailadmin lv LDAP serveris
ldap server accounts dn emailadmin lv LDAP servera konti DN
ldap server admin dn emailadmin lv LDAP servera administratora DN
ldap server admin password emailadmin lv LDAP servera administratora parole
ldap server hostname or ip address emailadmin lv LDAP servera hosta vārds vai IP adrese
ldap settings emailadmin lv LDAP uzstādījumi
mail settings admin lv Pasta uzstādījumi
name of organisation emailadmin lv Organizācijas nosaukums
no alternate email address emailadmin lv nav alternatīvas e-pasta adreses
no forwarding email address emailadmin lv nav pārsūtāmās e-pasta adreses
pop3 server hostname or ip address emailadmin lv POP3 servera hosta vārds vai IP adrese
pop3 server port emailadmin lv POP3 servera ports
profile list emailadmin lv Profila saraksts
profile name emailadmin lv Profila vārds
remove emailadmin lv pārvietot
select type of imap/pop3 server emailadmin lv Atzīmēt IMAP/POP3 servera tipu
select type of smtp server emailadmin lv Atzīmēt SMTP servera tipu
sieve server hostname or ip address emailadmin lv <b>?Sieve?</b> servera hosta vārds vai IP adrese
sieve server port emailadmin lv Sieve servera ports
sieve settings emailadmin lv Sieve uzstadījumi
smtp server name emailadmin lv SMTP servera nosaukums
smtp-server hostname or ip address emailadmin lv SMTP servera hosta vārds vai IP adrese
smtp-server port emailadmin lv SMTP servera ports
standard emailadmin lv Standarta
standard imap server emailadmin lv Standarta IMAP serveris
standard pop3 server emailadmin lv Standarta POP3 serveris
standard smtp-server emailadmin lv Standarta SMTP serveris
use ldap defaults emailadmin lv lieto LDAP noklusējumus
use smtp auth emailadmin lv Lieto SMTP autentifikāciju
use tls authentication emailadmin lv Lieto TLS autentifikāciju
use tls encryption emailadmin lv Lieto TLS šifrēšanu
users can define their own emailaccounts emailadmin lv LIetotāji paši var definēt savus e-pasta kontus
virtual mail manager emailadmin lv VIrtuālais MAIL ManaGeR

138
emailadmin/lang/egw_nl.lang Normal file
View File

@ -0,0 +1,138 @@
account '%1' not found !!! emailadmin nl Account '%1' niet gevonden !!!
add new email address: emailadmin nl Voeg nieuw emailadres toe:
add profile emailadmin nl Profiel toevoegen
admin dn emailadmin nl admin dn
admin password emailadmin nl Admin wachtwoord
admin username emailadmin nl Admin gebruikersnaam
advanced options emailadmin nl Geavanceerde opties
alternate email address emailadmin nl Alternatief emailadres
any application emailadmin nl Iedere toepassing
any group emailadmin nl Iedere groep
any user emailadmin nl iedere gebruiker
back to admin/grouplist emailadmin nl Terug naar Beheer/Groepslijst
back to admin/userlist emailadmin nl Terug naar Beheer/Gebruikerslijst
bad login name or password. emailadmin nl Ongeldige login of paswoord
bad or malformed request. server responded: %s emailadmin nl Ongeldig of slecht geformuleerde aanvraag. Server reageerde: %s
bad request: %s emailadmin nl Slechte vraag: %s
can be used by application emailadmin nl Kan gebruikt worden door toepassing
can be used by group emailadmin nl Kan gebruikt worden door groep
can be used by user emailadmin nl kan door gebruiker gebruikt worden
connection dropped by imap server. emailadmin nl Verbinding viel uit door IMAP server
could not complete request. reason given: %s emailadmin nl Kan verzoek niet afmaken. Opgegeven reden: %s
could not open secure connection to the imap server. %s : %s. emailadmin nl Kon geen veilige verbinding openen met de IMAP server. %s : %s
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin nl CRAM-MDS of DIGEST-MDS vereist de installatie van het Auth_SASL pakket.
cyrus imap server emailadmin nl Cyrus IMAP-server
cyrus imap server administration emailadmin nl Cyrus IMAP-serverbeheer
default emailadmin nl standaard
deliver extern emailadmin nl bezorg extern
do not validate certificate emailadmin nl het certificaat niet valideren
do you really want to delete this profile emailadmin nl Weet u zeker dat u dit profiel wilt verwijderen
do you really want to reset the filter for the profile listing emailadmin nl Wilt u werkelijk het filter voor de profielenlijst opnieuw instellen
domainname emailadmin nl Domeinnaam
edit email settings emailadmin nl Wijzig emailinstellingen
email account active emailadmin nl Emailaccount actief
email address emailadmin nl Emailadres
email settings common nl Emailinstellingen
emailadmin emailadmin nl EmailAdmin
emailadmin: group assigned profile common nl eMailAdmin: Groep heeft profiel toegewezen gekregen
emailadmin: user assigned profile common nl eMailAdmin: Gebruiker heeft profiel toegewezen gekregen
enable cyrus imap server administration emailadmin nl activier Cyrus IMAP serverbeheer
enable sieve emailadmin nl activeer Sieve
encrypted connection emailadmin nl versleutelde verbinding
encryption settings emailadmin nl encryptie instellingen
enter your default mail domain (from: user@domain) emailadmin nl Voer uw standaard emaildomein in (uit: gebruiker@domein)
error connecting to imap server. %s : %s. emailadmin nl Fout verbinden met de IMAP server. %s : %s
error connecting to imap server: [%s] %s. emailadmin nl Fout verbinden met de IMAP server: [%s] %s
filtered by account emailadmin nl gefilterd op Account
filtered by group emailadmin nl gefilterd op Groep
forward also to emailadmin nl Ook doorsturen naar
forward email's to emailadmin nl Emails doorsturen naar
forward only emailadmin nl Alleen doorsturen
global options emailadmin nl Algemene opties
if using ssl or tls, you must have the php openssl extension loaded. emailadmin nl Indien SSL of TSL wordt gebruikt, moet u de PHP openssl extensie opgeladen hebben
imap admin password admin nl IMAP beheerders wachtwoord
imap admin user admin nl IMAP beheerdersgebruiker
imap c-client version < 2001 emailadmin nl IMAP C-Client Versie < 2001
imap server closed the connection. emailadmin nl IMAP server sloot de verbinding
imap server closed the connection. server responded: %s emailadmin nl IMAP Server sloot de verbinding. Server reageerde: %s
imap server hostname or ip address emailadmin nl IMAP-server hostnaam of IP-adres
imap server logintyp emailadmin nl IMAP-server logintype
imap server name emailadmin nl imap server naam
imap server port emailadmin nl IMAP-serverpoort
imap/pop3 server name emailadmin nl IMAP/POP3-servernaam
in mbyte emailadmin nl in MBytes
inactive emailadmin nl inactief
ldap basedn emailadmin nl LDAP basedn
ldap server emailadmin nl LDAP-server
ldap server accounts dn emailadmin nl LDAP server accounts DN
ldap server admin dn emailadmin nl LDAP server admin DN
ldap server admin password emailadmin nl LDAP-server admin wachtwoord
ldap server hostname or ip address emailadmin nl LDAP-serverhostnaam of IP-adres
ldap settings emailadmin nl LDAP-instellingen
leave empty for no quota emailadmin nl Laat leeg voor geen quota
mail settings admin nl Mailinstellingen
name of organisation emailadmin nl Naam van de Organisatie
no alternate email address emailadmin nl geen alternatief emailadres
no encryption emailadmin nl geen versleuteling
no forwarding email address emailadmin nl geen emailadres om naar door te sturen
no message returned. emailadmin nl Geen bericht teruggekomen.
no supported imap authentication method could be found. emailadmin nl Geen ondersteunde IMAP authenticatiemethode kon gevonden worden.
order emailadmin nl Volgorde
organisation emailadmin nl Organisatie
plesk can't rename users --> request ignored emailadmin nl Plesk kan gebruikers niet hernoemen --> verzoek genegeerd
plesk imap server (courier) emailadmin nl Plesk IMAP Server (Courier)
plesk mail script '%1' not found !!! emailadmin nl Plesk mail script '%1' niet gevonden !!!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin nl Plesk vereist dat wachtwoorden minstens 5 karakters bevatten en niet de accountnaam mogen bevatten --> wachtwoord niet gewijzigd !!!
plesk smtp-server (qmail) emailadmin nl Plesk SMTP-Server (Qmail)
pop3 server hostname or ip address emailadmin nl POP3-server hostnaam of IP-adres
pop3 server port emailadmin nl POP3-serverpoort
postfix with ldap emailadmin nl Postfix met LDAP
profile access rights emailadmin nl profiel toegangsrechten
profile is active emailadmin nl profiel is actief
profile list emailadmin nl Profiellijst
profile name emailadmin nl Profielnaam
qmaildotmode emailadmin nl qmaildotmode
qouta size in mbyte emailadmin nl quota grootte in MBytes
quota settings emailadmin nl Quota-installingen
remove emailadmin nl Verwijderen
reset filter emailadmin nl filter opnieuw instellen
select type of imap server emailadmin nl selecteer IMAP servertype
select type of imap/pop3 server emailadmin nl Selecteer IMAP/POP3-servertype
select type of smtp server emailadmin nl Selecteer SMTP-servertype
server settings emailadmin nl server instellingen
sieve server hostname or ip address emailadmin nl Sieve-serverhostnaam of IP-adres
sieve server port emailadmin nl Sieve-serverpoort
sieve settings emailadmin nl Sieve instellingen
smtp authentication emailadmin nl SMTP authenticatie
smtp options emailadmin nl SMTP opties
smtp server name emailadmin nl SMTP-servernaam
smtp settings emailadmin nl SMTP instellingen
smtp-server hostname or ip address emailadmin nl SMTP-serverhostnaam of IP-adres
smtp-server port emailadmin nl SMTP-serverpoort
standard emailadmin nl Standaard
standard imap server emailadmin nl Standaard IMAP-server
standard pop3 server emailadmin nl Standaard POP3-server
standard smtp-server emailadmin nl Standaard SMTP-server
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin nl The IMAP server blijkt geen authenticatiemethode te ondersteunen. Gelieve uw systeembeheerder te contacteren.
this php has no imap support compiled in!! emailadmin nl Deze PHP heeft geen IMAP ondersteuning verzamelt in!!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin nl Om een TLS verbinding te gebruiken, moet u een versie van PHP 5.1.0 of hoger gebruiken.
unexpected response from server to authenticate command. emailadmin nl Onverwachte reactie van de server om de opdracht te AUTHENTICEREN.
unexpected response from server to digest-md5 response. emailadmin nl Onverwachte reactie van de server op Digest-MD5 reactie.
unexpected response from server to login command. emailadmin nl Onverwachte reactie van de server op LOGIN opdracht.
unknown imap response from the server. server responded: %s emailadmin nl Onverwachte IMAP reactie van de server. Server reageerde: %s
unsupported action '%1' !!! emailadmin nl Niet-ondersteunde actie '%1'
update current email address: emailadmin nl Huidige emailadres bijwerken:
use ldap defaults emailadmin nl gebruik LDAP standaard instellingen
use predefined username and password defined below emailadmin nl Gebruik voorgekozen gebruikersnaam en wachtwoord zoals hieronder is ingesteld
use smtp auth emailadmin nl Gebruik SMTP authenticatie
use tls authentication emailadmin nl Gebruik TLS authenticatie
use tls encryption emailadmin nl Gebruik TLS-encryptie
user can edit forwarding address emailadmin nl Gebruiker kan het doorstuuradres aanpassen
username (standard) emailadmin nl gebruikersnaam (standaard)
username/password defined by admin emailadmin nl Gebruikersnaam/Wachtwoord ingesteld door beheerder
username@domainname (virtual mail manager) emailadmin nl gebruikersnaam@domeinnaam (Virtual MAIL ManaGeR)
users can define their own emailaccounts emailadmin nl Gebruikers kunnen hun eigen emailaccounts definiëren
users can define their own identities emailadmin nl gebruikers kunnen hun eigen identiteit instellen
users can define their own signatures emailadmin nl gebruikers kunnen hun eigen ondertekening instellen
vaction messages with start- and end-date require an admin account to be set! emailadmin nl Afwezigheidsmeldingen met een start- en einddatum vereisen dat een beheerders account is ingesteld!
virtual mail manager emailadmin nl Virtual MAIL ManaGeR

View File

@ -0,0 +1,68 @@
add profile emailadmin no Legg til profil
admin dn emailadmin no Admin dn
admin password emailadmin no Admin passord
admin username emailadmin no Admin brukernavn
advanced options emailadmin no Avanserte valg
alternate email address emailadmin no Alternativ e-mailadresse
cyrus imap server emailadmin no Cyrus IMAP tjener
cyrus imap server administration emailadmin no Cyrys IMAP tjeneradministrasjon
default emailadmin no standard
deliver extern emailadmin no lever eksternt
do you really want to delete this profile emailadmin no Ønsker du virkelig å slette denne profilen
domainname emailadmin no Domenenavn
edit email settings emailadmin no Rediger e-mail oppsett
email account active emailadmin no E-mailkonto aktiv
email address emailadmin no E-mailadresse
enable cyrus imap server administration emailadmin no Tillat Cyrus IMAP-tjener administrasjon
enable sieve emailadmin no Tillat Sieve
enter your default mail domain (from: user@domain) emailadmin no Registrer ditt standard Emaildomene (fra: bruker@domene)
forward also to emailadmin no videresend også til
forward email's to emailadmin no videresend e-mailer til
forward only emailadmin no bare videresending
imap admin password admin no IMAP Administrasjonspassord
imap admin user admin no IMAP Administrasjonsbruker
imap c-client version < 2001 emailadmin no IMAP C-klient versjon < 2001
imap server hostname or ip address emailadmin no Tjenernavn eller IP-adresse for IMAP tjener
imap server logintyp emailadmin no IMAP Tjener påloggingstype
imap server port emailadmin no IMAP Tjenerport
imap/pop3 server name emailadmin no IMAP/POP3 tjenernavn
in mbyte emailadmin no i MByte
ldap basedn emailadmin no LDAP basedn
ldap server emailadmin no LDAP Tjener
ldap server accounts dn emailadmin no LDAP Tjenerkonti DN
ldap server admin dn emailadmin no LDAP Tjeneradmin. DN
ldap server admin password emailadmin no LDAP Tjeneradmin. passord
ldap server hostname or ip address emailadmin no Tjenernavn eller IP-adresse for LDAP tjener
ldap settings emailadmin no LDAP Instillinger
leave empty for no quota emailadmin no La stå tomt for ingen begrensning.
mail settings admin no E-post innstillinger
name of organisation emailadmin no Navn på organisasjon
no alternate email address emailadmin no ingen alternativ e-mailadresse
no forwarding email address emailadmin no ingen e-mailadresse for videresending
pop3 server hostname or ip address emailadmin no Tjenernavn eller IP-adresse for POP3 tjener
pop3 server port emailadmin no POP3 Tjenerport
postfix with ldap emailadmin no Postfix med LDAP
profile list emailadmin no Profilliste
profile name emailadmin no Profilnavn
qmaildotmode emailadmin no qmaildotmodus
qouta size in mbyte emailadmin no Grense Str. i Mbyte
quota settings emailadmin no Grenseinstillinger
remove emailadmin no fjern
select type of imap/pop3 server emailadmin no Velg type for IMAP/POP3 Tjener
select type of smtp server emailadmin no Velg type SMTP Tjener
sieve server hostname or ip address emailadmin no Tjenernavn eller IP-adresse for Sieve-tjener
sieve server port emailadmin no Sieve tjenerport
sieve settings emailadmin no Sieve innstillinger
smtp server name emailadmin no SMTP Tjenernavn
smtp-server hostname or ip address emailadmin no Tjenernavn eller IP-Adresse for SMTP-Tjener
smtp-server port emailadmin no SMTP Tjenerport
standard emailadmin no standard
standard imap server emailadmin no Standard IMAP tjener
standard pop3 server emailadmin no Standard POP3 tjener
standard smtp-server emailadmin no Standard SMTP tjener
use ldap defaults emailadmin no Bruk LDAP standaroppsett
use smtp auth emailadmin no Bruk SMTP autentisering
use tls authentication emailadmin no Bruk TLS autentisering
use tls encryption emailadmin no Bruk TLS kryptering
users can define their own emailaccounts emailadmin no Brukere kan definere egne e-post kontoer
virtual mail manager emailadmin no Virtuell Mail Manager

108
emailadmin/lang/egw_pl.lang Normal file
View File

@ -0,0 +1,108 @@
account '%1' not found !!! emailadmin pl Konto '%1' nie zostało znalezione!
add new email address: emailadmin pl Dodaj nowy adres poczty elektronicznej:
add profile emailadmin pl Dodaj profil
admin dn emailadmin pl DN (nazwa wyróżniająca) administratora
admin password emailadmin pl Hasło administratora
admin username emailadmin pl Nazwa użytkownika konta administratora
advanced options emailadmin pl Ustawienia zaawansowane
alternate email address emailadmin pl Alternatywny adres email
any application emailadmin pl Dowolna aplikacja
any group emailadmin pl Dowolna grupa
bad login name or password. emailadmin pl Zła nazwa użytkownika lub hasło
bad or malformed request. server responded: %s emailadmin pl Nieprawidłowe lub źle skonstruowane żądane. Serwer odpowiedział: %s
bad request: %s emailadmin pl Nieprawidłowe żądanie: %s
can be used by application emailadmin pl Może być używane przez aplikację
can be used by group emailadmin pl Może byc używane przez grupę
connection dropped by imap server. emailadmin pl Połączenie zerwane przez serwer IMAP
could not complete request. reason given: %s emailadmin pl Nie udało się zrealizować żądania. Powód: %s
could not open secure connection to the imap server. %s : %s. emailadmin pl Nie udało się stworzyć bezpiecznego połączenia do serwera IMAP. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin pl CRAM-MD5 lub DIGEST-MD5 wymagają, aby pakiet Auth_SASL (Perl) był zainstalowany
cyrus imap server emailadmin pl Serwer IMAP Cyrus
cyrus imap server administration emailadmin pl Administracja serwerem IMAP Cyrus
default emailadmin pl domyślny
deliver extern emailadmin pl dostarczanie na zewnątrz
do you really want to delete this profile emailadmin pl Czy na pewno chcesz usunąć ten profil?
domainname emailadmin pl Nazwa domeny
edit email settings emailadmin pl Edytuj ustawienia poczty elektronicznej
email account active emailadmin pl Konto poczty aktywne
email address emailadmin pl Adres poczty elektronicznej
email settings common pl Ustawienia poczty elektronicznej
emailadmin emailadmin pl Poczta Elektroniczna - Administracja
enable cyrus imap server administration emailadmin pl aktywuj administrację serwerem IMAP Cyrus
enable sieve emailadmin pl aktywuj sito (Sieve)
encryption settings emailadmin pl ustawienia szyfrowania
enter your default mail domain (from: user@domain) emailadmin pl Wprowadź domyślną domenę pocztową (z użytkownik@domena)
error connecting to imap server. %s : %s. emailadmin pl Błąd połączenia do serwera IMAP. %s : %s
error connecting to imap server: [%s] %s. emailadmin pl Błąd połączenia do serwera IMAP. [%s] %s
forward also to emailadmin pl Prześlij również do
forward email's to emailadmin pl Prześlij wiadomości do
forward only emailadmin pl Prześlij tylko
global options emailadmin pl Ustawienia globalne
if using ssl or tls, you must have the php openssl extension loaded. emailadmin pl Jeżeli korzystasz z SSL lub TLS, musisz zapewnić obsługę OpenSSL w PHP.
imap admin password admin pl Hasło administratora IMAP
imap admin user admin pl Login administratora IMAP
imap c-client version < 2001 emailadmin pl Wersja C-Client IMAP < 2001
imap server closed the connection. emailadmin pl Serwer IMAP zakończył połączenie.
imap server closed the connection. server responded: %s emailadmin pl Serwer IMAP zakończył połączenie. Jego odpowiedź: %s
imap server hostname or ip address emailadmin pl Nazwa hosta lub IP serwera IMAP
imap server logintyp emailadmin pl Sposób logowania do serwera IMAP
imap server port emailadmin pl Port serwera IMAP
imap/pop3 server name emailadmin pl Nazwa serwera IMAP/POP3
in mbyte emailadmin pl w megabajtach
ldap basedn emailadmin pl Bazowy DN w LDAP
ldap server emailadmin pl Serwer LDAP
ldap server accounts dn emailadmin pl DN dla kont w LDAP
ldap server admin dn emailadmin pl DN administratora w LDAP
ldap server admin password emailadmin pl Hasło administratora serwera LDAP
ldap server hostname or ip address emailadmin pl Nazwa hosta lub IP serwera LDAP
ldap settings emailadmin pl Ustawienia LDAP
leave empty for no quota emailadmin pl zostaw puste aby wyłączyć quota
mail settings admin pl Ustawienia poczty elektronicznej
name of organisation emailadmin pl Nazwa lub organizacja
no alternate email address emailadmin pl brak zapasowego adresu e-mail
no encryption emailadmin pl brak szyfrowania
no forwarding email address emailadmin pl brak adresu poczty przesyłanej
no message returned. emailadmin pl Nie otrzymano wiadomości.
no supported imap authentication method could be found. emailadmin pl Nie znaleziono obsługiwanej metody autentykacji dla IMAP
order emailadmin pl Porządek
organisation emailadmin pl Organizacja
pop3 server hostname or ip address emailadmin pl Nazwa hosta lub IP serwera POP3
pop3 server port emailadmin pl Port serwera POP3
postfix with ldap emailadmin pl Postfix z LDAP
profile access rights emailadmin pl prawa dostępu do profilu
profile list emailadmin pl Lista profili
profile name emailadmin pl Nazwa Profilu
qouta size in mbyte emailadmin pl rozmiar quoty w megabajtach
quota settings emailadmin pl ustawnienia quoty
remove emailadmin pl Usuń
select type of imap/pop3 server emailadmin pl Wybierz rodzaj serwera IMAP/POP3
select type of smtp server emailadmin pl Wybierz rodzaj serwera SMTP
server settings emailadmin pl Ustawienia serwera
smtp authentication emailadmin pl Autentykacja SMTP
smtp options emailadmin pl Opcje SMTP
smtp server name emailadmin pl Nazwa serwera SMTP
smtp settings emailadmin pl Ustawienia SMTP
smtp-server hostname or ip address emailadmin pl Nazwa hosta lub IP serwera SMTP
smtp-server port emailadmin pl Port serwera SMTP
standard emailadmin pl Standard
standard imap server emailadmin pl Standardowy serwer IMAP
standard pop3 server emailadmin pl Standardowy serwer POP3
standard smtp-server emailadmin pl Standardowy serwer SMTP
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin pl Serwer IMAP nie obsługuje wskazanej metody autentykacji. Proszę skontaktować się z administratorem.
this php has no imap support compiled in!! emailadmin pl Interpreter PHP nie posiada obsługi IMAP!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin pl Aby skorzystać z połączenia TLS, musisz posiadać wersję PHP 5.1.0 lub wyższą.
unexpected response from server to authenticate command. emailadmin pl Niespodziewana odpowiedź serwera na polecenie AUTHENTICATE.
unexpected response from server to digest-md5 response. emailadmin pl Niespodziewana odpowiedź serwera na zapytanie Digest-MD5
unexpected response from server to login command. emailadmin pl Niespodziewana odpowiedź serwera na polecenie LOGIN.
unknown imap response from the server. server responded: %s emailadmin pl Nieznana odpowiedź z serwera IMAP. Serwer przesłał: %s
unsupported action '%1' !!! emailadmin pl Operacja nieobsługiwana '%1'!
update current email address: emailadmin pl Uaktualnij bieżący adres pocztowy
use ldap defaults emailadmin pl Skorzystaj z domyślnych wartości LDAP
use smtp auth emailadmin pl Skorzystaj z autentykacji SMTP
use tls authentication emailadmin pl Skorzystaj z autentykacji TLS
use tls encryption emailadmin pl Skorzystaj z szyfrowania TLS
user can edit forwarding address emailadmin pl Użytkownik może zmieniać adres przekazywania
username (standard) emailadmin pl login (standardowo)
username@domainname (virtual mail manager) emailadmin pl login@domena (wirtualny zarządca kont)
users can define their own emailaccounts emailadmin pl Użytkownicy mogą definiować swoje własne konta poczty elektronicznej
virtual mail manager emailadmin pl Wirtualny Serwer Pocztowy - zarządca

View File

@ -0,0 +1,138 @@
account '%1' not found !!! emailadmin pt-br Conta '%1' não encontrada !!!
add new email address: emailadmin pt-br Adicionar novo e-mail:
add profile emailadmin pt-br Adicionar Perfil
admin dn emailadmin pt-br dn do administrador
admin password emailadmin pt-br senha do administrador
admin username emailadmin pt-br nome de usuário do administrador
advanced options emailadmin pt-br opções avançadas
alternate email address emailadmin pt-br endereço de e-mail alternativo
any application emailadmin pt-br qualquer aplicação
any group emailadmin pt-br qualquer grupo
any user emailadmin pt-br qualquer usuário
back to admin/grouplist emailadmin pt-br Voltar para Administração/Lista de Grupos
back to admin/userlist emailadmin pt-br Voltar para Administração/Lista de Usuários
bad login name or password. emailadmin pt-br Nome de usuário ou senha inválido(s).
bad or malformed request. server responded: %s emailadmin pt-br Solicitação inválida. Resposta do servidor: %s
bad request: %s emailadmin pt-br Solicitação inválida: %s
can be used by application emailadmin pt-br pode ser usado pela aplicação
can be used by group emailadmin pt-br pode ser usado pelo grupo
can be used by user emailadmin pt-br pode ser usado pelo usuário
connection dropped by imap server. emailadmin pt-br Conexão interrompida pelo servidor IMAP.
could not complete request. reason given: %s emailadmin pt-br Não foi possível completar a solicitação. Resposta do servidor: %s
could not open secure connection to the imap server. %s : %s. emailadmin pt-br Não foi possível abrir conexão segura com o servidor IMAP. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin pt-br CRAM-MD5 ou DIGEST-MD5 necessitam que o pacote Auth_SASL esteja instalado.
cyrus imap server emailadmin pt-br Servidor Cyrus IMAP
cyrus imap server administration emailadmin pt-br Administração do Servidor Cyrus IMAP
default emailadmin pt-br padrão
deliver extern emailadmin pt-br entrega externa
do not validate certificate emailadmin pt-br não validar certificado
do you really want to delete this profile emailadmin pt-br Tem certeza que deseja remover esse perfil?
do you really want to reset the filter for the profile listing emailadmin pt-br Tem certeza que deseja reiniciar o filtro para a listagem do perfil
domainname emailadmin pt-br nome do domínio
edit email settings emailadmin pt-br editar configurações de e-mail
email account active emailadmin pt-br conta de e-mail ativa
email address emailadmin pt-br endrereço de e-mail
email settings common pt-br Configurações do E-mail
emailadmin emailadmin pt-br Administração do E-Mail
emailadmin: group assigned profile common pt-br Administração de eMail: Perfil de Grupo
emailadmin: user assigned profile common pt-br Administração de eMail: Perfil de Usuário
enable cyrus imap server administration emailadmin pt-br habilitar administração do Servidor Cyrus IMAP
enable sieve emailadmin pt-br habilitar Sieve
encrypted connection emailadmin pt-br conexão criptografada
encryption settings emailadmin pt-br configurações de criptografia
enter your default mail domain (from: user@domain) emailadmin pt-br Entre com o domínio de e-mail padrão (de: usuario@dominio)
error connecting to imap server. %s : %s. emailadmin pt-br Erro conectando ao servidor IMAP. %s : %s.
error connecting to imap server: [%s] %s. emailadmin pt-br Erro conectando ao servidor IMAP: [%s] %s.
filtered by account emailadmin pt-br filtrado por Conta
filtered by group emailadmin pt-br filtrado por Grupo
forward also to emailadmin pt-br encaminhar também para
forward email's to emailadmin pt-br encaminhar mensagens para
forward only emailadmin pt-br encaminhar somente
global options emailadmin pt-br opções globais
if using ssl or tls, you must have the php openssl extension loaded. emailadmin pt-br Se estiver usando SSL ou TLS, você deverá ter a extensão PHP 'openssl' carretada.
imap admin password admin pt-br Senha do administrador IMAP
imap admin user admin pt-br Usuário administrador do IMAP
imap c-client version < 2001 emailadmin pt-br IMAP C-Cliente Versão < 2001
imap server closed the connection. emailadmin pt-br O servidor IMAP fechou a conexão.
imap server closed the connection. server responded: %s emailadmin pt-br O servidor IMAP fechou a conexão. Resposta do servidor: %s
imap server hostname or ip address emailadmin pt-br Nome ou IP do servidor IMAP
imap server logintyp emailadmin pt-br Tipo de login do servidor IMAP
imap server name emailadmin pt-br nome do servidor imap
imap server port emailadmin pt-br Porta do servidor IMAP
imap/pop3 server name emailadmin pt-br Nome do servidor IMAP/POP3
in mbyte emailadmin pt-br em Mbytes
inactive emailadmin pt-br inativo
ldap basedn emailadmin pt-br DN Base do LDAP
ldap server emailadmin pt-br Servidor LDAP
ldap server accounts dn emailadmin pt-br Contas DN de servidores LDAP
ldap server admin dn emailadmin pt-br Administrador DN de servidor LDAP
ldap server admin password emailadmin pt-br Senha do administrador DN de servidor LDAP
ldap server hostname or ip address emailadmin pt-br Nome ou endereço IP do servidor LDAP
ldap settings emailadmin pt-br Configurações do LDAP
leave empty for no quota emailadmin pt-br deixe em branco para nenhuma quota
mail settings admin pt-br Configurações de E-Mail
name of organisation emailadmin pt-br Nome da organização
no alternate email address emailadmin pt-br sem conta de e-mail alternativa
no encryption emailadmin pt-br sem criptografia
no forwarding email address emailadmin pt-br sem conta de e-mail para encaminhar
no message returned. emailadmin pt-br Nenhuma mensagem retornada.
no supported imap authentication method could be found. emailadmin pt-br Nenhum método de autenticação IMAP suportado pôde ser encontrado.
order emailadmin pt-br ordem
organisation emailadmin pt-br organização
plesk can't rename users --> request ignored emailadmin pt-br Plesk não pode renomear usuários --> solicitação ignorada
plesk imap server (courier) emailadmin pt-br Servidor IMAP Plesk (Courier)
plesk mail script '%1' not found !!! emailadmin pt-br Script de e-mail Plesk '%1' não encontrado !!!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin pt-br Plesk exige que senhas tenha no mínimo 5 caracteres e não contenham o nome da conta --> senha NÃO configurada!!!
plesk smtp-server (qmail) emailadmin pt-br Servidor SMTP Plesk (Qmail)
pop3 server hostname or ip address emailadmin pt-br Nome ou endereço IP do servidor POP3
pop3 server port emailadmin pt-br Porta do servidor POP3
postfix with ldap emailadmin pt-br Postfix com LDAP
profile access rights emailadmin pt-br direito de acesso aos perfis
profile is active emailadmin pt-br perfil está ativo
profile list emailadmin pt-br Lista de perfis
profile name emailadmin pt-br Nome do perfil
qmaildotmode emailadmin pt-br modo dos arquivos qmail (.qmail)
qouta size in mbyte emailadmin pt-br tamanho da quota em MBytes
quota settings emailadmin pt-br configurações de quota
remove emailadmin pt-br remover
reset filter emailadmin pt-br reiniciar filtro
select type of imap server emailadmin pt-br selecione o tipo de servidor IMAP
select type of imap/pop3 server emailadmin pt-br Selecione o tipo de servidor IMAP/POP3
select type of smtp server emailadmin pt-br Selecione o tipo de servidor SMTP
server settings emailadmin pt-br configurações do servidor
sieve server hostname or ip address emailadmin pt-br Nome ou endereço IP do servidor Sieve
sieve server port emailadmin pt-br Porta do Servidor Sieve
sieve settings emailadmin pt-br Configurações Sieve
smtp authentication emailadmin pt-br autenticação smtp
smtp options emailadmin pt-br opções smtp
smtp server name emailadmin pt-br Nome do Servidor SMTP
smtp settings emailadmin pt-br configurações SMTP
smtp-server hostname or ip address emailadmin pt-br Nome ou endereço IP do servidor SMTP
smtp-server port emailadmin pt-br Porta do servidor SMTP
standard emailadmin pt-br Padrão
standard imap server emailadmin pt-br Servidor IMAP padrão
standard pop3 server emailadmin pt-br Servidor POP3 padrão
standard smtp-server emailadmin pt-br Servidor SMTP padrão
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin pt-br O servidor IMAP não parece suportar o método de autenticação selecionado. Por favor contacte o administrador do seu sistema.
this php has no imap support compiled in!! emailadmin pt-br Este PHP não tem suporte a IMAP compilado nele!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin pt-br Para usar uma conexão TLS, você deve estar rodando PHP versão 5.1.0 ou maior.
unexpected response from server to authenticate command. emailadmin pt-br Resposta inesperada do servidor para o comando AUTHENTICATE.
unexpected response from server to digest-md5 response. emailadmin pt-br Resposta inesperada do servidor para a resposta Digest-MD5.
unexpected response from server to login command. emailadmin pt-br Resposta inesperada do servidor para o comando LOGIN.
unknown imap response from the server. server responded: %s emailadmin pt-br Resposta desconhecida do servidor IMAP. Resposta do servidor: %s
unsupported action '%1' !!! emailadmin pt-br Ação não suportada: '%1' !!!
update current email address: emailadmin pt-br Atualizar e-mail atual:
use ldap defaults emailadmin pt-br usar padrões LDAP
use predefined username and password defined below emailadmin pt-br Usar usuário e senha pré-definidos abaixo
use smtp auth emailadmin pt-br usar SMTP Autenticado
use tls authentication emailadmin pt-br Usar autenticação TLS
use tls encryption emailadmin pt-br Usar encriptação TLS
user can edit forwarding address emailadmin pt-br usuário pode editar endereço de encaminhamento
username (standard) emailadmin pt-br nome do usuário (padrão)
username/password defined by admin emailadmin pt-br Nome de usuário/Senha definidos pelo administrador
username@domainname (virtual mail manager) emailadmin pt-br nomedousuario@nomedodominio (Gerenciador Virtual Mail)
users can define their own emailaccounts emailadmin pt-br Os usuários podem definir sua próprias contas de correio
users can define their own identities emailadmin pt-br usuários podem definir suas próprias identidades
users can define their own signatures emailadmin pt-br usuários podem definir suas próprias assinaturas
vaction messages with start- and end-date require an admin account to be set! emailadmin pt-br Mensagens de ausência com datas de início e término necessitam de uma conta de administrador para serem definidas!
virtual mail manager emailadmin pt-br Gerenciador Virtual Mail

View File

@ -0,0 +1,85 @@
add profile emailadmin pt Adicionar perfil
admin dn emailadmin pt DN do administrador
admin password emailadmin pt Senha do administrador
admin passwort emailadmin pt Senha do administrador
admin username emailadmin pt Nome do utilizador do administrador
advanced options emailadmin pt Opções avançadas
alternate email address emailadmin pt Endereço de correio electrónico alternativo
any application emailadmin pt Qualquer aplicação
any group emailadmin pt Qualquer grupo
can be used by application emailadmin pt Pode ser utilizado pela aplicação
can be used by group emailadmin pt Pode ser utilizado pelo grupo
cyrus imap server emailadmin pt Servidor IMAP Cyrus
cyrus imap server administration emailadmin pt Administração do servidor IMAP Cyrus
default emailadmin pt Por omissão
deliver extern emailadmin pt Entrega externa
do you really want to delete this profile emailadmin pt Deseja relamente eliminar este perfil
domainname emailadmin pt Nome de domínio
edit email settings emailadmin pt Editar configurações do correio electrónico
email account active emailadmin pt Conta de correio electrónico activa
email address emailadmin pt Endereço de correio electrónico
enable cyrus imap server administration emailadmin pt Activar administração do servidor IMAP Cyrus
enable sieve emailadmin pt Activar Sieve
encryption settings emailadmin pt Definições de cifragem
enter your default mail domain (from: user@domain) emailadmin pt Insira o seu domínio de correio electrónico por omissão (de: utilizador@domínio)
forward also to emailadmin pt Reencaminhar também para
forward email's to emailadmin pt Reencaminhar mensagens para
forward only emailadmin pt Reencaminhar apenas
global options emailadmin pt Opções gerais
imap admin password admin pt Senha do administrador IMAP
imap admin user admin pt Utilizador do administrador IMAP
imap c-client version < 2001 emailadmin pt Versão C-Client IMAP < 2001
imap server hostname or ip address emailadmin pt Nome do servidor ou endereço IP do servidor IMAP
imap server logintyp emailadmin pt Tipo de acesso do servidor IMAP
imap server port emailadmin pt Porto do servidor IMAP
imap/pop3 server name emailadmin pt Nome do servidor IMAP/POP3
in mbyte emailadmin pt em MBytes
ldap basedn emailadmin pt Base DN LDAP
ldap server emailadmin pt Servidor LDAP
ldap server accounts dn emailadmin pt DN das contas de servidor LDAP
ldap server admin dn emailadmin pt DN do administrador de servidor LDAP
ldap server admin password emailadmin pt Senha do administrador de servidor LDAP
ldap server hostname or ip address emailadmin pt Nome do servidor ou endereço IP do servidor LDAP
ldap settings emailadmin pt Configurações do LDAP
leave empty for no quota emailadmin pt Deixar vazio para quota sem limites
mail settings admin pt Configurações do correio electrónico
name of organisation emailadmin pt Nome da empresa
no alternate email address emailadmin pt Sem endereço de correio electrónico alternativo
no forwarding email address emailadmin pt Sem endereço de correio electrónico para reencaminhamento
order emailadmin pt Ordem
organisation emailadmin pt Empresa
pop3 server hostname or ip address emailadmin pt Nome do servidor ou endereço IP do servidor POP3
pop3 server port emailadmin pt Porto de servidor POP3
postfix with ldap emailadmin pt Postfix com LDAP
profile access rights emailadmin pt Perfil de direitos de acesso
profile list emailadmin pt Lista de perfis
profile name emailadmin pt Nome do perfil
qmaildotmode emailadmin pt Quota do correio electrónico no modo Idot
qouta size in mbyte emailadmin pt Quota em MBytes
quota settings emailadmin pt Configurações da quota
remove emailadmin pt Remover
select type of imap/pop3 server emailadmin pt Seleccionar tipo de servidor IMAP/POP3
select type of smtp server emailadmin pt Seleccionar tipo de servidor SMTP
server settings emailadmin pt Definições do servidor
sieve server hostname or ip address emailadmin pt Nome do servidor ou endereço IP do servidor Sieve
sieve server port emailadmin pt Porto do servidor Sieve
sieve settings emailadmin pt Configurações do SIeve
smtp authentication emailadmin pt Autenticação SMTP
smtp options emailadmin pt Opções do SMTP
smtp server name emailadmin pt Nome do servidor SMTP
smtp settings emailadmin pt Definições do SMTP
smtp-server hostname or ip address emailadmin pt Nome do servidor ou endereço IP do servidor SMTP
smtp-server port emailadmin pt Porto do servidor SMTP
standard emailadmin pt Por omissão
standard imap server emailadmin pt Servidor IMAP por omissão
standard pop3 server emailadmin pt Servidor POP3 por omissão
standard smtp-server emailadmin pt Servidor SMTP por omissão
use ldap defaults emailadmin pt Utilizar definições por omissão do LDAP
use smtp auth emailadmin pt Utilizar autenticação SMTP
use tls authentication emailadmin pt Utilizar autenticação TLS
use tls encryption emailadmin pt Utilizar cifra TLS
user can edit forwarding address emailadmin pt O utilizador pode editar endereços reencaminhados
username (standard) emailadmin pt Nome de utilizador (por omissão)
username@domainname (virtual mail manager) emailadmin pt utilizador@dominio (Gestor virtual de correio electrónico)
users can define their own emailaccounts emailadmin pt Os utilizadores podem definir as suas contas de correio electrónico
virtual mail manager emailadmin pt Gestor virtual de correio electrónico

134
emailadmin/lang/egw_ru.lang Normal file
View File

@ -0,0 +1,134 @@
account '%1' not found !!! emailadmin ru Учетная запись '%1' не найдена !!!
add new email address: emailadmin ru Добавить новый адрес эл. почты:
add profile emailadmin ru Добавить Профиль
admin dn emailadmin ru DN администратора
admin password emailadmin ru Пароль администратора
admin username emailadmin ru Имя входа администратора
advanced options emailadmin ru Расширенные настройки
alternate email address emailadmin ru Добавочный адрес эл. почты
any application emailadmin ru Любое приложение
any group emailadmin ru Любая группа
any user emailadmin ru любой пользователь
back to admin/userlist emailadmin ru Назад к Администрированию/Списку пользователей
bad login name or password. emailadmin ru Неверное имя пользователя или пароль.
bad or malformed request. server responded: %s emailadmin ru Неверный или нераспознанный запрос. Ответ Сервера: %s
bad request: %s emailadmin ru Неверный запрос: %s
can be used by application emailadmin ru Может быть использовано приложением
can be used by group emailadmin ru Может быть использовано группой
can be used by user emailadmin ru может быть использовано пользователем
connection dropped by imap server. emailadmin ru Соединение разорвано сервером IMAP
could not complete request. reason given: %s emailadmin ru Не могу завершить запрос. Возможная Причина: %s
could not open secure connection to the imap server. %s : %s. emailadmin ru Не могу установть защищенное соединение с сервером IMAP. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin ru CRAM-MD5 и DIGEST-MD5 требуют установленного пакета Auth_SASL.
cyrus imap server emailadmin ru IMAP сервер Cyrus
cyrus imap server administration emailadmin ru администрирование IMAP сервера Cyrus
default emailadmin ru по-умолчанию
deliver extern emailadmin ru доставить внешний (снаружи?)
do not validate certificate emailadmin ru не проверять сертификат
do you really want to delete this profile emailadmin ru Вы уверенны, что хотите удалить этот Профиль
do you really want to reset the filter for the profile listing emailadmin ru Вы уверены что хотите очистить фильтр для создания списка Профилей
domainname emailadmin ru ИмяДомена
edit email settings emailadmin ru Редактировать настройки почты
email account active emailadmin ru Учетная запись включена
email address emailadmin ru Адрес эл. почты
email settings common ru Настройки почты
emailadmin emailadmin ru АдминПочты
enable cyrus imap server administration emailadmin ru включить администрирование IMAP сервера Cyrus
enable sieve emailadmin ru Включить Sieve
encrypted connection emailadmin ru зашифрованное соединение
encryption settings emailadmin ru Настройки шифрования
enter your default mail domain (from: user@domain) emailadmin ru Укажите ваш почтовый домен по умолчанию (от: user@domain)
error connecting to imap server. %s : %s. emailadmin ru Ошибка соединения с сервером IMAP. %s : %s.
error connecting to imap server: [%s] %s. emailadmin ru Ошибка соединения с сервером IMAP: [%s] %s.
filtered by account emailadmin ru отфильтровано по Учетной записи
forward also to emailadmin ru Направить также в
forward email's to emailadmin ru Направлять письма в
forward only emailadmin ru Только перенаправлять
global options emailadmin ru Общие настройки
if using ssl or tls, you must have the php openssl extension loaded. emailadmin ru При использовании SSL или TLS, у вас должен быть PHP с загруженным расширением openssl
imap admin password admin ru пароль администратора IMAP
imap admin user admin ru Пользователь IMAP с правами администратора(?)
imap c-client version < 2001 emailadmin ru Версия C-клиента IMAP < 2001
imap server closed the connection. emailadmin ru Сервер IMAP разорвал соединение.
imap server closed the connection. server responded: %s emailadmin ru Сервер IMAP разорвал соединение. Сервер сообщил: %s
imap server hostname or ip address emailadmin ru Имя сервера IMAP или его ip-адрес
imap server logintyp emailadmin ru Тип входа сервера IMAP
imap server name emailadmin ru Название сервера imap
imap server port emailadmin ru порт сервера IMAP
imap/pop3 server name emailadmin ru название сервера IMAP/POP3
in mbyte emailadmin ru в МБайтах
inactive emailadmin ru неактивно
ldap basedn emailadmin ru начальный DN LDAP
ldap server emailadmin ru сервер LDAP
ldap server accounts dn emailadmin ru DN учетных записей сервера LDAP
ldap server admin dn emailadmin ru DN администратора сервера LDAP
ldap server admin password emailadmin ru Пароль администратора сервера LDAP
ldap server hostname or ip address emailadmin ru Имя сервера LDAP или его ip-адрес
ldap settings emailadmin ru Настройки LDAP
leave empty for no quota emailadmin ru оставте пустым для отключения квотирования
mail settings admin ru Настройки почты
name of organisation emailadmin ru Название организации
no alternate email address emailadmin ru дополнительный эл. адрес не используется
no encryption emailadmin ru без шифрования
no forwarding email address emailadmin ru без адреса перенаправления
no message returned. emailadmin ru И никакого сообщения в ответ
no supported imap authentication method could be found. emailadmin ru Не ожет быть найден поддерживаемый метод авторизации IMAP.
order emailadmin ru Упорядочить
organisation emailadmin ru Организация
plesk can't rename users --> request ignored emailadmin ru Plesk не может переименовать пользователей --> запрос проигнорирован
plesk imap server (courier) emailadmin ru Сервер IMAP Plesk (Courier)
plesk mail script '%1' not found !!! emailadmin ru Не найден скрипт '%1' почты Plesk!!!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin ru Plesk требует длины пароля не менее 5 символов не содержащий имени аккаунта --> пароль НЕ установлен!!!
plesk smtp-server (qmail) emailadmin ru Plesk SMTP сервер (Qmail)
pop3 server hostname or ip address emailadmin ru Имя компьютера или ip-адрес сервера POP3
pop3 server port emailadmin ru Порт сервера POP3
postfix with ldap emailadmin ru Postfix с LDAP
profile access rights emailadmin ru права доступа к профилю
profile is active emailadmin ru профиль активен
profile list emailadmin ru Список профиля
profile name emailadmin ru Название профиля
qmaildotmode emailadmin ru режим qmaildot
qouta size in mbyte emailadmin ru Размер квоты МБайт
quota settings emailadmin ru Настройки квотирования
remove emailadmin ru Удалить
reset filter emailadmin ru очистить фильтр
select type of imap server emailadmin ru выбор типа сервера IMAP
select type of imap/pop3 server emailadmin ru Выбор типасервера IMAP/POP3
select type of smtp server emailadmin ru Выбор типа сервера SMTP
server settings emailadmin ru Настройки сервера
sieve server hostname or ip address emailadmin ru Имя компьютера или IP-адрес сервера Sieve
sieve server port emailadmin ru Порт сервера Sieve
sieve settings emailadmin ru Настройки Sieve
smtp authentication emailadmin ru Авторизация SMTP
smtp options emailadmin ru Параметры SMTP
smtp server name emailadmin ru Имя сервера SMTP
smtp settings emailadmin ru Установки SMTP
smtp-server hostname or ip address emailadmin ru Имя компьютера или IP-адрес сервера SMTP
smtp-server port emailadmin ru Порт сервера SMTP
standard emailadmin ru Стандартный
standard imap server emailadmin ru Стандартный IMAP сервер
standard pop3 server emailadmin ru Стандартный POP3 сервер
standard smtp-server emailadmin ru Стандартный SMTP сервер
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin ru Сервер IMAP не сообщил о поддержке выбранного метода авторизации. Пожалуйста свяжитесь со своим системным администратором.
this php has no imap support compiled in!! emailadmin ru Эта версия PHP собрана без поддержки IMAP!!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin ru Для использования соединения TLS, у вас должен быть запущен PHP 5.1.0 или выше.
unexpected response from server to authenticate command. emailadmin ru Непредусмотренный ответ сервера на команду AUTHENTICATE.
unexpected response from server to digest-md5 response. emailadmin ru Непредусмотренный ответ сервера на сигнал Digest-MD5.
unexpected response from server to login command. emailadmin ru Непредусмотренный ответ сервера на команду LOGIN.
unknown imap response from the server. server responded: %s emailadmin ru Неизвестный IMAP-ответ от сервера. Сервер сообщил: %s
unsupported action '%1' !!! emailadmin ru Неподдерживаемое действие '%1' !!!
update current email address: emailadmin ru Обновить текущий адрес эл.почты:
use ldap defaults emailadmin ru Использовать настройки LDAP по-умолчанию
use predefined username and password defined below emailadmin ru Использовать предопределенное имя пользователя и пароль указанный ниже
use smtp auth emailadmin ru Использовать авторизацию SMTP
use tls authentication emailadmin ru Использовать авторизацию TLS
use tls encryption emailadmin ru Исползовать шифрование TLS
user can edit forwarding address emailadmin ru Ползователь может редактировать адрес перенаправления
username (standard) emailadmin ru имя пользователя (стандартное)
username/password defined by admin emailadmin ru Имя пользователя/Пароль установлены администратором
username@domainname (virtual mail manager) emailadmin ru username@domainname (Менеджер Виртуальной ПОЧТЫ)
users can define their own emailaccounts emailadmin ru Пользователь может назначать свои собственные учетные записи эл. почты.
users can define their own identities emailadmin ru пользователи могут устанавливать свои собственные данные идентификации
users can define their own signatures emailadmin ru пользователи могут устанавливать свои собственные подписи
vaction messages with start- and end-date require an admin account to be set! emailadmin ru Vaction-сообщения (сообщения об отпуске? вакансиях? высвобождении? незанятых периодах? вовсе сообщения от объекта Java VAction? сообщения виртуальных действий?) с датами начала и окончания требуют установленной учетной записи администратора!
virtual mail manager emailadmin ru Менеджер Виртуальной ПОЧТЫ

146
emailadmin/lang/egw_sk.lang Normal file
View File

@ -0,0 +1,146 @@
%1 entries deleted. emailadmin sk %1 položiek odstránených.
account '%1' not found !!! emailadmin sk Účet '%1' sa nenašiel !!!
active templates emailadmin sk Aktívne šablóny
add new email address: emailadmin sk Pridať novú E-mailovú adresu:
add profile emailadmin sk Pridať profil
admin dn emailadmin sk Správcov dn
admin password emailadmin sk Heslo správcu
admin username emailadmin sk Používateľské meno správcu
advanced options emailadmin sk Pokročilé možnosti
alternate email address emailadmin sk Alternatívna E-mailová adresa
any application emailadmin sk Ktorákoľvek aplikácia
any group emailadmin sk Ktorákoľvek skupina
any user emailadmin sk Ktorýkoľvek používateľ
back to admin/grouplist emailadmin sk Späť na Správu/Skupiny
back to admin/userlist emailadmin sk Späť na Správu/Používateľov
bad login name or password. emailadmin sk Chybné prihlasovacie meno alebo heslo.
bad or malformed request. server responded: %s emailadmin sk Chybná požiadavka. Odpoveď servera: %s
bad request: %s emailadmin sk Chybná požiadavka: %s
can be used by application emailadmin sk môže byť použité aplikáciou
can be used by group emailadmin sk môže byť použité skupinou
can be used by user emailadmin sk môže byť použité používateľom
connection dropped by imap server. emailadmin sk Spojenie prerušené IMAP serverom.
could not complete request. reason given: %s emailadmin sk Nemožno dokončiť požiadavku. Dôvod: %s
could not open secure connection to the imap server. %s : %s. emailadmin sk Nepodarilo sa nadviazať zabezpečené pripojenie k IMAP serveru. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin sk CRAM-MD5 alebo DIGEST-MD5 vyžaduje, aby bol nainštalovaný balík Auth_SASL.
cyrus imap server emailadmin sk Cyrus IMAP Server
cyrus imap server administration emailadmin sk Správa servera Cyrus IMAP
default emailadmin sk predvolené
deliver extern emailadmin sk doručiť extern
do not validate certificate emailadmin sk neoveriť certifikát
do you really want to delete this profile emailadmin sk Naozaj chcete odstrániť tento Profil
do you really want to reset the filter for the profile listing emailadmin sk Naozaj chcete vynulovať filter pre výpis profilu?
domainname emailadmin sk názov domény
edit email settings emailadmin sk upraviť nastavenia E-mailu
email account active emailadmin sk E-mailový účet je aktívny
email address emailadmin sk E-mailová adresa
email settings common sk Nastavenia E-mailu
emailadmin emailadmin sk EMailAdmin
emailadmin: group assigned profile common sk eMailAdmin: skupinovo priradený Profil
emailadmin: user assigned profile common sk eMailAdmin: používateľsky priradený Profil
enable cyrus imap server administration emailadmin sk zapnúť správu servera Cyrus IMAP
enable sieve emailadmin sk zapnúť Sieve
encrypted connection emailadmin sk šifrované spojenie
encryption settings emailadmin sk nastavenia šifrovania
enter your default mail domain (from: user@domain) emailadmin sk Zadajte vašu predvolenú doménu (z tvaru: user@domain)
entry saved emailadmin sk Položka bola uložená
error connecting to imap server. %s : %s. emailadmin sk Chyba počas pripájania k IMAP serveru. %s : %s.
error connecting to imap server: [%s] %s. emailadmin sk Chyba počas pripájania k IMAP serveru: [%s] %s.
error deleting entry! emailadmin sk Chyba pri odstraňovaní položky!
error saving the entry!!! emailadmin sk Chyba pri ukladaní položky!!!
filtered by account emailadmin sk filtrované podľa Účtu
filtered by group emailadmin sk filtrované podľa Skupiny
forward also to emailadmin sk preposlať taktiež (komu)
forward email's to emailadmin sk preposlať emaily (kam)
forward only emailadmin sk preposlať iba
global options emailadmin sk Globálne možnosti
if using ssl or tls, you must have the php openssl extension loaded. emailadmin sk Ak používate SSL alebo TLS, musíte mať nahraté rozšírenie PHP openssl.
imap admin password admin sk heslo správcu IMAP
imap admin user admin sk používateľ pre správu IMAP
imap c-client version < 2001 emailadmin sk IMAP C-klient verzia < 2001
imap server closed the connection. emailadmin sk IMAP server ukončil spojenie.
imap server closed the connection. server responded: %s emailadmin sk IMAP server ukončil spojenie. Odpoveď servera: %s
imap server hostname or ip address emailadmin sk názov (hostname) alebo IP adresa IMAP servera
imap server logintyp emailadmin sk typ prihlásenia IMAP servera
imap server name emailadmin sk názov IMAP servera
imap server port emailadmin sk port IMAP servera
imap/pop3 server name emailadmin sk názov IMAP/POP3 servera
in mbyte emailadmin sk v Megabajtoch
inactive emailadmin sk neaktívne
ldap basedn emailadmin sk LDAP basedn
ldap server emailadmin sk LDAP server
ldap server accounts dn emailadmin sk DN účtov LDAP servera
ldap server admin dn emailadmin sk DN správcu LDAP servera
ldap server admin password emailadmin sk heslo správcu LDAP servera
ldap server hostname or ip address emailadmin sk názov (hostname) alebo IP adresa LDAP servera
ldap settings emailadmin sk nastavenia LDAP
leave empty for no quota emailadmin sk ak nechcete kvóty, ponechajte prázdne
mail settings admin sk nastavenia Pošty
name of organisation emailadmin sk Názov organizácie
no alternate email address emailadmin sk žiadna alternatívna E-mailová adresa
no encryption emailadmin sk bez šifrovania
no forwarding email address emailadmin sk žiadna emailová adresa pre preposielanie
no message returned. emailadmin sk Žiadne správy sa nevrátili.
no supported imap authentication method could be found. emailadmin sk Nenašiel som žiadnu podporovanú overovaciu metódu IMAP.
order emailadmin sk Poradie
organisation emailadmin sk Organizácia
plesk can't rename users --> request ignored emailadmin sk Plesk používatelia sa nedajú premenovať --> požiadavka ignorovaná
plesk imap server (courier) emailadmin sk Plesk IMAP Server (Courier)
plesk mail script '%1' not found !!! emailadmin sk Plesk mail script '%1' sa nenašlo !!!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin sk Plesk vyžaduje, aby heslá mali aspoň 5 znakov a neobsahovali názov účtu --> heslo NEBOLO nastavené!!!
plesk smtp-server (qmail) emailadmin sk Plesk SMTP-Server (qmail)
pop3 server hostname or ip address emailadmin sk názov (hostname) alebo IP adresa POP3 servera
pop3 server port emailadmin sk port POP3 servera
postfix with ldap emailadmin sk Postfix + LDAP
profile access rights emailadmin sk prístupové práva profilu
profile is active emailadmin sk profil je aktívny
profile list emailadmin sk Zoznam profilov
profile name emailadmin sk Názov profilu
qmaildotmode emailadmin sk qmail bodkový režim
qouta size in mbyte emailadmin sk Neľkosť kvóty v Megabajtoch
quota settings emailadmin sk Nastavenia kvóty
remove emailadmin sk Odstrániť
reset filter emailadmin sk vynulovať filter
select type of imap server emailadmin sk Vyberte typ IMAP servera
select type of imap/pop3 server emailadmin sk Vyberte typ IMAP/POP3 servera
select type of smtp server emailadmin sk Vyberte typ SMTP servera
send using this email-address emailadmin sk odoslať pomocou tejto e-mailovej adresy
server settings emailadmin sk Nastavenia servera
sieve server hostname or ip address emailadmin sk Názov (hostname) alebo IP Sieve servera
sieve server port emailadmin sk Nort Sieve servera
sieve settings emailadmin sk Nastavenia Sieve
smtp authentication emailadmin sk SMTP overovanie
smtp options emailadmin sk SMTP možnosti
smtp server name emailadmin sk Názov SMTP servera
smtp settings emailadmin sk SMTP nastavenia
smtp-server hostname or ip address emailadmin sk názov (hostname) alebo IP adresa SMTP servera
smtp-server port emailadmin sk port SMTP servera
standard emailadmin sk Štandard
standard imap server emailadmin sk Štandardný IMAP server
standard pop3 server emailadmin sk Štandardný POP3 server
standard smtp-server emailadmin sk Štandardný SMTP server
starts with emailadmin sk začať s
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin sk Tento IMAP server, zdá sa, nepodporuje zvolenú overovaciu metódu. Prosím kontaktujte správcu systému.
this php has no imap support compiled in!! emailadmin sk Toto PHP nemá zakompilovanú podporu pre IMAP !!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin sk Ak chcete používať pripojenie TLS, musíte fungovať na verzii PHP 5.1.0 alebo vyššej.
unexpected response from server to authenticate command. emailadmin sk Neočakávaná odpoveď od servera na príkaz AUTENTICATE.
unexpected response from server to digest-md5 response. emailadmin sk Neočakávaná odpoveď od servera na Digest-MD5 odpoveď.
unexpected response from server to login command. emailadmin sk Neočakávaná odpoveď od servera na príkaz LOGIN.
unknown imap response from the server. server responded: %s emailadmin sk Neznáma IMAP odpoveď od servera. Server odpovedal: %s
unsupported action '%1' !!! emailadmin sk Nepodporovaná akcia '%1' !!!
update current email address: emailadmin sk Aktualizovať súčasnú E-mailovú adresu:
use ldap defaults emailadmin sk Použiť predvolené hodnoty LDAP
use predefined username and password defined below emailadmin sk Použiť preddefinované používateľské meno a heslo, definované nižšie
use smtp auth emailadmin sk Použiť SMTP overovanie
use tls authentication emailadmin sk Použiť TLS overovanie
use tls encryption emailadmin sk Použiť TLS šifrovanie
use users email-address (as seen in useraccount) emailadmin sk použiť emailové adresy používateľov (ako vidno v používateľskom účte)
user can edit forwarding address emailadmin sk Používateľ môže upraviť adresu preposielania
username (standard) emailadmin sk používateľské meno (štandardné)
username/password defined by admin emailadmin sk Používateľské meno/heslo definované správcom
username@domainname (virtual mail manager) emailadmin sk používateľ@doména (Virtuálny Mail ManaGeR)
users can define their own emailaccounts emailadmin sk Používatelia môžu definovať ich vlastné E-mailové účty
users can define their own identities emailadmin sk Používatelia môžu definovať svoje vlastné identity
users can define their own signatures emailadmin sk Používatelia môžu definovať svoje vlastné podpisy
vaction messages with start- and end-date require an admin account to be set! emailadmin sk Správy v neprítomnosti s počiatočným a koncovým dátumom vyžadujú, aby bol nastavený účet správcu!
virtual mail manager emailadmin sk Virtuálny MAIL ManaGeR

138
emailadmin/lang/egw_sl.lang Normal file
View File

@ -0,0 +1,138 @@
account '%1' not found !!! emailadmin sl Račun '%1' ni bil najden!
add new email address: emailadmin sl Dodaj nov e-naslov:
add profile emailadmin sl Dodaj profil
admin dn emailadmin sl Oskrbnikov dn
admin password emailadmin sl Oskrbnikovo geslo
admin username emailadmin sl Oskrbnikovo uporabniško ime
advanced options emailadmin sl Napredne izbire
alternate email address emailadmin sl Alternativen E-naslov
any application emailadmin sl Katerakoli aplikacija
any group emailadmin sl Katerakoli skupina
any user emailadmin sl Katerikoli uporabnik
back to admin/grouplist emailadmin sl Nazaj na Admin/Seznam skupin
back to admin/userlist emailadmin sl Nazaj na Admin/Seznam uporabnikov
bad login name or password. emailadmin sl Napačno uporabniško ime ali geslo.
bad or malformed request. server responded: %s emailadmin sl Napačna ali napačno oblikovana zahteva. Odgovor strežnika: %s
bad request: %s emailadmin sl Napačna zahteva: %s
can be used by application emailadmin sl Je lahko uporabljen iz aplikacije
can be used by group emailadmin sl Je lahko uporabljen iz skupine
can be used by user emailadmin sl Lahko uporablja uporabnik
connection dropped by imap server. emailadmin sl Strežnik IMAP je prekinil povezavo.
could not complete request. reason given: %s emailadmin sl Ne morem dokončati zahteve. Podan vzrok: %s
could not open secure connection to the imap server. %s : %s. emailadmin sl Ne morem odpreti varne povezave s strežnikom IMAP. %s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin sl CRAM-MD5 ali DIGEST-MD5 zahteva, da je nameščen paket Auth_SASL.
cyrus imap server emailadmin sl Cyrus IMAP strežnik
cyrus imap server administration emailadmin sl Upravljanje Cyrus IMAP strežnika
default emailadmin sl Privzeto
deliver extern emailadmin sl Zunanja dostava
do not validate certificate emailadmin sl Ne preverjaj certifikata
do you really want to delete this profile emailadmin sl Ali res želite izbrisati ta profil?
do you really want to reset the filter for the profile listing emailadmin sl Res želite ponastaviti filter za listanje profilov?
domainname emailadmin sl Ime domene
edit email settings emailadmin sl Uredi nastavitve E-pošte
email account active emailadmin sl Nabiralnik E-pošte je aktiven
email address emailadmin sl E-naslov
email settings common sl Nastavitve E-pošte
emailadmin emailadmin sl EMailAdmin
emailadmin: group assigned profile common sl eMailAdmin: profil, dodeljen skupini
emailadmin: user assigned profile common sl eMailAdmin: profil, dodeljen uprabniku
enable cyrus imap server administration emailadmin sl Omogoči upravljanje Cyrus IMAP strežnika
enable sieve emailadmin sl Omogoči Sieve
encrypted connection emailadmin sl Kodirana povezava
encryption settings emailadmin sl Nastavitve šifriranja
enter your default mail domain (from: user@domain) emailadmin sl Vnesite privzeto domeno (oblika: uporabnik@domena)
error connecting to imap server. %s : %s. emailadmin sl Napaka pri povezavi s strežnikom IMAP. %s: %s.
error connecting to imap server: [%s] %s. emailadmin sl Napaka pri povezavi s strežnikom IMAP: [%s] %s.
filtered by account emailadmin sl Filtrirano s strani računa
filtered by group emailadmin sl Filtrirano s strani skupine
forward also to emailadmin sl Posreduj tudi
forward email's to emailadmin sl Posreduj sporočila k
forward only emailadmin sl Samo posreduj
global options emailadmin sl Globalne možnosti
if using ssl or tls, you must have the php openssl extension loaded. emailadmin sl Če uporabljate SSL ali TLS, morate imeti naloženo razširitev PHP openssl
imap admin password admin sl Geslo oskrbnika IMAPa
imap admin user admin sl Uporabniško ime oskrbnika IMAP-a
imap c-client version < 2001 emailadmin sl IMAP C-klient različica pred 2001
imap server closed the connection. emailadmin sl Strežnik IMAP je prekinil povezavo.
imap server closed the connection. server responded: %s emailadmin sl Strežnik IMAP je prekinil povezavo. Odgovor strežnika: %s
imap server hostname or ip address emailadmin sl Ime ali IP strežnika IMAP
imap server logintyp emailadmin sl Način prijave strežnik IMAP
imap server name emailadmin sl Ime strežnika IMAP
imap server port emailadmin sl Vrata strežnika IMAP
imap/pop3 server name emailadmin sl Ime strežnika IMAP/POP3
in mbyte emailadmin sl v MB
inactive emailadmin sl Neaktivno
ldap basedn emailadmin sl Osnovni DN LDAP
ldap server emailadmin sl Strežnik LDAP
ldap server accounts dn emailadmin sl DN računov LDAP strežnika
ldap server admin dn emailadmin sl Oskrbnikov DN LDAP strežnika
ldap server admin password emailadmin sl Geslo oskrbnika LDAP strežnika
ldap server hostname or ip address emailadmin sl Ime ali IP strežnika LDAP
ldap settings emailadmin sl Nastavitve LDAP
leave empty for no quota emailadmin sl Pustite prazno za neomejeno
mail settings admin sl Nastavitve E-pošte
name of organisation emailadmin sl Ime organizacije
no alternate email address emailadmin sl Ni alternativnega E-naslova
no encryption emailadmin sl Brez šifriranja
no forwarding email address emailadmin sl Ni E-naslova za posredovanje
no message returned. emailadmin sl Ni vrnjenega sporočila.
no supported imap authentication method could be found. emailadmin sl Ni najdena metoda avtentikacije IMAP.
order emailadmin sl Vrstni red
organisation emailadmin sl Organizacija
plesk can't rename users --> request ignored emailadmin sl Plesk ne more preimenovati uporabnikov --> zahteva preslišana
plesk imap server (courier) emailadmin sl Strežnik Plesk IMAP (Courier)
plesk mail script '%1' not found !!! emailadmin sl Poštni skript Plesk '%1' ni bil najden!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin sl Plesk zahteva geslo, dolga najmanj 5 znakov in ne sme vsebovati imena računa --> geslo ni bilo nastavljeno!
plesk smtp-server (qmail) emailadmin sl Strežnik Plesk IMAP (Qmail)
pop3 server hostname or ip address emailadmin sl Ime ali IP POP3 strežnika
pop3 server port emailadmin sl Vrata POP3 strežnika
postfix with ldap emailadmin sl Končnica pri LDAP
profile access rights emailadmin sl Pravice dostopa do profila
profile is active emailadmin sl Profil je aktiven
profile list emailadmin sl Seznam profilov
profile name emailadmin sl Ime profila
qmaildotmode emailadmin sl Način za qmaildot
qouta size in mbyte emailadmin sl Kvota v MB
quota settings emailadmin sl Nastavitvev kvote
remove emailadmin sl Odstrani
reset filter emailadmin sl Ponastavi filter
select type of imap server emailadmin sl Izberite vrsto strežnika IMAP
select type of imap/pop3 server emailadmin sl Izberite tip IMAP/POP3 strežnika
select type of smtp server emailadmin sl Izberite tip SMTP strežnika
server settings emailadmin sl Nastavitve strežnika
sieve server hostname or ip address emailadmin sl IP ali naslov strežnika za sito (Sieve)
sieve server port emailadmin sl Vrata strežnika za sito (Sieve)
sieve settings emailadmin sl Nastavitve sita (Sieve)
smtp authentication emailadmin sl SMTP avtentikacija
smtp options emailadmin sl SMTP možnosti
smtp server name emailadmin sl ime SMTP strežnika
smtp settings emailadmin sl SMTP nastavitve
smtp-server hostname or ip address emailadmin sl Ime ali IP SMTP strežnika
smtp-server port emailadmin sl Vrata SMTP strežnika
standard emailadmin sl Standarden
standard imap server emailadmin sl Standardni IMAP strežnik
standard pop3 server emailadmin sl Standardni POP3 strežnik
standard smtp-server emailadmin sl Standardni SMTP strežnik
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin sl Strežnik IMAP ne podpira izbrane metode avtentikacije. Kontaktirajte sistemskega upravitelja.
this php has no imap support compiled in!! emailadmin sl Ta PHP ne vsebuje podpore za IMAP!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin sl Če želite uporabljati povezavo TLS, morate imeti nameščeno različico PHP 5.1.0 ali višjo.
unexpected response from server to authenticate command. emailadmin sl Nepričakovan odgovor strežnika na ukaz AUTHENTICATE.
unexpected response from server to digest-md5 response. emailadmin sl Nepričakovan odgovor strežnika na odgovor Digest-MD5.
unexpected response from server to login command. emailadmin sl Nepričakovan odgovor strežnika na ukaz LOGIN.
unknown imap response from the server. server responded: %s emailadmin sl Neznan odgovor IMAP s strani strežnika. Odgovor strežnika: %s
unsupported action '%1' !!! emailadmin sl Nepodprto dejanje '%1'!
update current email address: emailadmin sl Posodobi trenutni e-naslov:
use ldap defaults emailadmin sl Uporabi privzeto za LDAP
use predefined username and password defined below emailadmin sl Uporabi spodnje, vnaprej določeno uporabniško ime in geslo
use smtp auth emailadmin sl Uporabi SMTP avtentikacijo
use tls authentication emailadmin sl Uporabi TLS avtentikacijo
use tls encryption emailadmin sl Uporabi TLS enkripcijo
user can edit forwarding address emailadmin sl Uporabnik lahko določa posredovalni naslov
username (standard) emailadmin sl Uporabnik (standardno)
username/password defined by admin emailadmin sl Uporabniško ime/geslo dodeljeno s strani administratorja
username@domainname (virtual mail manager) emailadmin sl uporabnik@domena (Virtual MAIL ManaGeR)
users can define their own emailaccounts emailadmin sl Uporabniki lahko določajo lastne E-poštne predale
users can define their own identities emailadmin sl Uporabniki lahko določijo lastne identitete
users can define their own signatures emailadmin sl Uporabniki lahko določijo lastne podpise
vaction messages with start- and end-date require an admin account to be set! emailadmin sl Nastavitev sporočila o odsotnosti z začetnim in končnim datumom zahteva nastavljen administratorski račun!
virtual mail manager emailadmin sl Virtualni upravljalec E-pošte

View File

@ -0,0 +1,68 @@
add profile emailadmin sv Skapa profil
admin dn emailadmin sv Admin dn
admin password emailadmin sv Admin lösenord
admin username emailadmin sv Admin användare
advanced options emailadmin sv Avanserade alternativ
alternate email address emailadmin sv Alternerande e-post adress
cyrus imap server emailadmin sv Cyrus IMAP Server
cyrus imap server administration emailadmin sv Cyrus IMAP server administration
default emailadmin sv Standard
deliver extern emailadmin sv Leverera extern
do you really want to delete this profile emailadmin sv Vill du verkligen radera profilen?
domainname emailadmin sv Domän namn
edit email settings emailadmin sv Redigera e-post alternativ
email account active emailadmin sv Aktivt e-post konto
email address emailadmin sv E-post adress
enable cyrus imap server administration emailadmin sv Aktivera Cyrus IMAP server administration
enable sieve emailadmin sv Aktivera Sieve
enter your default mail domain (from: user@domain) emailadmin sv Standard e-post domän (från: user@domain)
forward also to emailadmin sv Vidarebefodra även till
forward email's to emailadmin sv Vidarebefodra e-post till
forward only emailadmin sv Vidarebefodra endast
imap admin password admin sv IMAP admin lösenord
imap admin user admin sv IMAP admin användare
imap c-client version < 2001 emailadmin sv IMAP C-Client version < 2001
imap server hostname or ip address emailadmin sv IMAP server hostnamn eller IP adress
imap server logintyp emailadmin sv IMAP server inloggnings typ
imap server port emailadmin sv IMAP server port
imap/pop3 server name emailadmin sv IMAP/POP3 server namn
in mbyte emailadmin sv i MByte
ldap basedn emailadmin sv LDAP basedn
ldap server emailadmin sv LDAP server
ldap server accounts dn emailadmin sv LDAP server konton DN
ldap server admin dn emailadmin sv LDAP server admin DN
ldap server admin password emailadmin sv LDAP server admin lösenord
ldap server hostname or ip address emailadmin sv LDAP server hostnamn eller IP adress
ldap settings emailadmin sv LDAP alternativ
leave empty for no quota emailadmin sv Lämna tomt för ingen kvot
mail settings admin sv E-post alternativ
name of organisation emailadmin sv Organisations namn
no alternate email address emailadmin sv Ingen alternerande e-post adress
no forwarding email address emailadmin sv Ingen e-post vidarebefodrings adress
pop3 server hostname or ip address emailadmin sv POP3 server hostnamn eller IP adress
pop3 server port emailadmin sv POP3 server port
postfix with ldap emailadmin sv Postfix med LDAP
profile list emailadmin sv Profil lista
profile name emailadmin sv Profil namn
qmaildotmode emailadmin sv qmaildotmode
qouta size in mbyte emailadmin sv Kvot storlek i Mb
quota settings emailadmin sv Kvot alternativ
remove emailadmin sv Radera
select type of imap/pop3 server emailadmin sv Välj typ av IMAP/POP3 server
select type of smtp server emailadmin sv Välj typ av SMTP Server
sieve server hostname or ip address emailadmin sv Sieve server hostnamn eller IP adress
sieve server port emailadmin sv Sieve server port
sieve settings emailadmin sv Sieve alternativ
smtp server name emailadmin sv SMTP server namn
smtp-server hostname or ip address emailadmin sv SMTP server hostnamn eller IP adress
smtp-server port emailadmin sv SMTP server port
standard emailadmin sv Standard
standard imap server emailadmin sv Standard IMAP server
standard pop3 server emailadmin sv Standard POP3 server
standard smtp-server emailadmin sv Standard SMTP server
use ldap defaults emailadmin sv använd LDAP standarder
use smtp auth emailadmin sv Använd SMTP autentisering
use tls authentication emailadmin sv Använd TLS autentisering
use tls encryption emailadmin sv Använd TLS kryptering
users can define their own emailaccounts emailadmin sv Användare kan definiera egna epost konton?
virtual mail manager emailadmin sv Virtuell E-post administration

View File

@ -0,0 +1,121 @@
account '%1' not found !!! emailadmin zh-tw 找不到帳號 '%1'
add new email address: emailadmin zh-tw 新增信箱:
add profile emailadmin zh-tw 新增資料
admin dn emailadmin zh-tw 管理 dn
admin password emailadmin zh-tw 管理密碼
admin username emailadmin zh-tw 管理帳號
advanced options emailadmin zh-tw 進階選項
alternate email address emailadmin zh-tw 替代郵件位址
any application emailadmin zh-tw 任何模組
any group emailadmin zh-tw 任何群組
bad login name or password. emailadmin zh-tw 帳號或密碼有誤。
bad or malformed request. server responded: %s emailadmin zh-tw 錯誤的請求,伺服器回應: %s
bad request: %s emailadmin zh-tw 錯誤的請求: %s
can be used by application emailadmin zh-tw 可以取用資料的模組
can be used by group emailadmin zh-tw 可以取用資料的群組
connection dropped by imap server. emailadmin zh-tw 連線被 IMAP 伺服器中斷了
could not complete request. reason given: %s emailadmin zh-tw 無法完成請求,理由: %s
could not open secure connection to the imap server. %s : %s. emailadmin zh-tw 無法開啟安全連線到 IMAP 伺服器。%s : %s.
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin zh-tw CRAM-MD5 或 DIGEST-MD5 需要先安裝 Auth_SASL 才能使用。
cyrus imap server emailadmin zh-tw Cyrus IMAP伺服器
cyrus imap server administration emailadmin zh-tw Cyrus IMAP伺服器管理
default emailadmin zh-tw 預設
deliver extern emailadmin zh-tw 傳送到外部
do not validate certificate emailadmin zh-tw 沒有可用的執照
do you really want to delete this profile emailadmin zh-tw 您確定要刪除這個資料
domainname emailadmin zh-tw 網域名稱
edit email settings emailadmin zh-tw 編輯郵件設定
email account active emailadmin zh-tw 郵件帳號啟用
email address emailadmin zh-tw 郵件位址
email settings common zh-tw 郵件設定
emailadmin emailadmin zh-tw 郵件管理
enable cyrus imap server administration emailadmin zh-tw 啟用Cyrus IMAP伺服器管理
enable sieve emailadmin zh-tw 啟用Sieve
encrypted connection emailadmin zh-tw 加密連線
encryption settings emailadmin zh-tw 加密設定
enter your default mail domain (from: user@domain) emailadmin zh-tw 輸入您的預設郵件網域(小老鼠後面所有字:帳號@網域)
error connecting to imap server. %s : %s. emailadmin zh-tw 連線到 IMAP 伺服器時發生錯誤。 %s : %s
error connecting to imap server: [%s] %s. emailadmin zh-tw 連線到 IMAP 伺服器時發生錯誤。 [%s] %s
forward also to emailadmin zh-tw 同時轉寄到
forward email's to emailadmin zh-tw 轉寄信件到
forward only emailadmin zh-tw 轉寄
global options emailadmin zh-tw 全域選項
if using ssl or tls, you must have the php openssl extension loaded. emailadmin zh-tw 如果使用 SSL 或 TLS您必須先載入 PHP openssl 外掛。
imap admin password admin zh-tw IMAP管理者密碼
imap admin user admin zh-tw IMAP管理者帳號
imap c-client version < 2001 emailadmin zh-tw IMAP C-終端的版本小於2001
imap server closed the connection. emailadmin zh-tw IMAP伺服器關閉連線
imap server closed the connection. server responded: %s emailadmin zh-tw IMAP伺服器關閉連線伺服器回應 %s
imap server hostname or ip address emailadmin zh-tw IMAP伺服器的主機名稱或是IP位址
imap server logintyp emailadmin zh-tw IMAP伺服器登入類型
imap server name emailadmin zh-tw IMAP伺服器名稱
imap server port emailadmin zh-tw IMAP伺服器連接埠
imap/pop3 server name emailadmin zh-tw IMAP/POP3伺服器名稱
in mbyte emailadmin zh-tw 以MB顯示
ldap basedn emailadmin zh-tw LDAP basedn
ldap server emailadmin zh-tw LDAP 伺服器
ldap server accounts dn emailadmin zh-tw LDAP 伺服器帳號 DN
ldap server admin dn emailadmin zh-tw LDAP 伺服器管理者 DN
ldap server admin password emailadmin zh-tw LDAP 伺服器管理者密碼
ldap server hostname or ip address emailadmin zh-tw LDAP 伺服器主機名稱或是IP位址
ldap settings emailadmin zh-tw LDAP 設定
leave empty for no quota emailadmin zh-tw 不填入任何資料表示無限制
mail settings admin zh-tw 郵件設定
name of organisation emailadmin zh-tw 組織名稱
no alternate email address emailadmin zh-tw 沒有可替換的郵件位址
no encryption emailadmin zh-tw 沒有加密
no forwarding email address emailadmin zh-tw 沒有轉寄郵件位址
no message returned. emailadmin zh-tw 沒有訊息回應。
no supported imap authentication method could be found. emailadmin zh-tw 找不到可以支援的 IMAP 認證方式。
order emailadmin zh-tw 順序
organisation emailadmin zh-tw 組織
plesk can't rename users --> request ignored emailadmin zh-tw Plesk 無法修改使用者名稱 --> 忽略
plesk imap server (courier) emailadmin zh-tw Plesk IMAP 伺服器(Courier)
plesk mail script '%1' not found !!! emailadmin zh-tw 找不到 Plesk 郵件指令 '%1'
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin zh-tw Plesk 要求密碼至少必須有 5 個字元而且不能包含帳號名稱 --> 密碼沒有設定!
plesk smtp-server (qmail) emailadmin zh-tw Plesk SMTP伺服器 (Qmail)
pop3 server hostname or ip address emailadmin zh-tw POP3伺服器主機名稱或是IP位址
pop3 server port emailadmin zh-tw POP3伺服器連接埠
postfix with ldap emailadmin zh-tw 使用LDAP與 Postfix
profile access rights emailadmin zh-tw 存取資料權限
profile list emailadmin zh-tw 資料清單
profile name emailadmin zh-tw 資料名稱
qmaildotmode emailadmin zh-tw qmaildotmode
qouta size in mbyte emailadmin zh-tw 配額(MB)
quota settings emailadmin zh-tw 配額設定
remove emailadmin zh-tw 移除
select type of imap server emailadmin zh-tw 選擇IMAP伺服器類型
select type of imap/pop3 server emailadmin zh-tw 選擇IMAP/POP3伺服器的格式
select type of smtp server emailadmin zh-tw 選擇SMTP伺服器的格式
server settings emailadmin zh-tw 伺服器設定
sieve server hostname or ip address emailadmin zh-tw Sieve伺服器主機名稱或是IP位址
sieve server port emailadmin zh-tw Sieve伺服器連接埠
sieve settings emailadmin zh-tw Sieve設定
smtp authentication emailadmin zh-tw SMTP 認證
smtp options emailadmin zh-tw SMTP 選項
smtp server name emailadmin zh-tw SMTP伺服器名稱
smtp settings emailadmin zh-tw SMTP 設定
smtp-server hostname or ip address emailadmin zh-tw SMTP伺服器主機名稱或是IP位址
smtp-server port emailadmin zh-tw SMTP伺服器連接埠
standard emailadmin zh-tw 標準
standard imap server emailadmin zh-tw 標準IMAP伺服器
standard pop3 server emailadmin zh-tw 標準POP3伺服器
standard smtp-server emailadmin zh-tw 標準SMTP伺服器
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin zh-tw IMAP 伺服器不支援指定的認證方式,請聯絡您的系統管理員。
this php has no imap support compiled in!! emailadmin zh-tw 您的PHP並未編譯為支援IMAP的狀態
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin zh-tw 要使用 TLS 連線,您必須執行在 PHP 5.1.0 或是更新版本。
unexpected response from server to authenticate command. emailadmin zh-tw AUTHENTICATE 指令讓伺服器傳回不如預期的回應。
unexpected response from server to digest-md5 response. emailadmin zh-tw 伺服器傳回不如預期的 Digest-MD5 回應。
unexpected response from server to login command. emailadmin zh-tw 伺服器傳回不如預期的 LOGIN 指令。
unknown imap response from the server. server responded: %s emailadmin zh-tw 不知名的 IMAP 伺服器回應,回應內容: %s
unsupported action '%1' !!! emailadmin zh-tw 不支援 '%1' 這個操作!
update current email address: emailadmin zh-tw 更新目前信箱:
use ldap defaults emailadmin zh-tw 使用LDAP預設值
use smtp auth emailadmin zh-tw 使用SMTP認證
use tls authentication emailadmin zh-tw 使用TLS認證
use tls encryption emailadmin zh-tw 使用TLS加密
user can edit forwarding address emailadmin zh-tw 使用者可以編輯自動轉寄信箱
username (standard) emailadmin zh-tw 帳號(標準)
username@domainname (virtual mail manager) emailadmin zh-tw 帳號@網域(虛擬郵件管理)
users can define their own emailaccounts emailadmin zh-tw 使用者可以自行定義郵件帳號
virtual mail manager emailadmin zh-tw 虛擬郵件管理者

123
emailadmin/lang/egw_zh.lang Normal file
View File

@ -0,0 +1,123 @@
account '%1' not found !!! emailadmin zh 帐户 '%1' 未发现!
add new email address: emailadmin zh 添加新邮箱地址:
add profile emailadmin zh 添加 profile
admin dn emailadmin zh 管理 DN
admin password emailadmin zh 管理密码
admin username emailadmin zh 管理帐户
advanced options emailadmin zh 高级选项
alternate email address emailadmin zh 候选邮箱地址
any application emailadmin zh 任何用用程序
any group emailadmin zh 任何组
bad login name or password. emailadmin zh 错误登录名和密码。
bad or malformed request. server responded: %s emailadmin zh 不正确的请求。服务器或应:%s
bad request: %s emailadmin zh 错误请求:%s
can be used by application emailadmin zh 可用于应用程序
can be used by group emailadmin zh 可用于群组
connection dropped by imap server. emailadmin zh 连接被 IMAP 服务器中断。
could not complete request. reason given: %s emailadmin zh 无法完成请求。原因是:%s
could not open secure connection to the imap server. %s : %s. emailadmin zh 无法打开到 IMAP 服务器的安全连接。%s:%s。
cram-md5 or digest-md5 requires the auth_sasl package to be installed. emailadmin zh CRAM-MD5 或 DIGEST-MD5 需要安装 auth_sasl 包。
cyrus imap server emailadmin zh Cyrus IMAP 服务器
cyrus imap server administration emailadmin zh Cyrus IMAP 服务器管理
default emailadmin zh 默认
deliver extern emailadmin zh 传送外部
do not validate certificate emailadmin zh 不确认证书
do you really want to delete this profile emailadmin zh 您确定要删除这个 profile 文件
domainname emailadmin zh 域名
edit email settings emailadmin zh 编辑邮箱设置
email account active emailadmin zh 邮箱帐户激活
email address emailadmin zh 邮箱地址
email settings common zh 邮箱设置
emailadmin emailadmin zh 邮箱管理
enable cyrus imap server administration emailadmin zh 启用 Cyrus IMAP 服务器管理
enable sieve emailadmin zh 启用过滤
encrypted connection emailadmin zh 加密连接
encryption settings emailadmin zh 加密设置
enter your default mail domain (from: user@domain) emailadmin zh 输入您的默认邮箱域 (比如user@domain取@之后的所有词或字母)
error connecting to imap server. %s : %s. emailadmin zh 连接到 IMAP 服务器错误。%s : %s。
error connecting to imap server: [%s] %s. emailadmin zh 连接到 IMAP 服务器错误:[%s] %s。
forward also to emailadmin zh 同时转发到
forward email's to emailadmin zh 转发邮件到
forward only emailadmin zh 转发
global options emailadmin zh 全局选项
if using ssl or tls, you must have the php openssl extension loaded. emailadmin zh 如果使用 SSL 或 TLS您必须加载 PHP openssl 扩展。
imap admin password admin zh IMAP 管理者密码
imap admin user admin zh IMAP 管理者帐户
imap c-client version < 2001 emailadmin zh IMAP C-Clien 版本小 < 2001
imap server closed the connection. emailadmin zh IMAP 服务器关闭连接。
imap server closed the connection. server responded: %s emailadmin zh IMAP 服务器关闭连接。服务器回应:%s
imap server hostname or ip address emailadmin zh IMAP 服务器的主机名或 IP 地址
imap server logintyp emailadmin zh IMAP 服务器登录类型
imap server name emailadmin zh IMAP 服务器名
imap server port emailadmin zh IMAP 服务器端口号
imap/pop3 server name emailadmin zh IMAP / POP3 服务器名
in mbyte emailadmin zh 以 MB 表示
ldap basedn emailadmin zh LDAP basedn
ldap server emailadmin zh LDAP 服务器
ldap server accounts dn emailadmin zh LDAP 服务器帐户 DN
ldap server admin dn emailadmin zh LDAP 服务器管理员 DN
ldap server admin password emailadmin zh LDAP 服务器管管理员密码
ldap server hostname or ip address emailadmin zh LDAP 服务器主机名或 IP 地址
ldap settings emailadmin zh LDAP 设置
leave empty for no quota emailadmin zh 留空表示无限额
mail settings admin zh 邮箱设置
name of organisation emailadmin zh 组织名称
no alternate email address emailadmin zh 无备用邮箱地址
no encryption emailadmin zh 未加密
no forwarding email address emailadmin zh 没有转发邮件地址
no message returned. emailadmin zh 无返回消息。
no supported imap authentication method could be found. emailadmin zh 无支持 IMAP 认证的方法可以找到。
order emailadmin zh 排序
organisation emailadmin zh 组织
plesk can't rename users --> request ignored emailadmin zh Plesk 不能重命名用户 --> 请求忽略
plesk imap server (courier) emailadmin zh Plesk IMAP 服务器 (Courier)
plesk mail script '%1' not found !!! emailadmin zh Plesk 邮件脚本 '%1' 未找到!
plesk requires passwords to have at least 5 characters and not contain the account-name --> password not set!!! emailadmin zh Plesk 需要至少5个字符密码并且不包含帐户名 --> 密码未设置!
plesk smtp-server (qmail) emailadmin zh Plesk SMTP-Server (Qmail)
pop3 server hostname or ip address emailadmin zh POP3 服务器主机名或 IP 地址
pop3 server port emailadmin zh POP3 服务器端口号
postfix with ldap emailadmin zh LDAP 用于 Postfix
profile access rights emailadmin zh profile 访问权限
profile list emailadmin zh profile 列表
profile name emailadmin zh profile 名
qmaildotmode emailadmin zh qmaildotmode
qouta size in mbyte emailadmin zh 配额大小在 (MByte)
quota settings emailadmin zh 配额设置
remove emailadmin zh 移除
select type of imap server emailadmin zh 选择 IMAP 服务器类型
select type of imap/pop3 server emailadmin zh 选择 IMAP / POP3 服务器类型
select type of smtp server emailadmin zh 选择 SMAP 服务器类型
server settings emailadmin zh 服务器设置
sieve server hostname or ip address emailadmin zh Sieve 服务器主机名或 IP 地址
sieve server port emailadmin zh Sieve 服务器端口号
sieve settings emailadmin zh Sieve 设置
smtp authentication emailadmin zh SMTP 认证
smtp options emailadmin zh SMTP 选项
smtp server name emailadmin zh SMTP 服务器名
smtp settings emailadmin zh SMTP 设置
smtp-server hostname or ip address emailadmin zh SMTP 服务器主机名或 IP 地址
smtp-server port emailadmin zh SMTP 服务器端口号
standard emailadmin zh 标准
standard imap server emailadmin zh 标准 IMAP 服务器
standard pop3 server emailadmin zh 标准 POP3 服务器
standard smtp-server emailadmin zh 标准 SMTP 服务器
the imap server does not appear to support the authentication method selected. please contact your system administrator. emailadmin zh IMAP 服务器似乎不支持所选择的认证方法。请联系系统管理员。
this php has no imap support compiled in!! emailadmin zh PHP 没有 IMAP 支持的编译!
to use a tls connection, you must be running a version of php 5.1.0 or higher. emailadmin zh 未使用一个 TLS 连接,您必须运行 PHP 5.1.0 或更高版本。
unexpected response from server to authenticate command. emailadmin zh 服务器为 AUTHENTICATE 指令返回不当以外回应。
unexpected response from server to digest-md5 response. emailadmin zh 服务器为 Digest-MD5 返回意外的不当的回应。
unexpected response from server to login command. emailadmin zh 服务器为 LOGIN 指令返回意外的不当回应。
unknown imap response from the server. server responded: %s emailadmin zh INAP 服务器返回未知回应。服务器回应:%s
unsupported action '%1' !!! emailadmin zh 不支持 '%1' 的操作!
update current email address: emailadmin zh 更新当前邮件地址:
use ldap defaults emailadmin zh 使用 LDAP 默认值
use smtp auth emailadmin zh 使用 SMTP 认证
use tls authentication emailadmin zh 使用TLS 认证
use tls encryption emailadmin zh 使用TLS 加密
user can edit forwarding address emailadmin zh 用户可以编辑转发地址
username (standard) emailadmin zh 用户名(标准)
username@domainname (virtual mail manager) emailadmin zh 用户名@域 (虚拟邮箱管理)
users can define their own emailaccounts emailadmin zh 用户可以自定义邮箱账户
users can define their own signatures emailadmin zh 用户可以定义他们自己的签名
vaction messages with start- and end-date require an admin account to be set! emailadmin zh 需要一个 admin 帐户来设置 Vaction 消息与开始和结束日期!
virtual mail manager emailadmin zh 虚拟邮箱管理

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,69 @@
<?php
/**
* eGroupware EMailAdmin - Setup
*
* @link http://www.egroupware.org
* @author Klaus Leithoff <kl@stylite.de>
* @package emailadmin
* @subpackage setup
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
$setup_info['emailadmin']['name'] = 'emailadmin';
$setup_info['emailadmin']['title'] = 'EMailAdmin';
$setup_info['emailadmin']['version'] = '1.9.003';
$setup_info['emailadmin']['app_order'] = 10;
$setup_info['emailadmin']['enable'] = 2;
$setup_info['emailadmin']['index'] = 'emailadmin.emailadmin_ui.listProfiles';
$setup_info['emailadmin']['author'] = 'Klaus Leithoff';
$setup_info['emailadmin']['license'] = 'GPL';
$setup_info['emailadmin']['description'] =
'A central Mailserver management application for EGroupWare. Completely rewritten by K.Leithoff in 10-2009';
$setup_info['emailadmin']['note'] =
'';
$setup_info['emailadmin']['maintainer'] = array(
'name' => 'Leithoff, Klaus',
'email' => 'kl@stylite.de'
);
$setup_info['emailadmin']['tables'][] = 'egw_emailadmin';
/* The hooks this app includes, needed for hooks registration */
#$setup_info['emailadmin']['hooks'][] = 'preferences';
$setup_info['emailadmin']['hooks']['admin'] = 'emailadmin_hooks::admin';
$setup_info['emailadmin']['hooks']['edit_user'] = 'emailadmin_hooks::edit_user';
$setup_info['emailadmin']['hooks']['view_user'] = 'emailadmin_hooks::edit_user';
$setup_info['emailadmin']['hooks']['edit_group'] = 'emailadmin_hooks::edit_group';
$setup_info['emailadmin']['hooks']['group_manager'] = 'emailadmin_hooks::edit_group';
$setup_info['emailadmin']['hooks']['deleteaccount'] = 'emailadmin_hooks::deleteaccount';
$setup_info['emailadmin']['hooks']['deletegroup'] = 'emailadmin_hooks::deletegroup';
/* Dependencies for this app to work */
$setup_info['emailadmin']['depends'][] = array(
'appname' => 'phpgwapi',
'versions' => Array('1.7','1.8','1.9')
);
$setup_info['emailadmin']['depends'][] = array(
'appname' => 'egw-pear',
'versions' => Array('1.8','1.9')
);
// installation checks for felamimail
$setup_info['emailadmin']['check_install'] = array(
'' => array(
'func' => 'pear_check',
'from' => 'EMailAdmin',
),
'Auth_SASL' => array(
'func' => 'pear_check',
'from' => 'EMailAdmin',
),
'Net_IMAP' => array(
'func' => 'pear_check',
'from' => 'EMailAdmin',
),
'imap' => array(
'func' => 'extension_check',
'from' => 'EMailAdmin',
),
);

View File

@ -0,0 +1,63 @@
<?php
/**
* eGroupware EMailAdmin - DB schema
*
* @link http://www.egroupware.org
* @author Lars Kneschke
* @author Klaus Leithoff <kl@stylite.de>
* @package emailadmin
* @subpackage setup
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
$phpgw_baseline = array(
'egw_emailadmin' => array(
'fd' => array(
'ea_profile_id' => array('type' => 'auto','nullable' => False),
'ea_smtp_server' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_type' => array('type' => 'varchar','precision' => '56'),
'ea_smtp_port' => array('type' => 'int','precision' => '4'),
'ea_smtp_auth' => array('type' => 'varchar','precision' => '3'),
'ea_editforwardingaddress' => array('type' => 'varchar','precision' => '3'),
'ea_smtp_ldap_server' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_ldap_basedn' => array('type' => 'varchar','precision' => '200'),
'ea_smtp_ldap_admindn' => array('type' => 'varchar','precision' => '200'),
'ea_smtp_ldap_adminpw' => array('type' => 'varchar','precision' => '30'),
'ea_smtp_ldap_use_default' => array('type' => 'varchar','precision' => '3'),
'ea_imap_server' => array('type' => 'varchar','precision' => '80'),
'ea_imap_type' => array('type' => 'varchar','precision' => '56'),
'ea_imap_port' => array('type' => 'int','precision' => '4'),
'ea_imap_login_type' => array('type' => 'varchar','precision' => '20'),
'ea_imap_tsl_auth' => array('type' => 'varchar','precision' => '3'),
'ea_imap_tsl_encryption' => array('type' => 'varchar','precision' => '3'),
'ea_imap_enable_cyrus' => array('type' => 'varchar','precision' => '3'),
'ea_imap_admin_user' => array('type' => 'varchar','precision' => '40'),
'ea_imap_admin_pw' => array('type' => 'varchar','precision' => '40'),
'ea_imap_enable_sieve' => array('type' => 'varchar','precision' => '3'),
'ea_imap_sieve_server' => array('type' => 'varchar','precision' => '80'),
'ea_imap_sieve_port' => array('type' => 'int','precision' => '4'),
'ea_description' => array('type' => 'varchar','precision' => '200'),
'ea_default_domain' => array('type' => 'varchar','precision' => '100'),
'ea_organisation_name' => array('type' => 'varchar','precision' => '100'),
'ea_user_defined_identities' => array('type' => 'varchar','precision' => '3'),
'ea_user_defined_accounts' => array('type' => 'varchar','precision' => '3'),
'ea_order' => array('type' => 'int','precision' => '4'),
'ea_appname' => array('type' => 'varchar','precision' => '80'),
'ea_group' => array('type' => 'varchar','precision' => '80'),
'ea_user' => array('type' => 'varchar','precision' => '80'),
'ea_active' => array('type' => 'int','precision' => '4'),
'ea_smtp_auth_username' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_auth_password' => array('type' => 'varchar','precision' => '80'),
'ea_user_defined_signatures' => array('type' => 'varchar','precision' => '3'),
'ea_default_signature' => array('type' => 'text'),
'ea_imap_auth_username' => array('type' => 'varchar','precision' => '80'),
'ea_imap_auth_password' => array('type' => 'varchar','precision' => '80'),
'ea_stationery_active_templates' => array('type' => 'text')
),
'pk' => array('ea_profile_id'),
'fk' => array(),
'ix' => array('ea_appname','ea_group'),
'uc' => array()
)
);

View File

@ -0,0 +1,385 @@
<?php
/**
* EGroupware EMailAdmin - DB schema
*
* @link http://www.egroupware.org
* @author Lars Kneschke
* @author Klaus Leithoff <kl@stylite.de>
* @package emailadmin
* @subpackage setup
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @version $Id$
*/
function emailadmin_upgrade0_0_3()
{
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','smtpType', array('type' => 'int', 'precision' => 4));
return $setup_info['emailadmin']['currentver'] = '0.0.4';
}
function emailadmin_upgrade0_0_4()
{
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','defaultDomain', array('type' => 'varchar', 'precision' => 100));
return $setup_info['emailadmin']['currentver'] = '0.0.5';
}
function emailadmin_upgrade0_0_5()
{
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','organisationName', array('type' => 'varchar', 'precision' => 100));
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','userDefinedAccounts', array('type' => 'varchar', 'precision' => 3));
return $setup_info['emailadmin']['currentver'] = '0.0.6';
}
function emailadmin_upgrade0_0_6()
{
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','oldimapcclient',array(
'type' => 'varchar',
'precision' => '3'
));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '0.0.007';
}
function emailadmin_upgrade0_0_007()
{
$GLOBALS['egw_setup']->oProc->RenameColumn('phpgw_emailadmin','oldimapcclient','imapoldcclient');
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '0.0.008';
}
function emailadmin_upgrade0_0_008()
{
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.0';
}
function emailadmin_upgrade1_0_0()
{
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','editforwardingaddress',array(
'type' => 'varchar',
'precision' => '3'
));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.1';
}
function emailadmin_upgrade1_0_1()
{
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','ea_order', array('type' => 'int', 'precision' => 4));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.2';
}
function emailadmin_upgrade1_0_2()
{
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','ea_appname', array('type' => 'varchar','precision' => '80'));
$GLOBALS['egw_setup']->oProc->AddColumn('phpgw_emailadmin','ea_group', array('type' => 'varchar','precision' => '80'));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.0.3';
}
function emailadmin_upgrade1_0_3()
{
$GLOBALS['egw_setup']->oProc->RenameTable('phpgw_emailadmin','egw_emailadmin');
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.2';
}
function emailadmin_upgrade1_2()
{
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','profileID','ea_profile_id');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpServer','ea_smtp_server');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpType','ea_smtp_type');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpPort','ea_smtp_port');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpAuth','ea_smtp_auth');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','editforwardingaddress','ea_editforwardingaddress');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPServer','ea_smtp_ldap_server');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPBaseDN','ea_smtp_ldap_basedn');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPAdminDN','ea_smtp_ldap_admindn');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPAdminPW','ea_smtp_ldap_adminpw');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','smtpLDAPUseDefault','ea_smtp_ldap_use_default');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapServer','ea_imap_server');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapType','ea_imap_type');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapPort','ea_imap_port');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapLoginType','ea_imap_login_type');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapTLSAuthentication','ea_imap_tsl_auth');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapTLSEncryption','ea_imap_tsl_encryption');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapEnableCyrusAdmin','ea_imap_enable_cyrus');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapAdminUsername','ea_imap_admin_user');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapAdminPW','ea_imap_admin_pw');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapEnableSieve','ea_imap_enable_sieve');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapSieveServer','ea_imap_sieve_server');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapSievePort','ea_imap_sieve_port');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','description','ea_description');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','defaultDomain','ea_default_domain');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','organisationName','ea_organisation_name');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','userDefinedAccounts','ea_user_defined_accounts');
$GLOBALS['egw_setup']->oProc->RenameColumn('egw_emailadmin','imapoldcclient','ea_imapoldcclient');
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.2.001';
}
function emailadmin_upgrade1_2_001()
{
/* done by RefreshTable() anyway
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_smtp_auth_username',array(
'type' => 'varchar',
'precision' => '80'
));*/
/* done by RefreshTable() anyway
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_smtp_auth_password',array(
'type' => 'varchar',
'precision' => '80'
));*/
$GLOBALS['egw_setup']->oProc->RefreshTable('egw_emailadmin',array(
'fd' => array(
'ea_profile_id' => array('type' => 'auto','nullable' => False),
'ea_smtp_server' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_type' => array('type' => 'int','precision' => '4'),
'ea_smtp_port' => array('type' => 'int','precision' => '4'),
'ea_smtp_auth' => array('type' => 'varchar','precision' => '3'),
'ea_editforwardingaddress' => array('type' => 'varchar','precision' => '3'),
'ea_smtp_ldap_server' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_ldap_basedn' => array('type' => 'varchar','precision' => '200'),
'ea_smtp_ldap_admindn' => array('type' => 'varchar','precision' => '200'),
'ea_smtp_ldap_adminpw' => array('type' => 'varchar','precision' => '30'),
'ea_smtp_ldap_use_default' => array('type' => 'varchar','precision' => '3'),
'ea_imap_server' => array('type' => 'varchar','precision' => '80'),
'ea_imap_type' => array('type' => 'int','precision' => '4'),
'ea_imap_port' => array('type' => 'int','precision' => '4'),
'ea_imap_login_type' => array('type' => 'varchar','precision' => '20'),
'ea_imap_tsl_auth' => array('type' => 'varchar','precision' => '3'),
'ea_imap_tsl_encryption' => array('type' => 'varchar','precision' => '3'),
'ea_imap_enable_cyrus' => array('type' => 'varchar','precision' => '3'),
'ea_imap_admin_user' => array('type' => 'varchar','precision' => '40'),
'ea_imap_admin_pw' => array('type' => 'varchar','precision' => '40'),
'ea_imap_enable_sieve' => array('type' => 'varchar','precision' => '3'),
'ea_imap_sieve_server' => array('type' => 'varchar','precision' => '80'),
'ea_imap_sieve_port' => array('type' => 'int','precision' => '4'),
'ea_description' => array('type' => 'varchar','precision' => '200'),
'ea_default_domain' => array('type' => 'varchar','precision' => '100'),
'ea_organisation_name' => array('type' => 'varchar','precision' => '100'),
'ea_user_defined_accounts' => array('type' => 'varchar','precision' => '3'),
'ea_imapoldcclient' => array('type' => 'varchar','precision' => '3'),
'ea_order' => array('type' => 'int','precision' => '4'),
'ea_appname' => array('type' => 'varchar','precision' => '80'),
'ea_group' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_auth_username' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_auth_password' => array('type' => 'varchar','precision' => '80')
),
'pk' => array('ea_profile_id'),
'fk' => array(),
'ix' => array('ea_appname','ea_group'),
'uc' => array()
));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.2.002';
}
function emailadmin_upgrade1_2_002()
{
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.4';
}
function emailadmin_upgrade1_4()
{
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_user_defined_signatures',array(
'type' => 'varchar',
'precision' => '3'
));
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_default_signature',array(
'type' => 'varchar',
'precision' => '255'
));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.4.001';
}
function emailadmin_upgrade1_4_001()
{
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_user_defined_identities',array(
'type' => 'varchar',
'precision' => '3'
));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.5.001';
}
function emailadmin_upgrade1_5_001()
{
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_user',array(
'type' => 'varchar',
'precision' => '80'
));
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_active',array(
'type' => 'int',
'precision' => '4'
));
$GLOBALS['phpgw_setup']->oProc->query("UPDATE egw_emailadmin set ea_user='0', ea_active=1",__LINE__,__FILE__);
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.5.002';
}
function emailadmin_upgrade1_5_002()
{
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_imap_auth_username',array(
'type' => 'varchar',
'precision' => '80'
));
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_imap_auth_password',array(
'type' => 'varchar',
'precision' => '80'
));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.5.003';
}
function emailadmin_upgrade1_5_003()
{
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.5.004';
}
function emailadmin_upgrade1_5_004()
{
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.6';
}
function emailadmin_upgrade1_6()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_emailadmin','ea_default_signature',array(
'type' => 'text'
));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.6.001';
}
function emailadmin_upgrade1_6_001()
{
$GLOBALS['egw_setup']->oProc->AddColumn('egw_emailadmin','ea_stationery_active_templates',array(
'type' => 'text'
));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.8'; // was '1.7.003';
}
function emailadmin_upgrade1_7_003()
{
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_emailadmin','ea_imap_type',array(
'type' => 'varchar',
'precision' => 56,
));
$GLOBALS['egw_setup']->oProc->AlterColumn('egw_emailadmin','ea_smtp_type',array(
'type' => 'varchar',
'precision' => 56,
));
foreach (array('1'=>'defaultsmtp', '2'=>'postfixldap', '3'=>'postfixinetorgperson', '4'=>'smtpplesk', '5' =>'postfixdbmailuser') as $id => $newtype)
{
$GLOBALS['egw_setup']->oProc->query('update egw_emailadmin set ea_smtp_type=\''.$newtype.'\' where ea_smtp_type=\''.$id.'\'',__LINE__,__FILE__);
}
foreach (array('2'=>'defaultimap', '3'=>'cyrusimap', '4'=>'dbmailqmailuser', '5'=>'pleskimap', '6' =>'dbmaildbmailuser') as $id => $newtype)
{
$GLOBALS['egw_setup']->oProc->query('update egw_emailadmin set ea_imap_type=\''.$newtype.'\' where ea_imap_type=\''.$id.'\'',__LINE__,__FILE__);
}
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.9.001'; // was '1.7.004';
}
function emailadmin_upgrade1_8()
{
emailadmin_upgrade1_7_003();
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.9.001';
}
function emailadmin_upgrade1_7_004()
{
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.9.001';
}
function emailadmin_upgrade1_9_001()
{
$GLOBALS['egw_setup']->oProc->RefreshTable('egw_emailadmin',array(
'fd' => array(
'ea_profile_id' => array('type' => 'auto','nullable' => False),
'ea_smtp_server' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_type' => array('type' => 'varchar','precision' => '56'),
'ea_smtp_port' => array('type' => 'int','precision' => '4'),
'ea_smtp_auth' => array('type' => 'varchar','precision' => '3'),
'ea_editforwardingaddress' => array('type' => 'varchar','precision' => '3'),
'ea_smtp_ldap_server' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_ldap_basedn' => array('type' => 'varchar','precision' => '200'),
'ea_smtp_ldap_admindn' => array('type' => 'varchar','precision' => '200'),
'ea_smtp_ldap_adminpw' => array('type' => 'varchar','precision' => '30'),
'ea_smtp_ldap_use_default' => array('type' => 'varchar','precision' => '3'),
'ea_imap_server' => array('type' => 'varchar','precision' => '80'),
'ea_imap_type' => array('type' => 'varchar','precision' => '56'),
'ea_imap_port' => array('type' => 'int','precision' => '4'),
'ea_imap_login_type' => array('type' => 'varchar','precision' => '20'),
'ea_imap_tsl_auth' => array('type' => 'varchar','precision' => '3'),
'ea_imap_tsl_encryption' => array('type' => 'varchar','precision' => '3'),
'ea_imap_enable_cyrus' => array('type' => 'varchar','precision' => '3'),
'ea_imap_admin_user' => array('type' => 'varchar','precision' => '40'),
'ea_imap_admin_pw' => array('type' => 'varchar','precision' => '40'),
'ea_imap_enable_sieve' => array('type' => 'varchar','precision' => '3'),
'ea_imap_sieve_server' => array('type' => 'varchar','precision' => '80'),
'ea_imap_sieve_port' => array('type' => 'int','precision' => '4'),
'ea_description' => array('type' => 'varchar','precision' => '200'),
'ea_default_domain' => array('type' => 'varchar','precision' => '100'),
'ea_organisation_name' => array('type' => 'varchar','precision' => '100'),
'ea_user_defined_identities' => array('type' => 'varchar','precision' => '3'),
'ea_user_defined_accounts' => array('type' => 'varchar','precision' => '3'),
'ea_order' => array('type' => 'int','precision' => '4'),
'ea_appname' => array('type' => 'varchar','precision' => '80'),
'ea_group' => array('type' => 'varchar','precision' => '80'),
'ea_user' => array('type' => 'varchar','precision' => '80'),
'ea_active' => array('type' => 'int','precision' => '4'),
'ea_smtp_auth_username' => array('type' => 'varchar','precision' => '80'),
'ea_smtp_auth_password' => array('type' => 'varchar','precision' => '80'),
'ea_user_defined_signatures' => array('type' => 'varchar','precision' => '3'),
'ea_default_signature' => array('type' => 'text'),
'ea_imap_auth_username' => array('type' => 'varchar','precision' => '80'),
'ea_imap_auth_password' => array('type' => 'varchar','precision' => '80'),
'ea_stationery_active_templates' => array('type' => 'text')
),
'pk' => array('ea_profile_id'),
'fk' => array(),
'ix' => array('ea_appname','ea_group'),
'uc' => array()
));
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.9.002';
}
function emailadmin_upgrade1_9_002()
{
// convert serialized stationery templates setting to eTemplate store style
foreach($GLOBALS['egw_setup']->db->query('SELECT ea_profile_id,ea_stationery_active_templates FROM egw_emailadmin
WHERE ea_stationery_active_templates IS NOT NULL',__LINE__,__FILE__) as $row)
{
if(is_array(($templates=unserialize($row['ea_stationery_active_templates']))))
{
$GLOBALS['egw_setup']->db->query('UPDATE egw_emailadmin SET ea_stationery_active_templates="'.implode(',',$templates).'"'
.' WHERE ea_profile_id='.(int)$row['ea_profile_id'],__LINE__,__FILE__);
}
unset($templates);
}
return $GLOBALS['setup_info']['emailadmin']['currentver'] = '1.9.003';
}

View File

@ -0,0 +1,19 @@
SMARTSIEVE - SIEVE SCRIPT MANAGER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright 2002 Stephen Grier <stephengrier@users.sourceforge.net>
This program 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.
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

View File

@ -0,0 +1,42 @@
<!-- BEGIN header -->
<form method="POST" action="{action_url}">
<table border="0" align="center">
<tr bgcolor="{th_bg}">
<td colspan="2"><font color="{th_text}">&nbsp;<b>{title}</b></font></td>
</tr>
<!-- END header -->
<!-- BEGIN body -->
<tr bgcolor="{row_on}">
<td colspan="2">&nbsp;</td>
</tr>
<tr bgcolor="{row_off}">
<td colspan="2">&nbsp;<b>{lang_Mail_settings}</b></td>
</tr>
<tr bgcolor="{row_on}">
<td>{lang_IMAP_admin_user}:</td>
<td><input name="newsettings[imapAdminUser]" value="{value_imapAdminUser}"></td>
</tr>
<tr bgcolor="{row_off}">
<td>{lang_IMAP_admin_password}:</td>
<td><input name="newsettings[imapAdminPassword]" value="{value_imapAdminPassword}"></td>
</tr>
<!-- END body -->
<!-- BEGIN footer -->
<tr bgcolor="{th_bg}">
<td colspan="2">
&nbsp;
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" name="submit" value="{lang_submit}">
<input type="submit" name="cancel" value="{lang_cancel}">
</td>
</tr>
</table>
</form>
<!-- END footer -->

View File

@ -0,0 +1,64 @@
<!-- BEGIN main -->
<center>
<table border="0" cellspacing="1" cellpading="0" width="95%">
<tr>
<td width="10%" valign="top">
<table border="0" cellspacing="1" cellpading="0" width="100%">
{menu_rows}
<tr>
<td>
&nbsp;
</td>
</tr>
{activation_rows}
<tr bgcolor="{done_row_color}">
<td>
<a href="{done_link}">{lang_done}</a>
</td>
</tr>
</table>
</td>
<td width="90%" valign="top">
<form action="{form_action}" method="post">
<table width="100%" cellspacing="1" cellpading="0" border="0">
<tr>
<td>
Data
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</center>
<!-- END main -->
<!-- BEGIN menu_row -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><a href="{menu_link}">{menu_description}</a><nobr>
</td>
</tr>
<!-- END menu_row -->
<!-- BEGIN menu_row_bold -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><b><a href="{menu_link}">{menu_description}</a></b><nobr>
</td>
</tr>
<!-- END menu_row_bold -->
<!-- BEGIN activation_row -->
<tr bgcolor="{bg_01}">
<td>
<a href="{activation_link}">{lang_activate}</a>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<!-- END activation_row -->

View File

@ -0,0 +1,136 @@
<!-- BEGIN main -->
<center>
<table border="0" cellspacing="1" cellpading="0" width="95%">
<tr>
<td width="10%" valign="top">
<table border="0" cellspacing="1" cellpading="0" width="100%">
{menu_rows}
<tr>
<td>
&nbsp;
</td>
</tr>
{activation_rows}
<tr bgcolor="{done_row_color}">
<td>
<a href="{done_link}">{lang_done}</a>
</td>
</tr>
</table>
</td>
<td width="90%" valign="top">
<table width="100%" cellspacing="1" cellpading="0" border="0">
<tr bgcolor="{th_bg}">
<td colspan="2">
Domains we receive email for
</td>
</tr>
<form action="{form_action}" method="post">
<tr bgcolor="{bg_01}">
<td width="50%" rowspan="5" align="center">
{rcpt_selectbox}
</td>
<td width="50%" align="center">
<input type="submit" value="{lang_remove} -->">
<input type="hidden" name="bo_action" value="remove_rcpthosts">
</td>
</tr>
</form>
<tr bgcolor="{bg_02}">
<td width="50%" align="center">
&nbsp;
</td>
</tr>
<form action="{form_action}" method="post">
<tr bgcolor="{bg_01}">
<td width="50%" align="center">
<input type="text" size="30" name="new_rcpthost">
</td>
</tr>
<tr bgcolor="{bg_02}">
<td width="50%" align="center">
<input type="checkbox" name="add_to_local">{lang_add_to_local}
</td>
</tr>
<tr bgcolor="{bg_01}">
<td width="50%" align="center">
<input type="submit" value="<-- {lang_add}">
<input type="hidden" name="bo_action" value="add_rcpthosts">
</td>
</tr>
</form>
<tr>
<td colspan="2">
&nbsp;
</td>
</tr>
<tr bgcolor="{th_bg}">
<td colspan="2">
Domains which email we handle local
</td>
</tr>
<form action="{form_action}" method="post">
<tr bgcolor="{bg_01}">
<td width="50%" rowspan="4" align="center">
{locals_selectbox}
</td>
<td width="50%" align="center">
<input type="submit" value="{lang_remove} -->">
<input type="hidden" name="bo_action" value="remove_locals">
</td>
</tr>
</form>
<tr bgcolor="{bg_02}">
<td width="50%" align="center">
&nbsp;
</td>
</tr>
<form action="{form_action}" method="post">
<tr bgcolor="{bg_01}">
<td width="50%" align="center">
<input type="text" size="30" name="new_local">
</td>
</tr>
<tr bgcolor="{bg_02}">
<td width="50%" align="center">
<input type="submit" value="<-- {lang_add}">
<input type="hidden" name="bo_action" value="add_locals">
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</form>
</center>
<!-- END main -->
<!-- BEGIN menu_row -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><a href="{menu_link}">{menu_description}</a><nobr>
</td>
</tr>
<!-- END menu_row -->
<!-- BEGIN menu_row_bold -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><b><a href="{menu_link}">{menu_description}</a></b><nobr>
</td>
</tr>
<!-- END menu_row_bold -->
<!-- BEGIN activation_row -->
<tr bgcolor="{bg_01}">
<td>
<a href="{activation_link}">{lang_activate}</a>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<!-- END activation_row -->

View File

@ -0,0 +1,111 @@
<!-- BEGIN form -->
<script language="JavaScript1.2">
var langAddAddress="{lang_enter_new_address}";
var langModifyAddress="{lang_update_current_address}";
</script>
<form method="POST" action="{form_action}">
<center>
<table border="0" width="95%">
<tr>
<td valign="top">
{rows}
</td>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr bgcolor="{th_bg}">
<td colspan="2">
<b>{lang_email_config}</b>
</td>
<td align="right">
{lang_emailaccount_active}
<input type="checkbox" name="accountStatus" {account_checked}>
</td>
</tr>
<tr bgcolor="{tr_color1}">
<td width="200">{lang_emailAddress}</td>
<td colspan="2">
<input name="mailLocalAddress" value="{mailLocalAddress}" style="width:350px;">
</td>
</tr>
<tr bgcolor="{tr_color2}">
<td>{lang_mailAlternateAddress}</td>
<td align="center" style="width:350px;">
{selectbox_mailAlternateAddress}
</td>
<td align="left">
<button type="button" onclick="addRow('mailAlternateAddress', langAddAddress)"><img src="{url_image_add}" alt="{lang_add}" title="{lang_add}"></button><br>
<button type="button" onclick="editRow('mailAlternateAddress', langModifyAddress)"><img src="{url_image_edit}" alt="{lang_edit}" title="{lang_edit}"></button><br>
<button type="button" onclick="removeRow('mailAlternateAddress')"><img src="{url_image_delete}" alt="{lang_remove}" title="{lang_remove}"></button>
</td>
</tr>
<tr bgcolor="{tr_color1}">
<td>{lang_mailRoutingAddress}</td>
<td align="center">
{selectbox_mailRoutingAddress}
</td>
<td align="left">
<button type="button" onclick="addRow('mailRoutingAddress', langAddAddress)"><img src="{url_image_add}" alt="{lang_add}" title="{lang_add}"></button><br>
<button type="button" onclick="editRow('mailRoutingAddress', langModifyAddress)"><img src="{url_image_edit}" alt="{lang_edit}" title="{lang_edit}"></button><br>
<button type="button" onclick="removeRow('mailRoutingAddress')"><img src="{url_image_delete}" alt="{lang_remove}" title="{lang_remove}"></button>
</td>
</tr>
<tr bgcolor="{tr_color2}">
<td>
{lang_forward_only}
</td>
<td colspan="2">
<input type="checkbox" name="forwardOnly" {forwardOnly_checked}>
</td>
</tr>
<tr>
<td colspan="3">
&nbsp;
</td>
</tr>
<tr bgcolor="{th_bg}">
<td colspan="3">
<b>{lang_quota_settings}</b>
</td>
</tr>
<tr bgcolor="{tr_color2}">
<td width="200">{lang_qoutainmbyte}</td>
<td colspan="2">
<input name="quotaLimit" value="{quotaLimit}" style="width:350px;"> ({lang_0forunlimited})
</td>
</tr>
<tr>
<td colspan="3">
&nbsp;
</td>
</tr>
</table>
<table border=0 width=100%>
<tr bgcolor="{tr_color1}">
<td align="right" colspan="2">
<input type="submit" name="save" value="{lang_button}" onclick="selectAllOptions('mailAlternateAddress'); selectAllOptions('mailRoutingAddress');">
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</form>
<!-- END form -->
<!-- BEGIN link_row -->
<tr bgcolor="{tr_color}">
<td colspan="2">&nbsp;&nbsp;<a href="{row_link}">{row_text}</a></td>
</tr>
<!-- END link_row -->

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,87 @@
<!-- BEGIN main -->
<center>
<table border="0" cellspacing="1" cellpading="0" width="95%">
<tr>
<td width="90%" valign="top">
<form action="{form_action}" method="post">
<table border="0" cellspacing="1" cellpading="0" width="100%">
<tr bgcolor="{bg_01}">
<td>
{lang_server_name}
</td>
<td>
<input type="text" size="50" name="qmail_servername" value="{qmail_servername}">
</td>
</tr>
<tr bgcolor="{bg_02}">
<td>
{lang_server_description}
</td>
<td>
<input type="text" size="50" name="description" value="{description}">
</td>
</tr>
<tr bgcolor="{bg_01}">
<td>
{lang_ldap_server}
</td>
<td>
<input type="text" size="50">
</td>
</tr>
<tr bgcolor="{bg_02}">
<td>
{lang_ldap_basedn}
</td>
<td>
<input type="text" size="50" name="ldap_basedn" value="{ldap_basedn}">
</td>
</tr>
<tr bgcolor="{bg_01}">
<td>
{lang_ldap_server_admin}
</td>
<td>
<input type="text" size="50">
</td>
</tr>
<tr bgcolor="{bg_02}">
<td>
{lang_ldap_server_password}
</td>
<td>
<input type="text" size="50">
</td>
</tr>
<tr bgcolor="{bg_01}">
<td align="left">
<a href="{done_link}">{lang_back}</a>
</td>
<td align="right">
<input type="submit" name="save_ldap" value="{lang_save}">
<input type="hidden" name="bo_action" value="save_ldap">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</center>
<!-- END main -->
<!-- BEGIN menu_row -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><a href="{menu_link}">{menu_description}</a><nobr>
</td>
</tr>
<!-- END menu_row -->
<!-- BEGIN menu_row_bold -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><b><a href="{menu_link}">{menu_description}</a></b><nobr>
</td>
</tr>
<!-- END menu_row_bold -->

View File

@ -0,0 +1,25 @@
<!-- BEGIN main -->
<center>
<table width="90%" border="0" cellspacing="1" cellpading="1">
<tr>
<td width="33%">
&nbsp;
</td>
<td width="33%" align="center">
<b>{lang_server_list}</b>
</td>
<td width="33%" align="right">
<a href="{add_link}">{lang_add_server}</a>
</td>
</tr>
<tr>
<td colspan="3">
{server_next_match}
</td>
</tr>
</table>
<br>
</center>
<!-- END main -->

View File

@ -0,0 +1,25 @@
<!-- HELLO -->
<table width="100%" border="0" align="center">
<tr>
{left_next_matchs}
<td align="center"><b>{description}</b></td>
{right_next_matchs}
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpading="1">
<thead>
<!-- BEGIN header_row -->
<tr bgcolor="{th_bg}">
{header_row_data}
</tr>
<!-- END header_row -->
</thead>
<tbody id="nextMatchBody">
<!-- BEGIN row_list -->
<tr id="{row_id}" bgcolor="{row_color}">
{row_data}
</tr>
<!-- END row_list -->
</tbody>
</table>

View File

@ -0,0 +1,138 @@
<!-- BEGIN main -->
<center>
<table border="0" cellspacing="1" cellpading="0" width="95%">
<tr>
<td width="10%" valign="top">
<table border="0" cellspacing="1" cellpading="0" width="100%">
{menu_rows}
<tr>
<td>
&nbsp;
</td>
</tr>
{activation_rows}
<tr bgcolor="{done_row_color}">
<td>
<a href="{done_link}">{lang_done}</a>
</td>
</tr>
</table>
</td>
<td width="90%" valign="top">
<form action="{form_action}" method="post">
<table width="100%" cellspacing="1" cellpading="0" border="0">
<tr bgcolor="{th_bg}">
<td colspan="2">
ldaplocaldelivery
</td>
</tr>
<tr bgcolor="{bg_01}">
<td>
{desc_ldaplocaldelivery}
</td>
</tr>
<tr bgcolor="{bg_02}">
<td>
<select name="ldaplocaldelivery">
<option value="0" {ldaplocaldelivery_0}>{lang_disabled}</option>
<option value="1" {ldaplocaldelivery_1}>{lang_enabled}</option>
</select>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<tr bgcolor="{th_bg}">
<td colspan="2">
ldapdefaultdotmode
</td>
</tr>
<tr bgcolor="{bg_01}">
<td>
{desc_ldapdefaultdotmode}
</td>
</tr>
<tr bgcolor="{bg_02}">
<td>
<select name="ldapdefaultdotmode">
<option value="both" {ldapdefaultdotmode_both}>both</option>
<option value="dotonly" {ldapdefaultdotmode_dotonly}>dotonly</option>
<option value="ldaponly" {ldapdefaultdotmode_ldaponly}>ldaponly</option>
<option value="ldapwithprog" {ldapdefaultdotmode_ldapwithprog}>ldapwithprog</option>
<option value="none" {ldapdefaultdotmode_none}>none</option>
</select>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<tr bgcolor="{th_bg}">
<td colspan="2">
ldapbasedn
</td>
</tr>
<tr bgcolor="{bg_01}">
<td>
{desc_ldapbasedn}
</td>
</tr>
<tr bgcolor="{bg_02}">
<td>
<input size="50" name="ldapbasedn" value="{ldapbasedn}">
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<tr bgcolor="{th_bg}">
<td colspan="2">
dirmaker
</td>
</tr>
<tr bgcolor="{th_bg}">
<td colspan="2">
ldapcluster
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</center>
<!-- END main -->
<!-- BEGIN menu_row -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><a href="{menu_link}">{menu_description}</a><nobr>
</td>
</tr>
<!-- END menu_row -->
<!-- BEGIN menu_row_bold -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><b><a href="{menu_link}">{menu_description}</a></b><nobr>
</td>
</tr>
<!-- END menu_row_bold -->
<!-- BEGIN activation_row -->
<tr bgcolor="{bg_01}">
<td>
<a href="{activation_link}">{lang_activate}</a>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<!-- END activation_row -->

View File

@ -0,0 +1,112 @@
<!-- BEGIN main -->
<center>
<table border="0" cellspacing="1" cellpading="0" width="95%">
<tr>
<td width="10%" valign="top">
<table border="0" cellspacing="1" cellpading="0" width="100%">
{menu_rows}
<tr>
<td>
&nbsp;
</td>
</tr>
{activation_rows}
<tr bgcolor="{done_row_color}">
<td>
<a href="{done_link}">{lang_done}</a>
</td>
</tr>
</table>
</td>
<td width="90%" valign="top">
<table width="100%" cellspacing="1" cellpading="0" border="0">
<tr>
<td>
<form action="{form_action}" method="post">
<table width="100%" cellspacing="1" cellpading="0" border="0">
<tr bgcolor="{th_bg}">
<td align="center">
{lang_domain_name}
</td>
<td align="center">
{lang_remote_server}
</td>
<td align="center">
{lang_remote_port}
</td>
<td align="center">
{lang_delete}
</td>
</tr>
{smtproute_rows}
<tr bgcolor="{last_row_color}">
<td align="center">
<input type="text" size="30" name="domain_name">
</td>
<td align="center">
<input type="text" size="30" name="remote_server">
</td>
<td align="center">
<input type="text" size="4" value="25" name="remote_port">
</td>
<td align="center">
<input type="submit" name="add_smtp_route" value="{lang_add}">
<input type="hidden" name="bo_action" value="add_smtproute">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
<!-- END main -->
<!-- BEGIN menu_row -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><a href="{menu_link}">{menu_description}</a><nobr>
</td>
</tr>
<!-- END menu_row -->
<!-- BEGIN menu_row_bold -->
<tr bgcolor="{menu_row_color}">
<td>
<nobr><b><a href="{menu_link}">{menu_description}</a></b><nobr>
</td>
</tr>
<!-- END menu_row_bold -->
<!-- BEGIN activation_row -->
<tr bgcolor="{bg_01}">
<td>
<a href="{activation_link}">{lang_activate}</a>
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
<!-- END activation_row -->
<!-- BEGIN smtproute_row -->
<tr bgcolor="{row_color}">
<td align="center">
{domain_name}
</td>
<td align="center">
{remote_server}
</td>
<td align="center">
{remote_port}
</td>
<td align="center">
<a href={delete_route_link}>{lang_delete}</a>
</td>
</tr>
<!-- END smtproute_row -->

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Some files were not shown because too many files have changed in this diff Show More