おのたく日記 YouTubeも始めました→
2012-02-25(Sat) [長年日記]
■ [Debian] RoubecubeでGoogleのコンタクトリスト利用する
「RoundCube google_contacts」があるけれど、Debianのパッケージにはなっていないので、tarボールをダウンロードしてきて展開する。
前提のZendは、debパッケージになっているのでパッケージ: zendframework-resourcesをインストールしておく。
$ cd /usr/local/
$ tar google_contacts-2.11.tar.gz
$ cd google_contacts/SQL
$ mysql -u roundcube roundcube --password="pass" <mysql.initial.sql
---
# cd /usr/share/roundcube/program/lib
# ln -s /usr/share/php/Zend .
# cd /etc/roundcube/config
# mkdir google_contacts
# cd google_contacts/
# ln -s /usr/local/roundcube/plugins/google_contacts/config/config.inc.php
# cd /usr/share/roundcube/plugins/
# ln -s /usr/local/roundcube/plugins/google_contacts .
# cd /var/lib/roundcube/plugins
# ln -s /usr/share/roundcube/plugins/google_contacts .
とファイル置いて
$rcmail_config['plugins'] = array( の中に 'google_contacts' 追加
[/etc/roundcube/main.inc.phpより引用]
として、Roundcubeでプラグイン有効にする。
次にユーザとしてRoubecubeにログインして、個人設定の「アドレス帳」でUse Google address bookを有効にして、Googleのユーザ名とパスワード保存する。
はじめうまくいかなくて、アドレス帳で403エラーが出てデータを取得できなかったのでアプリケーション固有のパスワードを利用しているせいかと思って色々やっているうちに動くようになった。
アドレス帳では「Expected response code 200, got 404 Photo not found」とエラーが出て、連絡先のプロパティの表示ができないけれど、メールの作成しているときにアドレスの補完が聞くようになって便利
あーでも本気で使おうとすると、エラーのためのタイムアウト待ちになっているか遅くて使いにくい…
|