Roundcube Community Forum

Release Support => Pending Issues => Topic started by: sky44 on March 13, 2008, 06:09:08 PM

Title: Mail misformatted to gmail after reply [FIX INSIDE]
Post by: sky44 on March 13, 2008, 06:09:08 PM
First, sorry for my poor english :P

With the stable version of roundcube, I had a problem when I reply to a mail of google : a blank line is in the references field and so the mail is misformatted :

Subject: Re: test
References: <[email protected]>
Message-Id: <[email protected]>

<89333f519a1a8eeb1e6ed3a0f91239bb@xxxxx
Message-ID: >
X-Sender: XXXXX
Received: from [xxxxxxxxx] via
   xxxxxx [xxxxx] with HTTP/1.1
   (POST); Thu, 13 Mar 2008 20:22:55 +0100
User-Agent: RoundCube Webmail/0.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit

To fix it, in the file imap.inc, replace

case 'references':
                  $result[$id]->references = $string;
                  break;

by


case 'references':
                  $result[$id]->references = str_replace("\n", " ", $string);
                  break;


and now it's ok :)

I not find if the bug was referenced, so I hope that can help you :)
Title: Re: Mail misformatted to gmail after reply [FIX INSIDE]
Post by: Obscenity on April 04, 2008, 10:24:54 AM
thanks, you've helped a lot :)