#topicpath *Roundcube [#j4ec5e5d] :Project Home|http://roundcube.net/ ::Plugin List|http://trac.roundcube.net/wiki/Plugin_Repository **Current Version [#d607412b] //|Developer's|0.6.0RC|2011/09/05| |Stable|0.9.4|2013-09-06| |Debian unstable/testing|0.9.2-2|2013/07/31| //Debian package is based on the GPL dependent version (roundcubemail-dependent) . //GPL dependent version is the subset of full version (without BSD licenced //libraries in program/lib) and it has some bugs and lack of features. So please //consider full package of roundcube. *以下の設定は0.5.1 の時のものです。0.9には適用できません。 [#ic650c09] &br; 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 **設定 [#p9d5ec2d] +デフォルト読込み文字コード設定 /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) [#v1ea7d36] Debian package (0.5.4+dfsg) の構成 |roundcube|skinnable AJAX based webmail solution for IMAP servers - metapackage| |[[roundcube-core>./debian-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>./debian-plugins]]|skinnable AJAX based webmail solution for IMAP servers - plugins| |[[roundcube-plugins-extra>./debian-plugins-extra]]|skinnable AJAX based webmail solution - extra plugins| |roundcube-sqlite|metapackage providing sqlite dependencies for Roundcube| **Plugins [#b25e4c7b] +/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の振り分け規則の設定画面~ 日本語対応していません (([[翻訳中>Linux/Roundcube/Plugin/Sieverules/ja_JP]])) :quickrules|http://www.tehinterweb.co.uk/roundcube/#piquickrules ~ メール閲覧画面にsieverulesプラグインを起動するボタンを追加する。~ 日本語対応していません ((一行なので誰でも日本語対応可能))~ 以下を /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 [#t0000ea4] *** 携帯などに送った場合に文字化けする。 [#jdd202c6] Roundcube の送信文字コードは、UTF-8ですので、受け側の環境によっては文字化けします。 送信文字コードの設定を行うコードがあるのですが、日本語に関して コードが足りません。 現状では、ver0.3の日本語バージョンならば、ISO-2022-JPで送信できます。 *** 機種依存文字の文字化け対策(How to recover the garbles of the machine dependect characters.) [#v914729d] CP932が文字エンコーディングリストに入っていないため文字化けする。((丸文字に関してこれを行っても文字化けする場合があります。%%文字コードの自動判定部分のコードの問題なので検討中です。%% 0.5.4 on Sourceforge ならどうも大丈夫そう_チェック中)) ~ Some characters are garbled because of CP932 isn't included in the encording list.Try 0.5.4 on Sourceforge *** 機種依存文字の文字化け対策(How to recover the garbles of the machine dependect characters.) [#e1cb37bc] :Version|Debian unstable/testing 0.9.2-2 2013/07/31 用 Please refer http://taka2.info/20120827/roundcube-081/ for version 8.1 etc mbstring で charsetの認識を変更して対処。 :Revision|Debian 0.5.1+dfsg-3 :対策(How to recover)|以下のファイルにCP932を追加~ Add CP932 entry at following point.~ /usr/share/roundcube/program/include/rcube_shared.inc $Id: rcube_shared.inc 4509 2011-02-09 10:51:50Z thomasb $ Please refer ~ http://netlog.jpn.org/r271-635/2013/03/roundcube_webmail_085.html //CP932が文字エンコーディングリストに入っていないため文字化けする。((丸文字に関してこれを行っても文字化けする場合があります。%%文字コードの自動判定部分のコードの問題なので検討中です。%% 0.5.4 on Sourceforge ならどうも大丈夫そう_チェック中)) ~ //Some characters are garbled because of CP932 isn't included in the encording list.Try 0.5.4 on Sourceforge // //Please refer http://taka2.info/20120827/roundcube-081/ for version 8.1 etc // //:Revision|Debian 0.5.1+dfsg-3 //:対策(How to recover)|以下のファイルにCP932を追加~ //Add CP932 entry at following point.~ ///usr/share/roundcube/program/include/rcube_shared.inc // $Id: rcube_shared.inc 4509 2011-02-09 10:51:50Z thomasb $ // // @@ -502,7 +502,7 @@ // // FIXME: the order is important, because sometimes // // iso string is detected as euc-jp and etc. // $enc = array( // - 'UTF-8', 'SJIS', 'BIG5', 'GB2312', // + 'UTF-8', 'CP932', 'SJIS', 'BIG5', 'GB2312', // 'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', // 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9', // 'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16', --- 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; @@ -502,7 +502,7 @@ // FIXME: the order is important, because sometimes // iso string is detected as euc-jp and etc. $enc = array( - 'UTF-8', 'SJIS', 'BIG5', 'GB2312', + 'UTF-8', 'CP932', 'SJIS', 'BIG5', 'GB2312', 'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9', 'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16', - $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 エラーの消し方 [#s74a8a02] 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