title: Gmail IMAP E-mail Content Garbled
body: <p>I have a custom web based contact management system that we built in PHP to track contacts and recently starting checking our Google e-mail box using IMAP and then, if that contact is in our contact management system:</p>
  
  <ol>
  <li>Copying the message into a MySQL database table that's associated with that contact</li>
  <li>Marking that contact to follow up with that day</li>
  <li>Archiving the message in Gmail</li>
  </ol>
  
  <p>Everything seems to be working great, EXCEPT... every so many emails we get a really garbled message that looks like this:</p>
  
  <p>FABRRRQAUUUUAJXDjxZrUtzNFa2UMwjYj5YnYgZ74Ndwa4bwfzqmpH3/wDZjTcl
  CnKdr2Fa7SJP+Ek8S/8AQJX/AMB5P8aZN4s162j33GmxxrnG54XUfqa6ysHxp/yA/wDtqv8AWuej
  jFUqKDgtSpQsr3L13r4tPDcOoShBcTxgog6FiP5CsrwtpjuzavekvcTZKFuwPf8AH+VZOlwS+Iby
  1jlBFnZRKhGeDjt9Sf0Fd0qhVCqAABgA</p>
  
  <p>I go back and check the message and it appears to be only text, so I don't think it is an image. Any idea how to prevent that?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Sincerely,</p>
  
  <p>James</p>