> Hi all,
>
> First off, thanks for all the excellent suggestions. Unfortunately, the
> simplest ones do not work. If I try to simply drag messages or entire
> folders to the IMAP server in Thunderbird, I get the following error:
>
> The current command did not succeed. The mail server responded: Message
> contains bare newlines.

Hi,

If you want your cyrus-imapd to handle those broken messages, you have to
patch it. Attached patch should do it.

Simon

>
> I am not sure what this means. Could anyone please elaborate or possibly
> offer a workaround? In the meantime, I am going to play around with
> procmail
> rules. Thanks again.
>
> Regards,
>
> Matt
>
> On 11/17/05, Joseph Brennan <[EMAIL PROTECTED]> wrote:
>>
>> I was able to
>> > convert
>> > these into standard MBOX format using a tool called qmptombox, which
>> > we were
>> > able to import into Thunderbird's "Local Folders". Ideally, however,
>> > we
>> > would like to have these messages reside on the IMAP server itself.
>> > Are
>> > there any tools available that will take MBOX mailboxes and insert
>> > them into
>> > Cyrus?
>>
>>
>> Why not use Thunderbird and drag the folders from local to server?
>>
>> Joseph Brennan
>>
>>
>>
>> ----
>> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>>
> ----
> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
--- cyrus-imapd-2.1.15/imap/message.c.orig	2003-11-11 15:45:11.000000000 +0100
+++ cyrus-imapd-2.1.15/imap/message.c	2003-11-11 15:35:11.000000000 +0100
@@ -246,7 +246,8 @@
 
 	for (p = (unsigned char *)buf; *p; p++) {
 	    if (*p == '\n') {
-		if (!sawcr) r = IMAP_MESSAGE_CONTAINSNL;
+		/* Do *NOT* check for RFC compliant line breaks (bare newlines) */
+		/* if (!sawcr) r = IMAP_MESSAGE_CONTAINSNL; */
 		sawcr = 0;
 		if (blankline) {
 		    inheader = 0;
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to