メールを読む

単件のメールを読むライブラリ

#!/usr/bin/ruby -Ke require 'mailread' require 'nkf' class Mailread def initialize(file='') @mail=Mail.new(file) end def decode(s='') NKF.nkf('-me',s).map{|i| i.gsub('&','&').gsub(&#3…

tmail

インストール apt-get install libtmail-ruby マニュアル http://www.loveruby.net/ja/prog/tmail.html http://www.loveruby.net/ja/man/tmail/index.html RACCの作者のページだ。

Maildir

http://www.iron-horse.org/~naokih/bincimap/bincimap-imapdir.html によるとMaildirはもともとDJBが考えた規格らしい。http://man.qmail.jp/jman5/maildir.html に書いてあった。 メッセージの読み方 メイルリーダは以下のように動作します。 newディレク…