What's the trick ?
| From: | N. Pari Purna Chand | Date: | Sun, 25 Aug 2002 21:15:36 +0000 |
| Subject: | What's the trick ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114078@lists.php.net to get a copy of this message | ||
Hi guys,
Am writing a web based mailclient (obviously with PHP+IMAP),
In the 'ReplyMail' script, inorder to add the "> " string
at the beginning of everyline, I used the following code,
<?
$replymessage = $replymessage.str_replace("\n", "\n> ", htmlspecialchars(trim(imap_body($mbox, $msg))));
?>
This is giving an output with one additional \n in the TEXTAREA,
like below
<- strip ->
Hello Chandu,
How are you. How is your coding going on.
I'm on Mandrake 8.2.
/Chandu <- End of strip ->Any workarounds for this, I hav seen the code of many PHP based IMAP client's but found out that all of those I checked are working in the same way as aboove. Squirrelmail is working as needed but I'm not able to locate where exactly the code I needed is, in those bulky files. so as a last resort I've posted here. /Chandu