title: Squirrelmail with Greenmail ERROR "Bad or malformed request"
body: <p><a href="http://www.icegreen.com/greenmail/" rel="nofollow noreferrer">Greenmail</a> is a SMTP, POP3, IMAP mail mocking service ideal for mail testing to instead of a real mail server you have a stub that holds the mails for later confirmation.</p>
  <p><a href="http://squirrelmail.org/about/" rel="nofollow noreferrer">Squirrelmail</a> is a php based webmail interface that i intend to use to access greenmail but...</p>
  <p>As soon as i try to open an email from squirrelmail i get:</p>
  <blockquote>
  <p>ERROR: Bad or malformed request.</p>
  <p>Query: FETCH 1 BODY[HEADER]</p>
  <p>Server responded: Expected:'(' found:'B' Command should be ' UID |||'</p>
  </blockquote>
  <p>That was squirrel 1.4.22, today i even tried installing svn trunk <code>squirrelmail-20140131_0200-SVN.devel.tar.gz</code> and got the exact same error.</p>
  <p>Tried other webmail alternatives to squirrel but got similar error too except for <a href="http://atmail.com/" rel="nofollow noreferrer">atmail trial</a> which is the only webmail client that has been able to open greenmail's mails. Telnet works well but that's too poor for what i'm trying to do here.</p>
  <p>So if atmail can do it there must be something to be done here on squirrelmail side or perhaps some configuration related to imap i'm missing here?</p>
  <p>Note atmail was tested with the same php 5.3.10, apache2, ubuntu precise 64 stack that squirrelmail.</p>
  <p>To reproduce the error i've setup <a href="https://github.com/elgalu/greenmail" rel="nofollow noreferrer">an open source Vagrant VM here</a></p>
  <p><strong>UPDATE 1</strong></p>
  <p>I'm using <a href="https://github.com/elgalu/yawebmail" rel="nofollow noreferrer">yawebmail</a> web client with some handy updates to make email end-to-end testing stay in the browser. Yawebmail doesn't have the malformed request issue.</p>
  <p><strong>UPDATE 2</strong></p>
  <p>Great news! Greenmail has been <a href="https://github.com/greenmail-mail-test/greenmail" rel="nofollow noreferrer">moved to github</a> and this question is now <a href="https://github.com/greenmail-mail-test/greenmail/issues/2" rel="nofollow noreferrer">an issue in the official repo</a></p>