Discussion:
[imapfilter-devel] Problem with logical "not"
Philippe LeCavalier
2010-11-10 03:23:45 UTC
Permalink
Hi. I just started using IMAPfilter a few days ago. I'm having a hard
time with a certain rule:

results = account1.INBOX:contain_from('domain.com') -
(account1.INBOX:contain_to('virusalert at domain.com') +
account1.INBOX:contain_from('Cron Daemon') +
account1.INBOX:contain_from('Firewall Notification System'))
results:move_messages(account1['Customers/domain'])

The goal is to have all the mail from that client go into a folder
called Customers/domain. And I do this for all my customers. For the
ones that send more mail I have sub-folders to further sort the mail, as
you can see above. I would also create
Customer/domain/cron, ../../firewall & ../../virusalerts folders and
respected filters. All these simpler filters work fine except that the
main one, the one above, ignores the "-" not logic and puts mail from
cron(and all the others) in the main folder for that customer. ie
INBOX/domain instead of ignoring it as I'm indicating with the "not"
logic operator.

I'm assuming I haven't created this filter properly or that there is
something more to this I don't yet grasp. One question that came to mind
was whether I even need to specify "not" for this filter if I put the
domain-wide filter "results = account1.INBOX:contain_from('domain.com')"
below all the others (cron and firewall...etc) IMAPfilter will follow
the chronological order and thus eliminating the need to negate these
from the broader filter? I've tried with and without the parentheses and
that didn't seem to help.

Any advance/guidance would be appreciated.

Cheers,
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20101109/8ed0faaf/attachment.html>
Philippe LeCavalier
2010-11-11 15:26:54 UTC
Permalink
Well, I've now realized all the mistakes I had in the config - and there
were several. But it disappoints me to know that I didn't get a single
sole to help me.

Is this not the appropriate list to ask for help with IMAPfilter?

Sincerely,
Phil
Post by Philippe LeCavalier
Hi. I just started using IMAPfilter a few days ago. I'm having a hard
results = account1.INBOX:contain_from('domain.com') -
(account1.INBOX:contain_to('virusalert at domain.com') +
account1.INBOX:contain_from('Cron Daemon') +
account1.INBOX:contain_from('Firewall Notification System'))
results:move_messages(account1['Customers/domain'])
The goal is to have all the mail from that client go into a folder
called Customers/domain. And I do this for all my customers. For the
ones that send more mail I have sub-folders to further sort the mail,
as you can see above. I would also create
Customer/domain/cron, ../../firewall & ../../virusalerts folders and
respected filters. All these simpler filters work fine except that the
main one, the one above, ignores the "-" not logic and puts mail from
cron(and all the others) in the main folder for that customer. ie
INBOX/domain instead of ignoring it as I'm indicating with the "not"
logic operator.
I'm assuming I haven't created this filter properly or that there is
something more to this I don't yet grasp. One question that came to
mind was whether I even need to specify "not" for this filter if I put
the domain-wide filter "results =
account1.INBOX:contain_from('domain.com')" below all the others (cron
and firewall...etc) IMAPfilter will follow the chronological order and
thus eliminating the need to negate these from the broader filter?
I've tried with and without the parentheses and that didn't seem to
help.
Any advance/guidance would be appreciated.
Cheers,
Phil
_______________________________________________
Imapfilter-devel mailing list
Imapfilter-devel at lists.hellug.gr
http://lists.hellug.gr/mailman/listinfo/imapfilter-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20101111/2651fc33/attachment.html>
Philippe LeCavalier
2010-11-11 20:49:19 UTC
Permalink
On Thu, 11 Nov 2010 10:26:54 -0500
Post by Philippe LeCavalier
Well, I've now realized all the mistakes I had in the config - and there
were several. But it disappoints me to know that I didn't get a single
sole to help me.
Is this not the appropriate list to ask for help with IMAPfilter?
...
Hello Phil.
This is the appropriate list, please don't take it personally.
Keep in mind that Lefteris, the author, is a busy person who develops
Imapfilter on the side, in his spare time and without remuneration.
Lefteris is usually very responsive but, perhaps, he was busy with his
paying work or personal life.
I'm sure that, had you not found the answer on your own, he would had
replied to your post in due course.
Please hang in there and savor the product.
--
Casco
Thank you. That helps.
Phil
_______________________________________________
Imapfilter-devel mailing list
Imapfilter-devel at lists.hellug.gr
http://lists.hellug.gr/mailman/listinfo/imapfilter-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20101111/d8b33da1/attachment.html>
Lefteris Chatzimparmpas
2010-11-11 20:53:33 UTC
Permalink
Hello,

