Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to write an Agent to forward only mail less than 10MB??

Status
Not open for further replies.

dannydanny

IS-IT--Management
Oct 9, 2002
109
DK
Hi,

I`m not much of a Lotus Notes programmer, but I`ve played around with the Agent designer, trying to create an Agent that will only forward email to a private address if the email is less than 10MB (to prevent our office routers from being clogged up).
Can anyomne give me a few pointers?
In the Create Agent screen, the condition for which documents it should act on is:
In folder 'Inbox'ANDfield SizeValue is less than 1000000

but it doesn`t seem to send anything...

Any help much appreciated
Danny
 
I do not think that a Memo has a SizeValue field. That is a function used in a view to give the size of the document. Most probably that is where your agent is not working.
In R5, my approach would be to design a script agent which runs on incoming mail, checks the size of the doc and sends it off to whatever address is parametered.
Obviously, this is easier said than done. You would be better off asking a seasoned developer for help on this. Yet again, if you do not have that option in your office, this is the next best place to ask ;-).
If you want a walkthrough of the process, just ask.

Pascal.
 
For processing Incoming Mails by the Agents, you should use "If New mail has arrived" in "When the Agents should Run?". If you're using attributes of the Mail like SMTP Originator, Size, etc you need to use Condition "By Field" And in your case it will be "NumberOfBytes".

Your approach will only work for moving files from Inbox to different folders, or forwarding.

However, even the approach I've specified will not help you in your objective as this acts on the Mail that has arrived. I'm not sure this can be done on your Mailbox and not sure if an agent in the Server Mailbox can acheive this.

I would be interested to see the posts of this thread... "Whereever you go there are people who need you for what you can do..."
 
Hi all,

Thanks for the responses so far. Just to clarify, I`m looking to create an agent that forwards new email to a private address, but the email size must be less than 10MB, in order to prevent an email loop (emails too big for the mail server that keep bouncing back and forth).

Unfortunately, I don`t think our users are allowed to write agent scripts, we are forced to use only Simple Actions (only Simple Actions is selectable). Are there ways around this?

I tried the Condition By Field, but there is no "Number of Bytes" option......we are using R5.0.8. Probably the only thing related to size is the SizeValue field, but it seems this is unrelated to the size of the document.

Thanks again!
Danny
 
If you're looking to Forward New Mails to another mail address, it is possible. Jus the question of which field to use in R5.08. I use 4.6 so cannot be of much help. "Whereever you go there are people who need you for what you can do..."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top