R5 Simple mail routing script

Various mail routing scripts are as follows.

NRPC mail initialization workload script sample

Text enclosed in asterisks (**) indicates comments.

**Pause 0 to 15 minutes**

pause 0-900000 

**If an error occurs, wait 1 to 5 minutes before retrying**

errordelay 60000-300000 
changeto "[MailServer]!![nb_dbdir]mail[#].nsf" [MailTemplate] 

**Make sure there are enough notes in mail database (one time only)**

populate [NumMailNotesPerUser] $Inbox 100 [NormalMessageSize] 
setcalprofile 

**Open the current view**

open $Inbox 

**Close the view**

close

Simple mail routing script sample

Text enclosed in asterisks (**) indicates comments.

**Pause a random interval so multiple processes are well-staggered; pause 0 to 3 minutes (3 min. = 180000 ms)**

pause 0-180000
 

**If an error occurs, wait 1 to 2 minutes before retrying**

ErrorDelay 60000-120000
changeto "MailServer]!![nb_dbdir]mail[#].nsf" [MailTemplate]

**Pause 8 to 12 minutes to let ramp-ups occur**

Pause 480000-720000

**Set the Owner of the database = mail#**

setcalprofile
open $Inbox
getall

**Reset initial document count by deleting a large value of existing documents**

@If [NBTestReset]
delete [MaxDocToDelete]
@EndIf

**Make sure there are enough documents in mail database (one time only)**

populate [NumMailNotesPerUser] $Inbox
close

**Open the current view**

Open $Inbox

**Close the view**

close

**Start the part of the script that loops**

BeginLoop

**Open mail database**

changeto "[Mailserver]!![nb_dbdir]mail[#].nsf" [MailTemplate] -KeepOpen

**Open the current view**

open $Inbox
getall

**Read 20 documents from current view**

entries 0 20

**Wait 5 to 10 seconds to peruse the view**

pause 5000-10000

**Open 5 documents in the mail file and read each for 10 to 20 seconds**

navigate 5
pause 5000-10000

**Categorize 2 of the documents**

stamp 2

**Send a memo, taking 1 to 2 minutes to write it**

pause 60000 - 120000
sendmessage [NormalMessageSize] [NumMessageRecipients] [NthIteration]

**Add 2 items to the Inbox**

add 2 25 [NormalMessageSize] -f $Inbox
pause 60000 - 120000

**Pause 1 to 2 minutes**

pause 60000 - 120000

**Schedule an appointment**

cal -appt "[MailServer]!![nb_dbdir]mail[#].nsf" 1000 30 7 14 [NthIteration]
pause 30000 - 50000

**Schedule an invitation**

cal -i "[MailServer]!![nb_dbdir]mail[#].nsf" 1000 60 2 3 [NumMessageRecipients] [NthIteration]
pause 30000 - 50000

**Delete 2 documents**

delete 2

**Pause about 1 minute**

pause 45000 - 75000

**Send a response to an invitation**

rsvpinvitation

**Close the view**

close

**Pause at the desktop for 4 to 12 minutes while having a meeting in office**

pause 240000 - 720000

**Repeat entire sequence all over again (go back to BeginLoop statement)**

rewind [ScriptIterationLimit]