From: TAKAHASHI Masayoshi Date: 1998-11-01T17:29:25+09:00 Subject: [ruby-list:10561] Re: rfc822.rb 高橋です。 ttate@jaist.ac.jpさん: > あと、菊谷さんからsmtp-lib.rbでバグレポートがありました > ので修正しました。 > メール本文に"."のみの行があるときに発生するものです。 > . => . として対応しています。 RFC 821 の 4.5.2 TRANSPARENCY には、 1. Before sending a line of mail text the sender-SMTP checks the first character of the line. If it is a period, one additional period is inserted at the beginning of the line. 2. When a line of mail text is received by the receiver-SMTP it checks the line. If the line is composed of a single period it is the end of mail. If the first character is a period and there are other characters on the line, the first character is deleted. と書いてある (つまり、.を送る際には..と変更 する、.ほげほげ を受けとった際には先頭の「.」を消す、と いうことですよね?) ので、こうした方がよさそうです。 # sendmailにtelnetしてSMTPで「..」と「. 」を送ってみたら、 # それぞれ「.」「. 」となってました。 高橋征義 (株式会社アイナック) Email:maki@inac.co.jp