職場のメール環境がNotesだったのですが、社外出向することになり、Notesのない環境で過去メールをどうやって参照するのか問題となりました。Notes標準の機能では、本文は書き出せるのですが、添付ファイルが書き出せません。 そこでRubyの登場です。NotesはOLEサーバになっており、WIN32OLEでぐりぐりいじることが可能なのです。 notes.rb require 'win32ole' class Log def initialize(s) @@logger ||= Proc.new { |x| puts x } @@logger.call(s) end def Log.register_logger(p) @@logger = p end end class Notes class Session def initialize(server, dbname) @server,