[imp] Behavior after delete & login actions
Dan Wilson
dan@acucore.com
Tue, 9 Jul 2002 16:19:28 -0600
It doesn't look like that is where it's getting sent to the mailbox. I
changed the following code within the DELETE_MESSAGES case:
case DELETE_MESSAGES:
$imp_message->delete()
if ($prefs->getValue('mailbox_return')) {
echo $prefs->getValue('mailbox_return');
exit;
header('Location: ' . Horde::addParameter(Horde::applicationUrl
('mailbox.php', true), 'start=' . $imp_message->getMessageIndex()));
exit;
}
break;
But nothing happened when I deleted an email. It just went right on through.
It wasn't until I pulled my echo and exit outside of the if statement that it
actually output the mailbox_return value (which is 0).
Is there another place where it would be redirected to the mailbox?
Just by way of info, I have the setting to toss it into a trash folder when I
delete, not just delete in the current folder. Perhaps that is why others
haven't seen this behavior.
Thanks for the help,
-Dan
PS. Just to make sure, I deleted my imp directory and reloaded from CVS. I
even went back through and re-copied my config files. Still same thing.
Quoting Michael M Slusarz <slusarz@bigworm.colorado.edu>:
> Quoting Dan Wilson <dan@acucore.com>:
>
> | To reiterate, this started happening ~2 weeks ago. I'm not sure what
> | date
> | exactly. But since then, it doesn't matter what I select for the
> | preference "Return to the mailbox listing after deleting, moving, or
> | copying a
> | message?". If I check it, it returns to the mailbox. If I uncheck it, it
> | returns to the mailbox. I can't get it to advance to the next email in
> | the
> | mailbox.
>
> Check to make sure your preferences are getting updated. The only way it
> will return you to the mailbox (and _not_ display an error) after deleting
> is via this line in message.php:
>
> if ($prefs->getValue('mailbox_return')) {
>
> If mailbox_return has a non-zero value, it will return. Thus, for whatever
> reason, your value for mailbox_return is non-zero.
>
> This has nothing at all to do with sorting or anything like that.
>
> michael
>
> ______________________________________________
> Michael Slusarz [slusarz@bigworm.colorado.edu]
> The University of Colorado at Boulder
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org