How do I write an imapfilter "does not contain" email rule please?

0

I've recently installed imapfilter. I have some simple copy and pasted rules that I like, such as this in my config lua file:

results = account1.INBOX:contain_from('git@gitosis.mycompany.com')
results:move_messages(account1.DontCare)

but the rule I really want is: if my email is not in the TO field, move it to another folder

Can I get an example of how to write this rule please? Since the scripting language is based around an actual programming language, I would imagine this is possible?

Philluminati

Posted 2013-10-04T10:41:25.707

Reputation: 160

Answers

1

try

results = account1.INBOX:not_contain_to('git@gitosis.mycompany.com')

or

results = not account1.INBOX:contain_to('git@gitosis.mycompany.com')

srka

Posted 2013-10-04T10:41:25.707

Reputation: 182

2I dislike seeing downvotes without an explanation. Please, downvoter, if you read this again, explain why this answer is not a "good" answer. – Nikos Alexandris – 2014-04-20T17:55:32.313