MIME-Tools - MIME::Entity - extra newline problem 
Author Message
 MIME-Tools - MIME::Entity - extra newline problem


I have a problem with MIME::Entity->as_string() inserting extra
newlines.  The message I create is to be posted to a news server,
therefore it has a Newsgroups: header line.  Here's the code I use to
create the message:

$entity = MIME::Entity->build(Type => "text/html",
                              From => $sender,
                              Subject => $subject,
                              Date => $date,
                              "Message-ID" => $msgId,
                              "Newsgroups:" => $newsgroups,
                              Data => $data);

where $newsgroups is equal to:


which is just a long list of newsgroup names I made up to exceed the
62-character limit (it always chops off after the 62nd character).

I post the message using the as_string() method as follows:


Here's the offending line from the text that as_string is returning:


It chopped off the last newsgroup name and continued on the next line!
The news server spits back an error when it receives messages like
this.  Is there any way I can turn this line-splitting behavior off?


Mon, 14 Jun 2004 05:42:04 GMT  
 [ 1 post ] 

 Relevant Pages 

1. MIME::Tools decoding of a MIME::Entity

2. Problem with MIME::Lite and MIME-tools

3. problems with MIME::Lite and MIME-tools

4. Problem with MIME::Lite and MIME-tools

5. MIME::Parse and MIME::Entity

6. Please help with MIME::Parser and MIME::Entity

7. MIME::Tools and extracting entities via a pipe

8. MIME::Tools - Getting All MIME Header Info for a Message

9. Problems w/ MIME/Entity.pm

10. MIME-tools/Mail-tools incompatible?

11. Problems with function dump_entity from example distributed with MIME::tools

12. MIME:Entity - why so many modules wanted?


Powered by phpBB® Forum Software