[imp] FIX: Forwarding messages

Oliver Kuhl okuhl at netcologne.de
Mon Apr 28 14:05:11 PDT 2003


Hi!

Forwarding several messages out of the mailbox-view didn't work with a none-popup compose window, because neither actionID, nor messageid's where correctly sent to compose.php.

Here comes a fix. I don't know how to create a patch and I didn't checkout head for some days, so I just send you the new code-snipps for mailbox.php:

<snip no=1>
function _openComposeWin($options = null)
{
    global $prefs;

    if ($prefs->getValue('compose_popup')) {
        return true;
    } else {
        $url = Horde::applicationUrl('compose.php', true);
        $url = Horde::addParameter($url, IMP::getComposeArgs());
        if (isset($options)) {        
            foreach ($options as $arg => $value) {
                $url = Horde::addParameter($url, $arg, $value);
            }
        }
        header('Location: ' . $url);
        return false;
    }
}
</snip>

<snip no=2>
case FWD_DIGEST:                 
    $options['fwddigest'] = serialize($indices);
    $options['actionID'] = FWD_DIGEST;
    $open_compose_window = _openComposeWin($options);
    break;
</snip>

That's it!

Gruss,
   Ollie.


More information about the imp mailing list