Roundcube †
- Project Home
- http://roundcube.net/
- Plugin List
- http://trac.roundcube.net/wiki/Plugin_Repository
Current Version †
Stable | 0.9.4 | 2013-09-06 |
Debian unstable/testing | 0.9.2-2 | 2013/07/31 |
以下の設定は0.5.1 の時のものです。0.9には適用できません。 †
Following Setting parameters are suitable for 0.5.1 debian package. These are NOT applicable for 0.9 package!!. [#i9bcb03f]
Please refer
http://netlog.jpn.org/r271-635/2013/03/roundcube_webmail_085.html
設定 †
- デフォルト読込み文字コード設定
/etc/roundcube/main.inc.php
@@ -497,7 +504,7 @@
// ----------------------------------
// Use this charset as fallback for message decoding
-$rcmail_config['default_charset'] = 'UTF-8';
+$rcmail_config['default_charset'] = 'ISO-2022-JP';
- 日時表示フォーマット変更 /etc/roundcube/main.inc.php
@@ -345,6 +351,7 @@
// use this format for detailed date/time formatting (date or strftime format)
$rcmail_config['date_long'] = 'd.m.Y H:i';
+$rcmail_config['date_long'] = '/Y/m/d H:i';
構成(software structure) †
Debian package (0.5.4+dfsg) の構成
roundcube | skinnable AJAX based webmail solution for IMAP servers - metapackage |
roundcube-core | [MAIN]skinnable AJAX based webmail solution for IMAP servers |
roundcube-mysql | metapackage providing MySQL dependencies for Roundcube |
roundcube-pgsql | metapackage providing PostgreSQL dependencies for Roundcube |
roundcube-plugins | skinnable AJAX based webmail solution for IMAP servers - plugins |
roundcube-plugins-extra | skinnable AJAX based webmail solution - extra plugins |
roundcube-sqlite | metapackage providing sqlite dependencies for Roundcube |
Plugins †
- /usr/share/roundcube/plugin 以下に展開
- /etc/roundcube/main.inc.php の List of active plugins に追加
今使っているやつ
- contextmenu
- http://www.tehinterweb.co.uk/roundcube/#picontextmenu
メールの既読未読削除返信転送などが右クリックで指定できるメニューを追加します。
日本語対応していません
以下を /usr/share/roundcube/plugins/contextmenu/localization ja_JP.incとして置くだけ(文字コードはUTF-8でね)
<?php
/* Author: Philip Weir */
$labels = array();
$labels['markreadfolder'] = 'すべて既読にする';
$labels['collapseall'] = 'すべてのフォルダを畳む';
$labels['expandall'] = 'すべてのフォルダを展開する';
$labels['copyto'] = 'コピー...';
$messages = array();
?>
- sieverules
- http://www.tehinterweb.co.uk/roundcube/#pisieverules
Sieveの振り分け規則の設定画面
日本語対応していません *1
- quickrules
- http://www.tehinterweb.co.uk/roundcube/#piquickrules
メール閲覧画面にsieverulesプラグインを起動するボタンを追加する。
日本語対応していません *2
以下を /usr/share/roundcube/plugins/quickrules/localization ja_JP.incとして置くだけ(文字コードはUTF-8でね)
<?php
/* Author: Philip Weir */
/* Translator: Merlin <merlin@tec-tech.org> */
$labels = array();
$labels['createfilter'] = 'フィルターの作成...';
$messages = array();
?>
- markasjunk2
- http://www.tehinterweb.co.uk/roundcube/#pimarkasjunk2
メール閲覧画面に迷惑メールマークボタンを追加する。
日本語対応していません
以下を /usr/share/roundcube/plugins/markasjunk2/localization ja_JP.incとして置くだけ(文字コードはUTF-8でね)
<?php
/* Author: Philip Weir */
$labels = array();
$labels['buttonjunk'] = '迷惑メールとしてマーク';
$labels['markasjunk'] = '迷惑メール';
$labels['buttonnotjunk'] = 'このメールは迷惑メールではありません';
$labels['markasnotjunk'] = '迷惑メールでない';
$messages = array();
$messages['reportedasjunk'] = 'うまく迷惑メール検出されました';
$messages['reportedasnotjunk'] = 'インボックスに移動されたメール';
?>
- compose_addressbook
- http://underwa.ter.net/roundcube-plugins/
メール作成画面からアドレス帳を使えるようにします。
roundcubeのバージョンに対応したプラグインを使ってください。
jqueryui プラグインも必要です。
日本語対応していません
以下を /usr/share/roundcube/plugins/compose_addressbook/localization ja_JP.incとして置くだけ(文字コードはUTF-8でね)
<?php
$labels = array();
$labels['compose_addressbook_buttontitle'] = 'アドレス帳表示';
$labels['compose_addressbook_title'] = 'アドレス帳';
$labels['compose_addressbook_close'] = '閉じる';
$labels['compose_addressbook_noselect'] = '宛先を選んでいません';
$labels['compose_addressbook_added'] = '宛先が追加されました';
?>
- jqueryui
- http://www.tehinterweb.co.uk/roundcube-plugins/
他のプラグイン用の入力画面を開くライブラリです。
Roundcube tips †
携帯などに送った場合に文字化けする。 †
Roundcube の送信文字コードは、UTF-8ですので、受け側の環境によっては文字化けします。
送信文字コードの設定を行うコードがあるのですが、日本語に関して コードが足りません。
現状では、ver0.3の日本語バージョンならば、ISO-2022-JPで送信できます。
機種依存文字の文字化け対策(How to recover the garbles of the machine dependect characters.) †
- Version
- Debian unstable/testing 0.9.2-2 2013/07/31 用
mbstring で charsetの認識を変更して対処。
Please refer
http://netlog.jpn.org/r271-635/2013/03/roundcube_webmail_085.html
--- rcube_charset.php_orig 2013-09-10 17:57:44.617120526 +0900
+++ rcube_charset.php 2013-09-10 18:14:31.610269633 +0900
@@ -177,7 +177,7 @@
static $mbstring_sch = null;
static $conv = null;
- $to = empty($to) ? RCUBE_CHARSET : $to;
+ $to = empty($to) ? strtoupper(RCUBE_CHARSET) : self::parse_charset($to);
$from = self::parse_charset($from);
// It is a common case when UTF-16 charset is used with US-ASCII content (#1488654)
@@ -233,6 +233,12 @@
if (($from == 'US-ASCII' || $to == 'US-ASCII') && !in_array('US- ASCII', $mbstring_list)) {
$aliases['US-ASCII'] = 'ASCII';
}
+
+ $aliases['JIS'] = 'ISO-2022-JP-MS';
+ $aliases['ISO-2022-JP'] = 'ISO-2022-JP-MS';
+ $aliases['EUC-JP'] = 'EUCJP-WIN';
+ $aliases['SJIS'] = 'SJIS-WIN';
+ $aliases['SHIFT_JIS'] = 'SJIS-WIN';
$mb_from = $aliases[$from] ? $aliases[$from] : $from;
$mb_to = $aliases[$to] ? $aliases[$to] : $to;
PHP 5.3.X での PHP Deprecated エラーの消し方 †
PHP5.3.Xでは、
PHP Deprecated: Assigning the return value of new by reference is deprecated in /home/USR/share/php/MDB2.php on line #####
なんてエラーがでまくる。これは, PEARがPHP5に対応していない為で対処療法を施せば良い(とりあえずエラーを消すだけ)
php.ini もしくは /usr/share/roundcube/program/include/iniset.php (line69)の error_reporting を
ini_set('error_reporting', E_ALL&~E_NOTICE);
=>
ini_set('error_reporting', E_ALL&~E_NOTICE&~E_DEPRECATED);
とする。
php.iniでは
error_reporting = E_ALL & ~E_NOTICE
=>
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED