[horde] Report spam button and moving spam to Spam folder.
Jan Schneider
jan at horde.org
Fri Sep 29 13:19:12 UTC 2017
Zitat von P.V.Anthony <anthony at mindmedia.com.sg>:
> Hi,
>
> Trying to set the following but "delete_spam_after_report" does not
> work for "Move to Spam Folder".
>
> Here is what is in the prefs.php
>
> $_prefs['delete_spam_after_report'] = array(
> 'value' => 0,
> 'type' => 'enum',
> 'enum' => array(),
> 'desc' => _("What to do with messages after they have been
> reported as spam?"),
> 'help' => 'prefs-delete_spam_after_report',
> 'on_init' => function($ui) {
> $enum = array(
> 0 => _("Nothing"),
> 1 => _("Delete message")
> );
> if
> ($GLOBALS['injector']->getInstance('IMP_Factory_Imap')->create()->access(IMP_Imap::ACCESS_FOLDERS))
> {
> $enum[2] = _("Move to Spam mailbox");
> }
> $ui->prefs['delete_spam_after_report']['enum'] = $enum;
> }
> );
>
>
> This is in my prefs.local.php
>
> <?php
>
> // Send innocent mail to Inbox
> $_prefs['move_innocent_after_report']['value'] = '1'; <-- works
>
> // Move to Spam mailbox
> $_prefs['delete_spam_after_report']['enum'] = '2'; <-- not working
There is no option 2.
>
> And one more thing, How to activate the "Report as Spam" button?
imp/config/backends.local.php
--
Jan Schneider
The Horde Project
https://www.horde.org/
More information about the horde
mailing list