[HOME] [github] [twitter] [blog] [fml4] [fml8] [北海道] Powered by NetBSD and [nuinui.net] .

Mail::Message モジュール: 解析する

parse() メソッドは、 引数で与えられたファイル(名)かファイルディスクリプタからデータを読み込み、 そのデータ(メッセージ)の解析を試みます。

data_type_list() は鎖の列の情報を ARRAY REFERENCE の形で返します。 たとえば MIME/Multipart は次のように表現されます (ちなみに、以下の表示はデバッグモードで出力されるものです)。

  type[ 1]: text/rfc822-headers       | multipart/mixed
  type[ 2]: multipart/mixed           | multipart/mixed
  type[ 3]: multipart.preamble        | multipart/mixed
  type[ 4]: multipart.delimiter       | multipart/mixed
  type[ 5]: text/plain                | multipart/mixed
  type[ 6]: multipart.delimiter       | multipart/mixed
  type[ 7]: image/gif                 | multipart/mixed
  type[ 8]: multipart.close-delimiter | multipart/mixed
  type[ 9]: text/plain                | multipart/mixed
真中の列が各オブジェクトの種別を表しています。 右端はメール全体の mime type です。

[HOME] [github] [twitter] [blog] [fml4] [fml8] [北海道] Powered by NetBSD and [nuinui.net] .
Copyright (C) 1993-2022 Ken'ichi Fukamachi mail:< fukachan at fml.org >