IT log

moral & concision is my dream.

setup squirrelmail for hmailserver

由于一直使用的是网上下载的已配置好的 squirrelmail for hmailserver 4 包, 而现在我已经升级 hmailserver 到 5.1 版了, 并且同事反应无法修改账户密码, 所以我决定把 squirelmail 这个 hmailserver 官方推荐的 webmail 程序也升级一下.

以前由于看到长长的英文 squirrelmail 说明就发怵, 而我又不情愿为了设置 hmailserver 而启用 perl script 脚本模块, 导致我一直没有手动配置 squirrelmail 的经验, 不过幸好最近我在努力习惯英文(所有软件能更换为英文版的都更换为了英文版), 故我这次长长说明看一下, 觉得其实配置 squirrelmail 也是一件很简单的事情.

下面我把我的配置步骤记录一下:
Read more…

posted by Leon Tsang in Live - Work and Struggle and have Comments (8)

using plugins within firefox and thunderbird

最初只是为了更换一下 firefox 和 thunderbird 的 plugins Themes 而访问了 mozilla.org.

在卸载掉 aero theme 后, 没找到其他合适的皮肤, 但发现了带有更换大量皮肤功能且会更新的 Personas (make changing the look of the browser as easy as changing your shirt) .

firefox 以后更换皮肤就轻松多了,  我觉得这个 Personas 如果发展得好的话, 将来会垄断 mozilla 所有软件的皮肤市场, 以后软件自带的 Tools – Add0-ons – Themes 功能如果不进行重大升级的话, 将会沦为摆设.

这个网址可用来查看 Personas 中最受欢迎的皮肤样式: http://www.getpersonas.com/gallery/All/Popular

如果说在 firefox 中找到了 Personas 算做一个轻松旅程的话, 那么相对而言 Thunderbird 的 plugins 更新和使用过程就太痛苦了.

Thunderbird 的 skin theme 更换从冷色 Cobalt 到暖色且更快 Slivermel, 这个过程倒是没有什么障碍.

接着我用 gContactSync 代替 Zindus 来同步本地的邮件地址簿到 google mail contacts 中, 之所以舍弃 Zindus , 是因为 gContactSync 对于 gmail 地址簿格式专注, 解决了很多兼容问题, 并模仿 gmail contacts 修改了 Thunderbird 中默认地址簿格式.

最最郁闷的是使用扩展插件 Stationery ( Allow you to use HTML files as templates for mail. Also allow custom template in replies or forwarded mail! ) 中遇到的问题, 因为我测试这个信纸插件是发送到 foxmail 中用webmail mail.foxmail.com  来查看的,  但因为从前不知道在 webmail 界面中查看 html 格式邮件会被屏蔽掉很多样式, 所以会误以为是这个插件或是客户端问题使得邮件信纸不能正常显示.

如果再详细描述我在遇到问题后不断试验, 以及查找资料的过程, 那我估计今天就不用睡觉了. 我就先对我发现包括 gmail 和 foxmail 网站上的 webmail 问题进行一下总结, 然后再列出三个对我解决问题最有帮助的网址以及内容摘要.

webmail 对 html 格式邮件样式过滤/屏蔽的总结:

1. 屏蔽 body 标签中的 background 属性;

2. 屏蔽所有标签中的样式 style 属性中的 background 以及相关属性;

3. 屏蔽所有标签中的样式 style 属性中的 position, z-index 等用来定位的属性.

几个有价值的关于邮件 内嵌/嵌入 不带附件显示图片的文章:

用Java Mail发送带有图片附件的html格式邮件 http://www.sudu.cn/info/html/edu/20071219/119776.html

用Java Mail发送带有图片的html格式的邮件,针对于显示图片,一般有两种方法。

1. 图片存在于服务器上,我们只需要把图片在服务器的的链接放进去即可。
这种发式比较简单,不过这种方法有些缺陷:
图片不支持离线浏览;
每次浏览邮件需要访问web服务,增加服务器负担;
若图片以二进制的方式存在于数据库或是动态生成的,则无法有效的解决。

2. 把图片以附件的方式发送出去,这种方式非常适用于图片存在于数据库中的情况

Creating complex mails with inline images http://kb.mozillazine.org/Creating_complex_mails_with_inline_images

The HTML format allows to place an image within the message text rather than as an attachment. There are several ways how to do this. This section describes including an image from a local file, whereas the next section describes inserting an image located at a remote server.

How to Add a Background Image to a Message in Mozilla Thunderbird http://email.about.com/od/mozillathunderbirdtips/qt/et040905.htm

A white background is not to be sneezed at, but the splendor of a colorful, classy or artistic image is a welcome change now and then. In Mozilla Thunderbird, you can make an image your background.

posted by Leon Tsang in Live - Work and Struggle and have No Comments

my wordpress plugins have been updated

国内 ISP的 100M 共享带宽真是一件很没谱的事情, 很明显地, 我把博客从公司服务器搬到国外共享 web hosting 上后, 明显比国内我独自占用一台主机的访问速度更快了.

之前为了给博客提速,  wordpress plugins 我是删了一个又删一个, 最后只剩下了 Google XML Sitemaps 3.1.2Flickr Gallery 1.2.4 两个插件, 速度依然快不了多少. 本来还打算出差回去后把服务器系统从 windows 2003 server 改成 centos linux , 现在似乎没有这个必要了, 担心修改后由于对 linux 还不纯熟导致服务器不能访问.

现在因为主机已经在国外了, 所以可以放心使用 Akismet plugin 来反垃圾留言了, 一直由于国内屏蔽所有 wordpress.com 的子域名而担心 wordpress api key 无法在 akismet 中正常使用, 所以就直接删除了这个 wordpress 中自带的官方插件.

虽然使用了  WP Super Cache 0.9.4.2 来对页面缓存后, 似乎网速没有多大改变, 但既然这个插件这么受欢迎还是有它道理的, 所以重新安装上这个插件, 我想也许等访问量大了才能体现出它的优势.

原来我一直觉得不错的 WP-SpamFree Anti-Spam 2.0.0.5 由于在共享主机上禁用了 php mail() 函数, 导致它的优势无法体现, 只好卸载掉了.

posted by Leon Tsang in Live - Work and Struggle and have No Comments