cvs: php-bugs-web /include functions.inc

From: Date: Mon, 04 Feb 2002 09:37:02 +0000
Subject: cvs: php-bugs-web /include functions.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-8525@lists.php.net to get a copy of this message
goba Mon Feb 4 04:37:02 2002 EDT Modified files: /php-bugs-web/include functions.inc Log: So we do not need to wrap headers, only one wordwrap is enogh. Constant text is wrapped, headers are specially wrapped, the rest of the text is the same for the two type of mails. => Make mail text assigment more readable. Index: php-bugs-web/include/functions.inc diff -u php-bugs-web/include/functions.inc:1.18 php-bugs-web/include/functions.inc:1.19 --- php-bugs-web/include/functions.inc:1.18 Mon Feb 4 02:59:57 2002 +++ php-bugs-web/include/functions.inc Mon Feb 4 04:37:02 2002 @@ -209,16 +209,21 @@ $text[] = get_old_comments($bug['id']); - $user_text = "ATTENTION! Do NOT reply to this email!\n"; - $user_text .= "To reply, use the web interface found at http://bugs.php.net/?id=$bug[id]&edit=2\n\n\n"; - $user_text .= $header_text . join("\n",$text); + /* format mail so it looks nice, use 72 to make piners happy */ + $wrapped_text = wordwrap(join("\n",$text), 72); - $dev_text = $header_text . join("\n",$text) - . "\n-- \nEdit this bug report at http://bugs.php.net/?id=$bug[id]&edit=1\n"; + /* user text with attention, headers and previous messages */ + $user_text = "ATTENTION! Do NOT reply to this email!\n" . + "To reply, use the web interface found at\n" . + "http://bugs.php.net/?id=$bug[id]&edit=2\n\n\n" . + $header_text . + $wrapped_text; - /* format mail so it looks nice */ - $user_text = wordwrap($user_text, 72); /* use 72 to make piners happy */ - $dev_text = wordwrap($dev_text, 72); + /* developer text with headers, previous messages, and edit link */ + $dev_text = $header_text . + $wrapped_text . + "\n-- \nEdit this bug report at " . + "http://bugs.php.net/?id=$bug[id]&edit=1\n"; list($mailto,$mailfrom) = get_bugtype_mail(oneof($in['bug_type'],$bug['bug_type']));

« previous php.mirrors (#8525) next »