Permalink
Browse files

Initial revision

  • Loading branch information...
0 parents commit 4e17e6c9dbac8991ee8b302cb2581241247dc8bc @thomascube thomascube committed Sep 25, 2005
Showing with 20,961 additions and 0 deletions.
  1. +12 −0 .htaccess
  2. +26 −0 CHANGELOG
  3. +32 −0 INSTALL
  4. +93 −0 SQL/initial.sql
  5. +15 −0 UPGRADING
  6. +2 −0 config/.htaccess
  7. +46 −0 config/db.inc.php
  8. +96 −0 config/main.inc.php
  9. +273 −0 index.php
  10. +2 −0 logs/.htaccess
  11. 0 logs/errors
  12. 0 logs/sendmail
  13. BIN program/blank.gif
  14. +104 −0 program/include/bugs.inc
  15. +112 −0 program/include/cache.inc
  16. +1,020 −0 program/include/main.inc
  17. +1,117 −0 program/include/rcube_imap.inc
  18. +186 −0 program/include/rcube_mysql.inc
  19. +1,417 −0 program/include/rcube_shared.inc
  20. +154 −0 program/include/session.inc
  21. +2,388 −0 program/js/app.js
  22. +343 −0 program/js/common.js
  23. +733 −0 program/lib/Mail/mime.php
  24. +842 −0 program/lib/Mail/mimeDecode.php
  25. +351 −0 program/lib/Mail/mimePart.php
  26. +927 −0 program/lib/PEAR.php
  27. +218 −0 program/lib/des.inc
  28. +114 −0 program/lib/enriched.inc
  29. +440 −0 program/lib/html2text.inc
  30. +81 −0 program/lib/icl_commons.inc
  31. +2,038 −0 program/lib/imap.inc
  32. +322 −0 program/lib/mime.inc
  33. +351 −0 program/lib/smtp.inc
  34. +384 −0 program/lib/utf7.inc
  35. +102 −0 program/lib/utf8.inc
  36. +171 −0 program/localization/de/labels.inc
  37. +56 −0 program/localization/de/messages.inc
  38. +171 −0 program/localization/en/labels.inc
  39. +56 −0 program/localization/en/messages.inc
  40. +104 −0 program/steps/addressbook/delete.inc
  41. +123 −0 program/steps/addressbook/edit.inc
  42. +198 −0 program/steps/addressbook/func.inc
  43. +59 −0 program/steps/addressbook/list.inc
  44. +168 −0 program/steps/addressbook/save.inc
  45. +81 −0 program/steps/addressbook/show.inc
  46. +117 −0 program/steps/error.inc
  47. +70 −0 program/steps/mail/addcontact.inc
  48. +545 −0 program/steps/mail/compose.inc
  49. +1,101 −0 program/steps/mail/func.inc
  50. +159 −0 program/steps/mail/get.inc
  51. +49 −0 program/steps/mail/list.inc
  52. +41 −0 program/steps/mail/mark.inc
  53. +82 −0 program/steps/mail/move_del.inc
  54. +251 −0 program/steps/mail/sendmail.inc
  55. +169 −0 program/steps/mail/show.inc
  56. +75 −0 program/steps/mail/upload.inc
  57. +39 −0 program/steps/mail/viewsource.inc
  58. +55 −0 program/steps/settings/delete_identity.inc
  59. +106 −0 program/steps/settings/edit_identity.inc
  60. +194 −0 program/steps/settings/func.inc
  61. +48 −0 program/steps/settings/identities.inc
  62. +176 −0 program/steps/settings/manage_folders.inc
  63. +136 −0 program/steps/settings/save_identity.inc
  64. +59 −0 program/steps/settings/save_prefs.inc
  65. +119 −0 skins/default/addresses.css
  66. +277 −0 skins/default/common.css
  67. BIN skins/default/images/blank.gif
  68. BIN skins/default/images/buttons/add_act.png
  69. BIN skins/default/images/buttons/add_contact_act.png
  70. BIN skins/default/images/buttons/add_contact_pas.png
  71. BIN skins/default/images/buttons/add_pas.png
  72. BIN skins/default/images/buttons/addressbook.png
  73. BIN skins/default/images/buttons/attach_act.png
  74. BIN skins/default/images/buttons/attach_pas.png
  75. BIN skins/default/images/buttons/back_act.png
  76. BIN skins/default/images/buttons/back_pas.png
  77. BIN skins/default/images/buttons/bg.gif
  78. BIN skins/default/images/buttons/compose_act.png
  79. BIN skins/default/images/buttons/compose_pas.png
  80. BIN skins/default/images/buttons/contacts_act.png
  81. BIN skins/default/images/buttons/contacts_pas.png
  82. BIN skins/default/images/buttons/delete_act.png
  83. BIN skins/default/images/buttons/delete_pas.png
  84. BIN skins/default/images/buttons/download_act.png
  85. BIN skins/default/images/buttons/download_pas.png
  86. BIN skins/default/images/buttons/edit_contact_act.png
  87. BIN skins/default/images/buttons/edit_contact_pas.png
  88. BIN skins/default/images/buttons/forward_act.png
  89. BIN skins/default/images/buttons/forward_pas.png
  90. BIN skins/default/images/buttons/inbox_act.png
  91. BIN skins/default/images/buttons/inbox_pas.png
  92. BIN skins/default/images/buttons/logout.gif
  93. BIN skins/default/images/buttons/logout.png
  94. BIN skins/default/images/buttons/mail.png
  95. BIN skins/default/images/buttons/next_act.png
  96. BIN skins/default/images/buttons/next_pas.png
  97. BIN skins/default/images/buttons/previous_act.png
  98. BIN skins/default/images/buttons/previous_pas.png
  99. BIN skins/default/images/buttons/print_act.png
  100. BIN skins/default/images/buttons/print_pas.png
  101. BIN skins/default/images/buttons/reply_act.png
  102. BIN skins/default/images/buttons/reply_pas.png
  103. BIN skins/default/images/buttons/send_act.png
  104. BIN skins/default/images/buttons/send_pas.png
  105. BIN skins/default/images/buttons/settings.png
  106. BIN skins/default/images/buttons/source_act.png
  107. BIN skins/default/images/buttons/source_pas.png
  108. BIN skins/default/images/buttons/spacer.gif
  109. BIN skins/default/images/display/confirm.png
  110. BIN skins/default/images/display/info.png
  111. BIN skins/default/images/display/loading.gif
  112. BIN skins/default/images/display/warning.png
  113. BIN skins/default/images/icons/abcard.png
  114. BIN skins/default/images/icons/attachment.png
  115. BIN skins/default/images/icons/dot.png
  116. BIN skins/default/images/icons/flagged.png
  117. BIN skins/default/images/icons/folder-closed.png
  118. BIN skins/default/images/icons/folder-inbox.png
  119. BIN skins/default/images/icons/folder-junk.png
  120. BIN skins/default/images/icons/folder-open.png
  121. BIN skins/default/images/icons/folder-sent.png
  122. BIN skins/default/images/icons/folder-trash.png
  123. BIN skins/default/images/icons/forwarded.png
  124. BIN skins/default/images/icons/plus.gif
  125. BIN skins/default/images/icons/replied.png
  126. BIN skins/default/images/icons/silhouette.png
  127. BIN skins/default/images/icons/unread.png
  128. BIN skins/default/images/listheader_aqua.gif
  129. BIN skins/default/images/listheader_dark.gif
  130. BIN skins/default/images/listheader_light.gif
  131. BIN skins/default/images/mailbox_list.gif
  132. BIN skins/default/images/mailbox_selected.gif
  133. BIN skins/default/images/rcube_watermark.png
  134. BIN skins/default/images/roundcube_logo.gif
  135. BIN skins/default/images/roundcube_logo.png
  136. BIN skins/default/images/roundcube_logo_print.gif
  137. BIN skins/default/images/tab_act.gif
  138. BIN skins/default/images/tab_pas.gif
  139. +3 −0 skins/default/includes/header.html
  140. +11 −0 skins/default/includes/settingscripts.html
  141. +3 −0 skins/default/includes/settingstabs.html
  142. +14 −0 skins/default/includes/taskbar.html
  143. +647 −0 skins/default/mail.css
  144. +52 −0 skins/default/pngbehavior.htc
  145. +111 −0 skins/default/print.css
  146. +150 −0 skins/default/settings.css
  147. +24 −0 skins/default/templates/addcontact.html
  148. +35 −0 skins/default/templates/addidentity.html
  149. +37 −0 skins/default/templates/addressbook.html
  150. +118 −0 skins/default/templates/compose.html
  151. +24 −0 skins/default/templates/editcontact.html
  152. +37 −0 skins/default/templates/editidentity.html
  153. +16 −0 skins/default/templates/error.html
  154. +23 −0 skins/default/templates/identities.html
  155. +30 −0 skins/default/templates/login.html
  156. +50 −0 skins/default/templates/mail.html
  157. +38 −0 skins/default/templates/managefolders.html
  158. +41 −0 skins/default/templates/message.html
  159. +22 −0 skins/default/templates/messagepart.html
  160. +18 −0 skins/default/templates/printmessage.html
  161. +28 −0 skins/default/templates/settings.html
  162. +19 −0 skins/default/templates/showcontact.html
  163. +12 −0 skins/default/watermark.html
  164. +2 −0 temp/.htaccess
