Filter emails where TO: & FROM: are the same

Discussions on webmail and the Professional version.
Post Reply
rjay
Posts: 12
Joined: Thu Mar 09, 2006 10:52 pm

Filter emails where TO: & FROM: are the same

Post by rjay » Tue Dec 02, 2008 7:40 pm

I would like to add a message header to any incoming email where the TO & FROM are identical. I'm guessing that I would have to use a script to do this as there isn't anything appropriate in the Filters - correct ?

If so, how difficult would it be to write a script like this ?

MailEnable-Ian
Site Admin
Posts: 9378
Joined: Mon Mar 22, 2004 4:44 am
Location: Melbourne, Victoria, Australia

Post by MailEnable-Ian » Tue Dec 02, 2008 11:57 pm

Hi,

Try this:

Code: Select all

FilterResult=0
If CriteriaMet([ME_FROM],"*email@address*") AND CriteriaMet([ME_TO],"*email@address*") THEN
FilterResult=1
End If
Regards,

Ian Margarone
MailEnable Support

rjay
Posts: 12
Joined: Thu Mar 09, 2006 10:52 pm

Post by rjay » Wed Dec 03, 2008 9:47 am

Thanks Ian - but do I need to specify the email address in the criteria ? Can't the script simply compare the TO & FROM and see if they are identical rather than me having to give a specific email address ?

SandroK911
Posts: 2
Joined: Tue Oct 28, 2008 6:55 am

Post by SandroK911 » Fri Dec 05, 2008 11:17 am

CriteriaMet([ME_FROM],[ME_TO]) - looks like correct statement but does it work?
-----
And who spilled coffee on the keyboard, virus?

rjay
Posts: 12
Joined: Thu Mar 09, 2006 10:52 pm

Post by rjay » Fri Dec 05, 2008 12:29 pm

Thanks - but it doesn't seem to work :(

Post Reply