Manage Learn to apply best practices and optimize your operations.

Purge of dead mail

This simple @Macro agent purges the files of dead mail more than four days old.

This simple @Macro agent purges the files of dead mail more than four days old.

  Code: SELECT RoutingState = 
FIELD PostedDate := PostedDate;
@If((@Date(@Today) - PostedDate)
 > 4; @DeleteDocument; "");


This tip passes by a lot of issues regarding working with agents and the

It's not documented enough (e.g., you can't schedule this agent in, so 'automatically purging of dead mails' is NOT possible using this agent), and the author probably copied it from someone else without understanding what he was doing (ok, I'm just guessing here).

Anyway, this is a bad tip that needs a lot more information to make it useful for beginners.

—Tom B.

Do you have comments on this tip? Let us know.

This tip was submitted to the tip exchange by member Michael Chase. Please let others know how useful it is via the rating scale at the end of the tip. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.

Dig Deeper on Lotus Notes Domino Agents

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...