title: Spam check before sending using Zend_Mail
body: <p>I'm using <code>Zend_Mail</code> and the following code to send my email messages.</p>
  
  <pre><code>$mail = new Zend_Mail('UTF-8');
  $mail -&gt;setBodyText($plainBody)
     -&gt;setBodyHtml($htmlBody)
     -&gt;setSubject($subject)
     -&gt;setFrom(FROM_ADDR, FROM_NAME)
     -&gt;addTo($email, $name )
     -&gt;addHeader(MY_HEADER, serialize( array( 'foo' =&gt; 'bar' ) ) )
  ;
  </code></pre>
  
  <p>I need to check the <strong>spam rating</strong> for the prepared message and I'd like to do it using SpamAssassin.</p>
  
  <p>I thought to create a file with the contents and running something such as <code>exec('spamc $filename')</code>, but how to get the file content with the full MIME body?
  I noticed that there's a <code>_buildBody()</code> function in Zend_Mail_Abstract class (<code>library/Zend/Mail/Transport/Abstract.php</code>) that's return that, but that's a <code>protected</code> function.</p>
  
  <p>Thanks</p>