[imapfilter-devel] Handle multiple cc-Adresses?
Lefteris Chatzimparmpas
lefcha at hellug.gr
Tue Oct 5 22:08:00 EEST 2010
Hello,
It looks like the mail server doesn't match anything based on your
searches. Either it didn't find anything or something is wrong with it.
To check this you might want to match everything with select_all() or
other simple queries that should definitely match.
If you think the server is broken or has searching disabled, then you
might want to use the match_*() family of functions.
Concerning your other questions with the 5 CC addresses, you could use
the fetch_field('cc') function for each message in the mailbox you are
interested in, and then with some Lua string matching or regular
expression, try to count how many addresses you got.
L.
On 09/27/2010 10:04 PM, Hawk Anonymous wrote:
> Am 24.09.2010 19:29, schrieb Lefteris Chatzimparmpas:
>> Hello!
>
>> Can you run imapfilter with the -d option and send us the output debug
>> file that will be produced inside your ~/.imapfilter directory?
>
>> You can count how many messages a search command matched like this:
>
>> spam = myaccount.INBOX:contain_cc('p9760 at gmx.de')
>> print("Messages matched: " .. #spam)
>
>
> Hi,
>
> I do not want to count how much messages are taken away by this rule but
> I want a rule like this:
>
> "Its spam if it has more then 5 cc addresses."
>
> Here is my log file:
>
> [...]
More information about the Imapfilter-devel
mailing list