@@ -0,0 +1,12 @@
+php_flag display_errors On
+php_value session.gc_maxlifetime 21600
+php_value session.gc_divisor 500
+php_value upload_max_filesize 2m
+
+<FilesMatch "(\.inc|\~)$|^_">
+ Order allow,deny
+ Deny from all
+</FilesMatch>
+
+Order deny,allow
+Allow from all
@@ -0,0 +1,26 @@
+CHANGELOG RoundCube Webmail
+---------------------------
+
+2005/08/11
+----------
+- Write list header to client even if list is empty
+- Add functions "select all", "select none" to message list
+- Improved filter for HTML messages to remove potentially malicious tags (script, iframe, object) and event handlers.
+- Buttons for next/previous message in view mode
+- Add new created contact to list and show confirmation status
+- Added folder management (subscribe/create/delete)
+- Log message sending (SMTP log)
+- Grant access for Camino browser
+- Added German translation
+
+
+2005/08/20
+----------
+- Improved cacheing of mailbox messagecount
+- Fixed javascript bug when creating a new message folder
+- Fixed javascript bugs #1260990 and #1260992: folder selection
+- Make Trash folder configurable
+- Auto create folders Inbox, Sent and Trash (if configured)
+- Support for IMAP root folder
+- Added support fot text/enriched messages
+- Make list of special mailboxes configurable
32 INSTALL
@@ -0,0 +1,32 @@
+
+INSTALLATION
+============
+
+1. Decompress and put this folder somewhere inside your document root
+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!
+
+
+REQUIREMENTS
+============
+
+* The Apache Webserver
+* .htaccess support allowing overrides for DirectoryIndex
+* PHP Version 4.3.1 or greater
+* php.ini options:
+ - error_reporting E_ALL & ~E_NOTICE (or lower)
+ - file_uploads on (for attachment upload features)
+* The MySQL database engine
+* A database with permission to create tables
+
+
+CONFIGURATION
+=============
+
+Change the files in /config/ according your environment and you needs.
+Details about the config paramaters can be found in the config files.
@@ -0,0 +1,93 @@
+-- RoundCube Webmail initial database structure
+-- Version 0.1a
+--
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `cache`
+--
+
+CREATE TABLE `cache` (
+ `cache_id` int(10) unsigned NOT NULL auto_increment,
+ `user_id` int(10) unsigned NOT NULL default '0',
+ `session_id` varchar(32) default NULL,
+ `cache_key` varchar(128) NOT NULL default '',
+ `created` datetime NOT NULL default '0000-00-00 00:00:00',
+ `data` longtext NOT NULL,
+ PRIMARY KEY (`cache_id`),
+ KEY `user_id` (`user_id`),
+ KEY `cache_key` (`cache_key`),
+ KEY `session_id` (`session_id`)
+) TYPE=MyISAM;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `contacts`
+--
+
+CREATE TABLE `contacts` (
+ `contact_id` int(10) unsigned NOT NULL auto_increment,
+ `user_id` int(10) unsigned NOT NULL default '0',
+ `del` enum('0','1') NOT NULL default '0',
+ `name` varchar(128) NOT NULL default '',
+ `email` varchar(128) NOT NULL default '',
+ `firstname` varchar(128) NOT NULL default '',
+ `surname` varchar(128) NOT NULL default '',
+ `vcard` text NOT NULL,
+ PRIMARY KEY (`contact_id`),
+ KEY `user_id` (`user_id`)
+) TYPE=MyISAM;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `identities`
+--
+
+CREATE TABLE `identities` (
+ `identity_id` int(10) unsigned NOT NULL auto_increment,
+ `user_id` int(10) unsigned NOT NULL default '0',
+ `del` enum('0','1') NOT NULL default '0',
+ `default` enum('0','1') NOT NULL default '0',
+ `name` varchar(128) NOT NULL default '',
+ `organization` varchar(128) NOT NULL default '',
+ `email` varchar(128) NOT NULL default '',
+ `reply-to` varchar(128) NOT NULL default '',
+ `bcc` varchar(128) NOT NULL default '',
+ `signature` text NOT NULL,
+ PRIMARY KEY (`identity_id`),
+ KEY `user_id` (`user_id`)
+) TYPE=MyISAM;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `session`
+--
+
+CREATE TABLE `session` (
+ `sess_id` varchar(32) NOT NULL default '',
+ `created` datetime NOT NULL default '0000-00-00 00:00:00',
+ `changed` datetime NOT NULL default '0000-00-00 00:00:00',
+ `vars` text NOT NULL,
+ PRIMARY KEY (`sess_id`)
+) TYPE=MyISAM;
+
+-- --------------------------------------------------------
+
+--
+-- Table structure for table `users`
+--
+
+CREATE TABLE `users` (
+ `user_id` int(10) unsigned NOT NULL auto_increment,
+ `username` varchar(128) NOT NULL default '',
+ `mail_host` varchar(255) NOT NULL default '',
+ `created` datetime NOT NULL default '0000-00-00 00:00:00',
+ `last_login` datetime NOT NULL default '0000-00-00 00:00:00',
+ `language` varchar(5) NOT NULL default 'en',
+ `preferences` text NOT NULL,
+ PRIMARY KEY (`user_id`)
+) TYPE=MyISAM;
@@ -0,0 +1,15 @@
+UPDATE instructions
+===================
+
+Follow these instructions if upgrading from a previous version
+of RoundCube Webmail.
+
+
+
+from versions 0.1-alpha and 0.1-20050811
+----------------------------------------
+- replace all files in folder /program/
+- add these line to /config/main.inc.php
+ $rcmail_config['trash_mbox'] = 'Trash';
+ $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
+ $rcmail_config['prefer_html'] = TRUE;
@@ -0,0 +1,2 @@
+Order allow,deny
+Deny from all
@@ -0,0 +1,46 @@
+<?php
+
+/*
+ +-----------------------------------------------------------------------+
+ | Configuration file for database access |
+ | |
+ | This file is part of the RoundCube Webmail client |
+ | Copyright (C) 2005, RoundCube Dev. - Switzerland |
+ | All rights reserved. |
+ | |
+ +-----------------------------------------------------------------------+
+
+*/
+
+$rcmail_config = array();
+
+// database engine (currently supported: mysql)
+$rcmail_config['db_type'] = 'mysql';
+
+// database host
+$rcmail_config['db_host'] = 'localhost';
+
+// database user
+$rcmail_config['db_user'] = 'roundcube';
+
+// pwd
+$rcmail_config['db_pass'] = 'pass';
+
+// database name
+$rcmail_config['db_name'] = 'roundcubemail';
+
+
+// you can define specific table names used to store webmail data
+$rcmail_config['db_table_users'] = 'users';
+
+$rcmail_config['db_table_identities'] = 'identities';
+
+$rcmail_config['db_table_contacts'] = 'contacts';
+
+$rcmail_config['db_table_session'] = 'session';
+
+$rcmail_config['db_table_cache'] = 'cache';
+
+
+// end db config file
+?>
@@ -0,0 +1,96 @@
+<?php
+
+/*
+ +-----------------------------------------------------------------------+
+ | Main configuration file |
+ | |
+ | This file is part of the RoundCube Webmail client |
+ | Copyright (C) 2005, RoundCube Dev. - Switzerland |
+ | All rights reserved. |
+ | |
+ +-----------------------------------------------------------------------+
+
+*/
+
+$rcmail_config = array();
+
+
+// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show
+$rcmail_config['debug_level'] = 5;
+
+// automatically create a new user when log-in the first time
+// set to false if only registered users can use this service
+$rcmail_config['auto_create_user'] = TRUE;
+
+// the mail host chosen to perform the log-in
+// leave blank to show a textbox at login, give a list of hosts
+// to display a pulldown menu or set one host as string
+$rcmail_config['default_host'] = '';
+
+// use this host for sending mails.
+// if left blank, the PHP mail() function is used
+$rcmail_config['smtp_server'] = '';
+
+// SMTP username (if required)
+$rcmail_config['smtp_user'] = '';
+
+// SMTP password (if required)
+$rcmail_config['smtp_pass'] = '';
+
+// Log sent messages
+$rcmail_config['smtp_log'] = TRUE;
+
+// these cols are shown in the message list
+// available cols are: subject, from, to, cc, replyto, date, size, encoding
+$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');
+
+// relative path to the skin folder
+$rcmail_config['skin_path'] = 'skins/default/';
+
+// use this folder to store temp files (must be writebale for apache user)
+$rcmail_config['temp_dir'] = 'temp/';
+
+// check client IP in session athorization
+$rcmail_config['ip_check'] = TRUE;
+
+// not shure what this was good for :-)
+$rcmail_config['locale_string'] = 'de_DE';
+
+// use this format for short date display
+$rcmail_config['date_short'] = 'D H:i';
+
+// use this format for detailed date/time formatting
+$rcmail_config['date_long'] = 'd.m.Y H:i';
+
+// add this user-agent to message headers when sending
+$rcmail_config['useragent'] = 'RoundCube Webmail/0.1a';
+
+// only list folders within this path
+$rcmail_config['imap_root'] = '';
+
+// store sent message is this mailbox
+// leave blank if sent messages should not be stored
+$rcmail_config['sent_mbox'] = 'Sent';
+
+// move messages to this folder when deleting them
+// leave blank if they should be deleted directly
+$rcmail_config['trash_mbox'] = 'Trash';
+
+// display these folders separately in the mailbox list
+$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
+
+
+/***** these settings can be overwritten by user's preferences *****/
+
+// show up to X items in list view
+$rcmail_config['pagesize'] = 40;
+
+// use this timezone to display date/time
+$rcmail_config['timezone'] = 1;
+
+// prefer displaying HTML messages
+$rcmail_config['prefer_html'] = TRUE;
+
+
+// end of config file
+?>
Oops, something went wrong.

0 comments on commit 4e17e6c

Please sign in to comment.