[horde] Report spam button and moving spam to Spam folder.
P.V.Anthony
anthony at mindmedia.com.sg
Fri Sep 29 13:04:50 UTC 2017
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
And one more thing, How to activate the "Report as Spam" button?
--
P.V.Anthony
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3947 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.horde.org/archives/horde/attachments/20170929/e43734e6/attachment.bin>
More information about the horde
mailing list