Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » User Filter for Return-Path?
  •  
j.a.duke

Messages: 356
Karma: 14
Send a private message to this user
Is there a way I can use the user filters to look at the Return-Path portion of the header for filing messages?

I want to take messages when people BCC themselves and file them into their Sent Mail folder.

This is what I've crafted so far (modified from the basic Sieve code that the GUI filter creator writes):
if header :contains "Return-Path" "user<_at_>srs.bis.na.blackberry.com"
{
  fileinto "Sent Items";
  stop;
}



This looks correct, at least to what I've seen for Sieve code, but it isn't working.

I'm open to suggestions.

Thanks.

Cheers,
Jon
  •  
j.a.duke

Messages: 356
Karma: 14
Send a private message to this user
j.a.duke wrote on Fri, 04 June 2010 10:57
Is there a way I can use the user filters to look at the Return-Path portion of the header for filing messages?

I want to take messages when people BCC themselves and file them into their Sent Mail folder.

This is what I've crafted so far (modified from the basic Sieve code that the GUI filter creator writes):
if header :contains "Return-Path" "user<_at_>srs.bis.na.blackberry.com"
{
  fileinto "Sent Items";
  stop;
}



This looks correct, at least to what I've seen for Sieve code, but it isn't working.

I'm open to suggestions.

Thanks.

Cheers,
Jon


Well, I finally figured out that the Return Path header wasn't working, so I changed course and created this:
if allof (
  address :all :is "From" "user<_at_>domain.com",
  not address :all :contains "To" "user<_at_>domain.com",
  header :contains "Received" "bis.na.blackberry.com")
{
  fileinto "Sent Items";
}


This works correctly, but it appears that I can't use the Sieve setflag command to mark the message as "read" so that it doesn't show in the folder as an unread message.

The correct syntax for the command would be "setflag "\\Seen"" but that is rejected by the filter system.

I'm assuming that Kerio has only implemented a stripped-down version of Sieve, which makes it a lot less useful for real usage.

I haven't filed a feature request yet since I hope I'm wrong and KC is just using a different command for this.

Thanks.

Cheers,
Jon
  •  
freakinvibe

Messages: 1553
Karma: 62
Send a private message to this user
If you look at

sieveScriptParser.js

you see that the "addflag" or "setflag" is not supported:

if (x_2tt != "reject" && x_2tt != "fileinto" && x_2tt != "redirect"
&& x_2tt != "keep"   && x_2tt != "discard"  && x_2tt != "stop"
&& x_2tt != "notify" && x_2tt != "vacation")


Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
Pavel Dobry (Kerio)

Messages: 5245
Karma: 251
Send a private message to this user
Actually, support for setflag option is a new feature in upcoming Kerio Connect 7.1. Check it out - http://www.kerio.com/betas/connect
Previous Topic: Whitelist Domains?
Next Topic: Journal folder webmail
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: Wed Nov 22 08:37:53 CET 2017

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