ページ更新: 2003-12-14 (日) (7107日前)

mobileimapを試してみる。(未完成)

AirH"PHONE 買ったが、SquirrelMailにはアクセスできないので。

[編集]

現在の状況 #

  • 自宅内サーバ(Internetには非公開)で、
    • IE6.0 -> Apache -> mod_proxy -> mobileimap -> Courier-IMAPは表示ができた。
    • でも、リンクがおかしいのだな。(mod_proxyの設定を直さなきゃ。mod_rewriteでやってみるか)
  • discypus.jpサーバで、
    • lynx/links/w3m(on localhost) -> mobileimap -> Courier-IMAPは失敗。
[編集]

情報源 #

mobileimap: 携帯電話用の IMAP対応 Webメーラー

Unix User 原稿: mobileimapで携帯メール快適生活

  • Courier-IMAP使っているので、configure 時に --enable-unicode=iso-2022-jp を指定してあるかどうか確認。
  • mobileimapはhttpサーバとして動く。また、認証はない
    • このサーバを使っている全員にサービスを提供したいので、IPでアクセス制御は行わない。(あるいは携帯のIPを全部調べて、そこ以外からはアクセスできないようにする)
    • apacheでBasic認証させて、mod_proxy経由で切り替えるか?
[編集]

SqWebMailってのもある #

SqWebMail for Japanese Code, WebMail for Maildir

SqWebMail Mobile Patch

Google 検索: SqWebMail 携帯

[編集]

ruby #

[編集]

ruby 1.8.X を入れる #

Debian Woody のrubyのバージョンを確認。

$ apt-cache show ruby
Package: ruby
Priority: optional
Section: interpreters
Installed-Size: 260
Maintainer: akira yamada <akira@debian.org>
Architecture: i386
Version: 1.6.7-3
Depends: libc6 (>= 2.2.4-4), libruby (>= 1.6.7-3)
Suggests: ruby-examples, irb
Filename: pool/main/r/ruby/ruby_1.6.7-3_i386.deb
Size: 141988
MD5sum: cbca4c1f0b1ea1a0481d2667086c5a64
Description: An interpreter of object-oriented scripting language Ruby
 Ruby is the interpreted scripting language for quick and
 easy object-oriented programming.  It has many features to
 process text files and to do system management tasks (as in
 perl).  It is simple, straight-forward, and extensible.
[編集]

1.8.Xの入手 #

testingからソースコードを入手

/etc/apt/sources.list に次の行を追加

deb-src http://ftp.jp.debian.org/debian testing main
# apt-get update
# apt-get source ruby
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 15.9kB of source archives.
Get:1 http://ftp.jp.debian.org testing/main ruby-defaults 1.8.0-1 (dsc) [982B]
Get:2 http://ftp.jp.debian.org testing/main ruby-defaults 1.8.0-1 (tar) [15.0kB]
Fetched 15.9kB in 0s (76.7kB/s)
dpkg-source: extracting ruby-defaults in ruby-defaults-1.8.0

sources.listを元に戻しておく。

(以後は、Debianメンテナ入門とか、書籍「パッケージ管理&構築入門」を 見ながら進める)

[編集]

mobileimapのインストール #

[編集]

checkinstall を入れる #

パッケージ管理したいので、checkinstallを入れておく。

[編集]

コンパイル #

$ ls
mobileimap-2.1.tar.gz*

$ tar zxvf mobileimap-2.1.tar.gz
mobileimap-2.1/
mobileimap-2.1/COPYING
mobileimap-2.1/README
mobileimap-2.1/Makefile
mobileimap-2.1/mobileimap.in

$ cd mobileimap-2.1

$ make
rm -f mobileimap
sed -e 's!@VERSION@!2.1!g' mobileimap.in >mobileimap.tmp
mv mobileimap.tmp mobileimap
chmod +x mobileimap
chmod -w mobileimap
ruby -wc mobileimap
Syntax OK
[編集]

#

なんか、checkinstallで失敗する。 以前試してうまくいったと思うのだが、どのホストでやったか覚えてない……。

# su
# /usr/local/sbin/checkinstall
function: not found

checkinstall 1.5.3, Copyright 2001 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.
/usr/local/sbin/checkinstall: 54: Syntax error: "}" unexpected
/usr/local/sbin/checkinstall:
  • シェルスクリプトを読んでみる。
# /bin/sh -x /usr/local/sbin/checkinstall
+ trap trapint 2
+ CHECKINSTALL_VERSION=1.5.3
+ function ckversion {
function: not found
+ echo

+ echo checkinstall 1.5.3, Copyright 2001 Felipe Eduardo Sanchez Diaz Duran
checkinstall 1.5.3, Copyright 2001 Felipe Eduardo Sanchez Diaz Duran
+ echo            This software is released under the GNU GPL.
           This software is released under the GNU GPL.
/usr/local/sbin/checkinstall: 54: Syntax error: "}" unexpected
/usr/local/sbin/checkinstall:

#
  • 1.5.2 で試す。

Debian Woody で、だめ。

RedHat 9で試してみるか。