[imp] Strange error message from server while stripping attachment
Michael M Slusarz
slusarz at bigworm.colorado.edu
Tue Dec 2 12:01:33 PST 2003
Quoting Richard Heggs <richard.heggs at nottinghamcity.gov.uk>:
| Quoting Jan Schneider <jan () horde ! org>:
|
| >Did anybody ever see this error message from the imap server:
| >"Message contains bare newlines"
| >
| >This happened with one message that I wanted to strip an attachment
| from,
| >while it was to be written back to the server.
|
| /me cackles with glee
|
| It's taken me a few days, but I've tracked this down. The problem was
| that
| $message->setContents() was appending a bare '\n' to the message that is
| to
| be inserted in place of the stripped attachment. I think this is
| incorrect
| because the correct newline sequence is appended by $message->toString()
| instead. The result was a '\n\r\n' instead of '\r\n', which caused Cyrus
| to sulk.
Committed - thanks.
michael
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder
More information about the imp
mailing list