title: How do I get ActionMailer to log sent messages but NOT include the attachments?
body: <p>I like that Rails automatically logs all messages that are sent out from the app. What I <strong>don't</strong> like is how it fills up my log file with huge blocks of useless Base64-encoded text. This makes looking through the log file a pain because I have to skip past these megabytes-long blocks of unreadable noise. It also causes the log file to grow too quickly and fill up the disk.</p>
  
  <p>How can I get it to still log all messages that are sent but <strong>NOT include any of the attachments</strong>? Is there a way to tell it to strip out the attachments before logging or something?</p>
  
  <p>Usually all I'm interested in seeing are the headers (subject, who it was sent to) and (at least some of the time) the message body text.</p>
  
  <p>It wouldn't hurt to also have a <em>list</em> of the attachments (file name and type) too — but it certainly does me no good to see the full Base64 dump of all the attachments! (If I want to check and see if the attachments are coming through okay, I already know how to add a mail interceptor that bcc's all outgoing mail to my inbox.)</p>