From: pdontthink Date: Mon, 30 May 2016 08:15:26 +0000 (+0000) Subject: Allow priority and identity selections to be given by callers. Looks to have been... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=79cecc00d76f1f34ad76d2de904a0dc3adf0978a;p=squirrelmail.git Allow priority and identity selections to be given by callers. Looks to have been intended to work this way, but never tested. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14556 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/compose.php b/src/compose.php index 4740b0ff..ee8bcaaa 100644 --- a/src/compose.php +++ b/src/compose.php @@ -73,6 +73,7 @@ if (isset($send) && $send) { } sqgetGlobalVar('session',$session, $SQ_GLOBAL); sqgetGlobalVar('mailbox',$mailbox, $SQ_GLOBAL); +sqgetGlobalVar('identity',$orig_identity, $SQ_GLOBAL); if(!sqgetGlobalVar('identity',$identity, $SQ_GLOBAL)) { $identity=0; } @@ -753,6 +754,12 @@ elseif (isset($sigappend)) { if (isset($subject)) { $values['subject'] = $subject; } + if (isset($mailprio)) { + $values['mailprio'] = $mailprio; + } + if (isset($orig_identity)) { + $values['identity'] = $orig_identity; + } showInputForm($session, $values); }