Claros inTouch 是基于 java 的开源 Web2.0 邮件客户端,常和 Apache James MailServer 及 MySql 、 Tomcat 联合使用构建开源的 WebMail 邮件服务。 Claros inTouch 的最新版是 Devel 2.2Beta 版,这个版本较之前的 2.1 版增加了许多新的功能,我按照网上搜
Claros inTouch是基于java的开源Web2.0邮件客户端,常和Apache James MailServer及MySql、Tomcat联合使用构建开源的WebMail邮件服务。Claros inTouch的最新版是Devel 2.2Beta版,这个版本较之前的2.1版增加了许多新的功能,我按照网上搜索到的帖子在企业内部网络部署WebMail服务时发现了一些错误,经过摸索最终解决了问题。
1、inTouch2.2beta版和mySql5.1版结合使用时,出现数据库读写错误,但inTouch2.1就不存在问题。
阅读源码发现,inTouch使用了名为MrPersister的对象持久化组件来实现后台数据库的读写,在inTouch2.1版和inTouch2.2版中,MrPersister组件的版本不同,使用新版本的MrPersister组件和mySql5.1数据库配合就存在数据库个别字段读写问题,因此导致Intouch2.2和mySql5.1结合使用时出现错误,这应该是inTouch升级时遗留的Bug。在不必修改源代码的情况下,用inTouch2.1中旧版本的mrpersister.jar文件覆盖Intouch2.2中的相应组件jar包,就可以解决此问题。
2、inTouch的WebMail邮件客户端界面上有很多错别字,应该是系统汉化时不严谨所致,需要修改,修改WEB-INF/classes/org/claros/intouch/i18n目录下的lang_zh_cn_utf8.properties文件中的相关内容就可以了,需要注意的是该文件中的汉字使用的是Unicode-ASCII Escaped格式,也就是/u前导符加上汉字的Unicode码的转换ASCII码,需要用UltraEdit这样的编辑器编辑。
3、邮件服务器James中设定使用mySql管理邮件存储空间,默认情况下收发大附件会导致系统错误,经查询是因为mySql默认数据包大小是1M,超过1M的附件就会导致数据库读写错误,在my.ini文件mysqld段中加入:max-allowed-packet=32M就可以解决此问题。
4、inTouch设计目标只是一个简单可用的WebMail的客户端,因此不包括邮件服务器的web界面管理,所以,也就没有用户邮箱注册、修改用户密码等功能,必须由邮件服务器James的管理员通过命令行管理用户,很不方便。然而用户注册和密码修改恰恰是Webmail服务必要的功能,从James源码看,可以有三种途径进行用户管理:一是从外部通过socket连接James服务器,发送James命令串管理用户;二是使用James源码构建用户管理类;三是使用jdbc直接读写James的users数据库进行邮件用户管理。考虑到工作量和复杂性,最终采用了第三种方法管理用户并提供Web页面的用户邮箱注册和用户密码修改功能。
以上2、4点的修改文件已打包成一个补丁包,在此下载【】。

ACID attributes include atomicity, consistency, isolation and durability, and are the cornerstone of database design. 1. Atomicity ensures that the transaction is either completely successful or completely failed. 2. Consistency ensures that the database remains consistent before and after a transaction. 3. Isolation ensures that transactions do not interfere with each other. 4. Persistence ensures that data is permanently saved after transaction submission.

MySQL is not only a database management system (DBMS) but also closely related to programming languages. 1) As a DBMS, MySQL is used to store, organize and retrieve data, and optimizing indexes can improve query performance. 2) Combining SQL with programming languages, embedded in Python, using ORM tools such as SQLAlchemy can simplify operations. 3) Performance optimization includes indexing, querying, caching, library and table division and transaction management.

MySQL uses SQL commands to manage data. 1. Basic commands include SELECT, INSERT, UPDATE and DELETE. 2. Advanced usage involves JOIN, subquery and aggregate functions. 3. Common errors include syntax, logic and performance issues. 4. Optimization tips include using indexes, avoiding SELECT* and using LIMIT.

MySQL is an efficient relational database management system suitable for storing and managing data. Its advantages include high-performance queries, flexible transaction processing and rich data types. In practical applications, MySQL is often used in e-commerce platforms, social networks and content management systems, but attention should be paid to performance optimization, data security and scalability.

The relationship between SQL and MySQL is the relationship between standard languages and specific implementations. 1.SQL is a standard language used to manage and operate relational databases, allowing data addition, deletion, modification and query. 2.MySQL is a specific database management system that uses SQL as its operating language and provides efficient data storage and management.

InnoDB uses redologs and undologs to ensure data consistency and reliability. 1.redologs record data page modification to ensure crash recovery and transaction persistence. 2.undologs records the original data value and supports transaction rollback and MVCC.

Key metrics for EXPLAIN commands include type, key, rows, and Extra. 1) The type reflects the access type of the query. The higher the value, the higher the efficiency, such as const is better than ALL. 2) The key displays the index used, and NULL indicates no index. 3) rows estimates the number of scanned rows, affecting query performance. 4) Extra provides additional information, such as Usingfilesort prompts that it needs to be optimized.

Usingtemporary indicates that the need to create temporary tables in MySQL queries, which are commonly found in ORDERBY using DISTINCT, GROUPBY, or non-indexed columns. You can avoid the occurrence of indexes and rewrite queries and improve query performance. Specifically, when Usingtemporary appears in EXPLAIN output, it means that MySQL needs to create temporary tables to handle queries. This usually occurs when: 1) deduplication or grouping when using DISTINCT or GROUPBY; 2) sort when ORDERBY contains non-index columns; 3) use complex subquery or join operations. Optimization methods include: 1) ORDERBY and GROUPB


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor