Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Mail Filters
  •  
adontz

Messages: 12
Karma: 0
Send a private message to this user
Hi!

I have problem configuring mail filters, maybe someone can help me.

I have IMAP access and additional IMAP folders. It looks like this.
INBOX
   User Group 1
   User Group 2
   User Group 3
Sent Items
   User Group 1
   User Group 2
   User Group 3

User (sender or recipient) can belong to one group only. I belong to one of these groups. There are also group addresses: group1, group2, group3

I want to
1) When I receive message from somebody, it will be places to corresponding INBOX subgroup.
2) When I send message to somebody, it will be placed to corresponding Sent Items subgroup.

Here are my filter scrips which does not work well with group addresses and other cases when senders and recipients are intersected sets.
#!1 IN - User Group 1
if address :all :contains "From" ["group1","user1","user2","user3"]
{
  fileinto "INBOX/User Group 1";
  stop;
}

#!1 IN - User Group 2
if address :all :contains "From" ["group2","user4","user5","user6"]
{
  fileinto "INBOX/User Group 2";
  stop;
}

#!1 IN - User Group 3
if address :all :contains "From" ["group3","user7","user8","user9"]
{
  fileinto "INBOX/User Group 3";
  stop;
}

#!1 OUT - User Group 1
if address :all :contains "To" ["group1","user1","user2","user3"]
{
  fileinto "Sent Items/User Group 1";
  stop;
}

#!1 OUT - User Group 2
if address :all :contains "To" ["group2","user4","user5","user6"]
{
  fileinto "Sent Items/User Group 2";
  stop;
}

#!1 OUT - User Group 3
if address :all :contains "To" ["group3","user7","user8","user9"]
{
  fileinto "Sent Items/User Group 3";
  stop;
}


Also these group are actually AD groups, can I somehow use AD group membership in conditions?
Previous Topic: KMS V6.5 : Error 8004010e when importing PST
Next Topic: Error in Webmail's French Translation
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Fri Sep 22 17:13:51 CEST 2017

Total time taken to generate the page: 0.00332 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.