Menu

#4 Reply does not indent message

closed-accepted
nobody
None
5
2001-10-28
2001-09-07
Anonymous
No

I noticed that replys are not automatically indented
in Nocc, which is a pity.

On my own webmail, I've build an indenting function,
maybe it is of use for you too. I didn't particulary
like the outlook-style 'original message' header
either, so I replaced it with a more traditional xxxx
wrote.
To do this I replaced two lines of code in action.php,
both originally

$mail_body =
$original_msg."\n".$html_from.': '.$content
['from']."\n".$html_to.': '.$content
['to']."\n".$html_sent.': '.$content
['date']."\n".$html_subject.': '.$content
['subject']."\n\n".strip_tags($content['body'], '');

To be replaced by

$mail_body = mailquote(strip_tags($content
['body'], ''),$content['from']);

and using the following function:

function mailquote($body, $from) {
$from = ucwords(trim(ereg_replace
("<.*>","",str_replace("\"","",$from))));
$body = "> ".ereg_replace("\n","\n> ",trim($body));
return($from." wrote:\n\n".$body);
};

Hope this is of some use to you,

.Mairsil

Discussion

  • Ross Golder

    Ross Golder - 2001-10-21

    Logged In: YES
    user_id=20872

    Thanks for this, I'll try to integrate it soon.

     
  • Ross Golder

    Ross Golder - 2001-10-28
    • status: open --> closed-accepted
     
  • Ross Golder

    Ross Golder - 2001-10-28

    Logged In: YES
    user_id=20872

    Thanks, this has been committed to cvs as a user-settable
    preference (defaulting to classic indented quoting).

     

Log in to post a comment.