action_mailer/ar_sendmail.rb:485:in `write’
It is possible to run into an issue with ar_sendmail if you are calling it from a Ruby application and using its verbose output. You may be calling it similar to the below:
arsendmail = ActionMailer::ARSendmail.new(:Once => true,
:Verbose => true)