-sqGetGlobalVar('mailbox', $mailbox);
-sqGetGlobalVar('startMessage', $startMessage);
-sqGetGlobalVar('msg', $msg);
-
-if (isset($_POST['moveButton'])) {
- $moveButton = $_POST['moveButton'];
-}
-
-if (isset($_SESSION['msgs'])) {
- $msgs = $_SESSION['msgs'];
-}
-
-if (isset($_POST['expungeButton'])) {
- $expungeButton = $_POST['expungeButton'];
-}
-if (isset($_POST['targetMailbox'])) {
- $targetMailbox = $_POST['targetMailbox'];
-}
-if (isset($_SESSION['lastTargetMailbox'])) {
- $lastTargetMailbox = $_SESSION['lastTargetMailbox'];
-}
-if (isset($_POST['expungeButton'])) {
- $expungeButton = $_POST['expungeButton'];
-}
-if (isset($_POST['undeleteButton'])) {
- $undeleteButton = $_POST['undeleteButton'];
-}
-if (isset($_POST['markRead'])) {
- $markRead = $_POST['markRead'];
-}
-if (isset($_POST['markUnread'])) {
- $markUnread = $_POST['markUnread'];
-}
-if (isset($_POST['attache'])) {
- $attache = $_POST['attache'];
-}
+sqgetGlobalVar('msgs', $msgs, SQ_SESSION);
+sqgetGlobalVar('composesession', $composesession, SQ_SESSION);
+sqgetGlobalVar('lastTargetMailbox', $lastTargetMailbox, SQ_SESSION);