ok following your advice here is my testing scenario: my own email id is
talha@mydomain.com and i created a id
test@mydomain.com now i have set a content filtering rule: condition: any smtp recepient contains "test@mydomain.com". actions: 1. remove recepient if it contains "talha@mydomain.com" 2. add recepient: "talha@mydomain.com".
So this way if
talha@mydomain.com is already there it is removed and then
talha@mydomain.com is added for redirection. This should eliminate duplicates if some sends a single email to both
test@mydomain.com and
talha@mydomain.com i wont get it twice.
But this is not working - please check and see what is wrong: contentfiltering rule is copied here:
{ -
enabled=1
name=testing incoming redirections
{ conditions
{ -
conditiontype=3
stringtype=1
stringstring=test@mydomain.com
stringcasesensitive=0
usestringlist=0
sizelarger=1
sizesize=0
accountquerywho=0
accountqueryaccountexists=0
applicationresultapplication=
applicationresultarguments=
applicationresultreturnvalue=
applicationresulthidewindow=1
headerfield=
logicop=0
not=0
openBracketCount=0
closeBracketCount=0
}
}
{ actions
{ -
type=4
text1=
text2=
text3=
bool=0
stringtype=1
stringstring=talha@mydomain.com
stringcasesensitive=0
usestringlist=0
{ addresses
}
}
{ -
type=2
text1=
text2=
text3=
bool=0
stringtype=1
stringstring=
stringcasesensitive=0
usestringlist=0
{ addresses
{ -
address=omeir@mydomain.com
personalname=
}
{ -
address=talha@mydomain.com
personalname=
}
}
}
}
}