Anes Mukhametov wrote:
Thanks. But why "+ if ($rcmail->task == 'mail' && ($rcmail->action == '' || $rcmail->action == 'show') && $rcmail->config->get('junk_mbox')) {"
string not applied? Is it wrong?
$rcmail->task == 'mail' this is not needed while we have markasjunk::task set.
I thought that mbox have to exist to move messages into it:)
There's a check in request_action(). Moving messages is only a part of plugin's job. I think some implementations doesn't require messages moving for learning, only setting a flag. Also why we couldn't set flag if junk folder not exists?