Casco has explained everything very well (Thanks!).

And that's basically how most if not all Free/Open Source Software
projects work in regards to support. each project has its own response
times for bug fixes, questions, etc.

Anyway, since you've managed to figure out what was wrong in your
config, all I can say at this point is that you're always welcome to
seek help, report problems, etc. to this list in the future.

Cheers!
On Thu, 11 Nov 2010 10:26:54 -0500
Post by Philippe LeCavalier
Well, I've now realized all the mistakes I had in the config - and there
were several. But it disappoints me to know that I didn't get a single
sole to help me.
Is this not the appropriate list to ask for help with IMAPfilter?
...
Hello Phil.
This is the appropriate list, please don't take it personally.
Keep in mind that Lefteris, the author, is a busy person who develops
Imapfilter on the side, in his spare time and without remuneration.
Lefteris is usually very responsive but, perhaps, he was busy with his
paying work or personal life.
I'm sure that, had you not found the answer on your own, he would had
replied to your post in due course.
Please hang in there and savor the product.
David DeSimone
2010-11-11 22:00:04 UTC
Permalink
Post by Lefteris Chatzimparmpas
Anyway, since you've managed to figure out what was wrong in your
config, all I can say at this point is that you're always welcome to
seek help, report problems, etc. to this list in the future.
It would be a good idea, also, to benefit the community by posting what
the problem resulted from, and how you fixed it. This way, everyone
learns more about the types of problems people have, and the methods
used to resolve them.
--
David DeSimone == Network Admin == fox at verio.net
"I don't like spinach, and I'm glad I don't, because if I
liked it I'd eat it, and I just hate it." -- Clarence Darrow


This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you.
Philippe LeCavalier
2010-11-12 13:44:49 UTC
Permalink
Post by David DeSimone
Post by Lefteris Chatzimparmpas
Anyway, since you've managed to figure out what was wrong in your
config, all I can say at this point is that you're always welcome to
seek help, report problems, etc. to this list in the future.
It would be a good idea, also, to benefit the community by posting what
the problem resulted from, and how you fixed it. This way, everyone
learns more about the types of problems people have, and the methods
used to resolve them.
--
David DeSimone == Network Admin == fox at verio.net
"I don't like spinach, and I'm glad I don't, because if I
liked it I'd eat it, and I just hate it." -- Clarence Darrow
I agree but in this case no one stands to learn anything from knowing I
what I made typos in the config ;)
I'm an active member/user of many open source projects and as a result
contribute whatever little I can to each project by posting my problems
and working them out publicly. I just wasn't certain if this list was
for users or just devel as the address implies. I didn't see any "users"
related threads in the archive so...

But know I know and will post away when needed!

Thanks to all.

Cheers,
Phil
Post by David DeSimone
This email message is intended for the use of the person to whom it has been sent, and may contain information that is confidential or legally protected. If you are not the intended recipient or have received this message in error, you are not authorized to copy, distribute, or otherwise use this message or its attachments. Please notify the sender immediately by return e-mail and permanently delete this message and any attachments. Verio, Inc. makes no warranty that this email is error or virus free. Thank you.
_______________________________________________
Imapfilter-devel mailing list
Imapfilter-devel at lists.hellug.gr
http://lists.hellug.gr/mailman/listinfo/imapfilter-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20101112/b58f65ce/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: face-wink.png
Type: image/png
Size: 983 bytes
Desc: not available
URL: <Loading Image...>
Loading...