thomascube
2005-10-03 52c1f289c288253148bbdb742ff72104c5950dd0
Minor bugfixes and SMTP support


5 files modified
2 files deleted
1144 ■■■■■ changed files
INSTALL 11 ●●●● patch | view | raw | blame | history
README 18 ●●●● patch | view | raw | blame | history
config/db.inc.php.dist 2 ●●● patch | view | raw | blame | history
config/main.inc.php.dist 2 ●●● patch | view | raw | blame | history
logs/errors 1093 ●●●●● patch | view | raw | blame | history
logs/sendmail 8 ●●●●● patch | view | raw | blame | history
program/include/main.inc 10 ●●●●● patch | view | raw | blame | history
INSTALL
@@ -6,10 +6,11 @@
2. Make shure that the following directories are writable by the webserver
   - /temp
   - /logs
3. Modify the files in /config to suit your local environment
4. Create database tables using the queries in file 'SQL/initial.sql'
   Rename tables if you like, but make shure the names are also changed in /config/db.inc
5. Done!
3. Rename the files config/*.inc.php.dist to config/*.inc.php
4. Modify the files in config/* to suit your local environment
5. Create database tables using the queries in file 'SQL/*.initial.sql'
   Rename tables if you like, but make shure the names are also changed in config/db.inc.php
6. Done!
REQUIREMENTS
@@ -28,5 +29,5 @@
CONFIGURATION
=============
Change the files in /config/ according your environment and you needs.
Change the files in config/* according your environment and you needs.
Details about the config paramaters can be found in the config files.
README
@@ -9,14 +9,26 @@
database. The user interface is fully skinnable using XHTML and CSS 2.
This project is meant to be a modern webmail solution which is easy to
install/configure and that runs on a standard PHP plus MySQL or Postgres configuration.
It includes open-source classes/libraries like PEAR (http://pear.php.net) and the
IMAP wrapper from IlohaMail (http://www.ilohamail.org).
install/configure and that runs on a standard PHP plus MySQL or Postgres
configuration. It includes open-source classes/libraries like PEAR
(http://pear.php.net) and the IMAP wrapper from IlohaMail
(http://www.ilohamail.org).
The current development skin uses icons designed by Stephen Horlander and Kevin 
Gerich for Mozilla.org.
How it works:
-------------
The main authority for the RoundCube access is the IMAP server. If
'auto_create_user' is set to TRUE in config/main.inc.php a new record in the
user table will be created once the IMAP login succeeded. This user record does
not store a password, it's just used to assign identities, contacts and cache
records. If you have 'auto_create_user' set to FALSE only IMAP logins which
already have a corresponding entry in the user's table (username and hostname)
will be allowed.
Installation:
-------------
For detailed instructions on how to install SquirrelMail on your server,
config/db.inc.php.dist
@@ -6,7 +6,7 @@
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
 | All rights reserved.                                                  |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 +-----------------------------------------------------------------------+
config/main.inc.php.dist
@@ -6,7 +6,7 @@
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005, RoundCube Dev. - Switzerland                      |
 | All rights reserved.                                                  |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 +-----------------------------------------------------------------------+
logs/errors
File was deleted
logs/sendmail
File was deleted
program/include/main.inc
@@ -303,15 +303,17 @@
  if ($user_id = $DB->insert_id())
    {
    $user_email = strstr($user, '@') ? $user : sprintf('%s@%s', $user, $host);
    $user_name = $user!=$user_email ? $user : '';
    // also create a new identity record
    $DB->query(sprintf("INSERT INTO %s
                        (user_id, `default`, name, email)
                        VALUES (%d, '1', '%s', '%s@%s')",
                        VALUES (%d, '1', '%s', '%s')",
                       get_table_name('identities'),
                       $user_id,
                       $user,
                       $user,
                       $host));
                       $user_name,
                       $user_email));
                       
    // get existing mailboxes
    $a_mailboxes = $IMAP->list_mailboxes();