Manage Learn to apply best practices and optimize your operations.

Purge mail.box of dead mail

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

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

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

MEMBER FEEDBACK TO THIS TIP

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

It's not documented enough (e.g., you can't schedule this agent in mail.box, 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 SearchDomino.com 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.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com'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 ...

SearchDataCenter

SearchContentManagement

Close