- This was done to create a pure HTML way of refreshing the folder list since
- we would like to use as little Javascript as possible.
-**/
- if ($right_frame == "right_main.php") {
- $urlMailbox = urlencode($mailbox);
- $right_frame_url = "right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage";
- } else if ($right_frame == "options.php") {
- $right_frame_url = "options.php";
- } else if ($right_frame == "folders.php") {
- $right_frame_url = "folders.php";
- } else {
- if (!isset($just_logged_in)) $just_logged_in = 0;
- $right_frame_url = "right_main.php?just_logged_in=$just_logged_in";
- }
+if ($right_frame == 'right_main.php') {
+ $urlMailbox = urlencode($mailbox);
+ $right_frame_url =
+ "right_main.php?mailbox=$urlMailbox&sort=$sort&startMessage=$startMessage";
+}
+elseif ($right_frame == 'options.php') {
+ $right_frame_url = 'options.php';
+}
+elseif ($right_frame == 'folders.php') {
+ $right_frame_url = 'folders.php';
+}
+elseif ($right_frame == 'compose.php') {
+ $right_frame_url = "compose.php?send_to=$rcptaddress";
+}
+else {
+ $right_frame_url = 'right_main.php';
+}