S_Vincent
asked on
Agent for moving incoming mail to a folder
Hi,
I would like to create an agent that runs before mail arrives and looks for the field "$DNSBLSite" in an incoming mail and if it exsists move the mail into a folder called "SPAM" and as read.
My formular does not seem to work.
@If(@IsAvailable($DNSBLSit e);@AddToF older(SPAM ; "");"");SELECT @All
Any help would be great. I am running LN 5.0.13 and have designer.
Regards - Shane
I would like to create an agent that runs before mail arrives and looks for the field "$DNSBLSite" in an incoming mail and if it exsists move the mail into a folder called "SPAM" and as read.
My formular does not seem to work.
@If(@IsAvailable($DNSBLSit
Any help would be great. I am running LN 5.0.13 and have designer.
Regards - Shane
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks qwaletee, works to a treat, just one further question, I don't suppose there is a way to suppress the 'you have new mail' popup box in the formula if the new mail is found to be spam.
Regards - Shane
Regards - Shane
No, there's no way. The new mail dialog pops up when it recognizes that there has been mail delivered, but it doens't delve deeper.
(What actually happens is that there is a serial number embedded in the mail database. Each time mail is devlivered, the router updates this serial number. The new mail checker compares the current serial number to the value it has stored i Notes.Ini or in memory. If they don't match, it issues a new mail alert. Look in the INI for NewMailSeqNum)
(What actually happens is that there is a serial number embedded in the mail database. Each time mail is devlivered, the router updates this serial number. The new mail checker compares the current serial number to the value it has stored i Notes.Ini or in memory. If they don't match, it issues a new mail alert. Look in the INI for NewMailSeqNum)
For Marking it read, you have to use ToolsMarkSelectedUnread, this will not work in background agents..only foreground.
~Hemanth