bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bug-mailutils] mu_stream_to_message


From: Andrew Barnes
Subject: RE: [bug-mailutils] mu_stream_to_message
Date: Tue, 30 Jun 2009 17:04:00 +0000

>
> > The message I am wanting to deliver is in a temporary file stream. If I
> > pass this stream to the mu_stream_to_message function then the
> > resulting message ends up with an additional ^M character appended to
> > each line. This causes all sorts of problems further down the line
> > which eventually corrupts the mailbox.
> > I've used a file stream instead of a temporary file stream to trap the
> > message data and that does not seem to add the extra character so I'm
> > assuming its happening inside mu_stream_to_message.
>
> No, mu_stream_to_message does not alter the stream content in any way.
>

Having delved a bit deeper, my problem is related to CRLF's. Having altered my input stream so that all CRLF's are replaced with a \n,  it almost works!

A floating CRLF is appearing on the end of the stream, I can't see anywhere in my program where its coming from, but I'll track it down.

Andy


View your Twitter and Flickr updates from one place - Learn more!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]