[ingo] Filter doesn`t work (H4)
Christopher Neuhaus
josopaan at gmail.com
Fri Jun 8 13:32:56 UTC 2012
2012/6/8 Jan Schneider <jan at horde.org>
>
> Zitat von Ralf Lang <lang at b1-systems.de>:
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>> Please do not contact me personally but keep discussions on the list.
>>
>> Am 08.06.2012 14:47, schrieb Christopher Neuhaus:
>>
>>> 2012/6/8 Ralf Lang <lang at b1-systems.de>
>>>
>>> Please do not contact me personally but keep discussions on the
>>> list.
>>>
>>>
>>>>>> In conf.php: $conf['storage']['driver'] = 'sql'; (the table
>>>>>> "ingo_rules" fills up with the rule)
>>>>>>
>>>>>> The backends.php is the dist-version:
>>>>>>
>>>>>> /* IMAP Example */ $backends['imap'] = array( // ENABLED by
>>>>>> default 'disabled' => false, 'transport' => 'null',
>>>>>> 'hordeauth' => true, 'params' => array(), 'script' => 'imap',
>>>>>> 'scriptparams' => array(), 'shares' => false );
>>>>>>
>>>>>> [...]
>>>>>>
>>>>>> all other entries: 'disabled' => true
>>>>>>
>>>>>>
>>> The "imap" filter driver only works ondemand or onclick. It's not
>>> an active filter, you need to trigger it manually.
>>>
>>> You need a procmail, sieve or similar backend for active
>>> filtering.
>>>
>>> Thank you for this hint! But if I just trigger it manually, all
>>> the messages are moved to the configured folder. But my rule is
>>> stored like that:" 76";"user";"betr.
>>> test";2;"test";0;"a:1:{i:0;a:**4:{s:5:"field";s:7:"Subject";**
>>> s:4:"type";i:1;s:5:"match";s:**8:"contains";s:5:"value";s:4:"**
>>> test";}}";1;1;1;7
>>>
>>>
>>> what means that only the messages with "test" in subject should be
>> moved.
>>
>>>
>>>
>> If the imap-based filter is broken, please create a bug report on
>> http://bugs.horde.org
>>
>
> Please don't, this has been reported and fixed already, all we need is a
> confirmation that the fix works for everybody. So please search for the
> existing ticket and report back there.
>
> --
> Jan Schneider
> The Horde Project
> http://www.horde.org/
>
>
>
> --
> ingo mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: ingo-unsubscribe at lists.horde.**org<ingo-unsubscribe at lists.horde.org>
>
Sorry .. to late ;)
I`ve tested it but it doesn`t work. Perhaps important: I use
LATIN1-encoding....
from /var/www/horde/ingo/lib/Script/Imap.php
...
$query->andSearch(array($or_ob));
$indices = $this->_api->search($query);
/* Remove any indices that got in there by way of partial
* address match. */
if (!$msgs = $this->_api->fetchEnvelope($indices)) {
continue;
}
foreach ($msgs as $v) {
$from_addr =
Horde_Mime_Address::bareAddress(Horde_Mime_Address::addrArray2String($v->getEnvelope()->from,
array('charset' => 'UTF-8')));
...
More information about the ingo
mailing list