私は解析サービスを使用しており、メールを受信すると次のヘッダー文字列を取得します。
Message-ID: <4f2c2c98.1007650a.68f6.ffff9ed6@mx.google.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----=_NextPart_000_00EB_01CCE26A.183F8AD0"
X-Mailer: Microsoft Office Outlook 12.0
残念ながら、私は正規表現が苦手で、境界とコンテンツ タイプを抽出して最終的に次のようにする方法を考えています。
[:content_type] => multipart/mixed
[:boundary] => ----=_NextPart_000_00EB_01CCE26A.183F8AD0