hi monks,
i want to reconstruct mail form mime mail.put it in to imap server using Mail::IMAPClient module.
every thing works fine.
but when i append the mail in IMAP server using Mail::IMAPClient's append_string method, the size of the mail
increases.
my code is something like this
$mimeent = generatemail(); # this func return mime entity.
print "length before: " . length($mimeent->as_string);
my $newid =$imap->append_string($folder, $mimeent->as_string, $flags,
+$date);
print "length after: " .$imap->size($newid);
the o/p is:
length before: 337119
length after: 342662
According to documentation of append_sting method:
Note that many servers will get really ticked off if you try to append a message that contains "bare newlines", which is the titillating term given to newlines that are not preceded by a carrage return. To protect against this, append_string will insert a carrage return before any newline that is "bare". If you don't like this behavior then you can avoid it by not passing naked newlines to append_string.
I checkd that the data contain the CRLF.
so i am not getting why the size of mail increse ..??
any hint ..??
thanks
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.