We have several issues. We have subscribed to a SPAM blocking service that will modify the header of our messages so we can distinguish SPAM messages.
What we would like to do is set up an agent/rule that will read the header and place that message in a SPAM folder in the clients mailbox.
If that is possible, how can I copy the rule to everyone’s mail file? Would this be done by creating the rule in the template?
Is it possible to make the “SPAM” folder similar to the Trash folder, in that mail would only sit in there for 48 hours and then be purged automatically?
I have not done any of this myself, but…1) A header in the e-mail appears as an item in the Notes document, so this seems possible.
No, a rule in the template does not create a rule in every mail database.
You can write Lotusscript code to create a rule in every mail database. Your code must create a rule document, modify the calendar profile, and ensure that a database property is set. You can find out more by looking at the design of the Mailrule form.
By the way, it is potentially confusing to write “mailbox” when you mean mail database. Notes uses mail.box only for outgoing mail.
A rule is a normal notes document. You can have a template with documents to be populate to the newly created database. Profiles can not be populated by a template.
Ah but when you enable a rule, it is added to a list in the calendar profile. You can’t just add the rule doc into the mail file, you would have to modify the profile as well.