Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • Last Modified:

How to filter out messages that contain a particular attachment

I'm using Notes version 5.0.11.  Every day, I receive about 50 spam messages that have different senders and different subject lines, but all contain the same attachment -- say, file.htm.

I'd like Notes to automatically delete all incoming messages that contain this file. I've toyed around with the Rules feature, but it doesn't seem to be able to target attachments.

I've heard it is possible to write code for Notes (similar to VBA in MS Office). Can Notes be programmed with this kind of behavior? I'm a software developer (primary exp. with Java, C#, C, etc.), so I can understand coding explanations.
0
smitty22
Asked:
smitty22
1 Solution
 
SysExpertCommented:
I simply use the rules.

1) All stuff that has my name in cc or bcc goes into 1 folder.

2) All stuff that is coming from *.com  goes into another folder.

3) All known addresses go into a 3rd folder .

This works well since 99% of my mail is internal NOTES, rather than SMTP.

I hope this helps !
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
madheeswarCommented:
If ur using TrendMicro as Anti virus for ur Notes server, then u can set those attachments blocking in the database.

Just name the attachment ext., like .zip, .exe then all the mails going out and coming in will be blocked.

Hope it helps.
0
 
qwaleteeCommented:
Not just Trend Micro.  All the e-Mail content scnners can do this.

The following delivery agent will do this as well:

constgoAwayFile = "deadly.pif"
Dim s as new notesSession
dim db as notesDatabase
Set db = s.currentDatabase
Dim docs as notesDocumentCollection
Set docs = db.unprocessedDocuments
Dim doc as notesDocument
set doc = docs.getFirstDocument
dim attachment as notesEmbeddedObject
do until doc is nothing
   set attachment = doc.getAttachment(goAwayFile)
   if not (attachment is nothing) then
      doc.putInFolder "SPAM"
   end if
   s.updateProcessedDoc doc
   set doc = docs.getNextDocument(docs)
Loop
0
 
smitty22Author Commented:
SysExpert>
I had thought of doing something like this but was stymied b/c for some reason none of the Rules I create have any effect. It has bothered me for some time now, so I think I will post another question on how to get the Rules to work.

Qwaletee>
I like where you're going with this. What would I need in order to implement this? I have only the Lotus Notes client. I've heard something about a "Designer" for lotus -- is that right?
0
 
HemanthaKumarCommented:
smitty one that I provided are all FREE !
0
 
qwaleteeCommented:
Yes, you need Designer client.  Separate licensed product (though it is about 90% Notes client).

Note typo in first line:
const goAwayFile = "deadly.pif"
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now