home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April A / Pcwk4a98.iso / Lotus / Domino46 / LOTUS024.DSK / MAIL46.NTF (.txt) < prev    next >
Lotus Notes Database  |  1997-09-15  |  2MB  |  23,749 lines

  1. Mail (R4.6)
  2. #1StdR46Mail
  3. e:\notefile\maddash\mail46.ntf
  4. \mail46.ntf
  5. $FolderInfo
  6. $FolderRefInfo
  7. FOLDER_DIRECTORY_OBJECT
  8. ($Alarms)|$Alarms
  9. ($Inbox)
  10. ($Trash)
  11. CN=Lotus Notes Template Development/O=Lotus Notes
  12. <    <     
  13. !X%`P
  14. P5~K-!W
  15. qHmvO
  16. Started running agent '_Calendar Tools\Calendar Profile... | Calendar Profile' on 03/10/97 11:01:08 AM
  17. 1 document(s) were modified by formula
  18. Done running agent '_Calendar Tools\Calendar Profile... | Calendar Profile' on 03/10/97 11:01:08 AM
  19. _Calendar Tools\Calendar Profile... | Calendar Profile
  20. E41f3
  21. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes+
  22. #####################################################
  23. Periodic Archive
  24. 1SfL3
  25. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################################################
  26. Mail Tools\Create Stationery... | CreateStationery303
  27. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes%
  28. ###################
  29. _Calendar Tools\Delete Repeating Appointment(s)... | DeleteRepeatingFormula
  30. E4fL3
  31. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes0
  32. ########################################################
  33. CN=Barney Rubble/O=Iris AssociatesCN=Buzz Lightyear/O=Iris AssociatesCN=Ryan Jansen/O=IrisCN=Buzz Lightyear/O=Iris AssociatesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesDatabase Scriptt34Q1#########################################################
  34. Update Tasks
  35. 1SfL3
  36. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  37. ##########################################################
  38. _Calendar Tools\Open Another Calendar... | Open Another Calendar
  39. E41f3
  40. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes`
  41. ###########################################
  42. ProcessOutOfOffice
  43. 1SfL3
  44. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################################
  45. Mail Tools\Archive Selected Documents
  46. E4fL3
  47. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################
  48. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  49. CalendarProfile
  50. O=Lotus Notes
  51. O=Lotus Notes
  52. PURSAFO
  53. |.:#U
  54. O=Lotus Notes
  55. CN=Lotus Notes Template Development/O=Lotus Notes
  56. PURSAFO
  57. Fde!f^^
  58. $TITLE
  59. $AssistType
  60. $AssistLastRun
  61. $AssistDocCount
  62. $AssistFlags
  63. $AssistTrigger
  64. $AssistInfo
  65. $AssistQuery
  66. $AssistAction
  67. $AssistAction_Ex
  68. $PublicAccess
  69. '++LotusScript Development Environment:2:5:(Options):0:66
  70. '++LotusScript Development Environment:2:5:(Forward):0:1
  71. Declare Sub Initialize
  72. Declare Sub Terminate
  73. Declare Sub Main
  74. Declare Sub GetProfileSettings
  75. Declare Sub CreateLogDocument
  76. Declare Sub ProcessDocuments
  77. Declare Sub EvaluateDocument
  78. Declare Sub ArchiveDocument
  79. Declare Sub FixReaderNames
  80. Declare Sub AddDocumentToLog
  81. Declare Sub CloseLogDocument
  82. Declare Sub MarkLogDocuments
  83. '++LotusScript Development Environment:2:5:(Declarations):0:10
  84. '%INCLUDE "lserr.lss"
  85. '%INCLUDE "lsxbeerr.lss"
  86. Const MAXARCHIVEITEMS = 50
  87. Dim session As NotesSession
  88. Dim dbSource As NotesDatabase
  89. Dim dbArchive As NotesDatabase
  90. Dim docSource As NotesDocument
  91. Dim docArchive As NotesDocument
  92. Dim docLog As NotesDocument
  93. Dim docProfile As NotesDocument
  94. Dim viewArchive As NotesView
  95. Dim dtNow As NotesDateTime
  96. Dim dtExpired As NotesDateTime
  97. Dim dtDocument As NotesDateTime
  98. Dim dtCompare As NotesDateTime
  99. Dim docsCollection As NotesDocumentCollection
  100. Dim rtitem As NotesRichTextItem
  101. Dim item As NotesItem
  102. Dim nidArray() As String
  103. Dim SourcePath As String
  104. Dim SourceServer As String
  105. Dim ArchiveServer As String
  106. Dim ArchivePath As String
  107. Dim ArchiveLog As String
  108. Dim IncludeDocLinks As String
  109. Dim ArchiveExpired As String
  110. Dim ArchiveInactive As String
  111. Dim ExpiredLife As Integer
  112. Dim DocumentLife As Integer
  113. Dim nLogItems As Integer
  114. Dim numDocs As Integer
  115. Dim numDocsArchived As Integer
  116. Dim i As Integer
  117. Dim DoNotRun As Variant
  118. Dim DocCanBeArchived As Variant
  119. '++LotusScript Development Environment:2:2:Initialize:1:10
  120. Sub Initialize
  121.      'initialize some variables
  122.      Set session = New NotesSession
  123.      Set dbSource = session.CurrentDatabase
  124.      Redim nidArray(5)
  125.      nLogItems = 0
  126.      numDocsArchived = 0
  127.      'call the main entry point
  128.      Main     
  129. End Sub
  130. '++LotusScript Development Environment:2:2:Terminate:1:10
  131. Sub Terminate
  132.      
  133. End Sub
  134. '++LotusScript Development Environment:2:2:Main:1:8
  135. Sub Main
  136. 'Read the profile document to see what options are enabled and where databases are located
  137.      GetProfileSettings
  138.      If DoNotRun Then Exit Sub
  139.      
  140. 'setup the date/time structures
  141.      Set dtNow = New NotesDateTime("")
  142.      Set dtExpired = New NotesDateTime("")
  143.      Set dtDocument = New NotesDateTime("")
  144.      Set dtCompare = New NotesDateTime("")
  145.      dtNow.SetNow
  146.      dtExpired.SetNow
  147.      dtDocument.SetNow
  148.      dtCompare.SetNow
  149.      If ArchiveExpired = "Yes" Then dtExpired.AdjustDay(ExpiredLife * -1)
  150.      If ArchiveInactive = "Yes" Then dtDocument.AdjustDay(DocumentLife * -1)     
  151.      
  152. 'open the archive database
  153.      
  154.      On Error Resume Next
  155.      Set dbArchive = New NotesDatabase(ArchiveServer,ArchivePath)
  156.      If Err = 4060 Then Goto ErrNoDBAccess
  157.      
  158.      If Not (dbArchive.IsOpen) Then
  159.           Messagebox "Unable to open archive database.",16,"Error"
  160.           Exit Sub
  161.      End If
  162.      
  163.      'see if we are logging documents, if we are, then create the first one
  164.      If ArchiveLog = "Yes" Then CreateLogDocument
  165.      'process the documents in the database
  166.      'this finds all documents that needs to be archived, archives them, logs them (if necessary), and removes them from this database
  167.      ProcessDocuments
  168.      'mark the log documents in terms of x out of y
  169.      If ArchiveLog = "Yes" Then MarkLogDocuments
  170.      Exit Sub
  171.      
  172. ErrNoDBAccess:
  173.      Messagebox "You do not have access to the archive database.  Please contact the database manager to have your name added to the Access Control List.", 0, "Database Access Error"
  174.      Exit Sub
  175. End Sub
  176. '++LotusScript Development Environment:2:2:GetProfileSettings:1:8
  177. Sub GetProfileSettings
  178.      'reads the profile document
  179.      Set view = dbSource.GetView("Archiving")
  180.      key = "Archive Profile"
  181.      Set docProfile = view.GetDocumentByKey(key,False)
  182.      If docProfile Is Nothing Then
  183.           'there is no profile document so exit
  184.           DoNotRun = True
  185.      Elseif docProfile.ArchivePath(0) = "" Then
  186.           'there is no archive database
  187.           Msgbox "You need to specify a location for the archive database.",16,"Error"          
  188.           DoNotRun = True
  189.      Else
  190.           DoNotRun = False
  191.           ArchiveExpired = docProfile.ArchiveExpired(0)
  192.           ArchiveInactive = docProfile.ArchiveInactive(0)
  193.           DocumentLife = docProfile.DocumentLife(0)
  194.           ExpiredLife = docProfile.ExpiredLife(0)
  195.           ArchiveServer = docProfile.ArchiveServer(0)
  196.           ArchivePath = docProfile.ArchivePath(0)
  197.           ArchiveLog = docProfile.ArchiveLog(0)
  198.           IncludeDocLinks = docProfile.IncludeDocLinks(0)
  199.      End If
  200. End Sub
  201. '++LotusScript Development Environment:2:2:CreateLogDocument:1:8
  202. Sub CreateLogDocument
  203.      'creates a new log document, incrementing the counter
  204.      Set docLog = New NotesDocument(dbSource)
  205.      Set rtitem = New NotesRichTextItem(docLog, "Body")
  206.      docLog.Form = "Archive Log"
  207.      dtNow.SetNow
  208.      docLog.ArchiveDate = dtNow.LSLocalTime
  209.      docLog.ProtectFromArchive = 1
  210.      docLog.ExcludeFromView = "D"
  211.      docLog.From = "Archiving"
  212.      docLog.Categories = "(Archive)"
  213.      docLog.ReplaceItemValue "_ViewIcon", 22
  214.      nLogItems = nLogItems + 1
  215.      'see if we need to redim the array
  216.      If nLogItems Mod 6 = 0 Then Redim Preserve nidArray(nLogItems + 4)     
  217. End Sub
  218. '++LotusScript Development Environment:2:2:ProcessDocuments:1:8
  219. Sub ProcessDocuments
  220.      'get a handle to all of the documents in the database
  221.      Set docsCollection = dbSource.AllDocuments
  222.      numDocs = docsCollection.Count
  223.      For i =1 To numDocs
  224.           Set docSource = docsCollection.GetNthDocument(i)
  225.           'see if this document can be archived
  226.           EvaluateDocument
  227.           If DocCanBeArchived Then
  228.                'archive this document
  229.                ArchiveDocument
  230.                If ArchiveLog = "Yes" Then AddDocumentToLog
  231.                docSource.Remove True
  232.           End If
  233.           'see if we have hit the maximum number of entries in a log document; if so close the existing one and create a new one
  234.           If (numDocsArchived Mod MAXARCHIVEITEMS = 0) And (numDocsArchived > 0) Then 
  235.                If ArchiveLog = "Yes" Then
  236.                     CloseLogDocument
  237.                     CreateLogDocument                  
  238.                End If
  239.           End If               
  240.      Next
  241.      'we are done processing all of the documents, close the last log document (if necessary)
  242.      If ArchiveLog = "Yes" Then CloseLogDocument
  243. End Sub
  244. '++LotusScript Development Environment:2:2:EvaluateDocument:1:8
  245. Sub EvaluateDocument
  246.      'checks to see if a document should be archived or not
  247.      DocCanBeArchived = False
  248.      'see if this document is protected from archiving
  249.      If docSource.HasItem("ProtectFromArchive") Then
  250.           If docSource.ProtectFromArchive(0) = 1 Then Exit Sub        
  251.      End If
  252.      
  253. 'look for a $NoPurge item; if it is a date, compare it to today;
  254.      If (docSource.HasItem("$NoPurge")) Then
  255.           Set Purge = docSource.GetFirstItem("$NoPurge")
  256.           If (Purge.Type = DATETIMES) Then
  257.                Set enddt = New NotesDateTime("")
  258.                Set enddt = Purge.DateTimeValue
  259.                Set nowdt = New NotesDateTime("")
  260.                nowdt.SetNow
  261.                If enddt.TimeDifference(nowdt) >= 0 Then Exit Sub
  262.           Else
  263.                Exit Sub
  264.           End If
  265.      End If
  266.      
  267.      'see if we should archive documents that expire
  268.      If ArchiveExpired = "Yes" Then
  269.           If docSource.HasItem("ExpireDate") Then
  270.                Set item = docSource.GetFirstItem("ExpireDate")
  271.                Set dtCompare = item.DateTimeValue
  272.                If dtCompare Is Nothing Then
  273.                     Set dtCompare = New NotesDateTime("")
  274.                     dtCompare.SetNow
  275.                Else
  276.                     If dtExpired.TimeDifference(dtCompare) >= 0 Then
  277.                          DocCanBeArchived = True
  278.                          Exit Sub ' we exit here so that we don't archive this document again
  279.                     End If
  280.                End If                    
  281.           End If
  282.      End If
  283.      'see if we should archive documents that are inactive
  284.      If ArchiveInactive = "Yes" Then
  285.           dtCompare.LSLocalTime = docSource.LastAccessed
  286.           If dtDocument.TimeDifference(dtCompare) >= 0 Then DocCanBeArchived = True
  287.      End If
  288. End Sub
  289. '++LotusScript Development Environment:2:2:ArchiveDocument:1:8
  290. Sub ArchiveDocument
  291.      'copies the source document into the archive database
  292. $Archived and DateArchived might already be present, if this agent failed the last
  293. time it was run.  None of these fields should be on the archived copy, because we 
  294. don't want the archive database to inadvertantly archive these documents (it can
  295. archive, but it needs to use its own criteria)
  296. %END REM
  297.      
  298.      If docSource.HasItem("$Archived") Then docSource.RemoveItem("$Archived")
  299.      If docSource.HasItem("DateArchived") Then docSource.RemoveItem("DateArchived")
  300.      If docSource.HasItem("ExpireDate") Then docSource.RemoveItem("ExpireDate")
  301.      FixReaderNames
  302.      docSource.Save True, True
  303.      Set docArchive = docSource.CopyToDatabase(dbArchive)
  304.      docSource.DateArchived = dtNow.LSLocalTime    
  305.      Call docSource.AppendItemValue("$Archived", True)
  306.      docSource.Save True, True
  307.      numDocsArchived = numDocsArchived + 1
  308. End Sub
  309. '++LotusScript Development Environment:2:2:FixReaderNames:1:8
  310. Sub FixReaderNames
  311.      'if the reader access fields are blank, remove them
  312.      If docSource.HasItem("Readers") Then
  313.           If docSource.Readers(0) = "" Then docSource.RemoveItem("Readers")
  314.      End If
  315.      If docSource.HasItem("DocumentReaders") Then
  316.           If docSource.DocumentReaders(0) = "" Then docSource.RemoveItem("DocumentReaders")
  317.      End If
  318.      
  319. End Sub
  320. '++LotusScript Development Environment:2:2:AddDocumentToLog:1:8
  321. Sub AddDocumentToLog
  322.      'only called if a document was archived and logging was enabled
  323.      If IncludeDocLinks = "Yes" Then
  324.           'the user wants a doclink to the new archived document
  325.           Call rtitem.AppendDocLink(docArchive, "DocLink to " & docSource.Subject(0))
  326.           Call rtitem.AddTab(1)
  327.      End If
  328.      Call rtitem.AppendText("     " & docSource.Subject(0) & " (created by " & docSource.From(0) &   " on " &_
  329.      Format(docSource.Created, "Short Date") & ")")
  330.      Call rtitem.AddNewLine(2)
  331. End Sub
  332. '++LotusScript Development Environment:2:2:CloseLogDocument:1:8
  333. Sub CloseLogDocument
  334.      'saves the log document, adds the note id to the array,
  335.      docLog.Save True, True
  336.      nidArray(nLogItems) = docLog.NoteID
  337. End Sub
  338. '++LotusScript Development Environment:2:2:MarkLogDocuments:1:8
  339. Sub MarkLogDocuments
  340.      'finds all of the log documents just created and marks them in terms of x out of y
  341.      For i = 1 To nLogItems
  342.           Set docLog = dbSource.GetDocumentByID(nidArray(i))
  343.           If Not (docLog Is Nothing) Then
  344.                docLog.Subject = "Log Document " &Cstr(i) & " of " & Cstr(nLogItems) & " (" & Format(docLog.Created, "General Date") & ")"
  345.                docLog.LogCount = Cstr(i)
  346.                docLog.LogTotal = Cstr(nLogItems)
  347.                docLog.ArchiveTrailer = "Archive log " & Cstr(i) & "of " & Cstr(nLogItems) & " for documents on server " & _
  348.                ArchiveServer & " from " & dbSource.Title & " (" & dbSource.FilePath & ") to " & dbArchive.Title & _
  349.                " (" & ArchivePath & ") completed sucessfully on " & _
  350.                Format(dtNow.LSLocalTime, "Short Date") & " at " & _
  351.                Format(dtNow.LSLocalTime, "Long Time") & _
  352.                ".  Expired documents are archived after " & ExpiredLife & _
  353.                " days.  All other documents are archived after " & DocumentLife & " days of inactivity."
  354.                docLog.Save True,True
  355.                Call docLog.CopyToDatabase(dbArchive)
  356.           End If
  357.      Next
  358. End Sub
  359. O=Lotus Notes
  360. O=Lotus Notes
  361. PURSAFO
  362. |.:#U
  363. O=Lotus Notes
  364. CN=Lotus Notes Template Development/O=Lotus Notes
  365. PURSAFO
  366. Fde!f^^
  367. $TITLE
  368. $AssistType
  369. $AssistLastRun
  370. $AssistDocCount
  371. $AssistFlags
  372. $AssistTrigger
  373. $AssistInfo
  374. $AssistQuery
  375. $AssistAction
  376. $AssistAction_Ex
  377. Started running agent 'Mail Tools\Create Stationery... | CreateStationery' on 03/10/97 10:55:04 AM
  378. 1 document(s) were modified by formula
  379. Done running agent 'Mail Tools\Create Stationery... | CreateStationery' on 03/10/97 10:55:06 AM
  380. TheForm
  381. Create Stationery
  382. Which Form would you like to use to create this Stationery message?
  383. Personal Stationery
  384.     1S2S6S8S10S12S13S14S
  385. MailStEd
  386.     0R1S2S3S
  387. TheForm
  388.     0RR4S
  389. O=Lotus Notes
  390. O=Lotus Notes
  391. PURSAFO
  392. |.:#U
  393. O=Lotus Notes
  394. CN=Lotus Notes Template Development/O=Lotus Notes
  395. PURSAFO
  396. Fde!f^^
  397. $TITLE
  398. $Formula
  399. $TYPE
  400. $Operation
  401. $Scan
  402. '++LotusScript Development Environment:2:5:(Options):0:74
  403. Option Public
  404. Use "RepeatProcessing"
  405. '++LotusScript Development Environment:2:5:(Forward):0:1
  406. Declare Sub Initialize
  407. '++LotusScript Development Environment:2:5:(Declarations):0:10
  408. Dim acl As NotesAcl
  409. Dim aclentry As NotesAclEntry
  410. '++LotusScript Development Environment:2:2:Initialize:1:10
  411. Sub Initialize
  412.      
  413.      Set ws = New NotesUIWorkspace
  414.      Set uidoc = ws.CurrentDocument
  415.      If Not(uidoc Is Nothing) Then
  416.           Messagebox "You must close all documents before running the ""Delete Repeating..."" action.", 0, "Delete Repeating"
  417.           Exit Sub
  418.      End If
  419.      
  420.      Set session = New NotesSession
  421.      Set db = session.CurrentDatabase
  422.      
  423.      Set acl = db.ACL
  424.      
  425.      Set aclentry = acl.GetEntry(session.Username)
  426. 'if not found using distinquished name try with common name     
  427.      If aclentry Is Nothing Then
  428.           Set namelookup = New NotesName(session.Username)
  429.           Set aclentry = acl.GetEntry(namelookup.Common)
  430. 'if the name is still not found get the default entry          
  431.           If aclentry Is Nothing Then Set aclentry = acl.GetFirstEntry
  432.      End If
  433.      
  434. 'you must either be a public user or have Can Delete turn on     
  435.      If Not(aclentry.CanDeleteDocuments) And Not(aclentry.IsPublicWriter) Then
  436.           Messagebox "You are not authorized to delete documents in this database.", 0, "Delete Repeating"
  437.           Exit Sub
  438.      End If
  439.      
  440.      Set documents = db.UnprocessedDocuments
  441.      
  442. 'we can only realistically do this on one doc at a time.  otherwise how does the user know which we are prompting about.
  443.      Set note = documents.GetFirstDocument
  444.      
  445. 'If no doc is selected we don't want to continue     
  446.      If note Is Nothing Then 
  447.           Messagebox "There is no document selected.", 0, "Delete Repeating Error"
  448.           Exit Sub
  449.      End If
  450.      
  451.      If note.HasItem("OrgRepeat") Then
  452.           If aclentry.Level = ACLLEVEL_AUTHOR And Not(aclentry.IsPublicWriter) Then
  453.                AuthorList = note.Authors
  454.                IsAuthor = False
  455.                Forall a In AuthorList
  456.                     If a = session.Username Then IsAuthor = True
  457.                End Forall
  458.                If Not(IsAuthor) Then
  459.                     Messagebox "You did not create this repeat set and therefore you can not delete its appointments.", 0, "Delete Repeating"
  460.                     Exit Sub
  461.                End If
  462.           End If
  463.           Action = "Delete"
  464.           Call RepeatSave
  465.      Else
  466.           Messagebox "The selected document is not a repeating appointment.", 0, "Delete Repeating Appointment"
  467.      End If
  468.      
  469. End Sub
  470.     #~H    
  471. O=Lotus Notes
  472. O=Lotus Notes
  473. PURSAFO
  474. |.:#U
  475. O=Lotus Notes
  476. CN=Lotus Notes Template Development/O=Lotus Notes
  477. PURSAFO
  478. Fde!f^^
  479. $TITLE
  480. $AssistType
  481. $AssistLastRun
  482. $AssistDocCount
  483. $AssistFlags
  484. $AssistTrigger
  485. $AssistInfo
  486. $AssistQuery
  487. $AssistAction
  488. $AssistAction_Ex
  489. '++LotusScript Development Environment:2:5:(Options):0:66
  490. '++LotusScript Development Environment:2:5:(Forward):0:1
  491. Declare Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
  492. Declare Sub Postdocumentdelete(Source As Notesuidatabase)
  493. '++LotusScript Development Environment:2:5:(Declarations):0:2
  494. '++LotusScript Development Environment:2:2:BindEvents:1:129
  495. Private Sub BindEvents(Byval Objectname_ As String)
  496.      Static Source As NOTESUIDATABASE
  497.      Set Source = Bind(Objectname_)
  498.      On Event Querydocumentdelete From Source Call Querydocumentdelete
  499.      On Event Postdocumentdelete From Source Call Postdocumentdelete
  500. End Sub
  501. '++LotusScript Development Environment:2:2:Querydocumentdelete:1:12
  502. Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
  503.      
  504. End Sub
  505. '++LotusScript Development Environment:2:2:Postdocumentdelete:1:12
  506. Sub Postdocumentdelete(Source As Notesuidatabase)
  507.      
  508. End Sub
  509. O=Lotus Notes
  510. O=Lotus Notes
  511. PURSAFO
  512. |.:#U
  513. O=Lotus Notes
  514. CN=Lotus Notes Template Development/O=Lotus Notes
  515. PURSAFO
  516. Fde!f^^
  517. ]\T<R
  518. J3ns4
  519. $DBScript
  520. $DBScript_O
  521. $TITLE
  522. $Flags
  523. $PublicAccess
  524. '++LotusScript Development Environment:2:5:(Options):0:74
  525. Option Public
  526. Use "SharedTaskLibrary"
  527. '++LotusScript Development Environment:2:5:(Forward):0:1
  528. Declare Sub Initialize
  529. '++LotusScript Development Environment:2:5:(Declarations):0:2
  530. '++LotusScript Development Environment:2:2:Initialize:1:10
  531. Sub Initialize
  532.      Call UpdateTasks
  533. End Sub
  534. O=Lotus Notes
  535. O=Lotus Notes
  536. PURSAFO
  537. |.:#U
  538. O=Lotus Notes
  539. CN=Lotus Notes Template Development/O=Lotus Notes
  540. PURSAFO
  541. Fde!f^^
  542. $TITLE
  543. $AssistType
  544. $AssistLastRun
  545. $AssistDocCount
  546. $AssistFlags
  547. $AssistTrigger
  548. $AssistInfo
  549. $AssistQuery
  550. $AssistAction
  551. $AssistAction_Ex
  552.     0S0E
  553. O=Lotus Notes
  554. O=Lotus Notes
  555. PURSAFO
  556. |.:#U
  557. O=Lotus Notes
  558. CN=Lotus Notes Template Development/O=Lotus Notes
  559. PURSAFO
  560. Fde!f^^
  561. Rq S2
  562. $TITLE
  563. $AssistType
  564. $AssistLastRun
  565. $AssistDocCount
  566. $AssistFlags
  567. $AssistTrigger
  568. $AssistInfo
  569. $AssistQuery
  570. $AssistAction
  571. $AssistAction_Ex
  572. $PublicAccess
  573. '++LotusScript Development Environment:2:5:(Options):0:66
  574. Option Public
  575. '++LotusScript Development Environment:2:5:(Forward):0:1
  576. Declare Sub NotifySender
  577. Declare Sub Initialize
  578. Declare Sub GetProfile
  579. Declare Sub CheckName
  580. '++LotusScript Development Environment:2:5:(Declarations):0:10
  581. %INCLUDE "lsconst.lss"
  582. Dim s As NotesSession
  583. Dim db As NotesDatabase
  584. Dim view As NotesView
  585. Dim note As NotesDocument
  586. Dim profile As NotesDocument
  587. Dim maildoc As NotesDocument
  588. Dim notifieditem As NotesItem
  589. Dim startdate As NotesItem
  590. Dim enddate As NotesItem
  591. Dim rtitem As NotesRichTextItem
  592. Dim documents As NotesDocumentCollection
  593. Dim dtToday As NotesDateTime
  594. Dim dtCompare As NotesDateTime
  595. Dim deliveredDate As NotesItem
  596. Dim dtStart As NotesDateTime
  597. Dim nam As NotesName
  598. Dim FormName As Variant
  599. Dim AdminType As Variant
  600. Dim ProfileUser As Variant
  601. Dim FirstDayOut As Variant
  602. Dim FirstDayBack As Variant
  603. Dim DaysOut As Variant
  604. Dim GeneralSubject As Variant
  605. Dim GeneralMessage As Variant
  606. Dim SpecialSubject As Variant
  607. Dim SpecialMessage As Variant
  608. Dim SpecialPeople As Variant
  609. Dim IgnorePeople As Variant
  610. Dim AlreadyNotified As Variant
  611. Dim SenderIsSpecial As Variant
  612. Dim Sender As Variant
  613. Dim DoNotRun As Variant
  614. Dim DoNotSend As Variant
  615. Dim domainItem As Variant
  616. '++LotusScript Development Environment:2:2:NotifySender:1:8
  617. Sub NotifySender
  618.      
  619. 'Set object variables for email
  620.      
  621.      Set maildoc = New NotesDocument(db)
  622.      Set rtitem = New NotesRichTextItem(maildoc, "Body")
  623.      
  624. 'Check to see if this person is on the SpecialPeople list
  625.      SenderIsSpecial = False
  626.      Forall i In SpecialPeople
  627.           If Sender(0) = i Then
  628.                SenderIsSpecial = True
  629.                Exit Forall
  630.           End If
  631.      End Forall
  632.      
  633. 'Build and send the email
  634.      maildoc.Form = "Memo"
  635.      domainItem = note.FromDomain
  636.      maildoc.SendTo = Sender(0)
  637.      If Not (Isempty(domainItem)) And domainItem(0) <> "" Then
  638.           maildoc.SendTo = mailDoc.SendTo(0) & " @ " & domainItem(0)
  639.      End If
  640.      rtitem.AppendText(DaysOut(0))
  641.      rtitem.AddNewLine(2)
  642.      If SenderIsSpecial Then
  643.           maildoc.Subject = SpecialSubject(0)
  644.           rtitem.AppendText(SpecialMessage(0))
  645.      Else
  646.           maildoc.Subject = GeneralSubject(0)
  647.           rtitem.AppendText(GeneralMessage(0))
  648.      End If
  649.      Call maildoc.AppendItemvalue("$AutoForward", True)
  650.      
  651. 'Don't add this person to the Notified list if the message cannot be sent.
  652. 'Send may fail if an ambiguous name is supplied
  653.      On Error Goto SendError
  654.      maildoc.Send(False)
  655.      
  656. 'Add this sender to AlreadyNotified list on profile
  657.      notifieditem.AppendToTextList(Sender(0))
  658.      profile.Save True, True
  659.      
  660. SendError:
  661.      ' Maybe keep track of the people that we couldn't send to?
  662.      Exit Sub
  663.      
  664. End Sub
  665. '++LotusScript Development Environment:2:2:Initialize:1:10
  666. Sub Initialize
  667.      
  668. 'Set Object Variables
  669.      Set dtToday = New NotesDateTime("")    
  670.      dtToday.SetNow
  671.      Set s = New NotesSession
  672.      Set db = s.CurrentDatabase
  673.      Set documents = db.UnprocessedDocuments
  674.      Set view = db.GetView("($Profiles)")
  675.      Set profile = db.GetProfileDocument("OutOfOfficeProfile")
  676.      
  677. 'Get the profile data and be sure that this agent should run today
  678.      DoNotRun = False
  679.      GetProfile
  680.      If DoNotRun Then Exit Sub
  681.      
  682.      Set dtStart = startdate.DateTimeValue
  683.      
  684. 'Get each doc, check if sender has been notified yet, if not then notify them     
  685.      For n = 1 To documents.Count
  686.           Set note = documents.GetNthDocument(n)
  687.           Sender = note.From
  688. 'Make sure that we received this message (DeliveredDate) and that it was not automatically generated by someone else' agent ($AutoForward)
  689.           If note.HasItem("DeliveredDate")  And (Not note.HasItem("$AutoForward")) And (Not note.SentByAgent) Then
  690.                Set deliveredDate = note.GetFirstItem("DeliveredDate")
  691.                If deliveredDate.Values(0) <> "" Then
  692.                     Set dtCompare = deliveredDate.DateTimeValue
  693.                     If dtStart.TimeDifference(dtCompare) <= 0 Then
  694.                          CheckName
  695.                          If Not DoNotSend Then
  696.                               NotifySender
  697.                          End If
  698.                     End If
  699.                End If
  700.           End If
  701.           Call s.UpdateProcessedDoc(note)
  702.      Next
  703.      
  704. End Sub
  705. '++LotusScript Development Environment:2:2:GetProfile:1:8
  706. Sub GetProfile
  707. '    
  708. 'Get profile document and field values.  If no Profile, inform the user and exit.  We have to check on the existance
  709. 'of a couple of fields(we'll choose datein/dateout because of their importance), because if the profile isn't setup, a 
  710. 'blank default document is created with 3 fields; but not the 2 listed below...
  711.      If (profile Is Nothing) Or (profile.HasItem("dateFirstDayOut") = False) Or (profile.HasItem("dateFirstDayBack") = False) Then
  712.           Set maildoc = New NotesDocument(db)
  713.           maildoc.Form = "Memo"
  714.           maildoc.SendTo = "Email User"
  715.           maildoc.From = "Your Out of Office Agent"
  716.           maildoc.Subject = "Out of Office Agent failed"
  717.           maildoc.Body = "The Out of Office Agent cannot run unless you have created an Out of Office Profile.  " & _
  718.           "Choose ""Actions, Mail Tools, Out of Office"" from the Action menu and fill in the appropriate information."
  719.           maildoc.PostedDate = dtToday.LSLocalTime
  720.           maildoc.DeliveredDate = dtToday.LSLocalTime
  721.           maildoc.Save True, True
  722.           maildoc.PutInFolder("($InBox)")
  723.           DoNotRun = True
  724.           Exit Sub
  725.      Else
  726.           ProfileUser = profile.Sender
  727.      End If
  728.      
  729. 'Be sure the agent is supposed to be running today     
  730.      FirstDay = Datevalue(profile.dateFirstDayOut(0))
  731.      LastDay = Datevalue(profile.dateFirstDayBack(0))
  732.      LastTime = Timevalue(profile.dateFirstDayBack(0))
  733.      CurrentDay = Today
  734.      CurrentTime = Time
  735.      
  736. 'If this is the day before you return and within 6 hours of the return time (12AM of the day your return)
  737. 'then we consider you back.  This accounts for people who run this agent hourly or daily between 6PM and midnight.
  738. 'If this is the day you return or any day after then you are also back.
  739.      If (CurrentDay = LastDay - 1 And _
  740.      CurrentTime >= Timenumber(Hour(LastTime - 6), Minute(LastTime), Second(LastTime))) Or _
  741.      CurrentDay => LastDay Then
  742.           Set maildoc = New NotesDocument(db)          
  743.           Set rtitem = New NotesRichTextItem(maildoc, "Body")
  744.           maildoc.Form = "Memo"
  745.           maildoc.SendTo = ProfileUser(0)
  746. 'if the profile has this item, we have already sent you a Welcome Back notice.
  747. 'but we still need to remind you to turn off your Out of Office agent          
  748.           If profile.HasItem("BackInOffice") Then
  749. 'we only want to send one reminder per day               
  750.                If Datevalue(profile.BackInOffice(0)) < CurrentDay Then
  751.                     maildoc.Subject = "Please disable your OutOfOffice agent"
  752.                     rtitem.AppendText("Please select Actions, Mail Tools, Out Of Office and click " & _
  753.                     "the button entitled ""I Have Returned To The Office"" to disable your Out of Office Agent.")
  754.                     profile.BackInOffice = Today
  755.                     profile.save True, True
  756.                     maildoc.Send(False)
  757.                End If
  758.           Else
  759.                maildoc.Subject = "Welcome Back!"
  760.                rtitem.AppendText("Please select Actions, Mail Tools, Out Of Office and click " & _
  761.                "the button entitled ""I Have Returned To The Office"" to disable your Out of Office Agent.")
  762.                rtitem.AddNewLine(2)
  763.                AlreadyNotified = profile.AlreadyNotified
  764.                If AlreadyNotified(0) <> "" Then
  765.                     rtitem.AppendText("While you were out, your Out of Office Agent " & _
  766.                     "notified the following people of your absence:")
  767.                     rtitem.AddNewLine(2)
  768.                     For i = 0 To Ubound(AlreadyNotified)
  769.                          Set nam = New NotesName(AlreadyNotified(i))
  770.                          rtitem.AppendText(nam.Abbreviated)
  771.                          rtitem.AddNewLine(1)
  772.                     Next
  773.                End If
  774.                maildoc.BackInOffice = True
  775.                profile.BackInOffice = Today
  776.                profile.save True, True
  777.                maildoc.Send(False)
  778.           End If
  779.           DoNotRun = True
  780.           Exit Sub
  781.      End If
  782.      
  783.      If CurrentDay >= FirstDay Then
  784. 'if the agent has been run before we want to remove the Notified list          
  785.           If profile.HasItem("BackInOffice") Then
  786.                profile.RemoveItem("BackInOffice")
  787.                profile.RemoveItem("AlreadyNotified")
  788.                profile.save True, True
  789.           End If
  790.      Else
  791. 'if today is ealier that FirstDayOut then we don't want to run the agent
  792.           DoNotRun = True
  793.           Exit Sub
  794.      End If
  795.      
  796.      If profile.HasItem("AlreadyNotified") Then
  797.           Set notifieditem = profile.GetFirstItem("AlreadyNotified")
  798.      Else
  799.           Set notifieditem = New NotesItem(profile, "AlreadyNotified", "")
  800.      End If
  801.      Set startdate = profile.GetFirstItem("dateFirstDayOut")
  802.      Set enddate = profile.GetFirstItem("dateFirstDayBack")
  803.      DaysOut = profile.DaysOut         
  804.      GeneralSubject = profile.GeneralSubject
  805.      GeneralMessage = Profile.GeneralMessage
  806.      SpecialSubject = profile.SpecialSubject
  807.      SpecialMessage = profile.SpecialMessage
  808.      SpecialPeople = profile.SpecialPeople
  809.      IgnorePeople = profile.IgnorePeople
  810.      
  811. End Sub
  812. '++LotusScript Development Environment:2:2:CheckName:1:8
  813. Sub CheckName
  814.      DoNotSend = False
  815.      
  816. 'If the email is from yourself, don't notify sender     
  817.      If Sender(0) = ProfileUser(0) Then
  818.           DoNotSend = True
  819.           Exit Sub          
  820.      End If
  821.      
  822. 'See if sender was already notified
  823.      AlreadyNotified = profile.AlreadyNotified     
  824.      Forall a In AlreadyNotified
  825.           If Sender(0) = a Then
  826.                DoNotSend = True
  827.                Exit Sub          
  828.           End If
  829.      End Forall
  830.      
  831. 'See if sender should be ignored
  832.      Forall i In IgnorePeople
  833.           If Sender(0) = i Then
  834.                DoNotSend = True
  835.                Exit Sub          
  836.           End If
  837.      End Forall
  838.      
  839. End Sub
  840. O=Lotus Notes
  841. O=Lotus Notes
  842. PURSAFO
  843. |.:#U
  844. O=Lotus Notes
  845. CN=Lotus Notes Template Development/O=Lotus Notes
  846. PURSAFO
  847. Fde!f^^
  848. $TITLE
  849. $AssistType
  850. $AssistLastRun
  851. $AssistDocCount
  852. $AssistFlags
  853. $AssistTrigger
  854. $AssistInfo
  855. $AssistQuery
  856. $AssistAction
  857. $AssistAction_Ex
  858. '++LotusScript Development Environment:2:5:(Options):0:74
  859. Option Public
  860. '++LotusScript Development Environment:2:5:(Forward):0:1
  861. Declare Sub Initialize
  862. Declare Sub ArchiveDocument
  863. Declare Sub ProcessDocuments
  864. Declare Sub Terminate
  865. '++LotusScript Development Environment:2:5:(Declarations):0:10
  866. %INCLUDE "lserr.lss"
  867. %INCLUDE "lsxbeerr.lss"
  868. %INCLUDE "lsconst.lss"
  869. Dim w As NotesUIWorkspace
  870. Dim s As NotesSession
  871. Dim sourcedb As NotesDatabase
  872. Dim archivedb As NotesDatabase
  873. Dim note As NotesDocument
  874. Dim newnote As NotesDocument
  875. Dim lognote As NotesDocument
  876. Dim profile As NotesDocument
  877. Dim documents As NotesDocumentCollection
  878. Dim responses As NotesDocumentCollection
  879. Dim view As NotesView
  880. Dim dtNow As NotesDateTime
  881. Dim dtExpired As NotesDateTime
  882. Dim dtDocument As NotesDateTime
  883. Dim dtCompare As NotesDateTime
  884. Dim item As NotesItem
  885. Dim rtitem As NotesRichTextItem
  886. Dim CurrentServer As String
  887. Dim ArchiveExpired As Variant
  888. Dim ExpiredLife As Variant
  889. Dim ArchiveInactive As Variant
  890. Dim DocumentLife As Variant
  891. Dim ArchivePath As Variant
  892. Dim ArchiveLog As Variant
  893. Dim IncludeDocLinks As Variant
  894. Dim Archive As Variant
  895. Dim ManualArchive As String
  896. Dim goAgain As Variant
  897. Dim DoNotRun As Variant
  898. '++LotusScript Development Environment:2:2:Initialize:1:10
  899. Sub Initialize
  900.      
  901. 'IF YOU CHANGE THIS AGENT - CHANGE *Periodic Archive* TO MATCH - THEY ARE NEARLY IDENTICAL
  902.      On Error Goto ErrorRoutine
  903.      On Error 4060 Goto ErrNoDBAccess        'this handles the case where a delegee was added after the creation of the archive database
  904.      On Error ErrObjectVariableNotSet Resume Next 
  905.      
  906.      Dim calprofile As NotesDocument
  907.      
  908.      Set s = New NotesSession
  909.      Set w = New NotesUIWorkspace
  910.      Set sourcedb = s.CurrentDatabase
  911.      Set view = sourcedb.GetView("Archiving")
  912.      key  = "Archive Profile"
  913.      Set profile = view.GetDocumentByKey(key)
  914.      
  915.      If profile Is Nothing Then
  916.           If Messagebox("You must set up an archive database before you can archive " &_
  917.           "selected documents.  Would you like to set up an archive database now?",_
  918.           MB_YesNo + MB_IconQuestion, "Archive") = IDYES Then
  919.                Call w.ComposeDocument("", "", "ArchiveProfile")
  920.           End If
  921.           DoNotRun = True
  922.           Exit Sub       
  923.      End If
  924.      
  925.      If Messagebox("Are you sure you want to move these documents to your archive database now?", _
  926.      MB_YesNo + MB_IconQuestion, "Archiving") = IDNo Then
  927.           Messagebox "No documents were archived.", MB_OK, "Archiving"
  928.           DoNotRun = True
  929.           Exit Sub
  930.      End If
  931.      
  932.      ArchivePath = profile.ArchivePath
  933.      ArchiveServer = Evaluate("@Name([Abbreviate]; ArchiveServer)", profile)
  934.      ArchiveLog = profile.ArchiveLog
  935.      IncludeDocLinks = profile.IncludeDocLinks
  936.      
  937.      Set dtNow = New NotesDateTime("")
  938.      dtNow.SetNow
  939.      
  940.      If ArchiveLog(0) = "Yes" Then
  941.           Set lognote = New NotesDocument(sourcedb)
  942.           Set rtitem = New NotesRichTextItem(lognote, "Body")
  943.           lognote.Form = "Archive Log"
  944.           lognote.ArchiveDate = dtNow.LSLocalTime
  945.           lognote.ProtectFromArchive = 1
  946.           lognote.ExcludeFromView = "D"
  947.           lognote.From = "Archiving"
  948.           Call lognote.ReplaceItemValue("_ViewIcon", 22)
  949.      End If
  950.      
  951.      On Error Resume Next     
  952.      Set archivedb = New NotesDatabase(ArchiveServer(0), ArchivePath(0))
  953.      If Err = 4060 Then Goto ErrNoDBAccess
  954.      
  955.      If archivedb.IsOpen = False Then
  956.           If ArchiveServer(0) = "" Then
  957.                ArchiveFile = ArchivePath(0)
  958.           Else
  959.                ArchiveFile = ArchiveServer(0) & "!!" & ArchivePath(0)
  960.           End If
  961.           Messagebox "The Archive agent was unable to open your archive file - " & ArchiveFile &_
  962.           ".  Please verify that the file exists.", MB_IconStop, "Archiving"
  963.           DoNotRun = True
  964.           Err = 0
  965.           Exit Sub
  966.      End If        
  967.      On Error Goto ErrorRoutine
  968.      
  969.      ProcessDocuments
  970.      
  971.      Exit Sub
  972.      
  973. ErrorRoutine:
  974.      Messagebox "Unexpected condition: " & Err & " - " & Error, 0, "Archiving"
  975.      Exit Sub
  976. ErrNoDBAccess:
  977.      Messagebox "You do not have access to the archive database. Please contact the database manager to have your name added to the Access Control List.",0,"Database Access Error"
  978.      Exit Sub
  979. End Sub
  980. '++LotusScript Development Environment:2:2:ArchiveDocument:1:8
  981. Sub ArchiveDocument
  982.      
  983.      On Error Goto ErrorRoutine
  984.      On Error ErrObjectVariableNotSet Resume Next 
  985.      Dim Purge As NotesItem
  986.      
  987. $Archived and DateArchived might already be present, if this agent failed the last
  988. time it was run.  None of these fields should be on the archived copy, because we 
  989. don't want the archive database to inadvertantly archive these documents (it can
  990. archive, but it needs to use its own criteria)
  991. %END REM
  992.      
  993. 'If this type of form does not get archived then exit
  994.      If note.HasItem("ProtectFromArchive") Then
  995.           ProtectFromArchive = note.ProtectFromArchive
  996.           If ProtectFromArchive(0) = 1 Then Exit Sub
  997.      End If
  998.      
  999. 'look for a $NoPurge item; if it is a date, compare it to today;
  1000.      If (note.HasItem("$NoPurge")) Then
  1001.           Set Purge = note.GetFirstItem("$NoPurge")
  1002.           If (Purge.Type = DATETIMES) Then
  1003.                Set enddt = New NotesDateTime("")
  1004.                Set enddt = Purge.DateTimeValue
  1005.                Set nowdt = New NotesDateTime("")
  1006.                nowdt.SetNow
  1007.                If enddt.TimeDifference(nowdt) >= 0 Then 
  1008.                     Messagebox |The document "| & note.Subject(0) & |" could not be archived since the end date has not passed.|,0,"Status"                     
  1009.                     Exit Sub
  1010.                End If
  1011.           Else
  1012.                Exit Sub
  1013.           End If
  1014.      End If
  1015.      
  1016.      If note.HasItem("$Archived") Then note.RemoveItem("$Archived")
  1017.      If note.HasItem("DateArchived") Then note.RemoveItem("DateArchived")
  1018.      If note.HasItem("ExpireDate") Then note.RemoveItem("ExpireDate")
  1019.      note.Save True, True
  1020.      Set newnote = note.CopyToDatabase(archivedb)
  1021.      note.DateArchived = dtNow.LSLocalTime    
  1022.      Call note.AppendItemValue("$Archived", True)
  1023.      note.Save True, True
  1024.      
  1025.      Subject = note.Subject
  1026.      CreatedBy = Evaluate("@Name([Abbreviate]; From)", note)
  1027.      CreatedDate = note.Created
  1028.      
  1029.      If ArchiveLog(0) = "Yes" Then
  1030.           If IncludeDocLinks(0) = "Yes" Then
  1031.                Call rtitem.AppendDocLink(newnote, "DocLink to " & Subject(0))
  1032.                Call rtitem.AddTab(1)
  1033.           End If
  1034.           Call rtitem.AppendText(Subject(0) & " (created by " & CreatedBy(0) & " on " &_
  1035.           Format(CreatedDate, "Short Date") & ")")
  1036.           Call rtitem.AddNewLine(2)
  1037.           lognote.Save True, True
  1038.      End If
  1039.      
  1040.      Exit Sub
  1041.      
  1042. ErrorRoutine:
  1043.      Messagebox "Unexpected condition: " & Err & " - " & Error
  1044.      Exit Sub
  1045.      
  1046. End Sub 
  1047. '++LotusScript Development Environment:2:2:ProcessDocuments:1:8
  1048. Sub ProcessDocuments
  1049.      
  1050.      On Error Resume Next
  1051.      
  1052.      Print "Archiving selected documents..."
  1053.      
  1054.      Set documents = sourcedb.UnprocessedDocuments
  1055.      If documents.Count > 0 Then
  1056.           For n = 1 To documents.Count
  1057.                Set note = documents.GetNthDocument(n)
  1058.                ArchiveDocument
  1059.           Next
  1060.      End If
  1061.      
  1062. 'Loop through all the documents that we archived and archive their reponses
  1063.      Do
  1064.           Set documents = sourcedb.Search("@IsAvailable($Archived)", Nothing, 0)
  1065.           goAgain = False
  1066.           For n = 1 To documents.count
  1067.                Set note = documents.GetNthDocument(n)
  1068.                Call note.RemoveItem("$Archived")              
  1069.                If Err = 0 Then
  1070.                     note.Save True, True
  1071.                     Set responses = note.Responses
  1072.                     If responses.Count > 0 Then
  1073.                          For i = 1 To responses.Count
  1074.                               Set note = responses.GetNthDocument(i)
  1075.                               If Not note.HasItem("$Archived") Then ArchiveDocument
  1076. 'Since we just archived a response, we have to loop back through in order to archive all of its reponses
  1077.                               goAgain = True
  1078.                          Next
  1079.                     End If
  1080.                Else
  1081.                     Err = 0
  1082.                End If
  1083.           Next
  1084.      Loop While goAgain
  1085.      
  1086. End Sub
  1087. '++LotusScript Development Environment:2:2:Terminate:1:10
  1088. Sub Terminate
  1089.      
  1090.      If DoNotRun Then Exit Sub
  1091.      
  1092.      On Error Goto ErrorRoutine
  1093.      On Error ErrObjectVariableNotSet Resume Next
  1094.      On Error lsERR_NOTES_CANTREMOVE Resume Next
  1095.      
  1096.      Set documents = sourcedb.Search("@IsAvailable(DateArchived)", Nothing, 0)
  1097.      ArchiveCount = documents.Count
  1098.      For n = 1 To ArchiveCount
  1099.           Set note = documents.GetNthDocument(n)         
  1100.           note.Remove(True)
  1101.      Next
  1102.      If Err = 4241 Then
  1103.           Err = 0
  1104.           Messagebox "The open document was copied to the archive database, but it could not be deleted.  " &_
  1105.           "Please delete it manually.", 0, "Could not delete"
  1106.      End If
  1107.      
  1108.      If ArchiveLog(0) = "" Then Exit Sub
  1109.      
  1110.      ArchiveTitle = archivedb.Title
  1111.      dtNow.SetNow
  1112.      If CurrentServer = "" Then CurrentServer = "Local"
  1113.      lognote.Subject = "Archive Log for " & Format(dtNow.LSLocalTime, "General Date")
  1114.      
  1115.      lognote.ArchiveTrailer = "Archive of " & ArchiveCount & " documents on server " & _
  1116.      CurrentServer & " from " & sourcedb.Title & " (" & sourcedb.FilePath & ") to " & ArchiveTitle & _
  1117.      " (" & ArchivePath(0) & ") completed sucessfully on " & _
  1118.      Format(dtNow.LSLocalTime, "Short Date") & " at " & _
  1119.      Format(dtNow.LSLocalTime, "Long Time") & "."
  1120.      lognote.Save True, True
  1121.      Call lognote.CopyToDatabase(archivedb)
  1122.      
  1123.      w.ViewRefresh
  1124.      
  1125.      If ArchiveCount = 1 Then
  1126.           Messagebox ArchiveCount & " document was archived.", MB_OK, "Archiving"
  1127.      Else
  1128.           Messagebox ArchiveCount & " documents were archived.", MB_OK, "Archiving"
  1129.      End If
  1130.      Print
  1131.      
  1132.      Exit Sub
  1133.      
  1134. ErrorRoutine:
  1135.      Messagebox "Unexpected condition: " & Err & " - " & Error
  1136.      Exit Sub
  1137.      
  1138. End Sub
  1139. W4Y4Y
  1140. YLZX[
  1141. h"h"8,
  1142. #H$T-
  1143. $H%8/
  1144. ($(&p/
  1145. $('d0
  1146. %h&<2
  1147. 'H)86
  1148. )h),8
  1149. (*(*,:
  1150. *h/<;
  1151. ,h1p=
  1152. ,H.P>
  1153. -h.H@
  1154. H/H0@C
  1155. /H6 D
  1156. 1H1pF
  1157. 1h3TG
  1158. 2h2HH
  1159. (2(2xH
  1160. H4H4pL
  1161. 5(6HO
  1162. h6(7$P
  1163. 7(;\R
  1164. (8(9PS
  1165. 8H90T
  1166. H9H=XU
  1167. 9h:<V
  1168. <(=TZ
  1169. =(>L]
  1170. >h?p_
  1171. ?(AHa
  1172. @HA(c
  1173. A(Bdc
  1174. (C(C`g
  1175. C(D8h
  1176. E(G j
  1177. (EhE4j
  1178. EhF|j
  1179. F(Hlk
  1180. G(Ill
  1181. H(J(m
  1182. HHIHm
  1183. IhR0n
  1184. KhL8o
  1185. LHM8q
  1186. M(MTq
  1187. MXR$r
  1188. ]$[$[
  1189. YD]dY
  1190. hZp{a
  1191. N+4N$
  1192. V}$w#
  1193. N,LW}
  1194. S,PX#
  1195. QQ|X}
  1196. Q,dY}\
  1197. Q,dY}
  1198. ZKTY-(Z#
  1199. NLZT\Z'
  1200. ZShZ^LZ%
  1201. Q,dY}
  1202. Q,dY}H
  1203. Q,dY}h
  1204. Q,$[}
  1205. P-t\#
  1206. QKXR,
  1207. QKXR,
  1208. Q-D]#
  1209. ^x]48
  1210. QKhR,
  1211. Q,dY}
  1212. ]KXR-
  1213. QKXR,
  1214. S,PX#
  1215. QQtZ}
  1216. QQ<^}l
  1217. P-H^#
  1218. N,l^#
  1219. ArchiveServer
  1220. O=Lotus Notes
  1221. O=Lotus Notes
  1222. PURSAFO
  1223. |.:#U
  1224. O=Lotus Notes
  1225. CN=Lotus Notes Template Development/O=Lotus Notes
  1226. PURSAFO
  1227. Fde!f^^
  1228. k6!;GC(
  1229. On00WR
  1230. $TITLE
  1231. $AssistType
  1232. $AssistLastRun
  1233. $AssistDocCount
  1234. $AssistFlags
  1235. $AssistTrigger
  1236. $AssistInfo
  1237. $AssistQuery
  1238. $AssistAction
  1239. $AssistAction_Ex
  1240. Started running agent 'Mail Tools\Delegation Profile...' on 05/23/96 09:30:02 AM
  1241. 0 document(s) were modified by formula
  1242. Done running agent 'Mail Tools\Delegation Profile...' on 05/23/96 09:30:03 AM
  1243. Mail Tools\Delegation Profile... | EditDelegationProfile
  1244. E4fL3
  1245. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  1246. ##########################################################
  1247. Mail Tools\Choose Letterhead... | Select Letterhead303
  1248. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  1249. ##################
  1250. Mail Tools\Out of Office... | Out Of Office303
  1251. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  1252. ##########################
  1253. Empty Trash | Empty Trash303
  1254. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  1255. Mail Tools\Add Sender to Address Book | AddToAddressBook
  1256. E4fL3
  1257. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################
  1258. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  1259. ##########################################################
  1260. CN=Ryan Jansen/O=Irise:\notefile\mail45.ntf
  1261. CN=Ryan Jansen/O=Iris
  1262. ########################################################
  1263. _Archiving|Archiving
  1264. Archive Logs
  1265. Archive Profile
  1266.     6S9S11S
  1267. $75$74Subject$Conflict
  1268. Archive
  1269.     L1S5S1(
  1270. $75$74Subject
  1271. Archive Logs
  1272. Archive Profile
  1273.     6S9S11S$74
  1274. SubjectDescription&
  1275. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################
  1276. ##########################################################
  1277. ##########################################################
  1278. '++LotusScript Development Environment:2:5:(Options):0:74
  1279. Option Public
  1280. '++LotusScript Development Environment:2:5:(Forward):0:1
  1281. Declare Sub Initialize
  1282. Declare Sub GetAclEntries
  1283. '++LotusScript Development Environment:2:5:(Declarations):0:10
  1284. Dim acl As NotesACL
  1285. Dim aclentry As NotesAclEntry
  1286. Dim nextaclentry As NotesAclEntry
  1287. Dim profile As NotesDocument
  1288. Dim db As NotesDatabase
  1289. Dim session As NotesSession
  1290. Dim ws As NotesUIWorkspace
  1291. Dim ReadCal() As Variant
  1292. Dim WriteCal() As Variant
  1293. Dim ReadMail() As Variant
  1294. Dim WriteMail() As Variant
  1295. Dim EditMail() As Variant
  1296. Dim DeleteMail() As Variant
  1297. Dim OtherUsers() As Variant
  1298. '++LotusScript Development Environment:2:2:Initialize:1:10
  1299. Sub Initialize
  1300.      
  1301.      Set session = New NotesSession
  1302.      Set db = session.CurrentDatabase
  1303.      Set acl = db.ACL
  1304.      Set profile = db.GetProfileDocument("DelegationProfile")
  1305.      Set ws = New NotesUIWorkspace
  1306.      
  1307.      GetAclEntries
  1308.      
  1309.      profile.save True, True, True
  1310.      
  1311.      ws.EditProfile("DelegationProfile")
  1312.      
  1313. End Sub
  1314. '++LotusScript Development Environment:2:2:GetAclEntries:1:8
  1315. Sub GetAclEntries
  1316.      
  1317.      profile.ReadCalendar = ""
  1318.      profile.WriteCalendar = ""
  1319.      profile.ReadMail = ""
  1320.      profile.WriteMail = ""
  1321.      profile.EditMail = ""
  1322.      profile.DeleteMail = ""
  1323.      
  1324.      Redim ReadCal(0)
  1325.      Redim WriteCal(0)
  1326.      Redim ReadMail(0)
  1327.      Redim WriteMail(0)
  1328.      Redim EditMail(0)
  1329.      Redim DeleteMail(0)
  1330.      Redim OtherUsers(0)
  1331.      
  1332.      Set aclentry = acl.GetFirstEntry
  1333.      Do Until aclentry Is Nothing
  1334.           Select Case aclentry.Level
  1335.           Case ACLLEVEL_NOACCESS
  1336.                If aclentry.Name = "-Default-" Then
  1337.                     If aclentry.IsPublicReader Then
  1338.                          profile.PublicRead = "1"
  1339.                     Else
  1340.                          profile.PublicRead = ""
  1341.                     End If
  1342.                     If aclentry.IsPublicWriter Then
  1343.                          profile.PublicWrite = "1"
  1344.                     Else
  1345.                          profile.PublicWrite = ""
  1346.                     End If
  1347.                Else
  1348.                     If aclentry.IsPublicReader Or aclentry.IsPublicWriter Then
  1349.                          If aclentry.IsPublicReader Then
  1350.                               x = Ubound(ReadCal)
  1351.                               ReadCal(x) = aclentry.Name
  1352.                               Redim Preserve ReadCal(x + 1)
  1353.                          End If
  1354.                          Gosub CheckPublicWriter
  1355.                     Else
  1356. 'These are other NoAccess people and we don't want to change them
  1357.                          x = Ubound(OtherUsers)
  1358.                          OtherUsers(x) = aclentry.Name
  1359.                          Redim Preserve OtherUsers(x + 1)
  1360.                     End If
  1361.                End If
  1362.           Case ACLLEVEL_READER
  1363.                x = Ubound(ReadMail)
  1364.                ReadMail(x) = aclentry.Name
  1365.                Redim Preserve ReadMail(x + 1)
  1366.                Gosub CheckPublicWriter
  1367.           Case ACLLEVEL_AUTHOR
  1368.                If aclentry.CanCreateDocuments Then
  1369.                     x = Ubound(WriteMail)
  1370.                     WriteMail(x) = aclentry.Name
  1371.                     Redim Preserve WriteMail(x + 1)
  1372.                End If
  1373.                If aclentry.CanDeleteDocuments Then
  1374.                     x = Ubound(DeleteMail)
  1375.                     DeleteMail(x) = aclentry.Name
  1376.                     Redim Preserve DeleteMail(x + 1)
  1377.                End If
  1378.                Gosub CheckPublicWriter
  1379.           Case ACLLEVEL_EDITOR
  1380.                x = Ubound(EditMail)
  1381.                EditMail(x) = aclentry.Name
  1382.                Redim Preserve EditMail(x + 1)
  1383.                If aclentry.CanDeleteDocuments Then
  1384.                     x = Ubound(DeleteMail)
  1385.                     DeleteMail(x) = aclentry.Name
  1386.                     Redim Preserve DeleteMail(x + 1)
  1387.                End If
  1388.                Gosub CheckPublicWriter
  1389.           Case Else
  1390. 'These are Manager and Designers and we don't want to change them
  1391.                x = Ubound(OtherUsers)
  1392.                OtherUsers(x) = aclentry.Name
  1393.                Redim Preserve OtherUsers(x + 1)
  1394.           End Select
  1395.           Set aclentry = acl.GetNextEntry(aclentry)
  1396.      Loop
  1397.      
  1398.      profile.ReadCalendar = ReadCal
  1399.      profile.WriteCalendar = WriteCal
  1400.      profile.ReadMail = ReadMail
  1401.      profile.WriteMail = WriteMail
  1402.      profile.EditMail = EditMail
  1403.      profile.DeleteMail = DeleteMail
  1404.      
  1405.      Exit Sub
  1406.      
  1407. CheckPublicWriter:
  1408.      If aclentry.IsPublicWriter Then
  1409.           x = Ubound(WriteCal)
  1410.           WriteCal(x) = aclentry.Name
  1411.           Redim Preserve WriteCal(x + 1)
  1412.      End If
  1413.      Return
  1414.      
  1415. End Sub
  1416. O=Lotus Notes
  1417. O=Lotus Notes
  1418. PURSAFO
  1419. |.:#U
  1420. O=Lotus Notes
  1421. CN=Lotus Notes Template Development/O=Lotus Notes
  1422. PURSAFO
  1423. Fde!f^^
  1424. $TITLE
  1425. $AssistType
  1426. $AssistLastRun
  1427. $AssistDocCount
  1428. $AssistFlags
  1429. $AssistTrigger
  1430. $AssistInfo
  1431. $AssistQuery
  1432. $AssistAction
  1433. $AssistAction_Ex
  1434. GOLAu
  1435. Started running agent 'Mail Tools\Choose Letterhead... | Select Letterhead' on 03/11/97 09:55:15 AM
  1436. 1 document(s) were modified by formula
  1437. Done running agent 'Mail Tools\Choose Letterhead... | Select Letterhead' on 03/11/97 09:55:16 AM
  1438. (LetterHeadChooser)
  1439. O=Lotus Notes
  1440. O=Lotus Notes
  1441. PURSAFO
  1442. |.:#U
  1443. O=Lotus Notes
  1444. CN=Lotus Notes Template Development/O=Lotus Notes
  1445. PURSAFO
  1446. Fde!f^^
  1447. Y    KDM<
  1448. $TITLE
  1449. $Formula
  1450. $TYPE
  1451. $Operation
  1452. $Scan
  1453. OutOfOfficeProfile
  1454. O=Lotus Notes
  1455. O=Lotus Notes
  1456. PURSAFO
  1457. |.:#U
  1458. O=Lotus Notes
  1459. CN=Lotus Notes Template Development/O=Lotus Notes
  1460. PURSAFO
  1461. Fde!f^^
  1462. $TITLE
  1463. $Formula
  1464. $TYPE
  1465. $Operation
  1466. $Scan
  1467. DontShowTrash
  1468.     6S7S9S11S
  1469. O=Lotus Notes
  1470. O=Lotus Notes
  1471. PURSAFO
  1472. |.:#U
  1473. O=Lotus Notes
  1474. CN=Lotus Notes Template Development/O=Lotus Notes
  1475. PURSAFO
  1476. Fde!f^^
  1477. $TITLE
  1478. $Formula
  1479. $TYPE
  1480. $Operation
  1481. $Scan
  1482. '++LotusScript Development Environment:2:5:(Options):0:74
  1483. Option Public
  1484. '++LotusScript Development Environment:2:5:(Forward):0:1
  1485. Declare Sub Initialize
  1486. Declare Function IsInternetAddress(address As String) As Integer
  1487. Declare Function Deflate(s As String) As String
  1488. Declare Function FixFullName(full As String) As String
  1489. Declare Function GetInternetFullName(fromString As String) As String
  1490. Declare Function GetFirst(full As String) As String
  1491. Declare Function GetLast(full As String) As String
  1492. Declare Function Abbreviate(fromString As String, full As String) As String
  1493. Declare Function GetAttribute(theString As String, theAttribute As String) As String
  1494. '++LotusScript Development Environment:2:5:(Declarations):0:10
  1495. '-----------------------------------------------------------------------------
  1496. ' MsgBox parameters
  1497. '-----------------------------------------------------------------------------
  1498. Public Const MB_OK = 0                         ' OK button only
  1499. Public Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  1500. Public Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  1501. Public Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  1502. Public Const MB_YESNO = 4              ' Yes and No buttons
  1503. Public Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  1504. Public Const MB_ICONSTOP = 16          ' Critical message
  1505. Public Const MB_ICONQUESTION = 32      ' Warning query
  1506. Public Const MB_ICONEXCLAMATION = 48   ' Warning message
  1507. Public Const MB_ICONINFORMATION = 64   ' Information message
  1508. Public Const MB_APPLMODAL = 0         ' Application Modal Message Box
  1509. Public Const MB_DEFBUTTON1 = 0       ' First button is default
  1510. Public Const MB_DEFBUTTON2 = 256       ' Second button is default
  1511. Public Const MB_DEFBUTTON3 = 512       ' Third button is default
  1512. Public Const MB_SYSTEMMODAL = 4096     ' System Modal
  1513. '-----------------------------------------------------------------------------
  1514. ' MsgBox return values
  1515. '-----------------------------------------------------------------------------
  1516. Public Const IDOK = 1                  ' OK button pressed
  1517. Public Const IDCANCEL = 2              ' Cancel button pressed
  1518. Public Const IDABORT = 3               ' Abort button pressed
  1519. Public Const IDRETRY = 4               ' Retry button pressed
  1520. Public Const IDIGNORE = 5              ' Ignore button pressed
  1521. Public Const IDYES = 6                 ' Yes button pressed
  1522. Public Const IDNO = 7                  ' No button pressed
  1523. Const NOTES = "1" 
  1524. Const CCMAIL = "2"
  1525. Const INTERNET = "5"
  1526. Const X400 = "4"
  1527. '++LotusScript Development Environment:2:2:Initialize:1:10
  1528. Sub Initialize
  1529.      
  1530.      Dim session As New NotesSession 
  1531.      Dim db As NotesDatabase    
  1532.      Dim docCount, actualCount As Integer
  1533.      Dim noteList As NotesDocumentCollection
  1534.      
  1535.      AddressBook = session.GetEnvironmentString("NAMES", True)
  1536.      If AddressBook = "" Then AddressBook = "names.nsf"
  1537.      
  1538.      CommaLocation = Instr(AddressBook, ",")
  1539.      If CommaLocation > 0 Then AddressBook = Left(AddressBook, CommaLocation-1)
  1540.      Dim addressDb As New NotesDatabase( "", AddressBook )
  1541.      If Not addressDB.IsOpen Then
  1542.           Messagebox "Unable to locate your Name & Address Book.  Name not added.", MB_ICONSTOP, "Add Sender to Address Book"
  1543.           Exit Sub
  1544.      End If
  1545.      
  1546.      actualCount = 0
  1547.      
  1548.      Set db = session.CurrentDatabase
  1549.      Set noteList = db.UnprocessedDocuments
  1550.      
  1551.      docCount = noteList.Count
  1552.      If docCount > 1 Then
  1553.           Dim alreadyAdded List As String
  1554.      End If
  1555.      
  1556.      Dim i As Integer
  1557.      i = 0
  1558.      
  1559.      Dim note As NotesDocument
  1560.      
  1561.      Set note = noteList.GetFirstDocument
  1562.      
  1563.      Do While Not (note Is Nothing)
  1564.           
  1565.           i = i + 1
  1566.           Print "Processing document " + Str(i) + " of " + Str(docCount)
  1567.           
  1568.           Dim fromItem, domainItem As Variant
  1569.           
  1570.           fromItem = note.From
  1571.           domainItem = note.FromDomain
  1572.           
  1573.           Dim first, last, full As String
  1574.           Dim mailAddress As String
  1575.           
  1576.           Dim addressType As String
  1577.           Dim pos As Integer
  1578.           
  1579.           last = ""
  1580.           mailAddress = fromItem(0)
  1581.           addressType = ""
  1582.           
  1583.      ' Is it a cc:Mail address?
  1584.           pos = Instr(fromItem(0), " at ")
  1585.           If pos <> 0 Then
  1586.                addressType = CCMAIL
  1587.                full = Left(fromItem(0), pos - 1)
  1588.                Goto gotFullName
  1589.           End If
  1590.           
  1591.           ' Guess whether this is an internet address or and X.400/Notes address
  1592.           
  1593.           If IsInternetAddress(fromItem(0)) Then
  1594.                ' It's an Internet address
  1595.                full = GetInternetFullName(fromItem(0))
  1596.                addressType = INTERNET
  1597.           Else
  1598.                ' See if there are any slashes at all in the address
  1599.                pos = Instr(fromItem(0), "/")
  1600.                
  1601.                If pos = 0 Then
  1602.                     full = fromItem(0)
  1603.                     addressType = NOTES
  1604.                Else
  1605.                     
  1606.                    ' Check to see if this is a canonical name
  1607.                     full = GetAttribute(fromItem(0), "CN")   
  1608.                     
  1609.                    ' If there are no /P and /A attributes, guess that this is a Notes address
  1610.                     If pos = 0 Or (full <> "" And GetAttribute(fromItem(0), "/P") = "" And GetAttribute(fromItem(0), "/A") = "") Then
  1611.                    ' It's a Notes address
  1612.                          addressType = NOTES
  1613.                     Else
  1614.                          addressType = X400
  1615.                          first = GetAttribute(fromItem(0), "/G")
  1616.                          last = GetAttribute(fromItem(0), "/S")
  1617.                          
  1618.                ' try to get the common name, if it isn't there, make it from first and last name
  1619.                          full = GetAttribute(fromItem(0), "/CN")
  1620.                          If full = "" Then
  1621.                               If first <> "" Then
  1622.                                    full = first + " " + last
  1623.                               Else
  1624.                                    full = last
  1625.                               End If
  1626.                          End If
  1627.                     End If
  1628.                End If
  1629.           End If
  1630.           
  1631.           
  1632. gotFullName:
  1633.           
  1634.           ' if last is not empty then the name has already been parsed
  1635.           If last = "" Then
  1636.                full = Deflate(full)
  1637.                full = FixFullName(full)
  1638.                
  1639.                first = GetFirst(full)
  1640.                last = GetLast(full)
  1641.           End If ' last <> ""
  1642.           
  1643.           If addressType = NOTES Then
  1644.                full = fromItem(0)
  1645.                mailAddress = full
  1646.           End If
  1647.           
  1648.           ' If this person has already been added or it's you, skip it
  1649.           If Iselement(alreadyAdded(full)) Goto nextDocument
  1650.           
  1651.           Dim fullname As New notesname(full)               
  1652.           
  1653.           If Not addressDB.IsOpen Then Call addressDB.Open( "", AddressBook )
  1654.           If addressDB.IsOpen Then
  1655.                
  1656.                Dim view As NotesView
  1657.                
  1658.                Set view = addressDb.GetView("($People)")
  1659.                If view Is Nothing Then
  1660.                ' tell them you cannot check
  1661.                Else
  1662.                     Dim tempDoc As NotesDocument
  1663.                     Dim searchKeys As String
  1664.                     searchKeys = Left(last, 1)
  1665.                     Set tempDoc = view.GetDocumentByKey(searchKeys)
  1666.                     NameFound = False
  1667.                     Do Until tempdoc Is Nothing
  1668.                          If tempDoc.FullName(0) = fullname.Canonical Then
  1669.                               NameFound = True
  1670.                               Exit Do
  1671.                          Else
  1672.                               Set tempDoc = view.GetNextDocument(tempDoc)
  1673.                               If tempDoc Is Nothing Then Exit Do
  1674.                               If Left(tempDoc.LastName(0), 1) <> searchKeys Then Exit Do
  1675.                          End If
  1676.                     Loop                              
  1677.                     
  1678.                     If NameFound Then
  1679.                          ' Don't prompt if we are doing 10 people or more, chances are that this will be an unattended operation. Default to no.                              
  1680.                          If docCount > 10 Goto nextDocument
  1681.                          If Messagebox (first & " " & last + " is already in your personal address book. Are you sure you want to add this address?", MB_YESNO+MB_ICONQUESTION, _
  1682.                          "Name already exists") = IDNO Then
  1683.                               alreadyAdded(full) = "1'"
  1684.                               Goto nextDocument
  1685.                          End If
  1686.                          
  1687.                     End  If ' NameFound
  1688.                     
  1689.                End If ' not view is nothing
  1690.                Dim newnote As New NotesDocument(addressDB)
  1691.                newnote.Form = "Person"
  1692.                newnote.Type = "Person"
  1693.                newnote.FirstName = first
  1694.                newnote.LastName = last
  1695.                
  1696.                newnote.FullName = fullname.Canonical
  1697.                newnote.MailAddress = mailAddress
  1698.                
  1699.                If domainItem(0) <> "" Then
  1700.                     newnote.MailAddress = newnote.MailAddress(0)  + " @ " + domainItem(0)
  1701.                End If
  1702.                newnote.MailSystem = addressType
  1703.                
  1704.                'newnote.MailDomain = domainItem(0)
  1705.                'Select Case addressType
  1706.                'Case CCMAIL
  1707.                     'newNote.ccMailAddress = mailAddress
  1708.                     'newNote.ccMailDomain = domainItem(0)
  1709.                'Case INTERNET
  1710.                     'newNote.InternetAddress = mailAddress
  1711.                     'newNote.InternetDomain = domainItem(0)
  1712.                'Case X400
  1713.                     'newNote.X400Address = mailAddress
  1714.                     'newNote.X400Domain = domainItem(0)
  1715.                'End Select
  1716.                
  1717.                If newnote.save(True, True) Then
  1718.                ' If we are only doing one document, tell them who we added
  1719.                     If docCount = 1 Then Messagebox first & " " & last + " has been added to your personal address book.", MB_OK, "Name added"
  1720.                     actualCount = actualCount + 1
  1721.                     alreadyAdded(full) = "1"
  1722.                Else
  1723.                     Messagebox "Cannot save "+first & " " & last+" in personal address book " & AddressBook & ".", MB_ICONSTOP, "Name not added"
  1724.                     Exit Do
  1725.                End If
  1726.           Else ' addressDb.IsOpen
  1727.                Messagebox "Cannot open personal address book " & AddressBook & ".", MB_ICONSTOP, "Name not added"
  1728.                Exit Sub
  1729.           End If
  1730. nextDocument:
  1731.           Set note = noteList.GetNextDocument(note)
  1732.      Loop
  1733.      If docCount > 1 Then
  1734.           Dim tempString As String
  1735.           If actualCount = 1 Then tempString = " person was" Else tempString = " people were"
  1736.           Messagebox Str(actualCount) + tempString + " added to your personal address book.", MB_OK, "Names added"
  1737.      End If
  1738. End Sub
  1739. '++LotusScript Development Environment:2:1:IsInternetAddress:1:8
  1740. Function IsInternetAddress(address As String) As Integer
  1741.      ' Return 0 through n, depending on how sure we are this is an Internet address
  1742.      IsInternetAddress = 0
  1743.      If address Like "*@*[! ].[! ]*" Then IsInternetAddress = IsInternetAddress + 1
  1744. End Function
  1745. '++LotusScript Development Environment:2:1:Deflate:1:8
  1746. Function Deflate(s As String) As String
  1747.      ' Remove all excess spaces from the string s
  1748.      Dim newString As String
  1749.      newString = ""
  1750.      s = Trim(s)
  1751.      Do While s <> ""
  1752.           If Left(s, 1) <> " " Then
  1753.                newString = newString + Left(s, 1)
  1754.                s = Mid(s, 2)
  1755.           Else
  1756.                newString = newString + " "
  1757.                ' Eat all the spaces
  1758.                Do While Left(s, 1) = " "
  1759.                     s = Mid(s, 2)
  1760.                Loop
  1761.           End If
  1762.      Loop
  1763.      Deflate = newString    
  1764. End Function
  1765. '++LotusScript Development Environment:2:1:FixFullName:1:8
  1766. Function FixFullName(full As String) As String
  1767.      ' Put a name string in the format: FIRST [MIDDLE] LAST [, SUFFIX]
  1768.      ' Assume that the string has no excess spaces
  1769.      
  1770.      Dim after As String
  1771.      Dim pos As Integer
  1772.      
  1773.      pos = Instr(full, ",")
  1774.      If pos <> 0 Then
  1775.           after = Trim(Mid(full, pos + 1))
  1776.           ' Is the string after the comma not a last namesuffix?
  1777.           If Not (Lcase(after) Like "jr*,sr*, II*") Then
  1778.                full = Trim(Left(full, pos - 1))
  1779.                full = after + " " + full
  1780.           End If
  1781.      Else
  1782.           pos = Instr(full, ".")
  1783.           If pos <> 0 Then
  1784.                after = Trim(Mid(full,pos+1))
  1785.                full = Left$(full, pos-1) + " " + after
  1786.           Else
  1787.                pos = Instr(full, "_")
  1788.                If pos <> 0 Then
  1789.                     after = Trim(Mid(full,pos+1))
  1790.                     full = Left$(full,pos-1) + " " + after
  1791.                End If
  1792.           End If
  1793.      End If
  1794.      
  1795.      FixFullName = full
  1796.      
  1797. End Function
  1798. '++LotusScript Development Environment:2:1:GetInternetFullName:1:8
  1799. Function GetInternetFullName(fromString As String) As String
  1800.      Dim pos As Integer
  1801.      Dim full As String
  1802.      
  1803.      Const QUOTE = """"
  1804.      
  1805.      ' Look for parenthesis e.g. poleary@iris.com ("Peter O'Leary")
  1806.      pos = Instr(fromString, "(")
  1807.      If pos = 0 Then
  1808.           ' no parens, just get the username
  1809.           pos = Instr(fromString, "@")
  1810.           full = Trim(Left(fromString, pos - 1))
  1811.           pos = Instr(full, "<")
  1812.           If pos>0 Then
  1813.                If Trim(Left(full, pos-1)) <> "" Then 
  1814.                     full = Trim(Left(full, pos-1))
  1815.                Else
  1816.                     full = Right(full,Len(full)-1)
  1817.                End If
  1818.                
  1819.                If Left(full,1) = QUOTE And Right(full,1) = QUOTE Then
  1820.                     full = Right(full,Len(full)-1)
  1821.                     full = Left(full,Len(full)-1)
  1822.                End If
  1823.           End If
  1824.      Else
  1825.           full = Mid(fromString, pos + 1)
  1826.           
  1827.           ' If the string is quoted, get everything in the quotes
  1828.           If Left(full, 1) = """" Then
  1829.                full = Mid(full, 2)
  1830.                pos = Instr(full, """")
  1831.           Else
  1832.                pos = Instr(full, ")")
  1833.           End If
  1834.           
  1835.           full = Left(full, pos - 1)
  1836.      End If
  1837.      GetInternetFullName = full
  1838. End Function
  1839. '++LotusScript Development Environment:2:1:GetFirst:1:8
  1840. Function GetFirst(full As String) As String
  1841.      Dim spacePos As Integer
  1842.      spacePos = Instr(full, " ")
  1843.      If spacePos <> 0 Then
  1844.           GetFirst = Trim(Left(full, spacePos))
  1845.      Else
  1846.           GetFirst = ""
  1847.      End If
  1848. End Function
  1849. '++LotusScript Development Environment:2:1:GetLast:1:8
  1850. Function GetLast(full As String) As String
  1851.      
  1852.      ' Get the lastname from a string
  1853.      ' Assume that the string is already formated as: FIRST [MIDDLE] LAST [, SUFFIX]
  1854.      
  1855.      Dim spacePos As Integer
  1856.      
  1857.      ' If there is a comma, chop off everything after it
  1858.      spacePos = Instr(full, ",")
  1859.      If spacePos <> 0 Then
  1860.           full = Left(full, spacePos - 1)
  1861.      End If
  1862.      
  1863.      spacePos = Instr(full, " ")
  1864.      
  1865.      ' If there are no spaces, get the whole string
  1866.      If spacePos = 0 Then
  1867.           spacePos = 1
  1868.      Else
  1869.           ' Make sure we have the last space in the string, assume that there is only one space between words
  1870.           Dim nextSpace As Integer
  1871.           nextSpace = Instr(spacePos + 1, full," " )
  1872.           Do While nextSpace <> 0
  1873.                spacePos = nextSpace
  1874.                nextSpace = Instr(spacePos + 1, full," " )
  1875.           Loop
  1876.      End If
  1877.      
  1878.      Last = Trim(Mid(full, spacePos))     
  1879.      
  1880. 'if there are any / in the name, get what comes before it     
  1881.      spacePos = Instr(Last, "/")
  1882.      If spacePos > 0 Then
  1883.           Last = Trim(Left(Last, spacePos - 1))
  1884.      End If
  1885.      
  1886.      GetLast = Last
  1887.      
  1888. End Function
  1889. '++LotusScript Development Environment:2:1:Abbreviate:1:8
  1890. Function Abbreviate(fromString As String, full As String) As String
  1891.      Dim ou, o As String        
  1892.      ou = GetAttribute(fromString, "/OU")
  1893.      o = GetAttribute(fromString, "/O")
  1894.      
  1895.      If ou <> "" Then
  1896.           full = full + "/" + ou
  1897.      End If
  1898.      If o <> "" Then
  1899.           full = full + "/" + o
  1900.      End If
  1901.      
  1902.      Abbreviate = full
  1903. End Function
  1904. '++LotusScript Development Environment:2:1:GetAttribute:1:8
  1905. Function GetAttribute(theString As String, theAttribute As String) As String
  1906.      Dim startpos, endpos As Integer
  1907.      startpos = Instr(theString, theAttribute+"=")
  1908.      If (startpos<>0) Then
  1909.           startpos = startpos + Len(theAttribute+"=")
  1910.           endpos = Instr(startpos, theString, "/")
  1911.           If endpos = 0 Then
  1912.                endpos = Len(theString) + 1
  1913.           End If
  1914.           GetAttribute = Trim(Mid(theString, startpos, endpos - startpos))
  1915.      Else
  1916.           GetAttribute = ""
  1917.      End If
  1918. End Function
  1919. @    `    d
  1920. }|    #}
  1921. O=Lotus Notes
  1922. O=Lotus Notes
  1923. PURSAFO
  1924. |.:#U
  1925. O=Lotus Notes
  1926. CN=Lotus Notes Template Development/O=Lotus Notes
  1927. PURSAFO
  1928. Fde!f^^
  1929. $TITLE
  1930. $AssistType
  1931. $AssistLastRun
  1932. $AssistDocCount
  1933. $AssistFlags
  1934. $AssistTrigger
  1935. $AssistInfo
  1936. $AssistQuery
  1937. $AssistAction
  1938. $AssistAction_Ex
  1939. Times New Roman
  1940. Using Mail
  1941.  @  @@ @` @
  1942. @@ @@@@@`@@
  1943. `@ `@@`@``@
  1944.     Creating a Mail Message
  1945.     There are three simple forms for creating a new mail message:
  1946.     Memo 
  1947.     - Use this form to create a new message
  1948.     Reply 
  1949.     - Use this form to reply to a message that you have received. This form will work only when you have selected a document to reply to.
  1950.     Reply With History
  1951.      - This is
  1952.     similar to a Reply, except that a copy of the message being replied to will be automatically copied into your new message.
  1953.     Before you send a message you must fill in the following information:
  1954.      - The primary recipients of the message. The content of the message is directed to them or they must take action on this message.
  1955.      - Recipients who will receive a copy of the message, but are not usually required to take action on it.
  1956.     bcc:
  1957.      - Recipients who will receive a blind copy of this message.
  1958.     You can send a message by choosing the "Send" action.
  1959.     Calendaring and Scheduling
  1960.     This database can also be used to organize your time, keep a list of tasks and meetings, and create the following kinds of information to share with other Mail users:
  1961.     Calendar Entry - 
  1962.     Use the Calendar Entry form for both personal appointments and for scheduling meetings with people. Select the Invitation radio-button to schedule a meeting with others.  You can send meeting announcements, select Required and Optional attendees, and find free time slots for the people whom you invite.  
  1963.     Bookmark 
  1964.     - Use this form to send another Mail user a reference to a document. It is most useful when reading documents in a database that is shared with others on a server. For example, if you are reading a Discussion database and find a document that may be of use to someone else, creating a Bookmark message will allow that person to find the document very easily.
  1965.     Phone Message 
  1966.     - Use this form to take a message for another Mail user.
  1967.     Task 
  1968.     - Use this form to remind yourself of something that you need to do, or to ask another person to do something for you. If you send a Task to another Mail user, or to several users, they will be able to notify you when they have completed the Task. 
  1969.     A special view (see below) has been provided to help you organize your Tasks and Tasks that you have assigned to other people.
  1970.     A Calendar Profile will automatically be created for you with default settings.  The Calendar Profile lets you decide who can view your free time schedule as well as define personal Calendar settings.  Use Actions Calendar Tools Calendar Profile to change your Calendar Profile settings.
  1971.     Folders and Views
  1972.     The following views and folders are provided for you:
  1973. Inbox 
  1974.     Messages that have been sent to you by another Mail user will appear here.
  1975. Calendar - 
  1976.     This view looks like a desktop calendar.  Appointments you have scheduled will be displayed in two day, one week, two week, or one month calendar pages.
  1977.     Drafts - 
  1978.     Messages that you have created and saved, but have not yet sent, will appear here.
  1979.     Sent 
  1980.     - Messages will appear here if you after you have sent them. You can decide whether you want messages saved here automatically or whether you should be asked before a message is saved.
  1981.     Trash 
  1982.     - Messages that you have marked for deletion will appear here.
  1983.     Tasks 
  1984.     - Tasks that you have created for yourself and Tasks that you have assigned to other people will appear here. This view will also help you keep track of which Tasks have been completed and when.
  1985.     Meetings 
  1986.     - Invitations to meetings and responses that people have returned to you will appear here.
  1987.     In addition, you can create your own folders and views to help organize your Mail database.
  1988. O=Lotus Notes
  1989. O=Lotus Notes
  1990. PURSAFO
  1991. |.:#U
  1992. O=Lotus Notes
  1993. CN=Lotus Notes Template Development/O=Lotus Notes
  1994. PURSAFO
  1995. Fde!f^^
  1996. i.v~g
  1997. $INFO
  1998. $BODY
  1999. _Forward
  2000. Categori_zeK
  2001. Edit Document
  2002. _Move to Folder...
  2003. _Remove from Folder...
  2004. Setup Archive...L
  2005. ArchiveProfile
  2006. Server
  2007.     1S2S6S
  2008.     0R1S2S6S
  2009. Server
  2010.     0R7S8S11S13S14S15S16S
  2011. Archive NowK
  2012. Archive Profile
  2013.     1S2S
  2014. AllDocs
  2015. NoCache
  2016. ($Profiles)
  2017. ArchivePath
  2018.     0R1S2S8S10S12S14S
  2019. AllDocs
  2020. Error
  2021. You must specify a location for the archive database
  2022.     0R3S4S5S6S14S15S
  2023. AllDocs2
  2024. NoCache
  2025. ($Profiles)
  2026. ArchivePath
  2027. Archive Now
  2028. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  2029.     0RR1S2S12S14S16S18S28S30S34S
  2030. Archiving
  2031. Are you sure you want to move documents to the archive database now?
  2032.     0R6S8S11S13S
  2033. AlreadyArchived
  2034. MailArchived|
  2035. Archiving
  2036. Since this is the first time you have requested an archive, it may take several minutes.  Do you want to proceed?
  2037. Archiving
  2038. No documents were archived
  2039.     0RR1S2S8S9S11S13S19S21S24S26S32S34S
  2040. MailArchived
  2041.     0RR1S2S3S
  2042. Periodic Archive
  2043.     0R4S
  2044. Server
  2045.     1S2S6S
  2046.     0R1S2S6S
  2047. Server
  2048.     0R7S8S11S13S14S15S16S
  2049. Enable Scheduled Archivingf
  2050. AllDocs
  2051. Archiving
  2052. Archive Profile
  2053. Archive Now
  2054. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  2055.     1S2S10S12S14S16S20S26S28S32S
  2056. Periodic Archive
  2057.     0RR4S
  2058. Server
  2059.     1S2S6S
  2060.     0R1S2S6S
  2061. Periodic Archive
  2062. Server
  2063.     0R4S5R12S13S16S18S19S20S21S
  2064. Disable Scheduled ArchivingKf
  2065. AllDocs
  2066. Archiving
  2067. Archive Profile
  2068. Archive Now
  2069. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  2070.     1S2S10S12S14S16S20S26S28S32S
  2071. Periodic Archive
  2072.     0RR4S
  2073. Server
  2074.     1S2S6S
  2075.     0R1S2S6S
  2076. Periodic Archive
  2077. Server
  2078.     0R7S8R15S16S19S21S22S23S24S
  2079. Open Archive Db...'++LotusScript Development Environment:2:5:(Options):0:66
  2080. '++LotusScript Development Environment:2:5:(Forward):0:1
  2081. Declare Sub Click(Source As Button)
  2082. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2083. Dim s As NotesSession
  2084. Dim w As NotesUIWorkspace
  2085. Dim sourcedb As NotesDatabase
  2086. Dim view As NotesView
  2087. Dim profile As NotesDocument
  2088. Dim server As String
  2089. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2090. Private Sub BindEvents(Byval Objectname_ As String)
  2091.      Static Source As BUTTON
  2092.      Set Source = Bind(Objectname_)
  2093.      On Event Click From Source Call Click
  2094. End Sub
  2095. '++LotusScript Development Environment:2:2:Click:1:12
  2096. Sub Click(Source As Button)
  2097.      
  2098.      On Error Goto ErrorRoutine
  2099. '91 is Object Variable Not Set     
  2100.      On Error 91 Resume Next 
  2101. '4412 is the notes database does not exist     
  2102.      On Error 4412 Goto DatabaseNotExistError
  2103.      
  2104.      Set s = New NotesSession
  2105.      Set sourcedb = s.CurrentDatabase
  2106.      Set view = sourcedb.GetView("($Profiles)")
  2107.      key = "Archive Profile"
  2108.      Set profile = view.GetDocumentByKey(key)
  2109.      
  2110.      If profile Is Nothing Then
  2111.           Messagebox "There is no Archive Db for this database.", 0 + 64, "Archive"
  2112.           Exit Sub
  2113.      End If
  2114.      
  2115.      ArchivePath = profile.ArchivePath
  2116.      ArchiveServer = profile.ArchiveServer
  2117.      If (ArchivePath(0) = "") Then
  2118.           Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  2119.           Exit Sub              
  2120.      End If
  2121.      
  2122.      Set w = New NotesUIWorkspace
  2123.      
  2124.      Call w.OpenDatabase(ArchiveServer(0), ArchivePath(0), "", "", "1")
  2125.      
  2126.      Exit Sub
  2127.      
  2128. ErrorRoutine:
  2129.      Messagebox "Unexpected condition: " & Err & " - " & Error
  2130.      Exit Sub
  2131. DatabaseNotExistError:
  2132.      Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  2133.      Exit Sub     
  2134. End Sub
  2135. O=Lotus Notes
  2136. O=Lotus Notes
  2137. PURSAFO
  2138. |.:#U
  2139. O=Lotus Notes
  2140. CN=Lotus Notes Template Development/O=Lotus Notes
  2141. PURSAFO
  2142. Fde!f^^
  2143. ulSNh
  2144. (vE*/
  2145. $SCRIPTOBJ_11
  2146. $TITLE
  2147. $Index
  2148. $Formula
  2149. $FormulaClass
  2150. $VIEWFORMAT
  2151. $Comment
  2152. $ACTIONS
  2153. $SCRIPTOBJ_10
  2154. $ViewGlobalScript_O
  2155. Bouncy EarthStdNotesLtr1CU3A
  2156. Mary LambCN=Lotus Notes Template Development/O=Lotus Notes####################
  2157. D3F729BC2029D7188AE991E3D4201966CN=Michael Clark/O=Iris
  2158. (Personal Stationery)Personal Stationeryw
  2159. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################
  2160. (ProcessExistingDbDlg)1DCU
  2161. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################
  2162. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  2163. (Archive Log)Archive LogArchiveLog
  2164. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCDw###############################################
  2165. Reversed TealStdNotesLtr20CU3
  2166. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes@
  2167. ##########################################################
  2168. Pencil and GridStdNotesLtr16CU3
  2169. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  2170. ##########################################################
  2171. 1(AlarmDialog)DCU31
  2172. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################
  2173. Purple StairsStdNotesLtr18CU3
  2174. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########
  2175. Gray Gradient and LinesStdNotesLtr13CU3
  2176. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################################
  2177. $MoodsMoodsCU3
  2178. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################
  2179. (Delivery Options)DeliveryOptionsCDU31
  2180. CN=Don Hatch/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#
  2181. ##########################################################
  2182. ##########################################################
  2183. &Arial
  2184.  StdNotesLtr1
  2185. tmpDisplayFrom_Preview
  2186. tmpFrom
  2187. tmpDisplayDate_Preview
  2188. tmpDate
  2189. O=Lotus Notes
  2190. O=Lotus Notes
  2191. PURSAFO
  2192. |.:#U
  2193. O=Lotus Notes
  2194. CN=Lotus Notes Template Development/O=Lotus Notes
  2195. PURSAFO
  2196. Fde!f^^
  2197. &;p}L
  2198. $TITLE
  2199. $INFO
  2200. $$ScriptName
  2201. $BODY
  2202. Times New Roman
  2203. VersionOpt|
  2204.     6S7S9S14S
  2205. $VersionOpt
  2206.     0R1S2S3S
  2207. SavedOnce
  2208.     0R1S2S3S
  2209. PostedDate(
  2210.     0R1S2S3S
  2211. DeliveredDate
  2212.     0R1S2S3S
  2213. $AutoEditMode
  2214.     0R1S2S3S
  2215. MailSaveOptions
  2216.     0R1S2S3S
  2217. VersionOpt
  2218.     0R4S
  2219. Personal Stationery
  2220. Subject
  2221. Subject
  2222. Subject
  2223.     4S6S12S13S14S15S17S21S23S25S26S28S
  2224. '++LotusScript Development Environment:2:5:(Options):0:74
  2225. Option Public
  2226. Use "EmailProcessing"
  2227. Use "DocumentConversions"
  2228. '++LotusScript Development Environment:2:5:(Forward):0:1
  2229. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2230.  Personal Stationery'++LotusScript Development Environment:2:5:(Options):0:66
  2231. '++LotusScript Development Environment:2:5:(Forward):0:1
  2232. Declare Sub Postopen(Source As Notesuidocument)
  2233. Declare Sub Postmodechange(Source As Notesuidocument)
  2234. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  2235. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  2236. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2237. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2238. Private Sub BindEvents(Byval Objectname_ As String)
  2239.      Static Source As NOTESUIDOCUMENT
  2240.      Set Source = Bind(Objectname_)
  2241.      On Event Postopen From Source Call Postopen
  2242.      On Event Postmodechange From Source Call Postmodechange
  2243.      On Event Querysave From Source Call Querysave
  2244.      On Event Queryclose From Source Call Queryclose
  2245. End Sub
  2246. '++LotusScript Development Environment:2:2:Postopen:1:12
  2247. Sub Postopen(Source As Notesuidocument)
  2248.      
  2249.      Set ws = New NotesUIWorkSpace
  2250.      Set uidoc = source
  2251.      
  2252.      Call EmailOpen
  2253.      
  2254. End Sub
  2255. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  2256. Sub Postmodechange(Source As Notesuidocument)
  2257.      
  2258.      Call EmailModeChange
  2259.      
  2260. End Sub
  2261. '++LotusScript Development Environment:2:2:Querysave:1:12
  2262. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  2263.      
  2264.      Call EmailSave(Continue)
  2265.      
  2266. End Sub
  2267. '++LotusScript Development Environment:2:2:Queryclose:1:12
  2268. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  2269.      
  2270.      Call EmailClose(Continue)
  2271.      
  2272. End Sub
  2273.     Always Hidden: 
  2274. Principal
  2275. CalendarProfile
  2276. Owner
  2277.     1S2S3S7S
  2278. FromPerson memo is from.
  2279.     0S0E
  2280.     0S0E
  2281. Encrypt
  2282.     0S0E
  2283. DefaultMailSaveOptions
  2284. $KeepPrivate
  2285. $KeepPrivate
  2286. $KeepPrivate
  2287.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  2288. Header
  2289.     From:    
  2290. Principal
  2291. Principal
  2292. FromDomain
  2293. FromDomain
  2294. FromDomain
  2295. FromDomain
  2296.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  2297. FromName
  2298. Principal
  2299. Principal
  2300.     0RR1S2S9S11S15S
  2301. FromStops
  2302.     0R1S2S6S
  2303. FromName
  2304. FromStops
  2305. FromStops
  2306. FromStops
  2307.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  2308.      on 
  2309. PostedDateh
  2310. PostedDate
  2311.     7S9S
  2312. tmpDisplayDateTime/date memo was created or mailed.
  2313. ReplyDate
  2314. ReplyTo
  2315.     1S2S3S4S5S6S
  2316. Please respond
  2317. ReplyTo
  2318. ReplyTo
  2319. ReplyDate
  2320. ReplyDate
  2321.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  2322. $HideMailHeader
  2323. Principal
  2324. Principal
  2325. Principal
  2326. Principal
  2327. Principal
  2328.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  2329.     Sent by:    
  2330. FromDomain
  2331. FromDomain
  2332. FromDomain
  2333. FromDomain
  2334.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  2335. FromName
  2336.     0RR1S2S6S
  2337. FromStops
  2338.     0R1S2S6S
  2339. FromName
  2340. FromStops
  2341. FromStops
  2342. FromStops
  2343.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  2344. SendTo
  2345. CopyTo
  2346.   cc:  
  2347. CopyTo
  2348.     1S2S8S13S14S2E17S18S21S22S28S31S
  2349.     To:    
  2350. SendTo}
  2351.     0S0E
  2352. SendTo^
  2353. No names found to send mail.{
  2354.     1S6S7S8S9S11S16S
  2355. SendToList of primary people to send memo.
  2356.     cc:    
  2357. CopyTo}
  2358.     0S0E
  2359. CopyToList of people to send a copy of the memo.
  2360. DeliveredDate
  2361. BlindCopyTo
  2362. (bcc: 
  2363. BlindCopyTo
  2364.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  2365.     bcc:    
  2366. BlindCopyTo
  2367.     0S0E
  2368. BlindCopyToList of undisclosed people to send copies of memo.
  2369.     Subject:    
  2370. PhoneCaller
  2371. Phone Call: 
  2372. PhoneCaller
  2373. Subject
  2374.     7S8S9S11SSubjectSubject of memo.
  2375. $HideMailHeader
  2376.     0S0E
  2377. $HideMailHeader
  2378. Moods
  2379. PostedDate
  2380. SenderTag
  2381. Moods
  2382.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  2383. Footer
  2384. Edit Document
  2385. ForwardK 
  2386.     0S0E
  2387. New Memo.
  2388.     0S0E
  2389. Delete 
  2390.     0S0E
  2391. _Move To Folder...
  2392. Delivery Information...Kz
  2393. DeliveryInfo
  2394. Delivery Information
  2395.     4S5S6S7S8S9S10S12S
  2396. _Forward
  2397. Reply
  2398. Reply
  2399.     0S0E
  2400. Reply With History
  2401. Reply with History
  2402. This document is truncated.
  2403.     4S8S10S13S
  2404. Reply with history
  2405. Address... 
  2406.     0S0E
  2407. PostedDateh
  2408.     5S6S7S8S
  2409. Close
  2410.     0S0E
  2411. IsMailStationeryh
  2412. PostedDateh
  2413.     6S7S
  2414. Save As Draft
  2415. tmpAction
  2416. SaveAsDraft
  2417.     1S2S3S
  2418. IsMailStationeryh
  2419. PostedDateh
  2420.     4S5S
  2421. Save and File
  2422.     7S9S
  2423. tmpAction
  2424. SaveAndFile
  2425.     0R1S2S3S
  2426. IsMailStationeryh
  2427. PostedDateY
  2428. PostedDateh
  2429.     4S5S9S10S16S17S18S19S
  2430. PromptValue
  2431. DefaultMailSaveOptions
  2432. Save when sent
  2433. Do you wish to save a copy of this Memo?
  2434. DefaultMailSaveOptions
  2435.     1S2S5S6S8S14S17S
  2436. SaveOptions
  2437. PromptValue
  2438. SaveOptions
  2439. PromptValue
  2440.     0RR1S2S5S6S9S14S
  2441. tmpAction
  2442. DefaultMailSaveOptions
  2443. Mailing
  2444.     0RR1S2S3S6S7S9S11S
  2445. MailOptions
  2446.     0R1S2S3S
  2447.     0R7S9S
  2448. tmpAction
  2449. SaveOptions
  2450. SendAndFile
  2451.     0RR1S2S3S6S7S9S11S
  2452.     0R7S9S
  2453. PostedDateh
  2454. IsMailStationeryh
  2455.     5S6S7S8S10S11S
  2456. Send And File...
  2457. tmpAction
  2458. DefaultMailSaveOptions
  2459. Mailing
  2460.     1S2S3S6S7S9S11S
  2461. MailOptions
  2462.     0R1S2S3S
  2463.     0RR7S9S
  2464. tmpAction
  2465. SendAndFile
  2466.     0RR1S2S3S
  2467.     0R7S9S
  2468.     0R7S9S
  2469. PostedDateh
  2470. IsMailStationeryh
  2471.     5S6S7S8S10S11S
  2472. Delivery Options...K
  2473. DeliveryOptions
  2474. Delivery Options
  2475.     4S8S
  2476. _ViewIcon
  2477. SenderTag
  2478. SenderTag
  2479. SenderTag
  2480. SenderTag
  2481. SenderTag
  2482. SenderTag
  2483. SenderTag
  2484. SenderTag
  2485. SenderTag
  2486. SenderTag
  2487. SenderTag
  2488.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  2489. PostedDateh
  2490.     5S6S7S8S
  2491. Special Options...6
  2492. ReplyDate
  2493. ReplyDate
  2494.     1S2S3S
  2495. ReplyTo
  2496. ReplyTo
  2497.     0R1S2S3S
  2498. (Advanced Options)
  2499. Special Options
  2500.     0R6S10S13S15S
  2501. tmpDisplayReplyInfo
  2502. Please respond
  2503. ReplyTo
  2504. ReplyTo
  2505. ReplyDate
  2506. ReplyDate
  2507.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  2508. DueDateTime
  2509. ReplyDate
  2510. ReplyDate
  2511.     0R1S2S3S6S7S9S11S
  2512. PostedDateh
  2513.     5S6S7S8S
  2514. Save As Stationery...
  2515. tmpAction
  2516. SaveAsStationery
  2517.     1S2S3S
  2518. IsMailStationeryh
  2519.     0S0E
  2520. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  2521. '++LotusScript Development Environment:2:5:(Forward):0:1
  2522. Declare Sub Click(Source As Button)
  2523. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2524. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2525. Private Sub BindEvents(Byval Objectname_ As String)
  2526.      Static Source As BUTTON
  2527.      Set Source = Bind(Objectname_)
  2528.      On Event Click From Source Call Click
  2529. End Sub
  2530. '++LotusScript Development Environment:2:2:Click:1:12
  2531. Sub Click(Source As Button)
  2532.      Call CreateNewDoc(NEW_MEMO)
  2533. End Sub
  2534. tmpNewDoc
  2535.     1S2S
  2536. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  2537. '++LotusScript Development Environment:2:5:(Forward):0:1
  2538. Declare Sub Click(Source As Button)
  2539. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2540. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2541. Private Sub BindEvents(Byval Objectname_ As String)
  2542.      Static Source As BUTTON
  2543.      Set Source = Bind(Objectname_)
  2544.      On Event Click From Source Call Click
  2545. End Sub
  2546. '++LotusScript Development Environment:2:2:Click:1:12
  2547. Sub Click(Source As Button)
  2548.      Call CreateNewDoc(NEW_CALENDAR)
  2549. End Sub
  2550. tmpNewDoc
  2551.     1S2S
  2552. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  2553. '++LotusScript Development Environment:2:5:(Forward):0:1
  2554. Declare Sub Click(Source As Button)
  2555. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2556. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2557. Private Sub BindEvents(Byval Objectname_ As String)
  2558.      Static Source As BUTTON
  2559.      Set Source = Bind(Objectname_)
  2560.      On Event Click From Source Call Click
  2561. End Sub
  2562. '++LotusScript Development Environment:2:2:Click:1:12
  2563. Sub Click(Source As Button)
  2564.      Call CreateNewDoc(NEW_TASK)
  2565. End Sub
  2566. tmpNewDoc
  2567.     1S2S
  2568. Copy into\New GroupK,
  2569. NewGroup
  2570.     0S0E
  2571. tmpNewDoc
  2572.     1S2S
  2573. _Remove From Folder...
  2574. Categori_zeK
  2575. SSend
  2576. O=Lotus Notes
  2577. O=Lotus Notes
  2578. PURSAFO
  2579. |.:#U
  2580. O=Lotus Notes
  2581. CN=Lotus Notes Template Development/O=Lotus Notes
  2582. PURSAFO
  2583. Fde!f^^
  2584. $$FormPostOpenAction
  2585. $TypeIcon
  2586. ExpireDate
  2587. ReplyDate
  2588. ComposedDate
  2589. $TITLE
  2590. $INFO
  2591. $WINDOWTITLE
  2592. $Script
  2593. $$Script_O
  2594. $$ScriptName
  2595. $$FormScript
  2596. $$$FormScript_O
  2597. $BODY
  2598. $ACTIONS
  2599. $SCRIPTOBJ_18
  2600. $SCRIPTOBJ_19
  2601. $SCRIPTOBJ_20
  2602. (ProcessExistingDbDlg)'++LotusScript Development Environment:2:5:(Options):0:66
  2603. '++LotusScript Development Environment:2:5:(Forward):0:1
  2604. Declare Sub Postopen(Source As Notesuidocument)
  2605. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2606. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2607. Private Sub BindEvents(Byval Objectname_ As String)
  2608.      Static Source As NOTESUIDOCUMENT
  2609.      Set Source = Bind(Objectname_)
  2610.      On Event Postopen From Source Call Postopen
  2611. End Sub
  2612. '++LotusScript Development Environment:2:2:Postopen:1:12
  2613. Sub Postopen(Source As Notesuidocument)
  2614.      source.RefreshHideFormulas
  2615. End Sub
  2616. DeleteOptions
  2617. Delete the original database|1
  2618.     Documents are archived:
  2619. ArchiveLocation
  2620. Local
  2621.     1S2S
  2622.     Archive database is on server:
  2623.     Archive file:
  2624. Local
  2625. ArchiveLocation
  2626. Locally | LocalOn Server | Server
  2627.     0S0E
  2628. ArchiveServer
  2629. ArchiveLocation
  2630. Local
  2631. ArchiveServer
  2632. ArchiveServer
  2633.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  2634. ArchiveServer
  2635. CurrentPath
  2636.     1S2S6S
  2637. CurrentFile
  2638. CurrentPath
  2639.     0R1S2S6S
  2640. FileOnly
  2641. CurrentPath
  2642. CurrentFile
  2643. Macintosh
  2644. CurrentPath
  2645. CurrentFile
  2646. CurrentPath
  2647. CurrentFile
  2648. CurrentFile
  2649.     0R1S2S8S11S15S18S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  2650. DirOnly
  2651. CurrentPath
  2652. CurrentFile
  2653. Macintosh
  2654. CurrentPath
  2655. CurrentFile
  2656. CurrentPath
  2657. CurrentFile
  2658.     0R1S2S8S11S15S17S18S20S21S22S23S24S28S31S35S37S38S40S41S42S43S44S48S51S55S57S58S60S
  2659. DirOnly
  2660. FileOnly"
  2661. CurrentPath
  2662.     0RR1S2S5S6S8S10S11S15S
  2663. ArchivePath
  2664. Please specify the filename of the archive database
  2665.     3S4S6S11SArchivePath
  2666.     After creating the new archive db:
  2667. servers
  2668. names.nsf
  2669. ($ServersLookup)
  2670.     1S2S
  2671. selectedserver
  2672. Server
  2673. Please select a server to create your archive database on.
  2674. ArchiveServer
  2675. servers
  2676.     0R1S2S
  2677. ArchiveServer
  2678. selectedServer
  2679.     0R1S2S3S
  2680. ?_?__
  2681. `!b`1
  2682. 7`^///?
  2683. ?b___
  2684. `bOOO
  2685. `<b!R
  2686. @If(@IsN
  2687. CopyOptions
  2688. Copy documents from the original archive to the new one|1
  2689. O=Lotus Notes
  2690. O=Lotus Notes
  2691. PURSAFO
  2692. |.:#U
  2693. O=Lotus Notes
  2694. CN=Lotus Notes Template Development/O=Lotus Notes
  2695. PURSAFO
  2696. Fde!f^^
  2697. $TITLE
  2698. $INFO
  2699. $$Script_O
  2700. $$ScriptName
  2701. $$FormScript
  2702. $$$FormScript_O
  2703. $BODY
  2704. $PublicAccess
  2705. Archive Log
  2706. Times New Roman
  2707.  ArchiveLog
  2708. $MessageType
  2709. %12-/H
  2710. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  2711. WC9iB.xC-iF8wH8jT>zR<rd?
  2712. 2L3;FK=Dj=C:FQ8Qp<b
  2713. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  2714. Archive Log 
  2715. LogCount
  2716. LogTotal
  2717.  for 
  2718. ArchiveDate
  2719. ArchiveTrailer
  2720. ArchiveTrailer
  2721.     Hidden:  
  2722. Archive Log for 
  2723. ArchiveDate
  2724.     1S2S
  2725. Subject
  2726. (Archive)
  2727. Categories
  2728. Close
  2729.     0S0E
  2730. Categori_ze
  2731. _Edit Document
  2732. Send Docu_ment
  2733. _Forward
  2734. _Move to Folder...
  2735. _Remove from Folder
  2736. O=Lotus Notes
  2737. O=Lotus Notes
  2738. PURSAFO
  2739. |.:#U
  2740. O=Lotus Notes
  2741. CN=Lotus Notes Template Development/O=Lotus Notes
  2742. PURSAFO
  2743. Fde!f^^
  2744. $6).%MS
  2745. DocLife
  2746. $ManualArchivers_O
  2747. ObsoleteLife
  2748. DocumentLife
  2749. $TITLE
  2750. $INFO
  2751. $WINDOWTITLE
  2752. $$Script_O
  2753. $$ScriptName
  2754. ArchiveDate
  2755. $BODY
  2756. $ACTIONS
  2757. &Arial
  2758.  StdNotesLtr20
  2759. tmpDisplayFrom_Previewb
  2760.     2S3S
  2761. TMPFROM
  2762. tmpDisplayDate_Preview
  2763. tmpDate
  2764. O=Lotus Notes
  2765. O=Lotus Notes
  2766. PURSAFO
  2767. |.:#U
  2768. O=Lotus Notes
  2769. CN=Lotus Notes Template Development/O=Lotus Notes
  2770. PURSAFO
  2771. Fde!f^^
  2772. $TITLE
  2773. $INFO
  2774. $Header
  2775. $$ScriptName
  2776. $BODY
  2777. &Arial
  2778.  StdNotesLtr16
  2779. tmpDisplayFrom_Preview
  2780. tmpFrom
  2781. tmpDisplayDate_Preview
  2782. tmpDate
  2783. O=Lotus Notes
  2784. O=Lotus Notes
  2785. PURSAFO
  2786. |.:#U
  2787. O=Lotus Notes
  2788. CN=Lotus Notes Template Development/O=Lotus Notes
  2789. PURSAFO
  2790. Fde!f^^
  2791. $TITLE
  2792. $INFO
  2793. $Header
  2794. $$ScriptName
  2795. $BODY
  2796. '++LotusScript Development Environment:2:5:(Options):0:74
  2797. Option Public
  2798. '++LotusScript Development Environment:2:5:(Forward):0:1
  2799. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2800. Dim AlarmDt As NotesDateTime
  2801. (AlarmDialog)
  2802. tmpBeforeOrAfter
  2803. AppointmentType
  2804.     3S4S5S6S7S8S9S10S
  2805.     Date:
  2806. $AlarmTimeh
  2807. $AlarmTimeK
  2808.     0S0E
  2809. AutoSetAdjust
  2810. AppointmentType
  2811. CalendarProfile
  2812. AppointmentLead
  2813. AppointmentType
  2814. CalendarProfile
  2815. AnniversaryLead
  2816. AppointmentType
  2817. CalendarProfile
  2818. EventLead
  2819. AppointmentType
  2820. CalendarProfile
  2821. ReminderLead
  2822.     0RR1S2S5S6S10S13S14S17S18S19S20S21S28R29S30S31S32S39S40S41S42S43S50S
  2823. AutoNewAdjust
  2824. AutoSetAdjust
  2825. AutoSetAdjust
  2826. AppointmentType
  2827. AppointmentType
  2828.     0RR1S2S5S6S7S8S10S11S12S18S19S20S23S24S26S
  2829. AppointmentType
  2830. StartDateTime
  2831. AutoNewAdjust
  2832. AppointmentType
  2833. StartDateTime
  2834. AutoNewAdjust
  2835. StartDateTime
  2836.     0RR10R33R39R62RtmpAlarmOnDate
  2837. StartDateTime
  2838. StartDateTime
  2839.     When:
  2840. AppointmentType
  2841.     1S2S3S4S5S6S
  2842. $AlarmTimeh
  2843. $AlarmOffseth
  2844. $AlarmOffset
  2845.     20S21S23S
  2846. AppointmentType
  2847.     0R3S4S5S6S8S10StmpBeforeOrAfter
  2848. Before|1After|2On|3
  2849. tmpBeforeOrAfter
  2850. AppointmentType
  2851.     3S4S5S6S7S8S9S10S
  2852. AutoLead
  2853. CalendarProfile
  2854. AppointmentLead
  2855.     1S2S5S6S
  2856. $AlarmOffset[
  2857. $AlarmOffset
  2858. AutoLead
  2859. AutoLead
  2860.     0R1S2S9S14S15S16S17S18S
  2861. Init[
  2862. Init$
  2863.     0R7S10S11S13S15S16S18S21StmpAlarmOffset
  2864.     Minutes
  2865.     Alarm Message:
  2866. $AlarmDescription
  2867. Subject
  2868. $AlarmDescription
  2869.     3S4S6S8S
  2870. $AlarmDescription
  2871. tmpAlarmOff
  2872. Turn Alarm Off|1
  2873. $AlarmTimeh
  2874. $AlarmTimeL
  2875.     0S0E
  2876. AutoSetAdjust
  2877. AppointmentType
  2878. CalendarProfile
  2879. AppointmentLead
  2880. AppointmentType
  2881. CalendarProfile
  2882. AnniversaryLead
  2883. AppointmentType
  2884. CalendarProfile
  2885. EventLead
  2886. AppointmentType
  2887. CalendarProfile
  2888. ReminderLead
  2889.     0RR1S2S5S6S10S13S14S17S18S19S20S21S28R29S30S31S32S39S40S41S42S43S50S
  2890. AutoNewAdjust
  2891. AutoSetAdjust
  2892. AutoSetAdjust
  2893. AppointmentType
  2894. AppointmentType
  2895.     0RR1S2S5S6S7S8S10S11S12S18S19S20S23S24S26S
  2896. AppointmentType
  2897. StartDateTime
  2898. AutoNewAdjust
  2899. AppointmentType
  2900. StartDateTime
  2901. AutoNewAdjust
  2902. StartDateTime
  2903.     0RR10R33R39R62RtmpAlarmOnTime
  2904.     Time:
  2905. AppointmentType
  2906.     1S2S3S4S
  2907.     Set Alarm On:
  2908. O=Lotus Notes
  2909. O=Lotus Notes
  2910. PURSAFO
  2911. |.:#U
  2912. O=Lotus Notes
  2913. CN=Lotus Notes Template Development/O=Lotus Notes
  2914. PURSAFO
  2915. Fde!f^^
  2916. jXVlubA
  2917. $AlarmOffest
  2918. tmpAlarmOffest
  2919. $Alarm
  2920. AlarmTime
  2921. $AlarmTime
  2922. AlarmOn
  2923. AlarmOnTime
  2924. $AlarmOffset
  2925. $FormPublicAccess
  2926. $TITLE
  2927. $INFO
  2928. $Script
  2929. $$Script_O
  2930. $$ScriptName
  2931. tmpAlarmOnDate
  2932. tmpAlarmOffset
  2933. tmpAlarmOnTime
  2934. $BODY
  2935. $PublicAccess
  2936. &Arial
  2937.  StdNotesLtr18
  2938. tmpDisplayFrom_Preview
  2939. tmpFrom
  2940. tmpDisplayDate_Preview
  2941. tmpDate
  2942. O=Lotus Notes
  2943. O=Lotus Notes
  2944. PURSAFO
  2945. |.:#U
  2946. O=Lotus Notes
  2947. CN=Lotus Notes Template Development/O=Lotus Notes
  2948. PURSAFO
  2949. Fde!f^^
  2950. $TITLE
  2951. $INFO
  2952. $$ScriptName
  2953. $BODY
  2954. &Arial
  2955.  StdNotesLtr13
  2956.                                 
  2957. tmpDisplayFrom_Preview
  2958. tmpFrom
  2959.                                 
  2960. tmpDisplayDate_Preview
  2961. tmpDate
  2962.                                 
  2963. O=Lotus Notes
  2964. O=Lotus Notes
  2965. PURSAFO
  2966. |.:#U
  2967. O=Lotus Notes
  2968. CN=Lotus Notes Template Development/O=Lotus Notes
  2969. PURSAFO
  2970. Fde!f^^
  2971. $TITLE
  2972. $INFO
  2973. $Header
  2974. $$ScriptName
  2975. $BODY
  2976.  Moods
  2977.     Always Hidden 
  2978. SenderTag
  2979. SenderTag
  2980. SenderTag
  2981.     1S2S3S4S5S6S
  2982. SenderTag
  2983.     0S0E
  2984. @___@
  2985. <a>7`^
  2986. `!bb!R
  2987. SenderTag
  2988.     0S0E
  2989. @___@
  2990. <a>7`^
  2991. `!bb!R
  2992. SenderTag
  2993.     0S0E
  2994. @___@
  2995. <a>7`^
  2996. `!bb!R
  2997. SenderTag
  2998.     0S0E
  2999. @___@
  3000. <a>7`^
  3001. `!bb!R
  3002. SenderTag
  3003.     0S0E
  3004. @___@
  3005. <a>7`^
  3006. `!bb!R
  3007. SenderTag
  3008.     0S0E
  3009. %12-/H
  3010. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  3011. WC9iB.xC-iF8wH8jT>zR<rd?
  3012. 2L3;FK=Dj=C:FQ8Qp<b
  3013. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  3014. SenderTag
  3015.     0S0E
  3016. SenderTag
  3017.     0S0E
  3018. @___@
  3019. <a>7`^
  3020. `!bb!R
  3021. SenderTag
  3022.     0S0E
  3023. SenderTag
  3024.     0S0E
  3025. SenderTag
  3026. SenderTag
  3027. SenderTag
  3028.     4S5S8S9S10S11S
  3029. @___@
  3030. <a>7`^
  3031. `!bb!R
  3032. O=Lotus Notes
  3033. O=Lotus Notes
  3034. PURSAFO
  3035. |.:#U
  3036. O=Lotus Notes
  3037. CN=Lotus Notes Template Development/O=Lotus Notes
  3038. PURSAFO
  3039. Fde!f^^
  3040. $TITLE
  3041. $INFO
  3042. $$ScriptName
  3043. $BODY
  3044. &Arial
  3045.  StdNotesLtr5
  3046. tmpDisplayFrom_Preview
  3047. tmpFrom
  3048.                 
  3049. tmpDisplayDate_Preview
  3050. tmpDate
  3051. O=Lotus Notes
  3052. O=Lotus Notes
  3053. PURSAFO
  3054. |.:#U
  3055. O=Lotus Notes
  3056. CN=Lotus Notes Template Development/O=Lotus Notes
  3057. PURSAFO
  3058. Fde!f^^
  3059. $TITLE
  3060. $INFO
  3061. $$ScriptName
  3062. $BODY
  3063. 1(RepeatInfo)CDU31
  3064. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################
  3065. _Special\Serial Route MemoRoutew
  3066. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####
  3067. Squiggly LineStdNotesLtr23CU3
  3068. CN=Paul DiCristina/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  3069. ##########################################################
  3070. Geometry 1StdNotesLtr9CU3
  3071. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##
  3072. Triangle with Dots 2StdNotesLtr30CU3
  3073. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################################
  3074. (Advanced Options)UC31
  3075. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################
  3076. 1(RepeatForm)UC31
  3077. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###################
  3078. D3F729BC2029D7188AE991E3D4201966CN=Michael Clark/O=Iris
  3079. _Special\Phone MessagePhone Messagew
  3080. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################
  3081. Wild ConfettiStdNotesLtr32CU3
  3082. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########
  3083. !X%`P
  3084. First InitialStdNotesLtr6CU3
  3085. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######
  3086. Falling SpheresStdNotesLtr5CU3
  3087. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##
  3088. New Appointment
  3089. Subject
  3090. "Small Fonts
  3091. '++LotusScript Development Environment:2:5:(Options):0:74
  3092. Option Public 
  3093. '++LotusScript Development Environment:2:5:(Forward):0:1
  3094. Declare Sub Postopen(Source As Notesuidocument)
  3095. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  3096. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  3097. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3098. Declare Sub Postrecalc(Source As Notesuidocument)
  3099. Declare Sub Postmodechange(Source As Notesuidocument)
  3100. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  3101. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3102. '++LotusScript Development Environment:2:2:Postopen:1:8
  3103. Sub Postopen(Source As Notesuidocument)
  3104.      
  3105. End Sub
  3106. '++LotusScript Development Environment:2:2:Querysave:1:8
  3107. Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  3108.      
  3109. End Sub
  3110. '++LotusScript Development Environment:2:2:Queryopen:1:8
  3111. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  3112.      
  3113. End Sub
  3114. '++LotusScript Development Environment:2:2:Queryclose:1:8
  3115. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3116.      
  3117. End Sub
  3118. '++LotusScript Development Environment:2:2:Postrecalc:1:8
  3119. Sub Postrecalc(Source As Notesuidocument)
  3120.      
  3121. End Sub
  3122. '++LotusScript Development Environment:2:2:Postmodechange:1:8
  3123. Sub Postmodechange(Source As Notesuidocument)
  3124.      
  3125. End Sub
  3126. '++LotusScript Development Environment:2:2:Querymodechange:1:8
  3127. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  3128.      
  3129. End Sub
  3130. (RepeatInfo)'++LotusScript Development Environment:2:5:(Options):0:66
  3131. '++LotusScript Development Environment:2:5:(Forward):0:1
  3132. Declare Sub Postopen(Source As Notesuidocument)
  3133. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  3134. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  3135. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3136. Declare Sub Postrecalc(Source As Notesuidocument)
  3137. Declare Sub Postmodechange(Source As Notesuidocument)
  3138. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  3139. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3140. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3141. Private Sub BindEvents(Byval Objectname_ As String)
  3142.      Static Source As NOTESUIDOCUMENT
  3143.      Set Source = Bind(Objectname_)
  3144.      On Event Postopen From Source Call Postopen
  3145.      On Event Querysave From Source Call Querysave
  3146.      On Event Queryopen From Source Call Queryopen
  3147.      On Event Queryclose From Source Call Queryclose
  3148.      On Event Postrecalc From Source Call Postrecalc
  3149.      On Event Postmodechange From Source Call Postmodechange
  3150.      On Event Querymodechange From Source Call Querymodechange
  3151. End Sub
  3152. '++LotusScript Development Environment:2:2:Postopen:1:12
  3153. Sub Postopen(Source As Notesuidocument)
  3154.      
  3155. End Sub
  3156. '++LotusScript Development Environment:2:2:Querysave:1:12
  3157. Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  3158.      
  3159. End Sub
  3160. '++LotusScript Development Environment:2:2:Queryopen:1:12
  3161. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  3162.      
  3163. End Sub
  3164. '++LotusScript Development Environment:2:2:Queryclose:1:12
  3165. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3166.      
  3167. End Sub
  3168. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  3169. Sub Postrecalc(Source As Notesuidocument)
  3170.      
  3171. End Sub
  3172. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  3173. Sub Postmodechange(Source As Notesuidocument)
  3174.      
  3175. End Sub
  3176. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  3177. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  3178.      
  3179. End Sub
  3180. tmpRealDate
  3181.     0S0E
  3182. Repeat Info
  3183. AppointmentType
  3184.     0S0E
  3185.     Detailed description:
  3186. AppointmentType
  3187.     1S2S
  3188. AppointmentType
  3189. RequiredAttendees
  3190.     1S2S3S4S5S6S
  3191.     Invitations have been sent to:    
  3192. RequiredAttendees
  3193.     0S0E
  3194. tmpSendTo
  3195. AppointmentType
  3196. OptionalAttendees
  3197.     1S2S3S4S8S9S
  3198.     Optional invitees:
  3199. OptionalAttendees
  3200.     0S0E
  3201. tmpCopyTo
  3202. AppointmentType
  3203.     1S2S3S4S5S6S
  3204.     Meeting location:    
  3205. tmpRoom
  3206. AppointmentType
  3207. RequiredResources
  3208.     1S2S3S4S5S6S
  3209.     Resources:    
  3210. Resources
  3211. RequiredResources
  3212.     0S0E
  3213. tmpResources
  3214. AppointmentType
  3215. chair
  3216.     1S2S3S4S5S6S
  3217.     Chairperson:    
  3218. Chair
  3219. tmpChairperson
  3220. AppointmentType
  3221. Principal
  3222.     1S2S3S4S5S6S7S8S
  3223.     Sent by:    
  3224. Principal
  3225. Principal
  3226.     3S4S
  3227. tmpSentBy
  3228. RepeatIDs
  3229.     0S0E
  3230. Repeating meeting information:
  3231. RepeatUnit
  3232.     1S2S
  3233.     This meeting repeats 
  3234. RepeatInterval
  3235. tmpRepeatInterval
  3236. every|1every 2nd|2every 3rd|3every 4th|4every 5th|5every 6th|6every 7th|7every 8th|8every 9th|9every 10th|10every 11th|11every 12th|12every 13th|13every 14th|14every 15th|15every 16th|16every 17th|17every 18th|18every 19th|19every 20th|20every 21st|21every 22nd|22every 23rd|23every 24th|24every 25th|25every 26th|26every 27th|27every 28th|28every 29th|29every 30th|30every 31st|31
  3237. RepeatUnit
  3238. tmpRepeatUnit
  3239. day|Dweek|Wmonth|MDmonth|MPyear|YDcustom|C
  3240. RepeatAdjust
  3241. tmpRepeatAdjust
  3242. RepeatUnit
  3243.  on Sunday|0
  3244.  on Monday|1
  3245.  on Tuesday|2
  3246.  on Wednesday|3
  3247.  on Thursday|4
  3248.  on Friday|5
  3249.  on Saturday|6
  3250. RepeatUnit
  3251.  on the 1st Sunday|1.0
  3252.  on the 1st Monday|1.1
  3253.  on the 1st Tuesday|1.2
  3254.  on the 1st Wednesday|1.3
  3255.  on the 1st Thursday|1.4
  3256.  on the 1st Friday|1.5
  3257.  on the 1st Saturday|1.6
  3258.  on the 2nd Sunday|2.0
  3259.  on the 2nd Monday|2.1
  3260.  on the 2nd Tuesday|2.2
  3261.  on the 2nd Wednesday|2.3
  3262.  on the 2nd Thursday|2.4
  3263.  on the 2nd Friday|2.5
  3264.  on the 2nd Saturday|2.6
  3265.  on the 3rd Sunday|3.0
  3266.  on the 3rd Monday|3.1
  3267.  on the 3rd Tuesday|3.2
  3268.  on the 3rd Wednesday|3.3
  3269.  on the 3rd Thursday|3.4
  3270.  on the 3rd Friday|3.5
  3271.  on the 3rd Saturday|3.6
  3272.  on the 4th Sunday|4.0
  3273.  on the 4th Monday|4.1
  3274.  on the 4th Tuesday|4.2
  3275.  on the 4th Wednesday|4.3
  3276.  on the 4th Thursday|4.4
  3277.  on the 4th Friday|4.5
  3278.  on the 4th Saturday|4.6
  3279.  on the Last Sunday|5.0
  3280.  on the Last Monday|5.1
  3281.  on the Last Tuesday|5.2
  3282.  on the Last Wednesday|5.3
  3283.  on the Last Thursday|5.4
  3284.  on the Last Friday|5.5
  3285.  on the Last Saturday|5.6
  3286. RepeatUnit
  3287.  on the 1st day|1
  3288.  on the 2nd day|2
  3289.  on the 3rd day|3
  3290.  on the 4th day|4
  3291.  on the 5th day|5
  3292.  on the 6th day|6
  3293.  on the 7th day|7
  3294.  on the 8th day|8
  3295.  on the 9th day|9
  3296.  on the 10th day|10
  3297.  on the 11th day|11
  3298.  on the 12th day|12
  3299.  on the 13th day|13
  3300.  on the 14th day|14
  3301.  on the 15th day|15
  3302.  on the 16th day|16
  3303.  on the 17th day|17
  3304.  on the 18th day|18
  3305.  on the 19th day|19
  3306.  on the 20th day|20
  3307.  on the 21st day|21
  3308.  on the 22nd day|22
  3309.  on the 23rd day|23
  3310.  on the 24th day|24
  3311.  on the 25th day|25
  3312.  on the 26th day|26
  3313.  on the 27th day|27
  3314.  on the 28th day|28
  3315.  on the 29th day|29
  3316.  on the 30th day|30
  3317.  on the 31st day|31
  3318.     3S4S6R8R10R12R14R16R18R20RS5E21S22S24R26R28R30R32R34R36R38R40R42R44R46R48R50R52R54R56R58R60R62R64R66R68R70R72R74R76R78R80R82R84R86R88R90R92R94RS5E95S96S98R100R102R104R106R108R110R112R114R116R118R120R122R124R126R128R130R132R134R136R138R140R142R144R146R148R150R152R154R156R158R160S
  3319.      starting on 
  3320. RepeatStartDate
  3321. tmpRepeatStartDate
  3322. RepeatHow
  3323. tmpRepeatHow
  3324. until|Ufor|F
  3325. RepeatFor
  3326. tmpRepeatUnit
  3327.     7S9S
  3328. RepeatHow
  3329. RepeatUntil
  3330. RepeatFor
  3331. RepeatForUnit
  3332. RepeatFor
  3333. RepeatForUnit
  3334. RepeatFor
  3335. RepeatForUnit
  3336. RepeatFor
  3337. month
  3338. RepeatForUnit
  3339. RepeatFor
  3340. RepeatFor
  3341. RepeatForUnit
  3342. RepeatFor
  3343. RepeatForUnit
  3344. weeks
  3345. RepeatFor
  3346. RepeatForUnit
  3347. months
  3348. RepeatFor
  3349. RepeatForUnit
  3350. years
  3351.     0R3S4S6S10S13S17S18S19S20S23S24S25S26S27S28S30S32S33S34S35S36S37S38S40S42S43S44S45S46S47S48S50S52S53S54S55S56S57S58S60S62S64S65S68S69S70S71S72S73S75S77S78S79S80S81S82S83S85S87S88S89S90S91S92S93S95S97S98S99S100S101S102S103S105S107S
  3352. tmpRepeatUntil
  3353. RepeatUnit
  3354.  (if the date occurs on a weekend the meeting 
  3355. RepeatWeekends
  3356. occurs anyway
  3357. RepeatWeekends
  3358. is moved to Friday
  3359. RepeatWeekends
  3360. is moved to Monday
  3361. RepeatWeekends
  3362. is moved to Nearest Weekday
  3363. RepeatWeekends
  3364. is deleted
  3365.     3S4S5S6S7S8S10S12S13S14R17S18S20S22S23S24S26S28S29S30S32S34S35S36S38S40S41S42S44S46S48S49S
  3366. tmpRepeatWeekends
  3367. RepeatIds
  3368.     0S0E
  3369.     Meeting Dates: 
  3370. RepeatDates
  3371. tmpRepeatDates
  3372. RepeatDates
  3373.     0S0E
  3374. O=Lotus Notes
  3375. O=Lotus Notes
  3376. PURSAFO
  3377. |.:#U
  3378. O=Lotus Notes
  3379. CN=Lotus Notes Template Development/O=Lotus Notes
  3380. PURSAFO
  3381. Fde!f^^
  3382. CompletedOn
  3383. EndDate
  3384. CalendarDate_Time___Start
  3385. CalendarDate_Time___End
  3386. CalendarDates
  3387. CalendarDate
  3388. RepeatDates
  3389. CalendarDateTime
  3390. EndDateTime
  3391. $NoPurge
  3392. StartTime
  3393. EndTime
  3394. StartEndTime
  3395. StartDateTime
  3396. $FormPublicAccess
  3397. $SCRIPTOBJ_23
  3398. Duration
  3399. StartDate
  3400. ReminderTime
  3401. TimeRange
  3402. _ViewIcon
  3403. $SCRIPTOBJ_6
  3404. $SCRIPTOBJ_8
  3405. $SCRIPTOBJ_9
  3406. $SCRIPTOBJ_11
  3407. $SCRIPTOBJ_13
  3408. $SCRIPTOBJ_21
  3409. $SCRIPTOBJ_22
  3410. $TITLE
  3411. $INFO
  3412. $WINDOWTITLE
  3413. $Script
  3414. $$Script_O
  3415. $$ScriptName
  3416. $$FormScript
  3417. $$$FormScript_O
  3418. $BODY
  3419. $PublicAccess
  3420.  DeliveryOptions'++LotusScript Development Environment:2:5:(Options):0:66
  3421. '++LotusScript Development Environment:2:5:(Forward):0:1
  3422. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3423. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3424. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3425. Private Sub BindEvents(Byval Objectname_ As String)
  3426.      Static Source As NOTESUIDOCUMENT
  3427.      Set Source = Bind(Objectname_)
  3428.      On Event Queryclose From Source Call Queryclose
  3429. End Sub
  3430. '++LotusScript Development Environment:2:2:Queryclose:1:12
  3431. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3432.      SenderTag = source.document.tmpSenderTag(0)
  3433.      If  SenderTag <> "" And SenderTag <> "N" Then source.document.SenderTag = SenderTag
  3434. End Sub
  3435. Importance:
  3436. Delivery report:
  3437. Delivery priority:
  3438. SenderTag
  3439.     0S0E
  3440. Mood stamp:
  3441. Importance
  3442. Normal|2High|1Low|3
  3443. DeliveryReport
  3444. Only on failure|BConfirm delivery|CTrace entire path|TNone|N
  3445. SenderTag
  3446. tmpSenderTag
  3447. Normal|NPersonal|PConfidential|CPrivate|RThank You!|TFlame|FGood Job!|GJoke|JFYI|YQuestion|QReminder|M
  3448. DeliveryPriority
  3449. High|HNormal|NLow|L
  3450. SecureMail
  3451.     1S2S
  3452.     3S4S6S8S
  3453. Sign|1
  3454. ReturnReceipt
  3455. Return receipt|1
  3456. Encrypt
  3457. Encrypt
  3458.     3S4S6S8S
  3459. Encrypt
  3460. Encrypt|1
  3461. $KeepPrivate
  3462. Prevent copying|1
  3463. O=Lotus Notes
  3464. O=Lotus Notes
  3465. PURSAFO
  3466. |.:#U
  3467. O=Lotus Notes
  3468. CN=Lotus Notes Template Development/O=Lotus Notes
  3469. PURSAFO
  3470. Fde!f^^
  3471. ExpireDate
  3472. ReplyDate
  3473. $TITLE
  3474. $INFO
  3475. $$Script_O
  3476. $$ScriptName
  3477. $$FormScript
  3478. $$$FormScript_O
  3479. $BODY
  3480. $PublicAccess
  3481. Times New Roman
  3482. VersionOpt|
  3483.     6S7S9S14S
  3484. $VersionOpt
  3485.     0R1S2S3S
  3486. SavedOnce
  3487.     0R1S2S3S
  3488. PostedDate(
  3489.     0R1S2S3S
  3490. DeliveredDate
  3491.     0R1S2S3S
  3492. $AutoEditMode
  3493.     0R1S2S3S
  3494. MailSaveOptions
  3495.     0R1S2S3S
  3496. VersionOpt
  3497.     0R4S
  3498. New Serial Route Memo
  3499. Subject
  3500. Subject
  3501. Subject
  3502.     4S6S12S13S14S15S17S21S23S25S26S28S
  3503. '++LotusScript Development Environment:2:5:(Options):0:74
  3504. Option Public
  3505. '++LotusScript Development Environment:2:5:(Forward):0:1
  3506. Declare Sub InstantiateObjectVariables(source)
  3507. Declare Sub SaveDialog(SavedDoc)
  3508. Declare Function SendToNext(source) As Variant
  3509. Declare Sub CheckSecureMail
  3510. '++LotusScript Development Environment:2:5:(Declarations):0:10
  3511. %INCLUDE "lsconst.lss"
  3512. Dim w As NotesUIWorkspace
  3513. Dim s As NotesSession
  3514. Dim db As NotesDatabase
  3515. Dim note As NotesDocument
  3516. Dim newnote As NotesDocument
  3517. Dim Action As Variant
  3518. Dim DocWasSaved
  3519. Dim DoNotClose As Variant
  3520. Dim ContinueSave As Variant
  3521. Dim NewDocument As Variant
  3522. '++LotusScript Development Environment:2:2:InstantiateObjectVariables:1:8
  3523. Sub InstantiateObjectVariables(source)
  3524.      
  3525.      Set w = New NotesUIWorkspace
  3526.      Set s = New NotesSession
  3527.      Set db = s.CurrentDatabase
  3528.      Set note = source.document
  3529.      source.AutoReload = False
  3530.      
  3531. End Sub
  3532. '++LotusScript Development Environment:2:2:SaveDialog:1:8
  3533. Sub SaveDialog(SavedDoc)
  3534.      
  3535.      SavePrompt = Messagebox("Do you wish to save this " & SavedDoc & "?", MB_YESNOCANCEL, "Save " & SavedDoc) 
  3536.      Select Case SavePrompt
  3537.      Case IDCANCEL
  3538.           note.MailOptions = "0"
  3539.           DoNotClose = True
  3540.           ContinueSave = False
  3541.           Exit Sub
  3542.      Case IDNO
  3543.           note.SaveOptions = "0"
  3544.           Exit Sub
  3545.      Case IDYES
  3546.           note.SaveOptions = "1"
  3547.      End Select
  3548.      
  3549. End Sub
  3550. '++LotusScript Development Environment:2:1:SendToNext:1:8
  3551. Function SendToNext(source) As Variant
  3552.      
  3553.      CurrentUser = s.UserName
  3554.      Originator = note.Originator
  3555.      FromName = note.From
  3556.      RouteList = note.OriginalRouteList
  3557.      
  3558.      If Originator(0) = CurrentUser Then
  3559.           note.CurrentSendTo = 0
  3560.      Else
  3561.           CurrentSendTo = note.CurrentSendTo  
  3562.           note.CurrentSendTo = CurrentSendTo(0) + 1
  3563.      End If
  3564.      
  3565.      CurrentSendTo = note.CurrentSendTo
  3566.      ListMax = Ubound(RouteList)
  3567.      
  3568.      Select Case CurrentSendTo(0)
  3569.      Case Is < ListMax
  3570.           Remaining = ListMax - (CurrentSendTo(0) + 1)
  3571.           Redim tmpList(Remaining)
  3572.           x = 0
  3573.           For i = (CurrentSendTo(0) + 1) To ListMax
  3574.                tmpList(x) = RouteList(i)
  3575.                x = x + 1
  3576.           Next
  3577.           note.RemainingRouteList = tmpList
  3578.           note.SendTo = RouteList(CurrentSendTo(0))
  3579.      Case Is > ListMax
  3580.           note.RemainingRouteList = "None"
  3581.           note.SendTo = Originator(0)         
  3582.      Case ListMax
  3583.           note.RemainingRouteList = "None"         
  3584.           note.SendTo = RouteList(CurrentSendTo(0))
  3585.      End Select
  3586.      
  3587.      Notify = note.Notify
  3588.      If Notify(0) = "1" Then note.CopyTo = Originator(0)
  3589.      
  3590.      note.tmpAction = "Mailing"
  3591.      
  3592.      source.Reload
  3593.      
  3594.      On Error Goto NotSent    
  3595.      source.Send
  3596.      
  3597.      SendToNext = True
  3598.      Exit Function
  3599.      
  3600. NotSent:
  3601.      Messagebox "Unable to send this document.  Please try later.", MB_OK, "Send Error"
  3602.      SendToNext = False
  3603.      Exit Function
  3604.      
  3605. End Function
  3606. '++LotusScript Development Environment:2:2:CheckSecureMail:1:8
  3607. Sub CheckSecureMail
  3608.      
  3609. 'If SecureMail = 1 in notes.ini all mail gets Signed and Encrypted and the user is unable to override it
  3610.      note.SecureMail = Cstr(s.GetEnvironmentValue("SecureMail", True))
  3611.      If note.SecureMail(0) = "1" Then
  3612.           Call note.ReplaceItemValue("Sign", "1")
  3613.           Call note.ReplaceItemValue("Encrypt", "1")
  3614.      End If     
  3615.      
  3616. End Sub
  3617.  Route'++LotusScript Development Environment:2:5:(Options):0:66
  3618. '++LotusScript Development Environment:2:5:(Forward):0:1
  3619. Declare Sub Postopen(Source As Notesuidocument)
  3620. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  3621. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3622. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3623. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3624. Private Sub BindEvents(Byval Objectname_ As String)
  3625.      Static Source As NOTESUIDOCUMENT
  3626.      Set Source = Bind(Objectname_)
  3627.      On Event Postopen From Source Call Postopen
  3628.      On Event Querysave From Source Call Querysave
  3629.      On Event Queryclose From Source Call Queryclose
  3630. End Sub
  3631. '++LotusScript Development Environment:2:2:Postopen:1:12
  3632. Sub Postopen(Source As Notesuidocument)
  3633.      
  3634.      Dim cnName As Variant
  3635.      
  3636.      If source.InPreviewPane Then Exit Sub
  3637.      If note Is Nothing Then Call InstantiateObjectVariables(source)
  3638.      
  3639.      cnName = Evaluate("@Name([CN];@Username)")
  3640.      If (note.HasItem("PostedDate") Or note.HasItem("DeliveredDate")) And source.EditMode = False And  Instr(Lcase(note.SendTo(0)), Lcase(cnName(0))) = 0 Then
  3641.           Exit Sub  
  3642.      Else
  3643.           source.EditMode = True
  3644.      End If
  3645.      
  3646.      If note.From(0) = s.UserName Or source.IsNewDoc Then
  3647.           If Not(note.HasItem("SecureMail")) Then
  3648.                CheckSecureMail
  3649.                source.reload
  3650.           End If
  3651.      End If
  3652.      
  3653.      EditType = s.GetEnvironmentValue("MailStEd")
  3654.      If EditType = "5" Then 
  3655.           Call note.ReplaceItemValue("$VersionOpt", "6")
  3656.           note.tmpAction = "ConvertNewDoc"
  3657.           Call s.SetEnvironmentVar("MailStEd", "0")
  3658.           source.reload
  3659.           source.save
  3660.      End If
  3661.      
  3662. End Sub
  3663. '++LotusScript Development Environment:2:2:Querysave:1:12
  3664. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  3665.      
  3666.      If note Is Nothing Then Call InstantiateObjectVariables(source)
  3667.      
  3668.      note.RemoveItem("MailOptions")
  3669.      note.RemoveItem("SaveOptions")
  3670.      
  3671.      Action = note.tmpAction
  3672.      Select Case Action(0)
  3673.      Case "SaveAsDraft"
  3674.           note.MailOptions = "0"
  3675.           note.SaveOptions = "1"
  3676.      Case "SendAndFile"
  3677.           If SendToNext(source) = False Then Continue = False         
  3678.           note.SaveOptions = "1"
  3679.      Case "Send"
  3680.           If SendToNext(source) = False Then Continue = False         
  3681.           note.SaveOptions = "0"
  3682.      Case "Mailing"
  3683. 'We do not want to do anything if mailing is in process (like from the Send button)
  3684.      Case Else
  3685. 'If this is a message that was not written by you we do not present the mail dialog          
  3686.           If note.From(0) <> s.UserName Then
  3687.                note.MailOptions = "0"
  3688.                note.SaveOptions = "1"
  3689.                ContinueSave = True
  3690.                Call SaveDialog("Document")
  3691.                If ContinueSave = False Then
  3692.                     Continue = False
  3693.                     Exit Sub
  3694.                End If
  3695.           End If
  3696.      End Select
  3697.      
  3698.      note.RemoveItem("tmpAction")
  3699.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  3700.      
  3701.      source.Reload
  3702.      
  3703. End Sub
  3704. '++LotusScript Development Environment:2:2:Queryclose:1:12
  3705. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3706.      
  3707.      If DoNotClose Then
  3708.           DoNotClose = False
  3709.           Continue = False
  3710.      End If
  3711.      
  3712. End Sub
  3713. ,`    }<
  3714.     0S0E
  3715.     Always Hidden: 
  3716. Principal
  3717. CalendarProfile
  3718. Owner
  3719.     1S2S3S7S
  3720. Principal
  3721. Principal
  3722.     0R3S4S6S8S
  3723. FromPerson memo is from.
  3724. DefaultLogo
  3725. Gateway
  3726.     4S9S13S16S18SLogoPerson memo is from.
  3727.     0S0E
  3728.     0S0E
  3729. Encrypt
  3730.     0S0E
  3731. DefaultMailSaveOptions
  3732. origDomain
  3733. ReplyTo
  3734. ReplyDate
  3735. Please respond
  3736. ReplyTo
  3737. ReplyTo
  3738. ReplyDate
  3739. ReplyDate
  3740.     3S4S5S6S7S8S10S12S13S14S17S18S20S22S23S24S26S27S30S31S33S35S36S37S
  3741. tmpDisplayReplyInfo
  3742.     From:    
  3743. Principal
  3744. Originator
  3745. Originator
  3746.     1S2S
  3747.     Route to (individuals, not groups):
  3748. OriginalRouteList
  3749.     0S0E
  3750. CurrentUser
  3751.     1S2S6S
  3752. Originator
  3753. Originator
  3754.     0R1S2S6S
  3755. CurrentUser
  3756. Originator
  3757. OriginalRouteList
  3758. CurrentUser
  3759. You cannot include yourself in the Route List.{
  3760.     0R3S4S5S6S12S15S18S23S
  3761. OriginalRouteList
  3762.     Remaining route list:
  3763. RemainingRouteList
  3764. RemainingRouteList
  3765.     Current person in route:
  3766. SendTo
  3767. SendTo
  3768. EnRoute
  3769.     1S2S
  3770.     Subject:
  3771. SubjectSubject of memo.
  3772. $HideMailHeader
  3773.     0S0E
  3774. $HideMailHeader
  3775. Moods
  3776. PostedDate
  3777. SenderTag
  3778. Moods
  3779.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  3780. Notify
  3781. Notify sender at each stop | 1
  3782. Edit Document
  3783. PostedDateh
  3784.     4S5S6S7S
  3785. ForwardK 
  3786.     0S0E
  3787. New Memo.
  3788.     0S0E
  3789. Delete 
  3790.     0S0E
  3791. _Move To Folder...
  3792. Delivery Information...Kz
  3793. DeliveryInfo
  3794. Delivery Information
  3795.     4S5S6S7S8S9S10S12S
  3796. _Forward
  3797. Address...
  3798. NewNames
  3799.     1S2S4S5S
  3800. OriginalRouteList
  3801. OriginalRouteList
  3802. NewNames
  3803.     0R1S2S3S8S9S
  3804. PostedDateh
  3805.     5S6S7S8S
  3806. Close
  3807.     0S0E
  3808. PostedDateY
  3809.     0S0E
  3810. Save As Draft
  3811. tmpAction
  3812. SaveAsDraft
  3813.     1S2S3S
  3814. PostedDateh
  3815.     0S0E
  3816. Save and File
  3817.     7S9S
  3818. tmpAction
  3819. SaveAndFile
  3820.     0R1S2S3S
  3821. PostedDateY
  3822. PostedDateh
  3823.     4S5S11S12S13S14S
  3824. Send to Next PersonKl
  3825.     0R7S9S
  3826. PromptValue
  3827. DefaultMailSaveOptions
  3828. Save when sent
  3829. Do you wish to save a copy of this Memo?
  3830. DefaultMailSaveOptions
  3831.     0RR1S2S5S6S8S14S17S
  3832. SaveOptions
  3833. PromptValue
  3834. SaveOptions
  3835. PromptValue
  3836.     0R1S2S5S6S9S14S
  3837. tmpAction
  3838. SaveOptions
  3839. SendAndFile
  3840.     0RR1S2S3S6S7S9S11S
  3841.     0R7S9S
  3842. PostedDateh
  3843.     5S6S7S8S
  3844. Send And File...V
  3845.     4S11S13S19S
  3846.     0R7S9S
  3847.     0RR7S9S
  3848. tmpAction
  3849. SendAndFile
  3850.     0RR1S2S3S
  3851.     0R7S9S
  3852. PostedDateh
  3853.     5S6S7S8S
  3854. Delivery Options...K
  3855. DeliveryOptions
  3856. Delivery Options
  3857.     4S8S
  3858. _ViewIcon
  3859. SenderTag
  3860. SenderTag
  3861. SenderTag
  3862. SenderTag
  3863. SenderTag
  3864. SenderTag
  3865. SenderTag
  3866. SenderTag
  3867. SenderTag
  3868. SenderTag
  3869. SenderTag
  3870.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  3871. PostedDateh
  3872.     5S6S7S8S
  3873. Special Options...r
  3874. (Advanced Options)
  3875. Special Options
  3876.     4S8S
  3877. PostedDateh
  3878.     5S6S7S8S
  3879. _Remove From Folder...
  3880. Categori_zeK
  3881. SSend
  3882. O=Lotus Notes
  3883. O=Lotus Notes
  3884. PURSAFO
  3885. |.:#U
  3886. O=Lotus Notes
  3887. CN=Lotus Notes Template Development/O=Lotus Notes
  3888. PURSAFO
  3889. Fde!f^^
  3890.     ]M*.q
  3891. $$FormPostOpenAction
  3892. $TypeIcon
  3893. ExpireDate
  3894. ReplyDate
  3895. ComposedDate
  3896. $TITLE
  3897. $INFO
  3898. $WINDOWTITLE
  3899. $Script
  3900. $$Script_O
  3901. $$ScriptName
  3902. $$FormScript
  3903. $$$FormScript_O
  3904. $BODY
  3905. $ACTIONS
  3906. &Arial
  3907.  StdNotesLtr23
  3908. tmpDisplayFrom_Preview
  3909. tmpFrom
  3910. tmpDisplayDate_Preview
  3911. tmpDate
  3912. O=Lotus Notes
  3913. O=Lotus Notes
  3914. PURSAFO
  3915. |.:#U
  3916. O=Lotus Notes
  3917. CN=Lotus Notes Template Development/O=Lotus Notes
  3918. PURSAFO
  3919. Fde!f^^
  3920. $TITLE
  3921. $INFO
  3922. $Header
  3923. $$ScriptName
  3924. $BODY
  3925. &Arial
  3926.  StdNotesLtr9
  3927.                                 
  3928. tmpDisplayFrom_Preview
  3929. tmpFrom
  3930. tmpDisplayDate_Preview
  3931. tmpDate
  3932. O=Lotus Notes
  3933. O=Lotus Notes
  3934. PURSAFO
  3935. |.:#U
  3936. O=Lotus Notes
  3937. CN=Lotus Notes Template Development/O=Lotus Notes
  3938. PURSAFO
  3939. Fde!f^^
  3940. &Q`'ph
  3941. 5sx<w)
  3942. Q}.1xo
  3943. $TITLE
  3944. $INFO
  3945. $Header
  3946. $$ScriptName
  3947. $BODY
  3948. &Arial
  3949.  StdNotesLtr30
  3950. tmpDisplayFrom_Preview
  3951. tmpFrom
  3952. tmpDisplayDate_Preview
  3953. tmpDate
  3954. O=Lotus Notes
  3955. O=Lotus Notes
  3956. PURSAFO
  3957. |.:#U
  3958. O=Lotus Notes
  3959. CN=Lotus Notes Template Development/O=Lotus Notes
  3960. PURSAFO
  3961. Fde!f^^
  3962. $TITLE
  3963. $INFO
  3964. $Header
  3965. $$ScriptName
  3966. $BODY
  3967. (Advanced Options)
  3968.     Replies to this memo should be addressed to:
  3969. Stamp message with a "Please reply by" date:
  3970. Expiration date  (after this date it is safe to archive or delete this document):
  3971. ReplyTo
  3972.     1S2S3S
  3973. ExpireDate
  3974.     3S4S6S11S
  3975. pcDate
  3976. ExpireDatea
  3977.     0R1S2S
  3978. TodayInt,
  3979.     0R1S2S
  3980. ConNext
  3981. pcDate
  3982.     0R1S2S13S15S
  3983. AdjustAmount
  3984. pcDate
  3985. pcDate
  3986. pcDate
  3987. pcDate
  3988. pcDate
  3989. pcDate
  3990. pcDate
  3991.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  3992. AdjustAmount
  3993. pcDateW
  3994.     0R6S17S
  3995. AdjustAmount
  3996. ConNext
  3997. TodayInt#
  3998. ExpireDate
  3999. ReplyDate
  4000.     3S4S6S11S
  4001. pcDate
  4002. ReplyDate
  4003.     0R1S2S
  4004. TodayInt,
  4005.     0R1S2S
  4006. ConNext
  4007. pcDate
  4008.     0R1S2S13S15S
  4009. AdjustAmount
  4010. pcDate
  4011. pcDate
  4012. pcDate
  4013. pcDate
  4014. pcDate
  4015. pcDate
  4016. pcDate
  4017.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  4018. AdjustAmount
  4019. pcDateW
  4020.     0R6S17S
  4021. AdjustAmount
  4022. ConNext
  4023. TodayInt#
  4024. ReplyDate
  4025. ReplyTo
  4026. ReplyTo
  4027. MailFormat
  4028.     1S2S
  4029.     Encoding method for Internet Mail attachments:
  4030. MailFormat
  4031. SMTPEncoding
  4032.     3S4S6S8S
  4033. SMTPEncoding
  4034. Accept Administrator's default|MIME (Base64)|BQuoted Printable|QUUencode|U
  4035. MailFormat
  4036. Sending this Notes document to other Notes mail user(s) through the Internet|E
  4037. O=Lotus Notes
  4038. O=Lotus Notes
  4039. PURSAFO
  4040. |.:#U
  4041. O=Lotus Notes
  4042. CN=Lotus Notes Template Development/O=Lotus Notes
  4043. PURSAFO
  4044. Fde!f^^
  4045. "nQ7O
  4046. $TITLE
  4047. $INFO
  4048. $$Script_O
  4049. $$ScriptName
  4050. $BODY
  4051. $PublicAccess
  4052. &Arial
  4053.  StdNotesLtr4
  4054. tmpDisplayFrom_Preview
  4055. tmpFrom
  4056. tmpDisplayDate_Preview
  4057. tmpDate
  4058. O=Lotus Notes
  4059. O=Lotus Notes
  4060. PURSAFO
  4061. |.:#U
  4062. O=Lotus Notes
  4063. CN=Lotus Notes Template Development/O=Lotus Notes
  4064. PURSAFO
  4065. Fde!f^^
  4066. OMz{uh
  4067. $TITLE
  4068. $INFO
  4069. $$ScriptName
  4070. $BODY
  4071. O=Lotus Notes
  4072. O=Lotus Notes
  4073. PURSAFO
  4074. |.:#U
  4075. O=Lotus Notes
  4076. CN=Lotus Notes Template Development/O=Lotus Notes
  4077. PURSAFO
  4078. Fde!f^^
  4079. $ACLDigest
  4080. '++LotusScript Development Environment:2:5:(Options):0:66
  4081. Option Public
  4082. '++LotusScript Development Environment:2:5:(Forward):0:1
  4083. '++LotusScript Development Environment:2:5:(Declarations):0:10
  4084. Dim note1 As NotesDocument
  4085. Dim dt1 As NotesDateTime
  4086. Dim uidoc As NotesUIDocument
  4087. Dim OldStartDate As Variant
  4088. Dim OldRepeatUnit As String
  4089. Dim OldInterval As Integer
  4090. (RepeatForm)'++LotusScript Development Environment:2:5:(Options):0:66
  4091. '++LotusScript Development Environment:2:5:(Forward):0:1
  4092. Declare Sub Postopen(Source As Notesuidocument)
  4093. Declare Sub Postrecalc(Source As Notesuidocument)
  4094. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  4095. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4096. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4097. Private Sub BindEvents(Byval Objectname_ As String)
  4098.      Static Source As NOTESUIDOCUMENT
  4099.      Set Source = Bind(Objectname_)
  4100.      On Event Postopen From Source Call Postopen
  4101.      On Event Postrecalc From Source Call Postrecalc
  4102.      On Event Queryclose From Source Call Queryclose
  4103. End Sub
  4104. '++LotusScript Development Environment:2:2:Postopen:1:12
  4105. Sub Postopen(Source As Notesuidocument)
  4106.      Set uidoc = source
  4107.      Set note1 = source.document
  4108.      RepeatUnit = Left(note1.RepeatUnit(0), 1)
  4109.      OldRepeatUnit = RepeatUnit
  4110.      OldStartDate = note1.RepeatStartDate(0)
  4111.      note1.RepeatStartDate = note1.StartDate
  4112.      
  4113. 'we need to initialize OldInterval and OldRepeatUnit so postrecalc won't recalc values
  4114.      Select Case RepeatUnit
  4115.      Case "W"
  4116.           OldInterval = Cint(note1.RepeatInterval_W(0)) * 2
  4117.      Case "M"
  4118.           OldInterval = Cint(note1.RepeatInterval_MDMP(0)) * 2
  4119.      Case "D"
  4120.           OldInterval = Cint(note1.RepeatInterval_D(0)) * 2
  4121.      Case "Y"
  4122.           OldInterval = Cint(note1.RepeatInterval_YD(0)) * 2
  4123.      End Select
  4124.      
  4125. End Sub
  4126. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  4127. Sub Postrecalc(Source As Notesuidocument)
  4128.      
  4129. 'this recalcs RepeatUntil - but we only want to do it if RepeatUnit or RepeatInterval has changed
  4130.      
  4131.      Set dt1 = New NotesDateTime(note1.RepeatStartDate(0))
  4132.      RepeatUnit = Left(note1.RepeatUnit(0), 1)
  4133.      
  4134.      If RepeatUnit = "" Then
  4135.           note1.RepeatForUnit = "W"
  4136.           dt1.AdjustMonth(1)
  4137.      Elseif RepeatUnit = "C" Then
  4138.           If Not(Isdate(note1.RepeatAdjust_C(0))) Then note1.RepeatAdjust_C = note1.RepeatStartDate
  4139.      Else
  4140.           Select Case RepeatUnit
  4141.           Case "W"
  4142.                Interval = Cint(note1.RepeatInterval_W(0)) * 2
  4143.                Gosub CheckPreviousValues
  4144.                note1.RepeatForUnit = "W"
  4145.                note1.RepeatFor = Interval
  4146.                dt1.AdjustDay(Interval * 7)
  4147.           Case "M"
  4148.                Interval = Cint(note1.RepeatInterval_MDMP(0)) * 2
  4149.                Gosub CheckPreviousValues
  4150.                note1.RepeatForUnit = "M"
  4151.                note1.RepeatFor = Interval
  4152.                dt1.AdjustMonth(Interval)
  4153.           Case "D"
  4154.                Interval = Cint(note1.RepeatInterval_D(0)) * 2
  4155.                Gosub CheckPreviousValues
  4156.                note1.RepeatForUnit = "D"
  4157.                note1.RepeatFor = Interval               
  4158.                dt1.AdjustDay(Interval)
  4159.           Case "Y"
  4160.                Interval = Cint(note1.RepeatInterval_YD(0)) * 2
  4161.                Gosub CheckPreviousValues
  4162.                note1.RepeatForUnit = "Y"
  4163.                note1.RepeatFor = Interval                              
  4164.                dt1.AdjustYear(Interval)
  4165.           End Select
  4166.      End If
  4167.      
  4168.      OldInterval = Interval
  4169.      OldRepeatUnit = RepeatUnit
  4170.      OldStartDate = note1.RepeatStartDate(0)
  4171.      note1.RepeatUntil = dt1.LSLocalTime
  4172.      uidoc.reload
  4173.      
  4174.      Exit Sub
  4175.      
  4176. CheckPreviousValues:
  4177. 'This just checks to see if we should continue with the recalc
  4178.      If Interval = OldInterval And RepeatUnit = OldRepeatUnit And _
  4179.      note1.RepeatStartDate(0) = OldStartDate Then Exit Sub
  4180.      
  4181.      Return
  4182.      
  4183. End Sub
  4184. '++LotusScript Development Environment:2:2:Queryclose:1:12
  4185. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  4186.      
  4187.      If uidoc.DialogBoxCanceled Then Exit Sub
  4188.      
  4189.      Dim MessageText As String
  4190.      
  4191.      If note1.RepeatHow(0) = "U" Then
  4192.           StartDate = note1.RepeatStartDate(0)
  4193.           UntilDate = note1.RepeatUntil(0)
  4194.           If StartDate > UntilDate Then
  4195.                MessageText = "The Until Date must be greater than the Starting Date."
  4196.                FieldName = "RepeatUntil"
  4197.                Gosub ValidationFailed
  4198.           End If
  4199.      End If
  4200.      
  4201.      Select Case note1.RepeatUnit(0)
  4202.      Case "W"
  4203.           If note1.RepeatAdjust_W(0) = "" Then
  4204.                MessageText = "You must select at least one day to repeat."
  4205.                FieldName = "RepeatAdjust_W"
  4206.                Gosub ValidationFailed
  4207.           End If
  4208.           If note1.RepeatHow(0) = "F" Then
  4209.                Select Case note1.RepeatForUnit(0)
  4210.                Case "D" 
  4211.                     CompareInterval = Cint(note1.RepeatInterval_W(0)) * 7
  4212.                Case "W" 
  4213.                     CompareInterval = Cint(note1.RepeatInterval_W(0))
  4214.                Case "M" 
  4215.                     CompareInterval = Cint(note1.RepeatInterval_W(0)) / 4
  4216.                Case "Y" 
  4217.                     CompareInterval = 0
  4218.                End Select
  4219.           End If
  4220.      Case "MP", "MD"
  4221.           If note1.RepeatUnit(0) = "MP" And note1.RepeatAdjust_MP(0) = "" Then
  4222.                MessageText = "You must select at least one day to repeat."
  4223.                FieldName = "RepeatAdjust_MP"
  4224.                Gosub ValidationFailed
  4225.           End If
  4226.           If note1.RepeatUnit(0) = "MD" And note1.RepeatAdjust_MD(0) = "" Then
  4227.                MessageText = "You must select at least one day to repeat."
  4228.                FieldName = "RepeatAdjust_MD"
  4229.                Gosub ValidationFailed
  4230.           End If
  4231.           If note1.RepeatHow(0) = "F" Then
  4232.                Select Case note1.RepeatForUnit(0)
  4233.                Case "D" 
  4234.                     CompareInterval = Cint(note1.RepeatInterval_MDMP(0)) * 30
  4235.                Case "W" 
  4236.                     CompareInterval = Cint(note1.RepeatInterval_MDMP(0)) * 4
  4237.                Case "M" 
  4238.                     CompareInterval = Cint(note1.RepeatInterval_MDMP(0))
  4239.                Case "Y" 
  4240.                     CompareInterval = 0
  4241.                End Select
  4242.           End If
  4243.      Case "YD"
  4244.           If note1.RepeatHow(0) = "F" Then
  4245.                Select Case note1.RepeatForUnit(0)
  4246.                Case "D" 
  4247.                     CompareInterval = Cint(note1.RepeatInterval_YD(0)) * 365
  4248.                Case "W" 
  4249.                     CompareInterval = Cint(note1.RepeatInterval_YD(0)) * 52
  4250.                Case "M" 
  4251.                     CompareInterval = Cint(note1.RepeatInterval_YD(0)) * 12
  4252.                Case "Y" 
  4253.                     CompareInterval = Cint(note1.RepeatInterval_YD(0))
  4254.                End Select
  4255.           End If
  4256.      Case "C"
  4257.           If note1.RepeatAdjust_C(0) = "" Then
  4258.                MessageText = "You must enter at least one date to repeat."
  4259.                FieldName = "RepeatAdjust_C"
  4260.                Gosub ValidationFailed
  4261.           End If
  4262.      End Select
  4263.      
  4264.      If note1.RepeatHow(0) = "F" Then
  4265.           Select Case note1.RepeatForUnit(0)
  4266.           Case "D" 
  4267.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  4268.                MessageText = "The number of days is inconsistent with the frequency."
  4269.           Case "W" 
  4270.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  4271.                MessageText = "The number of weeks is inconsistent with the frequency."
  4272.           Case "M" 
  4273.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  4274.                MessageText = "The number of months is inconsistent with the frequency."
  4275.           Case "Y" 
  4276.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  4277.                MessageText = "The number of years is inconsistent with the frequency."
  4278.           End Select
  4279.           If MessageText <> "" Then
  4280.                FieldName = "RepeatFor"
  4281.                Gosub ValidationFailed
  4282.           End If
  4283.      End If
  4284.      
  4285.      Exit Sub
  4286.      
  4287. ValidationFailed:
  4288.      Messagebox MessageText, 0, "Validation Error"
  4289.      uidoc.GoToField(FieldName)
  4290.      continue = False
  4291.      Exit Sub
  4292.      
  4293. End Sub
  4294. OrgRepeat
  4295. RepeatDates
  4296. RepeatUnit
  4297.     1S2S
  4298. RepeatUnit
  4299. RepeatDates
  4300. StartDateTime
  4301. RepeatDates
  4302. RepeatAdjust_C
  4303.     3S4S6S9S10S12S17S20S
  4304. RepeatAdjust_CK
  4305.     0S0E
  4306. RepeatAdjust_C
  4307. RepeatUnit
  4308.     1S2S
  4309. RepeatUnit
  4310. RepeatAdjust
  4311. RepeatAdjust
  4312. RepeatAdjust_MD
  4313.     3S4S5S6S7S8S10S12S
  4314. RepeatAdjust_MD
  4315. 1st day|12nd day|23rd day|34th day|45th day|56th day|67th day|78th day|89th day|910th day|1011th day|1112th day|1213th day|1314th day|1415th day|1516th day|1617th day|1718th day|1819th day|1920th day|2021st day|2122nd day|2223rd day|2324th day|2425th day|2526th day|2627th day|2728th day|2829th day|2930th day|3031st day|31
  4316. RepeatUnit
  4317.     1S2S
  4318. RepeatUnit
  4319. RepeatAdjust
  4320. RepeatAdjust
  4321. RepeatAdjust_MP
  4322.     3S4S5S6S7S8S10S12S
  4323. RepeatAdjust_MP#
  4324. 1st Sunday|1.01st Monday|1.11st Tuesday|1.21st Wednesday|1.31st Thursday|1.41st Friday|1.51st Saturday|1.62nd Sunday|2.02nd Monday|2.12nd Tuesday|2.22nd Wednesday|2.32nd Thursday|2.42nd Friday|2.52nd Saturday|2.63rd Sunday|3.03rd Monday|3.13rd Tuesday|3.23rd Wednesday|3.33rd Thursday|3.43rd Friday|3.53rd Saturday|3.64th Sunday|4.04th Monday|4.14th Tuesday|4.24th Wednesday|4.34th Thursday|4.44th Friday|4.54th Saturday|4.6Last Sunday|5.0Last Monday|5.1Last Tuesday|5.2Last Wednesday|5.3Last Thursday|5.4Last Friday|5.5Last Saturday|5.6
  4325. RepeatUnit
  4326.     1S2S
  4327. RepeatUnit
  4328. RepeatAdjust
  4329. RepeatAdjust
  4330. StartDateTime
  4331.     3S4S5S6S7S8S10S12S
  4332. RepeatAdjust_W
  4333. Sunday|0Monday|1Tuesday|2Wednesday|3Thursday|4Friday|5Saturday|6
  4334. RepeatUnit
  4335. AppointmentType
  4336. RepeatUnit
  4337.     3S4S6S9S10S12S14S17S
  4338. RepeatUnit
  4339. Daily|DWeekly|WMonthly by Date|MDMonthly by Day|MPYearly|YDCustom|C
  4340. RepeatUnit
  4341.     3S4S5S6S
  4342. RepeatUnit
  4343. RepeatInterval
  4344. RepeatInterval
  4345. RepeatInterval_MDMP
  4346. RepeatInterval_MDMP
  4347.     3S4S5S6S7S8S9S10S12S14S15S16S18S20SRepeatInterval_MDMP
  4348. Every month on the|1Every other month on the|2Every 3rd month on the|3Every 4th month on the|4Every 5th month on the|5Every 6th month on the|6Every 7th month on the|7Every 8th month on the|8Every 9th month on the|9Every 10th month on the|10Every 11th month on the|11Every 12th month on the|12
  4349. RepeatUnit
  4350.     1S2S
  4351. StartDate
  4352.     0S0E
  4353. RepeatStartDate
  4354. RepeatHow
  4355. RepeatHow
  4356.     3S4S6S8S
  4357. RepeatHow
  4358. Until|UFor|F
  4359. RepeatHow
  4360. RepeatUnit
  4361.     3S4S5S6S
  4362. RepeatUntil
  4363. RepeatUntil
  4364.     3S4S6S8S
  4365. StartDate
  4366. RepeatStartDate
  4367.     0R1S2S
  4368. RepeatUnit
  4369. StartDate
  4370. RepeatUnit
  4371. StartDate
  4372. RepeatUnit
  4373. StartDate
  4374. RepeatUnit
  4375. StartDate
  4376. StartDate
  4377.     0R3S4S6S10S12S14S16S18S20S23S24S25S27S31S33S35S37S39S41S44S48S50S51S53S57S59S61S63S65S67S70S74S76S77S79S83S85S87S89S91S93S96SRepeatUntil
  4378. RepeatUnit
  4379.     1S2S3S4S5S6S
  4380. RepeatWeekends
  4381. RepeatWeekends
  4382.     3S4S6S8S
  4383. RepeatUnit
  4384. RepeatWeekends
  4385.     3S4S5S6S7S8S10S12S
  4386. RepeatWeekends
  4387. Don't Move|DMove to Friday|FMove to Monday|MMove to Nearest Weekday|NDelete|X
  4388. RepeatHow
  4389. RepeatUnit
  4390.     3S4S5S6S
  4391. RepeatForUnit
  4392. RepeatUnit
  4393. RepeatForUnit
  4394.     3S4S6S10S13S
  4395. RepeatForUnit
  4396. RepeatFor
  4397. Day|D
  4398. Week|W
  4399. Month|M
  4400. Year|Y
  4401. Days|D
  4402. Weeks|W
  4403. Months|M
  4404. Years|Y
  4405.     3S4S6S7S8S9S10S11S12S14S15S16S17S18S19S20S
  4406. RepeatFor
  4407. RepeatFor
  4408.     3S4S6S8S
  4409. RepeatFor
  4410. RepeatUnit
  4411.     1S2S
  4412. RepeatUnit
  4413. RepeatInterval
  4414. RepeatInterval
  4415. RepeatInterval_YD
  4416. RepeatInterval_YD
  4417.     3S4S5S6S7S8S10S12S13S14S16S18S
  4418. RepeatInterval_YD
  4419. Every year|1Every other year|2Every 3rd year|3Every 4th year|4Every 5th year|5Every 6th year|6Every 7th year|7Every 8th year|8Every 9th year|9Every 10th year|10
  4420. RepeatUnit
  4421.     1S2S
  4422. RepeatUnit
  4423. RepeatInterval
  4424. RepeatInterval
  4425. RepeatInterval_D
  4426. RepeatInterval_D
  4427.     3S4S5S6S7S8S10S12S13S14S16S18S
  4428. RepeatInterval_D
  4429. Every day|1Every 2nd day|2Every 3rd day|3Every 4th day|4Every 5th day|5Every 6th day|6Every 7th day|7Every 8th day|8Every 9th day|9Every 10th day|10Every 11th day|11Every 12th day|12Every 13th day|13Every 14th day|14Every 15th day|15Every 16th day|16Every 17th day|17Every 18th day|18Every 19th day|19Every 20th day|20Every 21st day|21Every 22nd day|22Every 23rd day|23Every 24th day|24Every 25th day|25Every 26th day|26Every 27th day|27Every 28th day|28Every 29th day|29Every 30th day|30Every 31st day|31
  4430. Starting date
  4431. Repeat
  4432. At weekends
  4433. RepeatUnit
  4434. RepeatInterval
  4435. RepeatInterval
  4436. RepeatInterval_W
  4437. RepeatInterval_W
  4438.     3S4S5S6S7S8S10S12S13S14S16S18S
  4439. RepeatInterval_W
  4440. Every|1Every 2nd|2Every 3rd|3Every 4th|4Every 5th|5Every 6th|6Every 7th|7Every 8th|8
  4441.     Enter dates below (no times):
  4442. O=Lotus Notes
  4443. O=Lotus Notes
  4444. PURSAFO
  4445. |.:#U
  4446. O=Lotus Notes
  4447. CN=Lotus Notes Template Development/O=Lotus Notes
  4448. PURSAFO
  4449. Fde!f^^
  4450. RepeatEnd
  4451. RepeatStart
  4452. StartDate
  4453. $FormPublicAccess
  4454. $TITLE
  4455. $INFO
  4456. $Script
  4457. $$Script_O
  4458. $$ScriptName
  4459. $$FormScript
  4460. $$$FormScript_O
  4461. RepeatDates
  4462. RepeatAdjust_C
  4463. RepeatStartDate
  4464. RepeatUntil
  4465. RepeatFor
  4466. $BODY
  4467. $PublicAccess
  4468. VersionOpt|
  4469.     6S7S9S14S
  4470. $VersionOpt
  4471.     0R1S2S3S
  4472. SavedOnce
  4473.     0R1S2S3S
  4474. PostedDate(
  4475.     0R1S2S3S
  4476. DeliveredDate
  4477.     0R1S2S3S
  4478. $AutoEditMode
  4479.     0R1S2S3S
  4480. MailSaveOptions
  4481.     0R1S2S3S
  4482. VersionOpt
  4483.     0R4S
  4484. Phone Message
  4485. Subject
  4486. Subject
  4487. Subject
  4488.     4S6S12S13S14S15S17S21S23S25S26S28S
  4489. Times New Roman
  4490. '++LotusScript Development Environment:2:5:(Options):0:74
  4491. Option Public
  4492. Use "EmailProcessing"
  4493. Use "DocumentConversions"
  4494. '++LotusScript Development Environment:2:5:(Forward):0:1
  4495. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4496.  Phone Message'++LotusScript Development Environment:2:5:(Options):0:66
  4497. '++LotusScript Development Environment:2:5:(Forward):0:1
  4498. Declare Sub Postopen(Source As Notesuidocument)
  4499. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  4500. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  4501. Declare Sub Postmodechange(Source As Notesuidocument)
  4502. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4503. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4504. Private Sub BindEvents(Byval Objectname_ As String)
  4505.      Static Source As NOTESUIDOCUMENT
  4506.      Set Source = Bind(Objectname_)
  4507.      On Event Postopen From Source Call Postopen
  4508.      On Event Querysave From Source Call Querysave
  4509.      On Event Queryclose From Source Call Queryclose
  4510.      On Event Postmodechange From Source Call Postmodechange
  4511. End Sub
  4512. '++LotusScript Development Environment:2:2:Postopen:1:12
  4513. Sub Postopen(Source As Notesuidocument)
  4514.      
  4515.      Set ws = New NotesUIWorkSpace
  4516.      Set uidoc = source
  4517.      
  4518.      Call EmailOpen
  4519.      
  4520. End Sub
  4521. '++LotusScript Development Environment:2:2:Querysave:1:12
  4522. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  4523.      
  4524.      Call EmailSave(Continue)
  4525.      
  4526. End Sub
  4527. '++LotusScript Development Environment:2:2:Queryclose:1:12
  4528. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  4529.      
  4530.      Call EmailClose(Continue)
  4531.      
  4532. End Sub
  4533. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  4534. Sub Postmodechange(Source As Notesuidocument)
  4535.      
  4536.      Call EmailModeChange
  4537.      
  4538. End Sub
  4539.     Always Hidden: 
  4540. Principal
  4541. CalendarProfile
  4542. Owner
  4543.     1S2S3S7S
  4544. Principal
  4545. Principal
  4546.     0R3S4S6S8S
  4547. FromPerson memo is from.
  4548.     0S0E
  4549.     0S0E
  4550. Encrypt
  4551.     0S0E
  4552. DefaultMailSaveOptions
  4553. $KeepPrivate
  4554. $KeepPrivate
  4555. $KeepPrivate
  4556.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  4557.     From:    
  4558. Principal
  4559. Principal
  4560. FromDomain
  4561. FromDomain
  4562. FromDomain
  4563. FromDomain
  4564.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  4565. FromName
  4566. Principal
  4567. Principal
  4568.     0RR1S2S9S11S15S
  4569. FromStops
  4570.     0R1S2S6S
  4571. FromName
  4572. FromStops
  4573. FromStops
  4574. FromStops
  4575.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  4576.      on 
  4577. PostedDateh
  4578. PostedDate
  4579.     7S9S
  4580. tmpDisplayDateTime/date memo was created or mailed.
  4581. ReplyDate
  4582. ReplyTo
  4583.     1S2S3S4S5S6S
  4584. Please respond
  4585. ReplyTo
  4586. ReplyTo
  4587. ReplyDate
  4588. ReplyDate
  4589.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  4590. $HideMailHeader
  4591. Principal
  4592. Principal
  4593. Principal
  4594. Principal
  4595. Principal
  4596.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  4597.     Sent by:    
  4598. FromDomain
  4599. FromDomain
  4600. FromDomain
  4601. FromDomain
  4602.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  4603. FromName
  4604.     0RR1S2S6S
  4605. FromStops
  4606.     0R1S2S6S
  4607. FromName
  4608. FromStops
  4609. FromStops
  4610. FromStops
  4611.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  4612. SendTo
  4613. CopyTo
  4614.   cc:  
  4615. CopyTo
  4616.     1S8S13S14S2E17S18S21S28S31S
  4617. SendTo}
  4618.     0S0E
  4619. SendToList of primary people to send memo.
  4620. CopyTo}
  4621.     0S0E
  4622. CopyToList of people to send a copy of the memo.
  4623. DeliveredDate
  4624. BlindCopyTo
  4625. (bcc: 
  4626. BlindCopyTo
  4627.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  4628.     bcc:
  4629. BlindCopyTo
  4630.     0S0E
  4631. BlindCopyToList of undisclosed people to send copies of memo.
  4632. While You Were Out
  4633. Contact:
  4634. Phone:
  4635. PhoneCaller
  4636. tmpPhoneCaller
  4637. CompanyName
  4638. tmpCompanyName
  4639. PhoneNumber
  4640. tmpPhoneNumber
  4641. FaxNumber
  4642. tmpFaxNumber
  4643. PhoneCaller
  4644. CompanyName
  4645. PhoneNumber
  4646. FAXNumber
  4647. PhoneReason
  4648. PhoneReason    
  4649. Telephoned|TPlease Call|PWill Call Again|WReturned Call|RWas In|IWill Return|LLeft Package|KPlease See Me|MUrgent|N
  4650.     Message:
  4651. Phone Message from 
  4652. PhoneCaller
  4653.     1S2S
  4654. Subject
  4655. Edit Document
  4656. ForwardK 
  4657.     0S0E
  4658. New Memo.
  4659.     0S0E
  4660. Delete 
  4661.     0S0E
  4662. _Move To Folder...
  4663. Delivery Information...Kz
  4664. DeliveryInfo
  4665. Delivery Information
  4666.     4S5S6S7S8S9S10S12S
  4667. _Forward
  4668. Reply
  4669. Reply
  4670.     0S0E
  4671. Reply With History
  4672. Reply with History
  4673. This document is truncated.
  4674.     4S8S10S13S
  4675. Reply with history
  4676. Address... 
  4677.     0S0E
  4678. PostedDateh
  4679.     5S6S7S8S
  4680. Close
  4681.     0S0E
  4682. IsMailStationeryh
  4683. PostedDateh
  4684.     6S7S
  4685. Save As Draft
  4686. tmpAction
  4687. SaveAsDraft
  4688.     1S2S3S
  4689. IsMailStationeryh
  4690. PostedDateh
  4691.     4S5S
  4692. PromptValue
  4693. DefaultMailSaveOptions
  4694. Save when sent
  4695. Do you wish to save a copy of this Memo?
  4696. DefaultMailSaveOptions
  4697.     1S2S5S6S8S14S17S
  4698. SaveOptions
  4699. PromptValue
  4700. SaveOptions
  4701. PromptValue
  4702.     0RR1S2S5S6S9S14S
  4703. tmpAction
  4704. DefaultMailSaveOptions
  4705. Mailing
  4706.     0RR1S2S3S6S7S9S11S
  4707. MailOptions
  4708.     0R1S2S3S
  4709.     0R7S9S
  4710. tmpAction
  4711. SaveOptions
  4712. SendAndFile
  4713.     0RR1S2S3S6S7S9S11S
  4714.     0R7S9S
  4715. PostedDateh
  4716. IsMailStationeryh
  4717.     5S6S7S8S10S11S
  4718. Send And File...
  4719.     4S11S13S19S
  4720.     0RR7S9S
  4721. tmpAction
  4722. DefaultMailSaveOptions
  4723. Mailing
  4724.     0RR1S2S3S6S7S9S11S
  4725. MailOptions
  4726.     0R1S2S3S
  4727.     0R7S9S
  4728. tmpAction
  4729. SendAndFile
  4730.     0RR1S2S3S
  4731.     0R7S9S
  4732. PostedDateh
  4733. IsMailStationeryh
  4734.     5S6S7S8S10S11S
  4735. Delivery Options...K
  4736. DeliveryOptions
  4737. Delivery Options
  4738.     4S8S
  4739. _ViewIcon
  4740. SenderTag
  4741. SenderTag
  4742. SenderTag
  4743. SenderTag
  4744. SenderTag
  4745. SenderTag
  4746. SenderTag
  4747. SenderTag
  4748. SenderTag
  4749. SenderTag
  4750. SenderTag
  4751.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  4752. PostedDateh
  4753.     5S6S7S8S
  4754. Special Options...
  4755. ReplyDate
  4756. ReplyDate
  4757.     1S2S3S
  4758. ReplyTo
  4759. ReplyTo
  4760.     0R1S2S3S
  4761. (Advanced Options)
  4762. Special Options
  4763.     0R6S10S13S15S
  4764. tmpDisplayReplyInfo
  4765. Please respond
  4766. ReplyTo
  4767. ReplyTo
  4768. ReplyDate
  4769. ReplyDate
  4770.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  4771. DueDateTime
  4772. ReplyDate
  4773.     0R1S2S3S
  4774. PostedDateh
  4775.     5S6S7S8S
  4776. _Remove From Folder...
  4777. Categori_zeK
  4778. SSend
  4779. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  4780. '++LotusScript Development Environment:2:5:(Forward):0:1
  4781. Declare Sub Click(Source As Button)
  4782. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4783. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4784. Private Sub BindEvents(Byval Objectname_ As String)
  4785.      Static Source As BUTTON
  4786.      Set Source = Bind(Objectname_)
  4787.      On Event Click From Source Call Click
  4788. End Sub
  4789. '++LotusScript Development Environment:2:2:Click:1:12
  4790. Sub Click(Source As Button)
  4791.      Call CreateNewDoc(NEW_MEMO)
  4792. End Sub
  4793. tmpnewdoc
  4794.     1S2S
  4795. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  4796. '++LotusScript Development Environment:2:5:(Forward):0:1
  4797. Declare Sub Click(Source As Button)
  4798. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4799. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4800. Private Sub BindEvents(Byval Objectname_ As String)
  4801.      Static Source As BUTTON
  4802.      Set Source = Bind(Objectname_)
  4803.      On Event Click From Source Call Click
  4804. End Sub
  4805. '++LotusScript Development Environment:2:2:Click:1:12
  4806. Sub Click(Source As Button)
  4807.      Call CreateNewDoc(NEW_CALENDAR)
  4808. End Sub
  4809. tmpnewdoc
  4810.     1S2S
  4811. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  4812. '++LotusScript Development Environment:2:5:(Forward):0:1
  4813. Declare Sub Click(Source As Button)
  4814. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4815. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4816. Private Sub BindEvents(Byval Objectname_ As String)
  4817.      Static Source As BUTTON
  4818.      Set Source = Bind(Objectname_)
  4819.      On Event Click From Source Call Click
  4820. End Sub
  4821. '++LotusScript Development Environment:2:2:Click:1:12
  4822. Sub Click(Source As Button)
  4823.      Call CreateNewDoc(NEW_TASK)
  4824. End Sub
  4825. tmpnewdoc
  4826.     1S2S
  4827. Copy into\New GroupK,
  4828. NewGroup
  4829.     0S0E
  4830. tmpnewdoc
  4831.     1S2S
  4832. O=Lotus Notes
  4833. O=Lotus Notes
  4834. PURSAFO
  4835. |.:#U
  4836. O=Lotus Notes
  4837. CN=Lotus Notes Template Development/O=Lotus Notes
  4838. PURSAFO
  4839. Fde!f^^
  4840. -wb@Y
  4841. s^~pd
  4842. $$FormPostOpenAction
  4843. $TypeIcon
  4844. ExpireDate
  4845. ReplyDate
  4846. ComposedDate
  4847. $TITLE
  4848. $INFO
  4849. $WINDOWTITLE
  4850. $Script
  4851. $$Script_O
  4852. $$ScriptName
  4853. $$FormScript
  4854. $$$FormScript_O
  4855. $BODY
  4856. $ACTIONS
  4857. $SCRIPTOBJ_19
  4858. $SCRIPTOBJ_20
  4859. $SCRIPTOBJ_21
  4860. Times New Roman
  4861.  StdNotesLtr32
  4862. tmpDisplayFrom_Preview
  4863. tmpFrom
  4864. tmpDisplayDate_Preview
  4865. tmpDate
  4866. O=Lotus Notes
  4867. O=Lotus Notes
  4868. PURSAFO
  4869. |.:#U
  4870. O=Lotus Notes
  4871. CN=Lotus Notes Template Development/O=Lotus Notes
  4872. PURSAFO
  4873. Fde!f^^
  4874. W"KZ?
  4875. IO;+L
  4876. $TITLE
  4877. $INFO
  4878. $$ScriptName
  4879. $BODY
  4880. &Arial Narrow
  4881. "Helvetica
  4882.  StdNotesLtr6
  4883. @___@
  4884. <a>7`^
  4885. `!bb!R
  4886.     6S9S
  4887. tmpFrom1stInitial
  4888. tmpDisplayFrom_Preview
  4889.     6S9S
  4890. tmpFromRestOfName
  4891. @___@
  4892. <a>7`^
  4893. `!bb!R
  4894. tmpDisplayDate_Preview
  4895. tmpDate
  4896. @___@
  4897. <a>7`^
  4898. `!bb!R
  4899. O=Lotus Notes
  4900. O=Lotus Notes
  4901. PURSAFO
  4902. |.:#U
  4903. O=Lotus Notes
  4904. CN=Lotus Notes Template Development/O=Lotus Notes
  4905. PURSAFO
  4906. Fde!f^^
  4907. $TITLE
  4908. $INFO
  4909. $$ScriptName
  4910. $BODY
  4911. Slashed Lines with GlobeStdNotesLtr21CU3
  4912. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  4913. ##########################################################
  4914. (Delivery Info)DeliveryInfo1CDU
  4915. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############
  4916. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  4917. Out Of Office ProfileOutOfOfficeProfile
  4918. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCDw#########################
  4919. Pony ExpressStdNotesLtr17CU3
  4920. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########
  4921. CenteredStdNotesLtr3CU3
  4922. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####
  4923. Green and Yellow DiamondStdNotesLtr14CU3
  4924. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  4925. ##########################################################
  4926. Plain TextStdNotesLtr0CU3
  4927. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######
  4928. 1(NamesPrompt)1
  4929. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCDU########################################################
  4930. Triangle with Dots 1StdNotesLtr29CU3
  4931. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################################
  4932. Three Dimensional ReliefStdNotesLtr27CU3
  4933. CN=Paul DiCristina/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  4934. 1(NoticeOptionsDlg)CDU31
  4935. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############################################
  4936. Torn PaperStdNotesLtr28CU3
  4937. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################
  4938. Times New Roman
  4939.  StdNotesLtr21
  4940. tmpDisplayFrom_Preview
  4941. tmpFrom
  4942. tmpDisplayDate_Preview
  4943. tmpDate
  4944. O=Lotus Notes
  4945. O=Lotus Notes
  4946. PURSAFO
  4947. |.:#U
  4948. O=Lotus Notes
  4949. CN=Lotus Notes Template Development/O=Lotus Notes
  4950. PURSAFO
  4951. Fde!f^^
  4952. $TITLE
  4953. $INFO
  4954. $$ScriptName
  4955. $BODY
  4956.  DeliveryInfo
  4957. Importance:
  4958. Importance
  4959. Importance
  4960. Normal
  4961.     3S4S6S8S9S10S12S14StmpImportanceInfo
  4962. Signed:
  4963. Encrypted:
  4964. Return receipt:
  4965.     3S4S6S8S
  4966. tmpSignedInfo
  4967. Encrypt
  4968.     3S4S6S8S
  4969. tmpEncryptInfo
  4970. $KeepPrivate
  4971. Do not forward, copy or print!
  4972.     3S4S6S8S
  4973. tmpKeepPrivateInfo
  4974. ReturnReceipt
  4975.     3S4S6S8S
  4976. tmpReceiptInfo
  4977. PostedDate
  4978. Not sent yet
  4979. PostedDate
  4980. D1T1V
  4981.  Sent
  4982. DeliveredDate
  4983. DeliveredDate
  4984. D1T1V
  4985.  Delivered"
  4986. $AdditionalHeaders
  4987. -------- Additional  Header  ------
  4988. $AdditionalHeaders
  4989. SMTPHeaders
  4990. -------- Additional  Header  ------
  4991. SMTPHeaders
  4992. DeliveredDate
  4993. -------- Routing Information ------
  4994. DeliveredDate
  4995. RouteTimes
  4996. D1T1V
  4997.  at server 
  4998. RouteServers
  4999.     2R5S6S7S8RS8E10S16S17S20R23S24S26RS8E28S34S35S38R41S42S44RS8E46S49R50S51R54S55S57RS8E59S62R63S64R67S68S70RS8E72S75R78S79S81RS7E83S91S99S2E101RStmpPostedDateInfo
  5000. Delivery information:
  5001. FromDomain
  5002. FromDomain"
  5003.     1S2S5S6S8S10S11S12StmpFromInfo
  5004. From:
  5005. Categori_ze
  5006. _Edit Document
  5007. Send Docu_ment
  5008. _Forward
  5009. _Move to Folder...
  5010. _Remove from Folder...
  5011. O=Lotus Notes
  5012. O=Lotus Notes
  5013. PURSAFO
  5014. |.:#U
  5015. O=Lotus Notes
  5016. CN=Lotus Notes Template Development/O=Lotus Notes
  5017. PURSAFO
  5018. Fde!f^^
  5019. ExpireDate
  5020. ReplyDate
  5021. $Phone_O
  5022. $TITLE
  5023. $INFO
  5024. $$Script_O
  5025. $$ScriptName
  5026. $BODY
  5027. $ACTIONS
  5028. $PublicAccess
  5029. Out of Office Profile
  5030. Times New Roman
  5031. '++LotusScript Development Environment:2:5:(Options):0:66
  5032. Option Public
  5033. '++LotusScript Development Environment:2:5:(Forward):0:1
  5034. '++LotusScript Development Environment:2:5:(Declarations):0:10
  5035. Dim uidoc As NotesUIDocument
  5036.  OutOfOfficeProfile'++LotusScript Development Environment:2:5:(Options):0:66
  5037. '++LotusScript Development Environment:2:5:(Forward):0:1
  5038. Declare Sub Postopen(Source As Notesuidocument)
  5039. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5040. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5041. Private Sub BindEvents(Byval Objectname_ As String)
  5042.      Static Source As NOTESUIDOCUMENT
  5043.      Set Source = Bind(Objectname_)
  5044.      On Event Postopen From Source Call Postopen
  5045. End Sub
  5046. '++LotusScript Development Environment:2:2:Postopen:1:12
  5047. Sub Postopen(Source As Notesuidocument)
  5048.      Set uidoc = source
  5049. End Sub
  5050. '++LotusScript Development Environment:2:5:(Options):0:66
  5051. '++LotusScript Development Environment:2:5:(Forward):0:1
  5052. Declare Sub Exiting(Source As Field)
  5053. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5054. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5055. Private Sub BindEvents(Byval Objectname_ As String)
  5056.      Static Source As FIELD
  5057.      Set Source = Bind(Objectname_)
  5058.      On Event Exiting From Source Call Exiting
  5059. End Sub
  5060. '++LotusScript Development Environment:2:2:Exiting:1:12
  5061. Sub Exiting(Source As Field)
  5062.      uidoc.refresh
  5063. End Sub
  5064. '++LotusScript Development Environment:2:5:(Options):0:66
  5065. '++LotusScript Development Environment:2:5:(Forward):0:1
  5066. Declare Sub Exiting(Source As Field)
  5067. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5068. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5069. Private Sub BindEvents(Byval Objectname_ As String)
  5070.      Static Source As FIELD
  5071.      Set Source = Bind(Objectname_)
  5072.      On Event Exiting From Source Call Exiting
  5073. End Sub
  5074. '++LotusScript Development Environment:2:2:Exiting:1:12
  5075. Sub Exiting(Source As Field)
  5076.      uidoc.refresh 
  5077. End Sub
  5078. Normal
  5079. Action
  5080. Profile
  5081.     1S2S
  5082.     Always Hidden: 
  5083. AlreadyNotified
  5084. AlreadyNotified
  5085. Princ
  5086. CalendarProfile
  5087. Owner
  5088.     1S2S6S
  5089. Princ
  5090. Princ
  5091.     0R3S4S6S8S
  5092. Sender
  5093. System
  5094. Please do not delete - Out of Office Profile
  5095. Subject
  5096. ExcludeFromView
  5097. _ViewIcon
  5098. Out Of Office Profile 
  5099.     I will be out of the office on the following dates:
  5100.       
  5101. Leaving:
  5102. Returning:
  5103. FirstDayOut
  5104. pcDate
  5105. FirstDayOut
  5106.     1S2S
  5107. TodayInt,
  5108.     0R1S2S
  5109. ConNext
  5110. pcDate
  5111. nextG
  5112.     0R1S2S8S11S13S
  5113. AdjustAmount
  5114. pcDate
  5115. pcDate
  5116. pcDate
  5117. pcDate
  5118. pcDate
  5119. pcDate
  5120. pcDate
  5121.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  5122. AdjustAmount
  5123. pcDateW
  5124. AdjustAmount
  5125. ConNext
  5126. TodayInt#
  5127.     0R3S4S6S14R20S22S24S27S28S30S31S34S36S38SFirstDayOut
  5128. FirstDayBack
  5129. pcDate
  5130. FirstDayBacka
  5131.     1S2S
  5132. TodayInt,
  5133.     0R1S2S
  5134. ConNext
  5135. pcDate
  5136. nextG
  5137.     0R1S2S8S11S13S
  5138. AdjustAmount
  5139. pcDate
  5140. pcDate
  5141. pcDate
  5142. pcDate
  5143. pcDate
  5144. pcDate
  5145. pcDate
  5146.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  5147. AdjustAmount
  5148. pcDateW
  5149. AdjustAmount
  5150. ConNext
  5151. TodayInt#
  5152.     0R3S4S6S14R20S22S24S27S28S30S31S34S36S38SFirstDayBack
  5153.     My Out of The Office message for most people/groups:
  5154.     Whomever
  5155.     Subject:
  5156.  is out of the office."
  5157.     1S2S
  5158. GeneralSubject
  5159. FirstDayOut
  5160. FirstDayBack
  5161. I will be out of the office from 
  5162. FirstDayOut
  5163.  until 
  5164. FirstDayBackV
  5165.     3S4S5S6S7S8S10S12S13S14S18S19S20S21S25S26S
  5166. DaysOut
  5167. I will respond to your message when I return.
  5168. GeneralMessage
  5169.     People/groups who should receive a special message:
  5170. SpecialPeople
  5171. SpecialPeople
  5172.     My Out of The Office message for special people/groups:
  5173.     Whomever
  5174.     Subject:
  5175.  is out of the office."
  5176.     1S2S
  5177. SpecialSubject
  5178. DaysOut
  5179. dispDaysOut
  5180. SpecialMessage
  5181. SpecialMessage
  5182.     People/groups who should not receive any messages:
  5183. IgnorePeople
  5184. IgnorePeople
  5185. FirstDayOut can be entered as a date or a day of the week.
  5186. It is then converted to a text string containing a date, which 
  5187.     0R1S
  5188. @TextToTime does not always recognize as Text so it is 
  5189.     0R1S
  5190. converted to Text then to Time
  5191.     0R1S
  5192. DateValue
  5193. FirstDayOut
  5194.     0R1S2S
  5195. DateValue
  5196. DateValue
  5197. DateValue
  5198.     0R7S12S17S19S21S
  5199. dateFirstDayOut
  5200. FirstDayBack can be entered as a date or a day of the week.
  5201. It is then converted to a text string containing a date, which 
  5202.     0R1S
  5203. @TextToTime does not always recognize as Text so it is 
  5204.     0R1S
  5205. converted to Text then to Time
  5206.     0R1S
  5207. DateValue
  5208. FirstDayBackV
  5209.     0R1S2S
  5210. DateValue
  5211. DateValue
  5212. DateValue
  5213.     0R7S12S17S19S21S
  5214. dateFirstDayBack
  5215. Closed 
  5216.     0S0E
  5217. _Edit Document
  5218. _Forward
  5219. Enable Out of Office Agentn
  5220.     0S0E
  5221. FirstDayOut
  5222. FirstDayBack
  5223. Validation Error
  5224. You must indicate when you are leaving and when you will be back.
  5225.     0RR3S4S5S6S8S14S16S20S
  5226. FirstDayBackW
  5227. Validation Error
  5228. Your First Day Back is in the Past.  The Out of Office agent will not be enabled.
  5229.     0RR6S7S8S9S11S17S19S23S
  5230. ProcessOutOfOffice
  5231. Out of Office Agent
  5232. Please ask a Manager or Designer of this database to enable the agent for you.
  5233. The Out of Office agent was not enabled.
  5234.     0RR6S8S11S13S19S21S29S30S31S32S35S37S
  5235. Agent Enabled
  5236. The Out of Office agent is now enabled.  When people send you mail between 
  5237. FirstDayOut
  5238.  and 
  5239. FirstDayBackV
  5240.  it will inform them of your absence.
  5241.     0RR4S6S7S8S12S13S14S15S19S20S
  5242. AlreadyNotified
  5243.     0RR1S2S3S2E
  5244. ProcessOutOfOffice
  5245.     0S0E
  5246. I Have Returned To The Office
  5247. ProcessOutOfOffice
  5248. Welcome Back
  5249. No more "Out of Office" messages will be sent.
  5250. Out of Office Agent
  5251. Please ask a Manager or Designer of this database to disable the agent for you.
  5252. The Out of Office agent is still enabled.
  5253.     6S8S11S15S17S20S26S28S36S37S38S39S42S44S
  5254. ProcessOutOfOffice
  5255.     0S0E
  5256. Categori_ze
  5257. Send Docu_ment
  5258. _Move to Folder...
  5259. _Remove from Folder...    
  5260. O=Lotus Notes
  5261. O=Lotus Notes
  5262. PURSAFO
  5263. |.:#U
  5264. O=Lotus Notes
  5265. CN=Lotus Notes Template Development/O=Lotus Notes
  5266. PURSAFO
  5267. Fde!f^^
  5268. DocLife
  5269. ArchiveDate
  5270. $ManualArchivers_O
  5271. ObsoleteLife
  5272. DocumentLife
  5273. $$FirstDayOut1
  5274. $FirstDayOut1_O
  5275. $$FirstDayBack1
  5276. $FirstDayBack1_O
  5277. $TITLE
  5278. $INFO
  5279. $WINDOWTITLE
  5280. $Script
  5281. $$Script_O
  5282. $$ScriptName
  5283. $$FormScript
  5284. $$$FormScript_O
  5285. $$FirstDayOut
  5286. $FirstDayOut_O
  5287. $$FirstDayBack
  5288. $FirstDayBack_O
  5289. $$GeneralMessage
  5290. $GeneralMessage_O
  5291. _ViewIcon
  5292. dateFirstDayOut
  5293. dateFirstDayBack
  5294. $BODY
  5295. $ACTIONS
  5296. &Arial
  5297.  StdNotesLtr17
  5298. tmpDisplayFrom_Preview
  5299. tmpFrom
  5300. tmpDisplayDate_Preview
  5301. tmpDate
  5302. O=Lotus Notes
  5303. O=Lotus Notes
  5304. PURSAFO
  5305. |.:#U
  5306. O=Lotus Notes
  5307. CN=Lotus Notes Template Development/O=Lotus Notes
  5308. PURSAFO
  5309. Fde!f^^
  5310. $TITLE
  5311. $INFO
  5312. $$ScriptName
  5313. $BODY
  5314. Times New Roman
  5315.  StdNotesLtr3
  5316. tmpDisplayFrom_Previewb
  5317. tmpFromFirst
  5318. tmpDisplayFrom_Previewb
  5319. tmpFromLast
  5320.        
  5321. tmpDisplayDate_Preview
  5322. tmpDate
  5323. O=Lotus Notes
  5324. O=Lotus Notes
  5325. PURSAFO
  5326. |.:#U
  5327. O=Lotus Notes
  5328. CN=Lotus Notes Template Development/O=Lotus Notes
  5329. PURSAFO
  5330. Fde!f^^
  5331. $TITLE
  5332. $INFO
  5333. $Header
  5334. $$ScriptName
  5335. $BODY
  5336. &Arial
  5337.  StdNotesLtr14
  5338. tmpDisplayFrom_Preview
  5339. tmpFrom
  5340. tmpDisplayDate_Preview
  5341. tmpDate
  5342. O=Lotus Notes
  5343. O=Lotus Notes
  5344. PURSAFO
  5345. |.:#U
  5346. O=Lotus Notes
  5347. CN=Lotus Notes Template Development/O=Lotus Notes
  5348. PURSAFO
  5349. Fde!f^^
  5350. $TITLE
  5351. $INFO
  5352. $$ScriptName
  5353. $BODY
  5354.  StdNotesLtr0
  5355. $HideMailHeader
  5356.     0S0E
  5357.     From:    
  5358. tmpDisplayFrom_Preview
  5359. tmpFrom
  5360.      on 
  5361. tmpDisplayDate_Preview
  5362. tmpDateTime/date memo was created or mailed.
  5363. O=Lotus Notes
  5364. O=Lotus Notes
  5365. PURSAFO
  5366. |.:#U
  5367. O=Lotus Notes
  5368. CN=Lotus Notes Template Development/O=Lotus Notes
  5369. PURSAFO
  5370. Fde!f^^
  5371. I)/H1
  5372. $TITLE
  5373. $INFO
  5374. $$Script_O
  5375. $$ScriptName
  5376. $BODY
  5377. (NamesPrompt)
  5378.     Delegate to:
  5379. SendTo
  5380. SendTo
  5381.     1S2S3S7S
  5382. O=Lotus Notes
  5383. O=Lotus Notes
  5384. PURSAFO
  5385. |.:#U
  5386. O=Lotus Notes
  5387. CN=Lotus Notes Template Development/O=Lotus Notes
  5388. PURSAFO
  5389. Fde!f^^
  5390. $FormPublicAccess
  5391. $TITLE
  5392. $INFO
  5393. $$Script_O
  5394. $$ScriptName
  5395. $BODY
  5396. $PublicAccess
  5397. &Arial
  5398.  StdNotesLtr29
  5399. tmpDisplayFrom_Preview
  5400. tmpFrom
  5401. tmpDisplayDate_Preview
  5402. tmpDate
  5403. O=Lotus Notes
  5404. O=Lotus Notes
  5405. PURSAFO
  5406. |.:#U
  5407. O=Lotus Notes
  5408. CN=Lotus Notes Template Development/O=Lotus Notes
  5409. PURSAFO
  5410. Fde!f^^
  5411. $TITLE
  5412. $INFO
  5413. $Header
  5414. $$ScriptName
  5415. $BODY
  5416. &Arial
  5417.  StdNotesLtr27
  5418. tmpDisplayDate_Preview
  5419. tmpDate_2
  5420. tmpDisplayFrom_Preview
  5421. tmpFrom_2
  5422. tmpDisplayFrom_Preview
  5423. tmpFrom_1
  5424. tmpDisplayFrom_Preview
  5425. tmpFrom_
  5426. tmpDisplayDate_Preview
  5427. tmpDate_1
  5428. tmpDisplayDate_Preview
  5429. tmpDate_
  5430. O=Lotus Notes
  5431. O=Lotus Notes
  5432. PURSAFO
  5433. |.:#U
  5434. O=Lotus Notes
  5435. CN=Lotus Notes Template Development/O=Lotus Notes
  5436. PURSAFO
  5437. Fde!f^^
  5438. $TITLE
  5439. $INFO
  5440. $Header
  5441. $$ScriptName
  5442. $BODY
  5443. (NoticeOptionsDlg)
  5444. CanAccept
  5445. NoticeType
  5446. chair
  5447. tmpowner
  5448. DoNotProcessh
  5449. BroadCast
  5450.     1S2S20S21S23S24S26S27S31S32S34S35S38S39S40S
  5451. CanDecline
  5452. NoticeType
  5453. chair
  5454. tmpowner
  5455. DoNotProcessh
  5456. tmpNoParent
  5457. Broadcast
  5458.     0R1S2S20S21S23S24S26S27S32S33S38S39S41S42S45S46S47S
  5459. CanDelegate
  5460. NoticeType
  5461. chair
  5462. tmpowner
  5463. DoNotProcessh
  5464. BroadCast
  5465.     0R1S2S20S21S23S24S26S27S31S32S34S35S38S39S40S
  5466. CanPropose
  5467. NoticeType
  5468. chair
  5469. tmpowner
  5470. DoNotProcessh
  5471. BroadCast
  5472. OrgRepeat
  5473.     0R1S2S22S23S25S26S28S29S33S34S36S37S38S39S45S46S47S
  5474. CanPencilIn
  5475. NoticeType
  5476. Chair
  5477. tmpOwner
  5478. DoNotProcessh
  5479. Broadcast
  5480.     0R1S2S8S9S10S11S12S13S14S15S16S20S2E21S23S24S26S27S31S32S34S35S39S40S
  5481. SemiList
  5482. CanAccept
  5483. CanDecline
  5484. CanDelegate
  5485. CanPropose
  5486. CanPencilIn
  5487.     0R1S2S7S8S9S10S11S12S13S16S
  5488. SemiList
  5489. Accept|0
  5490. Decline|1
  5491. Delegate|2
  5492. Propose Alternative Time/Location|3
  5493. Pencil In|4
  5494.     0R5S6S7S8S9S10S11S14S15S16S17S18S19S20S21S22StmpUserActions
  5495. ResponseType
  5496. tmpUserActions
  5497. Comments
  5498.     Action to take:
  5499.     Comments to include:
  5500. O=Lotus Notes
  5501. O=Lotus Notes
  5502. PURSAFO
  5503. |.:#U
  5504. O=Lotus Notes
  5505. CN=Lotus Notes Template Development/O=Lotus Notes
  5506. PURSAFO
  5507. Fde!f^^
  5508. $FormPublicAccess
  5509. $TITLE
  5510. $INFO
  5511. $$Script_O
  5512. $$ScriptName
  5513. $BODY
  5514. $PublicAccess
  5515. 1(InviteeResponses)UC31
  5516. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################
  5517. 1(PeopleListDlg)1U
  5518. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################################################
  5519. (NonDelivery Report)DeliveryReportNonDelivery Report
  5520. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Irisw##################################################
  5521. Frank LloydStdNotesLtr7CU3
  5522. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############
  5523. 1(ChangeRepeating)1
  5524. CN=Ryan Jansen/O=IrisCN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesU###########################
  5525. Teal and Yellow LinesStdNotesLtr26CU3
  5526. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################################
  5527. Metal PlateStdNotesLtr15CU3
  5528. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########
  5529. 1(CalendarHelp)1U
  5530. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########
  5531. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  5532. Archive ProfileArchiveProfileArchive Profile
  5533. CN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCDw#############
  5534. (ArchiveInstructions)(ArchiveInstructions)1CU
  5535. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################
  5536. DeccoStdNotesLtr4CU3
  5537. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################
  5538. _Special\Temporary Export CertificateTemporary Export Certificate
  5539. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Irisw###############
  5540. '++LotusScript Development Environment:2:5:(Options):0:74
  5541. Option Public
  5542. Use "AppointmentResponses"
  5543. '++LotusScript Development Environment:2:5:(Forward):0:1
  5544. Declare Sub Initialize
  5545. Declare Sub SendConfirmation
  5546. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5547. '++LotusScript Development Environment:2:2:Initialize:1:10
  5548. Sub Initialize
  5549.      
  5550. End Sub
  5551. '++LotusScript Development Environment:2:2:SendConfirmation:1:8
  5552. Sub SendConfirmation
  5553.      Dim sendto() As Variant
  5554.      Dim names() As Variant   
  5555.      Dim dummydoc As New NotesDocument(db)
  5556.      Dim CanMail As Integer
  5557.      
  5558. 'first, create the notice document
  5559.      Call CreateNoticeDocument("Confirmed -",ORS_MSGTYPE_CONFIRMATION,10,1)
  5560. 'we need to change the $REF item
  5561.      dummydoc.UniversalID = note.RealDocUNID(0)
  5562.      Call notice.MakeResponse(dummydoc)
  5563.      notice.ApptUNID = dummydoc.UniversalID
  5564.      
  5565. 'next, add the invitee responses
  5566.      Dim rtitem  As New NotesRichTextItem(notice,"StatusUpdate")
  5567.      
  5568. 'add all of the invitee status's to the rich text item     
  5569.      If (note.tmpAccepted(0) <> "") Then
  5570.           Forall people In note.tmpAccepted
  5571.                Call rtitem.AppendText(Cstr(people) & " -> Accepted")
  5572.                Call rtitem.AddNewLine(1)          
  5573.           End Forall                         
  5574.      End If
  5575.      If (note.tmpDeclined(0) <> "") Then
  5576.           Forall people In note.tmpDeclined
  5577.                Call rtitem.AppendText(Cstr(people) & " -> Declined")
  5578.                Call rtitem.AddNewLine(1)          
  5579.           End Forall               
  5580.      End If
  5581.      If (note.tmpCounter(0) <> "") Then
  5582.           Forall people In note.tmpCounter
  5583.                Call rtitem.AppendText(Cstr(people) & " -> Counter Proposed")
  5584.                Call rtitem.AddNewLine(1)          
  5585.           End Forall               
  5586.      End If
  5587.      If (note.tmpDelegated(0) <> "") Then
  5588.           x = 0
  5589.           Forall people In note.tmpDelegated
  5590.                Call rtitem.AppendText(Cstr(people) & " -> Delegated to " & note.tmpDelegee(x))
  5591.                x= x+1
  5592.                Call rtitem.AddNewLine(1)          
  5593.           End Forall               
  5594.      End If
  5595.      Call rtitem.AddNewLine(1)               
  5596. 'now, include the people who did not respond
  5597.      If (note.tmpWaiting(0) <> "") Then          
  5598.           Call rtitem.AppendText("Waiting for reply:")
  5599.           Call rtitem.AddNewLine(1)
  5600.           Forall people In note.tmpWaiting
  5601.                Call rtitem.AppendText(Cstr(people))
  5602.                Call rtitem.AddNewLine(1)
  5603.           End Forall
  5604.      End If
  5605. 'include the people who were uninvited
  5606.      If (note.tmpUninvited(0) <> "") Then
  5607.           Call rtitem.AppendText("Uninvited:")          
  5608.           Call rtitem.AddNewLine(1)
  5609.           Forall  people In note.tmpUninvited
  5610.                Call rtitem.AppendText(Cstr(people))
  5611.                Call rtitem.AddNewLine(1)
  5612.           End Forall          
  5613.      End If
  5614.      
  5615.      i = 0     
  5616.      NamesToSend = Evaluate("@Trim(tmpAccepted:tmpWaiting)",note)
  5617.      If (NamesToSend(0) <> "") Then          
  5618.           CanMail = True
  5619.           Redim sendto(Ubound(NamesToSend))
  5620.           For i = 0 To Ubound(NamesToSend)
  5621.                sendto(i) = NamesToSend(i)
  5622.           Next
  5623.           i = i + 1          
  5624.      End If
  5625.      
  5626.      DelegeesToSend = Evaluate("@Trim(@Replace(tmpDelegee;tmpDeclined:tmpDelegated;""""))",note)
  5627.      If (DelegeesToSend(0) <> "") Then    
  5628.           CanMail = True          
  5629.           Redim Preserve sendto(i + Ubound(DelegeesToSend))
  5630.           For x = 0 To Ubound(DelegeesToSend)
  5631.                sendto(i) = DelegeesToSend(x)
  5632.                i = i + 1
  5633.           Next
  5634.      End If
  5635.      
  5636.      If CanMail Then
  5637.           Redim names(Ubound(sendto))
  5638.           For i = 0 To Ubound(sendto)
  5639.                names(i) = GetInviteeMailAddress(Cstr(sendto(i)))
  5640.           Next
  5641.           notice.SendTo = names
  5642.           Call notice.Send(False)
  5643.           Messagebox "A confirmation notice has been sent to the invitees.",0,"Status"
  5644.      End If
  5645. End Sub
  5646. tmpAccepted
  5647. tmpWaiting
  5648.     0S0E
  5649. tmpDelegee
  5650. tmpDeclined
  5651. tmpDelegated
  5652.     0S0E
  5653. (InviteeResponses)'++LotusScript Development Environment:2:5:(Options):0:66
  5654. '++LotusScript Development Environment:2:5:(Forward):0:1
  5655. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  5656. Declare Sub Postopen(Source As Notesuidocument)
  5657. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5658. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5659. Private Sub BindEvents(Byval Objectname_ As String)
  5660.      Static Source As NOTESUIDOCUMENT
  5661.      Set Source = Bind(Objectname_)
  5662.      On Event Queryopen From Source Call Queryopen
  5663.      On Event Postopen From Source Call Postopen
  5664. End Sub
  5665. '++LotusScript Development Environment:2:2:Queryopen:1:12
  5666. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  5667.      
  5668. End Sub
  5669. '++LotusScript Development Environment:2:2:Postopen:1:12
  5670. Sub Postopen(Source As Notesuidocument)
  5671.      Set uidoc = source
  5672.      Call InstantiateObjectVariables
  5673.      Call CreateInviteeTable(note)
  5674. End Sub
  5675.     0S0E
  5676.     Print
  5677. NoticeType
  5678.     1S2S
  5679. '++LotusScript Development Environment:2:5:(Options):0:66
  5680. '++LotusScript Development Environment:2:5:(Forward):0:1
  5681. Declare Sub Click(Source As Button)
  5682. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5683. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5684. Private Sub BindEvents(Byval Objectname_ As String)
  5685.      Static Source As BUTTON
  5686.      Set Source = Bind(Objectname_)
  5687.      On Event Click From Source Call Click
  5688. End Sub
  5689. '++LotusScript Development Environment:2:2:Click:1:12
  5690. Sub Click(Source As Button)
  5691.      Call SendConfirmation
  5692. End Sub
  5693. New Button
  5694. Need a newer version of Notes to execute this button.
  5695.     0S0E
  5696.     Send Confirmation
  5697. Broadcast
  5698.     1S2S
  5699.  Accepted
  5700. Counter proposed
  5701. tmpAccepted
  5702.     0S0E
  5703. dispAccepted
  5704. tmpCounterc
  5705.     0S0E
  5706. dispCounter
  5707.  Delegated
  5708. Declined
  5709. tmpDelegated^
  5710. tmpDelegated
  5711.  -> "
  5712. tmpDelegee
  5713.     6S7S8S9S10S11S23S24S25S26S
  5714. dispDelegated
  5715. tmpDeclined
  5716.     0S0E
  5717. dispDeclined
  5718.  No response
  5719. Removed
  5720. tmpWaiting
  5721.     0S0E
  5722. dispWaiting
  5723. tmpUninvited
  5724.     0S0E
  5725. dispUnivited
  5726. tmpResAccepted
  5727.     1S2S
  5728. tmpResAccepted^
  5729. tmpResDeclined^
  5730. tmpResWaiting
  5731.     4S5S6S7S11S12S13S14S18S19S
  5732. Rooms/Resources
  5733.  Reserved
  5734. Unavailable
  5735. tmpResAccepted
  5736. dispResAccepted
  5737. tmpResDeclined
  5738. dispResDeclined
  5739.  No response
  5740. tmpResWaiting
  5741. dispResWaiting
  5742. O=Lotus Notes
  5743. O=Lotus Notes
  5744. PURSAFO
  5745. |.:#U
  5746. O=Lotus Notes
  5747. CN=Lotus Notes Template Development/O=Lotus Notes
  5748. PURSAFO
  5749. Fde!f^^
  5750. $SCRIPTOBJ_6
  5751. $FormPublicAccess
  5752. $TITLE
  5753. $INFO
  5754. $Script
  5755. $$Script_O
  5756. $$ScriptName
  5757. $$FormScript
  5758. $$$FormScript_O
  5759. $BODY
  5760. $PublicAccess
  5761. (PeopleListDlg)
  5762. tmpPeopleList
  5763. tmpPeopleSelected
  5764. tmpPeopleList
  5765.     0S0E
  5766. tmpHeader
  5767. tmpHeader
  5768. O=Lotus Notes
  5769. O=Lotus Notes
  5770. PURSAFO
  5771. |.:#U
  5772. O=Lotus Notes
  5773. CN=Lotus Notes Template Development/O=Lotus Notes
  5774. PURSAFO
  5775. Fde!f^^
  5776. %%3Y~
  5777. $FormPublicAccess
  5778. $TITLE
  5779. $INFO
  5780. $$Script_O
  5781. $$ScriptName
  5782. $BODY
  5783. $PublicAccess
  5784. *** Message Not Delivered ***
  5785.  NonDelivery Report
  5786. Delivery Failure Report
  5787.     Your document:
  5788. Subject
  5789. OriginalSubject
  5790.     was not delivered to
  5791. IntendedRecipient
  5792. IntendedRecipient
  5793.     0S0E
  5794. IntendedRecipient
  5795.     because:
  5796. FailureReason
  5797. FailureReason
  5798. $HideMailHeader
  5799.     0S0E
  5800.     What should you do?
  5801.     You can resend the undeliverable document to the recipients listed above by choosing the Resend button or the Resend command on the Actions menu.  
  5802.     Once you have resent the document you may delete this Delivery Failure Report.
  5803.     If resending the document is not successful you will receive a new failure report
  5804.     Unless you receive other Delivery Failure Reports, the document was successfully delivered to all other recipients.
  5805. Routing path
  5806. RouteServers
  5807. RouteServersServers along route.
  5808.     ________________________
  5809.     To:    
  5810. SendTo
  5811. SendToList of people to send document.
  5812.     cc:    
  5813. CopyTo
  5814. CopyToList of people to send copies of document.
  5815.     From:    
  5816. FromPerson document is from.
  5817.     Date:    
  5818. PostedDateY
  5819. PostedDateJ
  5820. DateTime/date memo was created or mailed.
  5821.     Subject:    
  5822. Subject
  5823. SubjectSubject of document.
  5824. BodyBody of document.
  5825. Categori_ze
  5826. Closee 
  5827.     0S0E
  5828. Edit Document
  5829. Resend
  5830. Resend|
  5831.     7S9S
  5832. SaveOptions
  5833.     0R1S2S3S
  5834. _Forward
  5835. _Move to Folder...
  5836. _Remove from Folder...    
  5837. O=Lotus Notes
  5838. O=Lotus Notes
  5839. PURSAFO
  5840. |.:#U
  5841. O=Lotus Notes
  5842. CN=Lotus Notes Template Development/O=Lotus Notes
  5843. PURSAFO
  5844. Fde!f^^
  5845. $TITLE
  5846. $INFO
  5847. $WINDOWTITLE
  5848. $$ScriptName
  5849. $BODY
  5850. $ACTIONS
  5851.  StdNotesLtr28
  5852. tmpDisplayFrom_Preview
  5853. tmpFrom
  5854. tmpDisplayDate_Preview
  5855. tmpDate
  5856. O=Lotus Notes
  5857. O=Lotus Notes
  5858. PURSAFO
  5859. |.:#U
  5860. O=Lotus Notes
  5861. CN=Lotus Notes Template Development/O=Lotus Notes
  5862. PURSAFO
  5863. Fde!f^^
  5864. ebXry
  5865. Q^,v:y@
  5866. $TITLE
  5867. $INFO
  5868. $$ScriptName
  5869. $BODY
  5870. &Arial
  5871.  StdNotesLtr7
  5872. tmpDisplayFrom_Preview
  5873. tmpFrom
  5874. tmpDisplayDate_Preview
  5875. tmpDate
  5876. O=Lotus Notes
  5877. O=Lotus Notes
  5878. PURSAFO
  5879. |.:#U
  5880. O=Lotus Notes
  5881. CN=Lotus Notes Template Development/O=Lotus Notes
  5882. PURSAFO
  5883. Fde!f^^
  5884. :oKM5
  5885. $TITLE
  5886. $INFO
  5887. $$ScriptName
  5888. $BODY
  5889. (ChangeRepeating)
  5890. ChangeWhich
  5891. Just this one|0All|1All previous|2All future|3
  5892. Change:
  5893. O=Lotus Notes
  5894. O=Lotus Notes
  5895. PURSAFO
  5896. |.:#U
  5897. O=Lotus Notes
  5898. CN=Lotus Notes Template Development/O=Lotus Notes
  5899. PURSAFO
  5900. Fde!f^^
  5901. A    ATP
  5902. $FormPublicAccess
  5903. $TITLE
  5904. $INFO
  5905. $$Script_O
  5906. $$ScriptName
  5907. $BODY
  5908. $PublicAccess
  5909. &Arial
  5910.  StdNotesLtr26
  5911. tmpDisplayFrom_Preview
  5912. tmpFrom
  5913. tmpDisplayDate_Preview
  5914. tmpDate
  5915. O=Lotus Notes
  5916. O=Lotus Notes
  5917. PURSAFO
  5918. |.:#U
  5919. O=Lotus Notes
  5920. CN=Lotus Notes Template Development/O=Lotus Notes
  5921. PURSAFO
  5922. Fde!f^^
  5923. O}\Pq
  5924. $TITLE
  5925. $INFO
  5926. $Header
  5927. $$ScriptName
  5928. $BODY
  5929. Times New Roman
  5930.  StdNotesLtr15
  5931. tmpDisplayFrom_Preview
  5932. tmpFrom
  5933. tmpDisplayDate_Preview
  5934. tmpDate
  5935. O=Lotus Notes
  5936. O=Lotus Notes
  5937. PURSAFO
  5938. |.:#U
  5939. O=Lotus Notes
  5940. CN=Lotus Notes Template Development/O=Lotus Notes
  5941. PURSAFO
  5942. Fde!f^^
  5943. #>Q40V
  5944. $TITLE
  5945. $INFO
  5946. $$ScriptName
  5947. $BODY
  5948. (CalendarHelp)
  5949.     Calendar entry--new ->tmpContext = 0
  5950. tmpContext
  5951.     1S2S
  5952.     When you create a calendar entry, you can specify the type of entry you want to create. You can create an appointment, meeting invitation, event, reminder, or anniversary. 
  5953.     To specify the type of calendar entry, click a
  5954.     type at the top of the document. Notes displays different
  5955.     fields depending on
  5956.     the calendar type
  5957.     you select.
  5958.     Enter information in the calendar entry
  5959.     fields Notes displays.  
  5960.     set an alarm that reminds you about
  5961.     the calendar entry,
  5962.     click Alarm options and specify information about the alarm.
  5963.     To repeat the calendar entry at specified intervals, click Repeat and specify information about how often and how long you want the entry to repeat.
  5964.     To check your calendar as you are entering information, click Check Calendar. To return to the document, press ESC.
  5965.     Click Save and Close when you finish entering information
  5966.     for the calendar entry.
  5967.     If you created a meeting invitation, click Yes to send
  5968.     invitations to the invitees.
  5969.     For information on
  5970.     each type of calendar entry, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  5971.     Calendar entry--existing -> tmpContext = 1
  5972. tmpContext
  5973.     1S2S
  5974.     You can make changes to an appointment, event, reminder, or anniversary.
  5975.     If you have not already done so, click Edit Document.
  5976.     Make changes in 
  5977.     any of
  5978.     the calendar entry
  5979.     fields Notes displays.
  5980.     To set an alarm that reminds you about the calendar entry, click Alarm options and specify information about the alarm.
  5981.     To check your calendar as you are making changes, click Check Calendar. To return to the document, press ESC.
  5982.     Click Save and Close.
  5983.     For information on calendar entries, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  5984.     Invitation--existing entry (chair) -> tmpContext = "2"
  5985. tmpContext
  5986.     1S2S
  5987.     After you create a meeting invitation, you can make changes to the document by clicking Edit Document and doing the following:
  5988.     Display responses to a meeting invitation by clicking "Display invitee responses."
  5989.     Change the date, time, or location of the meeting by clicking Edit Document and changing the date or time fields or the reservation section. 
  5990.     Remove an invitee from the invitation list by clicking Edit Document
  5991.     and choosing Actions - Remove - Invitees.
  5992.     Cancel a room or resource reservation by clicking Edit Document and choosing Actions - Remove - Rooms & Resources.
  5993.     Send a confirmation to the invitees by clicking Send Confirmation.
  5994.     Cancel a meeting by choosing Actions - Cancel Meeting.
  5995.     Accept a meeting invitation for an invitee by choosing Actions - Change Status to Accepted.
  5996.     For information on calendar entries, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  5997.     Invitation (invitee--action already taken) -> tmpContext = "3"
  5998. tmpContext
  5999.     1S2S
  6000.     You can make changes to a meeting invitation if necessary.
  6001.     If you have not already done so, click Edit Document.
  6002.     Make changes in 
  6003.     any of
  6004.     the calendar entry
  6005.     fields Notes displays.
  6006.     change your response to the meeting invitation, choose Actions - Other and select
  6007.     a different response
  6008.     Click Save and Close.
  6009.     For information on meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6010.     Invitation (invitee - no action taken yet) -> tmpContext = "4"
  6011. tmpContext
  6012.     1S2S
  6013.     When you receive a meeting invitation, you can:
  6014.     Accept the meeting invitation by clicking Accept.
  6015.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In.
  6016.     Decline the meeting invitation by clicking Decline.
  6017.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  6018.     Propose a different time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  6019.     When you receive a broadcast meeting invitation, you can add the broadcast meeting to your calendar by clicking Add to Calendar.
  6020.     You can also accept meeting invitations from all or from selected people
  6021.     automatically by using the Meetings option under Autoprocessing Options
  6022.     in your Calendar Profile.
  6023.     For information on responding to meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6024.     Declined -> tmpContext = "5"
  6025. tmpContext
  6026.     1S2S
  6027.     The person you invited to the meeting declined your meeting invitation.
  6028.     To view a list of invitee responses, open the meeting invitation in the Calendar view and click "Display invitee responses."
  6029.     For information on meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6030.     Change proposal ->tmpContext = "6"
  6031. tmpContext
  6032.     1S2S
  6033.     Someone you invited to the meeting proposed an alternative time or location for your meeting. You can accept or decline the proposal. 
  6034.     To accept, click "Accept Counter Proposal." Notes sends a new invitation with the updated meeting information to all invitees. To decline, click "Decline Counter Proposal." Notes sends a message telling the invitee who proposed the change that you declined it.
  6035.     For information on meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6036.     Reschedule ->tmpContext = "7"
  6037. tmpContext
  6038.     1S2S
  6039.     The meeting chairperson rescheduled this meeting. You can respond to the rescheduled meeting invitation in one of the following ways:
  6040.     Accept the meeting invitation by clicking Accept.
  6041.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In. 
  6042.     Decline the meeting invitation by clicking Decline.
  6043.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  6044.     Propose a different time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  6045.     When you receive a broadcast meeting invitation, you can add the broadcast meeting to your calendar by clicking Add to Calendar.
  6046.     You can also accept meeting invitations automatically from all or selected people by using the Meetings option under Autoprocessing Options in your Calendar Profile.
  6047.     For information on responding to meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6048.     Acceptance ->tmpContext = "8"
  6049. tmpContext
  6050.     1S2S
  6051.     The person you invited to the meeting accepted your meeting invitation. 
  6052.     To view a list of invitee responses, open the meeting invitation in the Calendar view and click "Display invitee responses."
  6053.     For information on meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6054.     Counter proposal declined ->tmpContext = "9"
  6055. tmpContext
  6056.     1S2S
  6057.     The meeting chairperson declined the alternative time or location you proposed. You can respond to the meeting invitation in one of the following ways:
  6058.     Accept the meeting invitation by clicking Accept.
  6059.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In. 
  6060.     Decline the meeting invitation by clicking Decline.
  6061.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  6062.     Propose another time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  6063.     You can also accept meeting invitations automatically from all or selected people by using the Meetings option under Autoprocessing Options in your Calendar Profile.
  6064.     For information on responding to meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6065.     Cancelled ->tmpContext = "10"
  6066. tmpContext
  6067.     1S2S
  6068.     The chairperson cancelled this meeting. You do not need to respond to this message. Notes automatically removed the meeting from your calendar.
  6069.     For information on meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6070.     Status update - Uninvite -> tmpContext = "11"
  6071. tmpContext
  6072.     1S2S
  6073.     You are no longer required to attend this meeting. You do not need to respond to this message. Notes automatically removed the meeting from your calendar.
  6074.     For information on meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6075.     Status update - Change Status to Accepted -> tmpContext = "12"
  6076. tmpContext
  6077.     1S2S
  6078.     You are required to attend this meeting. You do not need to respond to this message. Notes automatically added the meeting to your calendar.
  6079.     For information on responding to meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6080.     Confirmation -> tmpContext = "13"
  6081. tmpContext
  6082.     1S2S
  6083.     The chairperson sent this message to remind you of an upcoming meeting. You do not need to respond to this message. If you can no longer attend the meeting, open the original meeting invitation and choose Actions - I Can No Longer Attend.
  6084.     For information on meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6085.     Delegation -> tmpContext = "14"
  6086. tmpContext
  6087.     1S2S
  6088.     Someone delegated this meeting invitation to you. You can respond to the meeting invitation in one of the following ways:
  6089.     Accept the meeting invitation by clicking Accept.
  6090.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In. 
  6091.     Decline the meeting invitation by clicking Decline.
  6092.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  6093.     Propose a different time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  6094.     You can also accept meeting invitations automatically from all or selected people by using the Meetings option under Autoprocessing Options in your Calendar Profile.
  6095.     For information on responding to meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6096.     Delegated Invitation -> tmpContext = "15"
  6097. tmpContext
  6098.     1S2S
  6099.     The person you invited to this meeting delegated the invitation to someone else. 
  6100.     To view a list of invitee responses, open the meeting invitation in the Calendar view and click "Display invitee responses."
  6101.     For information on meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6102.     Invitation (invitee--action already taken) -> tmpContext = "16"
  6103. tmpContext
  6104.     1S2S
  6105.     You can make changes to a meeting invitation if necessary.
  6106.     If you have not already done so, click Edit Document.
  6107.     Make changes in any of
  6108.     the calendar entry
  6109.     fields Notes displays.
  6110.     change your response to the meeting invitation, choose Actions - Other and select
  6111.     a different response.
  6112.     Click Save and Close.
  6113.     For information on meeting invitations, choose Help - Help Topics, select How do I...?, select Do Everyday Tasks, and select 07 Use the Calendar, Assign Tasks, and Schedule Meetings.
  6114.     Propose alternative time/location -> tmpContext = "17"
  6115. tmpContext
  6116.     1S2S
  6117.     You proposed a different time or location for the meeting. Notes sends this counter-proposal to the meeting chairperson.
  6118.     When the chairperson accepts or declines the proposal, Notes sends you the chairperson's response.
  6119. Categori_zeK
  6120. _Edit Document
  6121. Send Docu_ment
  6122. _Forward
  6123. _Move To Folder...
  6124. _Remove From FolderK
  6125. O=Lotus Notes
  6126. O=Lotus Notes
  6127. PURSAFO
  6128. |.:#U
  6129. O=Lotus Notes
  6130. CN=Lotus Notes Template Development/O=Lotus Notes
  6131. PURSAFO
  6132. Fde!f^^
  6133. B@BuW8
  6134. Uo-xO
  6135. $FormPublicAccess
  6136. $TITLE
  6137. $INFO
  6138. $$ScriptName
  6139. $BODY
  6140. $ACTIONS
  6141. $PublicAccess
  6142. New Memo.
  6143.     0S0E
  6144. Delete 
  6145.     0S0E
  6146. Move To Folder...
  6147.     0S0E
  6148. _Forward
  6149. Reply
  6150. Reply
  6151.     0S0E
  6152. Reply With History@
  6153. Reply with history
  6154.     0S0E
  6155. Categori_zeK
  6156. _Edit Document
  6157. Send    
  6158. Resend
  6159. NonDelivery Report
  6160. Not a Delivery Failure Report
  6161. You cannot Resend a message unless it is a Delivery Failure Report.
  6162.     6S12S17S23S
  6163. Convert To TaskK0
  6164. ConvertToTask
  6165. _Move To Folder...
  6166. _Remove From Folder...
  6167. O=Lotus Notes
  6168. O=Lotus Notes
  6169. PURSAFO
  6170. |.:#U
  6171. O=Lotus Notes
  6172. CN=Lotus Notes Template Development/O=Lotus Notes
  6173. PURSAFO
  6174. Fde!f^^
  6175. $Name
  6176. $TITLE
  6177. $Index
  6178. $Formula
  6179. $FormulaClass
  6180. $VIEWFORMAT
  6181. $Comment
  6182. $ACTIONS
  6183. Archive Profile
  6184. Times New Roman
  6185. '++LotusScript Development Environment:2:5:(Options):0:66
  6186. Option Public
  6187. '++LotusScript Development Environment:2:5:(Forward):0:1
  6188. Declare Sub Initialize
  6189. Declare Sub ProcessExistingArchiveDB
  6190. Declare Sub ProcessNonExistingArchiveDB 
  6191. Declare Sub ProcessArchiveDbExists
  6192. Declare Sub CreateNewArchiveDB
  6193. '++LotusScript Development Environment:2:5:(Declarations):0:10
  6194. %INCLUDE "lsconst.lss"
  6195. Dim s As NotesSession
  6196. Dim w As NotesUIWorkspace
  6197. Dim db As NotesDatabase
  6198. Dim existingdb As NotesDatabase
  6199. Dim archivedb As NotesDatabase
  6200. Dim view As NotesView
  6201. Dim note As NotesDocument
  6202. Dim profile As NotesDocument
  6203. Dim archivedoc As NotesDocument
  6204. Dim doc As NotesUIDocument
  6205. Dim DocWasSaved As Integer
  6206. Dim DoNotClose As Variant
  6207. Dim ExistingServer As String
  6208. Dim ExistingPath As String
  6209. '++LotusScript Development Environment:2:2:Initialize:1:10
  6210. Sub Initialize
  6211.      
  6212. End Sub
  6213. '++LotusScript Development Environment:2:2:ProcessExistingArchiveDB:1:12
  6214. Sub ProcessExistingArchiveDB
  6215. an existing archive already exists and the user has choosen to create a new one
  6216. this function gets called on one of two occasions
  6217. either the document has a value in the tmpArchivePath field
  6218. or the user entered a server and path that has an existing database
  6219. we need to handle both cases
  6220. %END REM
  6221.      
  6222. End Sub
  6223. '++LotusScript Development Environment:2:2:ProcessNonExistingArchiveDB:1:8
  6224. Sub ProcessNonExistingArchiveDB 
  6225.      On Error Goto ProcessError         
  6226.      On Error 4005 Goto DbCreateError
  6227.      'render the dialog box to get the location of the archive database
  6228.      If (w.DialogBox("(ArchiveProfileDlg)",True,True,"Specify New Location")) Then
  6229.           'see if the archive database exists
  6230.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  6231.           If (archivedb.IsOpen) Then
  6232.                Msgbox "Database already exists. Enter a new location"
  6233.                ProcessNonExistingArchiveDB          
  6234.           Else
  6235.                Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  6236.                archivedb.Title = db.Title & " (Archive)"
  6237.           End If
  6238.           Call doc.Reload
  6239.           Call doc.Refresh
  6240.      Else
  6241.           note.ArchiveServer = ""
  6242.           note.ArchivePath = ""
  6243.      End If
  6244.      Exit Sub
  6245. DbCreateError:
  6246.      Select Case Msgbox("Error creating archive database. The server may be down or you don't have access to create new databases on the server. Click Yes to try a different location now or No to cancel.",36,"Error")
  6247.      Case 6
  6248.           ProcessNonExistingArchiveDb
  6249.      End Select
  6250.      Exit Sub        
  6251. ProcessError:
  6252.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  6253.      Exit Sub
  6254. End Sub
  6255. '++LotusScript Development Environment:2:2:ProcessArchiveDbExists:1:8
  6256. Sub ProcessArchiveDbExists
  6257.      'this function gets called if a database already exists in the tmpArchiveServer field
  6258.      'render the dialog box to get the location of the archive database
  6259.      On Error 4005 Goto DbCreateError
  6260.      If (w.DialogBox("(ProcessExistingDbDlg)",True,True,"Specify New Location")) Then
  6261.           On Error Resume Next          
  6262.           'see if the archive database exists
  6263.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  6264.           If (archivedb.IsOpen) Then
  6265.                Msgbox "Database already exists. Enter a new location"
  6266.                ProcessArchiveDbExists          
  6267.           Else
  6268.                Call CreateNewArchiveDB
  6269.                archivedb.Title = db.Title & " (Archive)"
  6270.           End If
  6271.           Call doc.reload
  6272.           Call doc.refresh
  6273.      End If        
  6274.      Exit Sub
  6275. DbCreateError:
  6276.      Select Case Msgbox("Error creating archive database. The server may be down or you don't have access to create new databases on the server. Click Yes to try a different location now or No to cancel.",36,"Error")
  6277.      Case 6
  6278.           ProcessNonExistingArchiveDb
  6279.      End Select
  6280.      Exit Sub        
  6281. End Sub
  6282. '++LotusScript Development Environment:2:2:CreateNewArchiveDB:1:8
  6283. Sub CreateNewArchiveDB
  6284.      On Error 4005 Goto DbCreateError
  6285.      On Error Goto ProcessError
  6286.      
  6287. 'first, create the archive database     
  6288.      Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  6289.      
  6290. 'if the profile says to copy new documents, then copy them now
  6291.      If (note.CopyOptions(0) = "1") Then
  6292.           Set allDocs = existingdb.AllDocuments
  6293.           For i = 1 To allDocs.Count          
  6294.                Set archivedoc = allDocs.GetNthDocument(i)     
  6295.                Call archivedoc.CopyToDatabase(archivedb)
  6296.           Next
  6297.      End If
  6298.      
  6299. 'if the profile says we should delete the original archive database, then remove it
  6300.      If (note.DeleteOptions(0) = "1") Then Call existingdb.Remove
  6301.      
  6302.      Exit Sub
  6303. DbCreateError:
  6304.      Select Case Msgbox("Error creating archive database. The server may be down or you don't have access to create new databases on the server. Click Yes to try a different location now or No to cancel.",36,"Error")
  6305.      Case 6
  6306.           ProcessNonExistingArchiveDb
  6307.      End Select
  6308.      Exit Sub        
  6309. ProcessError:
  6310.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  6311.      Exit Sub
  6312. End Sub
  6313.  Archive Profile'++LotusScript Development Environment:2:5:(Options):0:66
  6314. '++LotusScript Development Environment:2:5:(Forward):0:1
  6315. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6316. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  6317. Declare Sub Postopen(Source As Notesuidocument)
  6318. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6319. '++LotusScript Development Environment:2:2:BindEvents:1:129
  6320. Private Sub BindEvents(Byval Objectname_ As String)
  6321.      Static Source As NOTESUIDOCUMENT
  6322.      Set Source = Bind(Objectname_)
  6323.      On Event Queryclose From Source Call Queryclose
  6324.      On Event Querysave From Source Call Querysave
  6325.      On Event Postopen From Source Call Postopen
  6326. End Sub
  6327. '++LotusScript Development Environment:2:2:Queryclose:1:12
  6328. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6329.      
  6330.      If (DocWasSaved = False) Or (profile Is Nothing) Or DoNotClose Then Exit Sub
  6331.      
  6332.      ItemList = profile.Items
  6333.      Forall n In ItemList
  6334.           profile.RemoveItem(n.Name)    
  6335.      End Forall
  6336.      note.CopyAllItems profile
  6337.      profile.SaveOptions = "1"
  6338.      profile.save True, True
  6339.      
  6340. End Sub
  6341. '++LotusScript Development Environment:2:2:Querysave:1:12
  6342. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  6343.      
  6344.      DocWasSaved = True
  6345.      DoNotClose = False     
  6346.      If Not(profile Is Nothing) Then note.SaveOptions = "0"
  6347.      If (note.ArchivePath(0) = "") Then Msgbox "You will need to specify a location of the archive database before you can archive documents.",16     
  6348.      source.Reload
  6349.      source.RefreshHideFormulas  
  6350. End Sub
  6351. '++LotusScript Development Environment:2:2:Postopen:1:12
  6352. Sub Postopen(Source As Notesuidocument)
  6353.      'initialize global variables
  6354.      Set note = source.Document
  6355.      Set w = New NotesUIWorkspace
  6356.      Set s = New NotesSession
  6357.      Set db = s.CurrentDatabase
  6358.      Set view = db.GetView("Archiving")
  6359.      Set doc = source
  6360.      'turn off auto reload to make processing faster
  6361.      source.AutoReload = False
  6362.      'if this is not a new doc, we don't need to continue
  6363.      If Not (source.IsNewDoc) Then Exit Sub
  6364.      'get the existing profile
  6365.      key = "Archive Profile"
  6366.      Set profile = view.GetDocumentByKey(key,False)
  6367.      If profile Is Nothing Then
  6368.           'an existing profile was not found
  6369.           note.ProtectFromArchive = 1
  6370.           note.ExcludeFromView = "D"
  6371.           note.From = "Archiving"
  6372.           note.Subject = "Archive Profile"
  6373.           note.Categories = "(Archive)"
  6374.           Call note.ReplaceItemValue("_ViewIcon", 11)
  6375.           source.reload
  6376.      Else
  6377.           'copy the profile fields to this document
  6378.           ItemList = note.Items
  6379.           Forall n In ItemList
  6380.                note.RemoveItem(n.Name)    
  6381.           End Forall
  6382.           profile.CopyAllItems note
  6383.           source.Reload
  6384.           If source.EditMode Then source.Refresh
  6385.      End If
  6386.      
  6387.      DocWasSaved = False
  6388.      
  6389. End Sub
  6390. K     ,`
  6391. Archive Profile 
  6392. ArchiveExpired
  6393. Archive Expired documents | Yes
  6394.     after
  6395. ExpiredLife
  6396. Number cannot be negative.{
  6397.     3S4S6S11SExpiredLife
  6398.     days
  6399. ArchiveInactive
  6400. Archive documents which have no activity | Yes
  6401.     after
  6402. DocumentLife
  6403. Number cannot be negative.{
  6404.     3S4S6S11SDocumentLife
  6405.     days
  6406. ArchiveLog
  6407. Generate an Archive Log each time an archive occurs | Yes
  6408. IncludeDoclinks
  6409. Include document links | Yes
  6410.     Archive Profile editors:
  6411. ProfileEditors
  6412.     Archive Server:
  6413. ArchivePath
  6414. ArchiveServer
  6415. Local
  6416. ArchiveServer
  6417.     3S4S9S10S12S14StmpArchiveServer
  6418.     Archive Path:
  6419. ArchivePath
  6420. tmpArchivePath
  6421. Categori_ze
  6422. _Edit Document
  6423. Send Docu_ment
  6424. _Forward
  6425. Close
  6426.     0S0E
  6427. Save Profile 
  6428.     0S0E
  6429. Specify Archive Location'++LotusScript Development Environment:2:5:(Options):0:66
  6430. '++LotusScript Development Environment:2:5:(Forward):0:1
  6431. Declare Sub Click(Source As Button)
  6432. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6433. '++LotusScript Development Environment:2:2:BindEvents:1:129
  6434. Private Sub BindEvents(Byval Objectname_ As String)
  6435.      Static Source As BUTTON
  6436.      Set Source = Bind(Objectname_)
  6437.      On Event Click From Source Call Click
  6438. End Sub
  6439. '++LotusScript Development Environment:2:2:Click:1:12
  6440. Sub Click(Source As Button)
  6441.      
  6442. 'see if an archive database already exists based upon some field values
  6443.      If (Len(note.tmpArchivePath(0)) >0) Then
  6444.           If (note.tmpArchiveServer(0) = "Local") Then
  6445.                Fullpath$ = note.tmpArchivePath(0)
  6446.                ExistingServer = ""
  6447.           Else
  6448.                Fullpath$ = note.tmpArchiveServer(0) + "!!" + note.tmpArchivePath(0)
  6449.                ExistingServer = note.tmpArchiveServer(0)
  6450.           End If
  6451.           ExistingPath = note.tmpArchivePath(0)
  6452.           Set existingdb = New NotesDatabase(ExistingServer,ExistingPath)
  6453.           If (existingdb.IsOpen) Then
  6454.                Select Case Msgbox("The database (" + Fullpath$ + ") already exists. To create a new database, select OK, otherwise click Cancel",33,"Database already exists")
  6455.                Case IDOK: ProcessArchiveDBExists
  6456.                End Select
  6457.           Else
  6458.                ProcessNonExistingArchiveDB
  6459.           End If
  6460.      Else
  6461.           ProcessNonExistingArchiveDB
  6462.      End If
  6463. End Sub
  6464. InstructionsF
  6465. (ArchiveInstructions)
  6466.     2S4S
  6467. _Move to Folder...    
  6468. _Remove from Folderr
  6469. O=Lotus Notes
  6470. O=Lotus Notes
  6471. PURSAFO
  6472. |.:#U
  6473. O=Lotus Notes
  6474. CN=Lotus Notes Template Development/O=Lotus Notes
  6475. PURSAFO
  6476. Fde!f^^
  6477. DocLife
  6478. ArchiveDate
  6479. ObsoleteLife
  6480. $ManualArchivers_O
  6481. $TITLE
  6482. $INFO
  6483. $WINDOWTITLE
  6484. $Script
  6485. $$Script_O
  6486. $$ScriptName
  6487. $$FormScript
  6488. $$$FormScript_O
  6489. ExpiredLife
  6490. DocumentLife
  6491. $BODY
  6492. $ACTIONS
  6493. $SCRIPTOBJ_6
  6494. Times New Roman
  6495.  (ArchiveInstructions)
  6496. Archive Profile Help
  6497. The Archive Profile allows you to specify which documents should be removed from the current database and stored in an archive database.  This allows you to keep your discussion up-to-date with only the latest topics.  
  6498. You can choose the following in your ArchiveProfile:
  6499.     Archive expired documents
  6500.         Choose this option if you wish to archive documents which have been marked as expired. Indicate the number of days to wait before the expired documents are archived.
  6501.     Archive documents which have no activity
  6502.         Choose this option if you wish to archive documents which have had no activity. Indicate the number of days to wait before the inactive documents are archived.    
  6503.     Generate an Archive Log each time an archive occurs
  6504.         Choose this option if you wish to have an Archive Log created when documents are archived.  You can also indicate if you would like document links to the archived documents included in the Archive Log.
  6505.     Specify Archive Location:
  6506.         Click on this button to specify the server and filename of the Archive database. The archive database is created for you based upon the values specified in the dialog box.
  6507. Categori_ze
  6508. _Edit Document
  6509. Send Docu_ment
  6510. _Forward
  6511. _Move To Folder...
  6512. _Remove From Folderm
  6513. O=Lotus Notes
  6514. O=Lotus Notes
  6515. PURSAFO
  6516. |.:#U
  6517. O=Lotus Notes
  6518. CN=Lotus Notes Template Development/O=Lotus Notes
  6519. PURSAFO
  6520. Fde!f^^
  6521. $TITLE
  6522. $INFO
  6523. $$ScriptName
  6524. $BODY
  6525. $ACTIONS
  6526. $PublicAccess
  6527. Temporary Export Certificate
  6528. "Helvetica
  6529.  Temporary Export Certificate'++LotusScript Development Environment:2:5:(Options):0:66
  6530. '++LotusScript Development Environment:2:5:(Forward):0:1
  6531. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6532. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6533. '++LotusScript Development Environment:2:2:BindEvents:1:129
  6534. Private Sub BindEvents(Byval Objectname_ As String)
  6535.      Static Source As NOTESUIDOCUMENT
  6536.      Set Source = Bind(Objectname_)
  6537.      On Event Queryclose From Source Call Queryclose
  6538. End Sub
  6539. '++LotusScript Development Environment:2:2:Queryclose:1:12
  6540. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6541.      
  6542.      On Error Resume Next
  6543.      source.Document.PutInFolder("Temporary Export Certificates")
  6544.      
  6545. End Sub
  6546. FieldCle
  6547. MicrosoftWord R
  6548. .WPD;*.WPT;*.DOC
  6549. Certificate for Temporary Export of 
  6550.               
  6551. Lotus Notes, North American version
  6552.     Personal information:
  6553.     Name:    
  6554.     Company name:    
  6555. CompanyName
  6556.     Travel information:
  6557.     Destination(s):    
  6558. Agreement
  6559. Destination
  6560. You must enter a destination.
  6561.     3S4S5S6S7S8S10S15S
  6562. Destination
  6563.     Product(s)
  6564. Lotus Notes (North American version)
  6565. Agreement
  6566. Product
  6567. You must enter a product.
  6568.     3S4S5S6S7S8S10S15S
  6569. Product
  6570.     U.S. departure date:    
  6571. Only do translation if not already in time format.
  6572. DepartureDate
  6573. DepartureDate
  6574.     0R7S15S
  6575. pcDate
  6576. DepartureDate
  6577.     0RR1S2S
  6578. TodayInt,
  6579.     0RR1S2S
  6580. ConNext
  6581. pcDate
  6582. nextG
  6583.     0R1S2S8S11S13S
  6584. AdjustAmount
  6585. pcDate
  6586. pcDate
  6587. pcDate
  6588. pcDate
  6589. pcDate
  6590. pcDate
  6591. pcDate
  6592.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  6593. AdjustAmount
  6594. ConNext
  6595. pcDateW
  6596.     0RR3S4S5S6S8S19S
  6597. AdjustAmount
  6598. ConNext
  6599. TodayInt#
  6600.     0R6S8S10S20S22S24S
  6601. Agreement
  6602. DepartureDate
  6603. You must enter a departure date.{
  6604.     3S4S5S6S7S8S10S15S
  6605. DepartureDate
  6606.     U.S. return date:    
  6607. Only do translation if not already in time format.
  6608. ReturnDate]
  6609. ReturnDateK
  6610.     0R7S15S
  6611. pcDate
  6612. ReturnDatea
  6613.     0RR1S2S
  6614. TodayInt,
  6615.     0RR1S2S
  6616. ConNext
  6617. pcDate
  6618. nextG
  6619.     0R1S2S8S11S13S
  6620. AdjustAmount
  6621. pcDate
  6622. pcDate
  6623. pcDate
  6624. pcDate
  6625. pcDate
  6626. pcDate
  6627. pcDate
  6628.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  6629. AdjustAmount
  6630. ConNext
  6631. pcDateW
  6632.     0RR3S4S5S6S8S19S
  6633. AdjustAmount
  6634. ConNext
  6635. TodayInt#
  6636.     0R6S8S10S20S22S24S
  6637. ReturnDate
  6638. Agreement
  6639. I hereby certify|Yes
  6640.     , by checking this box, that I have complied with the requirements of U.S. export law, specifically, 22 CFR 123.27, pertaining to the "temporary" export of cryptographic products for "personal" use.
  6641.     I certify that:
  6642.     the use of the product identified above was solely for personal use and not for sales, demonstration or marketing purposes;
  6643.     only one copy of the product identified above was exported and it remained in my possession (and was not sent separately) during this travel;
  6644.     I did not travel to a country to which exports are prohibited (countries on which a "ban or embargo" has been 
  6645.     imposed
  6646.      by the U.S. government or United Nations); and
  6647.     I have no knowledge or reason to believe the products were copied, transferred, stolen, or compromised while abroad.
  6648.    .   .   
  6649.    .   .  
  6650.     Explanation of law: 
  6651.     The Personal Use Exemption authorizes temporary export of cryptographic products for personal use by U.S.citizens and lawful permanent residents when travelling abroad. The exemption requires the traveller to keep certain records and report instances where the product was stolen or otherwise compromised. There are no other export related requirements such as export licenses or Shipper's Export Declarations.
  6652.     Requirements:
  6653.     - Use of the cryptographic items must be for personal use and not for sales, marketing, or demonstration purposes 
  6654.     - Only one copy of a cryptographic item may be exported (i.e. one phone, one laptop,etc.) and one copy each of cryptographic software to be used on simultaneously exported hardware.
  6655.     - The Exemption cannot be used for travel to countries which have been identified as supporting terrorism or those under certain United Nations embargoes. These countries currently are Cuba, Iran, Iraq, Libya, North Korea, Sudan and Syria.
  6656.     - The cryptographic products must be hand carried (may be included with accompanying baggage), not sent separately, and must be returned to the U.S. at the completion of the stay abroad. Upon request of a U.S. Customs officer, the exporter will submit the products for inspection.
  6657.     - The exporter must keep records for five years from the date the trip commenced. The records must include the description of the handcarried cryptographic products; dates and countries visited; dates of leaving the U.S. and re-entry. The record is to contain a statement that all conditions of the Exemption as outlined above were met and that no products were stolen, transferred or otherwise compromised. 
  6658.     - The exporter also has a duty to report to the U.S. Department of State, Office of Defense Trade Controls, any loss, transfer, copy, or compromise of the product while abroad within 10 days of returning to the U.S. (If the exporter has a reason to know any of these events has occurred he or she should immediately inform the Department of State.)
  6659. Temporary Export Certificate - 
  6660. Destination
  6661. DepartureDate
  6662.     1S2S3S4S5S6S
  6663. Subject
  6664. _ViewIcon
  6665. ExcludeFromView
  6666. Closeo 
  6667.     0S0E
  6668. _Edit Document
  6669. Categori_ze
  6670. Send Docu_ment
  6671. _Forward
  6672. _Move To Folder...
  6673. _Remove From Folder
  6674. O=Lotus Notes
  6675. O=Lotus Notes
  6676. PURSAFO
  6677. |.:#U
  6678. O=Lotus Notes
  6679. CN=Lotus Notes Template Development/O=Lotus Notes
  6680. PURSAFO
  6681. Fde!f^^
  6682. $TITLE
  6683. $INFO
  6684. $WINDOWTITLE
  6685. $$Script_O
  6686. $$ScriptName
  6687. $$FormScript
  6688. $$$FormScript_O
  6689. $BODY
  6690. $ACTIONS
  6691. Squiggle with BackdropStdNotesLtr22CU3
  6692. CN=Paul DiCristina/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################################################
  6693. MarqueeStdNotesLtr34CU3
  6694. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###############
  6695. From The DeskStdNotesLtr8CU3
  6696. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################
  6697. $FORWARDSEPCU3
  6698. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################
  6699. TapeStdNotesLtr25CU3
  6700. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################
  6701. Yellow GradientStdNotesLtr33CU3
  6702. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  6703. ##########################################################
  6704. Buck Rogers MailStdNotesLtr2CU3
  6705. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  6706. ##########################################################
  6707. TacksStdNotesLtr24CU3
  6708. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################
  6709. (ArchiveProfileDlg)1CDU
  6710. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  6711. ##########################################################
  6712. _Special\_Memo To Database ManagerMemow
  6713. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################################
  6714. (LetterHeadChooser)
  6715. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCDw###########
  6716. GatewayStdNotesLtrGatewayCU3
  6717. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  6718. ##########################################################
  6719. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  6720. ##########################################################
  6721. ##########################################################
  6722. &Arial
  6723.  StdNotesLtr22
  6724.                                 
  6725. tmpDisplayFrom_Preview
  6726. tmpFrom
  6727. tmpDisplayDate_Preview
  6728. tmpDate
  6729. O=Lotus Notes
  6730. O=Lotus Notes
  6731. PURSAFO
  6732. |.:#U
  6733. O=Lotus Notes
  6734. CN=Lotus Notes Template Development/O=Lotus Notes
  6735. PURSAFO
  6736. Fde!f^^
  6737. )RF~E
  6738. $TITLE
  6739. $INFO
  6740. $Header
  6741. $$ScriptName
  6742. $BODY
  6743. &Arial
  6744.  StdNotesLtr34
  6745. tmpDisplayFrom_Preview
  6746. tmpFrom
  6747. tmpDisplayDate_Preview
  6748. tmpDate
  6749. O=Lotus Notes
  6750. O=Lotus Notes
  6751. PURSAFO
  6752. |.:#U
  6753. O=Lotus Notes
  6754. CN=Lotus Notes Template Development/O=Lotus Notes
  6755. PURSAFO
  6756. Fde!f^^
  6757. $TITLE
  6758. $INFO
  6759. $$ScriptName
  6760. $BODY
  6761.  StdNotesLtr8
  6762. tmpDisplayFrom_Preview
  6763. tmpFrom
  6764. tmpDisplayDate_Preview
  6765. tmpDate
  6766. O=Lotus Notes
  6767. O=Lotus Notes
  6768. PURSAFO
  6769. |.:#U
  6770. O=Lotus Notes
  6771. CN=Lotus Notes Template Development/O=Lotus Notes
  6772. PURSAFO
  6773. Fde!f^^
  6774. $TITLE
  6775. $INFO
  6776. $$ScriptName
  6777. $BODY
  6778. ----------------------
  6779.  Forwarded by 
  6780. ForwardedFrom
  6781. ForwardedDate
  6782. ---------------
  6783. --------
  6784. O=Lotus Notes
  6785. O=Lotus Notes
  6786. PURSAFO
  6787. |.:#U
  6788. O=Lotus Notes
  6789. CN=Lotus Notes Template Development/O=Lotus Notes
  6790. PURSAFO
  6791. Fde!f^^
  6792. 6/Jd-
  6793. $TITLE
  6794. $INFO
  6795. $Header
  6796. ForwardedDate
  6797. $BODY
  6798.  StdNotesLtr25
  6799. tmpDisplayFrom_Preview
  6800. tmpFrom
  6801. tmpDisplayDate_Preview
  6802. tmpDate
  6803. O=Lotus Notes
  6804. O=Lotus Notes
  6805. PURSAFO
  6806. |.:#U
  6807. O=Lotus Notes
  6808. CN=Lotus Notes Template Development/O=Lotus Notes
  6809. PURSAFO
  6810. Fde!f^^
  6811. $TITLE
  6812. $INFO
  6813. $$ScriptName
  6814. $BODY
  6815.  StdNotesLtr33
  6816. tmpDisplayFrom_Preview
  6817. tmpFrom
  6818. tmpDisplayDate_Preview
  6819. tmpDate
  6820. O=Lotus Notes
  6821. O=Lotus Notes
  6822. PURSAFO
  6823. |.:#U
  6824. O=Lotus Notes
  6825. CN=Lotus Notes Template Development/O=Lotus Notes
  6826. PURSAFO
  6827. Fde!f^^
  6828. $TITLE
  6829. $INFO
  6830. $Header
  6831. $$Script_O
  6832. $$ScriptName
  6833. $BODY
  6834. &Arial
  6835.  StdNotesLtr2
  6836. tmpDisplayFrom_Preview
  6837. tmpFrom
  6838. tmpDisplayDate_Preview
  6839. tmpDate
  6840. O=Lotus Notes
  6841. O=Lotus Notes
  6842. PURSAFO
  6843. |.:#U
  6844. O=Lotus Notes
  6845. CN=Lotus Notes Template Development/O=Lotus Notes
  6846. PURSAFO
  6847. Fde!f^^
  6848. $TITLE
  6849. $INFO
  6850. $Header
  6851. $$ScriptName
  6852. $BODY
  6853.  StdNotesLtr24
  6854. tmpDisplayFrom_Preview
  6855. tmpFrom
  6856. tmpDisplayDate_Preview
  6857. tmpDate
  6858. O=Lotus Notes
  6859. O=Lotus Notes
  6860. PURSAFO
  6861. |.:#U
  6862. O=Lotus Notes
  6863. CN=Lotus Notes Template Development/O=Lotus Notes
  6864. PURSAFO
  6865. Fde!f^^
  6866. $TITLE
  6867. $INFO
  6868. $$ScriptName
  6869. $BODY
  6870. (ArchiveProfileDlg)
  6871. Local
  6872. ArchiveLocation
  6873. Locally | LocalOn Server | Server
  6874. ArchiveLocation
  6875. Local
  6876.     1S2S
  6877.     0S0E
  6878. ArchiveServer
  6879. ArchiveLocation
  6880. Local
  6881. ArchiveServer
  6882. ArchiveServer
  6883.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  6884. ArchiveServer
  6885. CurrentPath
  6886.     1S2S6S
  6887. CurrentFile
  6888. CurrentPath
  6889.     0R1S2S6S
  6890. FileOnly
  6891. CurrentPath
  6892. CurrentFile
  6893. Macintosh
  6894. CurrentPath
  6895. CurrentFile
  6896. CurrentPath
  6897. CurrentFile
  6898. CurrentFile
  6899.     0R1S2S8S11S15S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  6900. DirOnly
  6901. CurrentPath
  6902. Macintosh
  6903. CurrentFile
  6904. CurrentFile
  6905. CurrentFile
  6906. Macintosh
  6907. CurrentPath
  6908. CurrentFile
  6909. CurrentPath
  6910. CurrentFile
  6911.     0R1S2S8S11S14S15S16S21S23S2E24S27S28S34S36S37S39S43S45S46S49S50S51S52S53S57S60S64S66S67S69S70S71S72S73S77S80S84S86S87S89S
  6912. dftvalue
  6913. DirOnly
  6914. FileOnly"
  6915. CurrentPath
  6916.     0RR1S2S3S4S7S8S10S12S13S17S
  6917. Macintosh
  6918. dftvalue
  6919. dftvalue
  6920. dftvalue
  6921. dftvalue
  6922. dftvalue
  6923.     0R3S4S5S6S21S22S23S24S25S26S
  6924. ArchivePath
  6925. Please specify the filename of the archive database
  6926.     3S4S6S11SArchivePath
  6927.     Documents are archived:
  6928.     Archive database is on server:
  6929.     Archive file:
  6930. servers
  6931. names.nsf
  6932. ($ServersLookup)
  6933.     1S2S
  6934. selectedserver
  6935. Server
  6936. Please select a server to create your archive database on.
  6937. ArchiveServer
  6938. servers
  6939.     0R1S2S
  6940. ArchiveServer
  6941. selectedServer
  6942.     0R1S2S3S
  6943. ?_?__
  6944. `!b`1
  6945. 7`^///?
  6946. ?b___
  6947. `bOOO
  6948. `<b!R
  6949. @If(@IsN
  6950. O=Lotus Notes
  6951. O=Lotus Notes
  6952. PURSAFO
  6953. |.:#U
  6954. O=Lotus Notes
  6955. CN=Lotus Notes Template Development/O=Lotus Notes
  6956. PURSAFO
  6957. Fde!f^^
  6958. $TITLE
  6959. $INFO
  6960. $$ScriptName
  6961. $BODY
  6962. $PublicAccess
  6963. Times New Roman
  6964. VersionOpt|
  6965.     6S7S9S14S
  6966. $VersionOpt
  6967.     0R1S2S3S
  6968. SavedOnce
  6969.     0R1S2S3S
  6970. PostedDate(
  6971.     0R1S2S3S
  6972. DeliveredDate
  6973.     0R1S2S3S
  6974. $AutoEditMode
  6975.     0R1S2S3S
  6976. MailSaveOptions
  6977.     0R1S2S3S
  6978. VersionOpt
  6979.     0R4S
  6980. Memo To Database Manager
  6981. Subject
  6982. Subject
  6983. Subject
  6984.     4S6S12S13S14S15S17S21S23S25S26S28S
  6985. '++LotusScript Development Environment:2:5:(Options):0:74
  6986. Option Public
  6987. Use "EmailProcessing"
  6988. Use "DocumentConversions"
  6989. '++LotusScript Development Environment:2:5:(Forward):0:1
  6990. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6991.  Memo'++LotusScript Development Environment:2:5:(Options):0:66
  6992. '++LotusScript Development Environment:2:5:(Forward):0:1
  6993. Declare Sub Postopen(Source As Notesuidocument)
  6994. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  6995. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6996. Declare Sub Postmodechange(Source As Notesuidocument)
  6997. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6998. '++LotusScript Development Environment:2:2:BindEvents:1:129
  6999. Private Sub BindEvents(Byval Objectname_ As String)
  7000.      Static Source As NOTESUIDOCUMENT
  7001.      Set Source = Bind(Objectname_)
  7002.      On Event Postopen From Source Call Postopen
  7003.      On Event Querysave From Source Call Querysave
  7004.      On Event Queryclose From Source Call Queryclose
  7005.      On Event Postmodechange From Source Call Postmodechange
  7006. End Sub
  7007. '++LotusScript Development Environment:2:2:Postopen:1:12
  7008. Sub Postopen(Source As Notesuidocument)
  7009.      
  7010.      Set ws = New NotesUIWorkSpace
  7011.      Set uidoc = source
  7012.      
  7013.      Call EmailOpen
  7014.      
  7015. End Sub
  7016. '++LotusScript Development Environment:2:2:Querysave:1:12
  7017. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  7018.      
  7019.      Call EmailSave(Continue)
  7020.      
  7021. End Sub
  7022. '++LotusScript Development Environment:2:2:Queryclose:1:12
  7023. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  7024.      
  7025.      Call EmailClose(Continue)
  7026.      
  7027. End Sub
  7028. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  7029. Sub Postmodechange(Source As Notesuidocument)
  7030.      
  7031.      Call EmailModeChange
  7032.      
  7033. End Sub
  7034.     Always hidden: 
  7035. Principal
  7036. CalendarProfile
  7037. Owner
  7038.     1S2S3S7S
  7039. Principal
  7040. Principal
  7041.     0R3S4S6S8S
  7042. FromPerson memo is from.
  7043.     0S0E
  7044.     0S0E
  7045. Encrypt
  7046.     0S0E
  7047. DefaultMailSaveOptions
  7048. $KeepPrivate
  7049. $KeepPrivate
  7050. $KeepPrivate
  7051.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  7052.     From:    
  7053. Principal
  7054. Principal
  7055. FromDomain
  7056. FromDomain
  7057. FromDomain
  7058. FromDomain
  7059.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  7060. FromName
  7061. Principal
  7062. Principal
  7063.     0RR1S2S9S11S15S
  7064. FromStops
  7065.     0R1S2S6S
  7066. FromName
  7067. FromStops
  7068. FromStops
  7069. FromStops
  7070.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  7071.      on 
  7072. PostedDateh
  7073. PostedDate
  7074.     4S5S10S12S
  7075. tmpDisplayDateTime/date memo was created or mailed.
  7076. ReplyDate
  7077. ReplyTo
  7078.     1S2S3S4S5S6S
  7079. Please respond
  7080. ReplyTo
  7081. ReplyTo
  7082. ReplyDate
  7083. ReplyDate
  7084.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  7085. $HideMailHeader
  7086. Principal
  7087. Principal
  7088. Principal
  7089. Principal
  7090. Principal
  7091.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  7092.     Sent by:    
  7093. FromDomain
  7094. FromDomain
  7095. FromDomain
  7096. FromDomain
  7097.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  7098. FromName
  7099.     0RR1S2S6S
  7100. FromStops
  7101.     0R1S2S6S
  7102. FromName
  7103. FromStops
  7104. FromStops
  7105. FromStops
  7106.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  7107. SendTo
  7108. CopyTo
  7109.   cc:  
  7110. CopyTo
  7111.     1S8S13S14S2E17S18S21S28S31S
  7112. SendTo}
  7113.     0S0E
  7114. SendToList of primary people to send memo.
  7115.     cc:    
  7116. CopyTo}
  7117.     0S0E
  7118. CopyToList of people to send a copy of the memo.
  7119. DeliveredDate
  7120. BlindCopyTo
  7121. (bcc: 
  7122. BlindCopyTo
  7123.     3S4S5S6S7S8S10S11S12S16S18S19S21SDisplayBlindCopyTo
  7124.     bcc:
  7125. BlindCopyTo
  7126.     0S0E
  7127. BlindCopyToList of undisclosed people to send copies of memo.
  7128.     Subject:    
  7129. PhoneCaller
  7130. Phone Call: 
  7131. PhoneCaller
  7132. Subject
  7133.     7S8S9S11S:
  7134. Subject
  7135.     0S0E
  7136. SubjectSubject of memo.
  7137. Edit Document
  7138. ForwardK 
  7139.     0S0E
  7140. New Memo.
  7141.     0S0E
  7142. Delete 
  7143.     0S0E
  7144. _Move To Folder...
  7145. Delivery Information...Kz
  7146. DeliveryInfo
  7147. Delivery Information
  7148.     4S5S6S7S8S9S10S12S
  7149. _Forward
  7150. Reply
  7151. Reply
  7152.     0S0E
  7153. Reply With History
  7154. Reply with History
  7155. This document is truncated.
  7156.     4S8S10S13S
  7157. Reply with history
  7158. Address... 
  7159.     0S0E
  7160. PostedDateh
  7161.     5S6S7S8S
  7162. Close
  7163.     0S0E
  7164. IsMailStationeryh
  7165. PostedDateh
  7166.     6S7S
  7167. Save As Draft
  7168. tmpAction
  7169. SaveAsDraft
  7170.     1S2S3S
  7171. IsMailStationeryh
  7172. PostedDateh
  7173.     4S5S
  7174. Save and File
  7175.     7S9S
  7176. tmpAction
  7177. SaveAndFile
  7178.     0R1S2S3S
  7179. IsMailStationeryh
  7180. PostedDateY
  7181. PostedDateh
  7182.     4S5S9S10S16S17S18S19S
  7183. PromptValue
  7184. DefaultMailSaveOptions
  7185. Save when sent
  7186. Do you wish to save a copy of this Memo?
  7187. DefaultMailSaveOptions
  7188.     1S2S5S6S8S14S17S
  7189. SaveOptions
  7190. PromptValue
  7191. SaveOptions
  7192. PromptValue
  7193.     0RR1S2S5S6S9S14S
  7194. tmpAction
  7195. DefaultMailSaveOptions
  7196. Mailing
  7197.     0RR1S2S3S6S7S9S11S
  7198. MailOptions
  7199.     0R1S2S3S
  7200.     0R7S9S
  7201. tmpAction
  7202. SaveOptions
  7203. SendAndFile
  7204.     0RR1S2S3S6S7S9S11S
  7205.     0R7S9S
  7206. PostedDateh
  7207. IsMailStationeryh
  7208.     5S6S7S8S10S11S
  7209. Send And File...
  7210.     4S11S13S19S
  7211.     0RR7S9S
  7212. tmpAction
  7213. DefaultMailSaveOptions
  7214. Mailing
  7215.     0RR1S2S3S6S7S9S11S
  7216. MailOptions
  7217.     0R1S2S3S
  7218.     0R7S9S
  7219. tmpAction
  7220. SendAndFile
  7221.     0RR1S2S3S
  7222.     0R7S9S
  7223. PostedDateh
  7224. IsMailStationeryh
  7225.     5S6S7S8S10S11S
  7226. Delivery Options...K
  7227. DeliveryOptions
  7228. Delivery Options
  7229.     4S8S
  7230. _ViewIcon
  7231. SenderTag
  7232. SenderTag
  7233. SenderTag
  7234. SenderTag
  7235. SenderTag
  7236. SenderTag
  7237. SenderTag
  7238. SenderTag
  7239. SenderTag
  7240. SenderTag
  7241. SenderTag
  7242.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  7243. PostedDateh
  7244.     5S6S7S8S
  7245. Special Options...
  7246. ReplyDate
  7247. ReplyDate
  7248.     1S2S3S
  7249. ReplyTo
  7250. ReplyTo
  7251.     0R1S2S3S
  7252. (Advanced Options)
  7253. Special Options
  7254.     0R6S10S13S15S
  7255. tmpDisplayReplyInfo
  7256. Please respond
  7257. ReplyTo
  7258. ReplyTo
  7259. ReplyDate
  7260. ReplyDate
  7261.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  7262. DueDateTime
  7263. ReplyDate
  7264.     0R1S2S3S
  7265. PostedDateh
  7266.     5S6S7S8S
  7267. _Remove From Folder...
  7268. Categori_zeK
  7269. SSend
  7270. PostedDateY
  7271.     0S0E
  7272. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  7273. '++LotusScript Development Environment:2:5:(Forward):0:1
  7274. Declare Sub Click(Source As Button)
  7275. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7276. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7277. Private Sub BindEvents(Byval Objectname_ As String)
  7278.      Static Source As BUTTON
  7279.      Set Source = Bind(Objectname_)
  7280.      On Event Click From Source Call Click
  7281. End Sub
  7282. '++LotusScript Development Environment:2:2:Click:1:12
  7283. Sub Click(Source As Button)
  7284.      Call CreateNewDoc(NEW_MEMO)
  7285. End Sub
  7286. tmpNewDoc
  7287.     1S2S
  7288. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  7289. '++LotusScript Development Environment:2:5:(Forward):0:1
  7290. Declare Sub Click(Source As Button)
  7291. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7292. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7293. Private Sub BindEvents(Byval Objectname_ As String)
  7294.      Static Source As BUTTON
  7295.      Set Source = Bind(Objectname_)
  7296.      On Event Click From Source Call Click
  7297. End Sub
  7298. '++LotusScript Development Environment:2:2:Click:1:12
  7299. Sub Click(Source As Button)
  7300.      Call CreateNewDoc(NEW_CALENDAR)
  7301. End Sub
  7302. tmpnewdoc
  7303.     1S2S
  7304. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  7305. '++LotusScript Development Environment:2:5:(Forward):0:1
  7306. Declare Sub Click(Source As Button)
  7307. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7308. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7309. Private Sub BindEvents(Byval Objectname_ As String)
  7310.      Static Source As BUTTON
  7311.      Set Source = Bind(Objectname_)
  7312.      On Event Click From Source Call Click
  7313. End Sub
  7314. '++LotusScript Development Environment:2:2:Click:1:12
  7315. Sub Click(Source As Button)
  7316.      Call CreateNewDoc(NEW_TASK)
  7317. End Sub
  7318. tmpnewdoc
  7319.     1S2S
  7320. Copy into\New GroupK,
  7321. NewGroup
  7322.     0S0E
  7323. tmpnewdoc
  7324.     1S2S
  7325. O=Lotus Notes
  7326. O=Lotus Notes
  7327. PURSAFO
  7328. |.:#U
  7329. O=Lotus Notes
  7330. CN=Lotus Notes Template Development/O=Lotus Notes
  7331. PURSAFO
  7332. Fde!f^^
  7333. $$FormPostOpenAction
  7334. $TypeIcon
  7335. ExpireDate
  7336. ReplyDate
  7337. ComposedDate
  7338. $TITLE
  7339. $AUTOLAUNCH
  7340. $INFO
  7341. $WINDOWTITLE
  7342. $Script
  7343. $$Script_O
  7344. $$ScriptName
  7345. $$FormScript
  7346. $$$FormScript_O
  7347. $BODY
  7348. $ACTIONS
  7349. $SCRIPTOBJ_20
  7350. $SCRIPTOBJ_21
  7351. $SCRIPTOBJ_22
  7352. Choose Letterhead
  7353. (LetterHeadChooser)'++LotusScript Development Environment:2:5:(Options):0:66
  7354. '++LotusScript Development Environment:2:5:(Forward):0:1
  7355. Declare Sub Postrecalc(Source As Notesuidocument)
  7356. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7357. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7358. Private Sub BindEvents(Byval Objectname_ As String)
  7359.      Static Source As NOTESUIDOCUMENT
  7360.      Set Source = Bind(Objectname_)
  7361.      On Event Postrecalc From Source Call Postrecalc
  7362. End Sub
  7363. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  7364. Sub Postrecalc(Source As Notesuidocument)
  7365.      Dim s As New notesSession    
  7366.      Dim w As New notesuiworkspace
  7367.      Dim doc As notesuidocument
  7368.      Set doc=w.currentdocument
  7369.      
  7370.      Dim Note As NotesDocument
  7371.      Set Note = Doc.Document
  7372.      
  7373.      s.SetEnvironmentVar "DefaultLogo", Note.LetterHeadChoices(0)
  7374.      Doc.Close
  7375.      w.ComposeDocument "","","(LetterHeadChooser)"
  7376. End Sub
  7377. SaveOptions
  7378. FromPerson memo is from.
  7379. DefaultLogo
  7380. stdNotesLtr0
  7381. DefaultLogo
  7382.     From:    
  7383. FromDomain
  7384. FromDomain
  7385. FromDomain
  7386. FromDomain
  7387.     7S10S18S19S23S25S28S29S31S33S34S35S41S44S48S51S57S
  7388. FromName
  7389.     0RR1S2S6S
  7390. FromStops
  7391.     0R1S2S6S
  7392. FromName
  7393. FromStops
  7394.     0RR1S2S3S4S8StmpDisplayFrom_Preview
  7395.      on 
  7396. PostedDateh
  7397. PostedDate
  7398.     7S9S
  7399. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  7400.     Preview  letterheads for new Memos and Replies in the list below.  
  7401.     When you find one you like, press Done. 
  7402. LetterHeadChoices
  7403. Plain Text|StdNotesLtr0Bouncy Earth|StdNotesLtr1Buck Rogers Mail|StdNotesLtr2Centered and Bold|StdNotesLtr3Decco|StdNotesLtr4Falling Spheres|StdNotesLtr5First Initial|StdNotesLtr6Frank Lloyd|StdNotesLtr7From The Desk|StdNotesLtr8Gateway|StdNotesLtrGatewayGeometry |StdNotesLtr9Gray Gradient with Lines|StdNotesLtr13Green and Yellow Diamond|StdNotesLtr14Marquee|StdNotesLtr34Metal Plate|StdNotesLtr15Pencil and Grid|StdNotesLtr16Pony Express|StdNotesLtr17Purple Geometry|StdNotesLtr18Reversed Teal|StdNotesLtr20Slashed Lines with Globe|StdNotesLtr21Squiggle with Backdrop|StdNotesLtr22Squiggly Line|StdNotesLtr23Tacks|StdNotesLtr24Tape|StdNotesLtr25Teal and Yellow Lines|StdNotesLtr26Three Dimensional Relief|StdNotesLtr27Torn Paper|StdNotesLtr28Triangle with Dots 1|StdNotesLtr29Triangle with Dots 2|StdNotesLtr30Wild Confetti|StdNotesLtr32Yellow Gradient|StdNotesLtr33
  7404. DefaultLogo
  7405.     0S0E
  7406. Categori_ze
  7407. _Edit Document
  7408. Send Docu_ment
  7409. _Forward
  7410. _Move To Folder...
  7411. _Remove From Foldert
  7412. Choose New Letter Head
  7413. DefaultLogo
  7414. DefaultLogo
  7415.     1S2S
  7416. Logos
  7417.     0RR1S2S
  7418. The following list should be translated. It is presented to user in list box
  7419.     0R1S
  7420. LogoNames
  7421. Three
  7422. Buck Rogers
  7423. Centered Rich
  7424. Confetti
  7425. Falling Balls
  7426. Frank Lloyde
  7427.     0R1S2S
  7428. Select a Letterhead
  7429. Select the Letterhead which will appear at the top of all new Memos and Replys
  7430. DefaultLogo
  7431. Logos
  7432. LogoNames
  7433. LogoNames
  7434.     0R1S2S14S16S19S
  7435. DefaultLogo
  7436. LogoNames
  7437. Logos
  7438.     0RR4S8S10S
  7439. preview
  7440. Done 
  7441.     0S0E
  7442. O=Lotus Notes
  7443. O=Lotus Notes
  7444. PURSAFO
  7445. |.:#U
  7446. O=Lotus Notes
  7447. CN=Lotus Notes Template Development/O=Lotus Notes
  7448. PURSAFO
  7449. Fde!f^^
  7450. $TITLE
  7451. $INFO
  7452. $WINDOWTITLE
  7453. $$Script_O
  7454. $$ScriptName
  7455. $$FormScript
  7456. $BODY
  7457. $ACTIONS
  7458. &Arial Narrow
  7459. &Arial
  7460.  StdNotesLtrGateway
  7461.     Hidden: 
  7462. tmpDisplayDate_Preview
  7463. tmpDate
  7464. tmpDisplayFrom_Preview
  7465.  on "
  7466. tmpDisplayDate_Preview
  7467. D0S2V
  7468.     3S4S5S6S10StmpFrom
  7469. O=Lotus Notes
  7470. O=Lotus Notes
  7471. PURSAFO
  7472. |.:#U
  7473. O=Lotus Notes
  7474. CN=Lotus Notes Template Development/O=Lotus Notes
  7475. PURSAFO
  7476. Fde!f^^
  7477. $TITLE
  7478. $INFO
  7479. $$Script_O
  7480. $$ScriptName
  7481. $BODY
  7482. Times New Roman
  7483. About Mail
  7484.  @  @@ @` @
  7485. @@ @@@@@`@@
  7486. `@ `@@`@``@
  7487.     The Mail template is used to create a database to send and receive electronic mail using Notes. The template can be used to create a mail database either on a local workstation or on a server. 
  7488.     The Mail template also contains Calendaring and Scheduling features which can be used for personal time management, meeting and appointment scheduling, or to delegate work to other people. The Calendar View provides a desktop calendar for ease in viewing scheduled appointments.
  7489.     Please consult Help/Help Topics for more information on how to use the features of the Mail template.
  7490. O=Lotus Notes
  7491. O=Lotus Notes
  7492. PURSAFO
  7493. |.:#U
  7494. O=Lotus Notes
  7495. CN=Lotus Notes Template Development/O=Lotus Notes
  7496. PURSAFO
  7497. Fde!f^^
  7498. z^SUK-e
  7499. $INFO
  7500. $BODY
  7501. P5~K-!W
  7502. AutoProcessNotices
  7503. 5SfL3
  7504. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################################
  7505. (Delegation Profile)DelegationProfile1
  7506. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Irisw#################
  7507. TaskTaskDw
  7508. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################
  7509. (Calendar Profile)CalendarProfile1
  7510. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Irisw
  7511. ##########################################################
  7512. (Notice)Noticew1
  7513. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###################################################
  7514. _Calendar EntryAppointmentw1
  7515. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  7516. ##########################################################
  7517. (Copy into\New Group) | NewGroup
  7518. E4fL3
  7519. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################
  7520. '++LotusScript Development Environment:2:5:(Options):0:74
  7521. Option Public
  7522. Use "NoticeProcessing"
  7523. Use "NoticeResponses"
  7524. Use "RepeatProcessing"
  7525. '++LotusScript Development Environment:2:5:(Forward):0:1
  7526. Declare Sub Initialize
  7527. Declare Function CanAutoProcess As Integer
  7528. '++LotusScript Development Environment:2:5:(Declarations):0:10
  7529. Dim FromList As Variant
  7530. Dim autodocs As NotesDocumentCollection
  7531. '++LotusScript Development Environment:2:2:Initialize:1:10
  7532. Sub Initialize
  7533.      Dim context As Integer
  7534.      
  7535.      On Error 4005 Resume Next ' handle the case if the parent document cannot be found
  7536.      
  7537.      Set session = New NotesSession
  7538.      Set db = session.CurrentDatabase
  7539.      Set autodocs = db.UnprocessedDocuments
  7540.      IsAgentProcessing = True
  7541. 'if we don't have any documents to process, we can exit now
  7542.      If (autodocs.count = 0) Then Exit Sub
  7543.      
  7544.      Set profile = db.GetProfileDocument("CalendarProfile")
  7545.      FromList = profile.MeetingsPeople
  7546.      Owner = profile.Owner(0)
  7547.      If (Owner = "") Then Owner = session.UserName
  7548.      
  7549.      Set note = autodocs.GetFirstDocument
  7550.      While Not (note Is Nothing)
  7551. 'we only need to process meeting invitations from other people; do not process meeting responses back from invitees          
  7552.           If (note.Form(0) = "Notice") And (note.Chair(0) <> Owner) Then
  7553. 'make sure we can process this notice
  7554.                If (CanAutoProcess) Then
  7555. 'determine the type of notice being sent to us
  7556.                     Select Case note.NoticeType(0)
  7557.                     Case ORS_MSGTYPE_INVITE,ORS_MSGTYPE_DELEGATE
  7558. 'check for notice updates; if we have any, then do not process this note
  7559.                          Call GetMostRecentUpdateNotice(context)
  7560.                          If (UpdateResponses(0).misc2 = "") Then                                                 'we didn't find any update notices that we care about
  7561. 'we are receiving an invitation
  7562.                               If (note.HasItem("RepeatIds")) Then
  7563. 'this is a repeating meeting; determine if this is a broadcast notice or not
  7564.                                    If (note.Broadcast(0) <> "1") Then 
  7565.                                         note.tmpAction = "Accept"
  7566.                                         Call AcceptInvitation
  7567.                                    Else
  7568.                                         note.tmpAction = "AddCalendar"
  7569.                                         Call UpdateOriginalInvitation(note)
  7570. 'see if we should remove this from the inbox
  7571.                                         If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  7572.                                    End If                                   
  7573.                                    Action = "Accept"
  7574.                                    InstancesCreated = False
  7575.                                    Call RepeatSave
  7576.                               Else
  7577. 'this is a standard invitation                              
  7578.                                    If Not (CheckIfConflictExists) Then
  7579.                                         If (note.Broadcast(0) = "1") Then
  7580.                                              note.tmpAction = "AddCalendar"
  7581.                                              Call UpdateOriginalInvitation(note)
  7582.                                         Else
  7583.                                              note.tmpAction = "Accept"                                        
  7584.                                              Call AcceptInvitation                                    
  7585.                                         End If
  7586.                                    Else
  7587.                                         note.Subject = "(Time Conflict) " & note.Subject(0)
  7588.                                         Call MarkTempFields(note)
  7589.                                         Call note.Save(True,True)
  7590.                                    End If
  7591.                               End If
  7592.                          End If
  7593.                     Case ORS_MSGTYPE_RESCHEDULE
  7594. 'the meeting is being rescheduled          
  7595.                          Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  7596.                          If (parentnote Is Nothing) Then
  7597.                               note.Subject = "(Missing Parent Document) " & note.Subject(0)
  7598.                               Call MarkTempFields(note)
  7599.                               Call note.Save(True,True)
  7600.                          Else
  7601. 'get the most recent update notice and see if this note is the most recent one; we only process the most recent update notice
  7602.                               Call GetMostRecentUpdateNotice(context)
  7603.                               If (note.UniversalID = UpdateResponses(0).misc2) Then
  7604. 'we will only process the reschedule if the SequenceNum of the reschedule is greater than the parent SequenceNum                    
  7605.                                    If (note.SequenceNum(0) > parentnote.SequenceNum(0)) Then                 
  7606. 'if this is a repeating meeting, then handle this differently
  7607.                                         If (note.HasItem("OrgRepeat")) Then
  7608.                                              Call SaveOriginalValues
  7609.                                              note.tmpAction = "AddCalendar"
  7610.                                              Call UpdateOriginalInvitation(parentnote)
  7611.                                              Action = ""
  7612.                                              Call RepeatSave
  7613.                                         Else
  7614.                                              If Not (CheckIfConflictExists) Then
  7615.                                                   If (note.Broadcast(0) = "1") Then
  7616.                                                        note.tmpAction = "AddCalendar"
  7617.                                                        Call UpdateOriginalInvitation(parentnote)
  7618.                                                   Else
  7619.                                                        note.tmpAction = "Accept"                                             
  7620.                                                        Call AcceptInvitation                                    
  7621.                                                   End If
  7622.                                              Else
  7623.                                                   note.Subject = "(Time Conflict) " & note.Subject(0)
  7624.                                                   Call MarkTempFields(note)
  7625.                                                   Call note.Save(True,True)
  7626.                                              End If
  7627.                                         End If                                        
  7628.                                    End If       
  7629.                               End If
  7630.                          End If
  7631.                     Case ORS_MSGTYPE_CANCEL,ORS_MSGTYPE_STATUSUPDATE
  7632. 'if the orgstatus <> ORS_STATUS_REMOVED, then the chair is requiring us to attend
  7633. 'we only want to look for a parent if this document is a response; the original invitation might be stamped as a cancel
  7634.                          If (note.IsResponse) Then
  7635.                               Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  7636.                               If (parentnote Is Nothing) Then
  7637.                                    note.Subject = "(Missing Parent Document) " & note.Subject(0)
  7638.                                    Call MarkTempFields(note)
  7639.                                    Call note.Save(True,True)
  7640.                               Else                         
  7641.                                    If (note.OrgStatus(0) <> ORS_STATUS_REMOVED) And (note.NoticeType(0) = ORS_MSGTYPE_STATUSUPDATE) Then
  7642. 'currently, we do nothing -> you could call CommitAppointment passing it (parentnote)                              
  7643.                                    Else
  7644. 'get the most recent update notice and see if this note is the most recent one; we only process the most recent update notice
  7645.                                         Call GetMostRecentUpdateNotice(context)
  7646.                                         If (note.UniversalID = UpdateResponses(0).misc2) Then                                            
  7647. 'decommit the parent document if the SequenceNum on the note is >= the parent SequenceNum
  7648.                                              If (note.SequenceNum(0) >= parentnote.SequenceNum(0)) Then 
  7649.                                                   Call DeCommitAppointment(parentnote)
  7650.                                                   'we need to do this here since this is not handled in QuerySave          
  7651.                                                   If note.HasItem("OrgRepeat") Then
  7652.                                                        Action = "Cancel"
  7653.                                                        Call RepeatSave
  7654.                                                   End If
  7655.                                              End If
  7656.                                         End If
  7657.                                    End If
  7658.                               End If  
  7659.                          End If
  7660.                     End Select
  7661.                End If        
  7662.           End If
  7663.           Call session.UpdateProcessedDoc(note)
  7664.           Set note = autodocs.GetNextDocument(note)     
  7665.      Wend
  7666. End Sub
  7667. '++LotusScript Development Environment:2:1:CanAutoProcess:1:8
  7668. Function CanAutoProcess As Integer
  7669.      Dim namAllowed As NotesName
  7670.      Dim namPrincipal As NotesName
  7671.      
  7672. 'returns true if the given invitation can be autoprocessed or false if it can't
  7673.      CanAutoProcess = False
  7674. 'if there are no items in the fromlist, then we can process this
  7675.      If (FromList(0) = "") Or (FromList(0) = "*") Then
  7676.           CanAutoProcess = True
  7677.           Exit Function
  7678.      End If
  7679.      
  7680.      Set namPrincipal = New NotesName(note.Principal(0))
  7681.      
  7682.      Forall f In FromList
  7683.           Set namAllowed = New NotesName(f)
  7684.           
  7685.           If Lcase(namPrincipal.Canonical) = Lcase(namAllowed.Canonical) Then
  7686.                CanAutoProcess = True
  7687.                Exit Forall
  7688.           End If
  7689.           
  7690.           If Lcase(namPrincipal.Common) = Lcase(namAllowed.Common) Then
  7691.                CanAutoProcess = True
  7692.                Exit Forall
  7693.           End If
  7694.      End Forall
  7695. End Function
  7696. O=Lotus Notes
  7697. O=Lotus Notes
  7698. PURSAFO
  7699. |.:#U
  7700. O=Lotus Notes
  7701. CN=Lotus Notes Template Development/O=Lotus Notes
  7702. PURSAFO
  7703. Fde!f^^
  7704. <g$jz" O
  7705. $TITLE
  7706. $AssistType
  7707. $AssistLastRun
  7708. $AssistDocCount
  7709. $AssistFlags
  7710. $AssistTrigger
  7711. $AssistInfo
  7712. $AssistQuery
  7713. $AssistAction
  7714. $AssistAction_Ex
  7715. Delegation Profile
  7716. &Arial
  7717. '++LotusScript Development Environment:2:5:(Options):0:74
  7718. Option Public
  7719. '++LotusScript Development Environment:2:5:(Forward):0:1
  7720. Declare Sub GetAclEntries
  7721. '++LotusScript Development Environment:2:5:(Declarations):0:10
  7722. Dim acl As NotesACL
  7723. Dim aclentry As NotesAclEntry
  7724. Dim nextaclentry As NotesAclEntry
  7725. Dim note As NotesDocument
  7726. Dim db As NotesDatabase
  7727. Dim nam As NotesName
  7728. Dim session As NotesSession
  7729. Dim ReadCal() As Variant
  7730. Dim WriteCal() As Variant
  7731. Dim ReadMail() As Variant
  7732. Dim WriteMail() As Variant
  7733. Dim EditMail() As Variant
  7734. Dim DeleteMail() As Variant
  7735. Dim OtherUsers() As Variant
  7736. Dim DoNotEdit As Integer
  7737. '++LotusScript Development Environment:2:2:GetAclEntries:1:8
  7738. Sub GetAclEntries
  7739.      
  7740.      note.ReadCalendar = ""
  7741.      note.WriteCalendar = ""
  7742.      note.ReadMail = ""
  7743.      note.WriteMail = ""
  7744.      note.EditMail = ""
  7745.      note.DeleteMail = ""
  7746.      
  7747.      Redim ReadCal(0)
  7748.      Redim WriteCal(0)
  7749.      Redim ReadMail(0)
  7750.      Redim WriteMail(0)
  7751.      Redim EditMail(0)
  7752.      Redim DeleteMail(0)
  7753.      Redim OtherUsers(0)
  7754.      
  7755.      Set aclentry = acl.GetFirstEntry
  7756.      Do Until aclentry Is Nothing
  7757.           Select Case aclentry.Level
  7758.           Case ACLLEVEL_NOACCESS
  7759.                If aclentry.Name = "-Default-" Then
  7760.                     If aclentry.IsPublicReader Then
  7761.                          note.PublicRead = "1"
  7762.                     Else
  7763.                          note.PublicRead = ""
  7764.                     End If
  7765.                     If aclentry.IsPublicWriter Then
  7766.                          note.PublicWrite = "1"
  7767.                     Else
  7768.                          note.PublicWrite = ""
  7769.                     End If
  7770.                Else
  7771.                     If aclentry.IsPublicReader Or aclentry.IsPublicWriter Then
  7772.                          If aclentry.IsPublicReader Then
  7773.                               x = Ubound(ReadCal)
  7774.                               ReadCal(x) = aclentry.Name
  7775.                               Redim Preserve ReadCal(x + 1)
  7776.                          End If
  7777.                          Gosub CheckPublicWriter
  7778.                     Else
  7779. 'These are other NoAccess people and we don't want to change them
  7780.                          x = Ubound(OtherUsers)
  7781.                          OtherUsers(x) = aclentry.Name
  7782.                          Redim Preserve OtherUsers(x + 1)
  7783.                     End If
  7784.                End If
  7785.           Case ACLLEVEL_READER
  7786.                x = Ubound(ReadMail)
  7787.                ReadMail(x) = aclentry.Name
  7788.                Redim Preserve ReadMail(x + 1)
  7789.                Gosub CheckPublicWriter
  7790.           Case ACLLEVEL_AUTHOR
  7791.                If aclentry.CanCreateDocuments Then
  7792.                     x = Ubound(WriteMail)
  7793.                     WriteMail(x) = aclentry.Name
  7794.                     Redim Preserve WriteMail(x + 1)
  7795.                End If
  7796.                If aclentry.CanDeleteDocuments Then
  7797.                     x = Ubound(DeleteMail)
  7798.                     DeleteMail(x) = aclentry.Name
  7799.                     Redim Preserve DeleteMail(x + 1)
  7800.                End If
  7801.                Gosub CheckPublicWriter
  7802.           Case ACLLEVEL_EDITOR
  7803.                x = Ubound(EditMail)
  7804.                EditMail(x) = aclentry.Name
  7805.                Redim Preserve EditMail(x + 1)
  7806.                If aclentry.CanDeleteDocuments Then
  7807.                     x = Ubound(DeleteMail)
  7808.                     DeleteMail(x) = aclentry.Name
  7809.                     Redim Preserve DeleteMail(x + 1)
  7810.                End If
  7811.                Gosub CheckPublicWriter
  7812.           Case Else
  7813. 'These are Manager and Designers and we don't want to change them
  7814.                x = Ubound(OtherUsers)
  7815.                OtherUsers(x) = aclentry.Name
  7816.                Redim Preserve OtherUsers(x + 1)
  7817.           End Select
  7818.           Set aclentry = acl.GetNextEntry(aclentry)
  7819.      Loop
  7820.      
  7821.      note.ReadCalendar = ReadCal
  7822.      note.WriteCalendar = WriteCal
  7823.      note.ReadMail = ReadMail
  7824.      note.WriteMail = WriteMail
  7825.      note.EditMail = EditMail
  7826.      note.DeleteMail = DeleteMail
  7827.      
  7828.      Exit Sub
  7829.      
  7830. CheckPublicWriter:
  7831.      If aclentry.IsPublicWriter Then
  7832.           x = Ubound(WriteCal)
  7833.           WriteCal(x) = aclentry.Name
  7834.           Redim Preserve WriteCal(x + 1)
  7835.      End If
  7836.      Return
  7837.      
  7838. End Sub
  7839.  DelegationProfile'++LotusScript Development Environment:2:5:(Options):0:66
  7840. '++LotusScript Development Environment:2:5:(Forward):0:1
  7841. Declare Sub Postopen(Source As Notesuidocument)
  7842. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  7843. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  7844. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7845. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7846. Private Sub BindEvents(Byval Objectname_ As String)
  7847.      Static Source As NOTESUIDOCUMENT
  7848.      Set Source = Bind(Objectname_)
  7849.      On Event Postopen From Source Call Postopen
  7850.      On Event Querysave From Source Call Querysave
  7851.      On Event Querymodechange From Source Call Querymodechange
  7852. End Sub
  7853. '++LotusScript Development Environment:2:2:Postopen:1:12
  7854. Sub Postopen(Source As Notesuidocument)
  7855.      
  7856.      Set session = New NotesSession
  7857.      Set note = source.document
  7858.      Set db = note.ParentDatabase
  7859.      Set acl = db.ACL
  7860.      
  7861.      Set aclentry = acl.GetEntry(session.Username)
  7862.      If aclentry Is Nothing Then
  7863.           Set nam = New NotesName(session.Username)
  7864.           Set aclentry = acl.GetEntry(nam.Common)
  7865.      End If
  7866.      
  7867.      If aclentry Is Nothing Then
  7868.           source.EditMode = False
  7869.      Elseif aclentry.level < ACLLEVEL_MANAGER Then
  7870. 'You need to be a manager to edit the ACL
  7871.           DoNotEdit = True
  7872.           source.EditMode = False
  7873.      End If     
  7874.      
  7875. 'setting reload = false because these updates were already done in the preceeding agent
  7876. '(we needed to populate the fields before loading the profile in case we had to use read mode)     
  7877.      source.AutoReload = False
  7878. 'executing GetAclEntries in order to initialize the arrays     
  7879.      GetAclEntries
  7880.      
  7881.      source.RefreshHideFormulas
  7882.      
  7883. End Sub
  7884. '++LotusScript Development Environment:2:2:Querysave:1:12
  7885. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  7886.      
  7887.      On Error Goto ErrorRoutine
  7888.      
  7889. 'We are replacing existing ACL with the new values entered here (with the exception of OtherUsers)     
  7890.      
  7891.      NewReadCal = note.ReadCalendar
  7892.      NewWriteCal = note.WriteCalendar
  7893.      NewReadMail = note.ReadMail
  7894.      NewWriteMail = note.WriteMail
  7895.      NewEditMail = note.EditMail
  7896.      NewDeleteMail = note.DeleteMail
  7897.      ListSize = Ubound(OtherUsers)
  7898.      
  7899. 'For each list, see if they are already in the acl.
  7900. 'If they are then change them - otherwise add them     
  7901.      
  7902.      If note.PublicRead(0) = "1" Then
  7903.           note.ReadCal = ""
  7904.           NewReadCal = note.ReadCal
  7905.           EntryName = "-Default-"
  7906.           AccessLevel = ACLLEVEL_NOACCESS
  7907.           Gosub PostNewAccess              
  7908.           aclentry.IsPublicReader = True     
  7909.           aclentry.IsPublicWriter = False
  7910.      Else
  7911.           EntryName = "-Default-"
  7912.           AccessLevel = ACLLEVEL_NOACCESS
  7913.           Gosub PostNewAccess              
  7914.           aclentry.IsPublicReader = False
  7915.           aclentry.IsPublicWriter = False
  7916.      End If
  7917.      
  7918.      If note.PublicWrite(0) = "1" Then
  7919.           note.WriteCal = ""
  7920.           NewWriteCal = note.WriteCal
  7921.           EntryName = "-Default-"
  7922.           AccessLevel = ACLLEVEL_NOACCESS
  7923.           Gosub PostNewAccess              
  7924.           aclentry.IsPublicWriter = True     
  7925. 'If you can manage the calendar, you need to be able to read it as well
  7926.           aclentry.IsPublicReader = True     
  7927.      Else
  7928.           EntryName = "-Default-"
  7929.           AccessLevel = ACLLEVEL_NOACCESS
  7930.           Gosub PostNewAccess              
  7931.           aclentry.IsPublicWriter = False
  7932.      End If
  7933.      
  7934.      Forall x In NewReadCal
  7935.           If x <> "" Then
  7936.                EntryName = x
  7937.                AccessLevel = ACLLEVEL_NOACCESS
  7938.                Gosub PostNewAccess              
  7939.                If aclentry.Level = ACLLEVEL_NOACCESS Then
  7940.                     aclentry.IsPublicReader = True
  7941.                     aclentry.IsPublicWriter = False
  7942.                End If
  7943.           End If
  7944.      End Forall
  7945.      
  7946.      Forall x In NewWriteCal
  7947.           If x <> "" Then
  7948.                EntryName = x
  7949.                AccessLevel = ACLLEVEL_NOACCESS
  7950.                Gosub PostNewAccess              
  7951.                If aclentry.Level = ACLLEVEL_NOACCESS Then
  7952.                     aclentry.IsPublicWriter = True
  7953. 'If you can manage the calendar, you need to be able to read it as well
  7954.                     aclentry.IsPublicReader = True     
  7955.                End If
  7956.           End If
  7957.      End Forall
  7958.      
  7959.      Forall x In NewReadMail
  7960.           If x <> "" Then          
  7961.                EntryName = x
  7962.                AccessLevel = ACLLEVEL_READER
  7963.                Gosub PostNewAccess
  7964.                If aclentry.Level = ACLLEVEL_READER Then
  7965.                     Gosub CheckPublicWrite
  7966.                End If
  7967.           End If          
  7968.      End Forall
  7969.      
  7970.      Forall x In NewWriteMail
  7971.           If x <> "" Then          
  7972.                EntryName = x
  7973.                AccessLevel = ACLLEVEL_AUTHOR
  7974.                Gosub PostNewAccess              
  7975.                If aclentry.Level = ACLLEVEL_AUTHOR Then
  7976.                     aclentry.CanCreateDocuments = True               
  7977.                     aclentry.CanDeleteDocuments = False
  7978.                     Gosub CheckPublicWrite
  7979.                End If
  7980.           End If          
  7981.      End Forall
  7982.      
  7983.      Forall x In NewEditMail
  7984.           If x <> "" Then          
  7985.                EntryName = x
  7986.                AccessLevel = ACLLEVEL_EDITOR
  7987.                Gosub PostNewAccess              
  7988.                If aclentry.Level = ACLLEVEL_EDITOR Then
  7989.                     aclentry.CanDeleteDocuments = False
  7990.                End If
  7991.           End If          
  7992.      End Forall
  7993.      
  7994. 'now remove entries which have not been accounted for
  7995.      Set aclentry = acl.GetFirstEntry
  7996.      If OtherUsers(ListSize) = "" Then Redim Preserve OtherUsers(ListSize - 1)
  7997.      Do Until aclentry Is Nothing
  7998.           Set nextaclentry = acl.GetNextEntry(aclentry)
  7999.           NotFound = True
  8000.           Forall x In OtherUsers
  8001.                If x = aclentry.Name Then NotFound = False
  8002.           End Forall
  8003.           If NotFound Then aclentry.Remove
  8004.           Set aclentry = nextaclentry
  8005.      Loop
  8006.      
  8007.      ListSize = Ubound(OtherUsers) + 1
  8008.      Redim Preserve OtherUsers(ListSize)                    
  8009.      
  8010.      Forall x In NewDeleteMail
  8011.           If x <> "" Then          
  8012.                Set aclentry = acl.GetEntry(x)
  8013.                Set nam = New NotesName(x)
  8014.                If aclentry Is Nothing Then
  8015.                     Messagebox "You must add " & nam.Common & _
  8016.                     " to either the ""Read and send"" or the ""Read, send, and edit"" list before adding them to the ""Delete"" list.", 0, "Error"
  8017.                     continue = False
  8018.                     Exit Sub
  8019.                Elseif aclentry.Level < ACLLEVEL_AUTHOR Then
  8020.                     Messagebox "You must add " & nam.Common & _
  8021.                     " to either the ""Read and send"" or the ""Read, send, and edit"" list before adding them to the ""Delete"" list.", 0, "Error"
  8022.                     continue = False
  8023.                     Exit Sub
  8024.                Elseif aclentry.Level > ACLLEVEL_EDITOR Then
  8025.                     EntryName = nam.Common
  8026.                     Gosub CannotChange
  8027.                     Messagebox nam.Common & " is currently a " & CurrentLevel & " of this database.  " &_
  8028.                     "Managers and Designers cannot be modified using the Delegation Profile.", 0, "Cannot Change " & CurrentLevel
  8029.                End If
  8030.                If aclentry.Level < ACLLEVEL_DESIGNER Then
  8031.                     aclentry.CanDeleteDocuments = True               
  8032.                     OtherUsers(ListSize) = x     
  8033.                     ListSize = ListSize + 1
  8034.                     Redim Preserve OtherUsers(ListSize)
  8035.                End If
  8036.           End If          
  8037.      End Forall
  8038.      
  8039. 'we save and re-instanciate at this point because we want to check current acl entries to see if this person should be able to delete
  8040.      'acl.save
  8041.      'Delete acl
  8042.      'Set acl= db.ACL
  8043.      
  8044.      
  8045.      
  8046.      acl.save
  8047.      
  8048.      GetAclEntries
  8049.      
  8050.      source.Reload
  8051.      source.RefreshHideFormulas
  8052.      
  8053.      Exit Sub
  8054.      
  8055. PostNewAccess:
  8056.      Set aclentry = acl.GetEntry(EntryName)
  8057.      If aclentry Is Nothing Then
  8058.           Set aclentry = New NotesAclEntry(acl, EntryName, AccessLevel)
  8059.      Else
  8060. 'we don't want to downgrade designers and managers, but we may want to downgrade editors or authors          
  8061.           If aclentry.Level < ACLLEVEL_DESIGNER Then
  8062.                aclentry.Level = AccessLevel
  8063.           Else
  8064.                Gosub CannotChange
  8065.                Messagebox nam.Common & " is currently a " & CurrentLevel & " of this database and can already " &_
  8066.                NewLevel & ".  Managers and Designers cannot be modified using the Delegation Profile.", 0, "Cannot Change " & CurrentLevel
  8067.           End If
  8068.      End If
  8069.      OtherUsers(ListSize) = EntryName     
  8070.      ListSize = ListSize + 1
  8071.      Redim Preserve OtherUsers(ListSize)
  8072.      
  8073.      Return
  8074.      
  8075. CannotChange:
  8076.      Set nam = New NotesName(EntryName)
  8077.      If aclentry.Level = ACLLEVEL_DESIGNER Then
  8078.           CurrentLevel = "Designer"
  8079.      Else
  8080.           CurrentLevel = "Manager"
  8081.      End If
  8082.      Select Case AccessLevel
  8083.      Case ACLLEVEL_READER
  8084.           NewLevel = "read mail"
  8085.      Case ACLLEVEL_AUTHOR
  8086.           NewLevel = "send mail"
  8087.      Case ACLLEVEL_EDITOR
  8088.           NewLevel = "edit documents"
  8089.      Case Else
  8090.           NewLevel = "manage the calendar"
  8091.      End Select
  8092.      
  8093.      Return
  8094.      
  8095. CheckPublicWrite:
  8096. 'If a reader or author is found in the NewWriteCal list then turn on public access write, else turn it off     
  8097.      NameFound = False
  8098.      Forall y In NewWriteCal
  8099.           If y = EntryName Then
  8100.                NameFound = True
  8101.                Exit Forall
  8102.           End If
  8103.      End Forall
  8104.      If NameFound Then
  8105.           aclentry.IsPublicWriter = True     
  8106.      Else
  8107.           aclentry.IsPublicWriter = False
  8108.      End If
  8109.      Return
  8110.      
  8111. ErrorRoutine:
  8112.      Messagebox Error & " (Save Delegation)"
  8113.      Exit Sub
  8114.      
  8115. End Sub
  8116. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  8117. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  8118.      If DoNotEdit And source.EditMode = False Then continue = False
  8119. End Sub
  8120. .WK1;*.WR1;*
  8121. TIFF 5.0 Imag
  8122. =    o0ah
  8123. e    G0e    
  8124. Delegation Profile
  8125. CalendarProfile
  8126. Owner
  8127.     4S6S7S
  8128. Owner of Mail File:
  8129. Owner
  8130. CalendarProfile
  8131. Owner
  8132.     1S2S6S
  8133. Owner
  8134. Owner
  8135.     0R3S4S6S8S
  8136. Owner
  8137. CalendarProfile
  8138. Owner
  8139.     4S6S7S
  8140. Owner of Mail File:
  8141. Owner
  8142. CalendarProfile
  8143. Owner
  8144.     1S2S6S
  8145. Owner
  8146. Owner
  8147.     0R3S4S6S8S
  8148. Owner_1
  8149.     Calendar Access
  8150. PublicRead
  8151. Everyone can read my Calendar|1
  8152. PublicRead
  8153.     1S2S
  8154.     Only the following people/groups can read my Calendar: 
  8155. ReadCalendar
  8156. PublicWrite
  8157. Everyone can manage my Calendar|1
  8158. PublicWrite
  8159.     1S2S
  8160.     Only the following people/groups can manage my Calendar: 
  8161. WriteCalendar
  8162.     Email Access
  8163.      (anyone with Email Access can also read Calendar entries)
  8164.     The following people/groups can
  8165.     1. Read my mail: 
  8166. ReadMail
  8167.     2. Read and send mail on my behalf: 
  8168. WriteMail
  8169.     3. Read, send, and edit any document in my mail file: 
  8170. EditMail
  8171.     4. Delete mail (allowed for those who can send or edit mail): 
  8172. DeleteMail
  8173. $NoPurge
  8174. $NoPurge
  8175. _Edit Document
  8176. _Forward
  8177.     0S0E
  8178. CancelF
  8179. SaveOptions
  8180.     1S2S3S
  8181. _Move To Folder...
  8182. _Remove From Folder
  8183. Categori_ze
  8184. Send Docu_ment
  8185. O=Lotus Notes
  8186. O=Lotus Notes
  8187. PURSAFO
  8188. |.:#U
  8189. O=Lotus Notes
  8190. CN=Lotus Notes Template Development/O=Lotus Notes
  8191. PURSAFO
  8192. Fde!f^^
  8193. $FormPublicAccess
  8194. $TITLE
  8195. $INFO
  8196. $WINDOWTITLE
  8197. $Script
  8198. $$Script_O
  8199. $$ScriptName
  8200. $$FormScript
  8201. $$$FormScript_O
  8202. $NoPurge
  8203. $BODY
  8204. $ACTIONS
  8205. $PublicAccess
  8206. VersionOpt|
  8207.     6S7S9S14S
  8208. $VersionOpt
  8209.     0R1S2S3S
  8210. SavedOnce
  8211.     0R1S2S3S
  8212. PostedDate(
  8213.     0R1S2S3S
  8214. DeliveredDate
  8215.     0R1S2S3S
  8216. $AutoEditMode
  8217.     0R1S2S3S
  8218. MailSaveOptions
  8219.     0R1S2S3S
  8220. VersionOpt
  8221.     0R4S
  8222. New Task
  8223. Subject
  8224. Subject
  8225. Subject
  8226.     4S6S12S13S14S15S17S21S23S25S26S28S
  8227. "Small Fonts
  8228. '++LotusScript Development Environment:2:5:(Options):0:74
  8229. Option Public
  8230. Use "EmailProcessing"
  8231. Use "DocumentConversions"
  8232. '++LotusScript Development Environment:2:5:(Forward):0:1
  8233. Declare Sub CheckDueDate
  8234. Declare Sub CheckStartDate
  8235. Declare Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  8236. '++LotusScript Development Environment:2:5:(Declarations):0:10
  8237. Dim maildoc As NotesDocument
  8238. Dim rtitem As NotesRichTextItem
  8239. Dim dt As NotesDateTime
  8240. Dim dt2 As NotesDateTime
  8241. Dim Action As Variant
  8242. Dim DocWasSaved As Variant
  8243. Dim FinalSave As Variant
  8244. Dim CommentQuery As Variant
  8245. Dim StartDate As Variant
  8246. Dim DueDate As Variant
  8247. Dim Subject As Variant
  8248. Dim NewSubject As String
  8249. Dim ComposeReply As Variant
  8250. Dim ConvertedTask As Variant
  8251. '++LotusScript Development Environment:2:2:CheckDueDate:1:8
  8252. Sub CheckDueDate
  8253.      
  8254. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  8255.      Set dt2 = New NotesDateTime(DueDate(0))
  8256.      If dt.TimeDifference(dt2) > 0 Then 
  8257.           note.DueState = 0
  8258.      Else
  8259.           note.DueState = 1
  8260.      End If
  8261.      
  8262. End Sub
  8263. '++LotusScript Development Environment:2:2:CheckStartDate:1:8
  8264. Sub CheckStartDate
  8265.      
  8266. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  8267.      Set dt2 = New NotesDateTime(StartDate(0))
  8268.      If dt.TimeDifference(dt2) < 0 Then 
  8269.           note.DueState = 2
  8270.      Else
  8271.           note.DueState = 1
  8272.      End If
  8273.      
  8274. End Sub
  8275. '++LotusScript Development Environment:2:1:SendNotification:1:8
  8276. Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  8277.      
  8278.      SendNotification = True
  8279.      
  8280.      FromCommonName = Evaluate("@Name([CN]; Principal)", note)
  8281.      If FromCommonName(0) = "" Then FromCommonName = Evaluate("@Name([CN]; From)", note)
  8282.      
  8283.      CommentQuery = Messagebox("A " & ReplyType & " notice will be sent to " & FromCommonName(0) &_
  8284.      ".  Do you wish to send additional comments?", MB_YESNOCANCEL, "Task " & Action)
  8285.      Select Case CommentQuery
  8286.      Case IDYES
  8287.           Call session.SetEnvironmentVar("MailStEd", Cstr(NewSubject))
  8288.           ComposeReply = True
  8289.      Case IDNO
  8290.           Set maildoc = New NotesDocument(db)
  8291.           Set rtitem = New NotesRichTextItem(maildoc, "Body")
  8292.           If note.HasItem("Principal") Then
  8293.                maildoc.SendTo = note.Principal(0) & " @ " & note.FromDomain(0)
  8294.           Else
  8295.                maildoc.SendTo = note.From(0) & " @ " & note.FromDomain(0)
  8296.           End If
  8297.           maildoc.Subject = NewSubject
  8298.           rtitem.AppendText(MessageText & Subject & ".  ")
  8299.           maildoc.Form = "Reply"
  8300.           maildoc.Principal = Owner
  8301.           maildoc.AssignState = NewState
  8302.           maildoc.DueState = NewState
  8303.           Call maildoc.AppendItemValue("_ViewIcon", ViewIcon)
  8304.           Call maildoc.Save (True, True, True)
  8305.           Call maildoc.MakeResponse(note)
  8306.           On Error Goto SendError
  8307.           Call maildoc.Send (False)
  8308.           Call maildoc.Save (True, True, True)
  8309.           ws.ViewRefresh
  8310.      Case IDCANCEL
  8311.           note.SaveOptions = "0"
  8312.           note.MailOptions = "0"
  8313.           CommentQuery = "Cancel"
  8314.           SendNotification = False
  8315.           Exit Function
  8316.      End Select
  8317.      
  8318.      note.SaveOptions = "1"          
  8319.      note.AssignState = NewState
  8320.      note.DueState = NewState
  8321.      Call note.ReplaceItemValue("_ViewIcon", ViewIcon)
  8322.      
  8323.      Exit Function
  8324.      
  8325. SendError:
  8326.      Messagebox ReplyType & " reply document could not be sent to " & FromCommonName(0) & " at this time.  Please retry", MB_OK, "Task Completion"
  8327.      SendNotification = False
  8328.      maildoc.Remove(True)
  8329.      Exit Function
  8330.      
  8331. End Function
  8332.  Task'++LotusScript Development Environment:2:5:(Options):0:66
  8333. '++LotusScript Development Environment:2:5:(Forward):0:1
  8334. Declare Sub Postopen(Source As Notesuidocument)
  8335. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  8336. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  8337. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  8338. Declare Sub Postrecalc(Source As Notesuidocument)
  8339. '++LotusScript Development Environment:2:5:(Declarations):0:2
  8340. '++LotusScript Development Environment:2:2:BindEvents:1:129
  8341. Private Sub BindEvents(Byval Objectname_ As String)
  8342.      Static Source As NOTESUIDOCUMENT
  8343.      Set Source = Bind(Objectname_)
  8344.      On Event Postopen From Source Call Postopen
  8345.      On Event Querysave From Source Call Querysave
  8346.      On Event Queryclose From Source Call Queryclose
  8347.      On Event Querymodechange From Source Call Querymodechange
  8348.      On Event Postrecalc From Source Call Postrecalc
  8349. End Sub
  8350. '++LotusScript Development Environment:2:2:Postopen:1:12
  8351. Sub Postopen(Source As Notesuidocument)
  8352.      
  8353.      If source.InPreviewPane Then Exit Sub
  8354.      
  8355.      DocWasSaved = False
  8356.      FinalSave = False
  8357.      
  8358.      Set ws = New NotesUIWorkSpace
  8359.      Set uidoc = source
  8360.      
  8361.      If note Is Nothing Then Call InstantiateObjectVariables
  8362.      
  8363.      If source.IsNewDoc Then
  8364.           Call note.ReplaceItemValue("_ViewIcon", 168)
  8365.           note.AssignState = 0
  8366.           note.ExcludeFromView = "D"
  8367.           note.OrgTable = "T0"
  8368.      Else
  8369.           FormName = note.Form
  8370.           If FormName(0) = "Task" Then
  8371.                EditType = session.GetEnvironmentValue("MailStEd")
  8372. 'EditType 5 = EditNewCopy               
  8373.                If EditType = "5" Then 
  8374.                     Call note.ReplaceItemValue("$VersionOpt", "6")
  8375.                     note.tmpAction = "ConvertNewDoc"
  8376.                     Call session.SetEnvironmentVar("MailStEd", "0")
  8377.                     source.reload
  8378.                     source.save
  8379.                End If
  8380.           End If
  8381.      End If
  8382.      
  8383.      note.RemoveItem("MailOptions")
  8384.      note.RemoveItem("SaveOptions")
  8385.      
  8386.      If note.tmpAction(0) = "Converting" Then ConvertedTask = True
  8387.      
  8388. 'default DueState to 1 (current)     
  8389.      If Not(note.HasItem("DueState")) Then note.DueState = 1
  8390.      
  8391.      If source.EditMode Then
  8392.           If Not(note.HasItem("SecureMail")) Then CheckSecureMail
  8393.           source.Reload
  8394.           source.RefreshHideFormulas 
  8395.      End If
  8396.      
  8397. End Sub
  8398. '++LotusScript Development Environment:2:2:Querysave:1:12
  8399. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  8400.      
  8401.      If Source.InPreviewPane Then Exit Sub
  8402.      Dim sendToList As Variant
  8403.      Dim cnName As Variant
  8404.      Dim foundName As Integer
  8405.      
  8406.      If FinalSave Then Exit Sub
  8407.      
  8408.      On Error 4412 Resume Next
  8409.      source.Refresh
  8410. '4412 = field did not pass validation     
  8411.      If Err = 4412 Then
  8412.           Err = 0
  8413.           continue = False
  8414.           Exit Sub
  8415.      End If
  8416.      
  8417.      Set dt = New NotesDateTime("")
  8418.      dt.SetNow         
  8419.      
  8420.      Action = note.tmpAction(0)
  8421.      Select Case Action
  8422.      Case "Complete"
  8423. 'AssignState = 0 if assigned to self, 1 if assigned to others but not sent, 2 if assigned and sent, and 9 if complete.                    
  8424.           If note.HasItem("Principal") Then
  8425.                FromName = note.Principal(0)
  8426.           Else
  8427.                FromName = note.From(0)
  8428.           End If          
  8429.           oldAssignState = note.AssignState(0)
  8430.           Subject = note.Subject(0)
  8431.           NewSubject = "Task:  " & Subject & " is complete as of " & dt.LSLocalTime
  8432.           Select Case oldAssignState
  8433.           Case 0, 1 '0=assigned to yourself.  1=assigned to someone else but not sent
  8434.                Gosub CompleteThisTask
  8435.           Case 8, 9 '9=complete
  8436.                Messagebox Subject & " is already closed.", 0, "Task Completion"
  8437.           Case Else ' make sure current user is in the assignTo list
  8438.                sendToList = note.SendTo
  8439.                cnName = Evaluate("@Name([CN]; @Username )")
  8440.                foundName = False
  8441.                Forall a In sendToList
  8442.                     If Instr(Lcase(a), Lcase(cnName(0))) > 0 Then
  8443.                          foundName = True
  8444.                          Exit Forall
  8445.                     End If
  8446.                End Forall
  8447.                
  8448.                If Not foundName Then
  8449.                     Messagebox "The task '" & Subject & "' is not assigned to you. You cannot complete a task that is assigned to someone else.", 0, "Task Completion"
  8450.                Else
  8451.                     If SendNotification("completion", "I have completed task: ", 9, 82) = False Then
  8452.                          source.Reload
  8453.                          continue = False
  8454.                          Exit Sub
  8455.                     Else
  8456.                          Gosub CompleteThisTask
  8457.                     End If
  8458.                End If
  8459.           End Select
  8460.           CloseDoc = True
  8461.      Case "Reassign"
  8462.           Subject = note.Subject(0)
  8463.           NewSubject = "Please reassign Task:  " & Subject
  8464.           If SendNotification("reassignment", "Please reassign this task: ", 8, 81) = False Then
  8465.                source.Reload
  8466.                continue = False
  8467.                Exit Sub
  8468.           End If
  8469.           CloseDoc = True
  8470.      Case "Reply"
  8471.           ComposeReply = True
  8472.           CloseDoc = True
  8473.      Case "ConvertNewDoc"
  8474.           note.From = Owner
  8475.           note.AssignState = 1
  8476.           note.MailOptions = "0"
  8477.           note.SaveOptions = "1"
  8478.      Case Else
  8479.           If Action = "Send" Then
  8480.                note.SaveOptions = "1"
  8481.                note.MailOptions = "0"
  8482.           End If
  8483. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future, 8=Rejected, 9=Complete
  8484. 'If it is complete we do not want to change it's DueState          
  8485.           If note.DueState(0) <> 9 Then
  8486.                DueDate = note.DueDateTime
  8487.                StartDate = note.StartDateTime
  8488.                If StartDate(0) = "" Then
  8489.                     If DueDate(0) = "" Then
  8490.                          note.DueState = 1
  8491.                     Else
  8492.                          CheckDueDate
  8493.                     End If
  8494.                Else
  8495.                     CheckStartDate
  8496.                     DueState = note.DueState
  8497.                     If DueDate(0) <> "" And DueState(0) <> 2 Then CheckDueDate
  8498.                End If
  8499.           End If
  8500.      End Select
  8501.      
  8502.      AssignState = note.AssignState
  8503.      SendTo = note.SendTo
  8504.      If AssignState(0) = 1 And SendTo(0) = "" Then note.AssignState = 0
  8505.      
  8506.      DocWasSaved = True
  8507.      
  8508.      note.RemoveItem("tmpAction")
  8509.      note.RemoveItem("tmpSenderTag")
  8510.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  8511.      'If Not(note.HasItem("DocAuthors")) Then Set item = New NotesItem(note, "DocAuthors", note.From, AUTHORS)
  8512.      
  8513.      source.Reload
  8514.      
  8515.      If CloseDoc Then source.Close
  8516.      
  8517.      Exit Sub
  8518.      
  8519. CompleteThisTask:
  8520.      note.DueState = 9
  8521.      note.AssignState = 9
  8522.      note.CompletedDateTime = dt.LSLocalTime
  8523.      Call note.ReplaceItemValue("_ViewIcon", 82)
  8524.      note.SaveOptions = "1"
  8525.      Return
  8526.      
  8527. End Sub
  8528. '++LotusScript Development Environment:2:2:Queryclose:1:12
  8529. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  8530.      
  8531.      If source.InPreviewPane Then Exit Sub
  8532.      
  8533.      If CommentQuery = "Cancel" Then
  8534.           CommentQuery = ""         
  8535.           Continue = False
  8536.           Exit Sub
  8537.      End If
  8538.      
  8539.      If DocWasSaved = False And source.EditMode Then 
  8540. 'this forces a save prompt for converted tasks         
  8541.           If ConvertedTask And ContinueSave = "" Then
  8542.                Call SaveDialog("Task")
  8543.                Select Case ContinueSave
  8544.                Case IDYES
  8545.                     source.Save
  8546.                Case IDCANCEL
  8547.                     Continue = False
  8548.                     Exit Sub
  8549.                Case Else
  8550.                     Exit Sub
  8551.                End Select
  8552.           Else
  8553.                Exit Sub
  8554.           End If
  8555.      End If
  8556.      
  8557.      If ConvertedTask Then
  8558.           note.RemoveFromFolder("($Inbox)")
  8559.           ws.ViewRefresh
  8560.      End If
  8561.      
  8562.      AssignState = note.AssignState
  8563.      If AssignState(0) = 1 Then
  8564.           SendPrompt = Messagebox("Do you wish to send this Task to the Assignee?", _
  8565.           MB_YESNOCANCEL, "Close Task") 
  8566.           Select Case SendPrompt
  8567.           Case IDCANCEL
  8568.                Continue = False
  8569.                Exit Sub
  8570.           Case IDNO
  8571.                Exit Sub
  8572.           Case IDYES
  8573.                note.AssignState = 2
  8574.                source.Reload
  8575. 'front end send will put up the ambiguious names dialog if necessary               
  8576.                On Error Resume Next
  8577.                source.Send
  8578.                If Err > 0 Then
  8579.                     Err = 0
  8580.                     note.AssignState = 1
  8581.                     continue = False
  8582.                     Exit Sub
  8583.                End If
  8584.                note.SaveOptions = "1"
  8585.                note.AssignedTo = note.SendTo
  8586.                source.Reload
  8587.                source.Save
  8588.                FinalSave = True
  8589.           End Select
  8590.      End If
  8591.      
  8592.      If ComposeReply Then Call ws.ComposeDocument("", "", "Reply") 
  8593.      
  8594. End Sub
  8595. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  8596. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  8597.      
  8598.      If (source.InPreviewPane) Then 
  8599.           continue = False
  8600.           Exit Sub
  8601.      End If          
  8602.      If note Is Nothing Then Call InstantiateObjectVariables
  8603.      note.RemoveItem("MailOptions")
  8604.      note.RemoveItem("SaveOptions")
  8605.      
  8606. End Sub
  8607. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  8608. Sub Postrecalc(Source As Notesuidocument)
  8609.      If (source.InPreviewPane) Then Exit Sub
  8610. 'Make sure DueDate > StartDate
  8611.      
  8612.      If note.StartDateTime(0) = "" Or note.DueDateTime(0) = "" Then Exit Sub
  8613.      
  8614.      Set dt = New NotesDateTime(note.StartDateTime(0))
  8615.      Set dt2 = New NotesDateTime(note.DueDateTime(0))
  8616.      
  8617.      If dt.TimeDifference(dt2) > 0 Then 
  8618.           Messagebox "Due Date must be greater than Start Date.", 0, "Validation Error"
  8619.           Err = 4412
  8620.           note.AssignState = 1
  8621.           source.RefreshHideFormulas
  8622.           source.GoToField("DueDateTime")
  8623.      End If
  8624.      
  8625. End Sub
  8626.     Always Hidden: 
  8627. Principal
  8628. CalendarProfile
  8629. Owner
  8630.     1S2S3S7S
  8631. FromPerson memo is from.
  8632.     0S0E
  8633.     0S0E
  8634. Encrypt
  8635.     0S0E
  8636. DefaultMailSaveOptions
  8637. $KeepPrivate
  8638. $KeepPrivate
  8639. $KeepPrivate
  8640.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  8641.     1S2S
  8642.     From:    
  8643. Principal
  8644. Principal
  8645. FromDomain
  8646. FromDomain
  8647. FromDomain
  8648. FromDomain
  8649.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  8650. FromName
  8651. Principal
  8652. Principal
  8653.     0RR1S2S9S11S15S
  8654. FromStops
  8655.     0R1S2S6S
  8656. FromName
  8657. FromStops
  8658. FromStops
  8659. FromStops
  8660.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  8661.      on 
  8662. PostedDateh
  8663. PostedDate
  8664.     7S9S
  8665. tmpDisplayDateTime/date memo was created or mailed.
  8666. $HideMailHeader
  8667. Principal
  8668. Principal
  8669. Principal
  8670. Principal
  8671. Principal
  8672.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  8673.     Sent by:    
  8674. FromDomain
  8675. FromDomain
  8676. FromDomain
  8677. FromDomain
  8678.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  8679. FromName
  8680.     0RR1S2S6S
  8681. FromStops
  8682.     0R1S2S6S
  8683. FromName
  8684. FromStops
  8685. FromStops
  8686. FromStops
  8687.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  8688. ReplyTo
  8689.     1S2S
  8690.     Reply to:    
  8691. ReplyTo
  8692.     0S0E
  8693. tmpDisplayReplyTo
  8694.     Subject
  8695. Subject
  8696.     Priority:
  8697.     Due Date:
  8698.     Start Date:
  8699. Importance
  8700. None|99High (1)|1Medium (2)|2Low (3)|3
  8701. DueDateTime
  8702. Invalid Due Date.
  8703. DueDateTime
  8704. DueDateTime
  8705. Invalid Due Date.
  8706.     7S12S17S19S20S21S23S25SDueDateTime
  8707. StartDateTime
  8708. Invalid Start Date.
  8709. StartDateTime
  8710. StartDateTime
  8711. Invalid Start Date.
  8712.     7S12S17S19S20S21S23S25SStartDateTime
  8713. AssignState
  8714.     1S2S3S4S6S7S
  8715.     Assign to:    
  8716. AssignState
  8717. SendTo}
  8718.     3S4S6S8S
  8719. SendToList of people to assign to this task
  8720.     Assigned to:    
  8721. AssignState
  8722. Principal
  8723. Principal
  8724. AssignState
  8725. SendTo
  8726. AssignedTo
  8727.     3S4S6S9S10S12S14S17S18S19S20S21S23S25S
  8728. AssignedToList of primary people to invite to the meeting.
  8729. CopyToList of people to send a copy of the memo.
  8730.     Additional information:
  8731. Close
  8732. MailOptions
  8733.     1S2S3S
  8734. SaveOptions
  8735.     0R1S2S3S
  8736. Edit Task
  8737. Principal
  8738. AssignState
  8739.     3S4S5S6S8S9S10S11S
  8740. _Forward
  8741. _Move To Folder...
  8742. Delivery Information...Kz
  8743. DeliveryInfo
  8744. Delivery Information
  8745.     4S5S6S7S8S9S10S12S
  8746. DeliveredDate
  8747.     0S0E
  8748. Completed n
  8749. tmpAction
  8750. Complete
  8751.     0R1S2S3S
  8752. AssignState
  8753. AssignState
  8754. AssignState
  8755. Principal
  8756.     3S4R5S6S7S8R9S10S11S12R14S15S16S17S18S19S20S21S
  8757. Assign To Others...Kr
  8758. AssignState
  8759.     1S2S3S
  8760. SendTo
  8761.     0R4S
  8762. AssignState
  8763.     1S2S3S4S
  8764. Reassign...K
  8765. AssignState
  8766.     0R1S2S3S
  8767. SendTo
  8768.     0R4S
  8769. AssignState
  8770. DeliveredDate
  8771.     1S2S3S4S
  8772. Address... 
  8773.     0S0E
  8774. AssignState
  8775.     1S2S
  8776. Delete 
  8777.     0S0E
  8778. Principal
  8779.     3S4S5S6S
  8780. SendTo
  8781. Send Task
  8782. You must assign this task before sending it.
  8783.     3S4S6S12S14S18S
  8784. AssignState
  8785.     0RR1S2S3S
  8786. tmpAction
  8787.     0R1S2S3S
  8788.     0R7S9S
  8789. SaveOptions
  8790.     0RR1S2S3S
  8791. MailOptions
  8792.     0R1S2S3S
  8793.     0R7S9S
  8794. MailOptions
  8795.     0R1S2S3S
  8796. AssignState
  8797.     1S2S
  8798. Reply
  8799. tmpAction
  8800. Reply
  8801.     0R1S2S3S
  8802.     0RRZ
  8803. AssignState
  8804. Principal
  8805.     1S2S3S4S5S6S7S8S
  8806. Please Reassign...n
  8807. tmpAction
  8808. Reassign
  8809.     0R1S2S3S
  8810.     0RRZ
  8811. AssignState
  8812. Principal
  8813.     1S2S3S4S5S6S7S8S
  8814. Delivery Options...K
  8815. DeliveryOptions
  8816. Delivery Options
  8817.     4S8S
  8818. _ViewIcon
  8819. SenderTag
  8820. SenderTag
  8821. SenderTag
  8822. SenderTag
  8823. SenderTag
  8824. SenderTag
  8825. SenderTag
  8826. SenderTag
  8827. SenderTag
  8828. SenderTag
  8829. SenderTag
  8830.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E0
  8831. AssignState
  8832.     1S2S
  8833. Special Options...F
  8834. ReplyDate
  8835. ReplyDate
  8836.     1S2S3S
  8837. ReplyTo
  8838. ReplyTo
  8839.     0R1S2S3S
  8840. (Advanced Options)
  8841. Special Options
  8842.     0R6S10S13S15S
  8843. tmpDisplayReplyInfo
  8844. Please respond
  8845. ReplyTo
  8846. ReplyTo
  8847. ReplyDate
  8848. ReplyDate
  8849.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  8850. DueDateTime
  8851. DueDateTime
  8852. ReplyDate
  8853. DueDateTime
  8854.     0R1S2S3S6S7S9S11S
  8855. AssignState
  8856.     1S2S
  8857. Move To Folder 
  8858.     0S0E
  8859. Principal
  8860.     3S4S5S6S
  8861. Display Task on My CalendarK
  8862. StartDateTime
  8863. DueDateTime
  8864. Date Required
  8865. In order to display this task on your Calendar, you must enter a Start Date and/or a Due Date.
  8866.     3S4S5S6S7S8S10S16S18S22S
  8867. tmpDate
  8868. StartDateTime
  8869. DueDateTime
  8870. StartDateTime
  8871.     0RR1S2S5S6S8S10S
  8872. CalendarDateTime
  8873. tmpDate
  8874. tmpDate
  8875. tmpDate
  8876.     0R1S2S3S10S15S20S22S24S
  8877. CalendarDateTimeh
  8878.     0S0E
  8879. Remove From Calendar View
  8880. CalendarDateTime
  8881.     1S2S3S
  8882. CalendarDateTimeY
  8883.     0S0E
  8884. Categori_zeK
  8885. SSend
  8886. _Remove From Folder...
  8887. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  8888. '++LotusScript Development Environment:2:5:(Forward):0:1
  8889. Declare Sub Click(Source As Button)
  8890. '++LotusScript Development Environment:2:5:(Declarations):0:2
  8891. '++LotusScript Development Environment:2:2:BindEvents:1:129
  8892. Private Sub BindEvents(Byval Objectname_ As String)
  8893.      Static Source As BUTTON
  8894.      Set Source = Bind(Objectname_)
  8895.      On Event Click From Source Call Click
  8896. End Sub
  8897. '++LotusScript Development Environment:2:2:Click:1:12
  8898. Sub Click(Source As Button)
  8899.      Call CreateNewDoc(NEW_MEMO)
  8900. End Sub
  8901. tmpnewdoc
  8902.     1S2S
  8903. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  8904. '++LotusScript Development Environment:2:5:(Forward):0:1
  8905. Declare Sub Click(Source As Button)
  8906. '++LotusScript Development Environment:2:5:(Declarations):0:2
  8907. '++LotusScript Development Environment:2:2:BindEvents:1:129
  8908. Private Sub BindEvents(Byval Objectname_ As String)
  8909.      Static Source As BUTTON
  8910.      Set Source = Bind(Objectname_)
  8911.      On Event Click From Source Call Click
  8912. End Sub
  8913. '++LotusScript Development Environment:2:2:Click:1:12
  8914. Sub Click(Source As Button)
  8915.      Call CreateNewDoc(NEW_CALENDAR)
  8916. End Sub
  8917. tmpnewdoc
  8918.     1S2S
  8919. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  8920. '++LotusScript Development Environment:2:5:(Forward):0:1
  8921. Declare Sub Click(Source As Button)
  8922. '++LotusScript Development Environment:2:5:(Declarations):0:2
  8923. '++LotusScript Development Environment:2:2:BindEvents:1:129
  8924. Private Sub BindEvents(Byval Objectname_ As String)
  8925.      Static Source As BUTTON
  8926.      Set Source = Bind(Objectname_)
  8927.      On Event Click From Source Call Click
  8928. End Sub
  8929. '++LotusScript Development Environment:2:2:Click:1:12
  8930. Sub Click(Source As Button)
  8931.      Call CreateNewDoc(NEW_TASK)
  8932. End Sub
  8933. tmpnewdoc
  8934.     1S2S
  8935. Copy into\New GroupK,
  8936. NewGroup
  8937.     0S0E
  8938. tmpnewdoc
  8939.     1S2S
  8940. O=Lotus Notes
  8941. O=Lotus Notes
  8942. PURSAFO
  8943. |.:#U
  8944. O=Lotus Notes
  8945. CN=Lotus Notes Template Development/O=Lotus Notes
  8946. PURSAFO
  8947. Fde!f^^
  8948. lZ/OWK
  8949. tDIGy
  8950. DelegateAlert
  8951. AssigneeAlert
  8952. $$FormPostOpenAction
  8953. ExpireDate
  8954. ReplyDate
  8955. CompletedOn
  8956. ComposedDate
  8957. SelfAssigned
  8958. $TypeIcon
  8959. $TITLE
  8960. $AUTOLAUNCH
  8961. $INFO
  8962. $WINDOWTITLE
  8963. $Script
  8964. $$Script_O
  8965. $$ScriptName
  8966. $$FormScript
  8967. $$$FormScript_O
  8968. DueDateTime
  8969. StartDateTime
  8970. $BODY
  8971. $ACTIONS
  8972. $SCRIPTOBJ_21
  8973. $SCRIPTOBJ_22
  8974. $SCRIPTOBJ_23
  8975. Strip alternatives, parentheses, and a leading dollar sign from the $Title item
  8976. FolderName1
  8977. $Title
  8978.     0R1S2S10S15S16S18S
  8979. FolderName2
  8980. FolderName1
  8981. $Title
  8982. FolderName1
  8983. FolderName1
  8984. FolderName1
  8985.     0R1S2S6S7S9S10S15S17S18S21S25S28S
  8986. FolderName2
  8987.     0S0E
  8988. Set the folder flags in addition to those that are stored
  8989. FolderFlags1
  8990. $FolderFlagsh
  8991. $FolderFlags
  8992.     0R1S2S9S11S
  8993. Set the FOLDER_FLAG_HIDDEN (32) and FOLDER_FLAG_SYSTEM (16) flags
  8994.     0R1S
  8995. FolderFlags1
  8996. $Name
  8997. $Name
  8998.     0R1S2S8S10S11S13S19S21S22S24S26S29S
  8999. $106$103$107$Conflict
  9000. Select all folders, except shared-on-first-use folders
  9001. $Flags
  9002. $Flags
  9003.     0RL1S5S7S8S13S
  9004. $106Folder Name
  9005. Strip alternatives, parentheses, and a leading dollar sign from the $Title item
  9006. FolderName1
  9007. $Title
  9008.     0R1S2S10S15S16S18S
  9009. FolderName2
  9010. FolderName1
  9011. $Title
  9012. FolderName1
  9013. FolderName1
  9014. FolderName1
  9015.     0R1S2S6S7S9S10S15S17S18S21S25S28S
  9016. FolderName2
  9017. $103Folder UNID
  9018.     0S0E
  9019. $107Folder Flags
  9020. Set the folder flags in addition to those that are stored
  9021. FolderFlags1
  9022. $FolderFlagsh
  9023. $FolderFlags
  9024.     0R1S2S9S11S
  9025. Set the FOLDER_FLAG_HIDDEN (32) and FOLDER_FLAG_SYSTEM (16) flags
  9026.     0R1S
  9027. FolderFlags1
  9028. $Name
  9029. $Name
  9030.     0R1S2S8S10S11S13S19S21S22S24S26S29S&
  9031. New Memo.
  9032.     0S0E
  9033. Delete 
  9034.     0S0E
  9035. Move To Folder...
  9036.     0S0E
  9037. _Forward
  9038. Reply
  9039. Reply
  9040.     0S0E
  9041. Reply With History@
  9042. Reply with history
  9043.     0S0E
  9044. Categori_ze
  9045. _Edit Document
  9046. Send    
  9047. Resend
  9048. NonDelivery Report
  9049. Not a Delivery Failure Report
  9050. You cannot Resend a message unless it is a Delivery Failure Report.
  9051.     6S12S17S23S
  9052. Convert To Task
  9053. ConvertToTask
  9054. _Move To Folder...
  9055. _Remove From Folder...
  9056. O=Lotus Notes
  9057. O=Lotus Notes
  9058. PURSAFO
  9059. |.:#U
  9060. O=Lotus Notes
  9061. CN=Lotus Notes Template Development/O=Lotus Notes
  9062. PURSAFO
  9063. Fde!f^^
  9064. $Name
  9065. $TITLE
  9066. $Index
  9067. $Formula
  9068. $VIEWFORMAT
  9069. $Comment
  9070. $ACTIONS
  9071. $FormulaClass
  9072. '++LotusScript Development Environment:2:5:(Options):0:74
  9073. Option Public
  9074. '++LotusScript Development Environment:2:5:(Forward):0:1
  9075. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9076. O=Lotus Notes
  9077. O=Lotus Notes
  9078. PURSAFO
  9079. |.:#U
  9080. O=Lotus Notes
  9081. CN=Lotus Notes Template Development/O=Lotus Notes
  9082. PURSAFO
  9083. Fde!f^^
  9084. $TITLE
  9085. $Index
  9086. $Formula
  9087. $FormulaClass
  9088. $VIEWFORMAT
  9089. $Comment
  9090. $ViewGlobalScript
  9091. '++LotusScript Development Environment:2:5:(Options):0:74
  9092. Option Public
  9093. '++LotusScript Development Environment:2:5:(Forward):0:1
  9094. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9095. O=Lotus Notes
  9096. O=Lotus Notes
  9097. PURSAFO
  9098. |.:#U
  9099. O=Lotus Notes
  9100. CN=Lotus Notes Template Development/O=Lotus Notes
  9101. PURSAFO
  9102. Fde!f^^
  9103. 7~ 9my4
  9104. $TITLE
  9105. $Index
  9106. $Formula
  9107. $FormulaClass
  9108. $VIEWFORMAT
  9109. $Comment
  9110. $ViewGlobalScript
  9111. $ViewGlobalScript_O
  9112. &Arial
  9113. Owner
  9114. Calendar Profile
  9115. Calendar Profile for 
  9116. Owner
  9117.     3S4S5S6S7S8S9S10S'++LotusScript Development Environment:2:5:(Options):0:74
  9118. Option Public
  9119. '++LotusScript Development Environment:2:5:(Forward):0:1
  9120. Declare Sub Terminate
  9121. Declare Function IsValidDateRange(FieldName As String) As Integer
  9122. '++LotusScript Development Environment:2:5:(Declarations):0:10
  9123. Dim uidoc As NotesUIDocument
  9124. Dim session As NotesSession
  9125. Dim trdr As NotesDateRange
  9126. Dim note As NotesDocument
  9127. Dim db As NotesDatabase
  9128. Dim acl As NotesAcl
  9129. Dim aclentry As NotesAclEntry
  9130. Dim namelookup As NotesName
  9131. Dim DoNotEdit As Integer
  9132. '++LotusScript Development Environment:2:2:Terminate:1:10
  9133. Sub Terminate
  9134.      
  9135. End Sub
  9136. '++LotusScript Development Environment:2:1:IsValidDateRange:1:8
  9137. Function IsValidDateRange(FieldName As String) As Integer
  9138. 'returns true if the given date range is valid, false otherwise
  9139.      Dim datetime As String
  9140.      
  9141.      On Error Goto ErrorRoutine
  9142.      
  9143.      IsValidDateRange = True
  9144.      datetime = uidoc.FieldGetText(FieldName)
  9145.      trdr.Text = datetime
  9146.      Exit Function
  9147.      
  9148. ErrorRoutine:
  9149.      IsValidDateRange = False
  9150.      Exit Function
  9151. End Function
  9152.  CalendarProfile'++LotusScript Development Environment:2:5:(Options):0:66
  9153. '++LotusScript Development Environment:2:5:(Forward):0:1
  9154. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9155. Declare Sub Postopen(Source As Notesuidocument)
  9156. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  9157. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9158. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9159. Private Sub BindEvents(Byval Objectname_ As String)
  9160.      Static Source As NOTESUIDOCUMENT
  9161.      Set Source = Bind(Objectname_)
  9162.      On Event Querysave From Source Call Querysave
  9163.      On Event Postopen From Source Call Postopen
  9164.      On Event Querymodechange From Source Call Querymodechange
  9165. End Sub
  9166. '++LotusScript Development Environment:2:2:Querysave:1:12
  9167. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9168.      
  9169.      If (note.Sunday(0) = "1") Then
  9170.           If Not (IsValidDateRange("$Times1")) Then
  9171.                Messagebox "You must enter a valid date-range for Sunday.",0,"Error"
  9172.                continue = False
  9173.                Exit Sub      
  9174.           End If
  9175.      End If
  9176.      
  9177.      If (note.monday(0) = "2") Then
  9178.           If Not (IsValidDateRange("$Times2")) Then
  9179.                Messagebox "You must enter a valid date-range for Monday.",0,"Error"
  9180.                continue = False
  9181.                Exit Sub      
  9182.           End If
  9183.      End If
  9184.      
  9185.      If (note.tuesday(0) = "3") Then
  9186.           If Not (IsValidDateRange("$Times3")) Then
  9187.                Messagebox "You must enter a valid date-range for Tuesday.",0,"Error"
  9188.                continue = False
  9189.                Exit Sub      
  9190.           End If
  9191.      End If
  9192.      
  9193.      If (note.Wednesday(0) = "4") Then
  9194.           If Not (IsValidDateRange("$Times4")) Then
  9195.                Messagebox "You must enter a valid date-range for Wednesday.",0,"Error"
  9196.                continue = False
  9197.                Exit Sub      
  9198.           End If
  9199.      End If
  9200.      
  9201.      If (note.Thursday(0) = "5") Then
  9202.           If Not (IsValidDateRange("$Times5")) Then
  9203.                Messagebox "You must enter a valid date-range for Thursday.",0,"Error"
  9204.                continue = False
  9205.                Exit Sub      
  9206.           End If
  9207.      End If
  9208.      
  9209.      If (note.Friday(0) = "6") Then
  9210.           If Not (IsValidDateRange("$Times6")) Then
  9211.                Messagebox "You must enter a valid date-range for Friday.",0,"Error"
  9212.                continue = False
  9213.                Exit Sub      
  9214.           End If
  9215.      End If
  9216.      
  9217.      If (note.Saturday(0) = "7") Then
  9218.           If Not (IsValidDateRange("$Times7")) Then
  9219.                Messagebox "You must enter a valid date-range for Saturday.",0,"Error"
  9220.                continue = False
  9221.                Exit Sub      
  9222.           End If
  9223.      End If
  9224.      
  9225.      
  9226. End Sub
  9227. '++LotusScript Development Environment:2:2:Postopen:1:12
  9228. Sub Postopen(Source As Notesuidocument)
  9229.      
  9230.      Set note = source.Document
  9231.      Set session = New NotesSession
  9232.      Set trdr  = session.CreateDateRange
  9233.      Set uidoc = source
  9234.      Set db = session.CurrentDatabase
  9235.      
  9236. 'if you are less than an Author you cannot edit
  9237.      If db.CurrentAccessLevel < ACLLEVEL_AUTHOR Then
  9238.           DoNotEdit = True
  9239.           source.EditMode = False
  9240.      End If
  9241.      
  9242.      If source.EditMode Then Call source.Refresh
  9243.      
  9244. End Sub
  9245. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  9246. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  9247.      If DoNotEdit And source.EditMode = False Then continue = False
  9248. End Sub
  9249. UserAccess
  9250.     1S2S11S
  9251. EnableAlarms
  9252.     0R3S4S6S11S
  9253. AutoProcessMeetings
  9254. AutoProcessMeetings
  9255.     0R1S2S3S
  9256. AutoProcessMeetings
  9257. AutoProcessNotices
  9258. UserAccess
  9259. AutoProcessMeetings
  9260. Autoprocess
  9261. You are not authorized to enable the Autoprocessing agent.  Please contact a designer or manager of this database.
  9262. AutoProcessNotices
  9263. AutoProcessMeetings
  9264. AutoProcessMeetings
  9265. AutoProcessNotices
  9266. UserAccess
  9267. AutoProcessMeetings
  9268. Autoprocess
  9269. You are not authorized to disable the Autoprocessing agent.  Please contact a designer or manager of this database.
  9270. AutoProcessNotices
  9271. AutoProcessMeetings
  9272.     0R3S4S5S6S12RS6E15S16S18RS12E20RS21E27RS21E32RS21E38S40S43RS21E45RS6E59RS12E61RS21E68RS21E72RS21E74RS12E78R79S80S81S82S87RS6E90S91S93RS12E95RS21E102RS21E107RS21E113S115S118RS21E120RS6E134RS12E136RS21E143RS21E147RS21E149RS12E153R
  9273. '++LotusScript Development Environment:2:5:(Options):0:66
  9274. '++LotusScript Development Environment:2:5:(Forward):0:1
  9275. Declare Sub Exiting(Source As Field)
  9276. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9277. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9278. Private Sub BindEvents(Byval Objectname_ As String)
  9279.      Static Source As FIELD
  9280.      Set Source = Bind(Objectname_)
  9281.      On Event Exiting From Source Call Exiting
  9282. End Sub
  9283. '++LotusScript Development Environment:2:2:Exiting:1:12
  9284. Sub Exiting(Source As Field)
  9285.      
  9286. End Sub
  9287. *.PCX
  9288. TIFF 5.0 
  9289. .0/6.1
  9290. *.WPD;*.W
  9291. _ITIFF
  9292. Calendar Profile
  9293. Mail File Owner: 
  9294. OwnerEnter the name of the person who owns this mail file.
  9295. Delegation Profile
  9296. You are not authorized to access the Delegation Profile.
  9297. EditDelegationProfile
  9298.     11S14S15S17S23S25S29R33S
  9299.     Allow other users to view your calendar...
  9300. Scheduling Options
  9301.     Default appointment/meeting duration:
  9302. DefaultDuration
  9303. EnableAlarms
  9304. Enable alarm notifications|1
  9305. EnableAlarms
  9306.     1S2S
  9307. AutoSetAlarms
  9308. Automatically set alarm(s) for:|1
  9309. AutoSetAlarms
  9310. EnableAlarms
  9311.     1S2S3S4S5S6S
  9312. SetAlarmAppointment
  9313. Appointments/Meetings|1
  9314. AppointmentLead
  9315.     minute(s) in advance
  9316. SetAlarmReminder
  9317. Reminders|1
  9318. ReminderLead
  9319.      minute(s) in advance
  9320. SetAlarmEvent
  9321. Events|1
  9322. EventLead
  9323.     day(s) in advance
  9324. SetAlarmAnniversary
  9325. Anniversaries|1
  9326. AnniversaryLead
  9327.     day(s) in advance
  9328. Freetime Options
  9329.     Only the following users can
  9330.     read my Freetime Schedule:    
  9331. AllowBusyAccess
  9332. AllowBusyAccess
  9333. Owner
  9334.     6S7S8S9S12S13S16SAllowBusyAccessEnter the names of users who can read your freetime schedule; leave this field blank to give everyone access.
  9335.     Allowable free times:
  9336. Sunday
  9337. Sunday:|1
  9338. Sunday
  9339.     1S2S
  9340.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  9341. $Times1
  9342. $Times1
  9343.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  9344. textdate
  9345. $Times1
  9346.     0S0E
  9347. list1
  9348. textdate
  9349. list2
  9350. textdate
  9351. date1
  9352. list1
  9353. date2
  9354. list2
  9355. result
  9356. date2
  9357. date1
  9358. result
  9359. result
  9360. Invalid time range for Sunday.  Ranges may not span days.
  9361.     0R4S5S7S8S10S11S
  9362. $Times1
  9363. Monday
  9364. Monday:|2
  9365. Monday
  9366.     1S2S
  9367.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  9368. $Times2
  9369. $Times2
  9370.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  9371. textdate
  9372. $Times2
  9373.     0S0E
  9374. list1
  9375. textdate
  9376. list2
  9377. textdate
  9378. date1
  9379. list1
  9380. date2
  9381. list2
  9382. result
  9383. date2
  9384. date1
  9385. result
  9386. result
  9387. Invalid time range for Monday.  Ranges may not span days.
  9388.     0R4S5S7S8S10S11S
  9389. $Times2
  9390. Tuesday
  9391. Tuesday:|3
  9392. Tuesday
  9393.     1S2S
  9394.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  9395. $Times3
  9396. $Times3
  9397.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  9398. textdate
  9399. $Times3
  9400.     0S0E
  9401. list1
  9402. textdate
  9403. list2
  9404. textdate
  9405. date1
  9406. list1
  9407. date2
  9408. list2
  9409. result
  9410. date2
  9411. date1
  9412. result
  9413. result
  9414. Invalid time range for Tuesday.  Ranges may not span days.{
  9415.     0R4S5S7S8S10S11S
  9416. $Times3
  9417. Wednesday
  9418. Wednesday:|4
  9419. Wednesday
  9420.     1S2S
  9421.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  9422. $Times4
  9423. $Times4
  9424.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  9425. textdate
  9426. $Times4
  9427.     0S0E
  9428. list1
  9429. textdate
  9430. list2
  9431. textdate
  9432. date1
  9433. list1
  9434. date2
  9435. list2
  9436. result
  9437. date2
  9438. date1
  9439. result
  9440. result
  9441. Invalid time range for Wednesday.  Ranges may not span days.{
  9442.     0R4S5S7S8S10S11S
  9443. $Times4
  9444. Thursday
  9445. Thursday:|5
  9446. Thursday
  9447.     1S2S
  9448.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  9449. $Times5
  9450. $Times5
  9451.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  9452. textdate
  9453. $Times5
  9454.     0S0E
  9455. list1
  9456. textdate
  9457. list2
  9458. textdate
  9459. date1
  9460. list1
  9461. date2
  9462. list2
  9463. result
  9464. date2
  9465. date1
  9466. result
  9467. result
  9468. Invalid time range for Thursday.  Ranges may not span days.
  9469.     0R4S5S7S8S10S11S
  9470. $Times5
  9471. Friday
  9472. Friday:|6
  9473. Friday
  9474.     1S2E2S
  9475.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  9476. $Times6
  9477. $Times6
  9478.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  9479. textdate
  9480. $Times6
  9481.     0S0E
  9482. list1
  9483. textdate
  9484. list2
  9485. textdate
  9486. date1
  9487. list1
  9488. date2
  9489. list2
  9490. result
  9491. date2
  9492. date1
  9493. result
  9494. result
  9495. Invalid time range for Friday.  Ranges may not span days.
  9496.     0R4S5S7S8S10S11S
  9497. $Times6
  9498. Saturday
  9499. Saturday:|7
  9500. Saturday
  9501.     1S2E2S
  9502.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  9503. $Times7
  9504. $Times7
  9505.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  9506. textdate
  9507. $Times7
  9508.     0S0E
  9509. list1
  9510. textdate
  9511. list2
  9512. textdate
  9513. date1
  9514. list1
  9515. date2
  9516. list2
  9517. result
  9518. date2
  9519. date1
  9520. result
  9521. result
  9522. Invalid time range for Saturday.  Ranges may not span days.
  9523.     0R4S5S7S8S10S11S
  9524. $Times7
  9525. Advanced Calendar Options
  9526. Autoprocessing Options
  9527. AutoProcessMeetings
  9528. Meetings|1
  9529. AutoRemoveFromInbox
  9530. Remove Invitations from my Inbox after I respond to them|1
  9531. AutoProcessMeetings
  9532.     0S0E
  9533.     Autoprocess Meetings only from the following people:
  9534. MeetingsPeople
  9535. Calendar Entry Options
  9536.     Default settings:
  9537.     Calendar entry type:
  9538. CalEntryType
  9539. Appointment|0Invitation|3Event|2Reminder|4Anniversary|1
  9540. CalEntryHide
  9541. Hide new Calendar Entries from public viewing|1
  9542.     Enable conflict checking for:
  9543. ConflictMeeting
  9544. Appointments/Meetings|1
  9545. ConflictAnniv
  9546. Anniversaries|1
  9547. ConflictEvent
  9548. Events|1
  9549. Owner
  9550. $BusyName
  9551. $NoPurge
  9552. $NoPurge
  9553. Sunday
  9554. Monday
  9555. Tuesday
  9556. Wednesday
  9557. Thursday
  9558. Friday
  9559. Saturday
  9560.     0S0E
  9561. $AvailableDays
  9562. $PublicAccess
  9563. _Edit Document
  9564. _Forward
  9565.     0S0E
  9566. CancelF
  9567. SaveOptions
  9568.     1S2S3S
  9569. Categori_ze
  9570. Send Docu_ment
  9571. _Move To Folder...
  9572. _Remove From Folder
  9573. O=Lotus Notes
  9574. O=Lotus Notes
  9575. PURSAFO
  9576. |.:#U
  9577. O=Lotus Notes
  9578. CN=Lotus Notes Template Development/O=Lotus Notes
  9579. PURSAFO
  9580. Fde!f^^
  9581. SundayStart_1
  9582. SundayEnd_1
  9583. SundayStart_2
  9584. SundayEnd_2
  9585. SundayStart_3
  9586. SundayEnd_3
  9587. SundayStart_4
  9588. SundayEnd_4
  9589. SundayStart_5
  9590. SundayEnd_5
  9591. SundayStart_6
  9592. SundayEnd_6
  9593. TaskLead
  9594. TimeSlotStart
  9595. TimeSlotEnd
  9596. TimeSlotInterval
  9597. SundayStart
  9598. SundayEnd
  9599. MondayStart
  9600. MondayEnd
  9601. TuesdayStart
  9602. TuesdayEnd
  9603. WednesdayStart
  9604. WednesdayEnd
  9605. ThursdayStart
  9606. ThursdayEnd
  9607. FridayStart
  9608. FridayEnd
  9609. SaturdayStart
  9610. SaturdayEnd
  9611. $SundayTimes
  9612. $MondayTimes
  9613. $TuesdayTimes
  9614. $WednesdayTimes
  9615. $ThursdayTimes
  9616. $FridayTimes
  9617. $SaturdayTimes
  9618. $1Times
  9619. $2Times
  9620. $3Times
  9621. $4Times
  9622. $5Times
  9623. $6Times
  9624. $7Times
  9625. $FormPublicAccess
  9626. $TITLE
  9627. $INFO
  9628. $WINDOWTITLE
  9629. $Script
  9630. $$Script_O
  9631. $$ScriptName
  9632. $$FormScript
  9633. $$$FormScript_O
  9634. $$FormAction2
  9635. $$$Times1
  9636. $$Times1_O
  9637. DefaultDuration
  9638. AppointmentLead
  9639. ReminderLead
  9640. EventLead
  9641. AnniversaryLead
  9642. $Times1
  9643. $Times2
  9644. $Times3
  9645. $Times4
  9646. $Times5
  9647. $Times6
  9648. $Times7
  9649. $NoPurge
  9650. $BODY
  9651. $ACTIONS
  9652. $PublicAccess
  9653. Invitation from 
  9654. Principal
  9655.     1S2S6S
  9656. "Small Fonts
  9657. '++LotusScript Development Environment:2:5:(Options):0:74
  9658. Option Public  
  9659. Use "NoticeProcessing"
  9660. Use "NoticeResponses"
  9661. Use "RepeatProcessing"
  9662. Use "DocumentConversions"
  9663. '++LotusScript Development Environment:2:5:(Forward):0:1
  9664. Declare Sub Postopen(Source As Notesuidocument)
  9665. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9666. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  9667. Declare Sub Postmodechange(Source As Notesuidocument)
  9668. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  9669. Declare Sub Click(Source As Button)
  9670. '++LotusScript Development Environment:2:5:(Declarations):0:10
  9671. Dim collection As NotesDocumentCollection
  9672. Dim nam As NotesName
  9673. Dim DocWasSaved As Integer
  9674. Dim NewForm As String
  9675. Dim ErrorStatus As Integer
  9676. '++LotusScript Development Environment:2:2:Postopen:1:8
  9677. Sub Postopen(Source As Notesuidocument)
  9678.      
  9679. End Sub
  9680. '++LotusScript Development Environment:2:2:Querysave:1:8
  9681. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9682.      
  9683.      Call MarkTempFields(note)
  9684.      
  9685.      Select Case note.tmpAction(0)
  9686.      Case "Accept","PencilIn"
  9687.           AcceptInvitation
  9688.      Case "Decline"
  9689.           DeclineInvitation
  9690.      Case "Delegate"
  9691.           ErrorStatus = DelegateInvitation
  9692.      Case "CounterPropose"
  9693.           CounterPropose
  9694.      Case "AddCalendar"
  9695. 'in this case, we treat this as an accept, but we do not return anything back to the Chair -> we only add this to the Calendar and Busytime
  9696.           Call UpdateOriginalInvitation(note)
  9697.           If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  9698.      Case "AcceptCounterProposal"
  9699.           AcceptCounterProposal
  9700.      Case "DeclineCounterProposal"
  9701.           DeclineCounterProposal
  9702.      End Select
  9703.      
  9704. '#############################     
  9705. 'If this should repeat then we need create the repeat instances
  9706.      Action = note.tmpAction(0)     
  9707.      If note.HasItem("OrgRepeat") Then Call RepeatSave
  9708. '#############################          
  9709.      
  9710.      source.Reload
  9711.      
  9712. End Sub
  9713. '++LotusScript Development Environment:2:2:Queryopen:1:8
  9714. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  9715.      On Error 4005 Resume Next   'we want to trap whenever the parentnote is nothing
  9716. 'notice documents always exist when opening them
  9717.      Set ws = New NotesUIWorkspace
  9718.      Set uidoc = Source
  9719.      InstantiateObjectVariables
  9720.      
  9721.      note.RemoveItem("MailOptions")
  9722. 'if the user is in the preview pane, exit
  9723.      If (uidoc.InPreviewPane) Then Exit Sub
  9724.      
  9725. 'if this is a response document, get the parent
  9726. 'we do this for both the chair and the invitee so we can detect missing parent documents    
  9727.      If (note.IsResponse) Then 
  9728.           Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  9729.           If (parentnote Is Nothing) Then
  9730. 'if this is a non-repeating note, see if we should re-create the document
  9731.                If Not(note.hasitem("OrgRepeat")) Then
  9732.                     If (Msgbox("The appointment document has been deleted from your calendar, do you want to re-create it?",52) = 6) Then 
  9733.                          Call ResurrectParentDoc                        
  9734.                     Else
  9735.                          note.tmpNoParent = True
  9736.                          note.DoNotProcess = True
  9737.                     End If                         
  9738.                Else
  9739.                     Msgbox "This deleted appointment was part of a repeat set but is being recreated as a single appointment.",48 
  9740.                     Call ResurrectParentDoc
  9741.                End If                         
  9742.           End If 
  9743.      End If
  9744. 'remove any sendto items
  9745.      note.RemoveItem "SendTo"
  9746.      note.tmpOwner = Owner    
  9747. 'get any update items if we are not the chair
  9748.      If Not (note.tmpOwner(0) = note.Chair(0)) Then CheckForNoticeUpdates
  9749. End Sub
  9750. '++LotusScript Development Environment:2:2:Postmodechange:1:8
  9751. Sub Postmodechange(Source As Notesuidocument)
  9752.      
  9753. End Sub
  9754. '++LotusScript Development Environment:2:2:Queryclose:1:8
  9755. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  9756.      If (ErrorStatus > 0) Then 
  9757.           continue = False
  9758.           ErrorStatus = 0
  9759.      End If
  9760.      If ((Action = "Accept") Or (Action = "AddCalendar")) And note.HasItem("RepeatFor") Then note.Subject = "Repeat parent for " & note.Subject(0) & " - do not delete"
  9761.      ws.ViewRefresh
  9762. End Sub
  9763. '++LotusScript Development Environment:2:2:Click:1:8
  9764. Sub Click(Source As Button)
  9765.      Call ResurrectParentDoc
  9766.      Call note.RemoveItem("tmpNoParent")
  9767.      Call note.RemoveItem("DoNotProcess")
  9768.      Call uidoc.Refresh
  9769. End Sub
  9770. K|    -t
  9771. %K|    S
  9772. K|    Qp
  9773. K|    Sp
  9774.  Notice'++LotusScript Development Environment:2:5:(Options):0:66
  9775. '++LotusScript Development Environment:2:5:(Forward):0:1
  9776. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  9777. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9778. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  9779. Declare Sub Postopen(Source As Notesuidocument)
  9780. Declare Sub Postrecalc(Source As Notesuidocument)
  9781. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9782. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9783. Private Sub BindEvents(Byval Objectname_ As String)
  9784.      Static Source As NOTESUIDOCUMENT
  9785.      Set Source = Bind(Objectname_)
  9786.      On Event Queryopen From Source Call Queryopen
  9787.      On Event Querysave From Source Call Querysave
  9788.      On Event Queryclose From Source Call Queryclose
  9789.      On Event Postopen From Source Call Postopen
  9790.      On Event Postrecalc From Source Call Postrecalc
  9791. End Sub
  9792. '++LotusScript Development Environment:2:2:Queryopen:1:12
  9793. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  9794.      On Error 4005 Resume Next   'we want to trap whenever the parentnote is nothing
  9795. 'notice documents always exist when opening them
  9796.      Set ws = New NotesUIWorkspace
  9797.      Set uidoc = Source
  9798.      InstantiateObjectVariables
  9799.      
  9800.      note.RemoveItem("MailOptions")
  9801. 'if the user is in the preview pane, exit
  9802.      If (uidoc.InPreviewPane) Then Exit Sub
  9803.      
  9804. 'if this is a response document, get the parent
  9805. 'we do this for both the chair and the invitee so we can detect missing parent documents    
  9806.      If (note.IsResponse) Then 
  9807.           Call GetParentDocument
  9808. 'if the user did not create a parent, exit sub
  9809.           If (parentnote Is Nothing) Then Exit Sub
  9810.      End If
  9811.      
  9812.      If Not(parentnote Is Nothing) Then
  9813.           If(note.HasItem("RescheduleWhich")) Then parentnote.RescheduleWhich = note.RescheduleWhich
  9814.           If(note.HasItem("OriginalStartDate")) Then parentnote.OriginalStartDate = note.OriginalStartDate
  9815.      End If
  9816. 'remove any sendto items
  9817.      note.RemoveItem "SendTo"
  9818.      note.tmpOwner = Owner    
  9819. 'get any update items if we are not the chair
  9820.      If Not (note.tmpOwner(0) = note.Chair(0)) Then CheckForNoticeUpdates
  9821.      
  9822. End Sub
  9823. '++LotusScript Development Environment:2:2:Querysave:1:12
  9824. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9825.      ErrorStatus = 0
  9826.      
  9827.      'if we had to open the repeat parent, then make sure the user actually processsed the parent     
  9828.      If (OpenRepeatParent) Then 
  9829.           If Not(GetParentDocument()) Then
  9830.                continue = False
  9831.                Exit Sub
  9832.           End If
  9833.      End If
  9834.      
  9835. 'if the user had delegated the meeting invitation and is now trying to take a different action ,warn them
  9836.      If (note.NoticeType(0) = ORS_MSGTYPE_DELEGATING) Or (note.HasItem("tmpDidDelegate")) Then
  9837.           Select Case note.tmpAction(0)
  9838.           Case "Accept","PencilIn","Decline","CounterPropose"
  9839.                Set nam = New NotesName(note.Delegee(0))
  9840.                If (Messagebox("You previously delegated this invitation to "& nam.Common & ". By taking a different action now, the delegee will no longer receive any notifications relevant to this meeting. " _
  9841.                & "You may also have missed important change notifications (reschedule, cancellation) that were sent to the delegee by the Chairperson.  Continue?",36,"Warning") = 7) Then 
  9842.                     note.NoticeType = ORS_MSGTYPE_DELEGATING
  9843.                     note.RemoveItem("tmpDidDelegate")
  9844.                     note.RemoveItem("tmpUserActions")
  9845.                     source.Reload
  9846.                     source.Refresh
  9847.                     ErrorStatus = 1
  9848.                     continue = False
  9849.                     Exit Sub
  9850.                End If
  9851.           End Select
  9852.      End If
  9853.      
  9854.      If note.HasItem("OrgRepeat") Then Call SaveOriginalValues    
  9855.      
  9856.      If(note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then
  9857.           If (note.SequenceNum(0) <= parentnote.sequencenum(0)) Then
  9858.                Messagebox "This reschedule notice cannot be processed since it has a lower sequence than the parent document."
  9859.                continue = False
  9860.                ErrorStatus = 1
  9861.                Exit Sub
  9862.           End If
  9863.      End If
  9864.      DocWasSaved = True
  9865.      source.Reload
  9866.      
  9867. End Sub
  9868. '++LotusScript Development Environment:2:2:Queryclose:1:12
  9869. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  9870.      If Not(DocWasSaved) Then Exit Sub     
  9871.      Select Case note.tmpAction(0)
  9872.      Case "Accept","PencilIn"
  9873.           AcceptInvitation
  9874.      Case "Decline"
  9875.           DeclineInvitation
  9876.      Case "Delegate"
  9877.           ErrorStatus = DelegateInvitation
  9878.           If (ErrorStatus <> 0) Then
  9879.                note.RemoveItem "tmpUserActions"
  9880.                note.RemoveItem "tmpAction"
  9881.                continue = False
  9882.                ErrorStatus = 0
  9883.                Exit Sub
  9884.           End If
  9885.      Case "CounterPropose"
  9886.           CounterPropose
  9887.      Case "AddCalendar"
  9888. 'in this case, we treat this as an accept, but we do not return anything back to the Chair -> we only add this to the Calendar and Busytime
  9889.           Context = GetContext
  9890.           Select Case Context
  9891.           Case 1,3
  9892.                Call UpdateOriginalInvitation(parentnote)
  9893.           Case 2,4
  9894.                Call UpdateOriginalInvitation(note)
  9895.           End Select
  9896.           If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  9897.      Case "AcceptCounterProposal"
  9898.           AcceptCounterProposal
  9899.      Case "DeclineCounterProposal"
  9900.           DeclineCounterProposal
  9901.      End Select
  9902.      
  9903. '#############################     
  9904. 'If this should repeat then we need create the repeat instances
  9905.      Action = note.tmpAction(0)     
  9906.      If (Action = "AddCalendar") Then Action = "Accept"
  9907.      If note.HasItem("OrgRepeat") Then 
  9908.           If (note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then Action = ""          
  9909.           Call RepeatSave      
  9910.      End If
  9911. '#############################          
  9912.      
  9913.      If (ErrorStatus > 0) Then 
  9914.           continue = False
  9915.           ErrorStatus = 0
  9916.           Exit Sub
  9917.      End If
  9918.      If ((Action = "Accept") Or (Action = "AddCalendar")) And note.HasItem("RepeatIds") Then note.Subject = "Do Not Delete - Repeat parent for " & note.Subject(0)
  9919.      Call MarkTempFields(note)
  9920.      Call note.Save(True,True,True)
  9921.      ws.ViewRefresh
  9922. End Sub
  9923. '++LotusScript Development Environment:2:2:Postopen:1:12
  9924. Sub Postopen(Source As Notesuidocument)
  9925.      If (OpenReschedule) Then
  9926.           Set TmpNote = db.GetDocumentByUNID(UpdateResponses(0).misc2)    
  9927.           Call ws.EditDocument(False,TmpNote)
  9928.      Elseif (OpenRepeatParent) Then
  9929.           Call ws.editdocument(False,parentnote)
  9930.      End If
  9931.      DocWasSaved = False
  9932. End Sub
  9933. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  9934. Sub Postrecalc(Source As Notesuidocument)
  9935.      If (note.NoticeType(0) = ORS_MSGTYPE_COUNTER) Then
  9936.           Set trdr = session.CreateDateRange
  9937.           trdr.Text = uidoc.FieldGetText("NewTimeRange")
  9938.           Set startdt = New NotesDateTime(uidoc.FieldGetText("Newdate") & " " & trdr.StartDateTime.TimeOnly)
  9939.           Set enddt = New NotesDateTime(uidoc.FieldGetText("Newdate") & " " & trdr.EndDateTime.TimeOnly)
  9940.           
  9941.           Set note.tmpNewStart = startdt
  9942.           Set note.tmpNewEnd = enddt
  9943.           Call uidoc.Reload
  9944.      End If
  9945. End Sub
  9946. X    X    p
  9947. ,X    }`
  9948. %KH    S
  9949. tmpRealDate
  9950.     0S0E
  9951. tmpRealDate
  9952. The invitation from 
  9953. chair
  9954.  for 
  9955. tmpRealDate
  9956. S0D0V
  9957. tmpRealTime
  9958. S1T1V
  9959.  has been confirmed."
  9960.     8S15S16S17S18S24S25S26S27S33S34S
  9961. tmpConfirmMsg
  9962. NoticeType
  9963. Invitation
  9964. NoticeType
  9965. Reschedule
  9966. NoticeType
  9967. Cancelled
  9968. NoticeType
  9969. Delegated Invitation
  9970. NoticeType
  9971. Status Update
  9972. NoticeType
  9973. Confirmation
  9974. NoticeType
  9975. Counter Proposal Declined
  9976. NoticeType
  9977. Acceptance
  9978. NoticeType
  9979. Declined
  9980. NoticeType
  9981. Delegation
  9982. NoticeType
  9983. Original Meeting
  9984. NoticeType
  9985. Pencilled In
  9986. tmpNoticeHeader
  9987.     3S4S6S8RS8E9S10S12S14RS8E15S16S18S20RS8E21S22S24S26RS8E27S28S30S32RS8E33S34S36S38RS8E39S40S42S44RS8E45S46S48S50RS8E51S52S54S56RS8E57S58S60S62RS8E63S64S66S68RS8E69S70S72S74R
  9988. tmpLabel
  9989. NoticeType
  9990.     1S2S3S4S5S6S
  9991. NoticeType
  9992. Accepted by:
  9993. NoticeType
  9994. Declined by:
  9995. NoticeType
  9996. tmpOwner
  9997. chair
  9998. Delegated to:
  9999. Delegated by:
  10000. NoticeType
  10001. Delegated by:
  10002. NoticeType
  10003. Counter proposal by:
  10004. tmpWhoLabel
  10005.     4RS8E7S8S10S12RS16E13S14S16S18RS16E19S20S25S26S28S30S33RS16E34S35S36S37S39RS16E40S41S43S45RS10E48R
  10006. tmpWhoLabel
  10007. NoticeType
  10008. Principal
  10009. Principal
  10010. NoticeType
  10011. tmpOwner
  10012. chair
  10013. Delegee
  10014. Principal
  10015.  (to 
  10016. Delegee
  10017. NoticeType
  10018. Principal
  10019. tmpWho
  10020.     4RS16E7S8S9S10S12S14RS34E21RS52E28RS34E32S36RS21E37S38S44S47S48S50S52S58S59S60S61S67S68S72RS21E73S74S75S76S83RS21E86RS9E
  10021. tmpWho
  10022.     Chairperson:    
  10023. Chair
  10024.     0S0E
  10025. tmpOriginator
  10026. NoticeType
  10027. chair
  10028. NoticeType
  10029. Principal
  10030. OrgStateh
  10031. OrgState
  10032.     2S3S12S14S15S16S17S19S20S22S23S28S29S30S31S32S33S34S35S36S37S39S40S45S46S47S48S
  10033.     Sent by:
  10034.     0S0E
  10035. tmpFrom
  10036.     Start:    
  10037. StartDateTime
  10038. tmpStartDate
  10039.     End:    
  10040. EndDateTime
  10041. tmpEndDate
  10042.     1S2S
  10043.     Room:    
  10044. tmpRoom
  10045.     Description:    
  10046. topic
  10047. tmpTopic
  10048. NoticeType
  10049.     1S2S
  10050. Proposed Change
  10051.     Reason for change:
  10052.     Proposed date:
  10053. AppointmentType
  10054.     1S2S3S4S
  10055.     Proposed time:
  10056. StartDate
  10057. StartDate
  10058. StartDateTime
  10059.     0S0E
  10060. NewDate
  10061. AppointmentType
  10062.     1S2S3S4S5S
  10063. StartDateTime
  10064. EndDateTime
  10065.     6S7S8S9S
  10066. NewTimeRange
  10067. Reason
  10068.     Proposed location:
  10069. NoticeType
  10070. chair
  10071. tmpOwner
  10072.     1S2S3S4S5S6S
  10073. NewRoom
  10074. NoticeType
  10075. chair
  10076. tmpOwner
  10077.     1S2S3S4S5S6S
  10078. CurrentServer
  10079.     1S2S
  10080. CurrentServer
  10081. Invalid Home Server
  10082. Please edit your current location document and specify a home/mail server.
  10083.     0R3S4S5S6S12S13S14S
  10084. RoomAvailable
  10085. CurrentServer
  10086. names.nsf
  10087. ($Rooms)
  10088. Select a room to reserve for this meeting.
  10089.     0R1S2S
  10090. NewRoom
  10091. RoomAvailable
  10092. RoomAvailable
  10093.     0R1S2S3S9S10S11S
  10094. RoomAvailable
  10095. Error
  10096. RoomAvailable
  10097.     0R6S7S18S19S23S24S
  10098.     Propose Specific Room...
  10099. CurrentServer
  10100.     1S2S
  10101. CurrentServer
  10102. Invalid Home Server
  10103. Please edit your current location document and specify a home/mail server.
  10104.     0R3S4S5S6S12S13S14S
  10105. Sites
  10106. CurrentServer
  10107. names.nsf
  10108. ($Rooms)
  10109.     0R1S2S
  10110. Select the site to search for a room.
  10111. Sites
  10112.     0R1S2S7S8S
  10113. SiteKey
  10114. CN=*/O=
  10115. Site"
  10116.     0R1S2S3S4S
  10117. Capacity
  10118. RequiredAttendees
  10119. OptionalAttendees
  10120.     0R1S2S
  10121. RoomAvailable
  10122. SiteKey
  10123. tmpNewStart
  10124. tmpNewEnd
  10125. Capacity
  10126.     0R1S2S
  10127. RoomAvailable
  10128. No Room Found
  10129. No room was found during the specified time.
  10130.     0R3S4S5S6S11S12S14S15S
  10131. NewRoom
  10132. RoomAvailable
  10133. RoomAvailable
  10134.     0RR1S2S3S
  10135. RoomAvailable
  10136. Error
  10137. RoomAvailable
  10138.     0R6S7S18S19S23S24S
  10139.     Find Available Room...
  10140. CurrentServer
  10141.     1S2S
  10142. CurrentServer
  10143. Error
  10144. This operation cannot be performed locally.
  10145.     0R3S4S5S6S14S15S
  10146. Sites
  10147. CurrentServer
  10148. names.nsf
  10149. ($Rooms)
  10150.     0R1S2S
  10151. Select the site to search for a room.
  10152. Sites
  10153.     0R1S2S7S8S
  10154. SiteKey
  10155. CN=*/O=
  10156. Site"
  10157.     0R1S2S3S4S
  10158. Capacity
  10159. RequiredAttendees
  10160. OptionalAttendees
  10161.     0R1S2S
  10162. RoomAvailable
  10163. SiteKey
  10164. tmpNewStart
  10165. tmpNewEnd
  10166. Capacity
  10167.     0R1S2S
  10168. RoomAvailable
  10169. No Room Found
  10170. No room was found during the specified time.
  10171.     0R3S4S5S6S11S12S14S15S
  10172. NewRoom
  10173. RoomAvailable
  10174.     0R1S2S3S
  10175. ProposeRoom
  10176.     0R1S2S3S
  10177. SelectRoom
  10178.     0R1S2S3S
  10179.          
  10180. NewRoom
  10181. tmpNewRoom
  10182. RepeatIDs
  10183. NoticeType
  10184.     4S5S6S7S
  10185. Repeating meeting information:
  10186. RepeatUnit
  10187. NoticeType
  10188.     1S2S3S4S5S6S
  10189.     This meeting repeats 
  10190. RepeatInterval
  10191. RepeatInterval
  10192. every|1every 2nd|2every 3rd|3every 4th|4every 5th|5every 6th|6every 7th|7every 8th|8every 9th|9every 10th|10every 11th|11every 12th|12every 13th|13every 14th|14every 15th|15every 16th|16every 17th|17every 18th|18every 19th|19every 20th|20every 21st|21every 22nd|22every 23rd|23every 24th|24every 25th|25every 26th|26every 27th|27every 28th|28every 29th|29every 30th|30every 31st|31
  10193. RepeatUnit
  10194. RepeatUnit
  10195. day|Dweek|Wmonth|MDmonth|MPyear|YDcustom|C
  10196. RepeatAdjust
  10197. RepeatAdjust
  10198. RepeatUnit
  10199.  on Sunday|0
  10200.  on Monday|1
  10201.  on Tuesday|2
  10202.  on Wednesday|3
  10203.  on Thursday|4
  10204.  on Friday|5
  10205.  on Saturday|6
  10206. RepeatUnit
  10207.  on the 1st Sunday|1.0
  10208.  on the 1st Monday|1.1
  10209.  on the 1st Tuesday|1.2
  10210.  on the 1st Wednesday|1.3
  10211.  on the 1st Thursday|1.4
  10212.  on the 1st Friday|1.5
  10213.  on the 1st Saturday|1.6
  10214.  on the 2nd Sunday|2.0
  10215.  on the 2nd Monday|2.1
  10216.  on the 2nd Tuesday|2.2
  10217.  on the 2nd Wednesday|2.3
  10218.  on the 2nd Thursday|2.4
  10219.  on the 2nd Friday|2.5
  10220.  on the 2nd Saturday|2.6
  10221.  on the 3rd Sunday|3.0
  10222.  on the 3rd Monday|3.1
  10223.  on the 3rd Tuesday|3.2
  10224.  on the 3rd Wednesday|3.3
  10225.  on the 3rd Thursday|3.4
  10226.  on the 3rd Friday|3.5
  10227.  on the 3rd Saturday|3.6
  10228.  on the 4th Sunday|4.0
  10229.  on the 4th Monday|4.1
  10230.  on the 4th Tuesday|4.2
  10231.  on the 4th Wednesday|4.3
  10232.  on the 4th Thursday|4.4
  10233.  on the 4th Friday|4.5
  10234.  on the 4th Saturday|4.6
  10235.  on the Last Sunday|5.0
  10236.  on the Last Monday|5.1
  10237.  on the Last Tuesday|5.2
  10238.  on the Last Wednesday|5.3
  10239.  on the Last Thursday|5.4
  10240.  on the Last Friday|5.5
  10241.  on the Last Saturday|5.6
  10242. RepeatUnit
  10243.  on the 1st day|1
  10244.  on the 2nd day|2
  10245.  on the 3rd day|3
  10246.  on the 4th day|4
  10247.  on the 5th day|5
  10248.  on the 6th day|6
  10249.  on the 7th day|7
  10250.  on the 8th day|8
  10251.  on the 9th day|9
  10252.  on the 10th day|10
  10253.  on the 11th day|11
  10254.  on the 12th day|12
  10255.  on the 13th day|13
  10256.  on the 14th day|14
  10257.  on the 15th day|15
  10258.  on the 16th day|16
  10259.  on the 17th day|17
  10260.  on the 18th day|18
  10261.  on the 19th day|19
  10262.  on the 20th day|20
  10263.  on the 21st day|21
  10264.  on the 22nd day|22
  10265.  on the 23rd day|23
  10266.  on the 24th day|24
  10267.  on the 25th day|25
  10268.  on the 26th day|26
  10269.  on the 27th day|27
  10270.  on the 28th day|28
  10271.  on the 29th day|29
  10272.  on the 30th day|30
  10273.  on the 31st day|31
  10274.     3S4S6R8R10R12R14R16R18R20RS5E21S22S24R26R28R30R32R34R36R38R40R42R44R46R48R50R52R54R56R58R60R62R64R66R68R70R72R74R76R78R80R82R84R86R88R90R92R94RS5E95S96S98R100R102R104R106R108R110R112R114R116R118R120R122R124R126R128R130R132R134R136R138R140R142R144R146R148R150R152R154R156R158R160S
  10275.      starting on 
  10276. RepeatStartDate
  10277. RepeatStartDate
  10278. RepeatHow
  10279. RepeatHow
  10280. until|Ufor|F
  10281. RepeatFor
  10282. tmpRepeatUnit
  10283.     7S9S
  10284. RepeatHow
  10285. RepeatUntil
  10286. RepeatFor
  10287. RepeatForUnit
  10288. RepeatFor
  10289. RepeatForUnit
  10290. RepeatFor
  10291. RepeatForUnit
  10292. RepeatFor
  10293. month
  10294. RepeatForUnit
  10295. RepeatFor
  10296. RepeatFor
  10297. RepeatForUnit
  10298. RepeatFor
  10299. RepeatForUnit
  10300. weeks
  10301. RepeatFor
  10302. RepeatForUnit
  10303. months
  10304. RepeatFor
  10305. RepeatForUnit
  10306. years
  10307.     0R3S4S6S10S13S17S18S19S20S23S24S25S26S27S28S30S32S33S34S35S36S37S38S40S42S43S44S45S46S47S48S50S52S53S54S55S56S57S58S60S62S64S65S68S69S70S71S72S73S75S77S78S79S80S81S82S83S85S87S88S89S90S91S92S93S95S97S98S99S100S101S102S103S105S107S
  10308. tmpRepeatUntil
  10309. RepeatUnit
  10310.  (if the date occurs on a weekend the meeting 
  10311. RepeatWeekends
  10312. occurs anyway
  10313. RepeatWeekends
  10314. is moved to Friday
  10315. RepeatWeekends
  10316. is moved to Monday
  10317. RepeatWeekends
  10318. is moved to Nearest Weekday
  10319. RepeatWeekends
  10320. is deleted
  10321.     3S4S5S6S7S8S10S12S13S14R17S18S20S22S23S24S26S28S29S30S32S34S35S36S38S40S41S42S44S46S48S49S
  10322. tmpRepeatWeekends
  10323. NoticeType
  10324.     1S2S
  10325.     Meeting Dates: 
  10326. RepeatDates
  10327. RepeatDates
  10328. RepeatDates
  10329.     0S0E
  10330. NoticeType
  10331.     3S4S5S6S7S8S
  10332. Invitees:
  10333. RequiredAttendees
  10334. OptionalAttendees
  10335.     0S0E
  10336. tmpAttendeeList
  10337.     Detailed description:
  10338. NoticeType
  10339.     1S2S
  10340.     Status update:
  10341. StatusUpdate
  10342. Comments
  10343.     1S2S
  10344.     Comments sent:
  10345. Comments
  10346. Comments
  10347.     Hidden Fields: 
  10348. tmpNewStart
  10349. tmpNewEnd
  10350. _Edit Document
  10351. _Forward
  10352. _Move To Folder...
  10353. Close
  10354.     0S0E
  10355. Accept'++LotusScript Development Environment:2:5:(Options):0:66
  10356. '++LotusScript Development Environment:2:5:(Forward):0:1
  10357. Declare Sub Click(Source As Button)
  10358. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10359. '++LotusScript Development Environment:2:2:BindEvents:1:129
  10360. Private Sub BindEvents(Byval Objectname_ As String)
  10361.      Static Source As BUTTON
  10362.      Set Source = Bind(Objectname_)
  10363.      On Event Click From Source Call Click
  10364. End Sub
  10365. '++LotusScript Development Environment:2:2:Click:1:12
  10366. Sub Click(Source As Button)
  10367.      On Error Resume Next
  10368.      On Error 4412 Goto ErrNoAccess
  10369.      
  10370.      If Not(uidoc.EditMode) Then uidoc.EditMode = True
  10371.      note.tmpAction = "Accept"
  10372.      uidoc.Save
  10373.      If (ErrorStatus = 0) Then uidoc.Close
  10374.      Exit Sub
  10375. ErrNoAccess:
  10376. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  10377. 'if ErrorStatus > 0, then the Save failed     
  10378.      If (ErrorStatus = 0) Then Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  10379.      uidoc.Close
  10380.      Exit Sub
  10381. End Sub
  10382. NoticeType
  10383. Chair
  10384. tmpOwner
  10385. DoNotProcessh
  10386. Broadcast
  10387. OrgRepeat
  10388.     4S5S6S7S8S9S10S11S12S16S2E17S19S20S22S23S27S28S29S30S31S32S
  10389. DeclineK'++LotusScript Development Environment:2:5:(Options):0:66
  10390. '++LotusScript Development Environment:2:5:(Forward):0:1
  10391. Declare Sub Click(Source As Button)
  10392. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10393. '++LotusScript Development Environment:2:2:BindEvents:1:129
  10394. Private Sub BindEvents(Byval Objectname_ As String)
  10395.      Static Source As BUTTON
  10396.      Set Source = Bind(Objectname_)
  10397.      On Event Click From Source Call Click
  10398. End Sub
  10399. '++LotusScript Development Environment:2:2:Click:1:12
  10400. Sub Click(Source As Button)
  10401.      On Error Resume Next
  10402.      On Error 4412 Goto ErrNoAccess
  10403.      
  10404.      If Not(uidoc.EditMode) Then uidoc.EditMode = True
  10405.      note.tmpAction = "Decline"
  10406.      uidoc.Save
  10407.      If (ErrorStatus = 0) Then uidoc.Close
  10408.      Exit Sub
  10409. ErrNoAccess:
  10410. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  10411. 'if ErrorStatus > 0, then the Save failed     
  10412.      If (ErrorStatus = 0) Then Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  10413.      uidoc.Close
  10414.      Exit Sub
  10415. End Sub
  10416. NoticeType
  10417. Chair
  10418. tmpOwner
  10419. DoNotProcessh
  10420. tmpNoParent
  10421. Broadcast
  10422. OrgRepeat
  10423.     4S5S6S7S8S9S10S11S12S16S17S19S20S22S23S27S28S32S33S34S35S36S37S
  10424. Other...'++LotusScript Development Environment:2:5:(Options):0:66
  10425. '++LotusScript Development Environment:2:5:(Forward):0:1
  10426. Declare Sub Click(Source As Button)
  10427. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10428. '++LotusScript Development Environment:2:2:BindEvents:1:129
  10429. Private Sub BindEvents(Byval Objectname_ As String)
  10430.      Static Source As BUTTON
  10431.      Set Source = Bind(Objectname_)
  10432.      On Event Click From Source Call Click
  10433. End Sub
  10434. '++LotusScript Development Environment:2:2:Click:1:12
  10435. Sub Click(Source As Button)
  10436.      On Error Resume Next
  10437.      On Error 4412 Goto ErrNoAccess
  10438.      
  10439.      uidoc.EditMode = True
  10440.      If (ws.DialogBox("(NoticeOptionsDlg)",True,True,,,,,"Options")) Then
  10441. 'the user selected an action and clicked on OK
  10442. 'if the user selected Accept, Decline, we can save and exit
  10443.           If (note.Comments(0) <> "") Then note.IncludeComment = "1"
  10444.           Select Case note.ResponseType(0)
  10445.           Case "0"
  10446. 'this is an acceptance
  10447.                note.tmpAction = "Accept"
  10448.                Call uidoc.Save
  10449.                If (ErrorStatus = 0) Then Call uidoc.Close
  10450.           Case "1"
  10451. 'this is a decline
  10452.                note.tmpAction = "Decline"
  10453.                Call uidoc.Save
  10454.                If (ErrorStatus = 0) Then Call uidoc.Close
  10455.           Case "2"
  10456. 'this is a delegate
  10457.                note.tmpAction = "Delegate"
  10458.                Call uidoc.Save
  10459.                If (ErrorStatus = 0) Then Call uidoc.Close            
  10460.           Case "3"
  10461. 'this is a counter propose
  10462.                note.tmpAction = "CounterPropose"
  10463.                If (note.NoticeType(0) = ORS_MSGTYPE_DELEGATING) Then note.tmpDidDelegate = True
  10464.                note.NoticeType = ORS_MSGTYPE_COUNTER
  10465.                Call uidoc.RefreshHideFormulas
  10466.                Call uidoc.GotoField("Reason")
  10467.           Case "4"
  10468. 'this is a pencil in
  10469.                note.tmpAction = "PencilIn"
  10470.                Call uidoc.Save
  10471.                If (ErrorStatus = 0) Then Call uidoc.Close
  10472.           End Select
  10473.      End If
  10474.      Exit Sub
  10475. ErrNoAccess:
  10476. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  10477. 'if ErrorStatus > 0, then the Save failed     
  10478.      note.RemoveItem("tmpUserActions")     
  10479.      If (ErrorStatus = 0) Then 
  10480.           Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  10481.           uidoc.Close
  10482.      End If     
  10483.      Exit Sub
  10484. End Sub
  10485. chair
  10486. tmpowner
  10487. DoNotProcessh
  10488. Broadcast
  10489. OrgRepeat
  10490. NoticeType
  10491.     2S3S5S6S12S13S14S15S16S17S21S22S23S24S
  10492. Send Counter Proposal
  10493. tmpAction
  10494. CounterPropose
  10495.     0R1S2S3S
  10496.     0R7S12S
  10497. NoticeType
  10498. NoticeType
  10499. Principal
  10500. tmpOwner
  10501. ProposalSenth
  10502. Chair
  10503. tmpOwner
  10504.     2S3S5S6S8S9S10S11S12S13S15S2E16S20S21S23S24S
  10505. Accept Counter ProposalK
  10506. tmpAction
  10507. AcceptCounterProposal
  10508.     0R1S2S3S
  10509. ProposalSent+
  10510.     0R1S2S3S
  10511.     0R7S12S
  10512. NoticeType
  10513. NoticeType
  10514. Chair
  10515. tmpOwner
  10516. ProposalSenth
  10517.     2S3S5S6S8S9S10S11S12S13S15S2E16S
  10518. Decline Counter Proposal
  10519. tmpAction
  10520. DeclineCounterProposal
  10521.     0R1S2S3S
  10522. ProposalSent+
  10523.     0R1S2S3S
  10524.     0R7S12S
  10525. NoticeType
  10526. NoticeType
  10527. Chair
  10528. tmpOwner
  10529. ProposalSenth
  10530.     2S3S5S6S8S9S10S11S12S13S15S16S
  10531. Delivery Information...Kz
  10532. DeliveryInfo
  10533. Delivery Information
  10534.     4S5S6S7S8S9S10S12S
  10535. Add to CalendarK'++LotusScript Development Environment:2:5:(Options):0:66
  10536. '++LotusScript Development Environment:2:5:(Forward):0:1
  10537. Declare Sub Click(Source As Button)
  10538. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10539. '++LotusScript Development Environment:2:2:BindEvents:1:129
  10540. Private Sub BindEvents(Byval Objectname_ As String)
  10541.      Static Source As BUTTON
  10542.      Set Source = Bind(Objectname_)
  10543.      On Event Click From Source Call Click
  10544. End Sub
  10545. '++LotusScript Development Environment:2:2:Click:1:12
  10546. Sub Click(Source As Button)
  10547.      On Error Resume Next
  10548.      On Error 4412 Goto ErrNoAccess
  10549.      
  10550.      If Not(uidoc.EditMode) Then uidoc.EditMode = True
  10551.      note.tmpAction = "AddCalendar"
  10552.      uidoc.Save
  10553.      If (ErrorStatus = 0) Then uidoc.Close
  10554.      Exit Sub
  10555. ErrNoAccess:
  10556. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  10557. 'if ErrorStatus > 0, then the Save failed     
  10558.      If (ErrorStatus = 0) Then Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  10559.      uidoc.Close
  10560.      Exit Sub
  10561. End Sub
  10562. Broadcast
  10563. DoNotProcessh
  10564. Chair
  10565. tmpOwner
  10566. NoticeType
  10567.     1S2S3S4S8S9S10S11S12S13S14S15S
  10568. Pencil In
  10569. tmpAction
  10570. PencilIn
  10571.     0R1S2S3S
  10572.     0R7S12S
  10573. NoticeType
  10574. Chair
  10575. tmpOwner
  10576. DoNotProcessh
  10577. Broadcast
  10578.     4S5S6S7S8S9S10S11S12S14S2E15S17S18S20S21S25S26S27S28S
  10579. Check Calendar
  10580. KeyValue
  10581. NoticeType
  10582. NewDate
  10583. StartDate
  10584.     1S2S5S6S7S8S9S10S
  10585. Calendar
  10586. KeyValue
  10587. KeyValue
  10588. tmpOwner
  10589. chair
  10590. NoticeType
  10591.     2S3S5S6S8S9S
  10592. '++LotusScript Development Environment:2:5:(Options):0:66
  10593. '++LotusScript Development Environment:2:5:(Forward):0:1
  10594. Declare Sub Click(Source As Button)
  10595. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10596. '++LotusScript Development Environment:2:2:BindEvents:1:129
  10597. Private Sub BindEvents(Byval Objectname_ As String)
  10598.      Static Source As BUTTON
  10599.      Set Source = Bind(Objectname_)
  10600.      On Event Click From Source Call Click
  10601. End Sub
  10602. '++LotusScript Development Environment:2:2:Click:1:12
  10603. Sub Click(Source As Button)
  10604.      Set helpdoc = New NotesDocument(db)
  10605.      
  10606. 'get the context the user is in
  10607.      If (note.Chair(0) = note.tmpOwner(0)) Then
  10608. 'the chair is looking at this
  10609.           Select Case note.NoticeType(0)
  10610.           Case ORS_MSGTYPE_REJECT
  10611.                helpdoc.tmpContext = "5"       'chair is reading a decline notice
  10612.           Case ORS_MSGTYPE_COUNTER
  10613.                helpdoc.tmpContext = "6"       'chair is reading a counter notice
  10614.           Case ORS_MSGTYPE_ACCEPT
  10615.                helpdoc.tmpContext = "8"      'chair is reading an acceptance
  10616.           Case ORS_MSGTYPE_DELEGATING
  10617.                helpdoc.tmpContext = "15"    'chair is reading a delegation notice
  10618.           End Select
  10619.      Else
  10620. 'the invitee is looking at this
  10621.           Select Case note.NoticeType(0)
  10622.           Case ORS_MSGTYPE_INVITE
  10623.                helpdoc.tmpContext = "4"       'invitee is looking at an invitation
  10624.           Case ORS_MSGTYPE_RESCHEDULE
  10625.                helpdoc.tmpContext = "7"       'invitee is reading a reschedule notice
  10626.           Case ORS_MSGTYPE_COUNTERREJECT
  10627.                helpdoc.tmpContext = "9"       'invitee is reading a counter-decline notice
  10628.           Case ORS_MSGTYPE_CANCEL
  10629.                helpdoc.tmpContext = "10"     'invitee is reading a cancel notice
  10630.           Case ORS_MSGTYPE_STATUSUPDATE
  10631.                If (note.OrgStatus(0)) = ORS_STATUS_REMOVED Then
  10632.                     helpdoc.tmpContext = "11"    'invitee is reading a removal notice
  10633.                Else
  10634.                     helpdoc.tmpContext = "12"    'invitee is reading a mest attend notice
  10635.                End If
  10636.           Case ORS_MSGTYPE_CONFIRMATION
  10637.                helpdoc.tmpContext = "13"      'invitee is reading a confirmation notice
  10638.           Case ORS_MSGTYPE_DELEGATE
  10639.                If (note.OrgState(0) = ORS_STATE_DELEGATE) Then helpdoc.tmpContext = "14"  'delegatee opens an invitation notice
  10640.           Case ORS_MSGTYPE_REJECT,ORS_MSGTYPE_DELEGATING
  10641.                helpdoc.tmpContext = "16"     'invitee is looking at a notice they declined/delegated
  10642.           Case ORS_MSGTYPE_COUNTER
  10643.                helpdoc.tmpContext = "17"    'invitee is looking at notice they counter proposed               
  10644.           End Select
  10645.      End If
  10646.      Call ws.DialogBox("(CalendarHelp)",True,True,True,True,True,True,"C&S Workflow Help",helpdoc)
  10647. End Sub
  10648. NoticeType
  10649. OrgStateY
  10650.     2S3S4S5S
  10651. Recreate Appointment'++LotusScript Development Environment:2:5:(Options):0:66
  10652. '++LotusScript Development Environment:2:5:(Forward):0:1
  10653. Declare Sub Click(Source As Button)
  10654. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10655. '++LotusScript Development Environment:2:2:BindEvents:1:129
  10656. Private Sub BindEvents(Byval Objectname_ As String)
  10657.      Static Source As BUTTON
  10658.      Set Source = Bind(Objectname_)
  10659.      On Event Click From Source Call Click
  10660. End Sub
  10661. '++LotusScript Development Environment:2:2:Click:1:12
  10662. Sub Click(Source As Button)
  10663.      If (uidoc.EditMode = False) Then uidoc.EditMode = True
  10664.      Call ResurrectParentDoc
  10665.      Call note.RemoveItem("tmpNoParent")
  10666.   '   Call note.RemoveItem("DoNotProcess")
  10667.      Call uidoc.Refresh
  10668. End Sub
  10669. tmpNoParent
  10670.     0S0E
  10671. Categori_zeK
  10672. Send Docu_ment
  10673. _Remove From FolderK
  10674. Copy into\New Memo,
  10675. NewMemo
  10676.     0S0E
  10677. tmpnewdoc
  10678.     1S2S
  10679. Copy into\New Calendar Entry4
  10680. NewCalendarEntry
  10681.     0S0E
  10682. tmpnewdoc
  10683.     1S2S
  10684. Copy into\New Task,
  10685. NewTask
  10686.     0S0E
  10687. tmpnewdoc
  10688.     1S2S
  10689. Copy into\New GroupK,
  10690. NewGroup
  10691.     0S0E
  10692. tmpnewdoc
  10693.     1S2S
  10694. O=Lotus Notes
  10695. O=Lotus Notes
  10696. PURSAFO
  10697. |.:#U
  10698. O=Lotus Notes
  10699. CN=Lotus Notes Template Development/O=Lotus Notes
  10700. PURSAFO
  10701. Fde!f^^
  10702. StartDate
  10703. TimeRange
  10704. $FormPublicAccess
  10705. tmpStartDate
  10706. tmpEndDate
  10707. $TITLE
  10708. $INFO
  10709. $WINDOWTITLE
  10710. $Script
  10711. $$Script_O
  10712. $$ScriptName
  10713. $$FormScript
  10714. $$$FormScript_O
  10715. NewDate
  10716. NewTimeRange
  10717. tmpNewStart
  10718. tmpNewEnd
  10719. $BODY
  10720. $ACTIONS
  10721. $SCRIPTOBJ_4
  10722. $SCRIPTOBJ_5
  10723. $SCRIPTOBJ_6
  10724. $SCRIPTOBJ_11
  10725. $SCRIPTOBJ_14
  10726. $SCRIPTOBJ_15
  10727. $PublicAccess
  10728. New Calendar Entry
  10729. Subject
  10730. "Small Fonts
  10731. '++LotusScript Development Environment:2:5:(Options):0:74
  10732. Option Public  
  10733. Use "AppointmentProcessing" 'includes NoticeProcessing and AppointmentResponses
  10734. Use "NoticeResponses"
  10735. Use "ResourceProcessing" 'includes RepeatProcessing 
  10736. Use "DocumentConversions"
  10737. '++LotusScript Development Environment:2:5:(Forward):0:1
  10738. '++LotusScript Development Environment:2:5:(Declarations):0:10
  10739. '(Globals): 
  10740. Dim startdt As NotesDateTime
  10741. Dim enddt As NotesDateTime
  10742. Dim remdt As NotesDateTime
  10743. Dim trdr As NotesDateRange
  10744. Dim Intl As NotesInternational
  10745. Dim tmpList() As Variant
  10746. Dim SelectedDate As Variant
  10747. Dim AppointmentAlarms As Integer
  10748. Dim AnniversaryAlarms As Integer
  10749. Dim EventAlarms As Integer
  10750. Dim DocWasSaved As Integer
  10751. Dim ErrorStatus As Integer
  10752. Dim AlarmSet As Integer
  10753. Dim InAlarmFolder As Integer 
  10754.  Appointment'++LotusScript Development Environment:2:5:(Options):0:66
  10755. '++LotusScript Development Environment:2:5:(Forward):0:1
  10756. Declare Sub Postopen(Source As Notesuidocument)
  10757. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  10758. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  10759. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  10760. Declare Sub Postrecalc(Source As Notesuidocument)
  10761. Declare Sub Postmodechange(Source As Notesuidocument)
  10762. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  10763. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10764. '++LotusScript Development Environment:2:2:BindEvents:1:129
  10765. Private Sub BindEvents(Byval Objectname_ As String)
  10766.      Static Source As NOTESUIDOCUMENT
  10767.      Set Source = Bind(Objectname_)
  10768.      On Event Postopen From Source Call Postopen
  10769.      On Event Querysave From Source Call Querysave
  10770.      On Event Queryopen From Source Call Queryopen
  10771.      On Event Queryclose From Source Call Queryclose
  10772.      On Event Postrecalc From Source Call Postrecalc
  10773.      On Event Postmodechange From Source Call Postmodechange
  10774.      On Event Querymodechange From Source Call Querymodechange
  10775. End Sub
  10776. '++LotusScript Development Environment:2:2:Postopen:1:12
  10777. Sub Postopen(Source As Notesuidocument)
  10778.      If (source.InPreviewPane) Then Exit Sub     
  10779.      source.AutoReload = False
  10780.      
  10781.      On Error Goto ErrorRoutine
  10782. 'if the user wants to open the reschedule notice, go for it!     
  10783.      If (OpenReschedule) Then
  10784.           Set note = db.GetDocumentByUNID(UpdateResponses(0).misc2)
  10785.     '      Call uidoc.Close          
  10786.           Set uidoc = ws.EditDocument(False,note)
  10787.      End If     
  10788.      
  10789. 'if this is a new document we need to set up some defaults
  10790.      If source.IsNewDoc Then
  10791.           Set uidoc = source
  10792.           Set note = uidoc.Document
  10793.           Call GetCalendarOwner
  10794.           If (note.AppointmentType(0) = "3") Then Call CreateInviteeTable(note)
  10795.           Set trdr = session.CreateDateRange
  10796.           If (Hour(SelectedDate) > 0) Then 
  10797. 'the user selected a date and time               
  10798.                note.StartDate = SelectedDate
  10799.                note.StartDateTime = SelectedDate
  10800.                PreferredDuration = profile.DefaultDuration(0)
  10801.                Set enddt = New NotesDateTime(note.StartDateTime(0))
  10802.                enddt.AdjustMinute(PreferredDuration)
  10803.                Set note.EndDateTime = enddt
  10804. 'set thet ime range value
  10805.                Set trdr.StartDateTime = startdt
  10806.                Set trdr.EndDateTime = enddt
  10807.                Set note.TimeRange = trdr
  10808.           Elseif (SelectedDate <> "") Then
  10809. 'the user selected a date but now time
  10810.                note.StartDate = SelectedDate           
  10811.           End If
  10812.           note.ReminderTime = note.StartDateTime
  10813.           note.From = session.UserName
  10814.           note.Principal = Owner
  10815.           note.ExcludeFromView = "D"
  10816.           AlarmSet = 0
  10817.           If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") Then
  10818.                Select Case note.AppointmentType(0)
  10819.                Case "0","3"
  10820.                     If profile.SetAlarmAppointment(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  10821.                Case "1"
  10822.                     If profile.SetAlarmAnniversary(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  10823.                Case "2"
  10824.                     If profile.SetAlarmEvent(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  10825.                Case "4"
  10826.                     If (profile.SetAlarmReminder(0)) = "1" Then Call note.ReplaceItemValue("$Alarm",1)
  10827.                End Select 
  10828.           End If
  10829.           note.Chair = Owner
  10830.           note.tmpOwner = Owner
  10831.           If (profile.CalEntryType(0) = "1") Then note.BookFreeTime = "1"
  10832.             'note.EndDateTime = note.StartDateTime
  10833.           source.Reload
  10834.           If (session.UserName = Owner) Then
  10835.                source.RefreshHideFormulas
  10836.           Else
  10837.                source.refresh
  10838.           End If
  10839.           
  10840.           NewDocument = True
  10841.      Else
  10842. 'DO NOT SET NewDocument = FALSE
  10843. 'In some cases, we set it to true in QueryOpen!!!          
  10844.           If source.InPreviewPane Then Exit Sub
  10845.           If source.EditMode And note.HasItem("OrgRepeat") Then
  10846.                If note.HasItem("RepeatIds") Then
  10847.                     source.EditMode = False
  10848.                Else
  10849.                     Call SaveOriginalValues
  10850.                End If
  10851.           End If
  10852.      End If
  10853.      
  10854.      note.tmpApptFlags = note.AppointmentType
  10855.      note.tmpOwner = Owner
  10856.      DocWasSaved = False
  10857.      
  10858.      Exit Sub
  10859.      
  10860. ErrorRoutine:
  10861.      Messagebox Error & " (PostOpen)"
  10862.      Exit Sub
  10863.      
  10864. End Sub
  10865. '++LotusScript Development Environment:2:2:Querysave:1:12
  10866. Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  10867. 'refresh the document to get any updated values
  10868.      ErrorStatus = 0
  10869.      source.reload     
  10870.      source.refresh     
  10871.      
  10872. 'the first thing we do is make sure the document can be saved
  10873.      
  10874. 'if the current user is not the owner, and the HideEntries is set, warn the user     
  10875.      If (db.CurrentAccessLevel < ACLLEVEL_AUTHOR) And (note.OrgConfidential(0) = "1") Then
  10876.           Messagebox "You have indicated that you want this document hidden from public viewing, but since you are considered a public viewer, " & _
  10877.           "you will not be able to save this document. This option will be de-selected.",0,"Warning"
  10878.           note.OrgConfidential = ""
  10879.           source.Reload
  10880.           source.Refresh
  10881.      End If
  10882.      
  10883. 'if this is not a new document, and the originaltype was an invitation but no longer is, make sure they want to proceed
  10884.      If Not(NewDocument) And (Owner = note.Chair(0))Then
  10885.           If ((OriginalType = "3") And (note.AppointmentType(0) <> "3")) Then
  10886.                If Messagebox("Changing this entry from an Invitation will cancel this meeting. Continue?",36,"Cancel Invitation") = 6 Then
  10887.                     If Not(note.IsResponse) Then
  10888.                          If (note.HasItem("PostedDate")) Then Call CancelAppointment
  10889.                     Else
  10890.                          If (parentnote.HasItem("PostedDate")) Then Call CancelAppointment
  10891.                     End If
  10892.                Else
  10893.                     Continue = False
  10894.                     DocWasSaved = False
  10895.                     Exit Sub
  10896.                End If
  10897.           End If
  10898.      End If
  10899.      
  10900. 'see if we are creating a document in the past
  10901.      If (Owner = note.Chair(0)) And ((note.AppointmentType(0) <> "1") And (note.AppointmentType(0) <> "2")) And (NewDocument) And Not(note.HasItem("RepeatFor")) Then     
  10902.           Set nowdt = New NotesDateTime("")
  10903.           Call nowdt.SetNow
  10904.           Set apptdt = New NotesDateTime(note.StartDateTime(0))
  10905.           If nowdt.TimeDifference(apptdt) > 0 Then
  10906.                If(Msgbox("This appointment is being created in the past. Continue?",36,"Continue") <> 6) Then
  10907.                     Continue = False
  10908.                     ErrorStatus = 2
  10909.                     DocWasSaved = False
  10910.                     Exit Sub
  10911.                Else
  10912.                     ErrorStatus = 0
  10913.                End If
  10914.           End If
  10915.      End If
  10916.      
  10917. 'check for any conflicts if this is not a reminder and the Warn for Conflicts button is selected 
  10918.      If (note.OrgDontDoubleBook(0) = "1") And (note.BookFreeTime(0) <> "1") And Not(note.HasItem("RepeatFor")) Then
  10919.           If Isarray(OriginalStartDate) Then
  10920.                If (OriginalStartDate(0) <> note.StartDateTime(0)) Then
  10921.                     If (CheckIfConflictExists) Then 
  10922.                          Continue = False    
  10923.                          DocWasSaved = False
  10924.                          Exit Sub
  10925.                     End If                    
  10926.                End If
  10927.           Else
  10928.                If (CheckIfConflictExists) Then 
  10929.                     Continue = False      
  10930.                     DocWasSaved = False
  10931.                     Exit Sub
  10932.                End If
  10933.           End If
  10934.      End If     
  10935.      
  10936.      If (NewDocument) And (note.hasitem("RepeatFor")) And (note.AppointmentType(0) = "3") Then note.Broadcast = "1"
  10937.      
  10938. 'if the invitee is modifying the date/time, see if they want to proceed
  10939.      If (Owner <> note.Chair(0)) Then
  10940.           If (OriginalStartDate(0) <> note.StartDateTime(0)) Or (OriginalEndDate(0) <> note.EndDateTime(0)) Then
  10941.                If(Messagebox("You are not the originator of this entry. Are you sure you want to change the date/time?",36,"Warning") = 7) Then
  10942. 'the user does not want to change the date/time
  10943.                     Set trdr = session.CreateDateRange
  10944.                     Set startdt = New NotesDateTime(OriginalStartDate(0))
  10945.                     Set enddt = New NotesDateTime(OriginalEndDate(0))
  10946.                     Set trdr.StartDateTime = startdt
  10947.                     Set trdr.EndDateTime = enddt 
  10948.                     Set note.StartDate = startdt
  10949.                     Set note.StartDateTime = startdt
  10950.                     Set note.EndDateTime = enddt
  10951.                     Set note.TimeRange = trdr
  10952.                     source.Reload
  10953.                     source.Refresh
  10954.                End If
  10955.           End If
  10956.      End If
  10957.      
  10958.      On Error Goto ErrorRoutine
  10959.      
  10960.      If note.HasItem("$Alarm") Then
  10961.           If Not(note.HasItem("$AlarmOffset") Or note.HasItem("$AlarmTime")) Then
  10962. 'they want it set automatically so default it as shown in calendar profile
  10963.                Select Case note.AppointmentType(0)
  10964.                Case "0","3"
  10965.                     Call note.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  10966.                Case "1"
  10967.                     AdjustMinutes = -1440 * profile.AnniversaryLead(0)
  10968.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  10969.                     alarmtime.AdjustMinute AdjustMinutes
  10970.                     Set note.~$AlarmTime = alarmtime
  10971.                Case "2"
  10972.                     AdjustMinutes = -1440 * profile.EventLead(0)
  10973.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  10974.                     alarmtime.AdjustMinute AdjustMinutes
  10975.                     Set note.~$AlarmTime = alarmtime
  10976.                Case "4"
  10977.                     AdjustMinutes = -1 * profile.ReminderLead(0)
  10978.                     Set alarmtime = New NotesDateTime(remdt.DateOnly & " " & remdt.TimeOnly)
  10979.                     alarmtime.AdjustMinute AdjustMinutes
  10980.                     Set note.~$AlarmTime = alarmtime
  10981.                End Select
  10982.                Call note.ReplaceItemValue("$AlarmDescription", note.Subject(0))
  10983.           Else
  10984.                AlarmDesc = note.GetItemValue("$AlarmDescription")
  10985.                If (AlarmDesc(0) = "") Then Call note.ReplaceItemValue("$AlarmDescription",note.Subject(0))
  10986.           End If
  10987.      Else
  10988.           note.RemoveItem("$AlarmOffset")
  10989.           note.RemoveItem("$AlarmTime")
  10990.           note.RemoveItem("$AlarmDescription")
  10991.      End If
  10992.      
  10993.      
  10994.      
  10995.      If Not(note.HasItem("DocAuthors")) Then Set item = New NotesItem(note, "DocAuthors", note.From, AUTHORS)
  10996.      
  10997.      'if this is a repeating meeting, see if changes need to be copied
  10998.      If Not(NewDocument) And note.HasItem("OrgRepeat") Then
  10999.           Call GetModifiedSettings
  11000.           If (CancelChange) Then 
  11001.                continue = False
  11002.                Exit Sub
  11003.           End If
  11004.      End If     
  11005.      DocWasSaved = True
  11006.      
  11007.      source.Reload
  11008.      
  11009.      Exit Sub
  11010.      
  11011. ErrorRoutine:
  11012.      Messagebox Error & " (QuerySave)"
  11013.      Exit Sub
  11014.      
  11015. End Sub
  11016. '++LotusScript Development Environment:2:2:Queryopen:1:12
  11017. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  11018. 'if this is a new document, get the currently selected time from the Calendar view
  11019.      If IsNewDoc Then
  11020.           Set ws = New NotesUIWorkspace          
  11021.           Set session = New NotesSession
  11022.           Set db = session.CurrentDatabase
  11023.           On Error Resume Next
  11024.           Set profile = db.GetProfileDocument("CalendarProfile")
  11025.           If Err > 0 Then
  11026.                Err = 0
  11027.                Messagebox "This mail file does not have a Calendar Profile. " &_
  11028.                "Please ask the owner of this mail file to select Actions, Calendar Tools, Calendar Profile from the menu to create one.", 0, "Calendar Profile"
  11029.                continue = False
  11030.                Exit Sub
  11031.           End If
  11032.           If (profile.Owner(0) <> "") Then
  11033.                If (db.CurrentAccessLevel < ACLLEVEL_AUTHOR) And (profile.CalEntryHide(0) = "1") Then
  11034.                     Set nam = New NotesName(profile.Owner(0))
  11035.                     Messagebox nam.Common & " has specified that new Calendar Entries are hidden from public viewing. You must have at least author access to create new Calendar Entries.",48,"Warning"
  11036.                     continue = False
  11037.                     Exit Sub
  11038.                End If         
  11039.           End If
  11040.           SelectedDate = ws.CurrentCalendarDateTime
  11041.           Set startdt = New NotesDateTime(SelectedDate)
  11042.      End If
  11043. 'if this is a new document, then exit this routine     
  11044.      If Isnewdoc Or source.InPreviewPane Then Exit Sub
  11045.      
  11046.      Set ws = New NotesUIWorkspace
  11047.      Set uidoc = source     
  11048.      InstantiateObjectVariables
  11049.      
  11050.      
  11051.      On Error Goto ErrorRoutine
  11052.      On Error 4005 Resume Next   'this will handle the parentnote not being found
  11053.      
  11054.      Set trdr = session.CreateDateRange
  11055.      
  11056. 'see if this is a document being created from an existing one
  11057.      If (note.HasItem("tmpNewDoc")) Then
  11058.           NewDocument = True
  11059.           Exit Sub
  11060.      End If
  11061.      
  11062.      If (note.HasItem("$Alarm")) Then 
  11063.           AlarmSet = 1
  11064.           InAlarmFolder = True
  11065.      End If
  11066.      
  11067.      note.tmpOwner = Owner
  11068.      If (note.IsResponse) Then 
  11069.           Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  11070.           If (parentnote Is Nothing) Then
  11071. 'this must be part of a repeat set -> we do not call GetParentDocument because that function is used to recreate the parent if it can't be found
  11072. 'we do not need to create the parent document since this was part of a repeat set                
  11073.                If (note.HasItem("OrgRepeat")) Then
  11074.                     Messagebox "This calendar entry belonged to a repeat set. The parent document cannot be found so this entry will be converted to a non-repeating entry.",0,"Status"
  11075.                     note.RemoveItem("$REF")
  11076.                     note.RemoveItem("$REFOPTIONS")
  11077.                     note.RemoveItem("OrgRepeat")
  11078.                     Call note.Save(True,True,True)
  11079.                End If
  11080.           End If
  11081.      End If
  11082.      
  11083. 'we need to get the original start and end date times
  11084.      OriginalStartDate = note.StartDateTime
  11085.      OriginalEndDate = note.EndDateTime
  11086.      OriginalType = note.AppointmentType(0)
  11087.      
  11088.      If (note.AppointmentType(0) <> "3") Then Exit Sub
  11089.      
  11090. 'get any update items if we are not the chair
  11091.      If Not (note.tmpOwner(0) = note.Chair(0)) Then 
  11092.           Call note.RemoveItem("MailOptions")
  11093.           Call note.RemoveItem("SendTo")
  11094.           CheckForNoticeUpdates
  11095.           note.SendTo = ""
  11096.      Else
  11097. 'we are the chair
  11098.           
  11099.           If (note.IsResponse) Then
  11100. 'this is a repeat instance; we need to add our parent's required & optional attendees               
  11101.                OriginalRequired = parentnote.RequiredAttendees
  11102.                OriginalOptional = parentnote.OptionalAttendees
  11103.                OriginalRoom = parentnote.Room(0)
  11104.                Call CreateInviteeTable(parentnote)               
  11105.           Else
  11106.                OriginalRequired = note.RequiredAttendees
  11107.                OriginalOptional = note.OptionalAttendees
  11108.                OriginalRoom = note.Room(0)
  11109.                Call CreateInviteeTable(note)               
  11110.           End If
  11111.      End If
  11112.      Print Now     
  11113.      Exit Sub
  11114.      
  11115. ErrorRoutine:
  11116.      Messagebox Error & " (QueryOpen)"
  11117.      Exit Sub
  11118.      
  11119. End Sub
  11120. '++LotusScript Development Environment:2:2:Queryclose:1:12
  11121. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  11122.      Dim InstanceWarned As Integer
  11123.      
  11124. 'if the document is in read mode, was not saved, or is a conflict, bail     
  11125.      If source.EditMode = False Or DocWasSaved = False Then Exit Sub
  11126. 'we need to make this check here -> if the user is in preview pane, the note object would not be set    
  11127.      If note.HasItem("$Conflict") Then Exit Sub
  11128.      
  11129. 'if this is a parent document, check for PostedDate  
  11130.      If Not(NewDocument) Then     
  11131.           If (note.AppointmentType(0) = "3") Then        
  11132.                If (OriginalStartDate(0) <> note.StartDateTime(0)) Or (OriginalEndDate(0) <> note.EndDateTime(0)) Then
  11133.                     IsDateChange = True
  11134.                Else
  11135.                     IsDateChange = False
  11136.                End If           
  11137. 'see if the room has changed          
  11138.                If (OriginalRoom <> note.Room(0)) And (OriginalRoom <> "") Then
  11139.                     IsRoomChange = True
  11140.                     note.OriginalRoom = OriginalRoom
  11141.                Else
  11142.                     IsRoomChange = False
  11143.                End If
  11144.                If (IsDateChange Or IsRoomChange) And (note.chair(0) = owner) Then
  11145.                     If (note.IsResponse) Then
  11146.                          If (parentnote.HasItem("PostedDate") Or (note.RequiredResources(0) <> "") Or (note.RoomRequired(0) = "1" And note.Room(0) <> "")) Then NeedsReschedule = True
  11147.                     Else
  11148.                          If (note.HasItem("PostedDate")) Or (note.RequiredResources(0) <> "") Or (note.RoomRequired(0) = "1" And note.Room(0) <> "") Then NeedsReschedule = True                  
  11149.                     End If
  11150.                End If
  11151.           End If    
  11152.      End If     
  11153.      
  11154.      If (NeedsReschedule) Then note.SequenceNum = note.SequenceNum(0) + 1     
  11155.      
  11156. 'If they have not indicated that this should repeat then we don't need to do this stuff
  11157.  'If they have not indicated that this should repeat then we don't need to do this stuff
  11158.      If note.HasItem("OrgRepeat") And (note.tmpAction(0) <> "Confirm") Then
  11159.           Action = note.tmpAction(0)          
  11160.           Call RepeatSave
  11161.      End If
  11162.      
  11163.      If (NeedsReschedule) Then Call RescheduleAppointment
  11164.      
  11165.      Select Case note.tmpAction(0)
  11166.      Case "Confirm"
  11167.           ConfirmAppointment
  11168.      Case "Cancel"
  11169.           CancelAppointment
  11170.      Case "Decline"
  11171. 'this gets called if an invitee changes their mind
  11172.           DeclineInvitation
  11173.      Case "Delegate"
  11174. 'the invitee is delegating a meeting that has been accepted
  11175.           DelegateInvitation
  11176.      End Select
  11177.      
  11178.      On Error Goto ErrorRoutine
  11179.      
  11180.      If note.HasItem("$Alarm") Then
  11181.           ws.EnableAlarms(True)
  11182.           If Not(note.HasItem("$AlarmOffset") Or note.HasItem("$AlarmTime")) Then
  11183. 'they want it set automatically so default it as shown in calendar profile
  11184.                Select Case note.AppointmentType(0)
  11185.                Case "0","3"
  11186.                     Call note.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  11187.                Case "1"
  11188.                     AdjustMinutes = -1440 * profile.AnniversaryLead(0)
  11189.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  11190.                     alarmtime.AdjustMinute AdjustMinutes
  11191.                     Set note.~$AlarmTime = alarmtime
  11192.                Case "2"
  11193.                     AdjustMinutes = -1440 * profile.EventLead(0)
  11194.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  11195.                     alarmtime.AdjustMinute AdjustMinutes
  11196.                     Set note.~$AlarmTime = alarmtime
  11197.                Case "4"
  11198.                     AdjustMinutes = -1 * profile.ReminderLead(0)
  11199.                     Set alarmtime = New NotesDateTime(remdt.DateOnly & " " & remdt.TimeOnly)
  11200.                     alarmtime.AdjustMinute AdjustMinutes
  11201.                     Set note.~$AlarmTime = alarmtime
  11202.                End Select
  11203.                Call note.ReplaceItemValue("$AlarmDescription", note.Subject(0))
  11204.           Else
  11205.                AlarmDesc = note.GetItemValue("$AlarmDescription")
  11206.                If (AlarmDesc(0) = "") Then Call note.ReplaceItemValue("$AlarmDescription",note.Subject(0))
  11207.           End If
  11208. 'if the document is not in the Alarms folder, put it in there if it is not the parent document of a repeat set          
  11209.           If Not(InAlarmFolder) Then
  11210.                If Not(note.HasItem("RepeatDates")) Then
  11211.                     If (note.noteid = "0") Then Call note.Save(True,True,True)
  11212.                     Call note.PutInFolder("$Alarms")
  11213.                End If
  11214.           Else
  11215. 'the document is in the alarms folder, but if the times changed, then we need to add it back in if it is not the parent document of a repeat set 
  11216. 'we only need to check startdate time, regardless of appointment type since the alarm is based upon the start date time
  11217.                If(OriginalStartDate(0) <> note.StartDateTime(0)) And Not(note.HasItem("RepeatIds"))Then Call note.PutInFolder("$Alarms")
  11218.           End If
  11219.           ws.CheckAlarms
  11220.      End If
  11221.      
  11222. 'check to see if this is a repeating entry and the repeat documents were not created
  11223.      If (NewDocument) And (note.HasItem("OrgRepeat")) And Not(note.HasItem("RepeatIds")) Then Call RepeatSave
  11224.      
  11225. 'see if we should invite the users/resources to this meeting
  11226.      If (note.AppointmentType(0) = "3") And (note.Chair(0) = Owner) And (ErrorStatus = 0) Then     
  11227.           If (note.Resources(0) <> "") Or (note.SendTo(0) <> "") Or (note.CopyTo(0) <> "") Or (note.RoomRequired(0) = "1" And note.RoomToReserve(0) <> "" And OriginalRoom = "") Then
  11228.                If Messagebox("Do you want to send this to the people/resources you invited?", 4 + 32, "Close") = 6 Then
  11229. 'the user wants to send this out
  11230. 'first, invite users
  11231.                     If (note.SendTo(0) <> "") Or (note.CopyTo(0) <> "") Then
  11232.                          If note.HasItem("Body") Then
  11233.                               ErrorStatus = SendInvitation
  11234.                               If (errorstatus > 0) Then
  11235.                                    continue = False
  11236.                                    ErrorStatus = 0
  11237.                                    Exit Sub
  11238.                               End If 
  11239.                          Else
  11240.                               ErrorStatus = SendInvitation
  11241.                               If (errorstatus > 0) Then
  11242.                                    continue = False
  11243.                                    ErrorStatus = 0
  11244.                                    Exit Sub
  11245.                               End If
  11246.                          End If
  11247.                          If (note.HasItem("OrgRepeat")) And (note.IsResponse) And (ChangeWhich <> "0") Then 
  11248.                               Messagebox "The people/resources invited will be for this repeat instance only.",0,"Status"
  11249.                               InstanceWarned =True
  11250.                          End If                               
  11251.                     End If                    
  11252. 'invite any resources -> resources are on a per repeat instance basis, so we only invite resources for this meeting                    
  11253.                     If (note.Resources(0) <> "") Then 
  11254.                          Call InviteResources(note)
  11255.                          If (note.HasItem("OrgRepeat")) And (note.IsResponse) And (ChangeWhich <> "0") And Not(InstanceWarned) Then Messagebox "The people/resources invited will be for this repeat instance only.",0,"Status"
  11256.                     End If                         
  11257. 'invite the room -> the user can change the room for multiple repeat instances                   
  11258.                     If (note.RoomRequired(0) = "1") And (note.RoomToReserve(0) <> "") Then
  11259.                          If (note.HasItem("tmpRescheduleWhich")) Then
  11260.                               Call ProcessRepeatingResources(note.tmpreschedulewhich(0),ORS_MSGTYPE_INVITE,ORS_STATE_ROOM)
  11261.                          Else               
  11262.                               Call InviteRoom(note)
  11263.                          End If               
  11264.                     End If               
  11265.                End If     
  11266.           End If
  11267.      End If        
  11268.      If note.HasItem("RepeatFor") And (NewDocument) Then 
  11269.           note.Subject = "Do Not Delete - Repeat parent for " & note.Subject(0)
  11270.      End If
  11271.      
  11272.      If note.HasItem("OrgRepeat") And Not(note.IsResponse) Then note.RemoveItem("CalendarDateTime")
  11273.      
  11274.      Call MarkTempFields(note)
  11275.      Call note.Save(True,True,True)
  11276.      
  11277.      If (note.tmpAction(0) = "CounterPropose") Then     
  11278.           note.NoticeType = ORS_MSGTYPE_COUNTER
  11279.           note.Form = "Notice"               
  11280.           Call uidoc.Reload     
  11281.           noteunid = note.UniversalID
  11282.           Set note = db.GetDocumentByUNID(noteunid)
  11283.           Set uidoc =  ws.EditDocument(True,note) 
  11284.      End If
  11285.      
  11286. '     If notice Is Nothing Then
  11287.           'Call MarkTempFields
  11288.           'note.Save True,True
  11289.      ws.ViewRefresh
  11290.  '         Exit Sub    
  11291.   '   End If     
  11292.      
  11293. %REM     
  11294.      If notice.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE Or _
  11295.      notice.NoticeType(0) = ORS_MSGTYPE_CONFIRMATION Or _
  11296.      notice.NoticeType(0) = ORS_MSGTYPE_CANCEL Or _
  11297.      notice.NoticeType(0) = ORS_MSGTYPE_STATUSUPDATE Then
  11298.           note.OriginalAttendees = OriginalAttendees
  11299.           'Call SendUpdateNotice
  11300.      End If
  11301. %ENDREM  
  11302.      Exit Sub
  11303.      
  11304. ErrorRoutine:
  11305.      Messagebox Error & " (QueryClose)"
  11306.      Exit Sub
  11307.      
  11308. End Sub
  11309. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  11310. Sub Postrecalc(Source As Notesuidocument)
  11311.      Dim startitem As NotesItem
  11312.      Dim enditem As NotesItem
  11313.      
  11314.      If Not (source.EditMode) Then Exit Sub
  11315.      
  11316.      On Error Goto ErrorRoutine
  11317.      
  11318. 'if the user is attempting to change the appointment type of a repeating meeting, don't let them
  11319.      If Not(NewDocument) And (note.HasItem("OrgRepeat")) And (note.IsResponse) And (OriginalType <> note.AppointmentType(0)) Then note.AppointmentType = OriginalType
  11320.      
  11321. 'if there is no chair item and there should be, add it
  11322.      If Not(note.HasItem("Chair")) Then note.Chair = Owner
  11323.      
  11324. 'if the user is changing this from a non-invitation to an invitation, we need to set up the invitee objects
  11325.      If (note.AppointmentType(0) = "3" And OriginalType <> "3") And (note.Chair(0) = Owner) Then Call CreateInviteeTable(note)
  11326.      
  11327. 'First see if we have alarm set by default for this type and the new type doesn't have default alarm specified in Calendar Profile
  11328.      If AlarmSet = 0 And note.HasItem("$Alarm") Then
  11329.           Call note.RemoveItem("$Alarm")
  11330.      End If
  11331. 'If $Alarm is not set and $AlarmOffset is not, we check if it should be     
  11332. '(they would both be set if the user set the alarm manually)     
  11333.      If Not(note.HasItem("$Alarm")) And Not(note.HasItem("$AlarmOffset") Or note.HasItem("$AlarmTime")) And (note.tmpAlarmOff(0) <> "1") And (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") Then
  11334.           Select Case note.AppointmentType(0)
  11335.           Case "0","3"
  11336.                If profile.SetAlarmAppointment(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  11337.           Case "1"
  11338.                If profile.SetAlarmAnniversary(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  11339.           Case "2"
  11340.                If profile.SetAlarmEvent(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  11341.           Case "4"
  11342.                If (profile.SetAlarmReminder(0)) = "1" Then Call note.ReplaceItemValue("$Alarm",1)
  11343.           End Select
  11344.      End If
  11345.      
  11346. 'tmpFreeTime is set when you click the FreeTime action
  11347.      Select Case note.tmpFreeTime(0)
  11348. 'The first time through, we are only setting the Attendee list so that the FreeTime dialog can use it          
  11349.      Case "0"
  11350.           OriginalTimeRange = note.TimeRange
  11351.           note.tmpFreeTime = "1"
  11352. 'we need to get the actual text from the time control since LotusScript date/time objects don't work as well as Notes objects
  11353.           trdr.Text = uidoc.FieldGetText("TimeRange") 
  11354.           Set startdt = New NotesDatetime(uidoc.FieldGetText("StartDate") & " " & trdr.StartDateTime.TimeOnly)
  11355.           Set enddt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " " & trdr.EndDateTime.TimeOnly)
  11356.           Set note.StartDateTime = startdt
  11357.           Set note.EndDateTime = enddt
  11358.           note.StartDate = note.StartDateTime          
  11359. 'The second time through, we are recalcing TimeRange from StartDateTime and EndDateTime
  11360.      Case "1"
  11361.           note.RemoveItem("tmpFreeTime")     
  11362.           Set startitem = note.GetFirstItem("StartDateTime")
  11363.           Set enditem = note.GetFirstItem("EndDateTime")
  11364.           Set note.StartDate = startitem.DateTimeValue
  11365.           Set trdr.StartDateTime = startitem.DateTimeValue
  11366.           Set trdr.EndDateTime = enditem.DateTimeValue
  11367.           Set note.TimeRange = trdr
  11368. 'otherwise we are recalcing based on what is on the screen          
  11369.      Case Else
  11370.           If (note.AppointmentType(0) = "0") Or (note.AppointmentType(0) = "3") Then
  11371. 'this is a personal appointment or a meeting               
  11372.                trdr.Text = uidoc.FieldGetText("TimeRange") 
  11373.                Set startdt = New NotesDatetime(uidoc.FieldGetText("StartDate") & " " & trdr.StartDateTime.TimeOnly)
  11374.                Set enddt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " " & trdr.EndDateTime.TimeOnly)
  11375.                Set note.StartDateTime = startdt
  11376.                Set note.EndDateTime = enddt
  11377.                Set note.StartDate = startdt               
  11378.                Set trdr.StartDateTime = startdt
  11379.                Set trdr.EndDateTime = enddt
  11380.                Set note.TimeRange = trdr
  11381.                If startdt.TimeDifference(enddt) > 0 Then
  11382.                     enddt.AdjustDay(1)
  11383.                     Set note.EndDateTime = enddt
  11384.                End If
  11385.                Call note.ReplaceItemValue("$NoPurge",note.EndDateTime(0))
  11386.           Elseif (note.AppointmentType(0) = "4") Then
  11387. 'this is a reminder               
  11388.                Set remdt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " " & uidoc.FieldGetText("ReminderTime"))
  11389.                Set note.StartDateTime = remdt
  11390.                note.ReminderTime = note.StartDateTime
  11391.                note.StartDate = note.StartDateTime
  11392.                Call note.RemoveItem("EndDateTime")
  11393.                Call note.RemoveItem("TimeRange")
  11394.                Call note.ReplaceItemValue("$NoPurge",note.StartDateTime(0))
  11395.           Else
  11396.                Set Intl = session.INternational
  11397.                Set startdt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " 00" & Intl.Timesep & "00" & Intl.Timesep & "01")
  11398.                Set note.StartDateTime = startdt
  11399.                Set enddt = New NotesDateTime(note.StartDateTime(0))
  11400.                'If note.Duration(0) > 1 Then enddt.AdjustDay(note.Duration(0) - 1)
  11401.                enddt.AdjustDay(note.Duration(0) - 1)
  11402.                enddt.AdjustHour(23)
  11403.                enddt.AdjustMinute(59)
  11404.                Set note.EndDateTime = enddt
  11405.                Call note.ReplaceItemValue("$NoPurge",note.EndDateTime(0))
  11406.           End If
  11407.      End Select
  11408.      
  11409. 'Reminder's should always have a $BusyPriority of 2
  11410.      If (note.AppointmentType(0) = "4") Or (note.BookFreeTime(0) = "1") Then
  11411.           Call note.ReplaceItemValue("$BusyPriority","2")
  11412.      Else
  11413.           Call note.ReplaceItemValue("$BusyPriority","1")               
  11414.      End If
  11415. 'if this is a reminder, remove the $BusyName
  11416.      If (note.AppointmentType(0) = "4") Or (note.HasItem("RepeatFor"))Then
  11417.           Call note.removeItem("$BusyName")          
  11418.      Else 
  11419.           Call note.replaceItemValue("$BusyName",Owner)
  11420.      End If
  11421.      note.CalendarDateTime = note.StartDateTime     
  11422. 'add the correct icon to the view, as well as the conflict checking value
  11423.      Select Case note.AppointmentType(0)
  11424.      Case "0" 
  11425.           Call note.ReplaceItemValue("_ViewIcon",160)
  11426.           note.OrgDontDoubleBook = profile.ConflictMeeting(0)
  11427.           note.OrgTable = ORS_ITEM_CALENDAR
  11428.      Case "1" 
  11429.           Call note.ReplaceItemValue("_ViewIcon",63)
  11430.           note.OrgDontDoubleBook = profile.ConflictAnniv(0)
  11431.           note.OrgTable = ORS_ITEM_ANNIVERSARY
  11432.      Case "2" 
  11433.           Call note.ReplaceItemValue("_ViewIcon",9)
  11434.           note.OrgDontDoubleBook = profile.ConflictEvent(0)
  11435.           note.OrgTable = ORS_ITEM_PLANNER          
  11436.      Case "3" 
  11437.           Call note.ReplaceItemValue("_ViewIcon",158)
  11438.           note.OrgDontDoubleBook = profile.ConflictMeeting(0)
  11439.           note.OrgTable = ORS_ITEM_CALENDAR
  11440.           If Not(note.HasItem("SequenceNum")) Then note.SequenceNum = 1          
  11441.      Case "4" 
  11442.           Call note.ReplaceItemValue("_ViewIcon",10)          
  11443.           note.OrgDontDoubleBook = ""
  11444.           note.OrgTable = ORS_ITEM_CALENDAR
  11445.           note.BookFreeTime = "1"
  11446.      End Select
  11447. 'if this is a meeting and the owner != chair, ensure that this is a meeting
  11448.      If (note.HasItem("Chair")) Then
  11449.           If (note.chair(0) <> Owner) Then note.AppointmentType = "3"
  11450.      End If
  11451.      
  11452.      'add the $PublicAccess item if this is a public document
  11453.      If (note.OrgConfidential(0) <> "1") Then 
  11454.           If Not (note.HasItem("$PublicAccess")) Then Call note.ReplaceItemValue("$PublicAccess","1")
  11455.      Else
  11456.           If (note.HasItem("$PublicAccess")) Then Call note.RemoveItem("$PublicAccess")
  11457.      End If
  11458.      
  11459.      Call source.Reload
  11460.      Call source.RefreshHideFormulas
  11461.      Exit Sub
  11462.      
  11463. ErrorRoutine:
  11464.      Messagebox Error & " (PostRecalc)"
  11465.      Exit Sub
  11466.      
  11467. End Sub
  11468. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  11469. Sub Postmodechange(Source As Notesuidocument)
  11470. 'If they have put it in edit mode, we want to save the original values     
  11471.      If Not(source.InPreviewPane) Then If source.EditMode And note.HasItem("OrgRepeat") Then Call SaveOriginalValues
  11472. End Sub
  11473. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  11474. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  11475. 'if the document is in the preview pane, editing is not allowed
  11476.      If (source.InPreviewPane) Then
  11477.           Continue = False
  11478.      Else
  11479.           If note.HasItem("RepeatIds") And Not(source.EditMode) Then continue = False          
  11480.      End If
  11481. End Sub
  11482. p!@    |"(
  11483. 3_    `4%
  11484. $h$h$`
  11485. p%X$-
  11486. K@    ,P    
  11487. [@    K(
  11488. K@    ,p
  11489. K@    ,P    K
  11490. K@    ,P    J
  11491. #}l'&
  11492. #}l'&
  11493. #}d(%
  11494.     Hidden Fields: 
  11495. AppointmentType
  11496.     0S0E
  11497. tmpRealDate
  11498.     0S0E
  11499. tmpRealDate
  11500. The invitation from 
  11501. chair
  11502.  for 
  11503. tmpRealDate
  11504. S0D0V
  11505. tmpRealTime
  11506. S1T1V
  11507.  has been confirmed."
  11508.     8S15S16S17S18S24S25S26S27S33S34S
  11509. tmpConfirmMsg
  11510. $AlarmY
  11511.     0S0E
  11512. TimeDisp
  11513. $AlarmTimeh
  11514. $AlarmTime
  11515. $AlarmOffseth
  11516. $AlarmOffsetA
  11517.  minutes 
  11518. $AlarmOffset
  11519. before
  11520. after
  11521.  the start time of this entry."
  11522.     1S2S10S11S25S32S33S34S35S38S39S43S45S46S
  11523. TimeDisp
  11524. Alarm enabled: an alarm will occur 
  11525. TimeDisp"
  11526.     0R3S4S6S7S8S
  11527. tmpAlarmDisplay
  11528. Calendar Entry
  11529. AppointmentType
  11530. tmpOwner
  11531. Chair
  11532.     1S2S3S2E4S5S6S
  11533. AppointmentType
  11534.     2S3S5S6S8S9S10S11S12S13S14S15S
  11535.     Duration (days):
  11536.     Brief description:
  11537.     Date:
  11538. AppointmentType
  11539.     1S2S3S4S
  11540.     Time:
  11541. CalendarProfile
  11542. CalEntryType
  11543.     1S2S
  11544.     0R3S4S5S6S7S8S
  11545. AppointmentType
  11546. Appointment|0Invitation|3Event|2Reminder|4Anniversary|1
  11547. AppointmentType
  11548. Duration
  11549. You must enter a duration of at least 1 day.{
  11550.     3S4S5S6S7S8S10SDuration
  11551. AppointmentType
  11552.     1S2S5S6S7S
  11553. StartDateTime
  11554.     0S0E
  11555. ReminderTime
  11556. SubjectEnter a brief description for this entry (i.e < 100 characters).
  11557. StartDateTime
  11558.     4S6S
  11559. newDateTime
  11560.     0RR1S2S
  11561. minutes
  11562. newDateTime
  11563.     0R1S2S
  11564. seconds
  11565. newDateTime
  11566.     0R1S2S3S4S
  11567. adjust time to the next 15 minute interval
  11568.     0RR1S
  11569. StartDateTime
  11570. minutes
  11571. newDateTime
  11572. minutes
  11573. seconds
  11574. minutes
  11575. newDateTime
  11576. minutes
  11577. seconds
  11578. minutes
  11579. newDateTime
  11580. minutes
  11581. seconds
  11582. minutes
  11583. newDateTime
  11584. minutes
  11585. seconds
  11586. newDateTime
  11587. seconds
  11588.     0R1S2S3S6S7S9S13S15S17S19S21S22S23S25S28S29S30S32S36S38S40S42S44S45S46S48S51S52S53S55S59S61S63S65S67S68S69S71S74S75S76S78S82S84S86S88S90S91S92S94S97S101S103S105S107S109S111S
  11589. MinuteDur
  11590. CalendarProfile
  11591. DefaultDuration
  11592.     0RR1S2S6S
  11593. MinuteDuration
  11594. MinuteDur
  11595. MinuteDur
  11596. MinuteDur
  11597.     0R1S2S4S6S7S9S10S12S13S16S17S18S
  11598. EndDateTime
  11599. StartDateTime
  11600. MinuteDuration
  11601.     0RR1S2S3S7S9S11S13S15S17S
  11602. StartDateTime
  11603.     0RRL
  11604. StartDate
  11605. StartDate
  11606.     3S4S5S6S
  11607. StartDate
  11608. AppointmentType
  11609.     1S2S3S4S5S
  11610. StartDateTime
  11611. EndDateTime
  11612.     6S7S8S9S
  11613. TimeRange
  11614. AppointmentType
  11615.     1S2S
  11616. tmpApptFlags
  11617. AppointmentType
  11618. tmpApptFlagsY
  11619. AppointmentType
  11620. BookFreeTime
  11621.     3S4S5S6S15S16S17S18S19S
  11622. tmpApptFlags
  11623. AppointmentType
  11624.     0R1S2S3S
  11625. BookFreeTime
  11626. Pencil in|1
  11627. CalendarProfile
  11628. CalEntryHide
  11629.     0S0E
  11630. OrgConfidential
  11631. Not for public viewing|1
  11632.     Detailed description:
  11633. AppointmentType
  11634.     1S2S
  11635. AppointmentType
  11636. tmpOwner
  11637. Chair
  11638.     1S2S3S2E4S5S6S7S8S
  11639.   @  
  11640.  @@ @
  11641.  `@ `
  11642. @ @@ 
  11643. @@@@@
  11644. @`@@`
  11645. ` @` 
  11646. `@@`@
  11647. ``@``
  11648.  Invitations
  11649.     Send invitations to:    
  11650. SendTo
  11651. SendTo
  11652. Principal
  11653.     1S2S10S
  11654. SendTo}
  11655. SendToEnter the names of people who you want to send invitations to.
  11656.     Optional invitees:    
  11657. CopyTo
  11658. CopyTo
  11659. Principal
  11660.     1S2S8S10S
  11661. CopyTo}
  11662. CopyToOptional invitees receive invitations but are not required to attend the meeting.
  11663. Broadcast
  11664. I don't want responses from the Invitees|1
  11665. tmpFreeTime
  11666.     1S2S3S
  11667. tmpApptFlags
  11668. AppointmentType
  11669.     0R1S2S3S
  11670. tmpOwner2
  11671. tmpOwner
  11672.     0R1S2S3S
  11673. tmpOwner2
  11674. SendTo
  11675. RequiredAttendees
  11676. CopyTo
  11677. OptionalAttendees
  11678. Resources
  11679. RequiredResources
  11680. Uninvited
  11681. StartDateTime
  11682. EndDateTime
  11683. tmpOwner2
  11684.     0R1S2S3S
  11685.     Find Free Time...
  11686. AppointmentType
  11687. RequiredAttendees
  11688.     1S2S3S4S8S9S
  11689.     Invitations have been sent to:    
  11690. RequiredAttendees
  11691.     0S0E
  11692. tmpSendTo
  11693. AppointmentType
  11694. OptionalAttendees
  11695.     1S2S3S4S8S9S
  11696.     Optional invitees:
  11697. OptionalAttendees
  11698.     0S0E
  11699. tmpCopyTo
  11700. AppointmentType
  11701.     1S2S3S4S5S6S
  11702.     Meeting location:    
  11703. tmpRoom
  11704. AppointmentType
  11705. tmpOwner
  11706. Chair
  11707.     1S2S3S4S5S6S7S8S
  11708. Reservations
  11709.   @  
  11710.  @@ @
  11711.  `@ `
  11712. @ @@ 
  11713. @@@@@
  11714. @`@@`
  11715. ` @` 
  11716. `@@`@
  11717. ``@``
  11718. Reservations
  11719. HomeServer
  11720.     1S2S
  11721. HomeServer
  11722. Invalid Home Server
  11723. Please edit your current location document and specify a home/mail server.
  11724.     0R3S4S5S6S12S13S14S
  11725. RoomAvailable
  11726. HomeServer
  11727. names.nsf
  11728. ($Rooms)
  11729. Select a room to reserve for this meeting.
  11730.     0R1S2S
  11731. RoomAvailable
  11732. RoomAvailable
  11733.     0RR1S2S3S10S11S
  11734. RoomAvailable
  11735. Error
  11736. RoomAvailable
  11737.     0R6S7S18S19S
  11738. RoomToReserve
  11739.     0R1S2S3S
  11740. RoomRequired
  11741.     0R1S2S3S
  11742. RoomSpecific
  11743.     0R1S2S3S
  11744. RoomAvailable
  11745.     0R1S2S3S
  11746.     Reserve Specific Room...
  11747.     - or -
  11748. HomeServer
  11749.     1S2S
  11750. HomeServer
  11751. Invalid Home Server
  11752. Please edit your current location document and specify a home/mail server.
  11753.     0R3S4S5S6S12S13S14S
  11754. Sites
  11755. HomeServer
  11756. names.nsf
  11757. ($Rooms)
  11758.     0R1S2S
  11759. Select the site to search for a room.
  11760. Sites
  11761.     0R1S2S7S8S
  11762. Invalid Selection
  11763. You didn't select a site.
  11764.     0R3S4S5S6S14S15S
  11765. SiteKey
  11766. CN=*/O=
  11767. Site"
  11768.     0R1S2S3S4S
  11769. Capacity
  11770. SendTo
  11771. CopyTo
  11772. RequiredAttendees
  11773. OptionalAttendees
  11774.     0R1S2S
  11775. RoomAvailable
  11776. SiteKey
  11777. StartDateTime
  11778. EndDateTime
  11779. Capacity
  11780.     0R1S2S
  11781. RoomAvailable
  11782. No Room Found
  11783. No room was found during the specified time.
  11784.     0R3S4S5S6S11S12S14S15S
  11785. RoomAvailable
  11786. RoomAvailable
  11787.     0RRR1S2S3S10S11S
  11788. RoomAvailable
  11789. Error
  11790. RoomAvailable
  11791.     0R6S7S18S19S
  11792. RoomToReserve
  11793.     0R1S2S3S
  11794. RoomRequired
  11795.     0R1S2S3S
  11796. RoomAvailable
  11797.     0R1S2S3S
  11798. RoomSpecific
  11799.     0R1S2S3S
  11800.     Find Available Room...
  11801. tmpRoom1
  11802. HomeServer
  11803.     1S2S
  11804. HomeServer
  11805. Invalid Home Server
  11806. Please edit your current location document and specify a home/mail server.
  11807.     0R3S4S5S6S12S13S14S
  11808. NewResources
  11809. HomeServer
  11810. names.nsf
  11811. ($Resources)
  11812. Resources
  11813. Select resources to reserve for this meeting.
  11814.     0R1S2S
  11815. NewResourcesZ
  11816. Error
  11817. NewResourcesV
  11818.     0R6S7S18S19S
  11819. Resources
  11820. NewResources
  11821. Resources
  11822. RequiredResources
  11823.     0R1S2S3S
  11824.     Reserve Resources...      
  11825. Resources
  11826. RequiredResources
  11827.     0S0E
  11828. tmpResources
  11829. AppointmentType
  11830.     1S2S
  11831.     _________________________________________________________________________
  11832. chair
  11833.     1S2S
  11834.     Chairperson:    
  11835. Chair
  11836. tmpChairperson
  11837. AppointmentType
  11838. Principal
  11839.     1S2S3S4S5S6S7S8S
  11840.     Sent by:    
  11841. Principal
  11842. Principal
  11843.     3S4S
  11844. tmpSentBy
  11845. AppointmentType
  11846. tmpOwner
  11847. Chair
  11848. OrgRepeat
  11849. Broadcast
  11850. RequiredResources
  11851. RoomRequired
  11852. tmpNewDoc
  11853.     1S2S3S4S5S2E6S7S8S9S10S16S17S18S19S21S22S23S24S25S26S27S28S30S31S
  11854. '++LotusScript Development Environment:2:5:(Options):0:66
  11855. '++LotusScript Development Environment:2:5:(Forward):0:1
  11856. Declare Sub Click(Source As Button)
  11857. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11858. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11859. Private Sub BindEvents(Byval Objectname_ As String)
  11860.      Static Source As BUTTON
  11861.      Set Source = Bind(Objectname_)
  11862.      On Event Click From Source Call Click
  11863. End Sub
  11864. '++LotusScript Development Environment:2:2:Click:1:12
  11865. Sub Click(Source As Button)
  11866.      
  11867.      Dim dispnote As NotesDocument
  11868.      
  11869.      
  11870.      If Not(HasInviteeInfo) Then 
  11871.           If (note.HasItem("OrgRepeat") And (note.IsResponse)) Then          
  11872.                Call GetInviteeStatus(parentnote,False)
  11873.                Call GetInviteeStatus(note,True)
  11874.           Else
  11875.                Call GetInviteeStatus(note,False)
  11876.           End If
  11877.      End If
  11878.      
  11879.      If Not(HasBeenProcessed) Then Call ProcessInviteeTable(note)
  11880.      
  11881.      Set dispnote = New NotesDocument(db)
  11882.      dispnote.tmpAccepted = UsersAccepted
  11883.      dispnote.tmpDeclined = UsersDeclined
  11884.      dispnote.tmpDelegated = UsersDelegated
  11885.      dispnote.tmpCounter = UsersCountered     
  11886.      dispnote.tmpDelegee = Delegees
  11887.      dispnote.tmpUninvited = note.Uninvited
  11888.      dispnote.tmpWaiting = UsersWaiting
  11889.      dispnote.tmpResAccepted = ResourcesReserved
  11890.      dispnote.tmpResDeclined = ResourcesDeclined
  11891.      dispnote.tmpResWaiting = ResourcesWaiting
  11892.      dispnote.SequenceNum = note.SequenceNum
  11893.      dispnote.Subject = note.Subject
  11894.      dispnote.Room = note.Room
  11895.      dispnote.Broadcast = note.Broadcast
  11896.      dispnote.StartDate = note.StartDate
  11897.      dispnote.StartDateTime = note.StartDateTime
  11898.      dispnote.EndDateTime = note.EndDateTime
  11899.      dispnote.requiredattendees = note.requiredattendees
  11900.      dispnote.optionalattendees = note.optionalattendees
  11901.      dispnote.RealDocUNID = note.UniversalID
  11902.      dispnote.NoticeType = note.NoticeType
  11903.      
  11904.      Call ws.DialogBox("(InviteeResponses)",False,False,True,,True,,"Invitee Responses",dispnote)    
  11905. End Sub
  11906. New Button
  11907. Need a newer version of Notes to execute this button.
  11908.     0S0E
  11909.     Display invitee responses...
  11910. AppointmentType
  11911. tmpOwner
  11912. Chair
  11913.     1S2S3S4S5S6S
  11914. RepeatIDs
  11915.     0S0E
  11916. Repeating meeting information:
  11917. RepeatUnit
  11918.     1S2S
  11919.     This meeting repeats 
  11920. RepeatInterval
  11921. tmpRepeatInterval
  11922. every|1every 2nd|2every 3rd|3every 4th|4every 5th|5every 6th|6every 7th|7every 8th|8every 9th|9every 10th|10every 11th|11every 12th|12every 13th|13every 14th|14every 15th|15every 16th|16every 17th|17every 18th|18every 19th|19every 20th|20every 21st|21every 22nd|22every 23rd|23every 24th|24every 25th|25every 26th|26every 27th|27every 28th|28every 29th|29every 30th|30every 31st|31
  11923. RepeatUnit
  11924. tmpRepeatUnit
  11925. day|Dweek|Wmonth|MDmonth|MPyear|YDcustom|C
  11926. RepeatAdjust
  11927. tmpRepeatAdjust
  11928. RepeatUnit
  11929.  on Sunday|0
  11930.  on Monday|1
  11931.  on Tuesday|2
  11932.  on Wednesday|3
  11933.  on Thursday|4
  11934.  on Friday|5
  11935.  on Saturday|6
  11936. RepeatUnit
  11937.  on the 1st Sunday|1.0
  11938.  on the 1st Monday|1.1
  11939.  on the 1st Tuesday|1.2
  11940.  on the 1st Wednesday|1.3
  11941.  on the 1st Thursday|1.4
  11942.  on the 1st Friday|1.5
  11943.  on the 1st Saturday|1.6
  11944.  on the 2nd Sunday|2.0
  11945.  on the 2nd Monday|2.1
  11946.  on the 2nd Tuesday|2.2
  11947.  on the 2nd Wednesday|2.3
  11948.  on the 2nd Thursday|2.4
  11949.  on the 2nd Friday|2.5
  11950.  on the 2nd Saturday|2.6
  11951.  on the 3rd Sunday|3.0
  11952.  on the 3rd Monday|3.1
  11953.  on the 3rd Tuesday|3.2
  11954.  on the 3rd Wednesday|3.3
  11955.  on the 3rd Thursday|3.4
  11956.  on the 3rd Friday|3.5
  11957.  on the 3rd Saturday|3.6
  11958.  on the 4th Sunday|4.0
  11959.  on the 4th Monday|4.1
  11960.  on the 4th Tuesday|4.2
  11961.  on the 4th Wednesday|4.3
  11962.  on the 4th Thursday|4.4
  11963.  on the 4th Friday|4.5
  11964.  on the 4th Saturday|4.6
  11965.  on the Last Sunday|5.0
  11966.  on the Last Monday|5.1
  11967.  on the Last Tuesday|5.2
  11968.  on the Last Wednesday|5.3
  11969.  on the Last Thursday|5.4
  11970.  on the Last Friday|5.5
  11971.  on the Last Saturday|5.6
  11972. RepeatUnit
  11973.  on the 1st day|1
  11974.  on the 2nd day|2
  11975.  on the 3rd day|3
  11976.  on the 4th day|4
  11977.  on the 5th day|5
  11978.  on the 6th day|6
  11979.  on the 7th day|7
  11980.  on the 8th day|8
  11981.  on the 9th day|9
  11982.  on the 10th day|10
  11983.  on the 11th day|11
  11984.  on the 12th day|12
  11985.  on the 13th day|13
  11986.  on the 14th day|14
  11987.  on the 15th day|15
  11988.  on the 16th day|16
  11989.  on the 17th day|17
  11990.  on the 18th day|18
  11991.  on the 19th day|19
  11992.  on the 20th day|20
  11993.  on the 21st day|21
  11994.  on the 22nd day|22
  11995.  on the 23rd day|23
  11996.  on the 24th day|24
  11997.  on the 25th day|25
  11998.  on the 26th day|26
  11999.  on the 27th day|27
  12000.  on the 28th day|28
  12001.  on the 29th day|29
  12002.  on the 30th day|30
  12003.  on the 31st day|31
  12004.     3S4S6R8R10R12R14R16R18R20RS5E21S22S24R26R28R30R32R34R36R38R40R42R44R46R48R50R52R54R56R58R60R62R64R66R68R70R72R74R76R78R80R82R84R86R88R90R92R94RS5E95S96S98R100R102R104R106R108R110R112R114R116R118R120R122R124R126R128R130R132R134R136R138R140R142R144R146R148R150R152R154R156R158R160S
  12005.      starting on 
  12006. RepeatStartDate
  12007. tmpRepeatStartDate
  12008. RepeatHow
  12009. tmpRepeatHow
  12010. until|Ufor|F
  12011. RepeatFor
  12012. tmpRepeatUnit
  12013.     7S9S
  12014. RepeatHow
  12015. RepeatUntil
  12016. RepeatFor
  12017. RepeatForUnit
  12018. RepeatFor
  12019. RepeatForUnit
  12020. RepeatFor
  12021. RepeatForUnit
  12022. RepeatFor
  12023. month
  12024. RepeatForUnit
  12025. RepeatFor
  12026. RepeatFor
  12027. RepeatForUnit
  12028. RepeatFor
  12029. RepeatForUnit
  12030. weeks
  12031. RepeatFor
  12032. RepeatForUnit
  12033. months
  12034. RepeatFor
  12035. RepeatForUnit
  12036. years
  12037.     0R3S4S6S10S13S17S18S19S20S23S24S25S26S27S28S30S32S33S34S35S36S37S38S40S42S43S44S45S46S47S48S50S52S53S54S55S56S57S58S60S62S64S65S68S69S70S71S72S73S75S77S78S79S80S81S82S83S85S87S88S89S90S91S92S93S95S97S98S99S100S101S102S103S105S107S
  12038. tmpRepeatUntil
  12039. RepeatUnit
  12040.  (if the date occurs on a weekend the meeting 
  12041. RepeatWeekends
  12042. occurs anyway
  12043. RepeatWeekends
  12044. is moved to Friday
  12045. RepeatWeekends
  12046. is moved to Monday
  12047. RepeatWeekends
  12048. is moved to Nearest Weekday
  12049. RepeatWeekends
  12050. is deleted
  12051.     3S4S5S6S7S8S10S12S13S14R17S18S20S22S23S24S26S28S29S30S32S34S35S36S38S40S41S42S44S46S48S49S
  12052. tmpRepeatWeekends
  12053. RepeatIds
  12054.     0S0E
  12055.     Meeting Dates: 
  12056. RepeatDates
  12057. tmpRepeatDates
  12058. RepeatDates
  12059.     0S0E
  12060. IncludeComment
  12061.     1S2S
  12062.     My comments:
  12063. Comments
  12064. tmpComments
  12065. _ViewIcon
  12066.     Hidden:
  12067. Appointment
  12068. $ExpandGroups
  12069. Edit Document
  12070. Attendees
  12071. Principal
  12072. RepeatIds
  12073.     4S5S6S7R11S12S13S14S15S17S18S
  12074. _Forward
  12075. _Move to Folder...
  12076. Delivery Information...Kz
  12077. DeliveryInfo
  12078. Delivery Information
  12079.     4S5S6S7S8S9S10S12S
  12080. Close
  12081.     0S0E
  12082. Save and Close@
  12083.     0S7S12S|
  12084. Attendees
  12085. Principal
  12086. RepeatIds
  12087.     4S5S6S7R11S12S13S14S15S17S18S
  12088. _Edit Document
  12089. Attendees
  12090. Principal
  12091. RepeatIds
  12092.     4S5S6S7R11S12S13S14S15S17S18S
  12093. Remove\Invitees...'++LotusScript Development Environment:2:5:(Options):0:66
  12094. '++LotusScript Development Environment:2:5:(Forward):0:1
  12095. Declare Sub Click(Source As Button)
  12096. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12097. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12098. Private Sub BindEvents(Byval Objectname_ As String)
  12099.      Static Source As BUTTON
  12100.      Set Source = Bind(Objectname_)
  12101.      On Event Click From Source Call Click
  12102. End Sub
  12103. '++LotusScript Development Environment:2:2:Click:1:12
  12104. Sub Click(Source As Button)
  12105.      SelectUserToRemove
  12106. End Sub
  12107. AppointmentType
  12108. Principal
  12109. tmpOwner
  12110. OrgRepeat
  12111. NoticeType
  12112. tmpNewDoc
  12113.     1S2S3S4R5S6S7S8S9S2E10S14S15S16S17S18S19S
  12114. Remove\Rooms & Resources...K'++LotusScript Development Environment:2:5:(Options):0:66
  12115. '++LotusScript Development Environment:2:5:(Forward):0:1
  12116. Declare Sub Click(Source As Button)
  12117. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12118. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12119. Private Sub BindEvents(Byval Objectname_ As String)
  12120.      Static Source As BUTTON
  12121.      Set Source = Bind(Objectname_)
  12122.      On Event Click From Source Call Click
  12123. End Sub
  12124. '++LotusScript Development Environment:2:2:Click:1:12
  12125. Sub Click(Source As Button)
  12126.      Call SelectResourcesToRemove
  12127. End Sub
  12128. AppointmentType
  12129. Principal
  12130. tmpOwner
  12131. OrgRepeat
  12132. RequiredResources
  12133. NoticeType
  12134. tmpNewDoc
  12135.     1S2S3S4R5S6S7S8S9S2E10S14S15S17S18S19S20S21S22S24S25S26S27S28S29S
  12136. Send|
  12137. you can't send if there is no SendTo field
  12138. SendTo
  12139. CopyTo
  12140. No SendTo
  12141. You must enter at least one name in the Required or Optional Attendees field.
  12142.     0R7S8S11S12S14S20S22S26S
  12143. if it is a new doc, we need to save before sending in order to send the Body field
  12144.     0RR1S
  12145. this should only happen on @IsNewDoc - doing it always in order to coordinate with subform (should use db lib)
  12146.     0R1S
  12147. tmpAction
  12148. SaveBody
  12149.     0R1S2S3S
  12150. @If(@IsNewDoc; @Command([FileSave]);  ......  );
  12151.     0R1S
  12152. OrgPersonal
  12153. Personal Document
  12154. You cannot sent a personal document.
  12155.     0RR3S4S6S12S14S18S
  12156. tmpAction
  12157.     0RR1S2S3S
  12158.     0R7S12S
  12159. AppointmentType
  12160. PostedDateh
  12161. Principal
  12162. tmpOwner
  12163. RepeatIds
  12164.     1S2S3S4S9S10R11S12S14S15S
  12165. Repeat...
  12166. '++LotusScript Development Environment:2:5:(Options):0:66
  12167. '++LotusScript Development Environment:2:5:(Forward):0:1
  12168. Declare Sub Click(Source As Button)
  12169. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12170. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12171. Private Sub BindEvents(Byval Objectname_ As String)
  12172.      Static Source As BUTTON
  12173.      Set Source = Bind(Objectname_)
  12174.      On Event Click From Source Call Click
  12175. End Sub
  12176. '++LotusScript Development Environment:2:2:Click:1:12
  12177. Sub Click(Source As Button)
  12178.      'the refresh is temporary - until the date/time fields get fixed     
  12179.      uidoc.Refresh
  12180.      
  12181.      If ws.DialogBox("(RepeatForm)", True, True, False, False, False, False, "Repeat Rules") = False Then Exit Sub
  12182.      
  12183.      Select Case note.RepeatUnit(0)
  12184.      Case "D"
  12185.           note.RepeatInterval = note.RepeatInterval_D
  12186.      Case "W"
  12187.           note.RepeatInterval = note.RepeatInterval_W
  12188.           note.RepeatAdjust = note.RepeatAdjust_W
  12189.      Case "MD"
  12190.           note.RepeatInterval = note.RepeatInterval_MDMP
  12191.           note.RepeatAdjust = note.RepeatAdjust_MD
  12192.      Case "MP"
  12193.           note.RepeatInterval = note.RepeatInterval_MDMP
  12194.           note.RepeatAdjust = note.RepeatAdjust_MP
  12195.      Case "YD"
  12196.           note.RepeatInterval = note.RepeatInterval_YD
  12197.      Case "C"
  12198.           note.RepeatDates = note.RepeatAdjust_C
  12199.      End Select
  12200.      
  12201.      note.RemoveItem("RepeatInterval_D")
  12202.      note.RemoveItem("RepeatInterval_W")
  12203.      note.RemoveItem("RepeatInterval_MDMP")
  12204.      note.RemoveItem("RepeatInterval_YD")
  12205.      note.RemoveItem("RepeatAdjust_W")
  12206.      note.RemoveItem("RepeatAdjust_MD")
  12207.      note.RemoveItem("RepeatAdjust_MP")
  12208.      note.RemoveItem("RepeatAdjust_C")
  12209.      note.StartDate = note.RepeatStartDate
  12210.      uidoc.Reload
  12211. End Sub
  12212. tmpNewDoc
  12213.     2S3S
  12214. Alarm options...'++LotusScript Development Environment:2:5:(Options):0:66
  12215. '++LotusScript Development Environment:2:5:(Forward):0:1
  12216. Declare Sub Click(Source As Button)
  12217. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12218. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12219. Private Sub BindEvents(Byval Objectname_ As String)
  12220.      Static Source As BUTTON
  12221.      Set Source = Bind(Objectname_)
  12222.      On Event Click From Source Call Click
  12223. End Sub
  12224. '++LotusScript Development Environment:2:2:Click:1:12
  12225. Sub Click(Source As Button)
  12226.      Dim dateitem As NotesItem
  12227.      Dim timeitem As NotesItem
  12228.      
  12229.    'this causes the StartDateTime field to get rebuilt     
  12230.      note.tmpFreeTime = "2"
  12231.      uidoc.Refresh
  12232.      note.RemoveItem("tmpFreeTime")
  12233.      uidoc.Reload
  12234.      If profile.EnableAlarms(0) <> "1" Then
  12235.           Dim boxType As Long
  12236.           boxType& = MB_YESNO + MB_ICONQUESTION
  12237.           If Messagebox("You have not enabled alarms in your Calendar Profile.  Do you want to enable them now?", boxType&, "Enable Alarms?") = 6 Then
  12238.                ws.EnableAlarms(True)
  12239.                Call profile.ReplaceItemValue("EnableAlarms", "1")
  12240.                Call profile.Save(True,True,True)
  12241.           Else
  12242.                Exit Sub
  12243.           End If
  12244.      End If
  12245.      
  12246.      If ws.DialogBox("(AlarmDialog)", True, True, False, False, False, False, "Set Alarm") = False Then Exit Sub
  12247.      
  12248.      If note.tmpAlarmOff(0) = "1" Then
  12249.           note.RemoveItem("$Alarm")
  12250.           note.RemoveItem("$AlarmOffset")
  12251.           note.RemoveItem("$AlarmTime")
  12252.      Else
  12253.           Call note.ReplaceItemValue("$Alarm", 1)
  12254.           AlarmSet = 1
  12255.           If note.AppointmentType(0) = "0" Or note.AppointmentType(0) = "3" Then
  12256.                Select Case note.tmpBeforeOrAfter(0)
  12257.                Case "1"
  12258.                     Call note.ReplaceItemValue("$AlarmOffset", Cint(note.tmpAlarmOffset(0)) * -1)
  12259.                     Call note.RemoveItem("$AlarmTime")
  12260.                Case "2"
  12261.                     Call note.ReplaceItemValue("$AlarmOffset", Cint(note.tmpAlarmOffset(0)))
  12262.                     Call note.RemoveItem("$AlarmTime")
  12263.                Case "3"
  12264.                     note.RemoveItem("$AlarmOffset")
  12265.                     Set dateitem = note.GetFirstItem("tmpAlarmOnDate")
  12266.                     Set timeitem = note.GetFirstItem("tmpAlarmOnTime")
  12267.                     Set AlarmTime = New NotesDateTime(dateitem.DateTimeValue.DateOnly & " " & timeitem.DateTimeValue.TimeOnly)
  12268.                     Set note.~$AlarmTime = AlarmTime
  12269.                End Select
  12270.           Else
  12271.                note.RemoveItem("$AlarmOffset")
  12272.                Set dateitem = note.GetFirstItem("tmpAlarmOnDate")
  12273.                Set timeitem = note.GetFirstItem("tmpAlarmOnTime")
  12274.                Set AlarmTime = New NotesDateTime(dateitem.DateTimeValue.DateOnly & " " & timeitem.DateTimeValue.TimeOnly)
  12275.                Set note.~$AlarmTime = AlarmTime
  12276.           End If
  12277.      End If
  12278.      
  12279.      uidoc.Refresh
  12280. End Sub
  12281. Send Confirmation
  12282. tmpAction
  12283. Confirm
  12284.     0R1S2S3S
  12285.     0R7S12S
  12286. AppointmentType
  12287. Chair
  12288. tmpOwner
  12289. RepeatIds
  12290. NoticeType
  12291. tmpNewDoc
  12292.     1S2S3S4R5S6S7S8S10S14S15S16S17S19S
  12293. Other...'++LotusScript Development Environment:2:5:(Options):0:66
  12294. '++LotusScript Development Environment:2:5:(Forward):0:1
  12295. Declare Sub Click(Source As Button)
  12296. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12297. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12298. Private Sub BindEvents(Byval Objectname_ As String)
  12299.      Static Source As BUTTON
  12300.      Set Source = Bind(Objectname_)
  12301.      On Event Click From Source Call Click
  12302. End Sub
  12303. '++LotusScript Development Environment:2:2:Click:1:12
  12304. Sub Click(Source As Button)
  12305.      uidoc.EditMode = True 
  12306.      If (ws.DialogBox("(NoticeOptionsDlg)",True,True,,,,,"Options")) Then
  12307. 'the user selected an action and clicked on OK
  12308. 'if the user selected Accept, Decline, we can save and exit
  12309.           If (note.Comments(0) <> "") Then note.IncludeComment = "1"
  12310.           Select Case note.ResponseType(0)
  12311.           Case "0"
  12312. 'this is an acceptance
  12313. 'this will never get called from the calendar entry form since this is already an acceptance               
  12314.           Case "1"
  12315. 'this is a decline
  12316.                note.tmpAction = "Decline"
  12317.                Call uidoc.Save
  12318.                Call uidoc.Close
  12319.           Case "2"
  12320. 'this is a delegate
  12321.                note.tmpAction = "Delegate"
  12322.                Call uidoc.Save
  12323.                Call uidoc.Close            
  12324.           Case "3"
  12325. 'this is a counter propose
  12326.                note.tmpAction = "CounterPropose"
  12327.                Call uidoc.Save
  12328.                Call uidoc.Close
  12329.           End Select
  12330.      End If
  12331. End Sub
  12332. chair
  12333. tmpowner
  12334. DoNotProcessh
  12335. Broadcast
  12336. OrgRepeat
  12337. NoticeType
  12338. tmpNewDoc
  12339.     2S3S5S6S12S13S14S15S16S17S21S22S23S24S25S26S
  12340. Cancel Meeting
  12341. tmpAction
  12342. Cancel
  12343.     0R1S2S3S
  12344.     0R7S12S
  12345. Principal
  12346. tmpOwner
  12347. RepeatIds
  12348. AppointmentType
  12349. NoticeType
  12350. tmpNewDoc
  12351.     1S2R4S5S7S8S12S13S14S15S16S17S18S19S20S21S
  12352. Change Status to Accepted...'++LotusScript Development Environment:2:5:(Options):0:66
  12353. '++LotusScript Development Environment:2:5:(Forward):0:1
  12354. Declare Sub Click(Source As Button)
  12355. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12356. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12357. Private Sub BindEvents(Byval Objectname_ As String)
  12358.      Static Source As BUTTON
  12359.      Set Source = Bind(Objectname_)
  12360.      On Event Click From Source Call Click
  12361. End Sub
  12362. '++LotusScript Development Environment:2:2:Click:1:12
  12363. Sub Click(Source As Button)
  12364.      Call ChangeStatus
  12365. End Sub
  12366. PostedDateh
  12367. Principal
  12368. tmpOwner
  12369. RepeatIds
  12370. AppointmentType
  12371. NoticeType
  12372. tmpNewDoc
  12373.     5S6R7S8S10S11S13S17S18S19S20S21S22S23S24S25S26S27S28S
  12374. I Can No Longer Attend
  12375. tmpAction
  12376. Decline
  12377.     0R1S2S3S
  12378.     0R7S12S|
  12379. Principal
  12380. tmpOwner
  12381. Broadcast
  12382. RepeatIds
  12383. tmpNewDoc
  12384.     1S2S3S4S5S6S8S12S13S
  12385. Check Calendar
  12386. Calendar
  12387. StartDate
  12388.     0S0E
  12389. StartDate
  12390. RepeatIds
  12391. NoticeType
  12392.     2S3S7S8S9S10S
  12393. View Repeat Info'++LotusScript Development Environment:2:5:(Options):0:66
  12394. '++LotusScript Development Environment:2:5:(Forward):0:1
  12395. Declare Sub Click(Source As Button)
  12396. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12397. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12398. Private Sub BindEvents(Byval Objectname_ As String)
  12399.      Static Source As BUTTON
  12400.      Set Source = Bind(Objectname_)
  12401.      On Event Click From Source Call Click
  12402. End Sub
  12403. '++LotusScript Development Environment:2:2:Click:1:12
  12404. Sub Click(Source As Button)
  12405.      If (parentnote Is Nothing) Then
  12406.           Msgbox "The parent document cannot be found."
  12407.           Exit Sub
  12408.      End If
  12409.      Call ws.DialogBox("(RepeatInfo)",False,False,True,True,True,True,"Repeat Info",parentnote)
  12410. End Sub
  12411. OrgRepeat
  12412. OrgRepeat
  12413.     6S7S12S13S
  12414. '++LotusScript Development Environment:2:5:(Options):0:66
  12415. '++LotusScript Development Environment:2:5:(Forward):0:1
  12416. Declare Sub Click(Source As Button)
  12417. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12418. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12419. Private Sub BindEvents(Byval Objectname_ As String)
  12420.      Static Source As BUTTON
  12421.      Set Source = Bind(Objectname_)
  12422.      On Event Click From Source Call Click
  12423. End Sub
  12424. '++LotusScript Development Environment:2:2:Click:1:12
  12425. Sub Click(Source As Button)
  12426.      Set helpdoc = New NotesDocument(db)
  12427. 'determine the context the user is in
  12428.      If (uidoc.IsNewDoc) Then
  12429.           helpdoc.tmpContext = "0"     'user creating brand new document
  12430.      Elseif Not(uidoc.IsNewDoc) And (note.AppointmentType(0) <> "3") Then
  12431.           helpdoc.tmpContext = "1"     'user viewing existing, non-meeting entry    
  12432.      Elseif Not(uidoc.IsNewDoc) And (note.AppointmentType(0) = "3") Then
  12433.           If  (note.Chair(0) = note.tmpowner(0)) Then
  12434.                helpdoc.tmpContext = "2"     'user viewing existing meeting entry when they are the chair
  12435.           Else
  12436.                helpdoc.tmpContext = "3"     'user viewing existing meeting entry when they are the invitee
  12437.           End If
  12438.      End If
  12439.      Call ws.DialogBox("(CalendarHelp)",True,True,True,True,True,True,"C&S Workflow Help",helpdoc)
  12440. End Sub
  12441. Categori_zeK
  12442. Send Docu_ment
  12443. _Remove from Folder...
  12444. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  12445. '++LotusScript Development Environment:2:5:(Forward):0:1
  12446. Declare Sub Click(Source As Button)
  12447. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12448. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12449. Private Sub BindEvents(Byval Objectname_ As String)
  12450.      Static Source As BUTTON
  12451.      Set Source = Bind(Objectname_)
  12452.      On Event Click From Source Call Click
  12453. End Sub
  12454. '++LotusScript Development Environment:2:2:Click:1:12
  12455. Sub Click(Source As Button)
  12456.      Call CreateNewDoc(NEW_MEMO)
  12457. End Sub
  12458. tmpnewdoc
  12459.     1S2S
  12460. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  12461. '++LotusScript Development Environment:2:5:(Forward):0:1
  12462. Declare Sub Click(Source As Button)
  12463. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12464. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12465. Private Sub BindEvents(Byval Objectname_ As String)
  12466.      Static Source As BUTTON
  12467.      Set Source = Bind(Objectname_)
  12468.      On Event Click From Source Call Click
  12469. End Sub
  12470. '++LotusScript Development Environment:2:2:Click:1:12
  12471. Sub Click(Source As Button)
  12472.      Call CreateNewDoc(NEW_CALENDAR)
  12473. End Sub
  12474. tmpnewdoc
  12475.     1S2S
  12476. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  12477. '++LotusScript Development Environment:2:5:(Forward):0:1
  12478. Declare Sub Click(Source As Button)
  12479. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12480. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12481. Private Sub BindEvents(Byval Objectname_ As String)
  12482.      Static Source As BUTTON
  12483.      Set Source = Bind(Objectname_)
  12484.      On Event Click From Source Call Click
  12485. End Sub
  12486. '++LotusScript Development Environment:2:2:Click:1:12
  12487. Sub Click(Source As Button)
  12488.      Call CreateNewDoc(NEW_TASK)
  12489. End Sub
  12490. tmpnewdoc
  12491.     1S2S
  12492. Copy into\New GroupK,
  12493. NewGroup
  12494.     0S0E
  12495. tmpnewdoc
  12496.     1S2S
  12497. (>x    8n
  12498. O=Lotus Notes
  12499. O=Lotus Notes
  12500. PURSAFO
  12501. |.:#U
  12502. O=Lotus Notes
  12503. CN=Lotus Notes Template Development/O=Lotus Notes
  12504. PURSAFO
  12505. Fde!f^^
  12506. CompletedOn
  12507. EndDate
  12508. CalendarDate_Time___Start
  12509. CalendarDate_Time___End
  12510. CalendarDates
  12511. CalendarDate
  12512. RepeatDates
  12513. CalendarDateTime
  12514. EndDateTime
  12515. $NoPurge
  12516. StartTime
  12517. EndTime
  12518. StartEndTime
  12519. StartDateTime
  12520. $FormPublicAccess
  12521. $TITLE
  12522. $INFO
  12523. $WINDOWTITLE
  12524. $Script
  12525. $$Script_O
  12526. $$ScriptName
  12527. $$FormScript
  12528. $$$FormScript_O
  12529. Duration
  12530. ReminderTime
  12531. StartDate
  12532. TimeRange
  12533. _ViewIcon
  12534. $BODY
  12535. $ACTIONS
  12536. $SCRIPTOBJ_7
  12537. $SCRIPTOBJ_8
  12538. $SCRIPTOBJ_10
  12539. $SCRIPTOBJ_11
  12540. $SCRIPTOBJ_13
  12541. $SCRIPTOBJ_15
  12542. $SCRIPTOBJ_18
  12543. $SCRIPTOBJ_19
  12544. $SCRIPTOBJ_23
  12545. $SCRIPTOBJ_24
  12546. $SCRIPTOBJ_25
  12547. $PublicAccess
  12548. '++LotusScript Development Environment:2:5:(Options):0:74
  12549. Option Public
  12550. Use "ObjectVariables"
  12551. '++LotusScript Development Environment:2:5:(Forward):0:1
  12552. Declare Type NamesTable
  12553. Declare Sub Initialize
  12554. Declare Function GetLocalNAB() As NotesDatabase
  12555. Declare Sub CreateGroupDocument(pCollection As NotesDocumentCollection,pdbNAB As NotesDatabase)
  12556. Declare Sub GetDocumentNames(pNote As NotesDocument,pSend As String,pCopy As String,pFrom As String)
  12557. Declare Function FindName(pName As String) As Integer
  12558. Declare Function GetNameComponents(pName As String, pFullName As String, pDomainName As String)
  12559. Declare Sub AddNewName(pCanonicalName As String,pDomainName As String)
  12560. Declare Function GetNamesList() As Variant
  12561. '++LotusScript Development Environment:2:5:(Declarations):0:10
  12562. Type NamesTable
  12563.      Common As String
  12564.      Canonical As String
  12565.      Domain As String
  12566. End Type
  12567. Dim selecteddocs As NotesDocumentCollection
  12568. Dim nabdb As NotesDatabase
  12569. Dim GroupMembers() As NamesTable
  12570. Dim MemberCounter As Integer
  12571. Dim MaxMembers As Integer
  12572. Const TABLESIZE = 20
  12573. '++LotusScript Development Environment:2:2:Initialize:1:10
  12574. Sub Initialize
  12575.      Set session = New NotesSession
  12576.      Set ws = New NotesUIWorkspace
  12577.      Set nabdb = GetLocalNAB()
  12578.      
  12579.      Set selecteddocs = session.CurrentDatabase.UnprocessedDocuments
  12580.      
  12581.      If (selecteddocs.Count = 0) Then 
  12582.           Messagebox "Please select one or more documents before executing this command.",16,"Error"
  12583.           Exit Sub
  12584.      End If
  12585.      
  12586. 'if there is a document currently open, and it is a new document, we cannot proceed
  12587.      Set uidoc = ws.CurrentDocument
  12588.      If Not(uidoc Is Nothing) Then
  12589.           If uidoc.IsNewDoc Then
  12590.                Messagebox "This action cannot be executed on a new document.",16,"Error"
  12591.                Exit Sub
  12592.           End If
  12593.      End If
  12594.      
  12595.      Call CreateGroupDocument(selecteddocs,nabdb)
  12596. End Sub
  12597. '++LotusScript Development Environment:2:1:GetLocalNAB:1:8
  12598. Function GetLocalNAB() As NotesDatabase
  12599.  *Given a session object, gets the local NAB for the local desktop
  12600. %END REM
  12601.      
  12602.      Dim sNamesLine As String
  12603.      Dim nPos As Integer
  12604.      
  12605.      
  12606.      sNamesLine = session.GetEnvironmentString("names",True)
  12607.      
  12608. 'make sure this value was found; if not, assume names.nsf
  12609.      If (sNamesLine = "") Then
  12610.           Set GetLocalNAB = New NotesDatabase("","names.nsf")
  12611.      Else
  12612. 'check to see if multiple NAB's are listed; we use the first one
  12613.           nPos = Instr(sNamesLine,",")
  12614.           If (nPos > 0) Then sNamesLine = Left$(sNamesLine,nPos-1)
  12615.           
  12616. 'open the database
  12617.           Set GetLocalNAB = New NotesDatabase("",sNamesLine)          
  12618.      End If
  12619. End Function
  12620. '++LotusScript Development Environment:2:2:CreateGroupDocument:1:8
  12621. Sub CreateGroupDocument(pCollection As NotesDocumentCollection,pdbNAB As NotesDatabase)
  12622.  *Given a collection of documents and a NAB database, this routine
  12623.   will create a group document in the editor with the 
  12624.   members item filled in
  12625. %END REM
  12626.      Dim groupnote As NotesDocument
  12627.      Dim mailnote As NotesDocument
  12628.      Dim GroupUIDoc As NotesUIDocument
  12629.      Dim sFromItem As String
  12630.      
  12631.      Redim GroupMembers(TABLESIZE)
  12632.      MaxMembers = TABLESIZE
  12633.      MemberCounter = 0
  12634.      
  12635.      Set mailnote = pCollection.GetFirstDocument
  12636.      While Not(mailnote Is Nothing)  
  12637.           Select Case mailnote.Form(0)
  12638.           Case "Memo","Reply"
  12639.                If mailnote.HasItem("Principal") Then
  12640.                     sFromItem = "Principal"
  12641.                Else
  12642.                     sFromItem = "From"
  12643.                End If 
  12644.                Call GetDocumentNames(mailnote,"SendTo","CopyTo",sFromItem)
  12645.           Case "Appointment","Notice"
  12646.                If mailnote.HasItem("Principal") Then
  12647.                     sFromItem = "Principal"
  12648.                Else
  12649.                     sFromItem = "Chair"
  12650.                End If 
  12651.                Call GetDocumentNames(mailnote,"RequiredAttendees","OptionalAttendees",sFromItem)
  12652.           Case Else
  12653. 'not sure what we are dealing with, so assume mail-related item names
  12654.                If mailnote.HasItem("Principal") Then
  12655.                     sFromItem = "Principal"
  12656.                Else
  12657.                     sFromItem = "From"
  12658.                End If 
  12659.                Call GetDocumentNames(mailnote,"SendTo","CopyTo",sFromItem)
  12660.           End Select        
  12661.           
  12662. 'get the next document
  12663.           Set mailnote = pCollection.GetNextDocument(mailnote)
  12664.      Wend
  12665.      
  12666. 'now that we have gone through all documents, create the group document
  12667.      Set groupnote = New NotesDocument(pdbNAB)
  12668.      groupnote.Form = "Group"
  12669.      groupnote.Type = "Group"
  12670.      groupnote.DocumentAccess = session.UserName     
  12671. 'now, iterate through the list of names     
  12672.      groupnote.tmpMembers = GetNamesList()
  12673.      groupnote.Members = Evaluate(|@Trim(@Unique(tmpMembers))|,groupnote)
  12674.      groupnote.RemoveItem "tmpMembers"
  12675.      Call ws.EditDocument(True,groupnote)
  12676. End Sub
  12677. '++LotusScript Development Environment:2:2:GetDocumentNames:1:8
  12678. Sub GetDocumentNames(pNote As NotesDocument,pSend As String,pCopy As String,pFrom As String)
  12679.  *Given a document, retrieve the item names given
  12680.  *Inputs
  12681.   pSend -> item name of SendTo item
  12682.   pCopy -> item name of CopyTo item
  12683.   pFrom -> item name of From item
  12684.  *Return
  12685.   array of names
  12686. %END REM
  12687.      
  12688.      Dim vSendTo As Variant
  12689.      Dim vCopyTo As Variant
  12690.      Dim vFrom As Variant
  12691.      Dim CanonicalName As String
  12692.      Dim DomainName As String
  12693.      
  12694.      
  12695.      vSendTo = pNote.GetItemValue(pSend)
  12696.      vCopyTo = pNote.GetItemValue(pCopy)
  12697.      vFrom = pNote.GetItemValue(pFrom)
  12698.      
  12699.      Forall names In vSendTo
  12700.           If (names <> "") Then          
  12701. 'first, try to locate this person in the namestable
  12702.                Call GetNameComponents(Cstr(names),CanonicalName,DomainName)
  12703.                If (FindName(CanonicalName) = -1) Then
  12704.                     Call AddNewName(CanonicalName,DomainName)
  12705.                End If
  12706.           End If
  12707.      End Forall
  12708.      
  12709.      Forall names In vCopyTo
  12710.           If (names <> "") Then          
  12711. 'first, try to locate this person in the namestable
  12712.                Call GetNameComponents(Cstr(names),CanonicalName,DomainName)
  12713.                If (FindName(CanonicalName) = -1) Then
  12714.                     Call AddNewName(CanonicalName,DomainName)
  12715.                End If
  12716.           End If
  12717.      End Forall
  12718.      
  12719. 'see if the from value already exists
  12720.      If (FindName(vFrom(0)) = -1) Then
  12721.           If (pNote.HasItem("FromDomain")) Then     
  12722.                Call AddNewName(vFrom(0),pNote.FromDomain(0))
  12723.           Else
  12724.                Call AddnewName(vFrom(0),"")
  12725.           End If
  12726.      End If        
  12727.      
  12728. End Sub
  12729. '++LotusScript Development Environment:2:1:FindName:1:8
  12730. Function FindName(pName As String) As Integer
  12731.      Dim key As New NotesName(pName)
  12732.      Dim x As Integer
  12733.      Dim namUser As New NotesName(session.UserName)
  12734.      
  12735.      For x = 0 To (MemberCounter - 1)
  12736. 'do a canonical name comparison
  12737.           If Lcase(key.Canonical) = Lcase(GroupMembers(x).Canonical) Or Lcase(namUser.Canonical) = Lcase(key.Canonical) Then
  12738.                FindInvitee = x 
  12739.                Exit Function
  12740. 'do a common name comparison               
  12741.           Elseif Lcase(key.Common) = Lcase(GroupMembers(x).Common) Or Lcase(namUser.Common) = Lcase(key.Common) Then
  12742.                FindInvitee = x 
  12743.                Exit Function               
  12744.           End If
  12745.      Next
  12746.      
  12747.      FindName = -1
  12748. End Function
  12749. '++LotusScript Development Environment:2:1:GetNameComponents:1:8
  12750. Function GetNameComponents(pName As String, pFullName As String, pDomainName As String)
  12751.      
  12752.      Dim pos As Integer
  12753.      
  12754.      pos = Instr(pName,"@")
  12755.      
  12756.      If(pos > 0) Then
  12757.           Set nam = New NotesName(Left$(pName,pos-1))     
  12758.           pFullName = nam.Canonical
  12759.           pDomainName = Right$(pName,Len(pName)-pos)
  12760.      Else
  12761.           Set nam = New NotesName(pName)     
  12762.           pFullName = nam.Canonical
  12763.           pDomainName = ""
  12764.      End If
  12765. End Function
  12766. '++LotusScript Development Environment:2:2:AddNewName:1:8
  12767. Sub AddNewName(pCanonicalName As String,pDomainName As String)
  12768.      
  12769. 'see if we need to increase the table
  12770.      If (MaxMembers = MemberCounter) Then
  12771.           MaxMembers = MaxMembers + TABLESIZE
  12772.           Redim Preserve GroupMembers(MaxMembers)
  12773.      End If
  12774.      Set nam = New NotesName(pCanonicalName)
  12775.      GroupMembers(MemberCounter).Common = nam.Common
  12776.      GroupMembers(MemberCounter).Canonical = nam.Canonical
  12777.      GroupMembers(MemberCounter).Domain = pDomainName
  12778.      MemberCounter = MemberCounter + 1
  12779. End Sub
  12780. '++LotusScript Development Environment:2:1:GetNamesList:1:8
  12781. Function GetNamesList() As Variant
  12782.      Dim vRetNames() As Variant
  12783.      Dim x As Integer
  12784.      
  12785.      Redim vRetNames(MemberCounter)
  12786.      
  12787.      For x = 0 To (MemberCounter-1)
  12788.           If (GroupMembers(x).Domain <> "") Then
  12789.                vRetNames(x) = GroupMembers(x).Canonical & "@" & GroupMembers(x).Domain
  12790.           Else
  12791.                vRetNames(x) = GroupMembers(x).Canonical                
  12792.           End If
  12793.      Next
  12794.      GetNamesList = vRetNames
  12795. End Function
  12796.     +     $
  12797. tmpMembers
  12798.     0S0E
  12799. O=Lotus Notes
  12800. O=Lotus Notes
  12801. PURSAFO
  12802. |.:#U
  12803. O=Lotus Notes
  12804. CN=Lotus Notes Template Development/O=Lotus Notes
  12805. PURSAFO
  12806. Fde!f^^
  12807. $TITLE
  12808. $AssistType
  12809. $AssistLastRun
  12810. $AssistDocCount
  12811. $AssistFlags
  12812. $AssistTrigger
  12813. $AssistInfo
  12814. $AssistQuery
  12815. $AssistAction
  12816. $AssistAction_Ex
  12817. (OLEMailFields)CUA3
  12818. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################################################
  12819. ReplyReplyw
  12820. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################
  12821. Reply With HistoryReplyw
  12822. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################
  12823. 29FB8414250BFCF038F51072FC347194AF5CB9E208931A2E889B51112269D913
  12824. _Document Memo$DocMemoWord.Document$Word MemoWordPro.Document$Word Pro MemoAlternateMemow
  12825. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  12826. ##########################################################
  12827. MemoDocumentMemow40FE120068FD550064FF1200E3104000
  12828. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes40FE120068FD550064FF1200E310400040FE120068FD550064FF1200E3104000CN=Lotus Notes Template Development/O=Lotus Notes########################
  12829. (Delivery Report)Delivery Report
  12830. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################
  12831. (Return Receipt)Return Receipt
  12832. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############################
  12833. (ReturnNonReceipt)ReturnNonReceipt
  12834. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################
  12835. (Trace Report)Trace ReportCD
  12836. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##############################
  12837. ##########################################################
  12838. ##########################################################
  12839. (OLEMailFields)
  12840. SendTo
  12841. CopyTo
  12842. BlindCopyTo
  12843. Subject
  12844.     Bcc:
  12845.     Subject:
  12846.     0S0E
  12847.     0S0E
  12848.     0S0E
  12849. O=Lotus Notes
  12850. O=Lotus Notes
  12851. PURSAFO
  12852. |.:#U
  12853. O=Lotus Notes
  12854. CN=Lotus Notes Template Development/O=Lotus Notes
  12855. PURSAFO
  12856. Fde!f^^
  12857. =Gf5:J{
  12858. $TITLE
  12859. $INFO
  12860. $$Script_O
  12861. $$ScriptName
  12862. $BODY
  12863. Times New Roman
  12864. VersionOpt|
  12865.     6S7S9S14S
  12866. $VersionOpt
  12867.     0R1S2S3S
  12868. SavedOnce
  12869.     0R1S2S3S
  12870. PostedDate(
  12871.     0R1S2S3S
  12872. DeliveredDate
  12873.     0R1S2S3S
  12874. $AutoEditMode
  12875.     0R1S2S3S
  12876. MailSaveOptions
  12877.     0R1S2S3S
  12878. VersionOpt
  12879.     0R4S
  12880. InheritedBody
  12881. New Reply
  12882. Subject
  12883. Subject
  12884. Subject
  12885.     4S6S12S13S14S15S17S21S23S25S26S28S
  12886. '++LotusScript Development Environment:2:5:(Options):0:74
  12887. Option Public
  12888. Use "EmailProcessing"
  12889. Use "DocumentConversions"
  12890. '++LotusScript Development Environment:2:5:(Forward):0:1
  12891. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12892.  Reply'++LotusScript Development Environment:2:5:(Options):0:66
  12893. '++LotusScript Development Environment:2:5:(Forward):0:1
  12894. Declare Sub Postopen(Source As Notesuidocument)
  12895. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  12896. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  12897. Declare Sub Postmodechange(Source As Notesuidocument)
  12898. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12899. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12900. Private Sub BindEvents(Byval Objectname_ As String)
  12901.      Static Source As NOTESUIDOCUMENT
  12902.      Set Source = Bind(Objectname_)
  12903.      On Event Postopen From Source Call Postopen
  12904.      On Event Querysave From Source Call Querysave
  12905.      On Event Queryclose From Source Call Queryclose
  12906.      On Event Postmodechange From Source Call Postmodechange
  12907. End Sub
  12908. '++LotusScript Development Environment:2:2:Postopen:1:12
  12909. Sub Postopen(Source As Notesuidocument)
  12910.      
  12911.      Set ws = New NotesUIWorkSpace
  12912.      Set uidoc = source
  12913.      
  12914.      Call EmailOpen
  12915.      
  12916. End Sub
  12917. '++LotusScript Development Environment:2:2:Querysave:1:12
  12918. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  12919.      
  12920.      Call EmailSave(Continue)
  12921.      
  12922. End Sub
  12923. '++LotusScript Development Environment:2:2:Queryclose:1:12
  12924. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  12925.      
  12926.      Call EmailClose(Continue)
  12927.      
  12928. End Sub
  12929. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  12930. Sub Postmodechange(Source As Notesuidocument)
  12931.      
  12932.      Call EmailModeChange
  12933.      
  12934. End Sub
  12935.     Always hidden: 
  12936. SendTo
  12937. CopyTo
  12938.     1S2S
  12939. InheritedSendTo
  12940. ReplyTo
  12941. InheritedReplyTo
  12942. Principal
  12943. Principal
  12944. Principal
  12945. Fromh
  12946.     1S2S8S9S10S11S13S15S20S22S
  12947. FromDomainh
  12948. FromDomain"
  12949.     0R7S8S9S10S11S13SInheritedFrom
  12950. FromDomain
  12951. InheritedFromDomain
  12952. Principal
  12953. CalendarProfile
  12954. Owner
  12955.     1S2S3S7S
  12956. FromPerson memo is from.
  12957. DefaultLogo
  12958. StdNotesLtrGateway
  12959.     4S9S13S16S18SLogo
  12960.     0S0E
  12961.     0S0E
  12962. Encrypt
  12963.     0S0E
  12964. DefaultMailSaveOptions
  12965. $KeepPrivate
  12966. $KeepPrivate
  12967. $KeepPrivate
  12968.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  12969. $HideMailHeader
  12970.     0S0E
  12971.     From:    
  12972. Principal
  12973. Principal
  12974.     1S2S5S6S8S10S
  12975.     0R1S2S8S
  12976.     0R1S2S5S6S8S14S18S
  12977.     0R1S2S5S6S8S14S18S
  12978. SentBy
  12979. X400FreeForm^
  12980.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  12981. SentBy
  12982. FromDomain
  12983. FromDomain
  12984. FromDomain
  12985. FromDomain
  12986.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  12987. FromName
  12988. Principal
  12989. Principal
  12990.     0RR1S2S9S11S15S
  12991. FromStops
  12992.     0R1S2S6S
  12993. FromName
  12994. FromStops
  12995. FromStops
  12996. FromStops
  12997.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  12998.      on 
  12999. PostedDateh
  13000. PostedDate
  13001.     4S5S10S12S
  13002. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  13003. $HideMailHeader
  13004. StdNotesLtr16
  13005.     7S9S10S11S13S15S
  13006. tmpDate
  13007. $HideMailHeader
  13008.     4S5S6S8S10S11S
  13009.     From:    
  13010. tmpDisplayFrom_Preview
  13011. tmpDisplayFrom_NoLogo
  13012.      on 
  13013. PostedDateh
  13014. PostedDate
  13015.     4S5S10S12S
  13016. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  13017. ReplyDate
  13018. ReplyTo
  13019. $HideMailHeader
  13020.     2S3S4S5S6S7S9S10S
  13021. Please respond
  13022. ReplyTo
  13023. ReplyTo
  13024. ReplyDate
  13025. ReplyDate
  13026.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  13027. $HideMailHeader
  13028. Principal
  13029. Principal
  13030. Principal
  13031. Principal
  13032. Principal
  13033.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  13034.     Sent by:    
  13035. FromDomain
  13036. FromDomain
  13037. FromDomain
  13038. FromDomain
  13039.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  13040. FromName
  13041.     0RR1S2S6S
  13042. FromStops
  13043.     0R1S2S6S
  13044. FromName
  13045. FromStops
  13046. FromStops
  13047. FromStops
  13048.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  13049. SendTo
  13050. CopyTo
  13051.   cc:  
  13052. CopyTo
  13053.     1S8S13S14S2E17S18S21S28S31S
  13054. MailAddress
  13055. InheritedReplyToh
  13056. InheritedReplyTo
  13057. InheritedReplyTo
  13058. InheritedFrom
  13059.     1S2S8S9S10S11S13S15S
  13060. MailAddress
  13061.     0RR 
  13062. SendTo}
  13063.     0S0E
  13064. SendTo^
  13065. No names found to send mail.{
  13066.     1S6S7S8S9S11S16S
  13067. SendToList of primary people to send memo.
  13068. CopyTo}
  13069.     0S0E
  13070. CopyToList of people to send a copy of the memo.
  13071. DeliveredDate
  13072. BlindCopyTo
  13073. (bcc: 
  13074. BlindCopyTo
  13075.     4S5S6S7S8S9S10S11S13S14S15S19S21S22S24StmpBlindCopyTo
  13076.     bcc:
  13077. BlindCopyTo
  13078.     0S0E
  13079. BlindCopyToList of undisclosed people to send copies of memo.
  13080.     Subject:
  13081. ReplyText
  13082. MailStEd|
  13083.     1S2S
  13084. Prefix
  13085. ReplyText
  13086.     0R1S2S8S9S11S13S
  13087. Prefix
  13088. ReplyText
  13089. Subject
  13090. Topic
  13091. Subject
  13092.     0R1S2S5S6S8S10S11S12S14S16S
  13093. Prefix
  13094. Subj"
  13095.     0R10S12S16S17S19S21S22S23S
  13096. Subject
  13097.     0S0E
  13098. SubjectSubject of memo.
  13099.     Subject:
  13100. Subject
  13101. tmpDisplaySubjectSubject of memo.
  13102.     0S0E
  13103. tmpDisplayLink
  13104. $HideMailHeader
  13105. Moods
  13106. PostedDate
  13107. SenderTag
  13108. Moods
  13109.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  13110. Edit Document
  13111. ForwardK 
  13112.     0S0E
  13113. New Memo.
  13114.     0S0E
  13115. Delete 
  13116.     0S0E
  13117. _Move To Folder...
  13118. Delivery Information...Kz
  13119. DeliveryInfo
  13120. Delivery Information
  13121.     4S5S6S7S8S9S10S12S
  13122. _Forward
  13123. Reply
  13124. Reply
  13125.     0S0E
  13126. Reply With History
  13127. Reply with History
  13128. This document is truncated.
  13129.     4S8S10S13S
  13130. Reply with history
  13131. Address... 
  13132.     0S0E
  13133. PostedDateh
  13134.     5S6S7S8S
  13135. Close
  13136.     0S0E
  13137. PostedDateY
  13138.     0S0E
  13139. Reply To All
  13140. Owner
  13141. CalendarProfile
  13142. Owner
  13143.     1S2S6S
  13144. CanonicalName
  13145. Owner
  13146. Owner
  13147.     0R1S2S6S9S10S12S14S
  13148. Names
  13149. InheritedSendTo
  13150.     0R1S2S
  13151. Try 4 different ways of removing the current sender from the new recipient list
  13152.     0RR1S
  13153. Names1 compares the original names list with the canonical name plus the domain name and if found replaces with a null - works
  13154.     0R1S
  13155. Names1
  13156. Names
  13157. CanonicalName
  13158. Names
  13159. CanonicalName
  13160.     0R1S2S6S7S8S15S21S
  13161. Names 2 compares just the common name of the current user plus the domain against the result of Names 1 and replaces with null - appears to work
  13162.     0RR1S
  13163. Names2
  13164. Names1
  13165. CanonicalName
  13166. Names1b
  13167. CanonicalName
  13168.     0R1S2S6S10S12S13S20S26S31S
  13169. Names3 compares the canonical names against the Names 2 list and replaces with a null.
  13170.     0RR1S
  13171. Names3
  13172. Names2
  13173. CanonicalName
  13174. Names 4 compares the common name only - no domain and if found replaces with null.  Also makes sure there are no duplicates or extra spaces.
  13175.     0RR1S
  13176. Names4
  13177. Names3
  13178. CanonicalName
  13179.     0R1S2S10S14S17S
  13180. Names4
  13181.     0R3S4S6S11S
  13182. Append the InheritedFromDomain to all entries which are left and let the @OptimizeMailAddress take care of duplicates.  This ensures that mail will route the way that the message came in which lessens the chance of delivery failures...
  13183.     0RR1S
  13184. Names4a
  13185. Names4
  13186. InheritedFromDomain
  13187.     0R1S2S
  13188. Look for all addresses whose last domain is the same as the sender's domain - tack on the whole FromDomain
  13189.     0RR1S
  13190. Names5
  13191. Names4a
  13192. Names4a
  13193. InheritedFromDomain
  13194. Names4a
  13195. InheritedFromDomain
  13196.     0R1S2S6S10S12S13S14S15S21S25S29S31S32S33S34S
  13197. Find all the addresses without a domain and attach FromDomain
  13198.     0RR1S
  13199. Names6
  13200. Names5
  13201. Names5
  13202. Names5
  13203.     0R1S2S6S10S12S13S14S15S19S22S
  13204. Names7
  13205. Names5
  13206. Names6
  13207. Names6
  13208. InheritedFromDomain
  13209.     0R1S2S6S8S9S10S11S12S
  13210. Find everyone whose domain is the same as yours and strip it off
  13211.     0RR1S
  13212. Names8
  13213. Names7
  13214. Names7
  13215.     0R1S2S8S9S11S13S17S18S19S21S
  13216. Names8a
  13217. Names8
  13218. Names8
  13219.     0R1S2S8S9S11S13S17S18S19S24S
  13220. Names8b
  13221. Names8a
  13222. Names8a
  13223.     0R1S2S8S9S11S13S17S18S19S24S
  13224. Names8c
  13225. Names8b
  13226. Names8b
  13227.     0R1S2S8S9S11S13S17S18S19S24S
  13228. CopyTo
  13229. CopyTo
  13230. InheritedFromDomain
  13231. Names5
  13232. Names5
  13233. Names8c
  13234.     0R1S2S3S10S11S14S15S16S17S18S19S21S23S
  13235. PostedDateh
  13236.     0S0E
  13237. Save As Draft
  13238. MailOptions
  13239.     1S2S3S
  13240. SaveOptions
  13241.     0R1S2S3S
  13242. PostedDateh
  13243.     0S0E
  13244. Save and File
  13245.     7S9S
  13246. tmpAction
  13247. SaveAndFile
  13248.     0R1S2S3S
  13249. IsMailStationeryh
  13250. PostedDateY
  13251. PostedDateh
  13252.     4S5S9S10S16S17S18S19S
  13253. PromptValue
  13254. DefaultMailSaveOptions
  13255. Save when sent
  13256. Do you wish to save a copy of this Memo?
  13257. DefaultMailSaveOptions
  13258.     1S2S5S6S8S14S17S
  13259. SaveOptions
  13260. PromptValue
  13261. SaveOptions
  13262. PromptValue
  13263.     0RR1S2S5S6S9S14S
  13264. tmpAction
  13265. DefaultMailSaveOptions
  13266. Mailing
  13267.     0RR1S2S3S6S7S9S11S
  13268. MailOptions
  13269.     0R1S2S3S
  13270.     0R7S9S
  13271. tmpAction
  13272. SaveOptions
  13273. SendAndFile
  13274.     0RR1S2S3S6S7S9S11S
  13275.     0R7S9S
  13276. PostedDateh
  13277.     5S6S7S8S
  13278. Send And File...
  13279. tmpAction
  13280. DefaultMailSaveOptions
  13281. Mailing
  13282.     1S2S3S6S7S9S11S
  13283. MailOptions
  13284.     0R1S2S3S
  13285.     0RR7S9S
  13286. tmpAction
  13287. SendAndFile
  13288.     0RR1S2S3S
  13289.     0R7S9S
  13290.     0R7S9S
  13291. PostedDateh
  13292.     5S6S7S8S
  13293. Delivery Options...K
  13294. DeliveryOptions
  13295. Delivery Options
  13296.     4S8S
  13297. _ViewIcon
  13298. SenderTag
  13299. SenderTag
  13300. SenderTag
  13301. SenderTag
  13302. SenderTag
  13303. SenderTag
  13304. SenderTag
  13305. SenderTag
  13306. SenderTag
  13307. SenderTag
  13308. SenderTag
  13309.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  13310. PostedDateh
  13311.     5S6S7S8S
  13312. Special Options...
  13313. ReplyDate
  13314. ReplyDate
  13315.     1S2S3S
  13316. ReplyTo
  13317. ReplyTo
  13318.     0R1S2S3S
  13319. (Advanced Options)
  13320. Special Options
  13321.     0R6S10S13S15S
  13322. tmpDisplayReplyInfo
  13323. Please respond
  13324. ReplyTo
  13325. ReplyTo
  13326. ReplyDate
  13327. ReplyDate
  13328.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  13329. DueDateTime
  13330. ReplyDate
  13331.     0R1S2S3S
  13332. PostedDateh
  13333.     5S6S7S8S10S11S15S16S
  13334. Save As Stationery...
  13335. tmpAction
  13336. SaveAsStationery
  13337.     1S2S3S
  13338. IsMailStationeryh
  13339.     0S0E
  13340. _Remove From Folder...
  13341. Categori_zeK
  13342. SSend
  13343. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  13344. '++LotusScript Development Environment:2:5:(Forward):0:1
  13345. Declare Sub Click(Source As Button)
  13346. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13347. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13348. Private Sub BindEvents(Byval Objectname_ As String)
  13349.      Static Source As BUTTON
  13350.      Set Source = Bind(Objectname_)
  13351.      On Event Click From Source Call Click
  13352. End Sub
  13353. '++LotusScript Development Environment:2:2:Click:1:12
  13354. Sub Click(Source As Button)
  13355.      Call CreateNewDoc(NEW_MEMO)
  13356. End Sub
  13357. tmpnewdoc
  13358.     1S2S
  13359. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  13360. '++LotusScript Development Environment:2:5:(Forward):0:1
  13361. Declare Sub Click(Source As Button)
  13362. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13363. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13364. Private Sub BindEvents(Byval Objectname_ As String)
  13365.      Static Source As BUTTON
  13366.      Set Source = Bind(Objectname_)
  13367.      On Event Click From Source Call Click
  13368. End Sub
  13369. '++LotusScript Development Environment:2:2:Click:1:12
  13370. Sub Click(Source As Button)
  13371.      Call CreateNewDoc(NEW_CALENDAR)
  13372. End Sub
  13373. tmpnewdoc
  13374.     1S2S
  13375. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  13376. '++LotusScript Development Environment:2:5:(Forward):0:1
  13377. Declare Sub Click(Source As Button)
  13378. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13379. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13380. Private Sub BindEvents(Byval Objectname_ As String)
  13381.      Static Source As BUTTON
  13382.      Set Source = Bind(Objectname_)
  13383.      On Event Click From Source Call Click
  13384. End Sub
  13385. '++LotusScript Development Environment:2:2:Click:1:12
  13386. Sub Click(Source As Button)
  13387.      Call CreateNewDoc(NEW_TASK)
  13388. End Sub
  13389. tmpnewdoc
  13390.     1S2S
  13391. Copy into\New GroupK,
  13392. NewGroup
  13393.     0S0E
  13394. tmpnewdoc
  13395.     1S2S
  13396. O=Lotus Notes
  13397. O=Lotus Notes
  13398. PURSAFO
  13399. |.:#U
  13400. O=Lotus Notes
  13401. CN=Lotus Notes Template Development/O=Lotus Notes
  13402. PURSAFO
  13403. Fde!f^^
  13404. _>shv
  13405. $$FormPostOpenAction
  13406. ExpireDate
  13407. ReplyDate
  13408. $TypeIcon
  13409. ReplyNumber
  13410. ComposedDate
  13411. $TITLE
  13412. $AUTOLAUNCH
  13413. $INFO
  13414. $WINDOWTITLE
  13415. $Script
  13416. $$Script_O
  13417. $$ScriptName
  13418. $$FormScript
  13419. $$$FormScript_O
  13420. $BODY
  13421. $ACTIONS
  13422. $SCRIPTOBJ_22
  13423. $SCRIPTOBJ_23
  13424. $SCRIPTOBJ_24
  13425. Times New Roman
  13426. VersionOpt|
  13427.     6S7S9S14S
  13428. $VersionOpt
  13429.     0R1S2S3S
  13430. SavedOnce
  13431.     0R1S2S3S
  13432. PostedDate(
  13433.     0R1S2S3S
  13434. DeliveredDate
  13435.     0R1S2S3S
  13436. $AutoEditMode
  13437.     0R1S2S3S
  13438. MailSaveOptions
  13439.     0R1S2S3S
  13440. VersionOpt
  13441.     0R4S
  13442. New Reply
  13443. Subject
  13444. Subject
  13445. Subject
  13446.     4S6S12S13S14S15S17S21S23S25S26S28S
  13447. '++LotusScript Development Environment:2:5:(Options):0:74
  13448. Option Public
  13449. Use "EmailProcessing"
  13450. Use "DocumentConversions"
  13451. '++LotusScript Development Environment:2:5:(Forward):0:1
  13452. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13453.  Reply'++LotusScript Development Environment:2:5:(Options):0:66
  13454. '++LotusScript Development Environment:2:5:(Forward):0:1
  13455. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  13456. Declare Sub Postopen(Source As Notesuidocument)
  13457. Declare Sub Postmodechange(Source As Notesuidocument)
  13458. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  13459. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13460. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13461. Private Sub BindEvents(Byval Objectname_ As String)
  13462.      Static Source As NOTESUIDOCUMENT
  13463.      Set Source = Bind(Objectname_)
  13464.      On Event Queryclose From Source Call Queryclose
  13465.      On Event Postopen From Source Call Postopen
  13466.      On Event Postmodechange From Source Call Postmodechange
  13467.      On Event Querysave From Source Call Querysave
  13468. End Sub
  13469. '++LotusScript Development Environment:2:2:Queryclose:1:12
  13470. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  13471.      
  13472.      Call EmailClose(Continue)
  13473.      
  13474. End Sub
  13475. '++LotusScript Development Environment:2:2:Postopen:1:12
  13476. Sub Postopen(Source As Notesuidocument)
  13477.      
  13478.      Set ws = New NotesUIWorkSpace
  13479.      Set uidoc = source
  13480.      
  13481.      Call EmailOpen
  13482.      
  13483. End Sub
  13484. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  13485. Sub Postmodechange(Source As Notesuidocument)
  13486.      
  13487.      Call EmailModeChange
  13488.      
  13489. End Sub
  13490. '++LotusScript Development Environment:2:2:Querysave:1:12
  13491. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  13492.      
  13493.      Call EmailSave(Continue)
  13494.      
  13495. End Sub
  13496.     Always hidden: 
  13497. SendTo
  13498. CopyTo
  13499.     1S2S
  13500. InheritedSendTo
  13501. ReplyTo
  13502. InheritedReplyTo
  13503. Principal
  13504. Principal
  13505. Principal
  13506. Fromh
  13507.     1S2S8S9S10S11S13S15S20S22S
  13508. FromDomainh
  13509. FromDomain"
  13510.     0R7S8S9S10S11S13SInheritedFrom
  13511. FromDomain
  13512. InheritedFromDomain
  13513. Principal
  13514. CalendarProfile
  13515. Owner
  13516.     1S2S3S7S
  13517. FromPerson memo is from.
  13518. DefaultLogo
  13519. StdNotesLtrGateway
  13520.     4S9S13S16S18SLogo
  13521.     0S0E
  13522.     0S0E
  13523. Encrypt
  13524.     0S0E
  13525. DefaultMailSaveOptions
  13526. $KeepPrivate
  13527. $KeepPrivate
  13528. $KeepPrivate
  13529.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  13530. $HideMailHeader
  13531.     0S0E
  13532.     From:    
  13533. Principal
  13534. Principal
  13535.     1S2S5S6S8S10S
  13536.     0R1S2S8S
  13537.     0R1S2S5S6S8S14S18S
  13538.     0R1S2S5S6S8S14S18S
  13539. SentBy
  13540. X400FreeForm^
  13541.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  13542. SentBy
  13543. FromDomain
  13544. FromDomain
  13545. FromDomain
  13546. FromDomain
  13547.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  13548. FromName
  13549. Principal
  13550. Principal
  13551.     0RR1S2S9S11S15S
  13552. FromStops
  13553.     0R1S2S6S
  13554. FromName
  13555. FromStops
  13556. FromStops
  13557. FromStops
  13558.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  13559.      on 
  13560. PostedDateh
  13561. PostedDate
  13562.     4S5S10S12S
  13563. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  13564. $HideMailHeader
  13565. StdNotesLtr16
  13566.     7S9S10S11S13S15S
  13567. tmpDate
  13568. $HideMailHeader
  13569.     4S5S6S8S10S11S
  13570.     From:    
  13571. tmpDisplayFrom_Preview
  13572. tmpDisplayFrom_NoLogo
  13573.      on 
  13574. PostedDateh
  13575. PostedDate
  13576.     4S5S10S12S
  13577. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  13578. ReplyDate
  13579. ReplyTo
  13580. $HideMailHeader
  13581.     2S3S4S5S6S7S9S10S
  13582. Please respond
  13583. ReplyTo
  13584. ReplyTo
  13585. ReplyDate
  13586. ReplyDate
  13587.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  13588. $HideMailHeader
  13589. Principal
  13590. Principal
  13591. Principal
  13592. Principal
  13593. Principal
  13594.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  13595.     Sent by:    
  13596. FromDomain
  13597. FromDomain
  13598. FromDomain
  13599. FromDomain
  13600.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  13601. FromName
  13602.     0RR1S2S6S
  13603. FromStops
  13604.     0R1S2S6S
  13605. FromName
  13606. FromStops
  13607. FromStops
  13608. FromStops
  13609.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  13610. SendTo
  13611. CopyTo
  13612.   cc:  
  13613. CopyTo
  13614.     1S8S13S14S2E17S18S21S28S31S
  13615. MailAddress
  13616. InheritedReplyToh
  13617. InheritedReplyTo
  13618. InheritedReplyTo
  13619. InheritedFrom
  13620.     1S2S8S9S10S11S13S15S
  13621. MailAddress
  13622.     0RR 
  13623. SendTo}
  13624.     0S0E
  13625. SendTo^
  13626. No names found to send mail.{
  13627.     1S6S7S8S9S11S16S
  13628. SendToList of primary people to send memo.
  13629. CopyTo}
  13630.     0S0E
  13631. CopyToList of people to send a copy of the memo.
  13632. DeliveredDate
  13633. BlindCopyTo
  13634. (bcc: 
  13635. BlindCopyTo
  13636.     4S5S6S7S8S9S10S11S13S14S15S19S21S22S24StmpBlindCopyTo
  13637.     bcc:
  13638. BlindCopyTo
  13639.     0S0E
  13640. BlindCopyToList of undisclosed people to send copies of memo.
  13641.     Subject:
  13642. Subject
  13643. Topic
  13644. Subject
  13645.     1S2S5S6S8S10S
  13646. Subj"
  13647.     0R10S12S16S17S19S21S22S23S
  13648. Subject
  13649.     0S0E
  13650. SubjectSubject of memo.
  13651.     Subject:
  13652. Subject
  13653. tmpDisplaySubjectSubject of memo.
  13654.     0S0E
  13655. tmpDisplayLink
  13656. $HideMailHeader
  13657. Moods
  13658. PostedDate
  13659. SenderTag
  13660. Moods
  13661.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  13662. Edit Document
  13663. ForwardK 
  13664.     0S0E
  13665. New Memo.
  13666.     0S0E
  13667. Delete 
  13668.     0S0E
  13669. _Move To Folder...
  13670. Delivery Information...Kz
  13671. DeliveryInfo
  13672. Delivery Information
  13673.     4S5S6S7S8S9S10S12S
  13674. _Forward
  13675. Reply
  13676. Reply
  13677.     0S0E
  13678. Reply With History
  13679. Reply with History
  13680. This document is truncated.
  13681.     4S8S10S13S
  13682. Reply with history
  13683. Address... 
  13684.     0S0E
  13685. PostedDateh
  13686.     5S6S7S8S
  13687. Close
  13688.     0S0E
  13689. PostedDateY
  13690.     0S0E
  13691. Reply To All
  13692. Owner
  13693. CalendarProfile
  13694. Owner
  13695.     1S2S6S
  13696. CanonicalName
  13697. Owner
  13698. Owner
  13699.     0R1S2S6S9S10S12S14S
  13700. Names
  13701. InheritedSendTo
  13702.     0R1S2S
  13703. Try 4 different ways of removing the current sender from the new recipient list
  13704.     0RR1S
  13705. Names1 compares the original names list with the canonical name plus the domain name and if found replaces with a null - works
  13706.     0R1S
  13707. Names1
  13708. Names
  13709. CanonicalName
  13710. Names
  13711. CanonicalName
  13712.     0R1S2S6S7S8S15S21S
  13713. Names 2 compares just the common name of the current user plus the domain against the result of Names 1 and replaces with null - appears to work
  13714.     0RR1S
  13715. Names2
  13716. Names1
  13717. CanonicalName
  13718. Names1b
  13719. CanonicalName
  13720.     0R1S2S6S10S12S13S20S26S31S
  13721. Names3 compares the canonical names against the Names 2 list and replaces with a null.
  13722.     0RR1S
  13723. Names3
  13724. Names2
  13725. CanonicalName
  13726. Names 4 compares the common name only - no domain and if found replaces with null.  Also makes sure there are no duplicates or extra spaces.
  13727.     0RR1S
  13728. Names4
  13729. Names3
  13730. CanonicalName
  13731.     0R1S2S10S14S17S
  13732. Names4
  13733.     0R3S4S6S11S
  13734. Append the InheritedFromDomain to all entries which are left and let the @OptimizeMailAddress take care of duplicates.  This ensures that mail will route the way that the message came in which lessens the chance of delivery failures...
  13735.     0RR1S
  13736. Names4a
  13737. Names4
  13738. InheritedFromDomain
  13739.     0R1S2S
  13740. Look for all addresses whose last domain is the same as the sender's domain - tack on the whole FromDomain
  13741.     0RR1S
  13742. Names5
  13743. Names4a
  13744. Names4a
  13745. InheritedFromDomain
  13746. Names4a
  13747. InheritedFromDomain
  13748.     0R1S2S6S10S12S13S14S15S21S25S29S31S32S33S34S
  13749. Find all the addresses without a domain and attach FromDomain
  13750.     0RR1S
  13751. Names6
  13752. Names5
  13753. Names5
  13754. Names5
  13755.     0R1S2S6S10S12S13S14S15S19S22S
  13756. Names7
  13757. Names5
  13758. Names6
  13759. Names6
  13760. InheritedFromDomain
  13761.     0R1S2S6S8S9S10S11S12S
  13762. Find everyone whose domain is the same as yours and strip it off
  13763.     0RR1S
  13764. Names8
  13765. Names7
  13766. Names7
  13767.     0R1S2S8S9S11S13S17S18S19S21S
  13768. Names8a
  13769. Names8
  13770. Names8
  13771.     0R1S2S8S9S11S13S17S18S19S24S
  13772. Names8b
  13773. Names8a
  13774. Names8a
  13775.     0R1S2S8S9S11S13S17S18S19S24S
  13776. Names8c
  13777. Names8b
  13778. Names8b
  13779.     0R1S2S8S9S11S13S17S18S19S24S
  13780. CopyTo
  13781. CopyTo
  13782. InheritedFromDomain
  13783. Names5
  13784. Names5
  13785. Names8c
  13786.     0R1S2S3S10S11S14S15S16S17S18S19S21S23S
  13787. PostedDateh
  13788.     0S0E
  13789. Save As Draft
  13790. MailOptions
  13791.     1S2S3S
  13792. SaveOptions
  13793.     0R1S2S3S
  13794. PostedDateh
  13795.     0S0E
  13796. Save and File
  13797.     7S9S
  13798. tmpAction
  13799. SaveAndFile
  13800.     0R1S2S3S
  13801. IsMailStationeryh
  13802. PostedDateY
  13803. PostedDateh
  13804.     4S5S9S10S16S17S18S19S
  13805. PromptValue
  13806. DefaultMailSaveOptions
  13807. Save when sent
  13808. Do you wish to save a copy of this Memo?
  13809. DefaultMailSaveOptions
  13810.     1S2S5S6S8S14S17S
  13811. SaveOptions
  13812. PromptValue
  13813. SaveOptions
  13814. PromptValue
  13815.     0RR1S2S5S6S9S14S
  13816. tmpAction
  13817. DefaultMailSaveOptions
  13818. Mailing
  13819.     0RR1S2S3S6S7S9S11S
  13820. MailOptions
  13821.     0R1S2S3S
  13822.     0R7S9S
  13823. tmpAction
  13824. SaveOptions
  13825. SendAndFile
  13826.     0RR1S2S3S6S7S9S11S
  13827.     0R7S9S
  13828. PostedDateh
  13829.     5S6S7S8S
  13830. Send And File...
  13831. tmpAction
  13832. DefaultMailSaveOptions
  13833. Mailing
  13834.     1S2S3S6S7S9S11S
  13835. MailOptions
  13836.     0R1S2S3S
  13837.     0RR7S9S
  13838. tmpAction
  13839. SendAndFile
  13840.     0RR1S2S3S
  13841.     0R7S9S
  13842.     0R7S9S
  13843. PostedDateh
  13844.     5S6S7S8S
  13845. Delivery Options...K
  13846. DeliveryOptions
  13847. Delivery Options
  13848.     4S8S
  13849. _ViewIcon
  13850. SenderTag
  13851. SenderTag
  13852. SenderTag
  13853. SenderTag
  13854. SenderTag
  13855. SenderTag
  13856. SenderTag
  13857. SenderTag
  13858. SenderTag
  13859. SenderTag
  13860. SenderTag
  13861.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  13862. PostedDateh
  13863.     5S6S7S8S
  13864. Special Options...
  13865. ReplyDate
  13866. ReplyDate
  13867.     1S2S3S
  13868. ReplyTo
  13869. ReplyTo
  13870.     0R1S2S3S
  13871. (Advanced Options)
  13872. Special Options
  13873.     0R6S10S13S15S
  13874. tmpDisplayReplyInfo
  13875. Please respond
  13876. ReplyTo
  13877. ReplyTo
  13878. ReplyDate
  13879. ReplyDate
  13880.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  13881. DueDateTime
  13882. ReplyDate
  13883.     0R1S2S3S
  13884. PostedDateh
  13885.     5S6S7S8S10S11S15S16S
  13886. Save As Stationery...
  13887. tmpAction
  13888. SaveAsStationery
  13889.     1S2S3S
  13890. IsMailStationeryh
  13891.     0S0E
  13892. _Remove From Folder...
  13893. Categori_zeK
  13894. SSend
  13895. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  13896. '++LotusScript Development Environment:2:5:(Forward):0:1
  13897. Declare Sub Click(Source As Button)
  13898. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13899. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13900. Private Sub BindEvents(Byval Objectname_ As String)
  13901.      Static Source As BUTTON
  13902.      Set Source = Bind(Objectname_)
  13903.      On Event Click From Source Call Click
  13904. End Sub
  13905. '++LotusScript Development Environment:2:2:Click:1:12
  13906. Sub Click(Source As Button)
  13907.      Call CreateNewDoc(NEW_MEMO)
  13908. End Sub
  13909. tmpnewdoc
  13910.     1S2S
  13911. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  13912. '++LotusScript Development Environment:2:5:(Forward):0:1
  13913. Declare Sub Click(Source As Button)
  13914. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13915. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13916. Private Sub BindEvents(Byval Objectname_ As String)
  13917.      Static Source As BUTTON
  13918.      Set Source = Bind(Objectname_)
  13919.      On Event Click From Source Call Click
  13920. End Sub
  13921. '++LotusScript Development Environment:2:2:Click:1:12
  13922. Sub Click(Source As Button)
  13923.      Call CreateNewDoc(NEW_CALENDAR)
  13924. End Sub
  13925. tmpnewdoc
  13926.     1S2S
  13927. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  13928. '++LotusScript Development Environment:2:5:(Forward):0:1
  13929. Declare Sub Click(Source As Button)
  13930. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13931. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13932. Private Sub BindEvents(Byval Objectname_ As String)
  13933.      Static Source As BUTTON
  13934.      Set Source = Bind(Objectname_)
  13935.      On Event Click From Source Call Click
  13936. End Sub
  13937. '++LotusScript Development Environment:2:2:Click:1:12
  13938. Sub Click(Source As Button)
  13939.      Call CreateNewDoc(NEW_TASK)
  13940. End Sub
  13941. tmpnewdoc
  13942.     1S2S
  13943. Copy into\New GroupK,
  13944. NewGroup
  13945.     0S0E
  13946. tmpnewdoc
  13947.     1S2S
  13948. O=Lotus Notes
  13949. O=Lotus Notes
  13950. PURSAFO
  13951. |.:#U
  13952. O=Lotus Notes
  13953. CN=Lotus Notes Template Development/O=Lotus Notes
  13954. PURSAFO
  13955. Fde!f^^
  13956. }sk5VN1
  13957. $$FormPostOpenAction
  13958. ExpireDate
  13959. ReplyDate
  13960. $TypeIcon
  13961. ReplyNumber
  13962. ComposedDate
  13963. $TITLE
  13964. $AUTOLAUNCH
  13965. $INFO
  13966. $WINDOWTITLE
  13967. $Script
  13968. $$Script_O
  13969. $$ScriptName
  13970. $$FormScript
  13971. $$$FormScript_O
  13972. $BODY
  13973. $ACTIONS
  13974. $SCRIPTOBJ_22
  13975. $SCRIPTOBJ_23
  13976. $SCRIPTOBJ_24
  13977. Times New Roman
  13978. VersionOpt|
  13979.     6S7S9S14S
  13980. $VersionOpt
  13981.     0R1S2S3S
  13982. SavedOnce
  13983.     0R1S2S3S
  13984. PostedDate(
  13985.     0R1S2S3S
  13986. DeliveredDate
  13987.     0R1S2S3S
  13988. $AutoEditMode
  13989.     0R1S2S3S
  13990. MailSaveOptions
  13991.     0R1S2S3S
  13992. VersionOpt
  13993.     0R4S
  13994. New Memo
  13995. Subject
  13996. Subject
  13997. Subject
  13998.     4S6S12S13S14S15S17S21S23S25S26S28S
  13999. '++LotusScript Development Environment:2:5:(Options):0:74
  14000. Option Public
  14001. Use "EmailProcessing"
  14002. Use "DocumentConversions"
  14003. '++LotusScript Development Environment:2:5:(Forward):0:1
  14004. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14005.  AlternateMemo'++LotusScript Development Environment:2:5:(Options):0:66
  14006. '++LotusScript Development Environment:2:5:(Forward):0:1
  14007. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  14008. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  14009. Declare Sub Postmodechange(Source As Notesuidocument)
  14010. Declare Sub Postopen(Source As Notesuidocument)
  14011. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  14012. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14013. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14014. Private Sub BindEvents(Byval Objectname_ As String)
  14015.      Static Source As NOTESUIDOCUMENT
  14016.      Set Source = Bind(Objectname_)
  14017.      On Event Querysave From Source Call Querysave
  14018.      On Event Queryclose From Source Call Queryclose
  14019.      On Event Postmodechange From Source Call Postmodechange
  14020.      On Event Postopen From Source Call Postopen
  14021.      On Event Querymodechange From Source Call Querymodechange
  14022. End Sub
  14023. '++LotusScript Development Environment:2:2:Querysave:1:12
  14024. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  14025.      If Not(source.InPreviewPane) Then
  14026.           Call EmailSave(Continue)
  14027.      End If
  14028. End Sub
  14029. '++LotusScript Development Environment:2:2:Queryclose:1:12
  14030. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  14031.      If Not(source.InPreviewPane) Then
  14032.           Call EmailClose(Continue)
  14033.      End If
  14034. End Sub
  14035. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  14036. Sub Postmodechange(Source As Notesuidocument)
  14037.      
  14038.      Call EmailModeChange
  14039.      
  14040. End Sub
  14041. '++LotusScript Development Environment:2:2:Postopen:1:12
  14042. Sub Postopen(Source As Notesuidocument)
  14043.      Set ws = New NotesUIWorkSpace
  14044.      Set uidoc = source
  14045.      
  14046.      If Not(source.InPreviewPane) Then
  14047.           Call EmailOpen
  14048.           If (note.tmpUseOLE(0) = "1") Then CreateOLEObject
  14049.      End If
  14050. End Sub
  14051. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  14052. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  14053.      If (source.InPreviewPane) Then
  14054.           Continue = False
  14055.      End If
  14056. End Sub
  14057.     Always Hidden: 
  14058. Principal
  14059. CalendarProfile
  14060. Owner
  14061.     1S2S3S7S
  14062. FromPerson memo is from.
  14063. DefaultLogo
  14064. StdNotesLtrGateway
  14065.     4S9S13S16S18SLogo
  14066.     0S0E
  14067.     0S0E
  14068. Encrypt
  14069. MailSaveOptions
  14070.     1S2S3S
  14071. MailSaveOptions
  14072. DefaultMailSaveOptions
  14073. $KeepPrivate
  14074. $KeepPrivate
  14075. $KeepPrivate
  14076.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  14077. MailEditor
  14078. AltEditorProgID
  14079.     1S2S
  14080. OriginalEditorh
  14081. MailEditor
  14082. OriginalEditor
  14083. MailEditor
  14084.     0R7S10S11S13S14S15S18S19S20S
  14085. tmpUseOLE
  14086. OLEBody
  14087. $OLEObjField
  14088. $OLEObjRichTextField
  14089. AltEditorProgID
  14090.     0S0E
  14091. $OLEObjProgID
  14092. $HideMailHeader
  14093.     0S0E
  14094.     From:    
  14095. Principal
  14096. Principal
  14097.     1S2S5S6S8S10S
  14098.     0R1S2S8S
  14099.     0R1S2S5S6S8S14S18S
  14100.     0R1S2S5S6S8S14S18S
  14101. SentBy
  14102. X400FreeForm^
  14103.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  14104. SentBy
  14105. FromDomain
  14106. FromDomain
  14107. FromDomain
  14108. FromDomain
  14109.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  14110. FromName
  14111. Principal
  14112. Principal
  14113.     0RR1S2S9S11S15S
  14114. FromStops
  14115.     0R1S2S6S
  14116. FromName
  14117. FromStops
  14118. FromStops
  14119. FromStops
  14120.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  14121.      on 
  14122. PostedDateh
  14123. PostedDate
  14124.     7S9S
  14125. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  14126. tmpDate
  14127. $HideMailHeader
  14128.     4S5S6S8S10S11S
  14129.     From:    
  14130. tmpDisplayFrom_Preview
  14131. tmpDisplayFrom_NoLogo
  14132.      on 
  14133. PostedDateh
  14134. PostedDate
  14135.     7S9S
  14136. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  14137. ReplyDate
  14138. ReplyTo
  14139. $HideMailHeader
  14140.     2S3S4S5S6S7S9S10S
  14141. Please respond
  14142. ReplyTo
  14143. ReplyTo
  14144. ReplyDate
  14145. ReplyDate
  14146.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  14147. $HideMailHeader
  14148. Principal
  14149. Principal
  14150. Principal
  14151. Principal
  14152. Principal
  14153.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  14154.     Sent by:    
  14155. FromDomain
  14156. FromDomain
  14157. FromDomain
  14158. FromDomain
  14159.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  14160. FromName
  14161.     0RR1S2S6S
  14162. FromStops
  14163.     0R1S2S6S
  14164. FromName
  14165. FromStops
  14166. FromStops
  14167. FromStops
  14168.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  14169.     To:    
  14170. SendTo}
  14171.     0S0E
  14172. SendTo^
  14173. No names found to send mail.{
  14174.     1S6S7S8S9S11S16S
  14175. SendToList of primary people to send memo.
  14176.     cc:    
  14177. CopyTo}
  14178.     0S0E
  14179. CopyToList of people to send a copy of the memo.
  14180. DeliveredDate
  14181. BlindCopyTo
  14182. (bcc: 
  14183. BlindCopyTo
  14184.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  14185.     bcc:    
  14186. BlindCopyTo
  14187.     0S0E
  14188. BlindCopyToList of undisclosed people to send copies of memo.
  14189.     Subject:    
  14190. PhoneCaller
  14191. Phone Call: 
  14192. PhoneCaller
  14193. Subject
  14194.     7S8S9S11SSubjectSubject of memo.
  14195. tmpUseOLE
  14196.     1S2S
  14197. OLEBody
  14198. tmpUseOLE
  14199.     1S2S
  14200. Edit Document
  14201. ForwardK 
  14202.     0S0E
  14203. New Memo.
  14204.     0S0E
  14205. Delete 
  14206.     0S0E
  14207. _Move To Folder...
  14208. Delivery Information...Kz
  14209. DeliveryInfo
  14210. Delivery Information
  14211.     4S5S6S7S8S9S10S12S
  14212. _Forward
  14213. Reply
  14214. Reply
  14215.     0S0E
  14216. Reply With History
  14217. Reply with History
  14218. This document is truncated.
  14219.     4S8S10S13S
  14220. Reply with history
  14221. Close
  14222.     0S0E
  14223. Envelope...K@
  14224. (OLEMailFields)
  14225.     0S0E
  14226. PostedDateh
  14227. tmpUseOLE
  14228.     5S6S7S8S11S12S13S
  14229. Address... 
  14230.     0S0E
  14231. PostedDateh
  14232.     5S6S7S8S
  14233. Save As Draft
  14234. tmpAction
  14235. SaveAsDraft
  14236.     1S2S3S
  14237. IsMailStationeryh
  14238. PostedDateh
  14239.     4S5S
  14240. Save and File
  14241.     7S9S
  14242. tmpAction
  14243. SaveAndFile
  14244.     0R1S2S3S
  14245. IsMailStationeryh
  14246. PostedDateY
  14247. PostedDateh
  14248.     4S5S9S10S16S17S18S19S
  14249. PromptValue
  14250. DefaultMailSaveOptions
  14251. Save when sent
  14252. Do you wish to save a copy of this Memo?
  14253. DefaultMailSaveOptions
  14254.     1S2S5S6S8S14S17S
  14255. SaveOptions
  14256. PromptValue
  14257. SaveOptions
  14258. PromptValue
  14259.     0RR1S2S5S6S9S14S
  14260. SendTo^
  14261. CopyTo^
  14262. BlindCopyTo
  14263. (OLEMailFields)
  14264.     0RR6S7S8S9S13S14S15S16S20S21S22S23S36S37S42S44S
  14265. tmpAction
  14266. DefaultMailSaveOptions
  14267. Mailing
  14268.     0RR1S2S3S6S7S9S11S
  14269. MailOptions
  14270.     0R1S2S3S
  14271.     0R7S9S
  14272. tmpAction
  14273. SaveOptions
  14274. SendAndFile
  14275.     0RR1S2S3S6S7S9S11S
  14276.     0R7S9S
  14277. PostedDateh
  14278. IsMailStationeryh
  14279.     5S6S7S8S10S11S
  14280. Send And File...p
  14281. tmpAction
  14282. DefaultMailSaveOptions
  14283. Mailing
  14284.     1S2S3S6S7S9S11S
  14285. MailOptions
  14286.     0R1S2S3S
  14287. SendTo^
  14288. CopyTo^
  14289. BlindCopyTo
  14290. (OLEMailFields)
  14291.     0RR6S7S8S9S13S14S15S16S20S21S22S23S36S37S42S44S
  14292.     0RR7S9S
  14293. tmpAction
  14294. SendAndFile
  14295.     0RR1S2S3S
  14296.     0R7S9S
  14297.     0R7S9S
  14298. PostedDateh
  14299. IsMailStationeryh
  14300.     5S6S7S8S10S11S
  14301. Delivery Options...K
  14302. DeliveryOptions
  14303. Delivery Options
  14304.     4S8S
  14305. _ViewIcon
  14306. SenderTag
  14307. SenderTag
  14308. SenderTag
  14309. SenderTag
  14310. SenderTag
  14311. SenderTag
  14312. SenderTag
  14313. SenderTag
  14314. SenderTag
  14315. SenderTag
  14316. SenderTag
  14317.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  14318. PostedDateh
  14319.     5S6S7S8S
  14320. Special Options...6
  14321. ReplyDate
  14322. ReplyDate
  14323.     1S2S3S
  14324. ReplyTo
  14325. ReplyTo
  14326.     0R1S2S3S
  14327. (Advanced Options)
  14328. Special Options
  14329.     0R6S10S13S15S
  14330. tmpDisplayReplyInfo
  14331. Please respond
  14332. ReplyTo
  14333. ReplyTo
  14334. ReplyDate
  14335. ReplyDate
  14336.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  14337. DueDateTime
  14338. ReplyDate
  14339. ReplyDate
  14340.     0R1S2S3S6S7S9S11S
  14341. PostedDateh
  14342.     5S6S7S8S
  14343. Save As Stationery...
  14344. tmpAction
  14345. SaveAsStationery
  14346.     1S2S3S
  14347. IsMailStationeryh
  14348.     0S0E
  14349. _Remove From Folder...
  14350. Categori_zeK
  14351. SSend
  14352. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  14353. '++LotusScript Development Environment:2:5:(Forward):0:1
  14354. Declare Sub Click(Source As Button)
  14355. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14356. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14357. Private Sub BindEvents(Byval Objectname_ As String)
  14358.      Static Source As BUTTON
  14359.      Set Source = Bind(Objectname_)
  14360.      On Event Click From Source Call Click
  14361. End Sub
  14362. '++LotusScript Development Environment:2:2:Click:1:12
  14363. Sub Click(Source As Button)
  14364.      Call CreateNewDoc(NEW_MEMO)
  14365. End Sub
  14366. tmpnewdoc
  14367.     1S2S
  14368. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  14369. '++LotusScript Development Environment:2:5:(Forward):0:1
  14370. Declare Sub Click(Source As Button)
  14371. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14372. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14373. Private Sub BindEvents(Byval Objectname_ As String)
  14374.      Static Source As BUTTON
  14375.      Set Source = Bind(Objectname_)
  14376.      On Event Click From Source Call Click
  14377. End Sub
  14378. '++LotusScript Development Environment:2:2:Click:1:12
  14379. Sub Click(Source As Button)
  14380.      Call CreateNewDoc(NEW_CALENDAR)
  14381. End Sub
  14382. tmpnewdoc
  14383.     1S2S
  14384. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  14385. '++LotusScript Development Environment:2:5:(Forward):0:1
  14386. Declare Sub Click(Source As Button)
  14387. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14388. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14389. Private Sub BindEvents(Byval Objectname_ As String)
  14390.      Static Source As BUTTON
  14391.      Set Source = Bind(Objectname_)
  14392.      On Event Click From Source Call Click
  14393. End Sub
  14394. '++LotusScript Development Environment:2:2:Click:1:12
  14395. Sub Click(Source As Button)
  14396.      Call CreateNewDoc(NEW_TASK)
  14397. End Sub
  14398. tmpnewdoc
  14399.     1S2S
  14400. Copy into\New GroupK,
  14401. NewGroup
  14402.     0S0E
  14403. tmpnewdoc
  14404.     1S2S
  14405. O=Lotus Notes
  14406. O=Lotus Notes
  14407. PURSAFO
  14408. |.:#U
  14409. O=Lotus Notes
  14410. CN=Lotus Notes Template Development/O=Lotus Notes
  14411. PURSAFO
  14412. Fde!f^^
  14413. $$FormPostOpenAction
  14414. $TypeIcon
  14415. ExpireDate
  14416. ReplyDate
  14417. ComposedDate
  14418. $TITLE
  14419. $INFO
  14420. $WINDOWTITLE
  14421. $Script
  14422. $$ScriptName
  14423. $$FormScript
  14424. $BODY
  14425. $ACTIONS
  14426. Times New Roman
  14427. VersionOpt|
  14428.     6S7S9S14S
  14429. $VersionOpt
  14430.     0R1S2S3S
  14431. SavedOnce
  14432.     0R1S2S3S
  14433. PostedDate(
  14434.     0R1S2S3S
  14435. DeliveredDate
  14436.     0R1S2S3S
  14437. $AutoEditMode
  14438.     0R1S2S3S
  14439. MailSaveOptions
  14440.     0R1S2S3S
  14441. VersionOpt
  14442.     0R4S
  14443. New Memo
  14444. Subject
  14445. Subject
  14446. Subject
  14447.     4S6S12S13S14S15S17S21S23S25S26S28S
  14448. '++LotusScript Development Environment:2:5:(Options):0:74
  14449. Option Public
  14450. Use "EmailProcessing"
  14451. Use "DocumentConversions"
  14452. '++LotusScript Development Environment:2:5:(Forward):0:1
  14453. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14454.  Memo'++LotusScript Development Environment:2:5:(Options):0:66
  14455. '++LotusScript Development Environment:2:5:(Forward):0:1
  14456. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  14457. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  14458. Declare Sub Postmodechange(Source As Notesuidocument)
  14459. Declare Sub Postopen(Source As Notesuidocument)
  14460. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14461. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14462. Private Sub BindEvents(Byval Objectname_ As String)
  14463.      Static Source As NOTESUIDOCUMENT
  14464.      Set Source = Bind(Objectname_)
  14465.      On Event Querysave From Source Call Querysave
  14466.      On Event Queryclose From Source Call Queryclose
  14467.      On Event Postmodechange From Source Call Postmodechange
  14468.      On Event Postopen From Source Call Postopen
  14469. End Sub
  14470. '++LotusScript Development Environment:2:2:Querysave:1:12
  14471. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  14472.      
  14473.      Call EmailSave(Continue)
  14474.      
  14475. End Sub
  14476. '++LotusScript Development Environment:2:2:Queryclose:1:12
  14477. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  14478.      
  14479.      Call EmailClose(Continue)
  14480.      
  14481. End Sub
  14482. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  14483. Sub Postmodechange(Source As Notesuidocument)
  14484.      
  14485.      Call EmailModeChange
  14486.      
  14487. End Sub
  14488. '++LotusScript Development Environment:2:2:Postopen:1:12
  14489. Sub Postopen(Source As Notesuidocument)
  14490.      
  14491.      Set ws = New NotesUIWorkSpace
  14492.      Set uidoc = source
  14493.      
  14494.      Call EmailOpen
  14495.      
  14496. End Sub
  14497.     Always Hidden: 
  14498. Principal
  14499. CalendarProfile
  14500. Owner
  14501.     1S2S3S7S
  14502. FromPerson memo is from.
  14503. DefaultLogo
  14504. StdNotesLtrGateway
  14505.     4S9S13S16S18SLogo
  14506.     0S0E
  14507.     0S0E
  14508. Encrypt
  14509. MailSaveOptions
  14510.     1S2S3S
  14511. MailSaveOptions
  14512. DefaultMailSaveOptions
  14513. $KeepPrivate
  14514. $KeepPrivate
  14515. $KeepPrivate
  14516.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  14517. $HideMailHeader
  14518.     0S0E
  14519.     From:    
  14520. Principal
  14521. Principal
  14522.     1S2S5S6S8S10S
  14523.     0R1S2S8S
  14524.     0R1S2S5S6S8S14S18S
  14525.     0R1S2S5S6S8S14S18S
  14526. SentBy
  14527. X400FreeForm^
  14528.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  14529. SentBy
  14530. FromDomain
  14531. FromDomain
  14532. FromDomain
  14533. FromDomain
  14534.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  14535. FromName
  14536. Principal
  14537. Principal
  14538.     0RR1S2S9S11S15S
  14539. FromStops
  14540.     0R1S2S6S
  14541. FromName
  14542. FromStops
  14543. FromStops
  14544. FromStops
  14545.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  14546.      on 
  14547. PostedDateh
  14548. PostedDate
  14549.     7S9S
  14550. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  14551. $HideMailHeader
  14552. StdNotesLtr16
  14553.     7S9S10S11S13S15S
  14554. tmpDate
  14555. $HideMailHeader
  14556.     4S5S6S8S10S11S
  14557.     From:    
  14558. tmpDisplayFrom_Preview
  14559. tmpDisplayFrom_NoLogo
  14560.      on 
  14561. PostedDateh
  14562. PostedDate
  14563.     7S9S
  14564. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  14565. ReplyDate
  14566. ReplyTo
  14567. $HideMailHeader
  14568.     2S3S4S5S6S7S9S10S
  14569. Please respond
  14570. ReplyTo
  14571. ReplyTo
  14572. ReplyDate
  14573. ReplyDate
  14574.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  14575. $HideMailHeader
  14576. Principal
  14577. Principal
  14578. Principal
  14579. Principal
  14580. Principal
  14581.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  14582.     Sent by:    
  14583. FromDomain
  14584. FromDomain
  14585. FromDomain
  14586. FromDomain
  14587.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  14588. FromName
  14589.     0RR1S2S6S
  14590. FromStops
  14591.     0R1S2S6S
  14592. FromName
  14593. FromStops
  14594. FromStops
  14595. FromStops
  14596.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  14597. SendTo
  14598. CopyTo
  14599.   cc:  
  14600. CopyTo
  14601.     1S2S8S13S14S2E17S18S21S22S28S31S
  14602.     To:    
  14603. SendTo}
  14604.     0S0E
  14605. SendTo^
  14606. No names found to send mail.{
  14607.     1S6S7S8S9S11S16S
  14608. SendToList of primary people to send memo.
  14609.     cc:    
  14610. CopyTo}
  14611.     0S0E
  14612. CopyToList of people to send a copy of the memo.
  14613. DeliveredDate
  14614. BlindCopyTo
  14615. (bcc: 
  14616. BlindCopyTo
  14617.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  14618.     bcc:    
  14619. BlindCopyTo
  14620.     0S0E
  14621. BlindCopyToList of undisclosed people to send copies of memo.
  14622.     Subject:    
  14623. PhoneCaller
  14624. Phone Call: 
  14625. PhoneCaller
  14626. Subject
  14627.     7S8S9S11SSubjectSubject of memo.
  14628. $HideMailHeader
  14629. PostedDate
  14630. SenderTag
  14631. Moods
  14632.     7S9S10S11S12S13S15S16S17S18S21S23S
  14633. Edit Document
  14634. ForwardK 
  14635.     0S0E
  14636. New Memo.
  14637.     0S0E
  14638. Delete 
  14639.     0S0E
  14640. _Move To Folder...
  14641. Delivery Information...Kz
  14642. DeliveryInfo
  14643. Delivery Information
  14644.     4S5S6S7S8S9S10S12S
  14645. _Forward
  14646. Reply
  14647. Reply
  14648.     0S0E
  14649. Reply With History
  14650. Reply with History
  14651. This document is truncated.
  14652.     4S8S10S13S
  14653. Reply with history
  14654. Address... 
  14655.     0S0E
  14656. PostedDateh
  14657.     5S6S7S8S
  14658. Close
  14659.     0S0E
  14660. IsMailStationeryh
  14661. PostedDateh
  14662.     6S7S
  14663. Save As Draft
  14664. tmpAction
  14665. SaveAsDraft
  14666.     1S2S3S
  14667. IsMailStationeryh
  14668. PostedDateh
  14669.     4S5S
  14670. Save and File
  14671.     7S9S
  14672. tmpAction
  14673. SaveAndFile
  14674.     0R1S2S3S
  14675. IsMailStationeryh
  14676. PostedDateY
  14677. PostedDateh
  14678.     4S5S9S10S16S17S18S19S
  14679. PromptValue
  14680. DefaultMailSaveOptions
  14681. Save when sent
  14682. Do you wish to save a copy of this Memo?
  14683. DefaultMailSaveOptions
  14684.     1S2S5S6S8S14S17S
  14685. SaveOptions
  14686. PromptValue
  14687. SaveOptions
  14688. PromptValue
  14689.     0RR1S2S5S6S9S14S
  14690. tmpAction
  14691. DefaultMailSaveOptions
  14692. Mailing
  14693.     0RR1S2S3S6S7S9S11S
  14694. MailOptions
  14695.     0R1S2S3S
  14696.     0R7S9S
  14697. tmpAction
  14698. SaveOptions
  14699. SendAndFile
  14700.     0RR1S2S3S6S7S9S11S
  14701.     0R7S9S
  14702. PostedDateh
  14703. IsMailStationeryh
  14704.     5S6S7S8S10S11S
  14705. Send And File...
  14706. tmpAction
  14707. DefaultMailSaveOptions
  14708. Mailing
  14709.     1S2S3S6S7S9S11S
  14710. MailOptions
  14711.     0R1S2S3S
  14712.     0RR7S9S
  14713. tmpAction
  14714. SendAndFile
  14715.     0RR1S2S3S
  14716.     0R7S9S
  14717.     0R7S9S
  14718. PostedDateh
  14719. IsMailStationeryh
  14720.     5S6S7S8S10S11S
  14721. Delivery Options...K
  14722. DeliveryOptions
  14723. Delivery Options
  14724.     4S8S
  14725. _ViewIcon
  14726. SenderTag
  14727. SenderTag
  14728. SenderTag
  14729. SenderTag
  14730. SenderTag
  14731. SenderTag
  14732. SenderTag
  14733. SenderTag
  14734. SenderTag
  14735. SenderTag
  14736. SenderTag
  14737.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  14738. PostedDateh
  14739.     5S6S7S8S
  14740. Special Options...6
  14741. ReplyDate
  14742. ReplyDate
  14743.     1S2S3S
  14744. ReplyTo
  14745. ReplyTo
  14746.     0R1S2S3S
  14747. (Advanced Options)
  14748. Special Options
  14749.     0R6S10S13S15S
  14750. tmpDisplayReplyInfo
  14751. Please respond
  14752. ReplyTo
  14753. ReplyTo
  14754. ReplyDate
  14755. ReplyDate
  14756.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  14757. DueDateTime
  14758. ReplyDate
  14759. ReplyDate
  14760.     0R1S2S3S6S7S9S11S
  14761. PostedDateh
  14762.     5S6S7S8S10S11S15S16S
  14763. Save As Stationery...
  14764. tmpAction
  14765. SaveAsStationery
  14766.     1S2S3S
  14767. IsMailStationeryh
  14768.     0S0E
  14769. _Remove From Folder...
  14770. Categori_zeK
  14771. SSend
  14772. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  14773. '++LotusScript Development Environment:2:5:(Forward):0:1
  14774. Declare Sub Click(Source As Button)
  14775. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14776. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14777. Private Sub BindEvents(Byval Objectname_ As String)
  14778.      Static Source As BUTTON
  14779.      Set Source = Bind(Objectname_)
  14780.      On Event Click From Source Call Click
  14781. End Sub
  14782. '++LotusScript Development Environment:2:2:Click:1:12
  14783. Sub Click(Source As Button)
  14784.      Call CreateNewDoc(NEW_MEMO)
  14785. End Sub
  14786. tmpnewdoc
  14787.     1S2S
  14788. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  14789. '++LotusScript Development Environment:2:5:(Forward):0:1
  14790. Declare Sub Click(Source As Button)
  14791. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14792. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14793. Private Sub BindEvents(Byval Objectname_ As String)
  14794.      Static Source As BUTTON
  14795.      Set Source = Bind(Objectname_)
  14796.      On Event Click From Source Call Click
  14797. End Sub
  14798. '++LotusScript Development Environment:2:2:Click:1:12
  14799. Sub Click(Source As Button)
  14800.      Call CreateNewDoc(NEW_CALENDAR)
  14801. End Sub
  14802. tmpnewdoc
  14803.     1S2S
  14804. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  14805. '++LotusScript Development Environment:2:5:(Forward):0:1
  14806. Declare Sub Click(Source As Button)
  14807. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14808. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14809. Private Sub BindEvents(Byval Objectname_ As String)
  14810.      Static Source As BUTTON
  14811.      Set Source = Bind(Objectname_)
  14812.      On Event Click From Source Call Click
  14813. End Sub
  14814. '++LotusScript Development Environment:2:2:Click:1:12
  14815. Sub Click(Source As Button)
  14816.      Call CreateNewDoc(NEW_TASK)
  14817. End Sub
  14818. tmpnewdoc
  14819.     1S2S
  14820. Copy into\New GroupK,
  14821. NewGroup
  14822.     0S0E
  14823. tmpnewdoc
  14824.     1S2S
  14825. O=Lotus Notes
  14826. O=Lotus Notes
  14827. PURSAFO
  14828. |.:#U
  14829. O=Lotus Notes
  14830. CN=Lotus Notes Template Development/O=Lotus Notes
  14831. PURSAFO
  14832. Fde!f^^
  14833. $$FormPostOpenAction
  14834. $TypeIcon
  14835. ExpireDate
  14836. ReplyDate
  14837. ComposedDate
  14838. $TITLE
  14839. $INFO
  14840. $WINDOWTITLE
  14841. $Script
  14842. $$Script_O
  14843. $$ScriptName
  14844. $$FormScript
  14845. $$$FormScript_O
  14846. $BODY
  14847. $ACTIONS
  14848. $SCRIPTOBJ_21
  14849. $SCRIPTOBJ_22
  14850. $SCRIPTOBJ_23
  14851. *** Message Successfully Delivered ***
  14852.  Delivery Report
  14853. Delivery Confirmation Report
  14854.     Your document:
  14855. Subject
  14856. Subject
  14857.     was delivered to:
  14858. IntendedRecipient
  14859. IntendedRecipient
  14860. DeliveryDate
  14861. BodyBody of memo.
  14862.     Always Hidden:
  14863. Path_Info
  14864. Path_Info
  14865. Categori_ze
  14866. Close
  14867.     0S0E
  14868. _Edit Document
  14869. Send Docu_ment
  14870. _Forward
  14871. _Move to Folder...
  14872. _Remove from Folder...
  14873. Trash
  14874.     1S2S8S12S14S
  14875. /wCommand?OpenAgent&ToTrash=
  14876. &From="
  14877.     0R1S2S3S4S11S13S15S16S
  14878. Path_Info
  14879. Path_Info
  14880.     0R1S2S6S10S11S15S
  14881. view1
  14882.     0R1S2S3S10S14S18S21S
  14883. view2
  14884. view1
  14885. view1
  14886. view1
  14887.     0R1S2S3S10S14S18S21S
  14888. path"
  14889. view2
  14890.     0RR3S4S5S6S7S8S
  14891.     1S2S8S12S14S
  14892. /wFolders?OpenForm&UNID=
  14893. &View="
  14894.     0R1S2S3S4S11S13S15S16S
  14895. Path_Info
  14896. Path_Info
  14897.     0R1S2S6S10S11S15S
  14898. view1
  14899.     0R1S2S3S10S14S18S21S
  14900. view2
  14901. view1
  14902. view1
  14903. view1
  14904.     0R1S2S3S10S14S18S21S
  14905. path"
  14906. view2
  14907.     0RR3S4S5S6S7S8S
  14908. In Box*
  14909. ($Inbox)
  14910. Calendar.
  14911. ($Calendar)
  14912. Meetings.
  14913. ($Meetings)
  14914. To Do
  14915. ($ToDo)
  14916. All Viewsu"
  14917. O=Lotus Notes
  14918. O=Lotus Notes
  14919. PURSAFO
  14920. |.:#U
  14921. O=Lotus Notes
  14922. CN=Lotus Notes Template Development/O=Lotus Notes
  14923. PURSAFO
  14924. Fde!f^^
  14925. $TITLE
  14926. $INFO
  14927. $WINDOWTITLE
  14928. $$ScriptName
  14929. DeliveryDate
  14930. $BODY
  14931. $ACTIONS
  14932. *** Message Successfully Received ***
  14933.  Return Receipt
  14934. Return Receipt
  14935.         Your document:
  14936. Subject
  14937. Subject
  14938.         was received by:
  14939. IntendedRecipient
  14940. IntendedRecipient
  14941.         at:
  14942. DeliveryDate
  14943.     Always Hidden:
  14944. Path_Info
  14945. Path_Info
  14946. Categori_ze
  14947. Close" 
  14948.     0S0E
  14949. _Edit Document
  14950. Send Docu_ment
  14951. _Forward
  14952. _Move to Folder...
  14953. _Remove from Folder...
  14954. Trash
  14955.     1S2S8S12S14S
  14956. /wCommand?OpenAgent&ToTrash=
  14957. &From="
  14958.     0R1S2S3S4S11S13S15S16S
  14959. Path_Info
  14960. Path_Info
  14961.     0R1S2S6S10S11S15S
  14962. view1
  14963.     0R1S2S3S10S14S18S21S
  14964. view2
  14965. view1
  14966. view1
  14967. view1
  14968.     0R1S2S3S10S14S18S21S
  14969. path"
  14970. view2
  14971.     0RR3S4S5S6S7S8S
  14972.     1S2S8S12S14S
  14973. /wFolders?OpenForm&UNID=
  14974. &View="
  14975.     0R1S2S3S4S11S13S15S16S
  14976. Path_Info
  14977. Path_Info
  14978.     0R1S2S6S10S11S15S
  14979. view1
  14980.     0R1S2S3S10S14S18S21S
  14981. view2
  14982. view1
  14983. view1
  14984. view1
  14985.     0R1S2S3S10S14S18S21S
  14986. path"
  14987. view2
  14988.     0RR3S4S5S6S7S8S
  14989. In Box*
  14990. ($Inbox)
  14991. Calendar.
  14992. ($Calendar)
  14993. Meetings.
  14994. ($Meetings)
  14995. To Doe*
  14996. ($ToDo)
  14997. All Viewsu"
  14998. O=Lotus Notes
  14999. O=Lotus Notes
  15000. PURSAFO
  15001. |.:#U
  15002. O=Lotus Notes
  15003. CN=Lotus Notes Template Development/O=Lotus Notes
  15004. PURSAFO
  15005. Fde!f^^
  15006. 5 =nMN
  15007. $TITLE
  15008. $INFO
  15009. $WINDOWTITLE
  15010. $$Script_O
  15011. $$ScriptName
  15012. DeliveryDate
  15013. $BODY
  15014. $ACTIONS
  15015. *** Message Not Delivered ***
  15016.  ReturnNonReceipt
  15017. Return Receipt Failure
  15018.     Your document:
  15019. Subject
  15020. OriginalSubject
  15021.     was not received by:
  15022. IntendedRecipient
  15023. IntendedRecipient
  15024.     because:
  15025. FailureReason
  15026. FailureReason
  15027.     Always Hidden:
  15028. Path_Info
  15029. Path_Info
  15030. Categori_ze
  15031. Close
  15032.     0S0E
  15033. Edit Documenth
  15034. Resend
  15035. Resend>
  15036.     7S12S
  15037. _Forward
  15038. _Move to Folder...
  15039. _Remove from Folder...
  15040. Trashs
  15041.     1S2S8S12S14S
  15042. /wCommand?OpenAgent&ToTrash=
  15043. &From="
  15044.     0R1S2S3S4S11S13S15S16S
  15045. Path_Info
  15046. Path_Info
  15047.     0R1S2S6S10S11S15S
  15048. view1
  15049.     0R1S2S3S10S14S18S21S
  15050. view2
  15051. view1
  15052. view1
  15053. view1
  15054.     0R1S2S3S10S14S18S21S
  15055. path"
  15056. view2
  15057.     0RR3S4S5S6S7S8S
  15058.     1S2S8S12S14S
  15059. /wFolders?OpenForm&UNID=
  15060. &View="
  15061.     0R1S2S3S4S11S13S15S16S
  15062. Path_Info
  15063. Path_Info
  15064.     0R1S2S6S10S11S15S
  15065. view1
  15066.     0R1S2S3S10S14S18S21S
  15067. view2
  15068. view1
  15069. view1
  15070. view1
  15071.     0R1S2S3S10S14S18S21S
  15072. path"
  15073. view2
  15074.     0RR3S4S5S6S7S8S
  15075. In Box*
  15076. ($Inbox)
  15077. Calendar.
  15078. ($Calendar)
  15079. Meetings.
  15080. ($Meetings)
  15081. To Dos*
  15082. ($ToDo)
  15083. All Viewsn"
  15084. O=Lotus Notes
  15085. O=Lotus Notes
  15086. PURSAFO
  15087. |.:#U
  15088. O=Lotus Notes
  15089. CN=Lotus Notes Template Development/O=Lotus Notes
  15090. PURSAFO
  15091. Fde!f^^
  15092. T(lu RCt
  15093. $TITLE
  15094. $INFO
  15095. $WINDOWTITLE
  15096. $$Script_O
  15097. $$ScriptName
  15098. $BODY
  15099. $ACTIONS
  15100. *** Message Successfully Delivered ***
  15101.  Trace Report
  15102. Trace Report
  15103.     Your trace:
  15104. Subject
  15105. Subject
  15106.     has reached:
  15107. IntendedRecipient
  15108. MailServer
  15109. DeliveryDate
  15110. Trace Information
  15111. RouteServers
  15112. RouteServers
  15113. RouteTimes
  15114. RouteTimes
  15115.     Always Hidden:
  15116. Path_Info
  15117. Path_Info
  15118. Categori_ze_
  15119. _Edit Document
  15120. Send Docu_ment
  15121. _Forward
  15122. _Move to Folder...
  15123. _Remove from Folder...
  15124. Trash
  15125.     1S2S8S12S14S
  15126. /wCommand?OpenAgent&ToTrash=
  15127. &From="
  15128.     0R1S2S3S4S11S13S15S16S
  15129. Path_Info
  15130. Path_Info
  15131.     0R1S2S6S10S11S15S
  15132. view1
  15133.     0R1S2S3S10S14S18S21S
  15134. view2
  15135. view1
  15136. view1
  15137. view1
  15138.     0R1S2S3S10S14S18S21S
  15139. path"
  15140. view2
  15141.     0RR3S4S5S6S7S8S
  15142.     1S2S8S12S14S
  15143. /wFolders?OpenForm&UNID=
  15144. &View="
  15145.     0R1S2S3S4S11S13S15S16S
  15146. Path_Info
  15147. Path_Info
  15148.     0R1S2S6S10S11S15S
  15149. view1
  15150.     0R1S2S3S10S14S18S21S
  15151. view2
  15152. view1
  15153. view1
  15154. view1
  15155.     0R1S2S3S10S14S18S21S
  15156. path"
  15157. view2
  15158.     0RR3S4S5S6S7S8S
  15159. In Box*
  15160. ($Inbox)
  15161. Calendar.
  15162. ($Calendar)
  15163. Meetings.
  15164. ($Meetings)
  15165. To Dod*
  15166. ($ToDo)
  15167. All ViewsA"
  15168. O=Lotus Notes
  15169. O=Lotus Notes
  15170. PURSAFO
  15171. |.:#U
  15172. O=Lotus Notes
  15173. CN=Lotus Notes Template Development/O=Lotus Notes
  15174. PURSAFO
  15175. Fde!f^^
  15176. $TITLE
  15177. $INFO
  15178. $WINDOWTITLE
  15179. $$Script_O
  15180. $$ScriptName
  15181. DeliveryDate
  15182. $BODY
  15183. $ACTIONS
  15184. _Special\BookmarkBookmark
  15185. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########
  15186. Discussion Threads|Threads1
  15187. $39$13
  15188. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########
  15189. $SUBVIEW$1\:1{@special(@indexunread)};$2\Date:8{@date(@year(PostedDate);@month(PostedDate);@day(PostedDate))};From\From:15;$4\Subject:30{@if(@isavailable(Subject);Subject;"Phone call from: "+PhoneCaller)}($All)1
  15190. $104$68
  15191. $68Yd
  15192. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  15193. ##########################################################
  15194. ($Calendar)|Calendar11'
  15195. $134$126$143
  15196. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################
  15197. ($Drafts)1$
  15198. $58$59$55
  15199. $65$65
  15200. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############################################
  15201. $FolderInfo($FolderInfo)
  15202. $103Y
  15203. CN=Don Hatch/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes8##########################
  15204. $FolderRefInfo($FolderRefInfo)
  15205. $FolderRefV
  15206.     0S0E
  15207. $105$FolderRefID$FolderRefFlags$Conflict
  15208. $FolderRefh
  15209.     L1S1
  15210. $105$
  15211. $105$FolderRefID
  15212. $105Folder UNID*
  15213. $FolderRefV
  15214.     0S0E
  15215. $FolderRefIDFolder Reference ID$FolderRefFlagsFolder Reference Flags&
  15216. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################
  15217. CN=Ryan Jansen/O=IrisCN=user1 test/O=C&SCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesAppointmentResponsess34Q1###############################################
  15218. VersionOpt|
  15219.     6S7S9S14S
  15220. $VersionOpt
  15221.     0R1S2S3S
  15222. SavedOnce
  15223.     0R1S2S3S
  15224. PostedDate(
  15225.     0R1S2S3S
  15226. DeliveredDate
  15227.     0R1S2S3S
  15228. $AutoEditMode
  15229.     0R1S2S3S
  15230. MailSaveOptions
  15231.     0R1S2S3S
  15232. VersionOpt
  15233.     0R4S
  15234. New Bookmark
  15235. Subject
  15236. Subject
  15237. Subject
  15238.     4S6S12S13S14S15S17S21S23S25S26S28S
  15239. Times New Roman
  15240. '++LotusScript Development Environment:2:5:(Options):0:74
  15241. Option Public
  15242. Use "EmailProcessing"
  15243. Use "DocumentConversions"
  15244. '++LotusScript Development Environment:2:5:(Forward):0:1
  15245. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15246.  Bookmark'++LotusScript Development Environment:2:5:(Options):0:66
  15247. '++LotusScript Development Environment:2:5:(Forward):0:1
  15248. Declare Sub Postopen(Source As Notesuidocument)
  15249. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  15250. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  15251. Declare Sub Postmodechange(Source As Notesuidocument)
  15252. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15253. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15254. Private Sub BindEvents(Byval Objectname_ As String)
  15255.      Static Source As NOTESUIDOCUMENT
  15256.      Set Source = Bind(Objectname_)
  15257.      On Event Postopen From Source Call Postopen
  15258.      On Event Querysave From Source Call Querysave
  15259.      On Event Queryclose From Source Call Queryclose
  15260.      On Event Postmodechange From Source Call Postmodechange
  15261. End Sub
  15262. '++LotusScript Development Environment:2:2:Postopen:1:12
  15263. Sub Postopen(Source As Notesuidocument)
  15264.      
  15265.      Set ws = New NotesUIWorkSpace
  15266.      Set uidoc = source
  15267.      
  15268.      Call EmailOpen
  15269.      
  15270. End Sub
  15271. '++LotusScript Development Environment:2:2:Querysave:1:12
  15272. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  15273.      
  15274.      Call EmailSave(Continue)
  15275.      
  15276. End Sub
  15277. '++LotusScript Development Environment:2:2:Queryclose:1:12
  15278. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  15279.      
  15280.      Call EmailClose(Continue)
  15281.      
  15282. End Sub
  15283. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  15284. Sub Postmodechange(Source As Notesuidocument)
  15285.      
  15286.      Call EmailModeChange
  15287.      
  15288. End Sub
  15289.     Always hidden: 
  15290. Principal
  15291. CalendarProfile
  15292. Owner
  15293.     1S2S3S7S
  15294. Principal
  15295. Principal
  15296.     0R3S4S6S8S
  15297. FromPerson memo is from.
  15298.     0S0E
  15299.     0S0E
  15300. Encrypt
  15301.     0S0E
  15302. DefaultMailSaveOptions
  15303. $KeepPrivate
  15304. $KeepPrivate
  15305. $KeepPrivate
  15306.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  15307. Path_Info
  15308. Path_Info
  15309. $HideMailHeader
  15310.     0S0E
  15311. Bookmark
  15312. ?_?__
  15313. `!b`1
  15314. 7`^///?
  15315. ?b___
  15316. `bOOO
  15317. `<b!R
  15318. Bookmark
  15319. Bookmark
  15320.     From:    
  15321. Principal
  15322. Principal
  15323. FromDomain
  15324. FromDomain
  15325. FromDomain
  15326. FromDomain
  15327.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  15328. FromName
  15329. Principal
  15330. Principal
  15331.     0RR1S2S9S11S15S
  15332. FromStops
  15333.     0R1S2S6S
  15334. FromName
  15335. FromStops
  15336. FromStops
  15337. FromStops
  15338.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  15339.      on 
  15340. PostedDateh
  15341. PostedDate
  15342.     4S5S10S12S
  15343. tmpDisplayDateTime/date memo was created or mailed.
  15344. ReplyDate
  15345. ReplyTo
  15346. $HideMailHeader
  15347.     2S3S4S5S6S7S9S10S
  15348. Please respond
  15349. ReplyTo
  15350. ReplyTo
  15351. ReplyDate
  15352. ReplyDate
  15353.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  15354. $HideMailHeader
  15355. Principal
  15356. Principal
  15357. Principal
  15358. Principal
  15359. Principal
  15360.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  15361.     Sent by:    
  15362. FromDomain
  15363. FromDomain
  15364. FromDomain
  15365. FromDomain
  15366.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  15367. FromName
  15368.     0RR1S2S6S
  15369. FromStops
  15370.     0R1S2S6S
  15371. FromName
  15372. FromStops
  15373. FromStops
  15374. FromStops
  15375.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  15376. SendTo
  15377. CopyTo
  15378.   cc:  
  15379. CopyTo
  15380.     1S8S13S14S2E17S18S21S28S31S
  15381. MailAddress
  15382. InheritedReplyToh
  15383. InheritedReplyTo
  15384. InheritedReplyTo
  15385. InheritedFrom
  15386.     1S2S8S9S10S11S13S15S
  15387. MailAddress
  15388.     0RR 
  15389. SendTo}
  15390.     0S0E
  15391. SendToList of primary people to send memo.
  15392. CopyTo}
  15393.     0S0E
  15394. CopyToList of people to send a copy of the memo.
  15395. DeliveredDate
  15396. BlindCopyTo
  15397. (bcc: 
  15398. BlindCopyTo
  15399.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpBlindCopyTo
  15400.     bcc:
  15401. BlindCopyTo
  15402.     0S0E
  15403. BlindCopyToList of undisclosed people to send copies of memo.
  15404.     Subject:
  15405. InheritedSubject
  15406. Subject
  15407. Subject
  15408. Topic
  15409. Topic
  15410. Title
  15411. Title
  15412. BriefDescriptionh
  15413. BriefDescription
  15414.     1S2S3S5R10S12R17S19R24S26R31S33R
  15415. Bookmark
  15416. InheritedSubjecth
  15417. InheritedSubject"
  15418.     0RR2S"
  15419. Subject
  15420.     0S0E
  15421. SubjectSubject of memo.
  15422.     Document Link Information:
  15423. InheritedDBTitle
  15424.     1S2S
  15425.     Database:    
  15426. InheritedDBTitle
  15427. InheritedDBTitle
  15428. InheritedSubject
  15429.     1S2S
  15430.     Document:    
  15431. InheritedSubject
  15432. InheritedSubject
  15433. FlowStatus
  15434.     1S2S
  15435.     Workflow status:    
  15436. FlowStatus
  15437. FlowStatus
  15438. DueDateTime
  15439.     1S2S
  15440.     Due date:    
  15441. DueDateTime
  15442. DueDateTime
  15443.       You may open the document by clicking on this link.
  15444. Edit Document
  15445. ForwardK 
  15446.     0S0E
  15447. New Memo.
  15448.     0S0E
  15449. Delete 
  15450.     0S0E
  15451. _Move To Folder...
  15452. Delivery Information...Kz
  15453. DeliveryInfo
  15454. Delivery Information
  15455.     4S5S6S7S8S9S10S12S
  15456. _Forward
  15457. Reply
  15458. Reply
  15459.     0S0E
  15460. Reply With History
  15461. Reply with History
  15462. This document is truncated.
  15463.     4S8S10S13S
  15464. Reply with history
  15465. Address... 
  15466.     0S0E
  15467. PostedDateh
  15468.     5S6S7S8S
  15469. Close
  15470.     0S0E
  15471. PostedDateY
  15472.     0S0E
  15473. Save As Draft
  15474. tmpAction
  15475. SaveAsDraft
  15476.     1S2S3S
  15477. PostedDateh
  15478.     0S0E
  15479. PromptValue
  15480. DefaultMailSaveOptions
  15481. Save when sent
  15482. Do you wish to save a copy of this Memo?
  15483. DefaultMailSaveOptions
  15484.     1S2S5S6S8S14S17S
  15485. SaveOptions
  15486. PromptValue
  15487. SaveOptions
  15488. PromptValue
  15489.     0RR1S2S5S6S9S14S
  15490. tmpAction
  15491. DefaultMailSaveOptions
  15492. Mailing
  15493.     0RR1S2S3S6S7S9S11S
  15494. MailOptions
  15495.     0R1S2S3S
  15496.     0R7S9S
  15497. tmpAction
  15498. SaveOptions
  15499. SendAndFile
  15500.     0RR1S2S3S6S7S9S11S
  15501.     0R7S9S
  15502. PostedDateh
  15503.     5S6S7S8S
  15504. Send And File...
  15505.     4S11S13S19S
  15506.     0RR7S9S
  15507. tmpAction
  15508. DefaultMailSaveOptions
  15509. Mailing
  15510.     0RR1S2S3S6S7S9S11S
  15511. MailOptions
  15512.     0R1S2S3S
  15513.     0R7S9S
  15514. tmpAction
  15515. SendAndFile
  15516.     0RR1S2S3S
  15517.     0R7S9S
  15518. PostedDateh
  15519.     5S6S7S8S
  15520. Delivery Options...K
  15521. DeliveryOptions
  15522. Delivery Options
  15523.     4S8S
  15524. _ViewIcon
  15525. SenderTag
  15526. SenderTag
  15527. SenderTag
  15528. SenderTag
  15529. SenderTag
  15530. SenderTag
  15531. SenderTag
  15532. SenderTag
  15533. SenderTag
  15534. SenderTag
  15535. SenderTag
  15536.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  15537. PostedDateh
  15538.     5S6S7S8S
  15539. Special Options...
  15540. ReplyDate
  15541. ReplyDate
  15542.     1S2S3S
  15543. ReplyTo
  15544. ReplyTo
  15545.     0R1S2S3S
  15546. (Advanced Options)
  15547. Special Options
  15548.     0R6S10S13S15S
  15549. tmpDisplayReplyInfo
  15550. Please respond
  15551. ReplyTo
  15552. ReplyTo
  15553. ReplyDate
  15554. ReplyDate
  15555.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  15556. DueDateTime
  15557. ReplyDate
  15558.     0R1S2S3S
  15559. PostedDateh
  15560.     5S6S7S8S
  15561. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  15562. '++LotusScript Development Environment:2:5:(Forward):0:1
  15563. Declare Sub Click(Source As Button)
  15564. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15565. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15566. Private Sub BindEvents(Byval Objectname_ As String)
  15567.      Static Source As BUTTON
  15568.      Set Source = Bind(Objectname_)
  15569.      On Event Click From Source Call Click
  15570. End Sub
  15571. '++LotusScript Development Environment:2:2:Click:1:12
  15572. Sub Click(Source As Button)
  15573.      Call CreateNewDoc(NEW_MEMO)
  15574. End Sub
  15575. tmpnewdoc
  15576.     1S2S
  15577. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  15578. '++LotusScript Development Environment:2:5:(Forward):0:1
  15579. Declare Sub Click(Source As Button)
  15580. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15581. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15582. Private Sub BindEvents(Byval Objectname_ As String)
  15583.      Static Source As BUTTON
  15584.      Set Source = Bind(Objectname_)
  15585.      On Event Click From Source Call Click
  15586. End Sub
  15587. '++LotusScript Development Environment:2:2:Click:1:12
  15588. Sub Click(Source As Button)
  15589.      Call CreateNewDoc(NEW_CALENDAR)
  15590. End Sub
  15591. tmpnewdoc
  15592.     1S2S
  15593. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  15594. '++LotusScript Development Environment:2:5:(Forward):0:1
  15595. Declare Sub Click(Source As Button)
  15596. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15597. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15598. Private Sub BindEvents(Byval Objectname_ As String)
  15599.      Static Source As BUTTON
  15600.      Set Source = Bind(Objectname_)
  15601.      On Event Click From Source Call Click
  15602. End Sub
  15603. '++LotusScript Development Environment:2:2:Click:1:12
  15604. Sub Click(Source As Button)
  15605.      Call CreateNewDoc(NEW_TASK)
  15606. End Sub
  15607. tmpnewdoc
  15608.     1S2S
  15609. Copy into\New GroupK,
  15610. NewGroup
  15611.     0S0E
  15612. tmpnewdoc
  15613.     1S2S
  15614. _Remove From Folder...
  15615. Categori_zeK
  15616. SSend
  15617. Memo&
  15618. Reply
  15619. Reply
  15620. Trash
  15621.     1S2S8S12S14S
  15622. /wCommand?OpenAgent&ToTrash=
  15623. &From="
  15624.     0R1S2S3S4S11S13S15S16S
  15625. Path_Info
  15626. Path_Info
  15627.     0R1S2S6S10S11S15S
  15628. view1
  15629.     0R1S2S3S10S14S18S21S
  15630. view2
  15631. view1
  15632. view1
  15633. view1
  15634.     0R1S2S3S10S14S18S21S
  15635. path"
  15636. view2
  15637.     0RR3S4S5S6S7S8S
  15638.     1S2S8S12S14S
  15639. /wFolders?OpenForm&UNID=
  15640. &View="
  15641.     0R1S2S3S4S11S13S15S16S
  15642. Path_Info
  15643. Path_Info
  15644.     0R1S2S6S10S11S15S
  15645. view1
  15646.     0R1S2S3S10S14S18S21S
  15647. view2
  15648. view1
  15649. view1
  15650. view1
  15651.     0R1S2S3S10S14S18S21S
  15652. path"
  15653. view2
  15654.     0RR3S4S5S6S7S8S
  15655. In Box*
  15656. ($InBox)
  15657. Calendar
  15658.     1S2S8S12S14S
  15659. path"
  15660. /($Calendar)?OpenView&Grid=
  15661. CalendarProfile
  15662. wCalGridType
  15663.     0R3S4S5S6S7S8S12S
  15664. Meetings.
  15665. ($Meetings)
  15666. To Do
  15667. ($ToDo)
  15668. All Views
  15669. O=Lotus Notes
  15670. O=Lotus Notes
  15671. PURSAFO
  15672. |.:#U
  15673. O=Lotus Notes
  15674. CN=Lotus Notes Template Development/O=Lotus Notes
  15675. PURSAFO
  15676. Fde!f^^
  15677. $$FormPostOpenAction
  15678. ExpireDate
  15679. ReplyDate
  15680. $TypeIcon
  15681. ReplyNumber
  15682. ComposedDate
  15683. DueDate
  15684. $TITLE
  15685. $AUTOLAUNCH
  15686. $INFO
  15687. $WINDOWTITLE
  15688. $Script
  15689. $$Script_O
  15690. $$ScriptName
  15691. $$FormScript
  15692. $$$FormScript_O
  15693. DueDateTime
  15694. $BODY
  15695. $ACTIONS
  15696. $SCRIPTOBJ_16
  15697. $SCRIPTOBJ_17
  15698. $SCRIPTOBJ_18
  15699. oD$LeftToDo$TITLE$AssistType$AssistLastRun$AssistDocCount$AssistFlags$AssistTrigger$AssistInfo$AssistQuery$AssistAction$AssistAction_Ex$PublicAccess$Flags$AssistRunInfo$UpdatedBy$AssistVersion$Signature$Formula$TYPE$Operation$Scan$DBScript$DBScript_O$INFO$Fonts$BODY$FlagsNoRefresh$TemplateModTime$TemplateServerName$TemplateFileNameIconBitmap$SCRIPTOBJ_11$Index$FormulaClass$Collation$VIEWFORMAT$Comment$ACTIONS$SCRIPTOBJ_10$ViewGlobalScript_O$$ScriptName$$FormPostOpenAction$$XMB$Licensee$TypeIconExpireDateReplyDateComposedDate$WINDOWTITLE$Script$$Script_O$$FormScript$$$FormScript_OFromSignEncryptDefaultMailSaveOptions$KeepPrivateHeaderSendToCopyToBlindCopyToSubjectBodyFooter$SCRIPTOBJ_18$SCRIPTOBJ_19$SCRIPTOBJ_20DeleteOptionsArchiveLocationArchiveServerArchivePathCopyOptionsDocLife$ManualArchivers_OObsoleteLifeDocumentLife$MessageTypeLogCountLogTotalArchiveDateArchiveTrailerCategories$Header$AlarmOffesttmpAlarmOffest$AlarmAlarmTime$AlarmTimeAlarmOnAlarmOnTime$AlarmOffset$FormPublicAccesstmpAlarmOnDatetmpBeforeOrAftertmpAlarmOffset$AlarmDescriptiontmpAlarmOfftmpAlarmOnTimeSenderTagCompletedOnEndDateCalendarDate_Time___StartCalendarDate_Time___EndCalendarDatesCalendarDateRepeatDatesCalendarDateTimeEndDateTime$NoPurgeStartTimeEndTimeStartEndTimeStartDateTime$SCRIPTOBJ_23DurationStartDateReminderTimeTimeRange_ViewIcon$SCRIPTOBJ_6$SCRIPTOBJ_8$SCRIPTOBJ_9$SCRIPTOBJ_13$SCRIPTOBJ_21$SCRIPTOBJ_22tmpResourcestmpChairpersontmpSentByImportanceDeliveryReporttmpSenderTagDeliveryPriorityReturnReceiptLogoOriginatorOriginalRouteListRemainingRouteListNotifyorigDomainReplyToSMTPEncodingMailFormatRepeatEndRepeatStartOrgRepeatRepeatAdjust_CRepeatAdjust_MDRepeatAdjust_MPRepeatAdjust_WRepeatUnitRepeatInterval_MDMPRepeatStartDateRepeatHowRepeatUntilRepeatWeekendsRepeatForUnitRepeatForRepeatInterval_YDRepeatInterval_DRepeatInterval_WPhoneCallerCompanyNamePhoneNumberFAXNumberPhoneReason$Phone_OtmpPostedDateInfotmpFromInfo$$FirstDayOut1$FirstDayOut1_O$$FirstDayBack1$FirstDayBack1_O$$FirstDayOut$FirstDayOut_O$$FirstDayBack$FirstDayBack_O$$GeneralMessage$GeneralMessage_OAlreadyNotifiedSenderExcludeFromViewFirstDayOutFirstDayBackGeneralSubjectDaysOutGeneralMessageSpecialPeopleSpecialSubjectSpecialMessageIgnorePeopledateFirstDayOutdateFirstDayBacktmpUserActionsResponseTypeCommentstmpPeopleListtmpPeopleSelectedIntendedRecipientChangeWhichArchiveExpiredExpiredLifeArchiveInactiveArchiveLogIncludeDoclinksProfileEditorsDestinationProductDepartureDateReturnDateAgreementForwardedFromForwardedDate$AUTOLAUNCHSaveOptionsLetterHeadChoicesOwnerPublicReadReadCalendarPublicWriteWriteCalendarReadMailWriteMailEditMailDeleteMailDelegateAlertAssigneeAlertSelfAssignedDueDateTimeAssignedToSundayStart_1SundayEnd_1SundayStart_2SundayEnd_2SundayStart_3SundayEnd_3SundayStart_4SundayEnd_4SundayStart_5SundayEnd_5SundayStart_6SundayEnd_6TaskLeadTimeSlotStartTimeSlotEndTimeSlotIntervalSundayStartSundayEndMondayStartMondayEndTuesdayStartTuesdayEndWednesdayStartWednesdayEndThursdayStartThursdayEndFridayStartFridayEndSaturdayStartSaturdayEnd$SundayTimes$MondayTimes$TuesdayTimes$WednesdayTimes$ThursdayTimes$FridayTimes$SaturdayTimes$1Times$2Times$3Times$4Times$5Times$6Times$7Times$$FormAction2$$$Times1$$Times1_ODefaultDurationEnableAlarmsAutoSetAlarmsSetAlarmAppointmentAppointmentLeadSetAlarmReminderReminderLeadSetAlarmEventEventLeadSetAlarmAnniversaryAnniversaryLeadAllowBusyAccessSunday$Times1Monday$Times2Tuesday$Times3Wednesday$Times4Thursday$Times5Friday$Times6Saturday$Times7AutoProcessMeetingsAutoRemoveFromInboxMeetingsPeopleCalEntryTypeCalEntryHideConflictMeetingConflictAnnivConflictEvent$BusyName$AvailableDaystmpStartDatetmpEndDateNewDateNewTimeRangeReasonNewRoomStatusUpdateFormtmpNewStarttmpNewEnd$SCRIPTOBJ_4$SCRIPTOBJ_5$SCRIPTOBJ_14$SCRIPTOBJ_15AppointmentTypeBookFreeTimeOrgConfidentialBroadcast$ExpandGroups$SCRIPTOBJ_7$SCRIPTOBJ_24$SCRIPTOBJ_25ReplyNumberInheritedSendToInheritedReplyToInheritedFromInheritedFromDomain$$XMB_2$$XMB_3$OLEObjField$OLEObjRichTextFieldOLEBody$ACLDigestDeliveryDatePath_InfoDueDateInheritedDBTitleInheritedSubjectFlowStatus$SCRIPTOBJ_16$SCRIPTOBJ_17$Collation1$Collation2$SCRIPTOBJ_12$ViewGlobalScript$TABLEFORMAT$CalendarFormat$ViewScript$ViewScript_O$FormFormula$Name$Author$FolderObject$FolderIDTable$ScriptLib$ScriptLib_O
  15700. DeliveredDate
  15701. PostedDate
  15702. PostedDateY
  15703. IsMailStationeryh
  15704. _ViewIcon
  15705. _ViewIcon
  15706. Importance
  15707. Importance
  15708. _ViewIcon
  15709. _ViewIcon
  15710. $TypeIcon
  15711.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  15712. SentBy
  15713. Principal
  15714. Principal
  15715.     1S2S5S6S8S10S
  15716. Attendees
  15717. RequiredAttendees
  15718. OptionalAttendees
  15719.     0R1S2S5S6S
  15720. DeliveredDate
  15721. SentBy
  15722. Attendees
  15723. Attendees
  15724. SendTo
  15725. SentBy
  15726. SendTo
  15727.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  15728.     0R1S2S8S
  15729.     0R1S2S15S16S
  15730.     0R1S2S5S6S8S14S18S
  15731.     0R1S2S5S6S8S14S18S
  15732. Person
  15733. X400FreeForm^
  15734.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  15735. Person2
  15736. Person
  15737. Person
  15738. Person
  15739. Person
  15740.     0R1S2S12S13S22S34S
  15741. Delivery Report
  15742. NonDelivery Report
  15743. Trace Report
  15744. Mail Router
  15745. Person2
  15746.     0R3S4S5S6S7S8S10S12S
  15747. DeliveredDate
  15748. DeliveredDate
  15749. PostedDate
  15750. PostedDate
  15751.     3S4S6S8S9S10S12S14S
  15752. $ContentIconh
  15753. $ContentIcon
  15754. Froma
  15755.  pager 
  15756. SendToa
  15757.  pager 
  15758. message.wav
  15759. vmsg_hdr.wav
  15760. .wavG
  15761. .tifG
  15762. $ContentIconh
  15763. $ContentIcon
  15764.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  15765. NonDelivery Report
  15766. DELIVERY FAILURE: 
  15767. FailureReason
  15768. PhoneCaller
  15769. Phone Call: 
  15770. PhoneCaller
  15771. Delivery Report
  15772. DELIVERED: 
  15773. Subject
  15774. Return Receipt
  15775. RECEIVED: 
  15776. Subject
  15777. Subject
  15778.     3S4S6S7S8S10S15S16S17S19S20S21S23S24S25S27S28S29S31S32S33S35S
  15779. $27$39$13$32Subject$14$Conflict$REF
  15780. HiddenDocument
  15781. $MessageType
  15782. IsMailStationeryY
  15783.     L1S2S3S4S5S8S2E9S
  15784. DeliveredDate
  15785. PostedDate
  15786. PostedDateY
  15787. IsMailStationeryh
  15788. _ViewIcon
  15789. _ViewIcon
  15790. Importance
  15791. Importance
  15792. _ViewIcon
  15793. _ViewIcon
  15794. $TypeIcon
  15795.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  15796. $39Who
  15797. SentBy
  15798. Principal
  15799. Principal
  15800.     1S2S5S6S8S10S
  15801. Attendees
  15802. RequiredAttendees
  15803. OptionalAttendees
  15804.     0R1S2S5S6S
  15805. DeliveredDate
  15806. SentBy
  15807. Attendees
  15808. Attendees
  15809. SendTo
  15810. SentBy
  15811. SendTo
  15812.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  15813.     0R1S2S8S
  15814.     0R1S2S15S16S
  15815.     0R1S2S5S6S8S14S18S
  15816.     0R1S2S5S6S8S14S18S
  15817. Person
  15818. X400FreeForm^
  15819.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  15820. Person2
  15821. Person
  15822. Person
  15823. Person
  15824. Person
  15825.     0R1S2S12S13S22S34S
  15826. Delivery Report
  15827. NonDelivery Report
  15828. Trace Report
  15829. Mail Router
  15830. Person2
  15831.     0R3S4S5S6S7S8S10S12S
  15832. $13Date
  15833. DeliveredDate
  15834. DeliveredDate
  15835. PostedDate
  15836. PostedDate
  15837.     3S4S6S8S9S10S12S14S$32F
  15838. $ContentIconh
  15839. $ContentIcon
  15840. Froma
  15841.  pager 
  15842. SendToa
  15843.  pager 
  15844. message.wav
  15845. vmsg_hdr.wav
  15846. .wavG
  15847. .tifG
  15848. $ContentIconh
  15849. $ContentIcon
  15850.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105SSubject$14Subject~
  15851. NonDelivery Report
  15852. DELIVERY FAILURE: 
  15853. FailureReason
  15854. PhoneCaller
  15855. Phone Call: 
  15856. PhoneCaller
  15857. Delivery Report
  15858. DELIVERED: 
  15859. Subject
  15860. Return Receipt
  15861. RECEIVED: 
  15862. Subject
  15863. Subject
  15864.     3S4S6S7S8S10S15S16S17S19S20S21S23S24S25S27S28S29S31S32S33S35S&
  15865. Categori_ze
  15866. New Memo.
  15867.     0S0E
  15868. Delete 
  15869.     0S0E
  15870. Move to Folder...
  15871.     0S0E
  15872. _Edit Document
  15873. _Forward
  15874. Reply
  15875. Reply
  15876.     0S0E
  15877. Reply With History@
  15878. Reply with history
  15879.     0S0E
  15880. _Move to Folder...
  15881. _Remove from Folder...
  15882. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  15883. '++LotusScript Development Environment:2:5:(Forward):0:1
  15884. Declare Sub Click(Source As Button)
  15885. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15886. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15887. Private Sub BindEvents(Byval Objectname_ As String)
  15888.      Static Source As BUTTON
  15889.      Set Source = Bind(Objectname_)
  15890.      On Event Click From Source Call Click
  15891. End Sub
  15892. '++LotusScript Development Environment:2:2:Click:1:12
  15893. Sub Click(Source As Button)
  15894.      Call CreateNewDoc(NEW_MEMO)
  15895. End Sub
  15896. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  15897. '++LotusScript Development Environment:2:5:(Forward):0:1
  15898. Declare Sub Click(Source As Button)
  15899. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15900. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15901. Private Sub BindEvents(Byval Objectname_ As String)
  15902.      Static Source As BUTTON
  15903.      Set Source = Bind(Objectname_)
  15904.      On Event Click From Source Call Click
  15905. End Sub
  15906. '++LotusScript Development Environment:2:2:Click:1:12
  15907. Sub Click(Source As Button)
  15908.      Call CreateNewDoc(NEW_CALENDAR)
  15909. End Sub
  15910. tmpnewdoc
  15911.     1S2S
  15912. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  15913. '++LotusScript Development Environment:2:5:(Forward):0:1
  15914. Declare Sub Click(Source As Button)
  15915. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15916. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15917. Private Sub BindEvents(Byval Objectname_ As String)
  15918.      Static Source As BUTTON
  15919.      Set Source = Bind(Objectname_)
  15920.      On Event Click From Source Call Click
  15921. End Sub
  15922. '++LotusScript Development Environment:2:2:Click:1:12
  15923. Sub Click(Source As Button)
  15924.      Call CreateNewDoc(NEW_TASK)
  15925. End Sub
  15926. tmpnewdoc
  15927.     1S2S
  15928. Copy into\New GroupS,
  15929. NewGroup
  15930.     0S0E
  15931. tmpnewdoc
  15932.     1S2S
  15933. '++LotusScript Development Environment:2:5:(Options):0:74
  15934. Option Public
  15935. Use "DocumentConversions"
  15936. '++LotusScript Development Environment:2:5:(Forward):0:1
  15937. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15938. O=Lotus Notes
  15939. O=Lotus Notes
  15940. PURSAFO
  15941. |.:#U
  15942. O=Lotus Notes
  15943. CN=Lotus Notes Template Development/O=Lotus Notes
  15944. PURSAFO
  15945. Fde!f^^
  15946. $TITLE
  15947. $Index
  15948. $Formula
  15949. $FormulaClass
  15950. $VIEWFORMAT
  15951. $Comment
  15952. $ACTIONS
  15953. $SCRIPTOBJ_11
  15954. $SCRIPTOBJ_12
  15955. $SCRIPTOBJ_13
  15956. $ViewGlobalScript
  15957. $ViewGlobalScript_O
  15958. DeliveredDate
  15959. PostedDate
  15960. PostedDateY
  15961. IsMailStationeryh
  15962. _ViewIcon
  15963. _ViewIcon
  15964. Importance
  15965. Importance
  15966. _ViewIcon
  15967. _ViewIcon
  15968. $TypeIcon
  15969.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  15970. SentBy
  15971. Principal
  15972. Principal
  15973.     1S2S5S6S8S10S
  15974. Attendees
  15975. RequiredAttendees
  15976. OptionalAttendees
  15977.     0R1S2S5S6S
  15978. DeliveredDate
  15979. SentBy
  15980. Attendees
  15981. Attendees
  15982. SendTo
  15983. SentBy
  15984. SendTo
  15985.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  15986.     0R1S2S8S
  15987.     0R1S2S15S16S
  15988.     0R1S2S5S6S8S14S18S
  15989.     0R1S2S5S6S8S14S18S
  15990. Person
  15991. X400FreeForm^
  15992.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  15993. Person2
  15994. Person
  15995. Person
  15996. Person
  15997. Person
  15998.     0R1S2S12S13S22S34S
  15999. Delivery Report
  16000. NonDelivery Report
  16001. Trace Report
  16002. Mail Router
  16003. Person2
  16004.     0R3S4S5S6S7S8S10S12S
  16005. DeliveredDate
  16006. DeliveredDate
  16007. PostedDate
  16008. PostedDate
  16009.     3S4S6S8S9S10S12S14S
  16010. $ContentIconh
  16011. $ContentIcon
  16012. Froma
  16013.  pager 
  16014. SendToa
  16015.  pager 
  16016. message.wav
  16017. vmsg_hdr.wav
  16018. .wavG
  16019. .tifG
  16020. $ContentIconh
  16021. $ContentIcon
  16022.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  16023. NonDelivery Report
  16024. DELIVERY FAILURE: 
  16025. FailureReason
  16026. Delivery Report
  16027. DELIVERED: 
  16028. Subject
  16029. Return Receipt
  16030. RECEIVED: 
  16031. Subject
  16032. ReturnNonReceipt
  16033. NOT RECEIVED: 
  16034. Subject
  16035. Subject
  16036.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S
  16037. $93$104$68$92$74$Conflict
  16038. DeliveredDate
  16039. PostedDate
  16040. PostedDateY
  16041. IsMailStationeryh
  16042. _ViewIcon
  16043. _ViewIcon
  16044. Importance
  16045. Importance
  16046. _ViewIcon
  16047. _ViewIcon
  16048. $TypeIcon
  16049.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  16050. $104Who
  16051. SentBy
  16052. Principal
  16053. Principal
  16054.     1S2S5S6S8S10S
  16055. Attendees
  16056. RequiredAttendees
  16057. OptionalAttendees
  16058.     0R1S2S5S6S
  16059. DeliveredDate
  16060. SentBy
  16061. Attendees
  16062. Attendees
  16063. SendTo
  16064. SentBy
  16065. SendTo
  16066.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  16067.     0R1S2S8S
  16068.     0R1S2S15S16S
  16069.     0R1S2S5S6S8S14S18S
  16070.     0R1S2S5S6S8S14S18S
  16071. Person
  16072. X400FreeForm^
  16073.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  16074. Person2
  16075. Person
  16076. Person
  16077. Person
  16078. Person
  16079.     0R1S2S12S13S22S34S
  16080. Delivery Report
  16081. NonDelivery Report
  16082. Trace Report
  16083. Mail Router
  16084. Person2
  16085.     0R3S4S5S6S7S8S10S12S
  16086. $68Date
  16087. DeliveredDate
  16088. DeliveredDate
  16089. PostedDate
  16090. PostedDate
  16091.     3S4S6S8S9S10S12S14S$92F
  16092. $ContentIconh
  16093. $ContentIcon
  16094. Froma
  16095.  pager 
  16096. SendToa
  16097.  pager 
  16098. message.wav
  16099. vmsg_hdr.wav
  16100. .wavG
  16101. .tifG
  16102. $ContentIconh
  16103. $ContentIcon
  16104.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$74Subject
  16105. NonDelivery Report
  16106. DELIVERY FAILURE: 
  16107. FailureReason
  16108. Delivery Report
  16109. DELIVERED: 
  16110. Subject
  16111. Return Receipt
  16112. RECEIVED: 
  16113. Subject
  16114. ReturnNonReceipt
  16115. NOT RECEIVED: 
  16116. Subject
  16117. Subject
  16118.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S&
  16119. New Memo.
  16120.     0S0E
  16121. Delete 
  16122.     0S0E
  16123. Move To Folder...r 
  16124.     0S0E
  16125. _Forward
  16126. Reply
  16127. Reply
  16128.     0S0E
  16129. Reply With History@
  16130. Reply with history
  16131.     0S0E
  16132. Categori_zer
  16133. _Edit Document
  16134. Send    
  16135. Resend
  16136. NonDelivery Report
  16137. Not a Delivery Failure Report
  16138. You cannot Resend a message unless it is a Delivery Failure Report.
  16139.     6S12S17S23S
  16140. _Move To Folder...
  16141. _Remove From Folder...
  16142. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  16143. '++LotusScript Development Environment:2:5:(Forward):0:1
  16144. Declare Sub Click(Source As Button)
  16145. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16146. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16147. Private Sub BindEvents(Byval Objectname_ As String)
  16148.      Static Source As BUTTON
  16149.      Set Source = Bind(Objectname_)
  16150.      On Event Click From Source Call Click
  16151. End Sub
  16152. '++LotusScript Development Environment:2:2:Click:1:12
  16153. Sub Click(Source As Button)
  16154.      Call CreateNewDoc(NEW_MEMO)
  16155. End Sub
  16156. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  16157. '++LotusScript Development Environment:2:5:(Forward):0:1
  16158. Declare Sub Click(Source As Button)
  16159. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16160. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16161. Private Sub BindEvents(Byval Objectname_ As String)
  16162.      Static Source As BUTTON
  16163.      Set Source = Bind(Objectname_)
  16164.      On Event Click From Source Call Click
  16165. End Sub
  16166. '++LotusScript Development Environment:2:2:Click:1:12
  16167. Sub Click(Source As Button)
  16168.      Call CreateNewDoc(NEW_CALENDAR)
  16169. End Sub
  16170. tmpnewdoc
  16171.     1S2S
  16172. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  16173. '++LotusScript Development Environment:2:5:(Forward):0:1
  16174. Declare Sub Click(Source As Button)
  16175. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16176. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16177. Private Sub BindEvents(Byval Objectname_ As String)
  16178.      Static Source As BUTTON
  16179.      Set Source = Bind(Objectname_)
  16180.      On Event Click From Source Call Click
  16181. End Sub
  16182. '++LotusScript Development Environment:2:2:Click:1:12
  16183. Sub Click(Source As Button)
  16184.      Call CreateNewDoc(NEW_TASK)
  16185. End Sub
  16186. tmpnewdoc
  16187.     1S2S
  16188. Copy into\New Group
  16189. NewGroup
  16190.     0S0E
  16191. tmpnewdoc
  16192.     1S2S
  16193. '++LotusScript Development Environment:2:5:(Options):0:74
  16194. Option Public
  16195. Use "DocumentConversions"
  16196. '++LotusScript Development Environment:2:5:(Forward):0:1
  16197. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16198. O=Lotus Notes
  16199. O=Lotus Notes
  16200. PURSAFO
  16201. |.:#U
  16202. O=Lotus Notes
  16203. CN=Lotus Notes Template Development/O=Lotus Notes
  16204. PURSAFO
  16205. Fde!f^^
  16206. $TYPE
  16207. $TABLEFORMAT
  16208. $TITLE
  16209. $Index
  16210. $Formula
  16211. $FormulaClass
  16212. $VIEWFORMAT
  16213. $Comment
  16214. $ACTIONS
  16215. $SCRIPTOBJ_12
  16216. $SCRIPTOBJ_13
  16217. $SCRIPTOBJ_14
  16218. $ViewGlobalScript
  16219. $ViewGlobalScript_O
  16220. StartTime
  16221. CalendarDateTimeL
  16222.     1S2S
  16223. DateList
  16224. CalendarDateTimeV
  16225. EndDateTime
  16226.     0R1S2S10S11S12S13S
  16227. AppointmentType
  16228. CalendarDateTime
  16229. DateList
  16230. StartTime
  16231.     0R3S4S5S6S7S8S9S10S12S14S20S21S22S23S
  16232. AppointmentType
  16233. EndDateTime
  16234. StartDateTime
  16235.     3S4S6S8S10S11S13S14S16S
  16236. section
  16237. OrgTable
  16238.     1S2S6S
  16239. section
  16240. section
  16241. section
  16242.     0R3S4S6RS5E8R9S10S12RS5E14R15S16S18RS5E20R
  16243. AppointmentType
  16244. StartDateTime
  16245. StartDateTime
  16246. StartDateTime
  16247. StartDateTime
  16248. -All Day-
  16249.     3S4S5S6S7S8S10RS4E17RS8E24S29S32RS5E35R
  16250. Subject
  16251. -No Subject-
  16252. Subject
  16253.     3S4S6S
  16254. $134$135$126$143_ViewIcon$141$Conflict
  16255. CalendarDateTimeh
  16256. $134t
  16257. StartTime
  16258. CalendarDateTimeL
  16259.     1S2S
  16260. DateList
  16261. CalendarDateTimeV
  16262. EndDateTime
  16263.     0R1S2S10S11S12S13S
  16264. AppointmentType
  16265. CalendarDateTime
  16266. DateList
  16267. StartTime
  16268.     0R3S4S5S6S7S8S9S10S12S14S20S21S22S23S$135
  16269. AppointmentType
  16270. EndDateTime
  16271. StartDateTime
  16272.     3S4S6S8S10S11S13S14S16S$126
  16273. section
  16274. OrgTable
  16275.     1S2S6S
  16276. section
  16277. section
  16278. section
  16279.     0R3S4S6RS5E8R9S10S12RS5E14R15S16S18RS5E20R
  16280. $143Time
  16281. AppointmentType
  16282. StartDateTime
  16283. StartDateTime
  16284. StartDateTime
  16285. StartDateTime
  16286. -All Day-
  16287.     3S4S5S6S7S8S10RS4E17RS8E24S29S32RS5E35R_ViewIcon$141DescriptionZ
  16288. Subject
  16289. -No Subject-
  16290. Subject
  16291.     3S4S6S
  16292. _Forward
  16293. _Edit Document
  16294. New Entry
  16295. Appointment
  16296.     0S0E
  16297. Go To TodayK$
  16298.     0S0E
  16299. Two Days$
  16300. One Week$
  16301. Two Weeks
  16302. One Month
  16303. _Move to Folder...    
  16304. _Remove from Folder...
  16305. Categori_zeK
  16306. Send Docu_ment
  16307. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  16308. '++LotusScript Development Environment:2:5:(Forward):0:1
  16309. Declare Sub Click(Source As Button)
  16310. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16311. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16312. Private Sub BindEvents(Byval Objectname_ As String)
  16313.      Static Source As BUTTON
  16314.      Set Source = Bind(Objectname_)
  16315.      On Event Click From Source Call Click
  16316. End Sub
  16317. '++LotusScript Development Environment:2:2:Click:1:12
  16318. Sub Click(Source As Button)
  16319.      Call CreateNewDoc(NEW_MEMO)
  16320. End Sub
  16321. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  16322. '++LotusScript Development Environment:2:5:(Forward):0:1
  16323. Declare Sub Click(Source As Button)
  16324. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16325. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16326. Private Sub BindEvents(Byval Objectname_ As String)
  16327.      Static Source As BUTTON
  16328.      Set Source = Bind(Objectname_)
  16329.      On Event Click From Source Call Click
  16330. End Sub
  16331. '++LotusScript Development Environment:2:2:Click:1:12
  16332. Sub Click(Source As Button)
  16333.      Call CreateNewDoc(NEW_CALENDAR)
  16334. End Sub
  16335. tmpnewdoc
  16336.     1S2S
  16337. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  16338. '++LotusScript Development Environment:2:5:(Forward):0:1
  16339. Declare Sub Click(Source As Button)
  16340. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16341. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16342. Private Sub BindEvents(Byval Objectname_ As String)
  16343.      Static Source As BUTTON
  16344.      Set Source = Bind(Objectname_)
  16345.      On Event Click From Source Call Click
  16346. End Sub
  16347. '++LotusScript Development Environment:2:2:Click:1:12
  16348. Sub Click(Source As Button)
  16349.      Call CreateNewDoc(NEW_TASK)
  16350. End Sub
  16351. tmpnewdoc
  16352.     1S2S
  16353. Copy into\New GroupK,
  16354. NewGroup
  16355.     0S0E
  16356. tmpnewdoc
  16357.     1S2S
  16358. '++LotusScript Development Environment:2:5:(Options):0:74
  16359. Option Public
  16360. Use "AppointmentProcessing"
  16361. Use "RepeatProcessing"
  16362. Use "DocumentConversions"
  16363. '++LotusScript Development Environment:2:5:(Forward):0:1
  16364. Declare Sub PutTask
  16365. Declare Sub SetViewObjectVariables(source)
  16366. Declare Sub PutCalendarEntry(Action)
  16367. Declare Sub PutAppointment(Action)
  16368. '++LotusScript Development Environment:2:5:(Declarations):0:10
  16369. Dim uiview As NotesUIView
  16370. Dim startdt As NotesDateTime
  16371. Dim enddt As NotesDateTime
  16372. '++LotusScript Development Environment:2:2:PutTask:1:8
  16373. Sub PutTask
  16374.      
  16375. 'This subroutine is used both for drag/dropping and for pasting
  16376.      Dim timeitem As NotesItem
  16377.      Dim timedt As New NotesDateTime("")
  16378.      
  16379.      On Error Goto ErrorRoutine
  16380.      
  16381.      Set timeitem = note.GetFirstItem("OriginalStartDate")
  16382.      Set datedt = New NotesDateTime(uiview.CalendarDateTime)
  16383.      Set timedt = timeitem.DateTimeValue
  16384.      Set date2 = New NotesDateTime(datedt.DateOnly & " " & timedt.TimeOnly)                         
  16385. 'date1 is the original CalendarDateTime and date2 is the new one     
  16386.      TotalDiff = date2.TimeDifference(date1)
  16387. 'break the difference down to a number that fits in the integer datatype                              
  16388.      DayDiff = Fix(TotalDiff / 86400)
  16389.      SecDiff = TotalDiff Mod 86400
  16390.      MinDiff = Fix(SecDiff / 60)
  16391.      SecDiff = SecDiff Mod 60
  16392. 'If you are changing the date     
  16393.      If (date1.LSLocalTime <> date2.LSLocalTime) Then
  16394.           If note.StartDateTime(0) = "" Then
  16395.                Set note.DueDateTime = date2
  16396.                note.CalendarDateTime = note.DueDateTime
  16397.           Elseif note.DueDateTime(0) = "" Then
  16398.                Set note.StartDateTime = date2
  16399.                note.CalendarDateTime = note.StartDateTime     
  16400.           Else
  16401.                Set note.StartDateTime = date2
  16402.                note.CalendarDateTime = note.StartDateTime
  16403.                Set dateitem = New NotesDateTime(note.DueDateTime(0))
  16404.                dateitem.AdjustDay(DayDiff)
  16405.                dateitem.AdjustMinute(MinDiff)
  16406.                dateitem.AdjustSecond(SecDiff)
  16407.                Set note.DueDateTime = dateitem   
  16408.           End If
  16409.           Call MarkTempFields(note)
  16410.           Call note.Save(True, True, True)
  16411.      End If
  16412.      
  16413.      Exit Sub
  16414.      
  16415. ErrorRoutine:
  16416.      Messagebox Error & " (PutTask)"
  16417.      Exit Sub
  16418. End Sub
  16419. '++LotusScript Development Environment:2:2:SetViewObjectVariables:1:8
  16420. Sub SetViewObjectVariables(source)
  16421.      
  16422.      Set uiview = source
  16423.      Set session = New NotesSession   
  16424.      Set ws = New NotesUIWorkspace
  16425.      Set db = session.CurrentDatabase
  16426.      
  16427. End Sub
  16428. '++LotusScript Development Environment:2:2:PutCalendarEntry:1:8
  16429. Sub PutCalendarEntry(Action)
  16430.      
  16431. 'This subroutine is used both for drag/dropping and for pasting
  16432.      
  16433.      On Error Goto ErrorRoutine
  16434.      
  16435.      CheckAlarms = False
  16436.      Set documents = uiview.documents
  16437.      
  16438.      Set note = documents.GetFirstDocument
  16439.      While Not(note Is Nothing)
  16440.           note.OriginalStartDate = note.CalendarDateTime          
  16441.           Set date1 = New NotesDateTime(note.OriginalStartDate(0))          
  16442.           Select Case note.Form(0)
  16443.           Case "Task"
  16444.                PutTask          
  16445.           Case "Appointment"
  16446.                PutAppointment(Action)
  16447.           Case Else
  16448.                'we only support this for Tasks and Appointments
  16449.           End Select
  16450.           Set note = documents.GetNextDocument(note)
  16451.      Wend
  16452.      
  16453.      If CheckAlarms Then ws.CheckAlarms
  16454.      ws.ViewRefresh
  16455.      
  16456. %REM     
  16457. 'we need to de-reference these object variables, and we don't care if any of the delete's fail     
  16458.      On Error Resume Next
  16459.      Delete documents
  16460.      Delete parent     
  16461.      Delete note
  16462.      Delete notice
  16463.      Delete date1
  16464.      Delete date2
  16465. %END REM
  16466.      
  16467.      Exit Sub
  16468.      
  16469. ErrorRoutine:
  16470.      Messagebox Error & " (PutCalendarEntry)"
  16471.      Exit Sub
  16472.      
  16473. End Sub
  16474. '++LotusScript Development Environment:2:2:PutAppointment:1:8
  16475. Sub PutAppointment(Action)
  16476.      Dim timeitem As NotesItem
  16477.      Dim timedt As New NotesDateTime("")
  16478.      
  16479.      On Error Goto ErrorRoutine
  16480.      
  16481.      Set notice = New NotesDocument(db)          
  16482.      If Action = "Drop" And note.HasItem("OrgRepeat") Then Call SaveOriginalValues
  16483.      If note.HasItem("$Alarm") Then CheckAlarms = True
  16484. 'see if the document was dropped onto a date but no time, or if this is an anniverary/event          
  16485.      If (Hour(uiview.CalendarDateTime) = 0) Or (note.AppointmentType(0) = "1") Or (note.AppointmentType(0) = "2") Then
  16486. 'since this was dropped on a date with no time, keep the same time               
  16487.           Set datedt = New NotesDateTime(uiview.CalendarDateTime)
  16488.           Set timeitem = note.GetFirstItem("OriginalStartDate")
  16489.           Set timedt = timeitem.DateTimeValue             
  16490.           Set date2 = New NotesDateTime(datedt.DateOnly & " " & timedt.TimeOnly)                         
  16491.      Else
  16492.           Set date2 = New NotesDateTime(uiview.CalendarDateTime)               
  16493.      End If
  16494.      TotalDiff = date2.TimeDifference(date1)
  16495. 'break the difference down to a number that fits in the integer datatype                              
  16496.      DayDiff = Fix(TotalDiff / 86400)
  16497.      SecDiff = TotalDiff Mod 86400
  16498.      MinDiff = Fix(SecDiff / 60)
  16499.      SecDiff = SecDiff Mod 60
  16500. 'If you are changing the date     
  16501.      If (date1.LSLocalTime <> date2.LSLocalTime) Then
  16502.           If (note.Chair(0) <> Owner) Then
  16503. 'we are not the creator of this entry -> make sure the user wants to change the date/time of this meeting                    
  16504.                If (Messagebox("You are not the originator of this entry (" & note.Subject(0) & "). Are you sure you want to change the date/time?",36,"Warning") = 6) Then
  16505.                     Set note.StartDateTime = date2
  16506.                     note.StartDate = Datevalue(note.StartDateTime(0))
  16507.                     note.CalendarDateTime = note.StartDateTime
  16508.                     Set dateitem = New NotesDateTime(note.EndDateTime(0))
  16509.                     dateitem.AdjustDay(DayDiff)
  16510.                     dateitem.AdjustMinute(MinDiff)
  16511.                     dateitem.AdjustSecond(SecDiff)
  16512.                     Set note.EndDateTime = dateitem
  16513.                     If note.HasItem("$AlarmTime") Then
  16514.                          AlarmTime = note.GetItemValue("$AlarmTime")
  16515.                          Set dateitem = New NotesDateTime(AlarmTime(0))
  16516.                          dateitem.AdjustDay(DayDiff)
  16517.                          dateitem.AdjustMinute(MinDiff)
  16518.                          dateitem.AdjustSecond(SecDiff)
  16519.                          Set item = note.GetFirstItem("$AlarmTime")
  16520.                          Set item.DateTimeValue = dateitem
  16521.                     End If
  16522.                     If (note.AppointmentType(0) = "4") Then
  16523.                          note.ReminderTime = note.StartDateTime(0)
  16524.                     Else
  16525.                          Set trdr = session.CreateDateRange
  16526.                          Set startdt = New NotesDateTime(note.StartDateTime(0))
  16527.                          Set enddt = New NotesDateTime(note.EndDateTime(0))
  16528.                          Set trdr.StartDateTime = startdt
  16529.                          Set trdr.EndDateTime = enddt
  16530.                          Set note.TimeRange = trdr                   
  16531.                     End If
  16532.                     If Action = "Drop" Then
  16533.                          If note.HasItem("OrgRepeat") Then Call RepeatSave
  16534.                     Elseif note.HasItem("OrgRepeat") Then
  16535.                          note.RemoveItem("OrgRepeat")
  16536.                          note.RemoveItem("$Ref")
  16537.                          Messagebox "Pasting an instance of a repeating appointment creates a non-repeating appointment.", 64, "Paste"
  16538.                     End If
  16539.                     If CancelChange = True Then Exit Sub                         
  16540.                     Call MarkTempFields(note)
  16541.                     Call note.Save(True, True, True)                         
  16542.                End If
  16543.           Else
  16544. 'we are the originator of this meeting
  16545.                Set note.StartDateTime = date2
  16546.                Set note.StartDate = date2
  16547.                note.CalendarDateTime = note.StartDateTime
  16548.                Set dateitem = New NotesDateTime(note.EndDateTime(0))
  16549.                dateitem.AdjustDay(DayDiff)
  16550.                dateitem.AdjustMinute(MinDiff)
  16551.                dateitem.AdjustSecond(SecDiff)
  16552.                Set note.EndDateTime = dateitem
  16553.                If note.HasItem("$AlarmTime") Then
  16554.                     AlarmTime = note.GetItemValue("$AlarmTime")
  16555.                     Set dateitem = New NotesDateTime(AlarmTime(0))
  16556.                     dateitem.AdjustDay(DayDiff)
  16557.                     dateitem.AdjustMinute(MinDiff)
  16558.                     dateitem.AdjustSecond(SecDiff)
  16559.                     Set item = note.GetFirstItem("$AlarmTime")
  16560.                     Set item.DateTimeValue = dateitem
  16561.                End If
  16562.                If (note.AppointmentType(0) = "4") Then
  16563.                     note.ReminderTime = note.StartDateTime(0)
  16564.                Else
  16565.                     Set trdr = session.CreateDateRange
  16566.                     Set startdt = New NotesDateTime(note.StartDateTime(0))
  16567.                     Set enddt = New NotesDateTime(note.EndDateTime(0))
  16568.                     Set trdr.StartDateTime = date2
  16569.                     Set trdr.EndDateTime = dateitem
  16570.                     Set note.TimeRange = trdr                   
  16571.                End If
  16572. 'see if we need to reschedule the appointment               
  16573.                If (Not(note.IsResponse) And (note.HasItem("PostedDate"))) Or ((note.IsResponse) And (note.AppointmentType(0) = "3")) Then 
  16574.                     
  16575.                     If (note.IsResponse) Then
  16576.                          Set parentnote = db.GetDocumentBYUNID(note.ParentDocumentUNID)
  16577.                          Call CreateInviteeTable(parentnote)                         
  16578.                     Else
  16579.                          Call CreateInviteeTable(note)
  16580.                     End If
  16581.                     NeedsReschedule = True
  16582.                End If        
  16583.                If (NeedsReschedule) Then note.SequenceNum = note.SequenceNum(0) + 1
  16584.                If Action = "Drop" Then
  16585.                     If note.HasItem("OrgRepeat") Then Call RepeatSave
  16586.                Elseif note.HasItem("OrgRepeat") Then
  16587.                     note.RemoveItem("OrgRepeat")
  16588.                     note.RemoveItem("$Ref")
  16589.                     Messagebox "Pasting an instance of a repeating appointment creates a non-repeating appointment.", 64, "Paste"
  16590.                End If
  16591.                If CancelChange = True Then Exit Sub
  16592.                If (NeedsReschedule) Then Call RescheduleAppointment
  16593.                Call MarkTempFields(note)
  16594.                Call note.Save(True, True, True)
  16595.           End If                             
  16596.      End If
  16597.      
  16598.      Exit Sub
  16599.      
  16600. ErrorRoutine:
  16601.      Messagebox Error & " (PutAppointment)"
  16602.      Exit Sub
  16603.      
  16604. End Sub
  16605.     0    0    
  16606. ,`    Jh
  16607. '++LotusScript Development Environment:2:5:(Options):0:66
  16608. '++LotusScript Development Environment:2:5:(Forward):0:1
  16609. Declare Sub Postdragdrop(Source As Notesuiview)
  16610. Declare Sub Regiondoubleclick(Source As Notesuiview)
  16611. Declare Sub Querydragdrop(Source As Notesuiview, Continue As Variant)
  16612. Declare Sub Postpaste(Source As Notesuiview)
  16613. Declare Sub Queryopen(Source As Notesuiview, Continue As Variant)
  16614. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16615. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16616. Private Sub BindEvents(Byval Objectname_ As String)
  16617.      Static Source As NOTESUIVIEW
  16618.      Set Source = Bind(Objectname_)
  16619.      On Event Postdragdrop From Source Call Postdragdrop
  16620.      On Event Regiondoubleclick From Source Call Regiondoubleclick
  16621.      On Event Querydragdrop From Source Call Querydragdrop
  16622.      On Event Postpaste From Source Call Postpaste
  16623.      On Event Queryopen From Source Call Queryopen
  16624. End Sub
  16625. '++LotusScript Development Environment:2:2:Postdragdrop:1:12
  16626. Sub Postdragdrop(Source As Notesuiview)
  16627.      
  16628.      Call SetViewObjectVariables(source)
  16629.      Call GetCalendarOwner
  16630.      Call PutCalendarEntry("Drop")
  16631.      
  16632. End Sub
  16633. '++LotusScript Development Environment:2:2:Regiondoubleclick:1:12
  16634. Sub Regiondoubleclick(Source As Notesuiview)
  16635.      
  16636.      Set ws = New NotesUIWorkspace
  16637.      Set session = New NotesSession
  16638.      
  16639.      If source.CalendarDateTime <> "" Then Call ws.ComposeDocument("", "", "Appointment")
  16640.      
  16641. End Sub
  16642. '++LotusScript Development Environment:2:2:Querydragdrop:1:12
  16643. Sub Querydragdrop(Source As Notesuiview, Continue As Variant)
  16644.      
  16645. End Sub
  16646. '++LotusScript Development Environment:2:2:Postpaste:1:12
  16647. Sub Postpaste(Source As Notesuiview)
  16648.      
  16649.      Call SetViewObjectVariables(source)
  16650.      GetCalendarOwner
  16651.      PutCalendarEntry("Paste")
  16652.      
  16653. End Sub
  16654. '++LotusScript Development Environment:2:2:Queryopen:1:12
  16655. Sub Queryopen(Source As Notesuiview, Continue As Variant)
  16656.      
  16657. End Sub
  16658. O=Lotus Notes
  16659. O=Lotus Notes
  16660. PURSAFO
  16661. |.:#U
  16662. O=Lotus Notes
  16663. CN=Lotus Notes Template Development/O=Lotus Notes
  16664. PURSAFO
  16665. Fde!f^^
  16666. $TITLE
  16667. $PublicAccess
  16668. $Index
  16669. $Formula
  16670. $FormulaClass
  16671. $VIEWFORMAT
  16672. $CalendarFormat
  16673. $Comment
  16674. $ACTIONS
  16675. $SCRIPTOBJ_12
  16676. $SCRIPTOBJ_13
  16677. $SCRIPTOBJ_14
  16678. $ViewGlobalScript
  16679. $ViewGlobalScript_O
  16680. $ViewScript
  16681. $ViewScript_O
  16682. IsMailStationeryh
  16683. Stationery
  16684. Drafts
  16685.     7S9S
  16686. IsMailStationeryh
  16687.     7S9S
  16688. SendTo
  16689.     1S2S6S
  16690.     0R1S2S8S
  16691.     0R1S2S15S16S17S18S25S
  16692. SendTo
  16693.     0R1S2S5S6S8S12S16S20S
  16694. SendTo
  16695.     0R1S2S5S6S8S12S16S20S
  16696. Person
  16697.     0R1S2S5S6S8S10S11S12S13S14S
  16698. Person
  16699. Person
  16700. Person
  16701. Person
  16702.     0R10S11S20S32S
  16703. $ContentIconh
  16704. $ContentIcon
  16705. Froma
  16706.  pager 
  16707. SendToa
  16708.  pager 
  16709. message.wav
  16710. vmsg_hdr.wav
  16711. .wavG
  16712. .tifG
  16713. $ContentIconh
  16714. $ContentIcon
  16715.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  16716. IsMailStationeryh
  16717. MailStationeryName
  16718. Subject
  16719.     7S9S
  16720. $58$59$65$55$62$60$Conflict
  16721. PostedDate
  16722. $MessageType
  16723. ExcludeFromView
  16724.     L1S2S3S4S5S6S7S8S9S12S13S
  16725. IsMailStationeryh
  16726. Stationery
  16727. Drafts
  16728.     7S9S
  16729. IsMailStationeryh
  16730.     7S9S
  16731. $65Whol
  16732. SendTo
  16733.     1S2S6S
  16734.     0R1S2S8S
  16735.     0R1S2S15S16S17S18S25S
  16736. SendTo
  16737.     0R1S2S5S6S8S12S16S20S
  16738. SendTo
  16739.     0R1S2S5S6S8S12S16S20S
  16740. Person
  16741.     0R1S2S5S6S8S10S11S12S13S14S
  16742. Person
  16743. Person
  16744. Person
  16745. Person
  16746.     0R10S11S20S32S
  16747. $55Date
  16748. $ContentIconh
  16749. $ContentIcon
  16750. Froma
  16751.  pager 
  16752. SendToa
  16753.  pager 
  16754. message.wav
  16755. vmsg_hdr.wav
  16756. .wavG
  16757. .tifG
  16758. $ContentIconh
  16759. $ContentIcon
  16760.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$60Subjectb
  16761. IsMailStationeryh
  16762. MailStationeryName
  16763. Subject
  16764.     7S9S
  16765. New Memo.
  16766.     0S0E
  16767. Delete 
  16768.     0S0E
  16769. _Forward
  16770. Categori_ze
  16771. Edit Document
  16772. IsMailStationeryh
  16773.     7S9S
  16774. MailStEd
  16775. Edit Document
  16776. Which would you like to do?
  16777. Edit this Stationery
  16778. Edit this Stationery
  16779. Create a new message from this Stationery
  16780. Edit this Stationery
  16781.     0RR1S2S3S8S9S11S13S15S17S18S19S21S22S24S26S
  16782. Use Stationery
  16783. IsMailStationeryh
  16784. Not Stationery
  16785. This is a not a Stationery message.
  16786.     7S9S
  16787. Rename Stationery...
  16788. IsMailStationery
  16789. Rename Stationery
  16790. The currently selected document is a Draft.  Only Stationery documents can be renamed.
  16791.     3S4S10RS9E19RS9E
  16792. MailStationeryName
  16793. Rename Stationery
  16794. What would you like to call this Stationery message?
  16795. MailStationeryName
  16796.     0R1S2S3S7S9S11S
  16797. _Move To Folder...
  16798. _Remove From Folder...
  16799. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  16800. '++LotusScript Development Environment:2:5:(Forward):0:1
  16801. Declare Sub Click(Source As Button)
  16802. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16803. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16804. Private Sub BindEvents(Byval Objectname_ As String)
  16805.      Static Source As BUTTON
  16806.      Set Source = Bind(Objectname_)
  16807.      On Event Click From Source Call Click
  16808. End Sub
  16809. '++LotusScript Development Environment:2:2:Click:1:12
  16810. Sub Click(Source As Button)
  16811.      Call CreateNewDoc(NEW_MEMO)
  16812. End Sub
  16813. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  16814. '++LotusScript Development Environment:2:5:(Forward):0:1
  16815. Declare Sub Click(Source As Button)
  16816. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16817. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16818. Private Sub BindEvents(Byval Objectname_ As String)
  16819.      Static Source As BUTTON
  16820.      Set Source = Bind(Objectname_)
  16821.      On Event Click From Source Call Click
  16822. End Sub
  16823. '++LotusScript Development Environment:2:2:Click:1:12
  16824. Sub Click(Source As Button)
  16825.      Call CreateNewDoc(NEW_CALENDAR)
  16826. End Sub
  16827. tmpnewdoc
  16828.     1S2S
  16829. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  16830. '++LotusScript Development Environment:2:5:(Forward):0:1
  16831. Declare Sub Click(Source As Button)
  16832. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16833. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16834. Private Sub BindEvents(Byval Objectname_ As String)
  16835.      Static Source As BUTTON
  16836.      Set Source = Bind(Objectname_)
  16837.      On Event Click From Source Call Click
  16838. End Sub
  16839. '++LotusScript Development Environment:2:2:Click:1:12
  16840. Sub Click(Source As Button)
  16841.      Call CreateNewDoc(NEW_TASK)
  16842. End Sub
  16843. tmpnewdoc
  16844.     1S2S
  16845. Copy into\New Group
  16846. NewGroup
  16847.     0S0E
  16848. tmpnewdoc
  16849.     1S2S
  16850. '++LotusScript Development Environment:2:5:(Options):0:74
  16851. Option Public
  16852. Use "DocumentConversions"
  16853. '++LotusScript Development Environment:2:5:(Forward):0:1
  16854. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16855. O=Lotus Notes
  16856. O=Lotus Notes
  16857. PURSAFO
  16858. |.:#U
  16859. O=Lotus Notes
  16860. CN=Lotus Notes Template Development/O=Lotus Notes
  16861. PURSAFO
  16862. Fde!f^^
  16863. $TITLE
  16864. $Index
  16865. $Formula
  16866. $FormulaClass
  16867. $VIEWFORMAT
  16868. $FormFormula
  16869. $Comment
  16870. $ACTIONS
  16871. $SCRIPTOBJ_11
  16872. $SCRIPTOBJ_12
  16873. $SCRIPTOBJ_13
  16874. $ViewGlobalScript
  16875. $ViewGlobalScript_O
  16876. ($Meetings)|Meetings11
  16877. StartDateTime
  16878. StartDateTimeY
  16879. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################
  16880. ($POP3UIDL)|($POP3UIDL)J
  16881. $RFC822MessageSize
  16882.     1S2S3S
  16883. $RFC822MessageSize
  16884. $POP3ExportSize
  16885.     1S2S3S
  16886. $POP3ExportSize
  16887. MailPop3UIDLDeliveredDate$32$30$Conflict
  16888. MailPop3UIDL
  16889.     1S2S3S
  16890. MailPop3UIDL
  16891.     0RL1S2S3S1-
  16892. MailPop3UIDLDeliveredDate
  16893. MailPop3UIDLMailPop3UIDLDeliveredDateDelivered Date$32$RFC822MessageSize`
  16894. $RFC822MessageSize
  16895.     1S2S3S
  16896. $RFC822MessageSize
  16897. $30$POP3ExportSize\
  16898. $POP3ExportSize
  16899.     1S2S3S
  16900. $POP3ExportSize
  16901. 553Courier NewYP
  16902. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################
  16903. ($POP3)@
  16904. $RFC822MessageSize
  16905.     1S2S3S
  16906. $RFC822MessageSize
  16907. $POP3ExportSize
  16908.     1S2S3S
  16909. $POP3ExportSize
  16910. DeliveredDate$32$30$Conflict
  16911. DeliveredDate
  16912.     1S2S3S
  16913. DeliveredDate
  16914.     0RL1S2S3S1
  16915. DeliveredDate
  16916. DeliveredDateDelivered Date$32$RFC822MessageSize`
  16917. $RFC822MessageSize
  16918.     1S2S3S
  16919. $RFC822MessageSize
  16920. $30$POP3ExportSize\
  16921. $POP3ExportSize
  16922.     1S2S3S
  16923. $POP3ExportSize
  16924. 553Courier NewY
  16925. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris######################
  16926. ($Profiles)H
  16927. Form$Conflict
  16928. Profile
  16929.     L1S5S1
  16930. FormType&
  16931. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################
  16932. ($Inbox)($Inbox)1
  16933. $93$70
  16934. $70Newly received mail messages.FY
  16935. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  16936. ############
  16937. ##########################################################
  16938. ##########################################################
  16939. Appointment
  16940. _ViewIcon
  16941. _ViewIcon
  16942.     3S4S6S8S13S15S
  16943. Principal
  16944. Principal
  16945.     1S2S
  16946. OrgRepeat
  16947. Notice
  16948. Subject
  16949. Subject
  16950. StartDateTime
  16951. D0S2V
  16952. PostedDateh
  16953. NoticeType
  16954.  can meet at the suggested time
  16955. NoticeType
  16956.  would like to propose a change
  16957. NoticeType
  16958.  will not be attending"
  16959. NoticeType
  16960.  has asked someone else to attend instead
  16961. From 
  16962. Subject
  16963. Subject
  16964.     0R7RS4E10S11S13RS18E15RS13E16S17S18S19S23S25S26S29R34RS4E37S38S40RS13E41S42S44RS8E45S46S48RS14E49S50S52RS8E53S54S56RS14E57S58S60RS8E61S62S64RS14E65S66S68RS7E69S70S71S72S73S74S77R
  16965. $119$122StartDateTimeSubject$Conflict$REF
  16966. Appointment
  16967. Notice
  16968.     L1S2S3S6S7S
  16969.  $119
  16970. Appointment
  16971. _ViewIcon
  16972. _ViewIcon
  16973.     3S4S6S8S13S15S
  16974. $122x
  16975. Principal
  16976. Principal
  16977.     1S2S
  16978. OrgRepeat
  16979. Notice
  16980. Subject
  16981. Subject
  16982. StartDateTime
  16983. D0S2V
  16984. PostedDateh
  16985. NoticeType
  16986.  can meet at the suggested time
  16987. NoticeType
  16988.  would like to propose a change
  16989. NoticeType
  16990.  will not be attending"
  16991. NoticeType
  16992.  has asked someone else to attend instead
  16993. From 
  16994. Subject
  16995. Subject
  16996.     0R7RS4E10S11S13RS18E15RS13E16S17S18S19S23S25S26S29R34RS4E37S38S40RS13E41S42S44RS8E45S46S48RS14E49S50S52RS8E53S54S56RS14E57S58S60RS8E61S62S64RS14E65S66S68RS7E69S70S71S72S73S74S77R
  16997. StartDateTimeMeeting TimeSubjectSubject&
  16998. _Forward
  16999. _Edit Document
  17000. New Entry
  17001. Appointment
  17002.     0S0E
  17003. _Move to Folder...
  17004. _Remove from Folder...
  17005. Categori_zeK
  17006. Send Docu_ment
  17007. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  17008. '++LotusScript Development Environment:2:5:(Forward):0:1
  17009. Declare Sub Click(Source As Button)
  17010. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17011. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17012. Private Sub BindEvents(Byval Objectname_ As String)
  17013.      Static Source As BUTTON
  17014.      Set Source = Bind(Objectname_)
  17015.      On Event Click From Source Call Click
  17016. End Sub
  17017. '++LotusScript Development Environment:2:2:Click:1:12
  17018. Sub Click(Source As Button)
  17019.      Call CreateNewDoc(NEW_MEMO)
  17020. End Sub
  17021. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  17022. '++LotusScript Development Environment:2:5:(Forward):0:1
  17023. Declare Sub Click(Source As Button)
  17024. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17025. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17026. Private Sub BindEvents(Byval Objectname_ As String)
  17027.      Static Source As BUTTON
  17028.      Set Source = Bind(Objectname_)
  17029.      On Event Click From Source Call Click
  17030. End Sub
  17031. '++LotusScript Development Environment:2:2:Click:1:12
  17032. Sub Click(Source As Button)
  17033.      Call CreateNewDoc(NEW_CALENDAR)
  17034. End Sub
  17035. tmpnewdoc
  17036.     1S2S
  17037. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  17038. '++LotusScript Development Environment:2:5:(Forward):0:1
  17039. Declare Sub Click(Source As Button)
  17040. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17041. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17042. Private Sub BindEvents(Byval Objectname_ As String)
  17043.      Static Source As BUTTON
  17044.      Set Source = Bind(Objectname_)
  17045.      On Event Click From Source Call Click
  17046. End Sub
  17047. '++LotusScript Development Environment:2:2:Click:1:12
  17048. Sub Click(Source As Button)
  17049.      Call CreateNewDoc(NEW_TASK)
  17050. End Sub
  17051. tmpnewdoc
  17052.     1S2S
  17053. Copy into\New GroupK,
  17054. NewGroup
  17055.     0S0E
  17056. tmpnewdoc
  17057.     1S2S
  17058. '++LotusScript Development Environment:2:5:(Options):0:74
  17059. Option Public
  17060. Use "DocumentConversions"
  17061. '++LotusScript Development Environment:2:5:(Forward):0:1
  17062. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17063. O=Lotus Notes
  17064. O=Lotus Notes
  17065. PURSAFO
  17066. |.:#U
  17067. O=Lotus Notes
  17068. CN=Lotus Notes Template Development/O=Lotus Notes
  17069. PURSAFO
  17070. Fde!f^^
  17071. jZl,BH'
  17072. $TITLE
  17073. $PublicAccess
  17074. $Index
  17075. $Formula
  17076. $FormulaClass
  17077. $VIEWFORMAT
  17078. $Comment
  17079. $ACTIONS
  17080. $SCRIPTOBJ_7
  17081. $SCRIPTOBJ_8
  17082. $SCRIPTOBJ_9
  17083. $ViewGlobalScript
  17084. $ViewGlobalScript_O
  17085. _Forward
  17086. Categori_zeK
  17087. Edit Message
  17088. _Move to Folder...
  17089. _Remove from Folder...
  17090. O=Lotus Notes
  17091. O=Lotus Notes
  17092. PURSAFO
  17093. |.:#U
  17094. O=Lotus Notes
  17095. CN=Lotus Notes Template Development/O=Lotus Notes
  17096. PURSAFO
  17097. Fde!f^^
  17098. $TITLE
  17099. $Index
  17100. $Formula
  17101. $FormulaClass
  17102. $VIEWFORMAT
  17103. $Comment
  17104. $ACTIONS
  17105. $SUBVIEW$1\:1{@special(@indexunread)};$2\Date:8{@date(@year(PostedDate);@month(PostedDate);@day(PostedDate))};From\From:15;$4\Subject:30{@if(@isavailable(Subject);Subject;"Phone call from: "+PhoneCaller)}($Sent)1
  17106. $82$62
  17107. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  17108. ##########################################################
  17109. $SUBVIEW$1\:1{@special(@indexunread)};$2\Date:8{@date(@year(PostedDate);@month(PostedDate);@day(PostedDate))};From\From:15;$4\Subject:30{@if(@isavailable(Subject);Subject;"Phone call from: "+PhoneCaller)}($ToDo)|Tasks1D
  17110. $172$176$186DueDateTime$182#
  17111. $182DueDateTimeY
  17112. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########
  17113. $SUBVIEW$1\:1{@special(@indexunread)};$2\Date:8{@date(@year(PostedDate);@month(PostedDate);@day(PostedDate))};From\From:15;$4\Subject:30{@if(@isavailable(Subject);Subject;"Phone call from: "+PhoneCaller)}Brian Lambert($VIM100)/P=240B
  17114. DeliveredDate
  17115. DeliveredDate
  17116. PostedDate
  17117. PostedDatei
  17118. FromDomainh
  17119. FromDomain"
  17120. DeliveryPriority
  17121. DeliveryPriority
  17122. MessageType
  17123. MessageType
  17124. Delivery Report
  17125. VIM_DLR
  17126. NonDelivery Report
  17127. VIM_NDLR
  17128. Return Receipt
  17129. VIM_RTRC
  17130. VIM_MAILJ    
  17131. Subject
  17132. $53$47$48$50$51$52$Conflict
  17133. $MessageType
  17134.     L1S1$
  17135. $53$47$48
  17136. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris############################
  17137. $SUBVIEW$1\:1{@special(@indexunread)};$2\Date:8{@date(@year(PostedDate);@month(PostedDate);@day(PostedDate))};From\From:15;$4\Subject:30{@if(@isavailable(Subject);Subject;"Phone call from: "+PhoneCaller)}Brian Lambert($VIM23)/P=240d
  17138. PostedDateY
  17139. VIMSEL_DRAFT
  17140. DeliveredDate
  17141. DeliveredDate
  17142. PostedDate
  17143. PostedDatei
  17144. FromDomainh
  17145. FromDomain"
  17146. DeliveryPriority
  17147. DeliveryPriority
  17148. MessageType
  17149. MessageType
  17150. Delivery Report
  17151. VIM_DLR
  17152. NonDelivery Report
  17153. VIM_NDLR
  17154. Return Receipt
  17155. VIM_RTRC
  17156. VIM_MAILJ    
  17157. Subject
  17158. $53$47$48$50$51$52$Conflict
  17159. $MessageType
  17160.     L1S1$
  17161. $53$47$48
  17162. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris
  17163. ##########################################################
  17164. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesResourceProcessings34Q1#########
  17165. DeliveredDate
  17166. PostedDate
  17167. PostedDateY
  17168. Importance
  17169.     6S11S12S17S19S31S
  17170. SentBy
  17171. Principal
  17172. Principal
  17173.     1S2S5S6S8S10S
  17174. Attendees
  17175. RequiredAttendees
  17176. OptionalAttendees
  17177.     0R1S2S5S6S
  17178. DeliveredDate
  17179. SentBy
  17180. Attendees
  17181. Attendees
  17182. SendTo
  17183. SentBy
  17184. SendTo
  17185.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  17186.     0R1S2S8S
  17187.     0R1S2S15S16S
  17188.     0R1S2S5S6S8S14S18S
  17189.     0R1S2S5S6S8S14S18S
  17190. Person
  17191. X400FreeForm^
  17192.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  17193. Person2
  17194. Person
  17195. Person
  17196. Person
  17197. Person
  17198.     0R1S2S12S13S22S34S
  17199. Delivery Report
  17200. NonDelivery Report
  17201. Trace Report
  17202. Mail Router
  17203. Person2
  17204.     0R3S4S5S6S7S8S10S12S
  17205. DeliveredDate
  17206. DeliveredDate
  17207. PostedDate
  17208. PostedDate
  17209.     3S4S6S8S9S10S12S14S
  17210. $ContentIconh
  17211. $ContentIcon
  17212. Froma
  17213.  pager 
  17214. SendToa
  17215.  pager 
  17216. message.wav
  17217. vmsg_hdr.wav
  17218. .wavG
  17219. .tifG
  17220. $ContentIconh
  17221. $ContentIcon
  17222.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  17223. NonDelivery Report
  17224. DELIVERY FAILURE: 
  17225. FailureReason
  17226. Delivery Report
  17227. DELIVERED: 
  17228. Subject
  17229. Return Receipt
  17230. RECEIVED: 
  17231. Subject
  17232. ReturnNonReceipt
  17233. NOT RECEIVED: 
  17234. Subject
  17235. Subject
  17236.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S
  17237. $71$82$62$75$65$Conflict
  17238. DeliveredDate
  17239. PostedDate
  17240.     L1S4S5S
  17241. DeliveredDate
  17242. PostedDate
  17243. PostedDateY
  17244. Importance
  17245.     6S11S12S17S19S31S$82Who
  17246. SentBy
  17247. Principal
  17248. Principal
  17249.     1S2S5S6S8S10S
  17250. Attendees
  17251. RequiredAttendees
  17252. OptionalAttendees
  17253.     0R1S2S5S6S
  17254. DeliveredDate
  17255. SentBy
  17256. Attendees
  17257. Attendees
  17258. SendTo
  17259. SentBy
  17260. SendTo
  17261.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  17262.     0R1S2S8S
  17263.     0R1S2S15S16S
  17264.     0R1S2S5S6S8S14S18S
  17265.     0R1S2S5S6S8S14S18S
  17266. Person
  17267. X400FreeForm^
  17268.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  17269. Person2
  17270. Person
  17271. Person
  17272. Person
  17273. Person
  17274.     0R1S2S12S13S22S34S
  17275. Delivery Report
  17276. NonDelivery Report
  17277. Trace Report
  17278. Mail Router
  17279. Person2
  17280.     0R3S4S5S6S7S8S10S12S
  17281. $62Date
  17282. DeliveredDate
  17283. DeliveredDate
  17284. PostedDate
  17285. PostedDate
  17286.     3S4S6S8S9S10S12S14S$75F
  17287. $ContentIconh
  17288. $ContentIcon
  17289. Froma
  17290.  pager 
  17291. SendToa
  17292.  pager 
  17293. message.wav
  17294. vmsg_hdr.wav
  17295. .wavG
  17296. .tifG
  17297. $ContentIconh
  17298. $ContentIcon
  17299.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$65Subject
  17300. NonDelivery Report
  17301. DELIVERY FAILURE: 
  17302. FailureReason
  17303. Delivery Report
  17304. DELIVERED: 
  17305. Subject
  17306. Return Receipt
  17307. RECEIVED: 
  17308. Subject
  17309. ReturnNonReceipt
  17310. NOT RECEIVED: 
  17311. Subject
  17312. Subject
  17313.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S&
  17314. New Memo.
  17315.     0S0E
  17316. Delete 
  17317.     0S0E
  17318. Move To Folder...% 
  17319.     0S0E
  17320. _Forward
  17321. Categori_ze
  17322. Edit Document1
  17323. Edit New Copy
  17324. MailStEd
  17325.     1S2S3S
  17326. _Move To Folder...    
  17327. _Remove From Folder...
  17328. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  17329. '++LotusScript Development Environment:2:5:(Forward):0:1
  17330. Declare Sub Click(Source As Button)
  17331. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17332. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17333. Private Sub BindEvents(Byval Objectname_ As String)
  17334.      Static Source As BUTTON
  17335.      Set Source = Bind(Objectname_)
  17336.      On Event Click From Source Call Click
  17337. End Sub
  17338. '++LotusScript Development Environment:2:2:Click:1:12
  17339. Sub Click(Source As Button)
  17340.      Call CreateNewDoc(NEW_MEMO)
  17341. End Sub
  17342. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  17343. '++LotusScript Development Environment:2:5:(Forward):0:1
  17344. Declare Sub Click(Source As Button)
  17345. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17346. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17347. Private Sub BindEvents(Byval Objectname_ As String)
  17348.      Static Source As BUTTON
  17349.      Set Source = Bind(Objectname_)
  17350.      On Event Click From Source Call Click
  17351. End Sub
  17352. '++LotusScript Development Environment:2:2:Click:1:12
  17353. Sub Click(Source As Button)
  17354.      Call CreateNewDoc(NEW_CALENDAR)
  17355. End Sub
  17356. tmpnewdoc
  17357.     1S2S
  17358. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  17359. '++LotusScript Development Environment:2:5:(Forward):0:1
  17360. Declare Sub Click(Source As Button)
  17361. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17362. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17363. Private Sub BindEvents(Byval Objectname_ As String)
  17364.      Static Source As BUTTON
  17365.      Set Source = Bind(Objectname_)
  17366.      On Event Click From Source Call Click
  17367. End Sub
  17368. '++LotusScript Development Environment:2:2:Click:1:12
  17369. Sub Click(Source As Button)
  17370.      Call CreateNewDoc(NEW_TASK)
  17371. End Sub
  17372. tmpnewdoc
  17373.     1S2S
  17374. Copy into\New Groupt,
  17375. NewGroup
  17376.     0S0E
  17377. tmpnewdoc
  17378.     1S2S
  17379. '++LotusScript Development Environment:2:5:(Options):0:74
  17380. Option Public
  17381. Use "DocumentConversions"
  17382. '++LotusScript Development Environment:2:5:(Forward):0:1
  17383. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17384. O=Lotus Notes
  17385. O=Lotus Notes
  17386. PURSAFO
  17387. |.:#U
  17388. O=Lotus Notes
  17389. CN=Lotus Notes Template Development/O=Lotus Notes
  17390. PURSAFO
  17391. Fde!f^^
  17392. $TYPE
  17393. $TABLEFORMAT
  17394. $TITLE
  17395. $Index
  17396. $Formula
  17397. $FormulaClass
  17398. $VIEWFORMAT
  17399. $Comment
  17400. $ACTIONS
  17401. $SCRIPTOBJ_10
  17402. $SCRIPTOBJ_11
  17403. $SCRIPTOBJ_12
  17404. $ViewGlobalScript
  17405. $ViewGlobalScript_O
  17406. DueStateh
  17407. DueState
  17408.     7S9S
  17409. DueState
  17410. Overdue
  17411. DueState
  17412. Future
  17413. DueState
  17414. Rejected
  17415. DueState
  17416. Complete
  17417. Current
  17418.     3S4S6S8S9S10S12S14S15S16S18S20S21S22S24S26S
  17419. $186l
  17420. AssignState
  17421. Importance
  17422. Importance
  17423. Importance
  17424.     4S6R7S8S10S12R18R24R30R
  17425. SentBy
  17426. Principal
  17427. Principal
  17428.     1S2S5S6S8S10S
  17429. Subject
  17430. SentBy
  17431.  (Assigned by 
  17432. SentBy
  17433.     0R1S2E2S5S6S8S14S16S17S19S
  17434. AssignedToh
  17435. AssignedTo
  17436. AssignedTo
  17437. AssignState
  17438.  (Not Sent)
  17439. ReplyTo
  17440. ReplyDate
  17441. SendTo
  17442. SendTo
  17443. ReplyTo
  17444.     2R6S7S10S11S15S18S20S24S26S27S30S31S33S35S39R42S43S46S49S50S52S56S59S65S68S72S76S78S82S86R
  17445. $172$176$186Subject$185DueDateTime$182$Conflict$REF
  17446. DueDateTime
  17447. ExcludeFromView
  17448.     L1S3S4S5S6S7S8S9S10S12S13S16S17S
  17449.  $172N
  17450. DueStateh
  17451. DueState
  17452.     7S9S
  17453. DueState
  17454. Overdue
  17455. DueState
  17456. Future
  17457. DueState
  17458. Rejected
  17459. DueState
  17460. Complete
  17461. Current
  17462.     3S4S6S8S9S10S12S14S15S16S18S20S21S22S24S26S$186
  17463. $186l
  17464. AssignState
  17465. Importance
  17466. Importance
  17467. Importance
  17468.     4S6R7S8S10S12R18R24R30RSubject$185Task
  17469. SentBy
  17470. Principal
  17471. Principal
  17472.     1S2S5S6S8S10S
  17473. Subject
  17474. SentBy
  17475.  (Assigned by 
  17476. SentBy
  17477.     0R1S2E2S5S6S8S14S16S17S19S
  17478. DueDateTimeDue$182Assigned To
  17479. AssignedToh
  17480. AssignedTo
  17481. AssignedTo
  17482. AssignState
  17483.  (Not Sent)
  17484. ReplyTo
  17485. ReplyDate
  17486. SendTo
  17487. SendTo
  17488. ReplyTo
  17489.     2R6S7S10S11S15S18S20S24S26S27S30S31S33S35S39R42S43S46S49S50S52S56S59S65S68S72S76S78S82S86R
  17490. Categori_zeK
  17491. _Forward
  17492. _Edit Document
  17493. Send Docu_ment
  17494. New Task.
  17495.     0S0E
  17496. Delete
  17497. DueState
  17498. Task Not Completed
  17499. This Task is not yet completed, are you sure you want to delete it?
  17500.     3S4S5S6S7S8S10R21S23S29S
  17501. Mark Completed'++LotusScript Development Environment:2:5:(Options):0:74
  17502. Use "ObjectVariables"
  17503. '++LotusScript Development Environment:2:5:(Forward):0:1
  17504. Declare Sub Click(Source As Button)
  17505. Declare Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  17506. '++LotusScript Development Environment:2:5:(Declarations):0:10
  17507. Dim maildoc As NotesDocument
  17508. Dim dt As NotesDateTime
  17509. Dim Subject As Variant
  17510. Dim Action As Variant
  17511. Dim NewSubject As String
  17512. Dim ComposeReply As Variant
  17513. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17514. Private Sub BindEvents(Byval Objectname_ As String)
  17515.      Static Source As BUTTON
  17516.      Set Source = Bind(Objectname_)
  17517.      On Event Click From Source Call Click
  17518. End Sub
  17519. '++LotusScript Development Environment:2:2:Click:1:12
  17520. Sub Click(Source As Button)
  17521.      
  17522.      Dim sendToList As Variant
  17523.      Dim cnName As Variant
  17524.      Dim foundName As Integer
  17525.      
  17526.      ComposeReply = False
  17527.      Call InstantiateObjectVariables
  17528.      
  17529.      Set dt = New NotesDateTime("")
  17530.      dt.SetNow
  17531.      
  17532.      Set ws = New NotesUIWorkspace
  17533.      Set documents = db.UnprocessedDocuments
  17534.      
  17535.      If documents.Count = 0 Then Exit Sub
  17536.      
  17537.      For d = 1 To documents.Count
  17538.           Set note = documents.GetNthDocument(d)
  17539.           If note.HasItem(Principal) Then
  17540.                FromName = note.Principal(0)
  17541.           Else
  17542.                FromName = note.From(0)
  17543.           End If
  17544.           If note.Form(0) = "Task" Then
  17545.                oldAssignState = note.AssignState(0)
  17546.           Else
  17547.                oldAssignState = 99
  17548.           End If
  17549.           Subject = note.Subject(0)
  17550.           NewSubject = "Task:  " & Subject & " is complete as of " & dt.LSLocalTime
  17551.           Select Case oldAssignState
  17552.           Case 0, 1 '0=assigned to yourself.  1=assigned to someone else but not sent
  17553.                Gosub CompleteThisTask
  17554.           Case 8, 9 '9=complete
  17555.                Messagebox Subject & " is already closed.", 0, "Task Completion"
  17556.           Case 99 '99=this is not a Task doc
  17557.                Messagebox Subject & " is not a task document and therefore it cannot be completed.", 0, "Task Completion"
  17558.           Case Else ' make sure current user (using common name) is included in the assignTo list
  17559.                sendToList = note.SendTo
  17560.                cnName = Evaluate("@Name([CN]; @Username )")
  17561.                foundName = False
  17562.                Forall a In sendToList
  17563.                     If Instr(Lcase(a), Lcase(cnName(0))) > 0 Then
  17564.                          foundName = True
  17565.                          Exit Forall
  17566.                     End If
  17567.                End Forall
  17568.                
  17569.                If Not foundName Then
  17570.                     Messagebox "Task '" & Subject & "' is not assigned to you. You cannot complete a task that is assigned to someone else.", 0, "Task Completion"
  17571.                Else
  17572.                     Action = "Complete"
  17573.                     If SendNotification("completion", "I have completed task: ", 9, 82) = False Then Exit Sub
  17574.                     Gosub CompleteThisTask
  17575.                End If
  17576.           End Select
  17577.      Next
  17578.      
  17579.      If ComposeReply Then Call ws.ComposeDocument("", "", "Reply") 
  17580.      
  17581.      Delete note
  17582.      ws.ViewRefresh
  17583.      
  17584.      Exit Sub
  17585.      
  17586. CompleteThisTask:
  17587.      note.DueState = 9
  17588.      note.AssignState = 9
  17589.      note.CompletedDateTime = dt.LSLocalTime
  17590.      Call note.ReplaceItemValue("_ViewIcon", 82)
  17591.      Call note.save(True, True, True)
  17592.      Return
  17593.      
  17594. End Sub
  17595. '++LotusScript Development Environment:2:1:SendNotification:1:8
  17596. Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  17597.      
  17598. '(this was copied from the Task form)
  17599.      
  17600.      SendNotification = True
  17601.      
  17602.      FromCommonName = Evaluate("@Name([CN]; Principal)", note)
  17603.      If FromCommonName(0) = "" Then FromCommonName = Evaluate("@Name([CN]; From)", note)
  17604.      
  17605.      CommentQuery = Messagebox("A " & ReplyType & " notice will be sent to " & FromCommonName(0) &_
  17606.      ".  Do you wish to send additional comments?", MB_YESNOCANCEL, "Task " & Action)
  17607.      Select Case CommentQuery
  17608.      Case IDYES
  17609.           Call session.SetEnvironmentVar("MailStEd", Cstr(NewSubject))
  17610.           ComposeReply = True
  17611.      Case IDNO
  17612.           Set maildoc = New NotesDocument(db)
  17613.           Set rtitem = New NotesRichTextItem(maildoc, "Body")
  17614.           If note.HasItem("Principal") Then
  17615.                maildoc.SendTo = note.Principal(0) & " @ " & note.FromDomain(0)
  17616.           Else
  17617.                maildoc.SendTo = note.From(0) & " @ " & note.FromDomain(0)
  17618.           End If
  17619.           maildoc.Subject = NewSubject
  17620.           rtitem.AppendText(MessageText & Subject & ".  ")
  17621.           maildoc.Form = "Reply"
  17622.           maildoc.Principal = Owner
  17623.           maildoc.AssignState = NewState
  17624.           maildoc.DueState = NewState
  17625.           Call maildoc.AppendItemValue("_ViewIcon", ViewIcon)
  17626.           Call maildoc.Save (True, True, True)
  17627.           Call maildoc.MakeResponse(note)
  17628.           On Error Goto SendError
  17629.           Call maildoc.Send (False)
  17630.           Call maildoc.Save (True, True, True)
  17631.           ws.ViewRefresh
  17632.      Case IDCANCEL
  17633.           note.SaveOptions = "0"
  17634.           note.MailOptions = "0"
  17635.           CommentQuery = "Cancel"
  17636.           SendNotification = False
  17637.           Exit Function
  17638.      End Select
  17639.      
  17640.      note.SaveOptions = "1"          
  17641.      note.AssignState = NewState
  17642.      note.DueState = NewState
  17643.      Call note.ReplaceItemValue("_ViewIcon", ViewIcon)
  17644.      
  17645.      Exit Function
  17646.      
  17647. SendError:
  17648.      Messagebox ReplyType & " reply document could not be sent to " & FromCommonName(0) & " at this time.  Please retry", MB_OK, "Task Completion"
  17649.      SendNotification = False
  17650.      maildoc.Remove(True)
  17651.      Exit Function
  17652.      
  17653. End Function
  17654. Unmark Completed
  17655. AssignState
  17656. Unmark Completed Task
  17657. You cannot unmark a task that has not been completed.
  17658.     3S4S6S8S14S16S
  17659. DbOwner
  17660. CalendarProfile
  17661. Owner
  17662.     0R1S2S6S
  17663. 4.0 converted AssignedTo to abbreviated name and 4.5 does not so here we are checking both
  17664.     0RR1S
  17665. Owner1
  17666. DbOwner
  17667. DbOwner
  17668.     0R1S2S6S9S10S12S14S
  17669. Owner2
  17670. DbOwner
  17671. DbOwner
  17672.     0R1S2S6S9S10S12S14S
  17673. AssignedTo1
  17674. AssignedTo
  17675.     0R1S2S6S
  17676. AssignedTo2
  17677. AssignedTo
  17678.     0R1S2S6S
  17679. User1
  17680.     0R1S2S6S
  17681. User2
  17682.     0R1S2S6S
  17683. AssignedTo1
  17684. AssignedTo2
  17685. Owner1
  17686. Owner2
  17687. User1
  17688. User2
  17689. Unmark Completed Task
  17690. You can only unmark a completed task that was assigned to you.
  17691.     0RR3S4S5S6S7S8S9S10S11S12S13S14S16S18S24S26S
  17692. AssignState
  17693.     0R1S2S3S
  17694. DueState
  17695.     0R1S2S3S
  17696. CompletedDateTime
  17697.     0R1S2S3S
  17698. Update Tasks.
  17699. Update Tasks
  17700. _Move to Folder...
  17701. _Remove from Folder...
  17702. Remove from To Do View`
  17703. ExcludeFromView
  17704. ExcludeFromView
  17705.     1S2S3S8S9S
  17706. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  17707. '++LotusScript Development Environment:2:5:(Forward):0:1
  17708. Declare Sub Click(Source As Button)
  17709. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17710. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17711. Private Sub BindEvents(Byval Objectname_ As String)
  17712.      Static Source As BUTTON
  17713.      Set Source = Bind(Objectname_)
  17714.      On Event Click From Source Call Click
  17715. End Sub
  17716. '++LotusScript Development Environment:2:2:Click:1:12
  17717. Sub Click(Source As Button)
  17718.      Call CreateNewDoc(NEW_MEMO)
  17719. End Sub
  17720. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  17721. '++LotusScript Development Environment:2:5:(Forward):0:1
  17722. Declare Sub Click(Source As Button)
  17723. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17724. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17725. Private Sub BindEvents(Byval Objectname_ As String)
  17726.      Static Source As BUTTON
  17727.      Set Source = Bind(Objectname_)
  17728.      On Event Click From Source Call Click
  17729. End Sub
  17730. '++LotusScript Development Environment:2:2:Click:1:12
  17731. Sub Click(Source As Button)
  17732.      Call CreateNewDoc(NEW_CALENDAR)
  17733. End Sub
  17734. tmpnewdoc
  17735.     1S2S
  17736. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  17737. '++LotusScript Development Environment:2:5:(Forward):0:1
  17738. Declare Sub Click(Source As Button)
  17739. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17740. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17741. Private Sub BindEvents(Byval Objectname_ As String)
  17742.      Static Source As BUTTON
  17743.      Set Source = Bind(Objectname_)
  17744.      On Event Click From Source Call Click
  17745. End Sub
  17746. '++LotusScript Development Environment:2:2:Click:1:12
  17747. Sub Click(Source As Button)
  17748.      Call CreateNewDoc(NEW_TASK)
  17749. End Sub
  17750. tmpnewdoc
  17751.     1S2S
  17752. Copy into\New GroupK,
  17753. NewGroup
  17754.     0S0E
  17755. tmpnewdoc
  17756.     1S2S
  17757. ^(    Kt
  17758. Q8    I$
  17759. Q8    I$
  17760.     4S5S
  17761. Principal
  17762. '++LotusScript Development Environment:2:5:(Options):0:74
  17763. Option Public
  17764. Use "DocumentConversions"
  17765. '++LotusScript Development Environment:2:5:(Forward):0:1
  17766. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17767. O=Lotus Notes
  17768. O=Lotus Notes
  17769. PURSAFO
  17770. |.:#U
  17771. O=Lotus Notes
  17772. CN=Lotus Notes Template Development/O=Lotus Notes
  17773. PURSAFO
  17774. Fde!f^^
  17775. $TYPE
  17776. $TABLEFORMAT
  17777. $TITLE
  17778. $Index
  17779. $Formula
  17780. $FormulaClass
  17781. $VIEWFORMAT
  17782. $Comment
  17783. $ACTIONS
  17784. $SCRIPTOBJ_6
  17785. $SCRIPTOBJ_12
  17786. $SCRIPTOBJ_13
  17787. $SCRIPTOBJ_14
  17788. $ViewGlobalScript
  17789. $ViewGlobalScript_O
  17790.  $53Unique ID
  17791. $47Date^
  17792. DeliveredDate
  17793. DeliveredDate
  17794. PostedDate
  17795. PostedDatei
  17796. $48From`
  17797. FromDomainh
  17798. FromDomain"
  17799. $50PriorityD
  17800. DeliveryPriority
  17801. DeliveryPriority
  17802. $51Type
  17803. MessageType
  17804. MessageType
  17805. Delivery Report
  17806. VIM_DLR
  17807. NonDelivery Report
  17808. VIM_NDLR
  17809. Return Receipt
  17810. VIM_RTRC
  17811. VIM_MAILJ    
  17812. $52Subject
  17813. Subject
  17814. Categori_ze
  17815. _Edit Document
  17816. Send Docu_ment
  17817. _Forward
  17818. O=Lotus Notes
  17819. O=Lotus Notes
  17820. PURSAFO
  17821. |.:#U
  17822. O=Lotus Notes
  17823. CN=Lotus Notes Template Development/O=Lotus Notes
  17824. PURSAFO
  17825. Fde!f^^
  17826. >j\:]?
  17827. $TYPE
  17828. $TABLEFORMAT
  17829. $Author
  17830. $TITLE
  17831. $Index
  17832. $Formula
  17833. $FormulaClass
  17834. $VIEWFORMAT
  17835. $Comment
  17836. $ACTIONS
  17837.  $53Draft4
  17838. PostedDateY
  17839. VIMSEL_DRAFT
  17840. $47Date^
  17841. DeliveredDate
  17842. DeliveredDate
  17843. PostedDate
  17844. PostedDatei
  17845. $48From`
  17846. FromDomainh
  17847. FromDomain"
  17848. $50PriorityD
  17849. DeliveryPriority
  17850. DeliveryPriority
  17851. $51Type
  17852. MessageType
  17853. MessageType
  17854. Delivery Report
  17855. VIM_DLR
  17856. NonDelivery Report
  17857. VIM_NDLR
  17858. Return Receipt
  17859. VIM_RTRC
  17860. VIM_MAILJ    
  17861. $52Subject
  17862. Subject
  17863. Categori_ze
  17864. _Edit Document
  17865. Send Docu_ment
  17866. _Forward
  17867. O=Lotus Notes
  17868. O=Lotus Notes
  17869. PURSAFO
  17870. |.:#U
  17871. O=Lotus Notes
  17872. CN=Lotus Notes Template Development/O=Lotus Notes
  17873. PURSAFO
  17874. Fde!f^^
  17875. UMQ+5a
  17876. $TYPE
  17877. $TABLEFORMAT
  17878. $Author
  17879. $TITLE
  17880. $Index
  17881. $Formula
  17882. $FormulaClass
  17883. $VIEWFORMAT
  17884. $Comment
  17885. $ACTIONS
  17886. $SUBVIEW$1\:1{@special(@indexunread)};$2\Date:8{@date(@year(PostedDate);@month(PostedDate);@day(PostedDate))};From\From:15;$4\Subject:30{@if(@isavailable(Subject);Subject;"Phone call from: "+PhoneCaller)}Brian Lambert($VIM256)/P=240
  17887. Recipients
  17888. Categories
  17889. Categoriesb
  17890. (No Category)
  17891. DeliveredDate
  17892. DeliveredDate
  17893. PostedDate
  17894. PostedDatei
  17895. FromDomainh
  17896. FromDomain"
  17897. DeliveryPriority
  17898. DeliveryPriority
  17899. MessageType
  17900. MessageType
  17901. Delivery Report
  17902. VIM_DLR
  17903. NonDelivery Report
  17904. VIM_NDLR
  17905. Return Receipt
  17906. VIM_RTRC
  17907. VIM_MAILJ    
  17908. Subject
  17909. $53$47$48$50$51$52$Conflict
  17910. $MessageType
  17911.     L1S1$
  17912. $53$47$48T
  17913. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris###
  17914. $SUBVIEW$1\:1{@special(@indexunread)};$2\Date:8{@date(@year(PostedDate);@month(PostedDate);@day(PostedDate))};From\From:15;$4\Subject:30{@if(@isavailable(Subject);Subject;"Phone call from: "+PhoneCaller)}Brian Lambert($VIM42)/P=240
  17915. Recipients
  17916. SenderCategorized
  17917. SenderCategorized
  17918. (No Category)
  17919. DeliveredDate
  17920. DeliveredDate
  17921. PostedDate
  17922. PostedDatei
  17923. FromDomainh
  17924. FromDomain"
  17925. DeliveryPriority
  17926. DeliveryPriority
  17927. MessageType
  17928. MessageType
  17929. Delivery Report
  17930. VIM_DLR
  17931. NonDelivery Report
  17932. VIM_NDLR
  17933. Return Receipt
  17934. VIM_RTRC
  17935. VIM_MAILJ    
  17936. Subject
  17937. $53$47$48$50$51$52$Conflict
  17938. $MessageType
  17939.     L1S1$
  17940. $53$47$48
  17941. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris#####################################################
  17942. $SUBVIEW$1\:1{@special(@indexunread)};$2\Date:8{@date(@year(PostedDate);@month(PostedDate);@day(PostedDate))};From\From:15;$4\Subject:30{@if(@isavailable(Subject);Subject;"Phone call from: "+PhoneCaller)}Brian Lambert($VIM98)/P=240
  17943. MessageType
  17944. MessageType
  17945. Delivery Report
  17946. VIM_DLR
  17947. NonDelivery Report
  17948. VIM_NDLR
  17949. Return Receipt
  17950. VIM_RTRC
  17951. VIM_MAILJ    
  17952. DeliveredDate
  17953. DeliveredDate
  17954. PostedDate
  17955. PostedDatei
  17956. FromDomainh
  17957. FromDomain"
  17958. DeliveryPriority
  17959. DeliveryPriority
  17960. MessageType
  17961. MessageType
  17962. Delivery Report
  17963. VIM_DLR
  17964. NonDelivery Report
  17965. VIM_NDLR
  17966. Return Receipt
  17967. VIM_RTRC
  17968. VIM_MAILJ    
  17969. Subject
  17970. $45$47$48$50$51$52$Conflict
  17971. $MessageType
  17972.     L1S1$
  17973. $45$47$48
  17974. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris###############################################
  17975. ##########################################################
  17976. ##########################################################
  17977. ##########################################################
  17978.  $53Categoryj
  17979. Recipients
  17980. Categories
  17981. Categoriesb
  17982. (No Category)
  17983. $47Date^
  17984. DeliveredDate
  17985. DeliveredDate
  17986. PostedDate
  17987. PostedDatei
  17988. $48From`
  17989. FromDomainh
  17990. FromDomain"
  17991. $50PriorityD
  17992. DeliveryPriority
  17993. DeliveryPriority
  17994. $51Type
  17995. MessageType
  17996. MessageType
  17997. Delivery Report
  17998. VIM_DLR
  17999. NonDelivery Report
  18000. VIM_NDLR
  18001. Return Receipt
  18002. VIM_RTRC
  18003. VIM_MAILJ    
  18004. $52Subject
  18005. Subject
  18006. Categori_ze
  18007. _Edit Document
  18008. Send Docu_ment
  18009. _Forward
  18010. O=Lotus Notes
  18011. O=Lotus Notes
  18012. PURSAFO
  18013. |.:#U
  18014. O=Lotus Notes
  18015. CN=Lotus Notes Template Development/O=Lotus Notes
  18016. PURSAFO
  18017. Fde!f^^
  18018. $TYPE
  18019. $TABLEFORMAT
  18020. $Author
  18021. $TITLE
  18022. $Index
  18023. $Formula
  18024. $FormulaClass
  18025. $VIEWFORMAT
  18026. $Comment
  18027. $ACTIONS
  18028.  $53Keywordz
  18029. Recipients
  18030. SenderCategorized
  18031. SenderCategorized
  18032. (No Category)
  18033. $47Date^
  18034. DeliveredDate
  18035. DeliveredDate
  18036. PostedDate
  18037. PostedDatei
  18038. $48From`
  18039. FromDomainh
  18040. FromDomain"
  18041. $50PriorityD
  18042. DeliveryPriority
  18043. DeliveryPriority
  18044. $51Type
  18045. MessageType
  18046. MessageType
  18047. Delivery Report
  18048. VIM_DLR
  18049. NonDelivery Report
  18050. VIM_NDLR
  18051. Return Receipt
  18052. VIM_RTRC
  18053. VIM_MAILJ    
  18054. $52Subject
  18055. Subject
  18056. Categori_ze
  18057. _Edit Document
  18058. Send Docu_ment
  18059. _Forward
  18060. O=Lotus Notes
  18061. O=Lotus Notes
  18062. PURSAFO
  18063. |.:#U
  18064. O=Lotus Notes
  18065. CN=Lotus Notes Template Development/O=Lotus Notes
  18066. PURSAFO
  18067. Fde!f^^
  18068. $TYPE
  18069. $TABLEFORMAT
  18070. $Author
  18071. $TITLE
  18072. $Index
  18073. $Formula
  18074. $FormulaClass
  18075. $VIEWFORMAT
  18076. $Comment
  18077. $ACTIONS
  18078.  $45Type
  18079. MessageType
  18080. MessageType
  18081. Delivery Report
  18082. VIM_DLR
  18083. NonDelivery Report
  18084. VIM_NDLR
  18085. Return Receipt
  18086. VIM_RTRC
  18087. VIM_MAILJ    
  18088. $47Date^
  18089. DeliveredDate
  18090. DeliveredDate
  18091. PostedDate
  18092. PostedDatei
  18093. $48From`
  18094. FromDomainh
  18095. FromDomain"
  18096. $50PriorityD
  18097. DeliveryPriority
  18098. DeliveryPriority
  18099. $51Type
  18100. MessageType
  18101. MessageType
  18102. Delivery Report
  18103. VIM_DLR
  18104. NonDelivery Report
  18105. VIM_NDLR
  18106. Return Receipt
  18107. VIM_RTRC
  18108. VIM_MAILJ    
  18109. $52Subject
  18110. Subject
  18111. Categori_ze
  18112. _Edit Document
  18113. Send Docu_ment
  18114. _Forward
  18115. O=Lotus Notes
  18116. O=Lotus Notes
  18117. PURSAFO
  18118. |.:#U
  18119. O=Lotus Notes
  18120. CN=Lotus Notes Template Development/O=Lotus Notes
  18121. PURSAFO
  18122. Fde!f^^
  18123. $TYPE
  18124. $TABLEFORMAT
  18125. $Author
  18126. $TITLE
  18127. $Index
  18128. $Formula
  18129. $FormulaClass
  18130. $VIEWFORMAT
  18131. $Comment
  18132. $ACTIONS
  18133. ($Alarms)|$Alarms1($Alarms)|$Alarms
  18134. $AlarmTimeh
  18135. $AlarmTime
  18136. CalendarDateTime
  18137. $AlarmOffset
  18138.     7S9S13S15S17S19S21S23S
  18139. $92CalendarDateTime$AlarmOffset$AlarmDescription$Conflict
  18140. $92CalendarDateTime
  18141. $92AlarmTime
  18142. $AlarmTimeh
  18143. $AlarmTime
  18144. CalendarDateTime
  18145. $AlarmOffset
  18146.     7S9S13S15S17S19S21S23S
  18147. CalendarDateTimeCalendarDateTime$AlarmOffsetOffset$AlarmDescriptionDescription&
  18148. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  18149. ########################
  18150. ($Trash)1($Trash)1
  18151. $87$64
  18152. $64FY
  18153. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  18154. ########################################################
  18155. CN=Mike Brady/O=Iris AssociatesCN=Ryan Jansen/O=IrisJoe BlowCN=Ryan Jansen/O=IrisCN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=user2 test/O=C&SCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesAppointmentProcessings34Q1################################################
  18156. CN=Lotus Notes Template Development/O=Lotus NotesCN=Catherine Duffy/O=IrisMary LambCN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Catherine Duffy/O=IrisCN=Don Hatch/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesEmailProcessings34Q1
  18157. ##########################################################
  18158. CN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Carol Brady/O=Iris AssociatesCN=Ryan Jansen/O=IrisJoe BlowCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesNoticeProcessings34Q1
  18159. ##########################################################
  18160. Joe BlowCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=user3 test/O=C&SCN=Ryan Jansen/O=IrisJoe BlowCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesNoticeResponsess34Q1#####################################################
  18161. ##########################################################
  18162. ##########################################################
  18163. New Memo.
  18164.     0S0E
  18165. Delete 
  18166.     0S0E
  18167. Move To Folder...
  18168.     0S0E
  18169. _Forward
  18170. Reply
  18171. Reply
  18172.     0S0E
  18173. Reply With History@
  18174. Reply with history
  18175.     0S0E
  18176. Categori_zeK
  18177. _Edit Document
  18178. Send    
  18179. Resend
  18180. NonDelivery Report
  18181. Not a Delivery Failure Report
  18182. You cannot Resend a message unless it is a Delivery Failure Report.
  18183.     6S12S17S23S
  18184. _Move To Folder...
  18185. _Remove From Folder...
  18186. O=Lotus Notes
  18187. O=Lotus Notes
  18188. PURSAFO
  18189. |.:#U
  18190. O=Lotus Notes
  18191. CN=Lotus Notes Template Development/O=Lotus Notes
  18192. PURSAFO
  18193. Fde!f^^
  18194. $TITLE
  18195. $PublicAccess
  18196. $Name
  18197. $Index
  18198. $Formula
  18199. $FormulaClass
  18200. $VIEWFORMAT
  18201. $Comment
  18202. $ACTIONS
  18203. DeliveredDate
  18204. PostedDate
  18205. PostedDateY
  18206. IsMailStationeryh
  18207. _ViewIcon
  18208. _ViewIcon
  18209. Importance
  18210. Importance
  18211. _ViewIcon
  18212. _ViewIcon
  18213. $TypeIcon
  18214.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  18215. SentBy
  18216. Principal
  18217. Principal
  18218.     1S2S5S6S8S10S
  18219. DeliveredDate
  18220. SendTo
  18221. SentBy
  18222. SendTo
  18223.     0R1S2S5S6S7S8S9S10S12S14S18S
  18224.     0R1S2S8S
  18225.     0R1S2S15S16S
  18226. DeliveredDate
  18227. SendTo
  18228. SentBy
  18229. SendTo
  18230.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  18231. DeliveredDate
  18232. SendTo
  18233. SentBy
  18234. SendTo
  18235.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  18236. Person
  18237. X400FreeForm^
  18238.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  18239. Person2
  18240. Person
  18241. Person
  18242. Person
  18243. Person
  18244.     0R1S2S12S13S22S34S
  18245. Delivery Report
  18246. NonDelivery Report
  18247. Trace Report
  18248. Mail Router
  18249. Person2
  18250.     0R3S4S5S6S7S8S10S12S
  18251. DeliveredDate
  18252. DeliveredDate
  18253. PostedDate
  18254. PostedDate
  18255.     3S4S6S8S9S10S12S14S
  18256. $ContentIconh
  18257. $ContentIcon
  18258. Froma
  18259.  pager 
  18260. SendToa
  18261.  pager 
  18262. message.wav
  18263. vmsg_hdr.wav
  18264. .wavG
  18265. .tifG
  18266. $ContentIconh
  18267. $ContentIcon
  18268.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  18269. NonDelivery Report
  18270. DELIVERY FAILURE: 
  18271. FailureReason
  18272. Delivery Report
  18273. DELIVERED: 
  18274. Subject
  18275. Return Receipt
  18276. RECEIVED: 
  18277. Subject
  18278. ReturnNonReceipt
  18279. NOT RECEIVED: 
  18280. Subject
  18281. Subject
  18282.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S
  18283. $86$93$70$85$73$Conflict
  18284. DeliveredDate
  18285. PostedDate
  18286. PostedDateY
  18287. IsMailStationeryh
  18288. _ViewIcon
  18289. _ViewIcon
  18290. Importance
  18291. Importance
  18292. _ViewIcon
  18293. _ViewIcon
  18294. $TypeIcon
  18295.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  18296. $93Who>
  18297. SentBy
  18298. Principal
  18299. Principal
  18300.     1S2S5S6S8S10S
  18301. DeliveredDate
  18302. SendTo
  18303. SentBy
  18304. SendTo
  18305.     0R1S2S5S6S7S8S9S10S12S14S18S
  18306.     0R1S2S8S
  18307.     0R1S2S15S16S
  18308. DeliveredDate
  18309. SendTo
  18310. SentBy
  18311. SendTo
  18312.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  18313. DeliveredDate
  18314. SendTo
  18315. SentBy
  18316. SendTo
  18317.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  18318. Person
  18319. X400FreeForm^
  18320.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  18321. Person2
  18322. Person
  18323. Person
  18324. Person
  18325. Person
  18326.     0R1S2S12S13S22S34S
  18327. Delivery Report
  18328. NonDelivery Report
  18329. Trace Report
  18330. Mail Router
  18331. Person2
  18332.     0R3S4S5S6S7S8S10S12S
  18333. $70Date
  18334. DeliveredDate
  18335. DeliveredDate
  18336. PostedDate
  18337. PostedDate
  18338.     3S4S6S8S9S10S12S14S$85F
  18339. $ContentIconh
  18340. $ContentIcon
  18341. Froma
  18342.  pager 
  18343. SendToa
  18344.  pager 
  18345. message.wav
  18346. vmsg_hdr.wav
  18347. .wavG
  18348. .tifG
  18349. $ContentIconh
  18350. $ContentIcon
  18351.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$73Subject
  18352. NonDelivery Report
  18353. DELIVERY FAILURE: 
  18354. FailureReason
  18355. Delivery Report
  18356. DELIVERED: 
  18357. Subject
  18358. Return Receipt
  18359. RECEIVED: 
  18360. Subject
  18361. ReturnNonReceipt
  18362. NOT RECEIVED: 
  18363. Subject
  18364. Subject
  18365.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S&
  18366. New Memo.
  18367.     0S0E
  18368. Delete 
  18369.     0S0E
  18370. Move To Folder...+ 
  18371.     0S0E
  18372. _Forward
  18373. Reply 4
  18374. Reply
  18375.     0S0E
  18376. Reply With History@
  18377. Reply with history
  18378.     0S0E
  18379. Categori_zer
  18380. _Edit Document
  18381. Send Docu_ment    
  18382. Resend
  18383. NonDelivery Report
  18384. Not a Delivery Failure Report
  18385. You cannot Resend a message unless it is a Delivery Failure Report.
  18386.     6S12S17S23S
  18387. _Move To Folder...
  18388. _Remove From Folder...
  18389. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  18390. '++LotusScript Development Environment:2:5:(Forward):0:1
  18391. Declare Sub Click(Source As Button)
  18392. '++LotusScript Development Environment:2:5:(Declarations):0:2
  18393. '++LotusScript Development Environment:2:2:BindEvents:1:129
  18394. Private Sub BindEvents(Byval Objectname_ As String)
  18395.      Static Source As BUTTON
  18396.      Set Source = Bind(Objectname_)
  18397.      On Event Click From Source Call Click
  18398. End Sub
  18399. '++LotusScript Development Environment:2:2:Click:1:12
  18400. Sub Click(Source As Button)
  18401.      Call CreateNewDoc(NEW_MEMO)
  18402. End Sub
  18403. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  18404. '++LotusScript Development Environment:2:5:(Forward):0:1
  18405. Declare Sub Click(Source As Button)
  18406. '++LotusScript Development Environment:2:5:(Declarations):0:2
  18407. '++LotusScript Development Environment:2:2:BindEvents:1:129
  18408. Private Sub BindEvents(Byval Objectname_ As String)
  18409.      Static Source As BUTTON
  18410.      Set Source = Bind(Objectname_)
  18411.      On Event Click From Source Call Click
  18412. End Sub
  18413. '++LotusScript Development Environment:2:2:Click:1:12
  18414. Sub Click(Source As Button)
  18415.      Call CreateNewDoc(NEW_CALENDAR)
  18416. End Sub
  18417. tmpnewdoc
  18418.     1S2S
  18419. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  18420. '++LotusScript Development Environment:2:5:(Forward):0:1
  18421. Declare Sub Click(Source As Button)
  18422. '++LotusScript Development Environment:2:5:(Declarations):0:2
  18423. '++LotusScript Development Environment:2:2:BindEvents:1:129
  18424. Private Sub BindEvents(Byval Objectname_ As String)
  18425.      Static Source As BUTTON
  18426.      Set Source = Bind(Objectname_)
  18427.      On Event Click From Source Call Click
  18428. End Sub
  18429. '++LotusScript Development Environment:2:2:Click:1:12
  18430. Sub Click(Source As Button)
  18431.      Call CreateNewDoc(NEW_TASK)
  18432. End Sub
  18433. tmpnewdoc
  18434.     1S2S
  18435. Copy into\New Groupe,
  18436. NewGroup
  18437.     0S0E
  18438. tmpnewdoc
  18439.     1S2S
  18440. Retrieve maila
  18441. Database
  18442.     1S2S
  18443. Database
  18444. ($Inbox)
  18445.     0R4S6S
  18446.     4S5S
  18447. '++LotusScript Development Environment:2:5:(Options):0:74
  18448. Option Public
  18449. Use "ObjectVariables"
  18450. Use "DocumentConversions"
  18451. '++LotusScript Development Environment:2:5:(Forward):0:1
  18452. '++LotusScript Development Environment:2:5:(Declarations):0:2
  18453. O=Lotus Notes
  18454. O=Lotus Notes
  18455. PURSAFO
  18456. |.:#U
  18457. O=Lotus Notes
  18458. CN=Lotus Notes Template Development/O=Lotus Notes
  18459. PURSAFO
  18460. Fde!f^^
  18461. n)QV2
  18462. $TITLE
  18463. $Name
  18464. $Index
  18465. $Formula
  18466. $FormulaClass
  18467. $VIEWFORMAT
  18468. $Comment
  18469. $ACTIONS
  18470. $SCRIPTOBJ_12
  18471. $SCRIPTOBJ_13
  18472. $SCRIPTOBJ_14
  18473. $ViewGlobalScript
  18474. $ViewGlobalScript_O
  18475. DeliveredDate
  18476. PostedDate
  18477. PostedDateY
  18478. IsMailStationeryh
  18479. _ViewIcon
  18480. _ViewIcon
  18481. Importance
  18482. Importance
  18483. _ViewIcon
  18484. _ViewIcon
  18485. $TypeIcon
  18486.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  18487. SentBy
  18488. Principal
  18489. Principal
  18490.     1S2S5S6S8S10S
  18491. DeliveredDate
  18492. SendTo
  18493. SentBy
  18494. SendTo
  18495.     0R1S2S5S6S7S8S9S10S12S14S18S
  18496.     0R1S2S8S
  18497.     0R1S2S15S16S
  18498. DeliveredDate
  18499. SendTo
  18500. SentBy
  18501. SendTo
  18502.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  18503. DeliveredDate
  18504. SendTo
  18505. SentBy
  18506. SendTo
  18507.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  18508. Person
  18509. X400FreeForm^
  18510.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  18511. Person2
  18512. Person
  18513. Person
  18514. Person
  18515. Person
  18516.     0R1S2S12S13S22S34S
  18517. Delivery Report
  18518. NonDelivery Report
  18519. Trace Report
  18520. Mail Router
  18521. Person2
  18522.     0R3S4S5S6S7S8S10S12S
  18523. DeliveredDate
  18524. DeliveredDate
  18525. PostedDate
  18526. PostedDate
  18527.     3S4S6S8S9S10S12S14S
  18528. $ContentIconh
  18529. $ContentIcon
  18530. Froma
  18531.  pager 
  18532. SendToa
  18533.  pager 
  18534. message.wav
  18535. vmsg_hdr.wav
  18536. .wavG
  18537. .tifG
  18538. $ContentIconh
  18539. $ContentIcon
  18540.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  18541. IsMailStationeryh
  18542. MailStationeryName
  18543. NonDelivery Report
  18544. DELIVERY FAILURE: 
  18545. FailureReason
  18546. Delivery Report
  18547. DELIVERED: 
  18548. Subject
  18549. Return Receipt
  18550. RECEIVED: 
  18551. Subject
  18552. ReturnNonReceipt
  18553. NOT RECEIVED: 
  18554. Subject
  18555. Subject
  18556.     7S9S10S11S13S14S15S17S18S19S21S22S23S25S26S27S29S30S31S33S34S35S37S38S39S41S
  18557. $79$87$64$80$69$Conflict
  18558. DeliveredDate
  18559. PostedDate
  18560. PostedDateY
  18561. IsMailStationeryh
  18562. _ViewIcon
  18563. _ViewIcon
  18564. Importance
  18565. Importance
  18566. _ViewIcon
  18567. _ViewIcon
  18568. $TypeIcon
  18569.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  18570. $87Who>
  18571. SentBy
  18572. Principal
  18573. Principal
  18574.     1S2S5S6S8S10S
  18575. DeliveredDate
  18576. SendTo
  18577. SentBy
  18578. SendTo
  18579.     0R1S2S5S6S7S8S9S10S12S14S18S
  18580.     0R1S2S8S
  18581.     0R1S2S15S16S
  18582. DeliveredDate
  18583. SendTo
  18584. SentBy
  18585. SendTo
  18586.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  18587. DeliveredDate
  18588. SendTo
  18589. SentBy
  18590. SendTo
  18591.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  18592. Person
  18593. X400FreeForm^
  18594.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  18595. Person2
  18596. Person
  18597. Person
  18598. Person
  18599. Person
  18600.     0R1S2S12S13S22S34S
  18601. Delivery Report
  18602. NonDelivery Report
  18603. Trace Report
  18604. Mail Router
  18605. Person2
  18606.     0R3S4S5S6S7S8S10S12S
  18607. $64Date
  18608. DeliveredDate
  18609. DeliveredDate
  18610. PostedDate
  18611. PostedDate
  18612.     3S4S6S8S9S10S12S14S$80F
  18613. $ContentIconh
  18614. $ContentIcon
  18615. Froma
  18616.  pager 
  18617. SendToa
  18618.  pager 
  18619. message.wav
  18620. vmsg_hdr.wav
  18621. .wavG
  18622. .tifG
  18623. $ContentIconh
  18624. $ContentIcon
  18625.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$69Subject
  18626. IsMailStationeryh
  18627. MailStationeryName
  18628. NonDelivery Report
  18629. DELIVERY FAILURE: 
  18630. FailureReason
  18631. Delivery Report
  18632. DELIVERED: 
  18633. Subject
  18634. Return Receipt
  18635. RECEIVED: 
  18636. Subject
  18637. ReturnNonReceipt
  18638. NOT RECEIVED: 
  18639. Subject
  18640. Subject
  18641.     7S9S10S11S13S14S15S17S18S19S21S22S23S25S26S27S29S30S31S33S34S35S37S38S39S41S
  18642. Categori_ze
  18643. _Edit Document
  18644. Send Docu_ment
  18645. _Forward
  18646. Empty Trash
  18647.     0S0E
  18648. _Move to Folder...
  18649. _Remove From Trash
  18650. >|'++LotusScript Development Environment:2:5:(Options):0:74
  18651. Option Public
  18652. '++LotusScript Development Environment:2:5:(Forward):0:1
  18653. '++LotusScript Development Environment:2:5:(Declarations):0:2
  18654. O=Lotus Notes
  18655. O=Lotus Notes
  18656. PURSAFO
  18657. |.:#U
  18658. O=Lotus Notes
  18659. CN=Lotus Notes Template Development/O=Lotus Notes
  18660. PURSAFO
  18661. Fde!f^^
  18662. adE+!
  18663. $TITLE
  18664. $PublicAccess
  18665. $Name
  18666. $Index
  18667. $Formula
  18668. $FormulaClass
  18669. $VIEWFORMAT
  18670. $Comment
  18671. $ACTIONS
  18672. $ViewGlobalScript
  18673. $ViewGlobalScript_O
  18674. '++LotusScript Development Environment:2:5:(Options):0:74
  18675. Option Public 
  18676. Use "NoticeProcessing"
  18677. Use "ResourceProcessing"    
  18678. '++LotusScript Development Environment:2:5:(Forward):0:1
  18679. Declare Sub Initialize
  18680. Declare Function SendInvitation As Integer
  18681. Declare Sub RescheduleAppointment
  18682. Declare Sub CancelAppointment
  18683. Declare Sub ConfirmAppointment
  18684. Declare Sub RemoveInvitee
  18685. Declare Sub BuildAttendeeLists(mode As Integer)
  18686. Declare Sub SelectUserToRemove
  18687. Declare Sub ChangeStatus
  18688. Declare Sub RollbackAppointment(BusyPriority As String)
  18689. '++LotusScript Development Environment:2:5:(Declarations):0:10
  18690. 'AppointmentProcessing: 
  18691. '++LotusScript Development Environment:2:2:Initialize:1:10
  18692. Sub Initialize
  18693.      
  18694. End Sub
  18695. '++LotusScript Development Environment:2:1:SendInvitation:1:8
  18696. Function SendInvitation As Integer
  18697.     *This routine is called whenever the meeting originator invites users to a meeting
  18698.     *This routine sends out an invitation notice to the people listed in the 
  18699.      SendTo and CopyTo items and adds them to the RequiredAttendees and OptionalAttendees items        
  18700.     *This is the only routine that does not create a separate notice document to mail
  18701.     *The reason is that we need the router to update the SendTo and CopyTo items     
  18702.     Outputs:
  18703.     returns 0 if no errors occur, 1 if an error does occur
  18704. %END REM
  18705.      
  18706.      
  18707.      On Error Goto ErrorRoutine
  18708.      On Error 4412 Goto CleanUp          'this should trap uidoc.Send errors
  18709.      
  18710. 'if we have never invited anyone, add the SequenceNum item
  18711.      If Not note.HasItem("SequenceNum") Then note.SequenceNum = 1
  18712.      
  18713. 'modify the appointment document so it is an invitation
  18714.      note.Form  = "Notice"
  18715.      note.NoticeType = ORS_MSGTYPE_INVITE
  18716.      note.Topic = note.Subject
  18717.      note.apptunid = note.UniversalID
  18718.      If (note.Broadcast(0) = "1") Then
  18719.           MailSubject$ = "Broadcast - "
  18720.      Else
  18721.           MailSubject$ = "Invitation - "
  18722.      End If
  18723.      Set startitem = note.GetFirstItem("StartDateTime")
  18724.      If (note.Room(0) <> "") Then
  18725.           note.Subject = MailSubject$ & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  18726.      Else
  18727.           note.Subject =  MailSubject$ & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  18728.      End If     
  18729.      Call note.ReplaceItemValue("_ViewIcon",133)
  18730.      note.Principal = Owner
  18731.      note.Chair = Owner
  18732. 'remove fields that will need to be added later
  18733.      Call note.RemoveItem("CalendarDateTime")
  18734.      Call note.RemoveItem("OrgTable")
  18735.      BusyPriority = note.GetItemValue("$BusyPriority")
  18736.      Call note.RemoveItem("$BusyName")
  18737.      Call note.RemoveItem("$BusyPriority")
  18738.      Call note.RemoveItem("tmpOwner")
  18739.      
  18740. 'build the attendee lists so that the invitees have them
  18741.      Call BuildAttendeeLists(1)
  18742.      Call note.RemoveItem("tmpRequiredAttendees")
  18743.      Call note.RemoveItem("tmpOptionalAttendees")
  18744.      
  18745. 'this supresses the sign/encrypt dialog
  18746.      note.MailOptions = "1"
  18747.      Call uidoc.reload
  18748.      
  18749. 'we call the send from the NotesUIDocument object so that the Ambiguous Names dialog is invoked if needed    
  18750.      Call uidoc.Send
  18751.      
  18752. 'reset the fields on the note to make it an appointment
  18753.      Call RollbackAppointment(BusyPriority(0))
  18754.      
  18755. 'rebuild the attendees lists with the updated values from the router
  18756.      Call BuildAttendeeLists(2)
  18757.      
  18758. 'remove fields from the note
  18759.      note.SendTo =""
  18760.      note.CopyTo = ""
  18761.      SendInvitation = 0
  18762.      Exit Function
  18763.      
  18764. Cleanup:
  18765. 'reset the fields on the note to make it an appointment
  18766.      Call RollbackAppointment(BusyPriority(0))
  18767.      SendInvitation = 1
  18768.      Call uidoc.Reload
  18769.      Exit Function
  18770.      
  18771. ErrorRoutine:
  18772.      Call RollbackAppointment(BusyPriority(0))
  18773.      Messagebox Error & " (SendInvitation)"
  18774.      SendInvitation = 1     
  18775.      Exit Function
  18776. End Function
  18777. '++LotusScript Development Environment:2:2:RescheduleAppointment:1:8
  18778. Sub RescheduleAppointment
  18779.     *This routine is called whenever the user changes the room and/or the date/time of the meeting
  18780.     *This routine increments the SequenceNum item by 1 and notifies the room, resources, and invitees
  18781.      of the change by sending Reschedule notices out
  18782.     *This is routine is called from the uidocument or the calendar view (for drag/drop)
  18783. %END REM
  18784.      
  18785.      On Error Resume Next
  18786.      
  18787. 'see if this document belongs to a repeat set
  18788.      If (note.hasitem("tmpRescheduleWhich")) Then
  18789.           Call ProcessRepeatingResources(note.tmprescheduleWhich(0),ORS_MSGTYPE_RESCHEDULE,ORS_STATE_RESOURCE)
  18790.           Call ProcessRepeatingResources(note.tmprescheduleWhich(0),ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM)
  18791.      Else
  18792. 'this is not a repeating meeting          
  18793. 'reschedule the resources if need be
  18794.           If (note.RequiredResources(0) <> "") Then Call RescheduleResources(ORS_STATE_RESOURCE,note)
  18795.  'reschedule the room if need be
  18796.           If (note.RoomRequired(0) = "1") And (note.Room(0) <> "") Then Call RescheduleResources(ORS_STATE_ROOM,note)         
  18797.      End If
  18798.      
  18799.      On Error Goto ErrorRoutine
  18800.      
  18801. 'we need to add the correct attendees to the sendto item
  18802.      Call GetMailingList
  18803.      
  18804. 'make sure we have people to notify
  18805.      If (MailingList(0) = "") Then Exit Sub
  18806.      
  18807. 'create the notice document
  18808.      Call CreateNoticeDocument("Reschedule -",ORS_MSGTYPE_RESCHEDULE,33,1)
  18809.      
  18810.      notice.SendTo = MailingList
  18811.      Call notice.Send(False)
  18812.      Messagebox "The invitees have been notified that the appointment has changed.",0,"Status"
  18813.      
  18814.      Exit Sub
  18815. ErrorRoutine:
  18816.      Messagebox Error & " (RescheduleAppointment)"
  18817.      Exit Sub
  18818. End Sub
  18819. '++LotusScript Development Environment:2:2:CancelAppointment:1:8
  18820. Sub CancelAppointment
  18821.     *This routine is called whenever the Chair manually cancels an appointment
  18822.     *A Cancellation notice is sent to the room, resources, and invitees
  18823.     *The $BusyPriority item is modified to tell the FreeTime system we are no longer busy
  18824.      1 = Busy, 2 = Not busy
  18825. %END REM
  18826.      
  18827.      On Error Resume Next
  18828.      
  18829. 'First, take care of cancelling any rooms/resrouces the user may have invited
  18830. 'if this is a repeating meeting, process every instance that we should
  18831.      If (note.HasItem("tmpRescheduleWhich")) Then
  18832.           Call ProcessRepeatingResources(note.tmpRescheduleWhich(0),ORS_MSGTYPE_CANCEL,ORS_STATE_RESOURCE)
  18833.           Call ProcessRepeatingResources(note.tmpRescheduleWhich(0),ORS_MSGTYPE_CANCEL,ORS_STATE_ROOM)
  18834.      Else
  18835. 'cancel the room and resource if need be
  18836.           If (note.RequiredResources(0) <> "") Then Call CancelResources(ORS_STATE_RESOURCE,note)
  18837.           If (note.RoomRequired(0) = "1") And (note.Room(0) <> "") Then Call CancelResources(ORS_STATE_ROOM,note)
  18838.      End If
  18839.      
  18840.      On Error Goto ErrorRoutine
  18841. 'we need to get the attendees who should be notified of the cancellation
  18842.      Call GetMailingList
  18843.      
  18844. 'make sure we have people to notify
  18845.      If (MailingList(0) <> "") Then
  18846. 'we don't exit since we need to remove items from the note          
  18847. 'create the notice
  18848.           Call CreateNoticeDocument("Cancelled -",ORS_MSGTYPE_CANCEL,81,1)
  18849.           
  18850.           notice.SendTo = MailingList
  18851.           Call notice.Send(False)
  18852.           Messagebox "The invitees have been notified that this appointment has been cancelled.",0,"Status"
  18853.      End If
  18854. 'update the appointment document
  18855.      note.RemoveItem("CalendarDateTime")
  18856.      Call note.ReplaceItemValue("$BusyPriority","2")     
  18857.      note.NoticeType = ORS_MSGTYPE_CANCEL
  18858.      Call note.RemoveItem("OrgTable")
  18859. 'if this document had an alarm, remove it from the alarms folder
  18860.      If (note.HasItem("$Alarm")) Then Call note.RemoveFromFolder("$Alarms")
  18861.      
  18862.      Exit Sub
  18863. ErrorRoutine:
  18864.      Messagebox Error & " (CancelAppointment)"
  18865.      Exit Sub
  18866. End Sub
  18867. '++LotusScript Development Environment:2:2:ConfirmAppointment:1:8
  18868. Sub ConfirmAppointment
  18869.     *This routine sends out a confirmation notice to all invitees
  18870.     *If this is a repeating meeting, then the people invited to that instance of the
  18871.      meeting being confirmed is included in the confirmation
  18872.     *If this is not a repeating meeting, then that status of all invitees is included
  18873.      in the confirmation notice
  18874. %END REM
  18875.      
  18876.      On Error Goto ErrorRoutine
  18877.      
  18878. 'we need to get a list of attendees to send this to   
  18879.      Call GetMailingList
  18880.      
  18881. 'make sure we have people to notify
  18882.      If (MailingList(0) = "") Then Exit Sub
  18883.      
  18884.      Call CreateNoticeDocument("Confirmed -",ORS_MSGTYPE_CONFIRMATION,10,1)
  18885.      
  18886. 'if we are confirming a NON-repeating meeting, do the following
  18887.      If Not(note.HasItem("OrgRepeat")) Then
  18888.           Dim rtitem  As New NotesRichTextItem(notice,"StatusUpdate")
  18889.           
  18890. 'add all of the invitee status's to the rich text item   
  18891.           For i = 0 To InviteeCounter-1
  18892.                Set nam = New NotesName(InviteeList(i).InviteeName)
  18893.                Select Case InviteeList(i).Status
  18894.                Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  18895.                     Call rtitem.AppendText(nam.Common & " -> Accepted")
  18896.                Case ORS_MSGTYPE_REJECT
  18897.                     Call rtitem.AppendText(nam.Common & " -> Declined")
  18898.                Case ORS_MSGTYPE_COUNTER
  18899.                     Call rtitem.AppendText(nam.Common & " -> Counter Proposed")
  18900.                Case ORS_MSGTYPE_DELEGATING
  18901.                     Call rtitem.AppendText(nam.Common & " -> Delegated to " & InviteeList(i).Delegee)               
  18902.                Case ORG_STATUS_WAITING
  18903.                     Call rtitem.AppendText(nam.Common & " -> No Response")
  18904.                End Select
  18905.                Call rtitem.AddNewLine(1)          
  18906.           Next
  18907. 'include the people who were uninvited
  18908.           If (note.Uninvited(0) <> "") Then
  18909.                Call rtitem.AddNewLine(1)
  18910.                Call rtitem.AppendText("Uninvited:")          
  18911.                Call rtitem.AddNewLine(1)
  18912.                Uninvited = note.Uninvited
  18913.                For x = 0 To Ubound(Uninvited)
  18914.                     Call rtitem.AppendText(Uninvited(x))
  18915.                     Call rtitem.AddNewLine(1)
  18916.                Next          
  18917.           End If
  18918.      End If
  18919.      notice.SendTo = MailingList
  18920.      Call notice.Send(False)
  18921.      Messagebox "A confirmation notice has been sent to the invitees.",0,"Status"
  18922.      Exit Sub
  18923.      
  18924. ErrorRoutine:
  18925.      Messagebox Error & " (ConfirmAppointment)"
  18926.      Exit Sub
  18927. End Sub
  18928. '++LotusScript Development Environment:2:2:RemoveInvitee:1:8
  18929. Sub RemoveInvitee
  18930.     *This routine is called from SelectUserToRemove
  18931.     *This routine sends out a StatusUpdate message to the specified invitees
  18932.         with the OrgStatus item set to ORS_STATUS_REMOVED
  18933.     *The specified invitees are then appended to an item called Uninvited
  18934. %END REM
  18935.      Dim FullUserNames() As String
  18936.      Dim nIndex As Integer
  18937.      
  18938.      On Error Goto ErrorRoutine
  18939.      
  18940.      Call CreateNoticeDocument("You are no longer required to attend this appointment -",ORS_MSGTYPE_STATUSUPDATE,157,1)
  18941.      
  18942.      notice.OrgStatus = ORS_STATUS_REMOVED
  18943. 'for each person in the tmpUninvited field, get their full mail address
  18944.      PeopleToSend = note.tmpPeopleSelected
  18945.      Redim FullUserNames(Ubound(PeopleToSend))
  18946.      For i = 0 To Ubound(PeopleToSend)
  18947.           nIndex = FindInvitee(PeopleToSend(i))
  18948.           If (nIndex = -1) Then
  18949.                FullUserNames(i) = PeopleToSend(i)
  18950.           Else
  18951.                If (InviteeList(nIndex).Domain <> "") Then
  18952.                     FullUserNames(i) = InviteeList(nIndex).InviteeName & "@" & InviteeList(nIndex).Domain
  18953.                Else
  18954.                     FullUserNames(i) = InviteeList(nIndex).InviteeName    
  18955.                End If
  18956.                InviteeList(nIndex).Status = ORS_STATUS_REMOVED
  18957.                InviteeList(nIndex).KeepPosted = ""
  18958.           End If
  18959.      Next
  18960.      
  18961.      notice.SendTo = FullUserNames
  18962.      Call notice.Send(False)
  18963.      Messagebox "An Uninvite notice has been sent to the people selected.",0,"Status"
  18964.      Exit Sub
  18965.      
  18966. ErrorRoutine:
  18967.      Messagebox Error & " (RemoveInvitee)"
  18968.      Exit Sub
  18969. End Sub
  18970. '++LotusScript Development Environment:2:2:BuildAttendeeLists:1:8
  18971. Sub BuildAttendeeLists(mode As Integer)
  18972.  *This routine is called from SendInvitation ONLY!
  18973.  *It is called twice
  18974.   First time - remove duplicate entries
  18975.   Second time - update names
  18976. %END REM
  18977.      
  18978.      Dim vSendToNames As Variant
  18979.      Dim vCopyToNames As Variant
  18980.      Dim vNewRequiredNames() As Variant
  18981.      Dim vNewOptionalNames() As Variant 
  18982.      Dim bInviteeExists As Integer
  18983.      Dim counter As Integer
  18984.      Dim newcounter As Integer
  18985.      Dim sCanonicalName As String
  18986.      Dim sDomainName As String
  18987.      Dim sNewNames() As String
  18988.      
  18989.      On Error Goto ErrorRoutine
  18990.      
  18991. 'get the sendto and copyto field values
  18992.      vSendToNames = note.SendTo
  18993.      vCopyToNames = note.CopyTo
  18994.      
  18995. 'determine why we are being called
  18996.      Select Case mode
  18997.      Case 1    'first time
  18998. 'we need to look for duplicate entries only if people have been invited
  18999. 'check RequiredAttendees
  19000.           If (vSendToNames(0) <> "") Then
  19001. 'initialize some variables
  19002.                Redim sNewNames(Ubound(vSendToNames))
  19003.                newcounter = 0               
  19004.                If (Isarray(OriginalRequired)) Then
  19005. 'required invitees already exist; copy them into a local variable                    
  19006.                     Redim vNewRequiredNames(Ubound(OriginalRequired) + Ubound(vSendToNames)+1)
  19007.                     Forall names In OriginalRequired
  19008.                          vNewRequiredNames(newcounter) = names
  19009.                          newcounter = newcounter+1
  19010.                     End Forall
  19011.                Else
  19012.                     Redim vNewRequiredNames(Ubound(vSendToNames))
  19013.                End If
  19014.                counter = 0
  19015.                Forall names In vSendToNames
  19016.                     Call GetNameComponents(Cstr(names),sCanonicalName,sDomainName)
  19017.                     bInviteeExists = FindInvitee(sCanonicalName)
  19018. 'if the invitee wasn't found, then add them keep them in the list and add them to the table
  19019.                     If (bInviteeExists = -1) Then
  19020.                          sNewNames(counter) = names
  19021.                          vNewRequiredNames(newcounter) = names                         
  19022.                          Call AddInviteeToInviteeTable(Cstr(names),"")
  19023.                          counter = counter + 1
  19024.                          newcounter = newcounter + 1
  19025.                     End If
  19026.                End Forall
  19027.                note.SendTo = sNewNames
  19028. 'we have to update the RequiredAttendees item so invitees can see who else has been invited               
  19029.                note.RequiredAttendees = vNewRequiredNames               
  19030.           End If
  19031. 'check OptionalAttendees
  19032.           If (vCopyToNames(0) <> "") Then
  19033. 'initialize some variables
  19034.                newcounter = 0               
  19035.                Redim sNewNames(Ubound(vCopyToNames))
  19036.                If (Isarray(OriginalOptional)) Then
  19037. 'optional invitees already exist; copy them into a local variable                    
  19038.                     Redim vNewOptionalNames(Ubound(OriginalOptional) + Ubound(vCopyToNames)+1)
  19039.                     Forall names In OriginalOptional
  19040.                          vNewOptionalNames(newcounter) = names
  19041.                          newcounter = newcounter+1
  19042.                     End Forall
  19043.                Else
  19044.                     Redim vNewOptionalNames(Ubound(vCopyToNames))
  19045.                End If
  19046.                counter = 0
  19047.                Forall names In vCopyToNames
  19048.                     Call GetNameComponents(Cstr(names),sCanonicalName,sDomainName)
  19049.                     bInviteeExists = FindInvitee(sCanonicalName)
  19050. 'if the invitee wasn't found, then add them keep them in the list and add them to the table
  19051.                     If (bInviteeExists = -1) Then
  19052.                          sNewNames(counter) = names
  19053.                          vNewOptionalNames(newcounter) = names                         
  19054.                          Call AddInviteeToInviteeTable(Cstr(names),"")
  19055.                          counter = counter + 1
  19056.                          newcounter = newcounter + 1
  19057.                     End If
  19058.                End Forall
  19059.                note.CopyTo = sNewNames
  19060.                note.OptionalAttendees = vNewOptionalNames
  19061.           End If
  19062.      Case 2     'second & final time being called
  19063. 'we need to update the RequiredAttendees and OptionalAttendees fields
  19064. 'first, update the RequiredAttendees item only if there are values in the SendTo item
  19065.           If (vSendToNames(0) <> "") Then
  19066. 'intialize variables
  19067.                newcounter = 0               
  19068.                If (Isarray(OriginalRequired)) Then
  19069. 'required invitees already exist; copy them into a local variable      
  19070.                     If (OriginalRequired(0) = "") And (Ubound(OriginalRequired) = 0) Then
  19071.                          Redim vNewRequiredNames(Ubound(vSendToNames))
  19072.                     Else                         
  19073.                          Redim vNewRequiredNames(Ubound(OriginalRequired) + Ubound(vSendToNames)+1)
  19074.                          Forall names In OriginalRequired
  19075.                               If (names <> "") Then
  19076.                                    vNewRequiredNames(newcounter) = names
  19077.                                    newcounter = newcounter+1
  19078.                               End If                         
  19079.                          End Forall
  19080.                     End If                    
  19081.                Else
  19082.                     Redim vNewRequiredNames(Ubound(vSendToNames))
  19083.                End If
  19084. 'add the sendto names
  19085.                Forall names In vSendToNames
  19086.                     If (names <> "") Then                    
  19087.                          vNewRequiredNames(newcounter) = names
  19088.                          newcounter = newcounter + 1
  19089.                     End If                    
  19090.                End Forall
  19091.                note.RequiredAttendees = vNewRequiredNames
  19092.           End If
  19093. 'update the OptionalAttendees item only if there are values in the CopyTo item
  19094.           If (vCopyToNames(0) <> "") Then
  19095. 'intialize variables
  19096.                newcounter = 0               
  19097.                If (Isarray(OriginalOptional)) Then
  19098. 'optional invitees already exist; copy them into a local variable                    
  19099.                     If (OriginalOptional(0) = "") And (Ubound(OriginalOptional) = 0) Then                    
  19100.                          Redim vNewOptionalNames(Ubound(vCopyToNames))
  19101.                     Else                         
  19102.                          Redim vNewOptionalNames(Ubound(OriginalOptional) + Ubound(vCopyToNames)+1)
  19103.                          Forall names In OriginalOptional
  19104.                               If (names <> "") Then                         
  19105.                                    vNewOptionalNames(newcounter) = names
  19106.                                    newcounter = newcounter+1
  19107.                               End If                         
  19108.                          End Forall
  19109.                     End If                    
  19110.                Else
  19111.                     Redim vNewOptionalNames(Ubound(vCopyToNames))
  19112.                End If
  19113. 'add the copyto names
  19114.                Forall names In vCopyToNames
  19115.                     If (names <> "") Then                    
  19116.                          vNewOptionalNames(newcounter) = names
  19117.                          newcounter = newcounter + 1
  19118.                     End If                    
  19119.                End Forall
  19120.                note.OptionalAttendees = vNewOptionalNames 
  19121.           End If   
  19122.      Case Else
  19123.      End Select
  19124.      Exit Sub
  19125.      
  19126. ErrorRoutine:
  19127.      Messagebox Error & " (BuildAttendeeList)"
  19128.      Exit Sub
  19129.      
  19130. End Sub
  19131. '++LotusScript Development Environment:2:2:SelectUserToRemove:1:8
  19132. Sub SelectUserToRemove
  19133.     *This routine is called whenever the user selects to remove people from a meeting
  19134.     *This routine displays a dialog box that allows the user to select those people 
  19135.      that should be removed
  19136.     *If people were selected, this routine calls RemoveInvitee to send out StatusUpdate notices
  19137. %END REM
  19138.      
  19139.      On Error Goto ErrorRoutine
  19140.      
  19141. 'first, get the status of the attendees
  19142.      If Not(HasInviteeInfo) Then Call GetInviteeStatus(note,False)
  19143.      If Not(HasBeenProcessed) Then Call ProcessInviteeTable(note)
  19144.      
  19145. 'get the list of people who can be uninvited 
  19146.      note.tmpAccepted = UsersAccepted
  19147.      note.tmpDeclined = UsersDeclined
  19148.      note.tmpDelegated = UsersDelegated
  19149.      note.tmpCountered = UsersCountered
  19150.      note.tmpWaiting = UsersWaiting
  19151.      note.tmpHeader = "Select the people you want to remove:"
  19152.      tmpPeopleList = Evaluate("@Trim(@Replace(tmpAccepted:tmpDeclined:tmpDelegated:tmpCountered:tmpWaiting;Uninvited;""""))",note)
  19153.      note.tmpPeopleList = tmpPeopleList
  19154.      
  19155. 'display the dialog so the user can select people
  19156.      If (ws.DialogBox("(PeopleListDlg)",True,True,False,False,False,False,"Remove Invitees") = True) Then
  19157. 'the user has uninvited people from the meeting
  19158.           If (note.HasItem("OrgRepeat")) Then
  19159.                Messagebox "The invitees selected will be removed for the current repeat instance only.",0,"Status"
  19160.                note.tmpRescheduleWhich = "0"
  19161.                note.RescheduleWhich = "0"
  19162.           End If
  19163. 'we can only remove people from the current repeat instance          
  19164. 'append the latest uninvited people to the uninvited field
  19165.           tmpUninvitedList = Evaluate("@Trim(@Unique(Uninvited : tmpPeopleSelected))",note)
  19166.           note.Uninvited = tmpUninvitedList
  19167.           If(note.tmpPeopleSelected(0) <> "") Then Call RemoveInvitee
  19168.           Call uidoc.Save
  19169.           note.removeitem("tmpRescheduleWhich")
  19170.           note.RemoveItem("RescheduleWhich")
  19171.           Call MarkTempFields(note)
  19172.           Call note.Save(True,True,True)
  19173.      End If
  19174.      Exit Sub
  19175.      
  19176. ErrorRoutine:
  19177.      Messagebox Error & " (SelectUserToRemove)"
  19178.      Exit Sub
  19179. End Sub
  19180. '++LotusScript Development Environment:2:2:ChangeStatus:1:8
  19181. Sub ChangeStatus
  19182.     *This routine is called whenever the user wants to require that an invitee attend a meeting
  19183.     *This routine displays a dialog box that allows the user to select those people 
  19184.      that should be required to attend
  19185.     *This routine sends a StatusUpdate notice to the specified user with the OrgStatus item
  19186.        set to ORS_STATUS_ACCEPTED
  19187. %END REM
  19188.      Dim nIndex As Integer
  19189.      
  19190.      On Error Goto ErrorRoutine
  19191. 'first, get the status of the attendees
  19192.      If Not(HasInviteeInfo) Then Call GetInviteeStatus(note,False)
  19193.      If Not(HasBeenProcessed) Then Call ProcessInviteeTable(note)
  19194.      
  19195.      note.tmpHeader = "Select the people you want to Accept:"
  19196.      
  19197.      note.tmpAccepted = UsersAccepted
  19198.      note.tmpDeclined = UsersDeclined
  19199.      note.tmpDelegated = UsersDelegated
  19200.      note.tmpCountered = UsersCountered
  19201.      note.tmpWaiting = UsersWaiting
  19202.      
  19203.      tmpPeopleList = Evaluate("@Trim(@Replace(tmpDeclined:tmpDelegated:tmpCountered:tmpWaiting;tmpAccepted:Uninvited;""""))",note)
  19204.      note.tmpPeopleList = tmpPeopleList    
  19205. 'clear out the tmpAction item
  19206.      note.tmpAction = ""
  19207. 'display the dialog so the user can select people
  19208.      If (ws.DialogBox("(PeopleListDlg)",True,True,False,False,False,False,"Change Status") = True) Then
  19209. 'the user has selected people 
  19210.           tmpChangeList = note.tmpPeopleSelected
  19211. 'for everyone selected, do the following          
  19212.              If (tmpChangeList(0) <> "") Then
  19213.                   Forall cs In tmpChangeList
  19214. 'create the change status notice and send it out               
  19215.                           Call CreateNoticeDocument("You are required to attend this appointment - ",ORS_MSGTYPE_STATUSUPDATE,36,1)
  19216.                           notice.OrgStatus = ORS_STATUS_ACCEPTED
  19217.                     nIndex = FindInvitee(Cstr(cs))
  19218.                     If (nIndex = -1) Then
  19219.                          notice.SendTo = Cstr(cs)
  19220.                     Else
  19221.                          If (InviteeList(nIndex).Domain <> "") Then
  19222.                               notice.SendTo = InviteeList(nIndex).InviteeName & "@" & InviteeList(nIndex).Domain
  19223.                          Else
  19224.                               notice.SendTo = InviteeList(nIndex).InviteeName                        
  19225.                          End If
  19226.                          InviteeList(nIndex).Status = ORS_MSGTYPE_ACCEPT
  19227.                          InviteeList(nIndex).KeepPosted = "1"
  19228.                     End If
  19229.                     Call notice.Send(False)
  19230. 'create the acceptance notice (as if it had come from the invitee)
  19231.                           Call CreateNoticeDocument("Accepted - ",ORS_MSGTYPE_ACCEPT,83,1)
  19232. 'update specific fields
  19233.                           notice.Subject = "Accepted - " & notice.Topic(0)
  19234.                           notice.Principal = cs
  19235.                           notice.InviteeName = cs
  19236.                     If (nIndex > -1) Then
  19237.                          If (InviteeList(nIndex).Domain <> "") Then note.FromDomain = InviteeList(nIndex).Domain
  19238.                     End If
  19239.                     notice.Chair = Owner
  19240.                     notice.PostedDate = Now()
  19241.                           Call notice.Save(True,True,True)
  19242.                   End Forall
  19243.                   Messagebox "A Change Status notice has been sent to the people selected.",0,"Status"
  19244.              End If       
  19245.      End If
  19246.      
  19247.      Exit Sub
  19248.      
  19249. ErrorRoutine:
  19250.      Messagebox Error & " (ChangeStatus)"
  19251.      Exit Sub     
  19252. End Sub
  19253. '++LotusScript Development Environment:2:2:RollbackAppointment:1:8
  19254. Sub RollbackAppointment(BusyPriority As String)
  19255.     *This routine is called from SendInvitation for one of two reasons
  19256.      Either the uidoc.Send failed and we need to get the original values
  19257.      Or the uidoc.Send was successful and we are modifying the note/uidoc to be a meeting
  19258.     *This routine changes a meeting invitation notice back into an appointment document
  19259. %END REM
  19260.      
  19261.      note.Form = "Appointment"
  19262.      note.Subject = note.Topic
  19263.      note.CalendarDateTime = note.StartDateTime
  19264.      note.tmpOwner = Owner
  19265.      note.OrgTable = ORS_ITEM_CALENDAR
  19266.      tmpRequiredAttendees = Evaluate("@Trim(@Replace(RequiredAttendees;SendTo;""""))",note)
  19267.      tmpOptionalAttendees = Evaluate("@Trim(@Replace(OptionalAttendees;CopyTo;""""))",note)
  19268.      note.RequiredAttendees = tmpRequiredAttendees
  19269.      note.OptionalAttendees = tmpOptionalAttendees
  19270.      Call note.RemoveItem("MailOptions")
  19271. 'we only add the $BusyName if this is not the repeat parent
  19272.      If Not(note.HasItem("RepeatIds")) Then Call note.ReplaceItemValue("$BusyName",Owner)
  19273.      Call note.ReplaceItemValue("$BusyPriority",BusyPriority)
  19274.      Call note.ReplaceItemValue("_ViewIcon",158)
  19275.      Call note.RemoveItem("Topic")
  19276.      Call note.RemoveItem("NoticeType")
  19277.      note.tmpAction = ""
  19278. End Sub
  19279. tmpAccepted
  19280. tmpDeclined
  19281. tmpDelegated
  19282. tmpCountered
  19283. tmpWaiting
  19284. Uninvited
  19285.     0S0E
  19286. Uninvited
  19287. tmpPeopleSelected
  19288.     5S6S
  19289. tmpDeclined
  19290. tmpDelegated
  19291. tmpCountered
  19292. tmpWaiting
  19293. tmpAccepted
  19294. Uninvited
  19295.     0S0E
  19296. RequiredAttendees
  19297. SendTo
  19298.     0S0E
  19299. OptionalAttendees
  19300. CopyTo
  19301.     0S0E
  19302. O=Lotus Notes
  19303. O=Lotus Notes
  19304. PURSAFO
  19305. |.:#U
  19306. O=Lotus Notes
  19307. CN=Lotus Notes Template Development/O=Lotus Notes
  19308. PURSAFO
  19309. Fde!f^^
  19310. $ScriptLib
  19311. $ScriptLib_O
  19312. $TITLE
  19313. $Flags
  19314. $PublicAccess
  19315. '++LotusScript Development Environment:2:5:(Options):0:74
  19316. Option Public
  19317. Use "SharedWorkflowLibrary"
  19318. '++LotusScript Development Environment:2:5:(Forward):0:1
  19319. Declare Sub Initialize
  19320. Declare Sub CreateInviteeTable(pNote As NotesDocument)
  19321. Declare Sub IncreaseInviteeTable()
  19322. Declare Sub DecreaseInviteeTable()
  19323. Declare Sub GetNameComponents(pInviteeName As String,pRetCanonicalName As String,pRetDomain As String)
  19324. Declare Function FindInvitee(pInviteeName As String) As Integer
  19325. Declare Sub AddInviteeToInviteeTable(pInviteeName As String,pState As String)
  19326. Declare Sub GetInviteeResponseInfo(pNote As NotesDocument)
  19327. Declare Function CanUpdateInviteeInfo(Byval nIndex As Integer) As Integer
  19328. Declare Sub AddDelegeeToInviteeTable()
  19329. Declare Sub UpdateInviteeInfo(Byval nIndex As Integer)
  19330. Declare Sub AddInviteeResponseToInviteeTable()
  19331. Declare Sub BuildInviteeResponsesList(pNote As NotesDocument)
  19332. Declare Sub GetInviteeStatus(pNote As NotesDocument,Byval nForce As Integer)
  19333. Declare Sub ProcessInviteeTable(pNote As NotesDocument)
  19334. Declare Sub GetMailingList()
  19335. Declare Sub AcceptCounterProposal 
  19336. Declare Sub DeclineCounterProposal
  19337. Declare Sub AddUninvitedToInviteeList()
  19338. Declare Function GetInviteeMailAddress(pName As String) As String
  19339. '++LotusScript Development Environment:2:5:(Declarations):0:10
  19340. Dim InviteeList() As InviteeTable
  19341. Dim InviteeResponseInfo As InviteeTable
  19342. Dim HasBeenProcessed As Integer
  19343. Dim HasInviteeInfo As Integer
  19344. Dim InviteeCounter As Integer
  19345. Dim InviteeMaxEntries As Integer
  19346. Dim UsersAccepted() As String
  19347. Dim UsersDeclined() As String
  19348. Dim UsersDelegated() As String
  19349. Dim UsersCountered() As String
  19350. Dim UsersWaiting() As String
  19351. Dim ResourcesReserved() As String
  19352. Dim ResourcesDeclined() As String
  19353. Dim ResourcesWaiting() As String
  19354. Dim Delegees() As String
  19355. Dim MailingList() As String
  19356. Dim NumKeepPosted As Integer
  19357. Dim UpdatedInvitees As Variant
  19358. Dim numAccepted As Integer
  19359. Dim numDeclined As Integer
  19360. Dim numDelegated As Integer
  19361. Dim numCountered As Integer
  19362. Dim numWaiting As Integer
  19363. Dim numResAccepted As Integer
  19364. Dim numResDeclined As Integer
  19365. Dim numResWaiting As Integer 
  19366. '++LotusScript Development Environment:2:2:Initialize:1:10
  19367. Sub Initialize
  19368.      
  19369. End Sub
  19370. '++LotusScript Development Environment:2:2:CreateInviteeTable:1:8
  19371. Sub CreateInviteeTable(pNote As NotesDocument)
  19372.      Dim RequiredAttendees As Variant
  19373.      Dim OptionalAttendees As Variant
  19374.      Dim Resources As Variant
  19375.      Dim Room As String
  19376.      
  19377.         InviteeMaxEntries = CS_INVITEE_INDEX
  19378.         InviteeCounter = 0
  19379.         HasInviteeInfo = False
  19380.         HasBeenProcessed = False
  19381.      
  19382.      Redim InviteeList(InviteeMaxEntries)
  19383.      
  19384.      RequiredAttendees = pNote.RequiredAttendees
  19385.      OptionalAttendees = pNote.OptionalAttendees
  19386.      Resources = pNote.RequiredResources
  19387.      Room = pNote.Room(0)
  19388.      
  19389. 'initialize the invitee table to values that exist on the passed in note
  19390.      If (RequiredAttendees(0) <> "") Then
  19391.           Forall names In RequiredAttendees
  19392.                Call AddInviteeToInviteeTable(Cstr(names),"")
  19393.           End Forall
  19394.      End If
  19395.      If (OptionalAttendees(0) <> "") Then
  19396.           Forall names In OptionalAttendees
  19397.                Call AddInviteeToInviteeTable(Cstr(names),"")
  19398.           End Forall          
  19399.      End If
  19400.      
  19401.      If (pNote.Uninvited(0) <> "") Then Call AddUninvitedToInviteeList
  19402.      
  19403.      If (Room <> "") Then Call AddInviteeToInviteeTable(Room,ORS_STATE_ROOM)
  19404.      
  19405.      If (Resources(0) <> "") Then
  19406.           Forall names In Resources
  19407.                Call AddInviteeToInviteeTable(Cstr(names),ORS_STATE_RESOURCE)
  19408.           End Forall
  19409.      End If
  19410. End Sub
  19411. '++LotusScript Development Environment:2:2:IncreaseInviteeTable:1:8
  19412. Sub IncreaseInviteeTable()
  19413.      
  19414.         InviteeMaxEntries = InviteeMaxEntries + CS_INVITEE_INDEX
  19415.      Redim Preserve InviteeList(InviteeMaxEntries)
  19416. End Sub
  19417. '++LotusScript Development Environment:2:2:DecreaseInviteeTable:1:8
  19418. Sub DecreaseInviteeTable()
  19419.         InviteeMaxEntries = InviteeCounter
  19420.      Redim Preserve InviteeList(InviteeMaxEntries)
  19421. End Sub
  19422. '++LotusScript Development Environment:2:2:GetNameComponents:1:8
  19423. Sub GetNameComponents(pInviteeName As String,pRetCanonicalName As String,pRetDomain As String)
  19424.      
  19425.      Dim pos As Integer
  19426.      
  19427.      
  19428.      pos = Instr(pInviteeName,"@")
  19429.      
  19430.      If(pos > 0) Then
  19431.           Set nam = New NotesName(Left$(pInviteeName,pos-1))     
  19432.           pRetCanonicalName = nam.Canonical
  19433.           pRetDomain = Right$(pInviteeName,Len(pInviteeName)-pos)
  19434.      Else
  19435.           Set nam = New NotesName(pInviteeName)     
  19436.           pRetCanonicalName = nam.Canonical
  19437.           pRetDomain = ""
  19438.      End If
  19439. End Sub
  19440. '++LotusScript Development Environment:2:1:FindInvitee:1:8
  19441. Function FindInvitee(pInviteeName As String) As Integer
  19442.     *Given an InviteeTable and an invitee name find the index position
  19443.     *Returns -1 if the user cannot be found
  19444. %END REM
  19445.      Dim key As New NotesName(pInviteeName)
  19446.         Dim x As Integer
  19447.      
  19448.         For x = 0 To (InviteeCounter - 1)
  19449.           Set findname = New NotesName(InviteeList(x).InviteeName)
  19450. 'do a canonical name comparison
  19451.           If Lcase(key.Canonical) = Lcase(findname.Canonical) Then
  19452.                         FindInvitee = x    
  19453.                Exit Function
  19454. 'do a common name comparison               
  19455.           Elseif Lcase(key.Common) = Lcase(findname.Common) Then
  19456.                FindInvitee = x 
  19457.                Exit Function               
  19458.                 End If
  19459.         Next
  19460.      
  19461.         FindInvitee = -1
  19462. End Function
  19463. '++LotusScript Development Environment:2:2:AddInviteeToInviteeTable:1:8
  19464. Sub AddInviteeToInviteeTable(pInviteeName As String,pState As String)
  19465.     *Adds an existing invitee to the invitee table
  19466. %END REM
  19467.      Dim CanonicalName As String
  19468.      Dim domain As String
  19469.      
  19470.      
  19471.     'see if we need to increase the invitee table
  19472.         If(InviteeCounter = InviteeMaxEntries) Then Call IncreaseInviteeTable()
  19473.      
  19474.     'get the canonical and domain name from the inviteename
  19475.         Call GetNameComponents(pInviteeName,CanonicalName,Domain)
  19476.      
  19477.      InviteeList(InviteeCounter).InviteeName = CanonicalName
  19478.      InviteeList(InviteeCounter).Status = ORG_STATUS_WAITING
  19479.      InviteeList(InviteeCounter).State = pState
  19480.      InviteeList(InviteeCounter).KeepPosted = "1"
  19481.      
  19482.      If(Domain <> "") Then InviteeList(InviteeCounter).Domain = Domain
  19483.      
  19484.      NumKeepPosted = NumKeepPosted + 1
  19485.      InviteeCounter = InviteeCounter + 1
  19486.      If (pState <> "") Then
  19487.           numResWaiting = numResWaiting + 1
  19488.      Else
  19489.           numWaiting = numWaiting + 1
  19490.      End If
  19491. End Sub
  19492. '++LotusScript Development Environment:2:2:GetInviteeResponseInfo:1:8
  19493. Sub GetInviteeResponseInfo(pNote As NotesDocument)
  19494.      
  19495.         InviteeResponseInfo.CreationDate = pNote.Created
  19496.         InviteeResponseInfo.SequenceNum = pNote.SequenceNum(0)
  19497.         InviteeResponseInfo.InviteeName = pNote.Principal(0)
  19498.         If pNote.HasItem("FromDomain") Then
  19499.                 InviteeResponseInfo.Domain = pNote.FromDomain(0)
  19500.         Else
  19501.                 InviteeResponseInfo.Domain = ""
  19502.         End If
  19503.         
  19504.         If pNote.HasItem("OrgState") Then 
  19505.                 InviteeResponseInfo.State = pNote.OrgState(0)
  19506.         Else
  19507.                 InviteeResponseInfo.State = ""
  19508.         End If
  19509.      
  19510.      InviteeResponseInfo.Status = pNote.NoticeType(0)
  19511.      
  19512.      Select Case InviteeResponseInfo.Status
  19513.      Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  19514.           InviteeResponseInfo.KeepPosted = "1"
  19515.      Case ORS_MSGTYPE_REJECT
  19516.           InviteeResponseInfo.KeepPosted = ""
  19517.      Case ORS_MSGTYPE_COUNTER
  19518.           InviteeResponseInfo.KeepPosted = "1"
  19519.      Case ORS_MSGTYPE_DELEGATING
  19520.           InviteeResponseInfo.KeepPosted = ""
  19521.           InviteeResponseInfo.Delegee = pNote.Delegee(0)
  19522.           Call AddDelegeeToInviteeTable
  19523.      End Select
  19524. End Sub 
  19525. '++LotusScript Development Environment:2:1:CanUpdateInviteeInfo:1:8
  19526. Function CanUpdateInviteeInfo(Byval nIndex As Integer) As Integer
  19527.     *Determines if InviteeRepsonseInfo should be updated in InviteeTable
  19528. %END REM
  19529.      
  19530. 'if the sequencenum is greater than the existing one, we can add them
  19531.      If (InviteeList(nIndex).Status = ORS_STATUS_REMOVED) Then
  19532.           CanUpdateInviteeInfo = False
  19533.           Exit Function
  19534.      End If
  19535.      If (InviteeResponseInfo.SequenceNum > InviteeList(nIndex).SequenceNum) Then
  19536.                 CanUpdateInviteeInfo = True
  19537.                 Exit Function
  19538.      Elseif (InviteeResponseInfo.SequenceNum = InviteeList(nIndex).SequenceNum) Then
  19539. 'the SequeceNum items are equal; compare creation date
  19540.           If (InviteeResponseInfo.CreationDate > InviteeList(nIndex).CreationDate.LSLocalTime) Then
  19541.                         CanUpdateInviteeInfo = True
  19542.                         Exit Function
  19543.                 Else
  19544.                         CanUpdateInviteeInfo = False
  19545.                         Exit Function
  19546.                 End If
  19547.         End If
  19548.      
  19549. 'if we made it this far, then we can't update the inviteetable
  19550.         CanUpdateInviteeInfo = False
  19551. End Function
  19552. '++LotusScript Development Environment:2:2:AddDelegeeToInviteeTable:1:8
  19553. Sub AddDelegeeToInviteeTable()
  19554.      
  19555.      Dim CanonicalName As String
  19556.      Dim Domain As String
  19557.         Dim nIndex As Integer
  19558.      
  19559. 'get the name components
  19560.         Call GetNameComponents(InviteeResponseInfo.Delegee,CanonicalName,Domain)
  19561.      
  19562. 'set the domain
  19563.         If (Domain = "") Then
  19564.                 If(InviteeResponseInfo.Domain <> "") Then Domain = InviteeResponseInfo.Domain
  19565.         End If
  19566.         
  19567.      nIndex = FindInvitee(CanonicalName)
  19568.      
  19569.         If (nIndex = -1) Then
  19570. 'we didn't find the delegee -> this is the more likely case since we would only find the delegee
  19571. 'if they had replied before we had received the delegation notice
  19572.              
  19573. 'make sure we can add the delegee
  19574.                 If (InviteeCounter = InviteeMaxEntries) Then Call IncreaseInviteeTable()
  19575.           Set InviteeList(InviteeCounter).CreationDate = New NotesDateTime(InviteeResponseInfo.CreationDate)
  19576.           InviteeList(InviteeCounter).SequenceNum = InviteeResponseInfo.SequenceNum
  19577.           InviteeList(InviteeCounter).InviteeName = CanonicalName
  19578.           InviteeList(InviteeCounter).Domain = Domain
  19579.           InviteeList(InviteeCounter).Status = ORG_STATUS_WAITING
  19580.           InviteeList(InviteeCounter).State = ""
  19581.           InviteeList(InviteeCounter).Delegee = ""
  19582.           InviteeList(InviteeCounter).KeepPosted = "1"
  19583.           InviteeCounter = InviteeCounter + 1
  19584.      Else
  19585. 'the delegee already exists in the table
  19586. 'make sure we can update their info
  19587.                 If (CanUpdateInviteeInfo(nIndex)) Then
  19588.                Set InviteeTable.CreationDate(nIndex) = New NotesDateTime(InviteeResponseInfo.CreationDate)
  19589.                InviteeList(nIndex).SequenceNum = InviteeResponseInfo.SequenceNum
  19590.                InviteeList(nIndex).InviteeName = CanonicalName
  19591.                InviteeList(nIndex).Domain = Domain
  19592.                InviteeList(nIndex).Status = InviteeResponseInfo.Status
  19593.                InviteeList(nIndex).State = ""
  19594.                InviteeList(nIndex).Delegee = ""
  19595.                InviteeList(nIndex).KeepPosted = "1"
  19596.           End If 
  19597.      End If
  19598. End Sub
  19599. '++LotusScript Development Environment:2:2:UpdateInviteeInfo:1:8
  19600. Sub UpdateInviteeInfo(Byval nIndex As Integer)
  19601.      Dim IsPerson As Integer
  19602.      
  19603.      Set InviteeList(nINdex).CreationDate = New NotesDateTime(InviteeResponseInfo.CreationDate)
  19604.      InviteeList(nIndex).SequenceNum = InviteeResponseInfo.SequenceNum
  19605.      InviteeList(nIndex).InviteeName = InviteeResponseInfo.InviteeName
  19606.      InviteeList(nIndex).Domain = InviteeResponseInfo.Domain
  19607.      InviteeList(nIndex).Status = InviteeResponseInfo.Status
  19608.      InviteeList(nIndex).State = InviteeResponseInfo.State
  19609.      InviteeList(nIndex).Delegee = InviteeResponseInfo.Delegee
  19610.      InviteeList(nIndex).KeepPosted = InviteeResponseInfo.KeepPosted
  19611.      If (InviteeResponseInfo.KeepPosted = "1") Then NumKeepPosted = NumKeepPosted + 1
  19612.      
  19613.      If (InviteeResponseInfo.State <> "") Then
  19614.           IsPerson  = False
  19615.      Else
  19616.           IsPerson = True
  19617.      End If
  19618.      
  19619.      Select Case InviteeResponseInfo.Status
  19620.      Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  19621.           If (IsPerson) Then          
  19622.                numAccepted = numAccepted+1
  19623.           Else
  19624.                numResAccepted = numResAccepted + 1
  19625.           End If
  19626.      Case ORS_MSGTYPE_REJECT
  19627.           If (IsPerson) Then          
  19628.                numDeclined = numDeclined+1
  19629.           Else
  19630.                numResDeclined = numResDeclined + 1
  19631.           End If
  19632.      Case ORS_MSGTYPE_COUNTER
  19633.           numCountered = numCountered+1
  19634.      Case ORS_MSGTYPE_DELEGATING
  19635.           numDelegated = numDelegated+1
  19636.      Case ORG_STATUS_WAITING
  19637.           If (IsPerson) Then          
  19638.                numWaiting = numWaiting + 1
  19639.           Else
  19640.                numResWaiting = numResWaiting + 1
  19641.           End If
  19642.      End Select
  19643. End Sub
  19644. '++LotusScript Development Environment:2:2:AddInviteeResponseToInviteeTable:1:8
  19645. Sub AddInviteeResponseToInviteeTable()
  19646.      
  19647.      If (InviteeCounter = InviteeMaxEntries) Then Call IncreaseInviteeTable()
  19648.            Call UpdateInviteeInfo(InviteeCounter)        
  19649.            InviteeCounter = InviteeCounter + 1
  19650. End Sub
  19651. '++LotusScript Development Environment:2:2:BuildInviteeResponsesList:1:8
  19652. Sub BuildInviteeResponsesList(pNote As NotesDocument)
  19653.     *Gets the most recent reply from an invitee
  19654. %END REM
  19655.      
  19656.         Dim responses As NotesDocumentCollection
  19657.         Dim nIndex As Integer
  19658.         Dim reply As NotesDocument
  19659.      
  19660. 'first, get a collection of responses to process
  19661.         Set responses = pNote.Responses
  19662.      
  19663.         If(responses.Count = 0) Then Exit Sub
  19664.      
  19665.         Set reply = responses.GetFirstDocument()
  19666.      
  19667.         While Not(reply Is Nothing)    
  19668.                 If(reply.Form(0) = "Notice") Then
  19669. 'get the response items
  19670.                Call GetInviteeResponseInfo(reply)
  19671. 'see if the invitee exists or not
  19672.                nIndex = FindInvitee(InviteeResponseInfo.InviteeName)
  19673.                      
  19674.                         If(nIndex = -1) Then
  19675. 'the user was not found, so we need to add them
  19676.                                 Call AddInviteeResponseToInviteeTable()
  19677.                         Else
  19678. 'the user was found; update their info if we can
  19679.                     If (CanUpdateInviteeInfo(nIndex)) Then Call UpdateInviteeInfo(nIndex)
  19680.                         End If
  19681.                 End If
  19682. 'get the next reply
  19683.                 Set reply = responses.GetNextDocument(reply)
  19684.         Wend        
  19685. End Sub
  19686. '++LotusScript Development Environment:2:2:GetInviteeStatus:1:8
  19687. Sub GetInviteeStatus(pNote As NotesDocument,Byval nForce As Integer)
  19688.     *This routine will build the invitee response table, and then fill global array values
  19689.         with the result
  19690.     *If the table has already been built by a different function and nForce is not True
  19691.         then the cached table will be returned
  19692. %END REM
  19693.      
  19694.         If (nForce) Then
  19695. 'we want to update the table regardless of the state
  19696.           Call BuildInviteeResponsesList(pNote)
  19697.                 HasInviteeInfo = True
  19698. 'only build the table if it isn't cached
  19699. 'it would be cached if a different calling function already built the table
  19700.         Elseif Not(HasInviteeInfo) Then
  19701.           Call BuildInviteeResponsesList(pNote)
  19702.                 HasInviteeInfo = True
  19703.         Else
  19704. 'the table is already uptodate; exit this function
  19705.                 Exit Sub
  19706.         End If
  19707.      
  19708. End Sub
  19709. '++LotusScript Development Environment:2:2:ProcessInviteeTable:1:8
  19710. Sub ProcessInviteeTable(pNote As NotesDocument)
  19711.      
  19712. 'now that we've built the table, iterate through it and fill in the various items
  19713.         Redim UsersAccepted(numAccepted)
  19714.         Redim UsersDeclined(numDeclined)
  19715.         Redim UsersDelegated(numDelegated)
  19716.      Redim Delegees(numDelegated)     
  19717.      Redim UsersCountered(numCountered)
  19718.         Redim UsersWaiting(numWaiting)
  19719.      Redim ResourcesReserved(numResAccepted)
  19720.         Redim ResourcesDeclined(numResDeclined)
  19721.         Redim ResourcesWaiting(numResWaiting)
  19722.      
  19723.         numAccepted = 0
  19724.         numDeclined = 0
  19725.         numDelegated = 0
  19726.         numCountered = 0
  19727.         numWaiting = 0
  19728.      numResAccepted = 0
  19729.         numResDeclined = 0
  19730.         numResWaiting = 0
  19731.      
  19732.         Dim x As Integer
  19733.      
  19734.         For x = 0 To (InviteeCounter - 1)
  19735.                 
  19736.           Select Case InviteeList(x).Status
  19737.           Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  19738.                If (InviteeList(x).SequenceNum < pNote.SequenceNum(0)) Then
  19739. 'if this is a person, then we are still waiting to here back from them                    
  19740.                     If(InviteeList(x).State = "") Then
  19741.                          UsersWaiting(numWaiting) = InviteeList(x).InviteeName
  19742.                          numWaiting = numWaiting + 1
  19743.                     Else
  19744. 'this is a room/resource; we are still waiting to here back from them
  19745.                          ResourcesWaiting(numResWaiting) = InviteeList(x).InviteeName
  19746.                          numResWaiting = numResWaiting + 1
  19747.                                 End If
  19748.                         Else
  19749.                     If(InviteeList(x).State <> "") Then
  19750. 'this is a room or resource; see if it has been removed
  19751.                          If Not(IsRemoved(InviteeList(x).InviteeName,InviteeList(x).State)) Then
  19752.                               ResourcesReserved(numResAccepted) = InviteeList(x).InviteeName
  19753.                               numResAccepted = numResAccepted + 1
  19754.                                         End If
  19755.                                 Else
  19756. 'this is a person
  19757.                          UsersAccepted(numAccepted) = InviteeList(x).InviteeName
  19758.                                         numAccepted = numAccepted+1
  19759.                                 End If
  19760.                         End If
  19761.                 Case ORS_MSGTYPE_REJECT
  19762.                If(InviteeList(x).State <> "") Then
  19763. 'if this is a room or resource, see if it has been removed           
  19764.                     If Not(IsRemoved(InviteeList(x).InviteeName,InviteeList(x).State)) Then
  19765. 'if the sequencenum of the response is < pNote, then the resource has not responded
  19766.                          If (InviteeList(x).SequenceNum < pNote.SequenceNum(0)) Then
  19767.                               ResourcesWaiting(numResWaiting) = InviteeList(x).InviteeName                         
  19768.                               numResWaiting = numResWaiting + 1
  19769.                          Else                         
  19770.                               ResourcesDeclined(numResDeclined) = InviteeList(x).InviteeName
  19771.                                              numResDeclined = numResDeclined + 1
  19772.                          End If                         
  19773.                     End If
  19774.                         Else
  19775. 'this is a person
  19776.                     UsersDeclined(numDeclined) = InviteeList(x).InviteeName
  19777.                     numDeclined = numDeclined+1
  19778.                         End If
  19779.           Case ORS_MSGTYPE_COUNTER
  19780.                If (InviteeList(x).SequenceNum < pNote.SequenceNum(0)) Then
  19781.                     UsersWaiting(numWaiting) = InviteeList(x).InviteeName
  19782.                                    numWaiting = numWaiting + 1
  19783.                Else
  19784. 'this is a person -> Resources cannot CounterPropose!!!
  19785.                     UsersCountered(numCountered) = InviteeList(x).InviteeName
  19786.                                 numCountered = numCountered+1
  19787.                         End If
  19788.                 Case ORS_MSGTYPE_DELEGATING
  19789. 'this is a person -> Resources cannot Delegate!!!
  19790.                UsersDelegated(numDelegated) = InviteeList(x).InviteeName
  19791.                Delegees(numDelegated) = InviteeList(x).Delegee
  19792.                numDelegated = numDelegated+1
  19793.           Case ORG_STATUS_WAITING
  19794. 'we didn't get any reply from this invitee
  19795.                If(InviteeList(x).State <> "") Then
  19796. 'this is a resource
  19797.                     ResourcesWaiting(numResWaiting) = InviteeList(x).InviteeName
  19798.                                 numResWaiting = numResWaiting + 1
  19799.                         Else
  19800. 'this is a person
  19801.                     UsersWaiting(numWaiting) = InviteeList(x).InviteeName
  19802.                                 numWaiting = numWaiting + 1
  19803.                End If
  19804.           End Select
  19805.         Next    
  19806.         HasBeenProcessed = True
  19807. End Sub
  19808. '++LotusScript Development Environment:2:2:GetMailingList:1:8
  19809. Sub GetMailingList()
  19810.     *Gets the latest list of people who should receive an update
  19811.         Reschedule,Cancel,Confirmation
  19812. %END REM
  19813.         Dim x,counter As Integer
  19814.      
  19815. 'if this is a Repeating Meeting, we only need to get the invitees of the parent document
  19816.         If (note.HasItem("OrgRepeat")) Then
  19817. 'if this hasn't been cached, then we need to get both the parent and this instance's responses
  19818.           If Not(HasInviteeInfo) Then
  19819.                         Call GetInviteeStatus(ParentNote,False)
  19820.                         Call GetInviteeStatus(Note,True)
  19821.                 End If
  19822.      Else
  19823.                 Call GetInviteeStatus(note,False)
  19824.      End If
  19825.      
  19826. 'anyone who has accepted, countered, or is waiting, we need to send them the notice
  19827.      If (numKeepPosted = 0) Then 
  19828.           Redim MailingList(0)
  19829.           MailingList(0) = ""
  19830.           Exit Sub
  19831.      End If 
  19832.      
  19833.      Redim MailingList(numKeepPosted-1)
  19834.      
  19835.      For x = 0 To (InviteeCounter-1)
  19836. 'make sure we have a person; rooms and resources are handled separately
  19837.           If (InviteeList(x).State = "") Then
  19838.                If (InviteeList(x).KeepPosted = "1") Then               
  19839.                     If(InviteeList(x).Domain <> "") Then
  19840.                          MailingList(counter) = InviteeList(x).InviteeName & "@" & InviteeList(x).Domain
  19841.                                 Else
  19842.                          MailingList(counter) = InviteeList(x).InviteeName
  19843.                                 End If
  19844.                                 counter = counter + 1
  19845.                End If                    
  19846.           End If
  19847.      Next
  19848. End Sub
  19849. '++LotusScript Development Environment:2:2:AcceptCounterProposal:1:8
  19850. Sub AcceptCounterProposal 
  19851.  *This routine is called whenever the chair accepts a counter proposal
  19852.  *This routine increments the SequenceNum item and sends Reschedule notices
  19853.   to all people, room, and resources
  19854.  *The parentnote is updated to reflect the changes, since the current note object is the 
  19855.   notice document and not the chair's meeting document
  19856. %END REM
  19857.      
  19858.      Dim StartDateTime As Variant
  19859.      Dim EndDateTime As Variant
  19860.      Dim NewRoom As String
  19861.      Dim OldRoom As String
  19862.      
  19863.      
  19864.      On Error Resume Next
  19865.      
  19866.      Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  19867. 'make sure we have a parentnote object; if we don't, then exit this routine
  19868.      If (parentnote Is Nothing) Then Exit Sub
  19869.      
  19870.      Set trdr = session.CreateDateRange
  19871.      
  19872.      trdr.Text = uidoc.FieldGetText("NewTimeRange")
  19873.      
  19874.      Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  19875.      Set enddt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.EndDateTime.TimeOnly)
  19876.      
  19877.      Call CreateNoticeDocument("",ORS_MSGTYPE_RESCHEDULE,33,1)
  19878.      
  19879. 'add the items specific to the reschedule; this will overwrite items already set be the CreateNoticeDocument routine
  19880.      Set notice.StartDateTime = startdt
  19881.      Set notice.EndDateTime = enddt
  19882.      Set notice.StartDate =startdt
  19883.      
  19884.      NewRoom = note.NewRoom(0)
  19885.      OldRoom = parentnote.Room(0)
  19886.      
  19887. 'if the new room has a value, use it     
  19888.      If (NewRoom <> "") Then
  19889.           notice.Subject = "Reschedule- " & note.Topic(0) & " (" & GetSubjectText(startdt.LSLocalTime) & " in " & NewRoom & ")"
  19890.           parentnote.OriginalRoom = OldRoom
  19891.           notice.Room = NewRoom
  19892. 'if the old room has a value, use it
  19893.      Elseif (OldRoom <> "") Then
  19894.           notice.Subject = "Reschedule- "& note.Topic(0) & " (" & GetSubjectText(startdt.LSLocalTime) & " in " & OldRoom & ")"
  19895.           notice.Room = OldRoom
  19896.      Else
  19897.           notice.Subject = "Reschedule- " & note.Topic(0) & " (" & GetSubjectText(startdt.LSLocalTime) & ")"
  19898.      End If
  19899.      
  19900.      notice.Topic = note.Topic
  19901.      notice.Chair = Owner
  19902.      
  19903. 'we need to add the correct attendees to the sendto item
  19904.      
  19905.      Call CreateInviteeTable(parentnote)
  19906.      
  19907.      Call GetInviteeStatus(parentnote,False)
  19908.      Call ProcessInviteeTable(parentnote)
  19909.      Call GetMailingList
  19910.      
  19911. 'make sure we have a valid mailing list -> we should but we need to make sure just in case
  19912.      If (MailingList(0) = "") Then Exit Sub     
  19913.      notice.SendTo = MailingList
  19914.      
  19915. 'call the routine that updates the parentnote with the appropriate values
  19916.      Call UpdateOriginalInvitation(parentnote)
  19917.      
  19918.      notice.SequenceNum = parentnote.SequenceNum(0)
  19919.      Call notice.Send(False)
  19920.      Messagebox "The invitees have been notified of the change.",0,"Status"
  19921.      
  19922. 'see if the time is changing; if the time is changing, then we need to reschedule resources
  19923.      tmpResourcesInvited = parentnote.RequiredResources
  19924.      If (tmpResourcesInvited(0) <> "") Then
  19925.           Forall Resources In tmpResourcesInvited
  19926.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_RESOURCE,Cstr(Resources),parentnote)
  19927.                notice.StartDateTime = parentnote.StartDateTime
  19928.                notice.EndDateTime = parentnote.EndDateTime
  19929.                notice.StartDate = parentnote.StartDate
  19930.                notice.TimeRange = parentnote.TimeRange
  19931.                Call notice.Send(False)
  19932.           End Forall
  19933.      End If     
  19934.      
  19935. 'reschedule the room if need be
  19936.      If (parentnote.RoomRequired(0) = "1") Then
  19937.           If (NewRoom <> "") Then
  19938.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM,NewRoom,parentnote)       
  19939.           Else
  19940.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM,OldRoom,parentnote)
  19941.           End If
  19942.           notice.StartDateTime = parentnote.StartDateTime
  19943.           notice.EndDateTime = parentnote.EndDateTime
  19944.           notice.StartDate = parentnote.StartDate
  19945.           notice.TimeRange = parentnote.TimeRange
  19946.           Call notice.Send(False)     
  19947.      End If
  19948.      
  19949.      Exit Sub
  19950.      
  19951. ErrorRoutine:
  19952.      Messagebox Error & " (AcceptCounterProposal)"
  19953.      Exit Sub
  19954. End Sub
  19955. '++LotusScript Development Environment:2:2:DeclineCounterProposal:1:8
  19956. Sub DeclineCounterProposal
  19957.  *This routine is called when the Chair declines a counter proposal
  19958.  *A notice is sent back to the invitee informing them of the chair's decline
  19959. %END REM
  19960.      
  19961.      On Error Goto ErrorRoutine
  19962.      
  19963.      Call CreateNoticeDocument("",ORS_MSGTYPE_COUNTERREJECT,38,1)
  19964. 'we need to overwrite some items     
  19965.      notice.Subject = "Proposed Change Declined - " & note.Topic(0)
  19966.      notice.Topic = note.Topic
  19967.      notice.Chair = Owner
  19968.      
  19969.      If (note.HasItem("FromDomain")) Then     
  19970.           notice.sendTo= note.InviteeName(0) & " @ " & note.FromDomain(0)
  19971.      Else
  19972.           FromDomain = Evaluate("@Domain")
  19973.           notice.SendTo = note.InviteeName(0) & " @ " & FromDomain(0)
  19974.      End If       
  19975.      Set nam = New NotesName(note.Inviteename(0))
  19976.      
  19977.      Call notice.Send(False)
  19978.      Messagebox "A notice has been sent informing " & nam.Common & " that the proposal for a time/location change has been declined.",0,"Status"
  19979.      Exit Sub
  19980.      
  19981. ErrorRoutine:
  19982.      Messagebox Error & " (DeclineCounterProposal)"
  19983.      Exit Sub
  19984. End Sub
  19985. '++LotusScript Development Environment:2:2:AddUninvitedToInviteeList:1:8
  19986. Sub AddUninvitedToInviteeList()
  19987.      Dim nIndex As Integer
  19988.      Dim UninvitedList As Variant
  19989.      
  19990. 'find this person in the InviteeTable
  19991.      UninvitedList = note.Uninvited
  19992.      
  19993.      Forall names In UninvitedList
  19994.           nIndex = FindInvitee(Cstr(names))
  19995.           InviteeList(nIndex).Status = ORS_STATUS_REMOVED
  19996.           InviteeList(nIndex).KeepPosted = ""          
  19997.      End Forall
  19998. End Sub
  19999. '++LotusScript Development Environment:2:1:GetInviteeMailAddress:1:8
  20000. Function GetInviteeMailAddress(pName As String) As String
  20001.      
  20002.      Dim nIndex As Integer
  20003.      
  20004.      nIndex = FindInvitee(pName)
  20005.      
  20006.      If (nIndex = -1) Then
  20007. 'the invitee was not found          
  20008.           GetInviteeMailAddress = pName
  20009.           Exit Function          
  20010.      End If
  20011.      
  20012. 'see if there is a domain associated with this user
  20013.      If(InviteeList(nIndex).Domain <> "") Then
  20014.           GetInviteeMailAddress = InviteeList(nIndex).InviteeName & "@" & InviteeList(nIndex).Domain
  20015.      Else
  20016.           GetInviteeMailAddress = InviteeList(nIndex).InviteeName
  20017.      End If
  20018.      
  20019.      
  20020. End Function
  20021. O=Lotus Notes
  20022. O=Lotus Notes
  20023. PURSAFO
  20024. |.:#U
  20025. O=Lotus Notes
  20026. CN=Lotus Notes Template Development/O=Lotus Notes
  20027. PURSAFO
  20028. Fde!f^^
  20029. $ScriptLib
  20030. $ScriptLib_O
  20031. $TITLE
  20032. $Flags
  20033. $PublicAccess
  20034. '++LotusScript Development Environment:2:5:(Options):0:74
  20035. Option Public
  20036. Use "ObjectVariables"
  20037. '++LotusScript Development Environment:2:5:(Forward):0:1
  20038. Declare Sub EmailOpen
  20039. Declare Sub EmailModeChange
  20040. Declare Sub EmailSave(Continue)
  20041. Declare Sub EmailClose(Continue)
  20042. Declare Sub SaveDialog(SavedDoc)
  20043. Declare Sub CheckSecureMail
  20044. Declare Sub CreateOLEObject
  20045. '++LotusScript Development Environment:2:5:(Declarations):0:10
  20046. Dim newnote As NotesDocument
  20047. Dim DoNotClose As Variant
  20048. Dim ContinueSave As Variant
  20049. Dim TaskReply As Variant
  20050. Dim OLEObject As Variant
  20051. '++LotusScript Development Environment:2:2:EmailOpen:1:8
  20052. Sub EmailOpen
  20053.      
  20054.      If uidoc.InPreviewPane Then Exit Sub
  20055.      If note Is Nothing Then Call InstantiateObjectVariables
  20056.      
  20057.      If (note.HasItem("PostedDate") Or note.HasItem("DeliveredDate")) Then
  20058.           If uidoc.EditMode = False Then
  20059.                Exit Sub
  20060.           Else
  20061. 'If this is a message that was written by you or your mail file, we need to remove any options fields
  20062.                If note.From(0) = Owner Or note.From(0) = session.UserName Or _
  20063.                note.Principal(0) = Owner Or note.Principal(0) = session.UserName Then
  20064.                     note.RemoveItem("MailOptions")
  20065.                     note.RemoveItem("SaveOptions")
  20066.                     If Not(note.HasItem("SecureMail")) Then CheckSecureMail
  20067. 'If this is a message that was not written by you we do not present the mail dialog
  20068. 'but we do want to force processing into QuerySave               
  20069.                Else
  20070.                     note.MailOptions = "0"
  20071.                     note.SaveOptions = "1"
  20072.                End If
  20073.           End If
  20074.      Else
  20075.           uidoc.EditMode = True
  20076.      End If
  20077.      
  20078.      If uidoc.IsNewDoc Then
  20079.           NewDocument = True
  20080.           note.Principal = Owner
  20081.           CheckSecureMail
  20082.           EditType = session.GetEnvironmentString("MailStEd")
  20083. 'EditType 1 = CreateStationery          
  20084.           If EditType = "1" Then
  20085.                note.tmpAction = "SaveAsStationery"
  20086.                note.IsMailStationery = 1
  20087.                Call session.SetEnvironmentVar("MailStEd", "0")
  20088.                note.MailOptions = "0"
  20089.                note.SaveOptions = "1"
  20090.           Else
  20091.                If Len(EditType) > 1 Then
  20092.                     TaskReply = True
  20093.                     Call session.SetEnvironmentVar("MailStEd", "0")
  20094.                     note.SaveOptions = "1"
  20095.                     note.MailOptions = "1"
  20096.                     note.AssignState = 9
  20097.                     note.DueState = 9
  20098.                     Call note.ReplaceItemValue("_ViewIcon", 82)
  20099.                End If
  20100.           End If
  20101.      Else
  20102.           NewDocument = False
  20103.           If note.HasItem("IsMailStationery") Then
  20104.                EditType = session.GetEnvironmentString("MailStEd")
  20105. 'EditType 2 = EditStationery
  20106.                If EditType = "2" Then 
  20107.                     Call session.SetEnvironmentVar("MailStEd", "0")
  20108.                     note.MailOptions = "0"
  20109.                     note.SaveOptions = "1"
  20110.                Else
  20111. 'Create a doc from Stationery
  20112.                     note.RemoveItem("IsMailStationery")
  20113.                     note.RemoveItem("MailStationeryName")
  20114.                     Call note.ReplaceItemValue("$VersionOpt", "6")
  20115.                     uidoc.GoToField("SendTo")
  20116.                End If
  20117.           Else
  20118.                EditType = session.GetEnvironmentString("MailStEd")
  20119. 'EditType 5 = EditNewCopy               
  20120.                If EditType = "5" Then 
  20121.                     Call note.ReplaceItemValue("$VersionOpt", "6")
  20122.                     note.tmpAction = "ConvertNewDoc"
  20123.                     note.RemoveItem("PostedDate")
  20124.                     Call session.SetEnvironmentVar("MailStEd", "0")
  20125.                     uidoc.Reload
  20126.                     uidoc.Save
  20127.                     uidoc.Refresh
  20128.                     uidoc.RefreshHideFormulas
  20129.                     Exit Sub
  20130.                End If
  20131.           End If
  20132.      End If 
  20133.      
  20134.      uidoc.Reload
  20135.      uidoc.RefreshHideFormulas
  20136.      
  20137. End Sub
  20138. '++LotusScript Development Environment:2:2:EmailModeChange:1:8
  20139. Sub EmailModeChange
  20140.      
  20141.      If note Is Nothing Then Call InstantiateObjectVariables
  20142.      
  20143. 'If this is a message that was written by you or your mail file, we need to remove any options fields
  20144.      If note.From(0) = Owner Or note.From(0) = session.UserName Or _
  20145.      note.Principal(0) = Owner Or note.Principal(0) = session.UserName Then
  20146.           note.RemoveItem("MailOptions")
  20147.           note.RemoveItem("SaveOptions")
  20148.           If Not(note.HasItem("SecureMail")) Then CheckSecureMail
  20149. 'If this is a message that was not written by you we do not present the mail dialog
  20150. 'but we do want to force processing into QuerySave               
  20151.      Else
  20152.           note.MailOptions = "0"
  20153.           note.RemoveItem("SaveOptions")
  20154.      End If
  20155.      
  20156.      If uidoc.EditMode Then uidoc.Reload
  20157.      
  20158. End Sub
  20159. '++LotusScript Development Environment:2:2:EmailSave:1:8
  20160. Sub EmailSave(Continue)
  20161.      
  20162.      DoNotClose = False
  20163.      
  20164.      If note Is Nothing Then Call InstantiateObjectVariables
  20165.      
  20166.      note.RemoveItem("MailOptions")
  20167.      note.RemoveItem("SaveOptions")
  20168.      
  20169.      Action = note.tmpAction(0)
  20170.      
  20171.      If note.HasItem("IsMailStationery") Then
  20172.           If Action <> "RenameStationery" Then
  20173.                Call SaveDialog("Stationery")
  20174.                If ContinueSave = IDCANCEL Then continue = False
  20175.                If ContinueSave <> IDYES Then 
  20176.                     uidoc.reload
  20177.                     Exit Sub
  20178.                End If
  20179.           End If
  20180.      End If
  20181.      
  20182.      Select Case Action
  20183.      Case "SaveAsStationery"
  20184.           sName = Inputbox$("What would you like to call this Stationery?", "Save as Stationery", "-Untitled-")
  20185.           If sName = "" Then
  20186.                Continue = False
  20187.                note.RemoveItem("tmpAction")
  20188.                Exit Sub
  20189.           End If
  20190.           If NewDocument Then
  20191.                note.IsMailStationery = 1
  20192.                note.MailStationeryName = sName
  20193.                note.MailOptions = "0"
  20194.                note.SaveOptions = "1"
  20195.           Else
  20196.                note.SaveOptions = "0"
  20197.                Set newnote = New NotesDocument(db)
  20198.                Call note.CopyAllItems(newnote)
  20199.                ItemList = newnote.Items
  20200.                Forall i In ItemList
  20201.                     If Lcase(Left(i.Name, 3)) = "tmp" Then i.Remove
  20202.                End Forall
  20203.                newnote.IsMailStationery = 1
  20204.                newnote.MailStationeryName = sName              
  20205.                newnote.Form = "Memo"
  20206.                newnote.RemoveItem("PostedDate")
  20207.                newnote.RemoveItem("DeliveredDate")
  20208.                newnote.Save True, True
  20209.                ws.ViewRefresh
  20210.           End If
  20211.           Messagebox "This Message has been saved as Stationery in your Drafts folder. A new message will be created every time you open this Stationery.", 0, "Save as Stationery"
  20212.           note.RemoveItem("tmpAction")
  20213.           Call uidoc.close
  20214.      Case "RenameStationery"
  20215.           MailStationeryName = note.MailStationeryName
  20216.           sName = Inputbox$("What would you like to call this Stationery?", "Save as Stationery", MailStationeryName(0))
  20217.           If sName = "" Then
  20218.                note.MailOptions = "0"
  20219.                note.RemoveItem("tmpAction")
  20220.                DoNotClose = True
  20221.                Continue = False
  20222.                Exit Sub
  20223.           End If
  20224.           note.MailStationeryName = sName
  20225.           note.MailOptions = "0"
  20226.           note.SaveOptions = "1"
  20227.      Case "SaveAsDraft", "SaveAndFile", "SendAndFile", "ConvertNewDoc"
  20228.           note.MailOptions = "0"
  20229.           note.SaveOptions = "1"
  20230.      Case "Send"
  20231.           note.MailOptions = "0"
  20232.           note.SaveOptions = "0"
  20233.      Case "Mailing"
  20234. 'We do not want to do anything if mailing is in process (like from the Send button)
  20235.      Case "ConvertToTask"
  20236.           note.RemoveItem("DeliveredDate")
  20237.           note.RemoveItem("PostedDate")
  20238.           note.SendTo = ""
  20239.           note.CopyTo = ""
  20240.           note.SaveOptions ="1"
  20241.           note.MailOptions = "0"
  20242.           note.Form = "Task"
  20243.           note.AssignState = 0
  20244.           note.ExcludeFromView = "D"
  20245.           Call note.ReplaceItemValue("_ViewIcon", 168)
  20246.      Case Else
  20247. 'If this is a message did not originate in this mailfile (it was sent here and therefore has DeliveredDate) we do not present the mail dialog          
  20248.           If note.HasItem("DeliveredDate") Then
  20249.                note.MailOptions = "0"
  20250.                note.SaveOptions = "1"
  20251.                Call SaveDialog("Document")
  20252.                If ContinueSave = IDCANCEL Then continue = False
  20253.                If ContinueSave <> IDYES Then 
  20254.                     uidoc.reload
  20255.                     Exit Sub
  20256.                End If
  20257.           End If
  20258.      End Select
  20259.      
  20260.      note.RemoveItem("tmpAction")
  20261.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  20262.      
  20263.      'If Not(note.HasItem("AuthorList")) Then Set item = New NotesItem(note, "AuthorList", note.From, AUTHORS)
  20264.      
  20265.      uidoc.Reload
  20266.      
  20267. End Sub
  20268. '++LotusScript Development Environment:2:2:EmailClose:1:8
  20269. Sub EmailClose(Continue)
  20270.      
  20271.      If DoNotClose Then
  20272.           DoNotClose = False
  20273.           Continue = False
  20274. 'This backs out anything you did previously to MailOptions and SaveOptions and will force you back into QuerySave next time you try to exit          
  20275.           note.RemoveItem("MailOptions")
  20276.           note.RemoveItem("SaveOptions")
  20277.           uidoc.reload
  20278.      End If
  20279.      
  20280.      If TaskReply Then
  20281.           Set namelookup = New NotesName(note.SendTo(0))
  20282.           Messagebox "Notification has been sent to " & namelookup.Common & ".", 0, "Task Message"
  20283.      End If
  20284.      
  20285. End Sub
  20286. '++LotusScript Development Environment:2:2:SaveDialog:1:8
  20287. Sub SaveDialog(SavedDoc)
  20288.      
  20289.      ContinueSave = Messagebox("Do you wish to save this " & SavedDoc & "?", MB_YESNOCANCEL, "Save " & SavedDoc) 
  20290.      Select Case ContinueSave
  20291.      Case IDCANCEL
  20292.           note.MailOptions = "0"
  20293. 'This will force us into querysave next time - this time it will set continue = false so no save will occur          
  20294.           note.SaveOptions = "1"
  20295.      Case IDNO
  20296.           note.SaveOptions = "0"
  20297.      Case IDYES
  20298.           note.SaveOptions = "1"
  20299.      End Select
  20300.      
  20301. End Sub
  20302. '++LotusScript Development Environment:2:2:CheckSecureMail:1:8
  20303. Sub CheckSecureMail
  20304.      
  20305. 'If SecureMail = 1 in notes.ini all mail gets Signed and Encrypted and the user is unable to override it
  20306.      note.SecureMail = Cstr(session.GetEnvironmentString("SecureMail", True))
  20307.      If note.SecureMail(0) = "1" Then
  20308.           Call note.ReplaceItemValue("Sign", "1")
  20309.           Call note.ReplaceItemValue("Encrypt", "1")
  20310.      End If     
  20311.      
  20312. End Sub
  20313. '++LotusScript Development Environment:2:2:CreateOLEObject:1:8
  20314. Sub CreateOLEObject
  20315.      Dim sProgid As String
  20316.      
  20317.      On Error Resume Next
  20318.      
  20319.      sProgid = note.~$OLEObjProgId(0)
  20320.      
  20321. 'if this is a new document, then we need to create the ole object     
  20322.      If (NewDocument) Then     
  20323.           note.OriginalEditor = sProgid
  20324.           uidoc.GotoField(note.~$OLEObjField(0))
  20325.           
  20326.           Call uidoc.CreateObject("OLEObject", sProgId ,"")
  20327.           If (Err = 0) Then 
  20328.                Call ws.DialogBox("(OLEMailFields)",True,True)
  20329.           Else
  20330.                note.tmpuseOLE = ""
  20331.                uidoc.RefreshHideFormulas
  20332.           End If
  20333.      Else
  20334. 'the user is reading/editing an existing document
  20335. 'if the OriginalEditor = MailEditor, display the document using that Editor
  20336. 'otherwise, let Notes display the document
  20337.           If Lcase(note.OriginalEditor(0)) = Lcase(sProgId) Then
  20338.                uidoc.editmode = True
  20339.                Set OLEObject = uidoc.GetObject("OLEObject")
  20340.                If Not(Isobject(OLEObject)) Then
  20341. 'there is no object for some reason -this should be rare!!       
  20342.                     uidoc.EditMode = True
  20343.                     note.OriginalEditor = sProgid
  20344.                     uidoc.GotoField(note.~$OLEObjField(0))
  20345.                     Call uidoc.CreateObject("OLEObject",sProgId,"")      
  20346.                     Exit Sub    
  20347.                End If
  20348.           Else
  20349. 'the user has a different editor
  20350.                note.tmpUseOLE = ""
  20351.                uidoc.RefreshHideFormulas               
  20352.           End If
  20353.      End If     
  20354. End Sub
  20355. ,T    }d
  20356. ,T    }d
  20357. O=Lotus Notes
  20358. O=Lotus Notes
  20359. PURSAFO
  20360. |.:#U
  20361. O=Lotus Notes
  20362. CN=Lotus Notes Template Development/O=Lotus Notes
  20363. PURSAFO
  20364. Fde!f^^
  20365. HH9Kiy
  20366. $ScriptLib
  20367. $ScriptLib_O
  20368. $TITLE
  20369. $Flags
  20370. $PublicAccess
  20371. '++LotusScript Development Environment:2:5:(Options):0:74
  20372. Option Public
  20373. Use "AppointmentResponses"   
  20374. '++LotusScript Development Environment:2:5:(Forward):0:1
  20375. Declare Sub Initialize
  20376. Declare Sub AcceptInvitation
  20377. Declare Sub DeclineInvitation
  20378. Declare Function DelegateInvitation As Integer
  20379. Declare Sub CounterPropose
  20380. '++LotusScript Development Environment:2:5:(Declarations):0:10
  20381. 'NoticeProcessing: 
  20382. '++LotusScript Development Environment:2:2:Initialize:1:10
  20383. Sub Initialize
  20384.      
  20385. End Sub
  20386. '++LotusScript Development Environment:2:2:AcceptInvitation:1:8
  20387. Sub AcceptInvitation
  20388.     *This routine is called whenever the user accepts a meeting invitation
  20389.     *A notice document is sent to the chair informing them of our intent to attend
  20390.     *The main invitation document is updated to reflect our acceptance     
  20391. %END REM
  20392.      
  20393.      On Error Goto ErrorRoutine
  20394.      On Error 4005 Resume Next 'handle a delegee 
  20395.      
  20396. 'first, make sure a conflict doesn't exist 
  20397. 'we don't check repeating appointments or appointments being auto-processed (auto-process does it itself)
  20398.      If Not((note.HasItem("RepeatFor")) Or (IsAgentProcessing)) Then          
  20399.           If (profile.ConflictMeeting(0) = "1") Then
  20400.                If (CheckIfConflictExists) Then Exit Sub
  20401.           End If
  20402.      End If
  20403.      
  20404. 'create the notice document
  20405.      If (note.tmpAction(0) = "PencilIn") Then
  20406.           Call CreateNoticeDocument("Penciled In -",ORS_MSGTYPE_ACCEPT,83,2)
  20407.      Else
  20408.           Call CreateNoticeDocument("Accepted -",ORS_MSGTYPE_ACCEPT,83,2)
  20409.      End If
  20410.      
  20411. 'add the comment if necessary
  20412.      If (note.HasItem("IncludeComment")) Then AddInviteeComment
  20413.      
  20414.      If (note.HasItem("FromDomain")) Then     
  20415.           notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  20416.      Else
  20417.           FromDomain = Evaluate("@Domain")
  20418.           notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  20419.      End If          
  20420.      
  20421. 'we use the profile document in case this is being processed by the agent     
  20422.      InviteeUserName = Evaluate("@Name([Abbreviate];owner)",profile)
  20423.      ChairName = Evaluate("@Name([cn];chair)",note)
  20424.      notice.InviteeName = InviteeUserName
  20425.      Call notice.Send(False)
  20426. 'now we need to update the original invitation document
  20427.      Context = GetContext
  20428.      Select Case Context
  20429.      Case 1,3
  20430. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  20431.           Call UpdateOriginalInvitation(parentnote)
  20432.      Case 2,4
  20433. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  20434.           Call UpdateOriginalInvitation(note)
  20435.      End Select
  20436.      If Not(IsAgentProcessing) Then Messagebox "A notice has been sent informing " & ChairName(0) & " that you will be attending. A meeting document has been added to your Calendar.",0,"Status"
  20437.      
  20438. 'see if we should remove this from the inbox
  20439.      If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  20440.      Exit Sub
  20441.      
  20442. ErrorRoutine:
  20443.      Messagebox Error & " (AcceptInvitation)"
  20444.      Exit Sub
  20445. End Sub
  20446. '++LotusScript Development Environment:2:2:DeclineInvitation:1:8
  20447. Sub DeclineInvitation
  20448.     *This routine is called whenever the user declines an invitation or
  20449.      changes their mind after accepting an invitation
  20450.     *A notice document is sent to the chair informing them of our decline
  20451.     *The main invitation document is updated to reflect our decline    
  20452. %END REM
  20453.      Dim MessageText As String
  20454.      
  20455.      On Error Goto ErrorRoutine
  20456.      On Error 4005 Resume Next 'handle a delegee 
  20457.      
  20458.      Call CreateNoticeDocument("Declined -",ORS_MSGTYPE_REJECT,84,2)
  20459.      
  20460. 'add the comment if necessary
  20461.      If (note.HasItem("IncludeComment")) Then AddInviteeComment
  20462.      
  20463.      If (note.HasItem("FromDomain")) Then     
  20464.           notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  20465.      Else
  20466.           FromDomain = Evaluate("@Domain")
  20467.           notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  20468.      End If   
  20469.      
  20470.      InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  20471.      ChairName = Evaluate("@Name([cn];chair)",note)
  20472.      notice.InviteeName = InviteeUserName
  20473.      
  20474.      Call notice.Send(False)
  20475. 'now we need to update the original invitation document
  20476.      Context = GetContext
  20477.      Select Case Context
  20478.      Case 1,3
  20479. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  20480.           If (parentnote.Form(0) = "Appointment") Then
  20481.                MessageText  = "The calendar entry has been removed from your calendar."
  20482.           Else
  20483.                MessageText = "A meeting document has not been added to your Calendar."
  20484.           End If
  20485.           Call UpdateOriginalInvitation(parentnote)
  20486.      Case 2,4
  20487. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  20488.           If (note.Form(0) = "Appointment") Then
  20489.                MessageText  = "The calendar entry has been removed from your calendar."
  20490.           Else
  20491.                MessageText = "A meeting document has not been added to your Calendar."
  20492.           End If
  20493.           Call UpdateOriginalInvitation(note)
  20494.      End Select
  20495.      
  20496.      Messagebox "A notice has been sent informing " & ChairName(0) & " that you will not be attending. " & MessageText,0,"Status"
  20497. 'see if we should remove this from the inbox
  20498.      If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  20499.      Exit Sub
  20500.      
  20501. ErrorRoutine:
  20502.      Messagebox Error & " (DeclineInvitation)"
  20503.      Exit Sub
  20504. End Sub
  20505. '++LotusScript Development Environment:2:1:DelegateInvitation:1:8
  20506. Function DelegateInvitation As Integer
  20507.     *This routine is called whenever the user wants to delegate a meeting invitation
  20508.     *This routine provides a dialogbox to select the delegatee
  20509.     *This routine sends an invitation to the delegatee and a delegation notice back to the chair
  20510.     *The main appointment document is updated to reflect the change
  20511.     *This function returns 0 if no errors occurred, or 1 if errors did occur
  20512. %END REM
  20513.      
  20514.      On Error Goto ErrorRoutine
  20515.      On Error 4005 Resume Next 'handle a delegee 
  20516.      
  20517.      DelegateInvitation = 0
  20518. 'invoke the dialog box to get the name
  20519.      If (ws.Dialogbox("(NamesPrompt)", True, True, False, False, False, False, "Delegate To") = True) Then
  20520. 'if this person has been invited by the chair, they should not be able to be a delegee
  20521.           localHasBeenInvited = Evaluate("@IsMember(@Lowercase(@Name([cn];SendTo));@Lowercase(@Name([cn];RequiredAttendees:OptionalAttendees:Chair)))",note)
  20522.           If (localHasBeenInvited(0) <> False) Then
  20523.                Messagebox "You have selected a person that has already been invited to this meeting. Please choose someone else.",0,"Invalid Selection"
  20524.                DelegateInvitation = DelegateInvitation()
  20525.                Exit Function
  20526.           End If          
  20527. 'create the notice and send it to the delegee          
  20528.           Call CreateNoticeDocument("Invitation -",ORS_MSGTYPE_DELEGATE,133,2)
  20529.           notice.OrgState = ORS_STATE_DELEGATE
  20530. 'remove the items that make this a response
  20531.           Call notice.RemoveItem("$Ref")
  20532.           Call notice.RemoveItem("$RefOptions")
  20533. 'add the comment if necessary
  20534.           If (note.HasItem("IncludeComment")) Then AddInviteeComment          
  20535. 'set the UniversalID of the notice          
  20536.           If (parentnote Is Nothing) Then
  20537.                notice.UniversalID = note.UniversalID
  20538.           Else
  20539.                notice.UniversalID = parentnote.UniversalID
  20540.           End If
  20541.           notice.SendTo = note.SendTo
  20542.           Call notice.Send(False)
  20543. 'create the notice and send it to the chair
  20544.           Call CreateNoticeDocument("Delegated -",ORS_MSGTYPE_DELEGATING,84,2)
  20545. 'add the comment if necessary
  20546.           If (note.HasItem("IncludeComment")) Then AddInviteeComment          
  20547.           
  20548.           If (note.HasItem("FromDomain")) Then     
  20549.                notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  20550.           Else
  20551.                FromDomain = Evaluate("@Domain")
  20552.                notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  20553.           End If
  20554.           note.Delegee = note.SendTo(0)
  20555.           notice.Delegee = Evaluate("@Name([Abbreviate];SendTo)",note)
  20556.           InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  20557.           ChairName = Evaluate("@Name([cn];chair)",note)
  20558.           DelegeeName = Evaluate("@Name([cn];sendto)",note)
  20559.           notice.InviteeName = InviteeUserName
  20560.           Call notice.Send(False)
  20561. 'call the function to update our invitation 
  20562.           Context = GetContext
  20563.           Select Case Context
  20564.           Case 1,3
  20565. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  20566.                Call UpdateOriginalInvitation(parentnote)
  20567.                parentnote.Delegee = DelegeeName(0)
  20568.                parentnote.save True,False,True
  20569.           Case 2,4
  20570. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  20571.                Call UpdateOriginalInvitation(note)
  20572.           End Select
  20573.           Messagebox "An invitation has been sent to " & Delegeename(0) & ". A notice has been sent informing " & ChairName(0) & " that you will not be attending.",0,"Status"
  20574. 'remove the sendto on the note
  20575.           note.SendTo = ""
  20576. 'see if we should remove this from the inbox
  20577.           If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  20578.           DelegateInvitation = 0          
  20579.      Else
  20580.           DelegateInvitation = 1
  20581.      End If
  20582.      
  20583.      Exit Function
  20584.      
  20585. ErrorRoutine:
  20586.      Messagebox Error & " (DelegateInvitation)"
  20587.      Call MarkTempFields(note)
  20588.      Call note.RemoveItem("tmpUserActions")
  20589.      DelegateInvitation = 1     
  20590.      Exit Function
  20591. End Function
  20592. '++LotusScript Development Environment:2:2:CounterPropose:1:8
  20593. Sub CounterPropose
  20594.     *This routine is called whenever the user wants to send a counter propose notice
  20595.     *This routine sends a counter propose notice to the chair and updates the main
  20596.      appointment document
  20597. %END REM
  20598.      
  20599.      On Error Goto ErrorRoutine
  20600.      On Error 4005 Resume Next 'handle a delegee 
  20601.      
  20602.      Call CreateNoticeDocument("Change Proposal -",ORS_MSGTYPE_COUNTER,39,2)
  20603.      
  20604. 'add the comment if necessary
  20605.      If (note.HasItem("IncludeComment")) Then AddInviteeComment     
  20606.      
  20607. 'add the remaining items     
  20608.      notice.Reason = note.Reason
  20609.      
  20610.      Set trdr = session.CreateDateRange
  20611.      trdr.Text = uidoc.FieldGetText("NewTimeRange")
  20612.      Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  20613.      
  20614.      Set notice.NewDate = startdt
  20615.      Set notice.NewTimeRange = trdr
  20616.      notice.NewRoom = note.NewRoom
  20617.      InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  20618.      ChairName = Evaluate("@Name([cn];chair)",note)
  20619.      notice.InviteeName = InviteeUserName
  20620.      
  20621.      If (note.HasItem("FromDomain")) Then     
  20622.           notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  20623.      Else
  20624.           FromDomain = Evaluate("@Domain")
  20625.           notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  20626.      End If        
  20627.      
  20628.      notice.Send False
  20629.      
  20630.      Messagebox "A notice has been sent to " & ChairName(0) & " requesting a change to the Time/Location of this meeting.",0,"Status"
  20631.      
  20632.      Call UpdateOriginalInvitation(note)
  20633. 'see if we should remove this from the inbox
  20634.      If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  20635.      Exit Sub
  20636.      
  20637. ErrorRoutine:
  20638.      Messagebox Error & " (CounterPropose)"
  20639.      Exit Sub
  20640. End Sub
  20641. owner
  20642.     0S0E
  20643. chair
  20644.     0S0E
  20645. tmpOwner
  20646.     0S0E
  20647. chair
  20648.     0S0E
  20649. SendTo
  20650. RequiredAttendees
  20651. OptionalAttendees
  20652. Chair
  20653.     0S0E
  20654. SendTo
  20655.     0S0E
  20656. tmpOwner
  20657.     0S0E
  20658. chair
  20659.     0S0E
  20660. sendto
  20661.     0S0E
  20662. tmpOwner
  20663.     0S0E
  20664. chair
  20665.     0S0E
  20666. O=Lotus Notes
  20667. O=Lotus Notes
  20668. PURSAFO
  20669. |.:#U
  20670. O=Lotus Notes
  20671. CN=Lotus Notes Template Development/O=Lotus Notes
  20672. PURSAFO
  20673. Fde!f^^
  20674. $ScriptLib
  20675. $ScriptLib_O
  20676. $TITLE
  20677. $Flags
  20678. $PublicAccess
  20679. '++LotusScript Development Environment:2:5:(Options):0:74
  20680. Option Public
  20681. Use "SharedWorkflowLibrary"     
  20682. Use "RepeatProcessing" 
  20683. '++LotusScript Development Environment:2:5:(Forward):0:1
  20684. Declare Sub Initialize
  20685. Declare Sub GetUpdateResponseItems(Byval context As Integer)
  20686. Declare Sub SetUpdateAsMostRecent(MainSequence As Integer)
  20687. Declare Sub GetMostRecentUpdateNotice(Context As Integer)
  20688. Declare Sub CheckForNoticeUpdates
  20689. Declare Sub DeCommitAppointment(apptdoc As NotesDocument)
  20690. Declare Sub CommitAppointment(apptdoc As NotesDocument)
  20691. Declare Function GetParentDocument() As Integer
  20692. '++LotusScript Development Environment:2:5:(Declarations):0:10
  20693. 'NoticeResponses: 
  20694. Dim UpdateResponses() As NoticeInfo
  20695. Dim UpdateSequence As Integer
  20696. Dim UpdateCreation As Variant
  20697. Dim UpdateAction As String
  20698. Dim UpdateStatus As String
  20699. Dim UpdateUNID As String
  20700. Dim UpdateDate As Variant
  20701. Dim UpdateTime As Variant
  20702. '++LotusScript Development Environment:2:2:Initialize:1:10
  20703. Sub Initialize
  20704.      
  20705. End Sub
  20706. '++LotusScript Development Environment:2:2:GetUpdateResponseItems:1:8
  20707. Sub GetUpdateResponseItems(Byval context As Integer)
  20708.     *This gets specific items from any update notices from the chair
  20709.  *Update notices are responses documents to the current invitation
  20710. %END REM
  20711.      Dim itemSDT As NotesItem
  20712.      
  20713.      On Error Goto ErrorRoutine
  20714.      
  20715.      UpdateSequence = response.SequenceNum(0)
  20716.      UpdateCreation = response.Created
  20717.      UpdateAction = response.NoticeType(0)
  20718.      UpdateUNID = response.UniversalID
  20719. 'if this update is a status update, get the status update type
  20720.      If (UpdateAction = ORS_MSGTYPE_STATUSUPDATE) Then 
  20721.           UpdateStatus = response.OrgStatus(0)               
  20722.      Else
  20723.           UpdateStatus = ""
  20724.      End If 
  20725.      If (UpdateAction = ORS_MSGTYPE_CONFIRMATION) Then
  20726.           Set itemSDT = note.GetFirstItem("StartDateTime")
  20727.           UpdateDate = itemSDT.DateTimeValue.DateOnly
  20728.           UpdateTime = itemSDT.DateTimeValue.TimeOnly
  20729.      End If
  20730. 'if the user opened up the main parent document and this is a repeat response, we need to add certain items to the parent
  20731.      Select Case context
  20732. '1 means the current note is a non-repeat notice, 3 = repeat notice
  20733.      Case 1,3
  20734.           If(response.HasItem("RescheduleWhich")) Then parentnote.RescheduleWhich = response.RescheduleWhich
  20735.           If(response.HasItem("OriginalStartDate")) Then parentnote.OriginalStartDate = response.OriginalStartDate
  20736.      Case 2,4
  20737. '2 means repeat instance, 4 means non-repeat instance
  20738.           If(response.HasItem("RescheduleWhich")) Then note.RescheduleWhich = response.RescheduleWhich
  20739.           If(response.HasItem("OriginalStartDate")) Then note.OriginalStartDate = response.OriginalStartDate
  20740.      End Select
  20741.      
  20742.      Exit Sub
  20743.      
  20744. ErrorRoutine:
  20745.      Messagebox Error & " (GetUpdateResponseItems)"
  20746.      Exit Sub
  20747. End Sub
  20748. '++LotusScript Development Environment:2:2:SetUpdateAsMostRecent:1:8
  20749. Sub SetUpdateAsMostRecent(MainSequence As Integer)
  20750.     *This routine sets the current response as the most recent
  20751.     *We need to do this in case multiple update notices have been
  20752.      received from the chair and we want to process the most recent one
  20753.     *The MainSequence parameter is the SequenceNum item of the main inviation document
  20754. %END REM
  20755.      
  20756.      On Error Goto ErrorRoutine
  20757.      
  20758. 'if this is a confirmation, then add it's items to the 1 index, otherwise add it to the 0 index
  20759.      Dim index As Integer
  20760.      
  20761.      If (UpdateAction = ORS_MSGTYPE_CONFIRMATION) Then
  20762.           index = 1
  20763.           UpdateResponses(index).apptdate = UpdateDate
  20764.           UpdateResponses(index).appttime = UpdateTime
  20765.      Else
  20766.           index = 0
  20767.      End If
  20768.      
  20769.      UpdateResponses(index).sequencenum = UpdateSequence
  20770.      UpdateResponses(index).creationdate = UpdateCreation
  20771.      UpdateResponses(index).action = UpdateAction
  20772.      UpdateResponses(index).misc1 = UpdateStatus
  20773.      UpdateResponses(index).misc2 = UpdateUNID
  20774.      numResponses = numResponses + 1
  20775.      Exit Sub
  20776.      
  20777. ErrorRoutine:
  20778.      Messagebox Error & " (SetUpdateAsMostRecent)"
  20779.      Exit Sub
  20780. End Sub
  20781. '++LotusScript Development Environment:2:2:GetMostRecentUpdateNotice:1:8
  20782. Sub GetMostRecentUpdateNotice(Context As Integer)
  20783.     *This is the bulk of the processing for notice responses
  20784.     *This routine iterates through the responses of a particular meeting invitation
  20785.      and gets the most recent notice sent by the chair
  20786. %END REM
  20787.      Dim index As Integer     
  20788.      Dim MainSequence As Integer
  20789.      
  20790.      If (note.IsResponse) And (parentnote Is Nothing) Then Exit Sub
  20791.      On Error Goto ErrorRoutine
  20792.      
  20793.      Redim UpdateResponses(2)
  20794.      numResponses = 0
  20795.      
  20796. 'get the context that this document was opened in
  20797.      Context = GetContext
  20798.      Select Case context
  20799.      Case 1,3
  20800. '1 means the current note is a non-repeat notice, 3 = repeat notice
  20801.           Set documents  = parentnote.Responses          
  20802.           MainSequence = parentnote.SequenceNum(0)
  20803.      Case 2,4
  20804. '2 means repeat instance, 4 means non-repeat instance
  20805.           Set documents  = note.Responses          
  20806.           MainSequence = note.SequenceNum(0)          
  20807.      End Select
  20808.      
  20809.      If (documents.Count = 0) Then Exit Sub
  20810.      
  20811.      Set response = documents.GetFirstDocument
  20812.      While Not(response Is Nothing)
  20813. 'make sure we have a valid document
  20814.           If (response.Form(0) = "Notice") Then
  20815. 'get the necessary values for this update
  20816.                GetUpdateResponseItems(Context)
  20817. 'if the sequence is >= the original invitation sequence, we can process it
  20818.                If (UpdateSequence >= MainSequence) Then
  20819. 'if we haven't added anything to the array, add this one
  20820.                     If (numResponses = 0) Then 
  20821.                          Call SetUpdateAsMostRecent(MainSequence)
  20822.                     Else
  20823.                          If (UpdateAction = ORS_MSGTYPE_CONFIRMATION) Then 
  20824.                               index =1 
  20825.                          Else
  20826.                               index = 0
  20827.                          End If
  20828. 'if the UpdateSequence value is greater than the existing value, add this response
  20829.                          If (UpdateSequence > UpdateResponses(index).sequencenum) Then 
  20830.                               Call SetUpdateAsMostRecent(MainSequence)
  20831.                          Else
  20832. 'if the UpdateSequence = the existing value, compare creation dates
  20833.                               If (UpdateSequence = UpdateResponses(index).sequencenum) And (UpdateCreation > UpdateResponses(index).creationdate) Then Call SetUpdateAsMostRecent(MainSequence)
  20834.                          End If               
  20835.                     End If
  20836.                End If     
  20837.           End If
  20838.           Set response = documents.GetNextDocument(response)          
  20839.      Wend
  20840.      Exit Sub
  20841.      
  20842. ErrorRoutine:
  20843.      Messagebox Error & " (GetMostRecentUpdateNotice)"
  20844.      Exit Sub
  20845. End Sub
  20846. '++LotusScript Development Environment:2:2:CheckForNoticeUpdates:1:8
  20847. Sub CheckForNoticeUpdates
  20848.     *This routine is called from the QueryOpen event on notice and appointment forms
  20849.     *It is only called if the mail owner != the meeting chair (i.e. we are an invitee)
  20850.     *This routine calls GetMostRecentResponseNotice and performs an action based upon the notice
  20851. %END REM
  20852.      
  20853.      Dim Context As Integer
  20854.      Dim lDoc As NotesDocument
  20855.      
  20856.      Call GetMostRecentUpdateNotice(Context)
  20857.      
  20858.      If (documents.Count = 0) Then Exit Sub 'there are no responses
  20859.      
  20860.      Select Case Context
  20861. '1 means the current note is a non-repeat notice, 3 = repeat notice 
  20862.      Case 1,3
  20863.           Set lDoc = parentnote
  20864.      Case 2,4
  20865. '2 means repeat instance, 4 means non-repeat instance
  20866.           Set lDoc = note
  20867.      End Select
  20868.      
  20869.      On Error Goto ErrorRoutine
  20870. 'if there are any responses waiting, see what the most recent one is; 
  20871.      Select Case UpdateResponses(0).action
  20872.      Case ORS_MSGTYPE_RESCHEDULE
  20873. 'if the user is not reading the most upto date notice, see if we should open the reschedule notice or not
  20874.           If  (UpdateResponses(0).misc2 <> note.UniversalID) Then
  20875.                If (UpdateResponses(0).sequencenum > lDoc.SequenceNum(0)) Then
  20876.                     If IsWebClient Then
  20877.                          note.tmpConfirmMsg = "This meeting has been rescheduled. Check you In Box or Meetings view for the latest notice."
  20878.                     Else
  20879.                          If (Messagebox("This meeting has been rescheduled. Do you want to open the Reschedule notice now?.",33,"Open Reschedule") = 1) Then
  20880. 'the user wants us to open the reschedule notice
  20881.                               OpenReschedule = True
  20882.                          Else
  20883.                               OpenReschedule = False
  20884.                               note.DoNotProcess = True
  20885.                          End If
  20886.                     End If
  20887.                End If
  20888.           Else
  20889. 'the user is reading the most upto date reschedule notice -> make sure we can process this document
  20890.                If (UpdateResponses(0).sequencenum <= parentnote.SequenceNum(0)) Then note.DoNotProcess = True
  20891.           End If
  20892.      Case ORS_MSGTYPE_CANCEL 
  20893.           staticstring = "This meeting has been cancelled."
  20894.           If IsWebClient Then
  20895.                note.tmpConfirmMsg = staticstring
  20896.           Else
  20897.                If (lDoc.NoticeType(0) = ORS_MSGTYPE_ACCEPT) Then
  20898.                     Messagebox staticstring & " The calendar entry will be updated to reflect this change",0,"Status"
  20899.                     Call DeCommitAppointment(lDoc)
  20900.                Else
  20901.                     Messagebox staticstring, 0, "Status"
  20902.                End If
  20903.           End If
  20904.           note.DoNotProcess = True
  20905. 'we need to do this here since this is not handled in QuerySave          
  20906.           If Not IsWebClient And note.HasItem("OrgRepeat") Then
  20907.                Action = "Cancel"
  20908.                Call RepeatSave
  20909.           End If
  20910.      Case ORS_MSGTYPE_STATUSUPDATE
  20911.           If (UpdateResponses(0).misc1 = ORS_STATUS_REMOVED) Then
  20912. 'this user was uninvited
  20913.                staticstring = "You are no longer required to attend this meeting."
  20914.                If IsWebClient Then
  20915.                     note.tmpConfirmMsg = staticstring
  20916.                Else
  20917.                     If (lDoc.NoticeType(0) = ORS_MSGTYPE_ACCEPT) Then
  20918.                          Messagebox staticstring & " The calendar entry will be updated to reflect this change",0,"Status"
  20919.                          Call DeCommitAppointment(lDoc)
  20920.                     Else
  20921.                          Messagebox staticstring,0,"Status"
  20922.                     End If
  20923.                'we need to do this here since this is not handled in QuerySave          
  20924.                     If note.HasItem("OrgRepeat") Then
  20925.                          Action = "Cancel"
  20926.                          Call RepeatSave
  20927.                     End If
  20928.                End If
  20929.           Else                    
  20930. 'the user is being required to attend
  20931.                If (lDoc.NoticeType(0) <> ORS_MSGTYPE_ACCEPT) Then
  20932.                     staticstring = "You are required to attend this meeting."
  20933.                     If IsWebClient Then
  20934.                          note.tmpConfirmMsg = staticstring
  20935.                     Else
  20936.                          Messagebox  staticstring & " The calendar entry will be created to reflect this change",0,"Status"
  20937.                          Call CommitAppointment(lDoc)                        
  20938.                     End If
  20939.                End If
  20940.           End If
  20941.           note.DoNotProcess = True                       
  20942.      End Select
  20943. 'see if there are any confirmation notice          
  20944.      If (UpdateResponses(1).Action = ORS_MSGTYPE_CONFIRMATION) Then          
  20945. 'if the user is not reading the most upto date notice, and their are no other update notices more recent than this one, then display the message
  20946.           If  (UpdateResponses(1).misc2 <> note.UniversalID) And _
  20947.           ((UpdateResponses(1).sequencenum > UpdateResponses(0).SequenceNum) Or _
  20948.           (UpdateResponses(1).creationdate > UpdateResponses(0).creationdate)) Then 
  20949.                note.tmpRealDate = UpdateResponses(1).apptdate
  20950.                note.tmpRealTime = UpdateResponses(1).appttime
  20951.                If IsWebClient Then
  20952.                     RealDate = Evaluate({@Text(tmpRealDate;"S0D0")},note)
  20953.                     RealTime = Evaluate({@Text(tmpRealTime;"S1T1")},note)
  20954.                     Dim nName As New NotesName(note.Chair(0))
  20955.                     note.tmpConfirmMsg = "The invitation from " & nName.Common & " for " & _
  20956.                     RealDate(0) & " " & RealTime(0) & " has been confirmed."
  20957.                End If
  20958.           End If
  20959.      End If
  20960.      Exit Sub
  20961.      
  20962. ErrorRoutine:
  20963.      Messagebox Error & " (CheckForNoticeUpdates)"
  20964.      Exit Sub
  20965. End Sub
  20966. '++LotusScript Development Environment:2:2:DeCommitAppointment:1:8
  20967. Sub DeCommitAppointment(apptdoc As NotesDocument)
  20968.     *This routine is called if a user is uninvited from a meeting or
  20969.      if the meeting is cancelled
  20970.     *This routine modifies the passed in apptdoc to make it a non-calendar item
  20971. %END REM
  20972.      
  20973.      apptdoc.NoticeType = UpdateResponses(0).action
  20974.      apptdoc.OrgStatus = UpdateResponses(0).misc1
  20975.      Call apptdoc.ReplaceItemValue("$BusyPriority","2")
  20976.      Call apptdoc.RemoveItem("CalendarDateTime")
  20977.      Call apptdoc.ReplaceItemValue("_ViewIcon",0)
  20978.      apptdoc.SequenceNum = UpdateResponses(0).SequenceNum
  20979.      Call apptdoc.RemoveItem("OrgTable")
  20980. 'if this document has an alarm, remove it from the alarms folder
  20981.      If (apptdoc.HasItem("$Alarm")) Then Call apptdoc.RemoveFromFolder("$Alarms")
  20982.      Call MarkTempFields(apptdoc)
  20983.      Call apptdoc.Save(True,True,True)
  20984. End Sub
  20985. '++LotusScript Development Environment:2:2:CommitAppointment:1:8
  20986. Sub CommitAppointment(apptdoc As NotesDocument)
  20987.     *This routine is called ONLY when the user is being required to attend a meeting
  20988.         - THIS MEANS THE INVITEE RECEIVED A STATUSUPDATE NOTICE FROM THE CHAIR
  20989.         - WITH AN ORGSTATUS ITEM SET TO ORS_STATUS_ACCEPTED
  20990.     *This routine is not the same as an acceptance and should not be treated as such,
  20991.      since we don't mail anything back to the chair
  20992. %END REM
  20993.      Dim chairnote As NotesDocument
  20994.      
  20995.      If (UpdateResponses(0).misc2 <> "") Then
  20996.           Set chairnote = db.GetDocumentbyUNID(UpdateResponses(0).misc2)
  20997.      Else
  20998.              Set chairnote = note
  20999.      End If
  21000.      
  21001.      apptdoc.Form = "Appointment"
  21002.      
  21003.      Set trdr = session.CreateDateRange
  21004.      Set startdt = New NotesDateTime(chairnote.StartDateTime(0))
  21005.      Set enddt = New NotesDateTime(chairnote.EndDateTime(0))
  21006.      
  21007.      Set trdr.StartDateTime = startdt
  21008.      Set trdr.EndDateTime = enddt
  21009.      Set apptdoc.TimeRange = trdr
  21010.      Set apptdoc.StartDateTime = startdt
  21011.      Set apptdoc.EndDateTime = enddt
  21012.      apptdoc.CalendarDateTime = chairnote.StartDateTime
  21013.      apptdoc.StartDate = chairnote.StartDate
  21014.      apptdoc.Principal = chairnote.chair
  21015.      apptdoc.NoticeType = ORS_MSGTYPE_ACCEPT  
  21016.      Call apptdoc.ReplaceItemValue("_ViewIcon",158)
  21017.      Call apptdoc.ReplaceItemValue("$BusyName",Owner)
  21018.      Call apptdoc.ReplaceItemValue("$BusyPriority","1")
  21019.      Call apptdoc.ReplaceItemValue("_ViewIcon",158)
  21020.      apptdoc.Subject = chairnote.Topic
  21021. 'check to see if we should automatically set an alarm
  21022.      If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") And (profile.SetAlarmAppointment(0) = "1") Then
  21023.           Call apptdoc.ReplaceItemValue("$Alarm",1)
  21024.           Call apptdoc.ReplaceItemValue("$AlarmDescription",note.Topic)
  21025.           Call apptdoc.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  21026.           Call apptdoc.PutInFolder("$Alarms")
  21027.      Else
  21028.           Call apptdoc.RemoveItem("$Alarm")
  21029.           Call apptdoc.RemoveItem("$AlarmDescription")
  21030.           Call apptdoc.RemoveItem("$AlarmOffset")               
  21031.      End If
  21032.      Call apptdoc.ReplaceItemValue("$NoPurge",apptdoc.EndDateTime(0))
  21033.      apptdoc.SequenceNum = UpdateResponses(0).SequenceNum     
  21034.      apptdoc.OrgTable =  ORS_ITEM_CALENDAR
  21035.      Call MarkTempFields(apptdoc)
  21036.      Call apptdoc.Save(True,True,True)  
  21037. End Sub
  21038. '++LotusScript Development Environment:2:1:GetParentDocument:1:8
  21039. Function GetParentDocument() As Integer
  21040.      *this routine gets the parent document for a given note     
  21041. %END REM
  21042.      On Error Resume Next
  21043.      GetParentDocument = False
  21044.      
  21045.      Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  21046.      If (parentnote Is Nothing) Then
  21047. 'if this is a non-repeating note, see if we should re-create the document
  21048.           If Not(note.hasitem("OrgRepeat")) Then
  21049.                If (Msgbox("The appointment document has been deleted from your calendar, do you want to re-create it?",52) = 6) Then 
  21050.                     Call ResurrectParentDoc        
  21051.                     GetParentDocument =True
  21052.                     Exit Function
  21053.                Else
  21054.                     note.tmpNoParent = True
  21055.                     note.DoNotProcess = True
  21056.                     Exit Function
  21057.                End If                         
  21058.           Else
  21059. 'this is a repeating notice; see if the user is trying to process a response without processing the repeat parent
  21060.                If (note.HasItem("RepeatParentUNID")) Then 
  21061.                     Set parentnote = db.GetDocumentByUNID(note.RepeatParentUNID(0))
  21062.                     If (parentnote Is Nothing) Then
  21063. 'the repeat set has been deleted; see if the user wants to continue on by creating a non-repeat instance
  21064.                          If(Msgbox("The parent document has been deleted from your calendar and was part of a repeat set. Do you want to re-create it as a single appointment?",52) = 6) Then 
  21065.                               Call ResurrectParentDoc
  21066.                               GetParentDocument =True
  21067.                               Exit Function                            
  21068.                          Else
  21069.                               note.tmpNoParent = True
  21070.                               note.DoNotProcess = True
  21071.                               Exit Function
  21072.                          End If       
  21073.                     Else
  21074. 'the parent repeat set has not been deleted; see if it is an invitation
  21075.                          If (parentnote.NoticeType(0) = ORS_MSGTYPE_INVITE) Then
  21076.                               Msgbox "You need to respond to the original meeting invitation that this notice belongs to. After clicking on OK, the original invitation will be opened.",0,"Status"
  21077.                               OpenRepeatParent = True
  21078.                               Exit Function
  21079.                          Else
  21080. 'the parent repeat set has been processed; see if the user wants to recreate this as a non-repeating instance                                   
  21081.                               If(Msgbox("The parent document has been deleted from your calendar and was part of a repeat set. Do you want to re-create it as a single appointment?",52) = 6) Then 
  21082.                                    Call ResurrectParentDoc
  21083.                                    GetParentDocument =True
  21084.                                    Exit Function
  21085.                               Else
  21086.                                    note.tmpNoParent = True
  21087.                                    note.DoNotProcess = True
  21088.                                    Exit Function                                   
  21089.                               End If                                  
  21090.                          End If
  21091.                     End If
  21092.                End If                         
  21093.           End If 
  21094.      Else
  21095. 'we found the parent          
  21096.           GetParentDocument = True
  21097.      End If
  21098. End Function
  21099. 8    h     
  21100. O=Lotus Notes
  21101. O=Lotus Notes
  21102. PURSAFO
  21103. |.:#U
  21104. O=Lotus Notes
  21105. CN=Lotus Notes Template Development/O=Lotus Notes
  21106. PURSAFO
  21107. Fde!f^^
  21108.  T(N$
  21109. $ScriptLib
  21110. $ScriptLib_O
  21111. $TITLE
  21112. $Flags
  21113. $PublicAccess
  21114. CN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesObjectVariabless34Q1############################
  21115. CN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesRepeatProcessings34Q1####
  21116. qHmvO
  21117. CN=Stan Getz/O=bogusCN=Lou Reed/O=bogusCN=Ryan Jansen/O=IrisCN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesSharedTaskLibrarys34Q1##########################
  21118. CN=user1 test/O=C&SCN=Ryan Jansen/O=IrisCN=user2 test/O=C&SCN=Ryan Jansen/O=IrisCN=Build Room/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=user1 test/O=C&SCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesSharedWorkflowLibrarys34Q1######################################################
  21119. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesDocumentConversionss34Q1############################
  21120. ##########################################################
  21121. ##########################################################
  21122. ##########################################################
  21123. ##########################################################
  21124. ##########################################################
  21125. ##########################################################
  21126. ##########################################################
  21127. ##########################################################
  21128. ##########################################################
  21129. ##########################################################
  21130. ##########################################################
  21131. ##########################################################
  21132. ##########################################################
  21133. ##########################################################
  21134. ##########################################################
  21135. ##########################################################
  21136. ##########################################################
  21137. ##########################################################
  21138. ##########################################################
  21139. ##########################################################
  21140. ##########################################################
  21141. ##########################################################
  21142. ##########################################################
  21143. ##########################################################
  21144. ##########################################################
  21145. ##########################################################
  21146. ##########################################################
  21147. ##########################################################
  21148. ##########################################################
  21149. '++LotusScript Development Environment:2:5:(Options):0:74
  21150. Option Public   
  21151. '++LotusScript Development Environment:2:5:(Forward):0:1
  21152. Declare Sub Initialize
  21153. Declare Sub InstantiateObjectVariables
  21154. Declare Sub GetCalendarOwner
  21155. Declare Sub MarkTempFields(doc As NotesDocument)
  21156. Declare Sub CreateDefaultCalendarProfile
  21157. Declare Sub wInitDefaultSettings
  21158. '++LotusScript Development Environment:2:5:(Declarations):0:10
  21159. 'Front end classes -> we declare these as variant so that backend server tasks will operate correctly
  21160. Dim ws As Variant
  21161. Dim uidoc As Variant
  21162. 'Back end classes
  21163. Dim session As NotesSession
  21164. Dim db As NotesDatabase
  21165. Dim note As NotesDocument
  21166. Dim profile As NotesDocument
  21167. Dim notice As NotesDocument
  21168. Dim parentnote As NotesDocument
  21169. Dim parent As NotesDocument
  21170. Dim child As NotesDocument
  21171. Dim documents As NotesDocumentCollection
  21172. Dim children As NotesDocumentCollection
  21173. Dim date1 As NotesDateTime
  21174. Dim date2 As NotesDateTime
  21175. Dim dateItem As NotesDateTime
  21176. Dim item As NotesItem
  21177. Dim NameLookup As NotesName
  21178. 'General Purpose classes
  21179. Dim Owner As String
  21180. Dim NewDocument As Integer
  21181. 'Client Differenciation
  21182. Dim IsWebClient As Variant
  21183. %INCLUDE "orgconst.lss"
  21184. %INCLUDE "lsconst.lss"
  21185. '++LotusScript Development Environment:2:2:Initialize:1:10
  21186. Sub Initialize
  21187.      
  21188. End Sub
  21189. '++LotusScript Development Environment:2:2:InstantiateObjectVariables:1:8
  21190. Sub InstantiateObjectVariables
  21191.      Set session = New NotesSession
  21192.      Set db = session.CurrentDatabase
  21193.      
  21194.      GetCalendarOwner
  21195.      
  21196.      If Typename(uidoc) <> "EMPTY" Then
  21197.           Set note = uidoc.Document
  21198.           uidoc.AutoReload  = False
  21199.      End If
  21200. End Sub
  21201. '++LotusScript Development Environment:2:2:GetCalendarOwner:1:8
  21202. Sub GetCalendarOwner
  21203.      
  21204.      On Error Resume Next
  21205.      
  21206.      If (profile Is Nothing) Then Set profile = db.GetProfileDocument("CalendarProfile")     
  21207.      If Err > 0 Then
  21208.           Err = 0     
  21209.           Call CreateDefaultCalendarProfile
  21210.      End If
  21211.      
  21212.      On Error Goto ErrorRoutine
  21213.      If profile.Owner(0) = "" Then Call CreateDefaultCalendarProfile
  21214.      
  21215.      Owner = profile.Owner(0)
  21216.      
  21217.      Exit Sub
  21218.      
  21219. ErrorRoutine:
  21220.      Messagebox Error & " (creating Calendar Profile)"
  21221.      Exit Sub
  21222. End Sub
  21223. '++LotusScript Development Environment:2:2:MarkTempFields:1:8
  21224. Sub MarkTempFields(doc As NotesDocument)
  21225. 'Mark all temporary and compute for display fields such that they will not be saved to disk     
  21226.      On Error Resume Next
  21227.      itemlist = doc.Items
  21228.      Forall n In itemlist
  21229.           If Lcase(Left(n.Name, 3)) = "tmp" Or Lcase(Left(n.Name, 4)) = "disp" Then n.SaveToDisk = False
  21230.      End Forall     
  21231.      
  21232.      If Not IsWebClient Then Exit Sub
  21233.      
  21234.      'remove web CGI variable so that they will get updated on the next doc read
  21235.      Call doc.RemoveItem("$$QueryOpenAgent")
  21236.      Call doc.RemoveItem("$$QuerySaveAgent")
  21237.      Call doc.RemoveItem("Path_Info")
  21238.      Call doc.RemoveItem("Query_String")
  21239.      
  21240.      'if the mail option fields are all default values, remove them
  21241.      If (doc.Importance(0) = "2" And doc.DeliveryPriority(0) = "N" And doc.DeliveryReport(0) = "B" And _
  21242.      doc.Form(0) <> "Task") Then
  21243.           Call doc.RemoveItem("Importance")
  21244.           Call doc.RemoveItem("DeliveryPriority")
  21245.           Call doc.RemoveItem("DeliveryReport")
  21246.      End If
  21247. End Sub
  21248. '++LotusScript Development Environment:2:2:CreateDefaultCalendarProfile:1:8
  21249. Sub CreateDefaultCalendarProfile
  21250.  *This routine creates a calendar profile document
  21251.   containg default values for required fields
  21252. %END REM
  21253.      
  21254. 'the global variable "profile" is a profile document already
  21255. 'we need to add the fields to it
  21256.      profile.Form = "CalendarProfile"
  21257.      Call profile.ComputeWithForm(False, False)
  21258.      
  21259.      If IsWebClient Then
  21260.           Call wInitDefaultSettings()
  21261.      Else
  21262.           Call profile.Save(True,True,True)
  21263.      End If
  21264. End Sub
  21265. '++LotusScript Development Environment:2:2:wInitDefaultSettings:1:8
  21266. Sub wInitDefaultSettings
  21267.      profile.wDefaultMailOpt = "2"
  21268.      profile.wEnableTrashIcon = "1"
  21269.      profile.wCalGridType = "3"
  21270.      
  21271.      profile.wEnableNABs = "0"
  21272.      profile.wEnableFavorites = "0"
  21273.      
  21274.      profile.wIsFolder1 = "1"
  21275.      profile.wIsFolder2 = "1"
  21276.      profile.wIsFolder3 = "1"
  21277.      profile.wIsFolder4 = "1"
  21278.      profile.wIsFolder5 = "1"
  21279.      profile.wIsFolder6 = "1"
  21280.      
  21281.      profile.NotesNab1 = "names.nsf"
  21282.      
  21283.      Call profile.Save(True,True,True)
  21284. End Sub
  21285. O=Lotus Notes
  21286. O=Lotus Notes
  21287. PURSAFO
  21288. |.:#U
  21289. O=Lotus Notes
  21290. CN=Lotus Notes Template Development/O=Lotus Notes
  21291. PURSAFO
  21292. Fde!f^^
  21293. $ScriptLib
  21294. $ScriptLib_O
  21295. $TITLE
  21296. $Flags
  21297. $PublicAccess
  21298. '++LotusScript Development Environment:2:5:(Options):0:74
  21299. Option Public
  21300. Use "ObjectVariables"
  21301. '++LotusScript Development Environment:2:5:(Forward):0:1
  21302. Declare Sub RepeatSave
  21303. Declare Sub RepeatClose
  21304. Declare Sub SaveOriginalValues
  21305. Declare Sub ModifyRecurring
  21306. Declare Sub CopyChanges
  21307. Declare Sub BuildRepeatDates
  21308. Declare Sub NextAdjustment(x, TargetWeek)
  21309. Declare Function ProcessThisDoc As Integer
  21310. Declare Sub GetModifiedSettings
  21311. '++LotusScript Development Environment:2:5:(Declarations):0:10
  21312. '------PROCESSING VARIABLES------
  21313. Dim tmpnote As NotesDocument
  21314. Dim repnote As NotesDocument
  21315. Dim timerange As NotesDateRange
  21316. Dim Action As String
  21317. Dim AdjustDays As Integer
  21318. Dim Adjustment As Integer
  21319. Dim ChangeWhich As String
  21320. Dim DateList() As Variant
  21321. Dim DayList() As Integer
  21322. Dim SaveValueList List As Variant
  21323. Dim tmpRepeatDates() As Variant
  21324. Dim tmpRepeatIds() As Variant
  21325. Dim WeekList() As Integer
  21326. Dim WeekNbr As Integer
  21327. Dim CancelChange As Integer
  21328. Dim InstancesCreated As Integer
  21329. Dim QueriedForChanges As Integer
  21330. '++LotusScript Development Environment:2:2:RepeatSave:1:8
  21331. Sub RepeatSave
  21332.      
  21333.      On Error Goto ErrorRoutine
  21334.      
  21335. 'note IS THE CURRENT DOCUMENT
  21336. 'repnote IS THE REPEAT INSTANCE
  21337. 'parent IS THE ULTIMATE PARENT     
  21338.      
  21339. 'if note is a response, check to see if it is a notice
  21340. 'if it is a notice then we need to find the parent     
  21341.      If note.IsResponse Then
  21342.           If note.Form(0) = "Notice" Then
  21343.                Set repnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  21344.           Else
  21345.                Set repnote = note
  21346.           End If
  21347.           If repnote Is Nothing Then Exit Sub
  21348.           Err = 0          
  21349.           On Error Resume Next
  21350.           Set parent = db.GetDocumentByUNID(repnote.ParentDocumentUNID)
  21351.           If Err = 0 Then
  21352.                On Error Goto ErrorRoutine
  21353.           Else
  21354.                Err = 0
  21355.                If parent Is Nothing Then Messagebox "This document's repeat parent has been deleted, "&_
  21356.                "therefore this calendar entry can no longer be processed as a repeating entry.", 0, "Repeat Parent Not Found"
  21357.                Exit Sub
  21358.           End If
  21359.      Else
  21360.           Set parent = note
  21361.      End If    
  21362.      
  21363.      If parent Is Nothing Then Exit Sub
  21364.      
  21365.      If (NewDocument Or Action = "Accept") And Not(InstancesCreated) Then
  21366. 'Build a list of all the dates this appointment will recur on (Accept already has the RepeatDates)               
  21367.           If NewDocument And note.RepeatUnit(0) <> "C" Then Call BuildRepeatDates
  21368. 'This doc becomes the parent of all of the repeat instances               
  21369. 'Mark all temporary and compute for display fields such that they will not be saved to disk     
  21370.           On Error Resume Next
  21371.           itemlist = parent.Items
  21372.           Forall n In itemlist
  21373.                If Lcase(Left(n.Name, 3)) = "tmp" Or Lcase(Left(n.Name, 4)) = "disp" Then n.SaveToDisk = False
  21374.           End Forall
  21375.           On Error Goto ErrorRoutine
  21376.           Set timerange = session.CreateDateRange
  21377. 'Get the duration
  21378.           Set date1 = New NotesDateTime(parent.StartDateTime(0))
  21379.           Set date2 = New NotesDateTime(parent.EndDateTime(0))
  21380.           Duration =date2.TimeDifference(date1) / 60
  21381. 'Get the original start time and use it to set the time
  21382.           Set date2 = New NotesDateTime(parent.StartDateTime(0))
  21383.           date2.SetAnyDate
  21384. 'If there is a $AlarmTime we need to create the correct alarm times for each instsance
  21385.           If parent.HasItem("$AlarmTime") Then
  21386.                AlarmTime = parent.GetItemValue("$AlarmTime")
  21387.                Dim alarmdate As New NotesDateTime(AlarmTime(0))
  21388.                AlarmDiff = alarmdate.TimeDifference(date1) / 60
  21389.           End If
  21390. 'Create a copy of this meeting for each of the repeatDates, these are all children of parent which we just created
  21391.           RepeatDates = parent.RepeatDates
  21392.           RepeatIds = parent.RepeatIds
  21393.           BusyName = Owner
  21394.           IdList = parent.RepeatIds
  21395.           If Ubound(RepeatDates) > Ubound(IdList) Then Redim Preserve IdList(Ubound(RepeatDates))
  21396.           x = 0
  21397.           Forall d In RepeatDates
  21398.                Print "Creating repeating appointments... (" & (x+1) & " out of " & (Ubound(RepeatDates)+1) & ")"
  21399.                Set repnote = New NotesDocument(db)
  21400.                Call parent.CopyAllItems(repnote)
  21401.                repnote.Form = "Appointment"
  21402.                If NewDocument Then
  21403.                     repnote.Chair = Owner
  21404.                Else
  21405.                     repnote.Chair = note.Chair 'in this case we are accepting an invite
  21406.                End If
  21407.                repnote.SequenceNum = 1
  21408. 'Store new date with original time (date2)
  21409.                Set date1 = New NotesDateTime(d & " " & date2.LocalTime)
  21410.                Call repnote.ReplaceItemValue("StartDateTime", date1)
  21411.                Call repnote.ReplaceItemValue("StartDate", date1)
  21412.                Call repnote.ReplaceItemValue("CalendarDateTime", date1)
  21413.                Call date1.AdjustMinute(Duration, True)
  21414.                Call repnote.ReplaceItemValue("EndDateTime", date1)
  21415.                Call repnote.ReplaceItemValue("$NoPurge", date1)
  21416.                Set timerange.StartDateTime = New NotesDateTime(d & " " & date2.LocalTime)               
  21417.                Set timerange.EndDateTime = date1
  21418.                Set repnote.TimeRange = timerange
  21419.                If repnote.HasItem("$AlarmTime") Then
  21420.                     Call date1.AdjustMinute(AlarmDiff, True)
  21421.                     Call repnote.ReplaceItemValue("$AlarmTime", date1)
  21422.                End If
  21423.                If repnote.HasItem("Invite") Or repnote.SendTo(0) <> "" Or repnote.CopyTo(0) <> "" Or Action = "Accept" Or NewDocument Then
  21424.                     repnote.RemoveItem("Invite") 
  21425.                     repnote.RemoveItem("SendTo") 
  21426.                     repnote.RemoveItem("CopyTo") 
  21427.                     If (repnote.Resources(0) <> "") Then repnote.RequiredResources = repnote.Resources
  21428.                     repnote.RemoveItem("Resources")
  21429.                     repnote.RemoveItem("RoomToReserve")
  21430.                     repnote.RemoveItem("$Signature")
  21431.                End If 
  21432. 'Remove all of the Repeat parameters - these are saved in the parent document               
  21433.                repnote.RemoveItem("RepeatUnit")               
  21434.                repnote.RemoveItem("RepeatDates")
  21435.                repnote.RemoveItem("RepeatIds")
  21436.                repnote.RemoveItem("RepeatAdjust")
  21437.                repnote.RemoveItem("RepeatFor")
  21438.                repnote.RemoveItem("RepeatForUnit")
  21439.                repnote.RemoveItem("RepeatHow")
  21440.                repnote.RemoveItem("RepeatInterval")
  21441.                repnote.RemoveItem("RepeatUntil")
  21442.                repnote.RemoveItem("RepeatWeekends")
  21443.                Call repnote.ReplaceItemValue("$BusyName", BusyName)
  21444.                Call repnote.MakeResponse(parent)
  21445.                Call repnote.ReplaceItemValue("$RefOptions", "1")
  21446.                If Action = "Accept" Then
  21447.                     repnote.UniversalId = RepeatIds(x)
  21448.                Else
  21449.                     IdList(x) = repnote.UniversalId
  21450.                End If
  21451.                repnote.save True, True, True
  21452.                If repnote.HasItem("$Alarm") Then Call repnote.PutInFolder("$Alarms")
  21453.                x = x + 1
  21454.           End Forall
  21455.           parent.RepeatIds = IdList
  21456.           parent.RemoveItem("CalendarDateTime")
  21457.           parent.RemoveItem("$BusyName")
  21458.           parent.RemoveItem("$BusyPriority")
  21459.           parent.Save True, True, True
  21460.           InstancesCreated = True          
  21461.      Else
  21462.           If note.IsResponse Then Call ModifyRecurring
  21463.      End If
  21464.      
  21465.      If Typename(uidoc) = "EMPTY" Then
  21466.           If Not(note Is Nothing) And Not(CancelChange) Then note.save True, True, True
  21467.      Elseif uidoc Is Nothing Then
  21468.           If Not(note Is Nothing) And Not(CancelChange) Then note.save True, True, True
  21469.      End If
  21470.      
  21471.      Exit Sub
  21472.      
  21473. ErrorRoutine:
  21474.      Messagebox Error & " (RepeatSave)"
  21475.      Exit Sub
  21476.      
  21477. End Sub
  21478. '++LotusScript Development Environment:2:2:RepeatClose:1:8
  21479. Sub RepeatClose
  21480.      
  21481.      On Error Goto ErrorRoutine
  21482.      
  21483.      If Action = "SaveBody" Then
  21484.           uidoc.Save
  21485.      Else
  21486.           ws.ViewRefresh
  21487.      End If
  21488.      
  21489.      Exit Sub
  21490.      
  21491. ErrorRoutine:
  21492.      Messagebox Error & " (RepeatQueryClose)"
  21493.      Exit Sub
  21494.      
  21495. End Sub
  21496. '++LotusScript Development Environment:2:2:SaveOriginalValues:1:8
  21497. Sub SaveOriginalValues
  21498.      On Error Goto ErrorRoutine
  21499. 'Save the current value of all fields in the repeat instance
  21500.      
  21501.      If note.Form(0) = "Notice" And note.IsResponse Then
  21502.           Set repnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  21503.      Else
  21504.           Set repnote = note
  21505.      End If
  21506.      
  21507.      If repnote Is Nothing Then Exit Sub
  21508.      
  21509.      Forall i In repnote.Items
  21510.           If (Left(i.name, 1) <> "$" And Lcase(Left(i.name, 3)) <> "tmp" And Lcase(Left(i.name, 3)) <> "disp") Or _
  21511.           (Mid(i.name, 2, 5) = "Alarm")  Then
  21512.                SaveValueList(i.Name) = i.Values
  21513.           End If
  21514.      End Forall
  21515.      
  21516.      Exit Sub
  21517.      
  21518. ErrorRoutine:
  21519.      Messagebox Error & " (SaveOriginalValues)"
  21520.      Exit Sub
  21521.      
  21522. End Sub
  21523. '++LotusScript Development Environment:2:2:ModifyRecurring:1:8
  21524. Sub ModifyRecurring
  21525.      
  21526.      On Error Goto ErrorRoutine
  21527.      
  21528.      If parent Is Nothing Then Exit Sub
  21529.      
  21530.      RepeatDates = parent.RepeatDates
  21531.      RepeatIds = parent.RepeatIds
  21532.      If RepeatDates(0) = "" Or RepeatIds(0) = "" Then Exit Sub
  21533.      
  21534. 'clear out these arrays because we'll be rebuilding them with only the remaining dates     
  21535.      If Action = "Delete" Then
  21536.           For d = 0 To Ubound(RepeatDates)
  21537.                RepeatDates(d) = ""
  21538.                RepeatIds(d) = ""
  21539.           Next
  21540.      End If
  21541.      
  21542.      Call GetModifiedSettings
  21543.      
  21544.      If ChangeWhich = "0" And Action <> "Delete" Then Exit Sub
  21545.      
  21546. 'Add any new items and their values.
  21547.      Forall i In repnote.Items
  21548.           If (Left(i.name, 1) <> "$" And Lcase(Left(i.name, 3)) <> "tmp" And Lcase(Left(i.name, 3)) <> "disp") Or _
  21549.           (Mid(i.name, 2, 5) = "Alarm")  Then
  21550.                ItemFound = False
  21551.                Forall s In SaveValueList
  21552.                     If i.Name = Listtag(s) Then
  21553.                          ItemFound = True
  21554.                          Exit Forall
  21555.                     End If
  21556.                End Forall
  21557.                If Not(ItemFound) Then SaveValueList(i.Name) = i.Values
  21558.           End If
  21559.      End Forall
  21560.      
  21561.      Set children = parent.Responses
  21562.      If children Is Nothing Then Exit Sub
  21563.      Set child = children.GetFirstDocument
  21564.      Set timerange = session.CreateDateRange
  21565.      x = 0
  21566.      y = 0
  21567.      While Not (child Is Nothing)
  21568.           If (child.Form(0) = "Appointment") Then
  21569.                If ProcessThisDoc Then
  21570.                     Select Case Action
  21571.                     Case "Delete"
  21572.                          Set tmpnote = children.GetNextDocument(child)
  21573.                          Call child.Remove(True)
  21574.                     Case "Cancel"
  21575.                          child.RemoveItem("CalendarDateTime")
  21576.                          Call child.ReplaceItemValue("$BusyPriority","2")     
  21577.                          child.NoticeType = ORS_MSGTYPE_CANCEL     
  21578.                          child.RemoveItem("OrgTable")
  21579.                          child.Save True, True, True
  21580.                     Case Else
  21581.                          If child.UniversalID <> repnote.UniversalID Then
  21582.                               Call CopyChanges
  21583.                               Set date1 = New NotesDateTime(child.StartDateTime(0))
  21584.                               Set date2 = New NotesDateTime(child.EndDateTime(0))
  21585.                               Set timerange.StartDateTime = date1
  21586.                               Set timerange.EndDateTime = date2
  21587.                               Set child.TimeRange = timerange
  21588.                               child.Save True, True, True
  21589.                          End If
  21590. 'these are reset so that we can post the new values on the parent (removing the values for deleted instances)                    
  21591.                          RepeatDates(x) = Datevalue(child.StartDateTime(0))
  21592.                          RepeatIds(x) = child.UniversalId
  21593. 'tmpRepeatDates are posted to a reschedule notice
  21594.                          Redim Preserve tmpRepeatDates(y)               
  21595.                          Redim Preserve tmpRepeatIds(y)               
  21596.                          tmpRepeatDates(y) = RepeatDates(x)
  21597.                          tmpRepeatIds(y) = RepeatIds(x)
  21598.                          y = y + 1
  21599.                          x = x + 1
  21600.                     End Select
  21601.                Else
  21602. 'we want to rebuild the RepeatDates and RepeatIds lists with only valid ones (if the doc is deleted its date and ID are removed)                                                       
  21603.                     RepeatDates(x) = Datevalue(child.StartDateTime(0))
  21604.                     RepeatIds(x) = child.UniversalId
  21605.                     x = x + 1
  21606.                End If
  21607.           End If
  21608. 'child will be nothing if we just removed it          
  21609.           If child Is Nothing Then
  21610.                Set child = tmpnote
  21611.           Else
  21612.                Set child = children.GetNextDocument(child)
  21613.           End If
  21614.      Wend
  21615.      
  21616.      If Action = "Delete" Then
  21617.           If ChangeWhich = "1" Then Call parent.Remove(True)
  21618.      Else
  21619.           repnote.tmpRepeatDates = tmpRepeatDates
  21620.           repnote.tmpRepeatIds = tmpRepeatIds
  21621.      End If
  21622.      
  21623.      If Not(parent Is Nothing) And RepeatDates(0) <> "" Then
  21624.           For r = 0 To Ubound(RepeatDates)
  21625.                If RepeatDates(r) = "" Then Exit For
  21626.           Next
  21627.           Redim Preserve RepeatDates(r-1)          
  21628.           Redim Preserve RepeatIds(r-1)          
  21629.           parent.RepeatDates = RepeatDates
  21630.           parent.RepeatIds = RepeatIds
  21631.           parent.save True, True, True   
  21632.      End If
  21633.      
  21634.      Exit Sub
  21635.      
  21636. ErrorRoutine:
  21637.      Messagebox Error & " (ModifyRecurring)"
  21638.      Exit Sub
  21639.      
  21640. End Sub
  21641. '++LotusScript Development Environment:2:2:CopyChanges:1:8
  21642. Sub CopyChanges
  21643.      Dim rtitem As NotesRichTextItem
  21644.      
  21645.      On Error Goto ErrorRoutine
  21646.      
  21647.      Forall OldValue In SaveValueList
  21648.           FieldName = Listtag(OldValue)
  21649.           NewValue = repnote.GetItemValue(FieldName)
  21650.           If FieldName = "Body" Then
  21651.                Set rtitem = repnote.GetFirstItem("body")
  21652.                Call child.RemoveItem("body")
  21653.                If Not(rtitem Is Nothing) Then Call rtitem.CopyItemToDocument(child,"body")
  21654.           Elseif Lcase(FieldName) = "statusupdate" Then
  21655. 'we don't want to do anything with this field                  
  21656.           Else
  21657.                If Cstr(NewValue(0)) <> Cstr(OldValue(0)) Then
  21658.                     Select Case Lcase(FieldName)
  21659. 'dates need to be adjusted (other things just get replaced)                        
  21660.                     Case "startdatetime", "calendardatetime", "enddatetime", "$alarmtime", "startdate"
  21661. 'date1 is old date                    
  21662.                          Set date1 = New NotesDateTime(Cstr(OldValue(0)))
  21663. 'date2 is new date                    
  21664.                          Set date2 = New NotesDateTime(Cstr(NewValue(0)))
  21665.                          TotalDif = date2.TimeDifference(date1)
  21666.                          AdjustDays = Fix(TotalDif / 86400)
  21667.                          SecDif = TotalDif Mod 86400
  21668.                          AdjustMin = Fix(SecDif / 60)
  21669.                          Set item = child.GetFirstItem(FieldName)
  21670.                          If Not(item Is Nothing) Then
  21671.                               Set dateItem = item.DateTimeValue
  21672.                               Call dateItem.AdjustDay(adjustDays, True)
  21673.                               Call dateItem.AdjustMinute(AdjustMin, True)
  21674.                               Call child.ReplaceItemValue(FieldName, dateItem)
  21675.                          End If
  21676.                     Case "sendto", "copyto", "resources", "requiredresources","statusupdate"
  21677.                          'we don't want to copy these fields
  21678.                     Case Else
  21679. 'The other fields can simply be copied over                    
  21680.                          Call child.ReplaceItemValue(FieldName, repnote.GetItemValue(FieldName))
  21681.                     End Select
  21682.                End If
  21683.           End If
  21684.      End Forall
  21685.      
  21686.      Exit Sub
  21687.      
  21688. ErrorRoutine:
  21689.      Messagebox Error & " (CopyChanges)"
  21690.      Exit Sub
  21691.      
  21692. End Sub
  21693. '++LotusScript Development Environment:2:2:BuildRepeatDates:1:8
  21694. Sub BuildRepeatDates
  21695.      
  21696. 'this only happens on a new doc so note = repnote = parent     
  21697.      
  21698.      On Error Goto ErrorRoutine
  21699.      
  21700. Assumes the following fields exist on the form:
  21701.    RepeatUnit - Daily(D), Weekly(W), MonthlyByDate(MD), MonthlyByDay(MP), Yearly(YD), Custom(C)
  21702.    RepeatInterval - 1, 2, 3.... for every, every other, every 3rd,...
  21703.    RepeatAdjust - if unit = W then 0, 1..6 representing days of the week
  21704.    StartDate
  21705.    RepeatHow - Until (U) or For (F)
  21706.    RepeatFor - a number of units
  21707.    RepeatForUnit - the unit used in RepeatFor (D, W, M, Y)
  21708.    RepeatUntil - a date
  21709.    RepeatWeekends - Don'tMove(D), MoveToFriday(F), MoveToMonday(M), MoveToNearestWeekday(N), Delete(X)
  21710. NOTE:  In some instances, we create an instance for StartDateTime then the number of occurances specified in RepeatFor.
  21711.    For example if StartDateTime is a Monday and you indicated that you wanted to repeat every Thursday for 5 weeks
  21712.    we create an instance for the Monday and 5 Thursdays.  But if you say you want to repeat every Thursday,
  21713.    and StartDateTime is the first of those Thursdays we need to subtract 1 from RepeatFor so we don't create an extra instance.
  21714. %ENDREM
  21715.      
  21716. 'Remove existing dates - replace with new item which we are about to populate
  21717.      If note.HasItem("RepeatDates") Then note.RemoveItem("RepeatDates")
  21718.      Set item = New NotesItem(note, "RepeatDates", Date)
  21719. 'setting RepeatStartDate = StartDateTime ensures that the start time will be accurare
  21720.      note.RepeatStartDate = note.StartDateTime     
  21721. 'date1 refers to RepeatStartDate.  date2 is used to generate the RepeatDates list          
  21722.      Set date1 = New NotesDateTime(note.RepeatStartDate(0))
  21723. 'This clears out any existing values     
  21724.      x = 1     
  21725.      Redim DateList(x)
  21726.      DateList(0) = date1.LSLocalTime
  21727.      TargetWeek = ""
  21728.      
  21729. 'Get the number of days to adjust by
  21730.      Select Case note.RepeatUnit(0)
  21731.      Case "D" '(Daily)
  21732.           Adjustment = Cint(note.RepeatInterval(0))
  21733.           Set date2 = New NotesDateTime(note.RepeatStartDate(0))
  21734.           Call date2.AdjustDay(Adjustment, True)
  21735.           If note.RepeatHow(0) = "F" Then note.RepeatFor = note.RepeatFor(0) - 1
  21736.           Gosub BuildDateList
  21737.      Case "W" '(Weekly)
  21738. 'Get day of the week of startdate (LotusScript counts the days as 1-7)
  21739.           FirstDay = Weekday(date1.LSLocalTime) - 1
  21740. 'If the start day is after the day we want the event to occur, adjust to next week
  21741.           RepeatAdjust = note.RepeatAdjust
  21742.           Redim DayList(Ubound(RepeatAdjust))
  21743.           Adjustment = Cint(note.RepeatInterval(0)) * 7
  21744.           For i = 0 To Ubound(RepeatAdjust)
  21745.                Set date2 = New NotesDateTime(note.RepeatStartDate(0))              
  21746.                DayList(i) = Cint(RepeatAdjust(i))              
  21747.                Select Case DayList(i)
  21748.                Case FirstDay
  21749.                     Call date2.AdjustDay(Adjustment, True)
  21750.                     If note.RepeatHow(0) = "F" Then note.RepeatFor = note.RepeatFor(0) - 1
  21751.                Case Is < FirstDay
  21752.                     Call date2.AdjustDay(7 - (FirstDay - DayList(i)), True)
  21753.                Case Is > FirstDay
  21754.                     Call date2.AdjustDay(DayList(i) - FirstDay, True)
  21755.                End Select
  21756.                Gosub BuildDateList
  21757.           Next
  21758.      Case "MD" '(Monthly by Date)
  21759.           FirstDay = Cint(Day(date1.LSLocalTime))
  21760.           RepeatAdjust = note.RepeatAdjust
  21761.           Redim DayList(Ubound(RepeatAdjust))
  21762.           Adjustment = Cint(note.RepeatInterval(0))
  21763.           For i = 0 To Ubound(DayList)
  21764.                Set date2 = New NotesDateTime(note.RepeatStartDate(0))
  21765.                DayList(i) = Cint(RepeatAdjust(i))
  21766.                Select Case DayList(i)
  21767.                Case FirstDay
  21768.                     Call date2.AdjustMonth(Adjustment, True)
  21769.                     If note.RepeatHow(0) = "F" Then note.RepeatFor = note.RepeatFor(0) - 1
  21770.                Case Is < FirstDay
  21771. 'adjust back to the correct day                    
  21772.                     Call date2.AdjustDay(-1*(FirstDay - DayList(i)), True)
  21773. 'adjust that day to next month
  21774.                     Call date2.AdjustMonth(Adjustment, True)
  21775.                Case Is > FirstDay
  21776.                     Call date2.AdjustDay(DayList(i) - FirstDay, True)
  21777.                End Select
  21778.                Gosub BuildDateList
  21779.           Next
  21780.      Case "MP" '(Monthly by Day)
  21781. 'Get day of the week of startdate (LotusScript counts the days as 1-7)
  21782.           FirstDay = Cint(Weekday(date1.LSLocalTime) - 1)
  21783. 'RepeatAdjust is stored as Week.Day          
  21784.           RepeatAdjust = note.RepeatAdjust
  21785.           Redim DayList(Ubound(RepeatAdjust))
  21786.           Redim WeekList(Ubound(RepeatAdjust))
  21787. 'Create 2 variant arrays, one for weeks and one for days          
  21788.           For t = 0 To Ubound(DayList)
  21789.                DayList(t) = Cint(Right(RepeatAdjust(t), 1))
  21790.                WeekList(t) = Cint(Left(RepeatAdjust(t), 1))
  21791.           Next
  21792.           Adjustment = Cint(note.RepeatInterval(0))
  21793.           For i = 0 To Ubound(RepeatAdjust)
  21794.                Set date2 = New NotesDateTime(note.RepeatStartDate(0))
  21795. 'Adjust to the appropriate day
  21796.                Select Case DayList(i)
  21797.                Case Is < FirstDay
  21798.                     Call date2.AdjustDay(7 - (FirstDay - DayList(i)), True)
  21799.                Case Is > FirstDay
  21800.                     Call date2.AdjustDay(DayList(i) - FirstDay, True)
  21801.                End Select
  21802. 'Get the week number this date is in
  21803.                If Day(date2.LSLocalTime) Mod 7 > 0 Then
  21804.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7) + 1
  21805.                Else
  21806.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7)
  21807.                End If 
  21808.                CurrentMonth = Month(date2.LSLocalTime)
  21809.                Do Until WeekNbr = WeekList(i)
  21810.                     Call date2.AdjustDay(7, True)
  21811.                     If Day(date2.LSLocalTime) Mod 7 > 0 Then
  21812.                          WeekNbr = Int(Day(date2.LSLocalTime) / 7) + 1
  21813.                     Else
  21814.                          WeekNbr = Int(Day(date2.LSLocalTime) / 7)
  21815.                     End If
  21816.                     If WeekList(i) = 5 And CurrentMonth <> Month(date2.LSLocalTime) Then
  21817.                          WeekNbr = 5
  21818.                          Call date2.AdjustDay(-7, True)
  21819.                     End If
  21820.                Loop
  21821.                TargetWeek = WeekList(i)
  21822.                Gosub BuildDateList
  21823.           Next
  21824.      Case "YD" '(Yearly)
  21825.           Adjustment = Cint(note.RepeatInterval(0))
  21826.           Set date2 = New NotesDateTime(note.RepeatStartDate(0))
  21827.           Call date2.AdjustYear(Adjustment, True)
  21828.           If note.RepeatHow(0) = "F" Then note.RepeatFor = note.RepeatFor(0) - 1
  21829.           Gosub BuildDateList
  21830.      Case "C"
  21831.      End Select
  21832.      
  21833.      x = Ubound(DateList)
  21834.      If DateList(x) = "" Then Redim Preserve DateList(x-1)
  21835.      note.RepeatDates = DateList
  21836.      Exit Sub
  21837.      
  21838. BuildDateList:
  21839.      
  21840. 'Set dateitem = the last repeat date     
  21841.      If note.RepeatHow(0) = "U" Then
  21842.           DatePortion = Evaluate("@Date(RepeatUntil)", note)
  21843.           TimePortion = Evaluate("@Time(StartDateTime)", note)
  21844.           Set dateItem = New NotesDateTime(DatePortion(0) & " " & TimePortion(0))
  21845. 'reset the time portion of RepeatUntil          
  21846.           Set note.RepeatUntil = dateItem
  21847.      Else
  21848.           Set dateitem = New NotesDateTime(note.RepeatStartDate(0))
  21849.           Select Case note.RepeatForUnit(0)
  21850.           Case "D"
  21851.                Call dateitem.AdjustDay(note.RepeatFor(0), True)
  21852.           Case "W"
  21853.                Call dateitem.AdjustDay(note.RepeatFor(0) * 7, True)
  21854.           Case "M"
  21855.                Call dateitem.AdjustMonth(note.RepeatFor(0), True)
  21856.           Case "Y"
  21857.                Call dateitem.AdjustYear(note.RepeatFor(0), True)
  21858.           End Select
  21859.      End If
  21860. 'dateitem is the until date and date2 is the date we're comparing it against
  21861. 'Add the correct number of days and add to the array
  21862.      Do While dateItem.TimeDifference(date2) => 0
  21863. 'D means do not move          
  21864.           If note.RepeatWeekends(0) <> "D" Then
  21865.                Do
  21866.                     WeekendDay = Weekday(date2.LSLocalTime)
  21867.                     If WeekendDay = 1 Or WeekendDay = 7 Then
  21868.                          Select Case note.RepeatWeekends(0)
  21869.                          Case "F"   'Move to Friday
  21870.                               If WeekendDay = 1 Then
  21871.                                    WeekendAdjust = 2
  21872.                               Else
  21873.                                    WeekendAdjust = 1
  21874.                               End If
  21875.                               Call date2.AdjustDay(-1*WeekendAdjust, True)
  21876. 'if the Friday is already on the list then add back the days you just subtracted, plus the normal adjustment                                   
  21877.                               If DateList(x-1) <> date2.LSLocalTime Then
  21878.                                    Redim Preserve DateList(x)
  21879.                                    DateList(x) = date2.LSLocalTime
  21880.                                    x = x + 1
  21881.                               End If
  21882.                               Call date2.AdjustDay(WeekendAdjust, True)
  21883.                               Call NextAdjustment(x, TargetWeek)
  21884.                          Case "M"   'Move to Monday
  21885.                               If WeekendDay = 1 Then
  21886.                                    WeekendAdjust = 1
  21887.                               Else
  21888.                                    WeekendAdjust = 2
  21889.                               End If
  21890.                               Call date2.AdjustDay(WeekendAdjust, True)
  21891. 'Add Monday to DateList
  21892.                               Redim Preserve DateList(x)
  21893.                               DateList(x) = date2.LSLocalTime
  21894.                               x = x + 1
  21895. 'Go back to the day you moved to Monday                              
  21896.                               Call date2.AdjustDay(-1 * WeekendAdjust, True)
  21897.                               Call NextAdjustment(x, TargetWeek)
  21898.                          Case "N"   'Move to the nearest weekday
  21899.                               If WeekendDay = 1 Then
  21900.                                    WeekendAdjust = 1
  21901.                               Else
  21902.                                    WeekendAdjust = -1
  21903.                               End If
  21904.                               Call date2.AdjustDay(WeekendAdjust, True)
  21905. 'Add the Friday or Monday to DateList
  21906.                               If DateList(x-1) <> date2.LSLocalTime Then
  21907.                                    Redim Preserve DateList(x)
  21908.                                    DateList(x) = date2.LSLocalTime
  21909.                                    x = x + 1
  21910.                               End If
  21911.                               Call date2.AdjustDay(-1 * WeekendAdjust, True)
  21912.                               Call NextAdjustment(x, TargetWeek)
  21913.                          Case "X"   'Delete (don't create an instance for that one)
  21914.                               Call NextAdjustment(x, TargetWeek)
  21915.                          End Select
  21916.                     End If
  21917.                     WeekendDay = Weekday(date2.LSLocalTime)
  21918.                Loop Until WeekendDay > 1 And WeekendDay < 7
  21919.           End If   'End of Weekend processing
  21920. 'The weekend adjustment might have adjusted us beyond the until date          
  21921.           If dateItem.TimeDifference(date2) => 0 Then
  21922.                Redim Preserve DateList(x)
  21923.                DateList(x) = date2.LSLocalTime
  21924.                If DateList(x) <> DateList(x-1) Then x = x + 1
  21925.                Call NextAdjustment(x, TargetWeek)
  21926.           End If
  21927.           Loop   'this Loops until we've reached the date when we want to stop repeating
  21928.           
  21929.           Return
  21930.           
  21931. ErrorRoutine:
  21932.           Messagebox Error & " (BuildRepeatDates)"
  21933.           Exit Sub
  21934.           
  21935. End Sub
  21936. '++LotusScript Development Environment:2:2:NextAdjustment:1:8
  21937. Sub NextAdjustment(x, TargetWeek)
  21938.      
  21939.      On Error Goto ErrorRoutine
  21940.      
  21941.      Select Case note.RepeatUnit(0)
  21942.      Case "D", "W"
  21943.           Call date2.AdjustDay(Adjustment, True)
  21944. 'If you already have one for that day adjust again                                   
  21945.           If DateList(x-1) = date2.LSLocalTime Then Call date2.AdjustDay(Adjustment, True)
  21946.      Case "MD"
  21947.           Call date2.AdjustMonth(Adjustment, True)
  21948.      Case "MP"
  21949.           CurrentMonth = Month(date2.LSLocalTime) + 1
  21950.           Do
  21951.                Call date2.AdjustDay(7, True)
  21952.                If Day(date2.LSLocalTime) Mod 7 > 0 Then
  21953.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7) + 1
  21954.                Else
  21955.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7)
  21956.                End If
  21957.                If TargetWeek = 5 And CurrentMonth <> Month(date2.LSLocalTime) Then
  21958.                     WeekNbr = 5
  21959.                     Call date2.AdjustDay(-7, True)
  21960.                End If
  21961.           Loop Until WeekNbr = TargetWeek
  21962.      Case "YD"
  21963.           Call date2.AdjustYear(Adjustment, True)
  21964.      End Select
  21965.      
  21966.      Exit Sub
  21967.      
  21968. ErrorRoutine:
  21969.      Messagebox Error & " (NextAdjustment)"
  21970.      Exit Sub
  21971.      
  21972. End Sub
  21973. '++LotusScript Development Environment:2:1:ProcessThisDoc:1:8
  21974. Function ProcessThisDoc As Integer
  21975.      
  21976.      On Error Goto ErrorRoutine
  21977.      
  21978.      Select Case ChangeWhich
  21979.      Case "0"
  21980.           Gosub GetDates
  21981.           If date1.TimeDifference(date2) = 0 Then ProcessThisDoc = True
  21982.      Case "1"
  21983.           ProcessThisDoc = True
  21984.      Case "2"
  21985.           Gosub GetDates
  21986.           If date1.TimeDifference(date2) > 0 Then ProcessThisDoc = True
  21987.      Case "3"
  21988.           Gosub GetDates
  21989.           If date1.TimeDifference(date2) < 0 Then ProcessThisDoc = True
  21990.      End Select
  21991.      
  21992.      Exit Function
  21993.      
  21994. GetDates:
  21995. 'we don't want to get the dates unless we need to check them     
  21996.      If repnote.HasItem("OriginalStartDate") Then
  21997.           Set date1 = New NotesDateTime(repnote.OriginalStartDate(0))
  21998.      Else
  21999.           Set date1 = New NotesDateTime(repnote.StartDateTime(0))
  22000.      End If
  22001.      Set date2 = New NotesDateTime(child.StartDateTime(0))
  22002.      Return
  22003.      
  22004. ErrorRoutine:
  22005.      ProcessThisDoc = False
  22006.      Exit Function
  22007.      
  22008. End Function
  22009. '++LotusScript Development Environment:2:2:GetModifiedSettings:1:8
  22010. Sub GetModifiedSettings
  22011.      If repnote.HasItem("RescheduleWhich") Then
  22012.           ChangeWhich = repnote.RescheduleWhich(0)
  22013.      Else
  22014.           If (QueriedForChanges) Then Exit Sub
  22015.           CancelChange = False
  22016.           If Not ws.DialogBox("(ChangeRepeating)", True, True, False, False, False, False, "Change Repeating", repnote) Then
  22017.                CancelChange = True     
  22018.                QueriedForChanges = False
  22019.                Exit Sub
  22020.           Else
  22021.                ChangeWhich = repnote.ChangeWhich(0)
  22022.                repnote.tmpRescheduleWhich = ChangeWhich
  22023.                repnote.RemoveItem("ChangeWhich")
  22024.                QueriedForChanges = True
  22025.           End If
  22026.      End If
  22027. End Sub
  22028. ,    <    <    
  22029. Kd    -t    #8
  22030.     Kd    -
  22031. Kd    S<
  22032. Kd    Pp
  22033. Kd    -t    #8
  22034. Kd    -t    #
  22035.     Kd    -
  22036. Kd    , 
  22037. Kd    ,D
  22038. Kd    S<
  22039. Kd    PT
  22040. Kd    PT
  22041. Kd    PT
  22042. Kd    QP
  22043. Kd    S\
  22044. Kd    Sx
  22045. Kd    Sx
  22046. Kd    S<
  22047. O=Lotus Notes
  22048. O=Lotus Notes
  22049. PURSAFO
  22050. |.:#U
  22051. O=Lotus Notes
  22052. CN=Lotus Notes Template Development/O=Lotus Notes
  22053. PURSAFO
  22054. Fde!f^^
  22055. $ScriptLib
  22056. $ScriptLib_O
  22057. $TITLE
  22058. $Flags
  22059. $PublicAccess
  22060. '++LotusScript Development Environment:2:5:(Options):0:74
  22061. Option Public 
  22062. Use "SharedWorkflowLibrary"
  22063. Use "RepeatProcessing" 
  22064. '++LotusScript Development Environment:2:5:(Forward):0:1
  22065. Declare Sub Initialize
  22066. Declare Sub RemoveResources(doc As NotesDocument)
  22067. Declare Sub SelectResourcesToRemove
  22068. Declare Sub ProcessRepeatingResources(ChangeWhich As String,NoticeType As String,ResourceType As String)
  22069. Declare Sub InviteResources(doc As NotesDocument)
  22070. Declare Sub InviteRoom(doc As NotesDocument)
  22071. Declare Sub RescheduleResources(ResourceType As String,doc As NotesDocument)
  22072. Declare Sub CancelResources(ResourceType As String,doc As NotesDocument)
  22073. Declare Sub ProcessOneRepeatResource(NoticeType As String,ResourceType As String,doc As NotesDocument)
  22074. '++LotusScript Development Environment:2:5:(Declarations):0:10
  22075. 'ResourceProcessing: 
  22076. '++LotusScript Development Environment:2:2:Initialize:1:10
  22077. Sub Initialize
  22078.      
  22079. End Sub
  22080. '++LotusScript Development Environment:2:2:RemoveResources:1:8
  22081. Sub RemoveResources(doc As NotesDocument)
  22082.     *This routine is called when resources need to be removed from a meeting
  22083.     *The doc parameter is the NotesDocument containing the resources that need to be removed
  22084.         - This allows us to pass in repeat instance documents 
  22085.     *This routine is not called for cancelling a meeting
  22086. %END REM
  22087.      
  22088. 'for each resource selected, send a cancel notice
  22089.      tmpResourcesRemoved = doc.tmpPeopleSelected
  22090.      If (tmpResourcesRemoved(0) <> "") Then 
  22091.           Forall Resources In tmpResourcesRemoved
  22092.                If (Cstr(Resources) = doc.Room(0)) Then 
  22093. 'this is a room
  22094.                     doc.Room = ""
  22095.                     doc.RoomRequired = ""
  22096.                     Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_ROOM,Cstr(Resources),doc)
  22097.                Else
  22098. 'this is a resource
  22099.                     Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_RESOURCE,Cstr(Resources),doc)      
  22100.                End If
  22101.                Call notice.Send(False)
  22102.           End Forall
  22103. 'update the resources field
  22104.           tmpUpdatedResources = Evaluate("@Replace(RequiredResources;tmpPeopleSelected;"""")",doc)
  22105.           doc.RequiredResources = tmpUpdatedResources
  22106.           Call MarkTempFields(doc)
  22107.           Call doc.Save(True,True,True)
  22108.      End If          
  22109. End Sub
  22110. '++LotusScript Development Environment:2:2:SelectResourcesToRemove:1:8
  22111. Sub SelectResourcesToRemove
  22112.     *This routine gets called whenever the user wants to remove a room/resource from a meeting
  22113.     *This routine displays a dialog box that allows the user to select which resources they want removed
  22114.     *After the user makes a selection, the RemoveResources routine is called to sent out notices
  22115. %END REM
  22116.      
  22117. 'build the list of resources to display in the dialog boc
  22118.      If(note.RoomRequired(0) = "1") And (note.Room(0) <> "") Then
  22119. 'if a room is required, then include the room
  22120.           tmpResourceList = Evaluate("@Trim(RequiredResources:Room)",note)
  22121.      Else
  22122.           tmpResourceList = Evaluate("@Trim(RequiredResources)",note)
  22123.      End If
  22124.      
  22125.      note.tmpPeopleList = tmpResourceList
  22126.      note.tmpheader = "Select the resources you want to remove:"
  22127.      
  22128.      If(ws.DialogBox("(PeopleListDlg)",True,True,False,False,False,False,"Remove Resources")) Then 
  22129.           If (note.HasItem("OrgRepeat")) Then Messagebox "The resources selected will be removed for the current repeat instance only.",0,"Status"
  22130. 'we can only remove resources from the current repeat instance
  22131.           Call RemoveResources(note)
  22132.           Call uidoc.Save
  22133.           Call MarkTempFields(note)
  22134.           Call note.Save(True,True,True)
  22135.      End If
  22136. End Sub
  22137. '++LotusScript Development Environment:2:2:ProcessRepeatingResources:1:8
  22138. Sub ProcessRepeatingResources(ChangeWhich As String,NoticeType As String,ResourceType As String)
  22139.     *This is the main processing logic for repeating meetings and resources
  22140.     *This routine is called once the user has performed some action (reschedule, cancel, invite)
  22141.      for a repeating meeting and has determined what repeat instances will be affected (Just this one, all, etc.)
  22142.     *This routine calls ProcessOneRepeatResource, which handles one repeat instance at a time, passing it the document
  22143.      object that represents the repeat instance and other parameters as well
  22144.     *Parameters 
  22145.         ChangeWhich is the repeat documents the user wants to modify (Just this one, all, etc.)
  22146.         NoticeType is the type of notice being sent
  22147.         ResourceType to determine if this is a room or a resource            
  22148. %END REM
  22149.      
  22150.      On Error Resume Next
  22151. 'determine which repeat instances to process
  22152.      Select Case ChangeWhich
  22153.      Case "0"
  22154. 'we only want to change this document
  22155.           Call ProcessOneRepeatResource(NoticeType,ResourceType,note)
  22156.      Case "1"
  22157. 'we want to change all instances
  22158.           Forall ids In parentnote.RepeatIds
  22159.                Set child = db.GetDocumentByUNID(Cstr(ids))
  22160.                If Not(child Is Nothing) Then Call ProcessOneRepeatResource(NoticeType,ResourceType,child)
  22161.           End Forall
  22162.      Case "2"
  22163. 'we want to invite all previous instances          
  22164.           Forall ids In parentnote.RepeatIds
  22165.                Set child = db.GetDocumentByUNID(Cstr(ids))               
  22166.                If Not(child Is Nothing) Then 
  22167.                     If (child.StartDateTime(0) <= note.StartDateTime(0)) Then Call ProcessOneRepeatResource(NoticeType,ResourceType,child)
  22168.                End If                    
  22169.           End Forall
  22170.      Case "3"
  22171. 'we want to invite all future instances          
  22172.           Forall ids In parentnote.RepeatIds
  22173.                Set child = db.GetDocumentByUNID(Cstr(ids))               
  22174.                If Not(child Is Nothing) Then 
  22175.                     If (child.StartDateTime(0) >= note.StartDateTime(0)) Then Call ProcessOneRepeatResource(NoticeType,ResourceType,child)
  22176.                End If                    
  22177.           End Forall
  22178.      End Select        
  22179. End Sub
  22180. '++LotusScript Development Environment:2:2:InviteResources:1:8
  22181. Sub InviteResources(doc As NotesDocument)
  22182.     *This routine gets  called whenever the user invites resources to a meeting
  22183.     *This routine is passed a document object for the meeting to be processed
  22184.      This allows us to handle repeating meetings
  22185.     *This function should only be called when the Resources item is not NULL
  22186.     *This function appends values in the Resources item to the RequiredResources item and
  22187.      sets the Resources item to NULL
  22188. %END REM
  22189.      
  22190.      tmpResourcesToInvite = doc.Resources
  22191.      tmpResourcesInvited = Evaluate("@Trim(RequiredResources)",doc)
  22192.      
  22193. 'make sure we have resources to process in case this function was accidentally called
  22194.      If (tmpResourcesToInvite(0) = "") Then Exit Sub
  22195. 'get the starting sequence of resources to be added to the array
  22196.      If (tmpResourcesInvited(0) = "") Then
  22197.           x = Ubound(tmpResourcesInvited)     
  22198.      Else
  22199.           x = Ubound(tmpResourcesInvited)+ 1     
  22200.      End If
  22201.      Redim Preserve tmpResourcesInvited(x + Ubound(tmpResourcesToInvite))
  22202.      
  22203.      Forall Resources In tmpResourcesToInvite
  22204.           Call CreateResourceNotice(ORS_MSGTYPE_INVITE,ORS_STATE_RESOURCE,Cstr(Resources),doc)          
  22205.           Call notice.Send(False)
  22206.           tmpResourcesInvited(x) = Resources
  22207.           x = x+1
  22208.      End Forall
  22209. 'update the required resources items
  22210.      doc.RequiredResources = tmpResourcesInvited     
  22211. 'remove the just invited resources
  22212.      doc.Resources = ""
  22213.      Call MarkTempFields(doc)
  22214.      Call doc.Save(True,True,True)
  22215. End Sub
  22216. '++LotusScript Development Environment:2:2:InviteRoom:1:8
  22217. Sub InviteRoom(doc As NotesDocument)
  22218.     *This routine gets  called whenever the user invites a room to a meeting
  22219.     *This routine is passed a document object for the meeting to be processed
  22220.      This allows us to handle repeating meetings
  22221.     *This function should only be called when the RoomToReserve item is not NULL
  22222.     *This function sets the RoomToReserve item to NULL
  22223. %END REM
  22224.      
  22225. 'make sure we have a room to process
  22226.      If (doc.Room(0) = "") Or Not(note.HasItem("Room")) Then Exit Sub
  22227. 'create the invitation
  22228.      Call CreateResourceNotice(ORS_MSGTYPE_INVITE,ORS_STATE_ROOM,doc.Room(0),doc)     
  22229.      doc.RoomToReserve = ""
  22230.      Call notice.Send(False)
  22231.      Call MarkTempFields(doc)
  22232.      Call doc.Save(True,True,True)
  22233. End Sub
  22234. '++LotusScript Development Environment:2:2:RescheduleResources:1:8
  22235. Sub RescheduleResources(ResourceType As String,doc As NotesDocument)
  22236.     *This routine is called whenever a room/resources need to be rescheduled due to a meeting change
  22237.     *The ResourceType determines whether we are rescheduling a room or a resource
  22238.     *The doc is the document object that is being rescheduled
  22239. %END REM
  22240.      
  22241.      Select Case ResourceType
  22242.      Case ORS_STATE_RESOURCE
  22243.           tmpResourcesInvited = doc.RequiredResources
  22244. 'if there are resources and this is a date change (we don't reschedule resources for room changes)
  22245.           If (tmpResourcesInvited(0) <> "") Then
  22246.                Forall Resources In tmpResourcesInvited
  22247.                     Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_RESOURCE,Cstr(Resources),doc)
  22248.                     Call notice.Send(False)
  22249.                End Forall
  22250.           End If                    
  22251.      Case ORS_STATE_ROOM
  22252.           If (doc.RoomRequired(0) = "1") And (doc.Room(0) <> "") Then
  22253.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM,doc.Room(0),doc)          
  22254.                Call notice.Send(False)     
  22255.           End If               
  22256.      End Select
  22257. End Sub
  22258. '++LotusScript Development Environment:2:2:CancelResources:1:8
  22259. Sub CancelResources(ResourceType As String,doc As NotesDocument)
  22260.     *This routine is called to whenver the user wants to cancel a meeting
  22261.     *The ResourceType determines whether we are rescheduling a room or a resource
  22262.     *The doc is the document object that is being cancelled
  22263. %END REM
  22264.      
  22265.      Select Case ResourceType
  22266.      Case ORS_STATE_RESOURCE
  22267.           tmpResourcesInvited = doc.RequiredResources
  22268.           If (tmpResourcesInvited(0) <> "") Then
  22269.                Forall Resources In tmpResourcesInvited
  22270.                     Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_RESOURCE,Cstr(Resources),doc)
  22271.                     Call notice.Send(False)
  22272.                End Forall
  22273.           End If
  22274.      Case ORS_STATE_ROOM
  22275.           If (doc.RoomRequired(0) = "1") And (doc.Room(0) <> "") Then
  22276.                Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_ROOM,doc.Room(0),doc)          
  22277.                Call notice.Send(False)     
  22278.           End If               
  22279.      End Select
  22280. End Sub
  22281. '++LotusScript Development Environment:2:2:ProcessOneRepeatResource:1:8
  22282. Sub ProcessOneRepeatResource(NoticeType As String,ResourceType As String,doc As NotesDocument)
  22283.     *This routine is called from ProcessRepeatingResources to handle repeating meetings
  22284.     *This routine in turn calls other functions based upon the action the user is taking
  22285.     *Parameters
  22286.                 NoticeType is the type of notice being sent
  22287.                 ResourceType determines if this is a room or resrouce
  22288.                 doc is the document object representing the meeting to process
  22289. %END REM
  22290.      
  22291.      Select Case NoticeType
  22292.      Case ORS_MSGTYPE_INVITE
  22293. 'we are inviting a room/resources
  22294.           If (ResourceType = ORS_STATE_RESOURCE) Then
  22295.                Call InviteResources(doc)
  22296.           Else
  22297.                Call InviteRoom(doc)
  22298.           End If
  22299.      Case ORS_MSGTYPE_RESCHEDULE
  22300. 'the meeting is being rescheduled
  22301.           Call RescheduleResources(ResourceType,doc)
  22302.      Case ORS_MSGTYPE_CANCEL
  22303. 'the meeting is being cancelled
  22304.           Call CancelResources(ResourceType,doc)
  22305.      Case "Remove"
  22306. 'we are removing a room/resources from the meeting
  22307.           Call RemoveResources(doc)
  22308.      End Select
  22309. End Sub
  22310. Q\    JL    
  22311. RequiredResources
  22312. tmpPeopleSelected
  22313.     0S0E
  22314. RequiredResources
  22315.     0S0E
  22316. RequiredResources
  22317.     0S0E
  22318. RequiredResources
  22319.     0S0E
  22320. O=Lotus Notes
  22321. O=Lotus Notes
  22322. PURSAFO
  22323. |.:#U
  22324. O=Lotus Notes
  22325. CN=Lotus Notes Template Development/O=Lotus Notes
  22326. PURSAFO
  22327. Fde!f^^
  22328. 8kg2x
  22329. $ScriptLib
  22330. $ScriptLib_O
  22331. $TITLE
  22332. $Flags
  22333. $PublicAccess
  22334. '++LotusScript Development Environment:2:5:(Options):0:74
  22335. Option Public
  22336. %INCLUDE "lsconst.lss"
  22337. %INCLUDE "lsxbeerr.lss"
  22338. '++LotusScript Development Environment:2:5:(Forward):0:1
  22339. Declare Sub UpdateTasks
  22340. Declare Sub CheckDueDate
  22341. Declare Sub CheckStartDate
  22342. '++LotusScript Development Environment:2:5:(Declarations):0:10
  22343. Dim s As NotesSession
  22344. Dim db As NotesDatabase
  22345. Dim view As NotesView
  22346. Dim note As NotesDocument
  22347. Dim reply As NotesDocument
  22348. Dim responses As NotesDocumentCollection
  22349. Dim dt As NotesDateTime
  22350. Dim nextnote As NotesDocument
  22351. Dim DueDate As Variant
  22352. Dim StartDate As Variant
  22353. '++LotusScript Development Environment:2:2:UpdateTasks:1:8
  22354. Sub UpdateTasks
  22355.      
  22356.      Set dt = New NotesDateTime(Today)
  22357.      
  22358.      Set s = New NotesSession
  22359.      Set db = s.CurrentDatabase
  22360.      Set view = db.GetView("($ToDo)")
  22361.      
  22362.      On Error Resume Next
  22363.      
  22364.      Set note = view.GetFirstDocument
  22365.      If note Is Nothing Then Exit Sub
  22366.      Set nextnote = view.GetNextDocument(note)
  22367.      If nextnote.Form(0) <> "Task" Then
  22368.           Do
  22369.                Set nextnote = view.GetNextDocument(nextnote)
  22370.           Loop Until (nextnote.Form(0) = "Task") Or (nextnote Is Nothing)     
  22371.      End If
  22372.      
  22373.      Do
  22374.           If note.Form(0) = "Task" Then
  22375.                If note.AssignState(0) = 2 Then
  22376.                     DoneCount = 0         
  22377.                     Set responses = note.Responses
  22378.                     If responses.Count > 0 Then
  22379.                          For r = 1 To responses.Count
  22380.                               Set reply = responses.GetNthDocument(r)
  22381.                               DueState = reply.DueState
  22382.                               If Val(DueState(0)) = 9 Then DoneCount = DoneCount + 1
  22383.                          Next
  22384.                          AssignedTo = note.AssignedTo
  22385.                          If DoneCount = Ubound(AssignedTo)  + 1 Then
  22386.                               note.AssignState = 9
  22387.                               note.DueState = 9
  22388.                               Call note.ReplaceItemValue("_ViewIcon", 82)
  22389.                               note.CompletedDateTime = dt.LSLocalTime
  22390.                          End If
  22391.                     End If
  22392.                End If
  22393.                If note.AssignState(0) < 8 Then
  22394.                     DueDate = note.DueDateTime
  22395.                     StartDate = note.StartDateTime
  22396.                     If StartDate(0) = "" Then
  22397.                          If DueDate(0) = "" Then
  22398.                               note.DueState = 1
  22399.                          Else
  22400.                               CheckDueDate
  22401.                          End If
  22402.                     Else
  22403.                          CheckStartDate
  22404.                          DueState = note.DueState
  22405.                          If DueDate(0) <> "" And DueState(0) <> 2 Then CheckDueDate
  22406.                     End If
  22407.                End If
  22408.                note.Save True, True, True
  22409.           End If
  22410.           Set note = nextnote         
  22411.           Do
  22412.                Set nextnote = view.GetNextDocument(nextnote)
  22413.           Loop Until (nextnote.Form(0) = "Task") Or (nextnote Is Nothing)     
  22414.      Loop Until (Err = lsERR_NOTES_DOC_NOTINVIEW) Or (note Is Nothing)
  22415.      
  22416. End Sub
  22417. '++LotusScript Development Environment:2:2:CheckDueDate:1:8
  22418. Sub CheckDueDate
  22419.      
  22420. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  22421.      Set dt2 = New NotesDateTime(DueDate(0))
  22422.      If dt.TimeDifference(dt2) > 0 Then 
  22423.           note.DueState = 0
  22424.      Else
  22425.           note.DueState = 1
  22426.      End If
  22427.      
  22428. End Sub
  22429. '++LotusScript Development Environment:2:2:CheckStartDate:1:8
  22430. Sub CheckStartDate
  22431.      
  22432. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  22433.      Set dt2 = New NotesDateTime(StartDate(0))
  22434.      If dt.TimeDifference(dt2) < 0 Then 
  22435.           note.DueState = 2
  22436.      Else
  22437.           note.DueState = 1
  22438.      End If
  22439.      
  22440. End Sub
  22441. :`6`6
  22442. "(&04
  22443. "($|5
  22444. (#h%86
  22445. H$H%<8
  22446. h$h&x8
  22447. $H(X9
  22448. &h'`;
  22449. '(.<=
  22450. ('H'x=
  22451. ((h-H?
  22452. (H)@@
  22453. H)H*PA
  22454. )(+4B
  22455. )h+dB
  22456. h*H-@C
  22457. ,h,8F
  22458. (,H/tF
  22459. (.H.<J
  22460. .h/\K
  22461. /(1lM
  22462. H1h1LP
  22463. 2$7XR
  22464. 9x:x:
  22465. $747 S    
  22466. 9}|T#
  22467. [$7KP6,89#
  22468. 8KP6,h9G$7#
  22469. 8KP6,h9G
  22470. 7K$7-
  22471. ^h:4C
  22472. ^L:K47P\:
  22473. ^x:K$7P
  22474. K$7Q\:
  22475. 8K$7P
  22476. 8K$7P
  22477. K$7Q\:
  22478. ^L:K$7P\:
  22479. 8KP6,h9G
  22480. 8,8<J(<
  22481. K$7Q\:
  22482. K$7Q\:
  22483. 8,8<Jh<
  22484. K$7Q\:
  22485. K$7Q\:
  22486. O=Lotus Notes
  22487. O=Lotus Notes
  22488. PURSAFO
  22489. |.:#U
  22490. O=Lotus Notes
  22491. CN=Lotus Notes Template Development/O=Lotus Notes
  22492. PURSAFO
  22493. Fde!f^^
  22494. ,F5!9/
  22495. $ScriptLib
  22496. $ScriptLib_O
  22497. $TITLE
  22498. $Flags
  22499. $PublicAccess
  22500. '++LotusScript Development Environment:2:5:(Options):0:74
  22501. Option Public 
  22502. Use "ObjectVariables"     
  22503. '++LotusScript Development Environment:2:5:(Forward):0:1
  22504. Declare Type NoticeInfo
  22505. Declare Type InviteeTable
  22506. Declare Sub Initialize
  22507. Declare Sub UpdateOriginalInvitation (orgnote As NotesDocument)
  22508. Declare Function CheckIfConflictExists As Integer
  22509. Declare Sub AddInviteeComment
  22510. Declare Sub CreateNoticeDocument(Subject As String,NoticeType As String,ViewIcon As Integer,Mode As Integer)
  22511. Declare Function GetContext As Integer
  22512. Declare Sub ResurrectParentDoc
  22513. Declare Sub CreateResourceNotice(NoticeType As String,ResourceType As String,ResourceName As String,doc As NotesDocument)
  22514. Declare Function IsRemoved(KeyValue As String,UserType As String) As Integer
  22515. Declare Function ProcessConflict(othernote As NotesDocument) As Integer
  22516. Declare Function CheckProfileTimes(doc As NotesDocument) As Integer
  22517. Declare Function GetSubjectText(userDate As Variant) As String
  22518. Declare Function GetContextSub ( targetnote As NotesDocument ) As Integer
  22519. '++LotusScript Development Environment:2:5:(Declarations):0:10
  22520. Type NoticeInfo
  22521.      creationdate As Variant
  22522.      apptdate As Variant 'used by confirmation message
  22523.      appttime As Variant 'used by confirmation message
  22524.      sequencenum As Integer
  22525.      misc1 As String            'for invitee responses, this will be their name; for chair updates, this is the status
  22526.      action As String
  22527.      misc2 As String   'for invitee responses, this will be the delegees name; for chair updates, this is the document's unid   
  22528.      state As String     'for invitee responses, this will determine if a response is from a resource or not
  22529. End Type
  22530. Type InviteeTable
  22531.      CreationDate As Variant
  22532.      SequenceNum As Integer
  22533.      InviteeName As String
  22534.      Domain As String
  22535.      Status As String
  22536.      State As String
  22537.      Delegee As String
  22538.      KeepPosted As String
  22539. End Type
  22540. Dim OriginalRoom As String
  22541. Dim OriginalStartDate As Variant
  22542. Dim OriginalEndDate As Variant
  22543. Dim OriginalRequired As Variant
  22544. Dim OriginalOptional As Variant
  22545. Dim OriginalTimeRange As Variant
  22546. Dim OriginalType As String
  22547. Dim IsDateChange As Integer
  22548. Dim IsRoomChange As Integer
  22549. Dim OpenReschedule As Integer
  22550. Dim OpenRepeatParent As Integer
  22551. 'used by the noticeresponses and appointmentresponses libraries
  22552. Dim view As NotesView
  22553. Dim response As NotesDocument
  22554. Dim numResponses As Integer
  22555. Dim IsAgentProcessing As Integer
  22556. Const CS_INVITEE_INDEX = 10
  22557. Const ORG_STATUS_WAITING = "W"
  22558. '++LotusScript Development Environment:2:2:Initialize:1:10
  22559. Sub Initialize
  22560.      
  22561. End Sub
  22562. '++LotusScript Development Environment:2:2:UpdateOriginalInvitation:1:8
  22563. Sub UpdateOriginalInvitation (orgnote As NotesDocument)
  22564.     *This routine is called by several other routines to update a particular note (orgnote)
  22565.      whenever the user takes a specific action
  22566.     *Orgnote is the document object to be updated
  22567. %END REM
  22568.      
  22569.      On Error Goto ErrorRoutine
  22570.      
  22571.      If (orgnote Is Nothing) Then Exit Sub
  22572.      
  22573. 'the following are some changes we make regardless of the action being performed
  22574.      orgnote.StartDateTime = note.StartDateTime
  22575.      orgnote.EndDateTime = note.EndDateTime
  22576.      orgnote.Room = note.Room
  22577.      orgnote.StartDate = note.StartDate
  22578.      
  22579.      If IsWebClient Then 
  22580.           tmpFrom = notice.From
  22581.      Else
  22582.           tmpFrom = session.Username
  22583.           Call MarkTempFields(orgnote)
  22584.      End If
  22585.      
  22586.      Select Case note.tmpAction(0)
  22587.      Case "Accept","AddCalendar","PencilIn"
  22588. 'we are acceptring an invitation -> mark the document as an appointment
  22589.           orgnote.Form = "Appointment"
  22590.              Set trdr = session.CreateDateRange
  22591.              Set startdt = New NotesDateTime(note.StartDateTime(0))
  22592.              Set enddt = New NotesDateTime(note.EndDateTime(0))
  22593.              Set trdr.StartDateTime = startdt
  22594.              Set trdr.EndDateTime = enddt
  22595.              Set orgnote.TimeRange = trdr
  22596.           orgnote.CalendarDateTime = note.StartDateTime
  22597.           orgnote.StartDate = note.StartDate
  22598.           If (note.tmpAction(0) = "PencilIn") Then
  22599.                Call orgnote.ReplaceItemValue("$BusyPriority","2")
  22600.                orgnote.BookFreeTime = "1"
  22601.           Else            
  22602.                Call orgnote.ReplaceItemValue("$BusyPriority","1")
  22603.           End If
  22604.           orgnote.OrgTable = ORS_ITEM_CALENDAR
  22605.           orgnote.NoticeType = ORS_MSGTYPE_ACCEPT  
  22606.           Call orgnote.ReplaceItemValue("_ViewIcon",158)
  22607.           If Not(orgnote.HasItem("RepeatDates") And orgnote.HasItem("OrgRepeat")) Then Call orgnote.ReplaceItemValue("$BusyName",Owner)
  22608.           orgnote.Subject = note.Topic
  22609. 'check to see if we should automatically set an alarm
  22610.           If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") And (profile.SetAlarmAppointment(0) = "1") Then
  22611.                Call orgnote.ReplaceItemValue("$Alarm",1)
  22612.                Call orgnote.ReplaceItemValue("$AlarmDescription",note.Topic)
  22613.                Call orgnote.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  22614.                If Not(orgnote.HasItem("RepeatIds")) Then Call orgnote.PutInFolder("$Alarms")
  22615.           Else
  22616.                Call orgnote.RemoveItem("$Alarm")
  22617.                Call orgnote.RemoveItem("$AlarmDescription")
  22618.                Call orgnote.RemoveItem("$AlarmOffset")               
  22619.           End If
  22620. 'if the autoprocessing agent is running, then we need to remove some fields
  22621.           If (IsAgentProcessing) Then
  22622.                Call orgnote.RemoveItem("MailOptions")
  22623.                Call orgnote.RemoveItem("SendTo")
  22624.           End If
  22625. 'if the profile says we shouldn't double book, then update the OrgDontDoubleBook item
  22626.           If (profile.CheckMeeting(0) = "1") Then orgnote.OrgDontDoubleBook = "1"
  22627. 'if the profile says hide new entries from public viewing, then remove the $PublicAccess bit
  22628.           If (profile.CalEntryHide(0) = "1") Then Call orgnote.RemoveItem("$PublicAccess")
  22629.           Call orgnote.ReplaceItemValue("$NoPurge",orgnote.EndDateTime(0))
  22630. 'update the original invitation only if this is a response document
  22631.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  22632.           Call orgnote.Save(True,True,True)
  22633.      Case "Decline"
  22634.           orgnote.Form = "Notice"
  22635.           orgnote.Subject = "Appointment Declined - " & note.Topic(0)          
  22636.           Call orgnote.ReplaceItemValue("_ViewIcon",84)
  22637.           orgnote.NoticeType = ORS_MSGTYPE_REJECT
  22638.           orgnote.From = tmpFrom
  22639.           orgnote.Principal = Owner
  22640.           orgnote.OrgTable = ""
  22641. 'the invitee might have accepted, so remove the calendar and update busy items
  22642.           Call orgnote.RemoveItem("CalendarDateTime")
  22643.           Call orgnote.ReplaceItemValue("$BusyPriority","2")
  22644. 'update the original invitation only if this is a response document
  22645.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  22646.           Call orgnote.Save(True,True,True)        
  22647.      Case "Delegate"
  22648.           orgnote.Form = "Notice"
  22649.           orgnote.Subject = "Appointment Delegated - " & note.Topic(0)
  22650.           Call orgnote.ReplaceItemValue("_ViewIcon",84)
  22651.           orgnote.NoticeType = ORS_MSGTYPE_DELEGATING
  22652.           orgnote.From = tmpFrom
  22653.           orgnote.Principal = Owner
  22654.           orgnote.OrgTable = ""          
  22655.           Call orgnote.RemoveItem("OrgState")
  22656. 'the invitee might have accepted, so remove the calendar and update busy items
  22657.           Call orgnote.RemoveItem("CalendarDateTime")
  22658.           Call orgnote.ReplaceItemValue("$BusyPriority","2")
  22659. 'update the original invitation only if this is a response document
  22660.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  22661.           Call orgnote.Save(True,True,True)       
  22662.      Case "CounterPropose"
  22663.           orgnote.NoticeType = ORS_MSGTYPE_COUNTER
  22664.           orgnote.Subject = "Appointment Change Proposal - " & note.Topic(0)
  22665.           orgnote.From = tmpFrom
  22666.           orgnote.Principal = Owner
  22667.           orgnote.ProposalSent = True
  22668.           Call orgnote.ReplaceItemValue("_ViewIcon",39)
  22669. 'update the original invitation only if this is a response document
  22670.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  22671.           Call orgnote.Save(True,True,True)
  22672.      Case "AcceptCounterProposal"
  22673.           orgnote.StartDate = note.NewDate          
  22674.           Set trdr = session.CreateDateRange
  22675.           trdr.Text = uidoc.FieldGetText("NewTimeRange")
  22676.           
  22677.           Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  22678.           Set enddt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.EndDateTime.TimeOnly)
  22679.           
  22680.           Set orgnote.StartDateTime = startdt
  22681.           Set orgnote.EndDateTime = enddt
  22682.           Set orgnote.TimeRange = trdr
  22683.           If (note.NewRoom(0) <> "") Then orgnote.Room = note.NewRoom          
  22684.           orgnote.CalendarDateTime = orgnote.StartDateTime
  22685.           orgnote.SequenceNum = orgnote.SequenceNum(0) + 1
  22686.           Call orgnote.ReplaceItemValue("$NoPurge",orgnote.EndDateTime(0))
  22687.           Call orgnote.Save(True,True,True)
  22688.      End Select
  22689.      Exit Sub
  22690.      
  22691. ErrorRoutine:
  22692.      Messagebox Error & " (UpdateOriginalInvitation)"
  22693.      Exit Sub
  22694. End Sub
  22695. '++LotusScript Development Environment:2:1:CheckIfConflictExists:1:8
  22696. Function CheckIfConflictExists As Integer
  22697.     *This function is called only if the user specifies conflict warnings in the profile
  22698.     *This function can be called when creation or accepting meeting documents
  22699.     *The AutoProcessNotices agent ALWAYS calls this routine
  22700.     *This routine determines if a meeting time fits within the profile settings and is available 
  22701. %END REM
  22702.      Dim calentries As NotesDocumentCollection
  22703.      Dim localView As NotesView
  22704.      Dim othernote As NotesDocument     
  22705.      Dim tr As NotesDateRange
  22706.      Dim sdt As NotesDateTime
  22707.      Dim edt As NotesDateTime
  22708.      Dim intl As NotesInternational
  22709.      Dim nstartitem As NotesItem     'note startdatetime item
  22710.      Dim nenditem As NotesItem      'note enddatetime item
  22711.      Dim ostartitem As NotesItem      'othernote startdatetime item
  22712.      Dim oenditem As NotesItem      'othernote enddatetime item
  22713.      Dim nstartdt As NotesDateTime
  22714.      Dim nenddt As NotesDateTime
  22715.      Dim ostartdt As NotesDateTime
  22716.      Dim oenddt As NotesDateTime
  22717.      
  22718. 'first, check the profile settings -> if there is a conflict in the profile, then we don't need to check with existing appointments
  22719. 'we only do this check if the autoprocessing agent is running     
  22720.      If (IsAgentProcessing) Then     
  22721.           If(CheckProfileTimes(note)) Then
  22722.                CheckIfConflictExists  = True
  22723.                Exit Function
  22724.           End If
  22725.      End If
  22726.      
  22727.      On Error Goto ErrorRoutine
  22728.      Set localView = db.GetView("Calendar")
  22729.      Set intl = session.International     
  22730.      CheckIfConflictExists = False
  22731. 'get all of the documents that fit under the invited day
  22732. 'othernote refers to existing appointments          
  22733.      Set nstartitem = note.GetFirstItem("StartDateTime")
  22734.      Set nenditem = note.GetFirstItem("EndDateTime")     
  22735.      Set sdt = New NotesDateTime(nstartitem.DateTimeValue.DateOnly & " 00" & intl.TimeSep & "00" & intl.TimeSep & "01")
  22736.    'if this is an event, use the enddatetime date
  22737.      If (note.AppointmentType(0) = "2") Then
  22738.           Set edt = New NotesDateTime(nenditem.DateTimeValue.DateOnly & " 23" & intl.TimeSep & "59" & intl.TimeSep & "59")
  22739.      Else
  22740.           Set edt = New NotesDateTime(nstartitem.DateTimeValue.DateOnly & " 23" & intl.TimeSep & "59" & intl.TimeSep & "59")
  22741.      End If   
  22742.      Set tr = session.CreateDateRange
  22743.      Set tr.StartDateTime = sdt
  22744.      Set tr.EndDateTime = edt
  22745.      Set nstartdt = New NotesDateTime(sdt.DateOnly & " " & nstartitem.DateTimeValue.TimeOnly)
  22746.      Set nenddt = New NotesDateTime(sdt.DateOnly & " " & nenditem.DateTimeValue.TimeOnly)
  22747.      
  22748. 'if the agent is running, we should mark the OrgDontDoubleBook item on the note  
  22749.      If (IsAgentProcessing) Then note.OrgDontDoubleBook = "1"
  22750.      Set calentries = localView.GetAllDocumentsByKey(tr, False)
  22751.      
  22752.      Set othernote = calentries.GetFirstDocument
  22753.      Do While Not(othernote Is Nothing)      
  22754.           If (othernote.Form(0) <> "Task") Then
  22755.                Set ostartitem = othernote.GetFirstItem("StartDateTime")
  22756. check to see if 
  22757.        the invited StartDateTime falls between a scheduled appointment, 
  22758.        the invited EndDateTime falls between a scheduled appointment, 
  22759.        the invitation surrounds an existing appointment
  22760. date1 = the Starting time of the othernote; date2 = the ending time of the othernote; dateItem = the starttime of the invitation,dateItem2 = the endtime of the invitation               
  22761. %END REM
  22762.                Set oenditem = othernote.GetFirstItem("EndDateTime")
  22763.                
  22764. 'if the other document is not busy (i.e. is PencilledIn), then we don't need to check it         
  22765.                If (othernote.BookFreeTime(0) <> "1") Then        
  22766.                     If(ProcessConflict(othernote)) Then               
  22767. 'we need to instantiate the date/time objects correctly
  22768. 'othernote could be an event so the date portion of StartDateTime and EndDateTime are incorrect, but NIF return them to us
  22769.                          Set ostartdt = New NotesDateTime(nstartdt.DAteOnly & " " & ostartitem.DateTimeValue.TimeOnly)
  22770.                          Set oenddt = New NotesDateTime(nstartdt.DAteOnly & " " & oenditem.DateTimeValue.TimeOnly)
  22771.                          
  22772.                          If ((nstartdt.TimeDifference(ostartdt) >= 0) And (oenddt.TimeDifference(nstartdt) > 0 )) Or _
  22773.                          ((nenddt.TimeDifference(ostartdt) > 0) And (oenddt.TimeDifference(nenddt) >= 0 )) Or _
  22774.                          ((ostartdt.TimeDifference(nstartdt) >= 0) And (nenddt.TimeDifference(oenddt) > 0 )) Then
  22775. 'if the autoprocessing agent is running, simply return
  22776.                               If (IsAgentProcessing) Then
  22777.                                    CheckIfConflictExists = True
  22778.                                    Exit Do
  22779.                               End If
  22780.                               If (note.Form(0) = "Appointment") Then
  22781.                                    MessageText$ = "Do you want to schedule this appointment anyway?"
  22782.                               Else
  22783.                                    MessageText$ = "Do you want to Accept anyway?"
  22784.                               End If
  22785.                               If Messagebox("There is already an appointment in this time slot. " & MessageText$, _
  22786.                               MB_YESNO, "Conflict") = IDNO Then 
  22787.                                    CheckIfConflictExists = True
  22788.                                    Exit Do                                                           'we exit so that we don't waste time iterating through the view
  22789.                               Else
  22790.                                    Exit Do                                                           'we exit so that we don't waste time iterating through the view
  22791.                               End If
  22792.                          End If
  22793.                     End If
  22794.                End If
  22795.           End If
  22796.           Set othernote = calentries.GetNextDocument(othernote)
  22797.      Loop     
  22798.      Exit Function
  22799.      
  22800. ErrorRoutine:
  22801.      Messagebox Error & " (CheckIfConflictExists)"
  22802.      Exit Function
  22803. End Function
  22804. '++LotusScript Development Environment:2:2:AddInviteeComment:1:8
  22805. Sub AddInviteeComment
  22806.     *This routine is called to include invitee's comments
  22807. %END REM
  22808.      
  22809.      notice.IncludeComment = "1"
  22810.      notice.Comments = note.Comments
  22811. End Sub
  22812. '++LotusScript Development Environment:2:2:CreateNoticeDocument:1:8
  22813. Sub CreateNoticeDocument(Subject As String,NoticeType As String,ViewIcon As Integer,Mode As Integer)
  22814.     *This routine creates the outgoing notice document, either from the chair to the invitee's 
  22815.      or from an invitee to a chair
  22816.     *This routine adds standard fields to the notice regardless of the type of notice
  22817.     *Parameters
  22818.                 Subject -> value of subject item
  22819.                 NoticeType -> type of notice being sent
  22820.                 ViewIcon -> icon to display in view
  22821.                 Mode -> 1 = chair is sending, 2 = invitee is sending
  22822. %END REM
  22823.      
  22824.      Dim ChairItem As NotesItem   
  22825.      Dim dummydoc As NotesDocument
  22826.      
  22827. 'create the notice object     
  22828.      Set notice = New NotesDocument(db)
  22829. 'determine the context of the current note
  22830.      Context = GetContext
  22831.      Select Case Context
  22832.      Case 1,3
  22833. '1 = non-repeat notice, 3 = repeat notice -> make the notice doc a response to the parentnote
  22834.           If(note.HasItem("ApptUNID")) Then
  22835.                If(note.ApptUNID(0) <> parentnote.UniversalID) Then
  22836.                     Set dummydoc = New NotesDocument(db)
  22837.                     dummydoc.UniversalID = note.ApptUNID(0)
  22838.                     Call notice.MakeResponse(dummydoc)
  22839.                     notice.ApptUNID = note.ApptUNID                    
  22840.                Else                    
  22841.                     Call notice.MakeResponse(parentnote)
  22842.                     notice.ApptUNID = parentnote.UniversalID                    
  22843.                End If
  22844.           Else
  22845.                Call notice.MakeResponse(parentnote)    
  22846.                notice.ApptUNID = parentnote.UniversalID                                   
  22847.           End If
  22848.      Case 2,4
  22849. '2 = repeat instance, 4 = non-repeat instance -> make the notice doc a response to the current note
  22850.           If(note.HasItem("ApptUNID")) Then
  22851.                If(note.ApptUNID(0) <> note.UniversalID) Then
  22852.                     Set dummydoc = New NotesDocument(db)
  22853.                     dummydoc.UniversalID = note.ApptUNID(0)
  22854.                     Call notice.MakeResponse(dummydoc)
  22855.                     notice.ApptUNID = note.ApptUNID                    
  22856.                Else                    
  22857.                     Call notice.MakeResponse(note)
  22858.                     notice.ApptUNID = note.UniversalID                    
  22859.                End If
  22860.           Else
  22861.                Call notice.MakeResponse(note)               
  22862.                notice.ApptUNID = note.UniversalID                   
  22863.           End If
  22864.      End Select
  22865.      
  22866.      Call notice.ReplaceItemValue("$RefOptions","1")
  22867. 'add default items regardless of notice type
  22868.      notice.Form = "Notice"
  22869.      notice.StartDate = note.StartDate
  22870.      notice.StartDateTime = note.StartDateTime
  22871.      notice.EndDateTime = note.EndDateTime
  22872.      notice.AppointmentType = "3"
  22873.      notice.SequenceNum = note.SequenceNum(0)
  22874.      notice.ExcludeFromView = "D"
  22875.      notice.Room = note.Room     
  22876.      notice.Principal = Owner
  22877.      notice.NoticeType = NoticeType
  22878.      notice.Broadcast = note.Broadcast
  22879. 'add the required attendees -> we need to know what context the current document is in
  22880. 'this is because non-repeat notices, repeat notices, and non-repeat appointments have this information
  22881. 'repeat instances need to get this info from their parent
  22882.      Select Case Context
  22883.      Case 1,3,4
  22884. '1 = non-repeat notice,3 = repeat notice,4 = non-repeat instance -> get the values from the current note
  22885.           notice.RequiredAttendees = note.RequiredAttendees
  22886.           notice.OptionalAttendees = note.OptionalAttendees
  22887.      Case 2
  22888. 'the repeat instance document does not have this information -> get it from the parent
  22889.           notice.RequiredAttendees = parentnote.RequiredAttendees
  22890.           notice.OptionalAttendees = parentnote.OptionalAttendees
  22891.      End Select
  22892.      Call notice.ReplaceItemValue("_ViewIcon",ViewIcon)
  22893.      If (note.HasItem("$PublicAccess")) Then Call notice.ReplaceItemValue("$PublicAccess","1")
  22894.      If note.HasItem("tmpRescheduleWhich") Then 
  22895.           If (NoticeType = ORS_MSGTYPE_STATUSUPDATE) Then
  22896.                notice.RescheduleWhich = "0" 'just this one
  22897.           Else
  22898.                notice.RescheduleWhich = note.tmpRescheduleWhich
  22899.           End If
  22900.      End If
  22901.      If (note.HasItem("OrgRepeat")) Then 
  22902.           notice.OrgRepeat = True
  22903.           notice.Broadcast = "1"
  22904.           notice.OriginalStartDate = OriginalStartDate
  22905.           notice.RepeatParentUNID = note.ParentDocumentUNID
  22906.      End If
  22907. 'add computed items
  22908.      If (mode = 1) Then
  22909. 'we are the chair sending this out
  22910.           notice.Topic = note.Subject
  22911.           Set startitem = note.GetFirstItem("StartDateTime")
  22912.           If (note.Room(0) <> "") Then               
  22913.                notice.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  22914.           Else
  22915.                notice.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  22916.           End If
  22917.           notice.Chair = Owner
  22918. 'for 4.51+, we only include the body field if the chair is sending the notice          
  22919.           If (note.HasItem("Body")) Then
  22920.                Set ChairItem = note.GetFirstItem("Body")     
  22921.                Call notice.CopyItem(ChairItem,"Body")
  22922.           End If          
  22923. 'we do not add the send to for chairs; this is upto the calling function
  22924.      Else
  22925. 'we are the invitee sending this out
  22926.           notice.Topic = note.Topic
  22927.           notice.Subject = Subject & " " & note.Topic(0)
  22928.           notice.Chair = note.Chair
  22929.           'if this is a delegation notice, include the body
  22930.           If (NoticeType = ORS_MSGTYPE_DELEGATE) Then
  22931.                If (note.HasItem("Body")) Then
  22932.                     Set ChairItem = note.GetFirstItem("Body")     
  22933.                     Call notice.CopyItem(ChairItem,"Body")
  22934.                End If
  22935.           End If          
  22936.      End If
  22937. End Sub
  22938. '++LotusScript Development Environment:2:1:GetContext:1:8
  22939. Function GetContext As Integer
  22940.      GetContext = GetContextSub (note)
  22941. End Function
  22942. '++LotusScript Development Environment:2:2:ResurrectParentDoc:1:8
  22943. Sub ResurrectParentDoc
  22944.     *This routine is called whenever a child document is opened and the parentnote cannot be found
  22945.     *This routine creates a parent document and uses the child document for certain info
  22946. %END REM
  22947.      Dim body As NotesItem
  22948.      
  22949.      Set parentnote = New NotesDocument(db)
  22950.      
  22951.      If (note.HasItem("Body")) Then
  22952.                 Set body = note.GetFirstItem("Body")
  22953.           Call parentnote.CopyItem(body,"Body")
  22954.      End If
  22955. 'add standard fields     
  22956.      parentnote.UniversalID = note.ParentDocumentUNID     
  22957.      parentnote.StartDate = note.StartDate
  22958.      parentnote.StartDateTime = note.StartDateTime
  22959.      parentnote.EndDateTime = note.EndDateTime
  22960.      parentnote.AppointmentType = "3"
  22961.      parentnote.Chair = note.Chair
  22962.      parentnote.RequiredAttendees = note.RequiredAttendees
  22963.      parentnote.OptionalAttendees = note.OptionalAttendees
  22964.      parentnote.Room = note.Room
  22965.      parentnote.ExcludeFromView = "D"
  22966.      parentnote.SequenceNum = note.SequenceNum
  22967.      parentnote.Subject = note.Topic
  22968.      parentnote.Topic = note.Topic
  22969.      parentnote.Principal = note.Chair
  22970.      parentnote.Form = "Appointment"
  22971.      parentnote.From = note.From
  22972.      parentnote.NoticeType = ORS_MSGTYPE_ACCEPT
  22973.      Call parentnote.ReplaceItemValue("$BusyName",Owner)
  22974.      Call parentnote.ReplaceItemValue("$BusyPriority","1")
  22975.      Call parentnote.ReplaceItemValue("$NoPurge",parentnote.EndDateTime(0))
  22976.      Call parentnote.ReplaceItemValue("$ExpandGroups","3")
  22977.      Call parentnote.ReplaceItemValue("$PublicAccess","1")
  22978.      Call parentnote.ReplaceItemValue("_ViewIcon",158)
  22979.      Set sdt = New NotesDateTime(parentnote.StartDateTime(0))
  22980.      Set edt = New NotesDateTime(parentnote.EndDateTime(0))
  22981.      Set tr = session.CreateDateRange
  22982.      Set tr.StartDateTime = sdt
  22983.      Set tr.EndDateTime = edt
  22984.      Set parentnote.TimeRange = tr
  22985.      parentnote.PostedDate = parentnote.StartDateTime
  22986.      parentnote.CalendarDateTime = parentnote.StartDateTime
  22987.      parentnote.BookFreeTime = "0"
  22988.      parentnote.OrgTable = ORS_ITEM_CALENDAR
  22989.      
  22990.      If (note.HasItem("FromDomain")) Then parentnote.FromDomain = note.FromDomain
  22991.      
  22992.      Call MarkTempFields(parentnote)
  22993.      Call parentnote.Save(True,True,True)
  22994.      Call parentnote.RemoveFromFolder("($Inbox)")
  22995. End Sub
  22996. '++LotusScript Development Environment:2:2:CreateResourceNotice:1:8
  22997. Sub CreateResourceNotice(NoticeType As String,ResourceType As String,ResourceName As String,doc As NotesDocument)
  22998.     *This routine is called to create a notice document for rooms/resources
  22999.     *Paramaters
  23000.                 NoticeType is the type of notice being sent
  23001.                 ResourceType is the type of resource we sending the notice to
  23002.                 ResourceName is the name of the resource we are mailing to (in Abbreviated format)
  23003.                 doc is the document that contains values we want to copy from to include on the notice (useful for repeats!)
  23004. %END REM     
  23005.      
  23006.      Set notice = New NotesDocument(db)
  23007.      
  23008.      notice.Form = "Notice"
  23009.      notice.StartDate = doc.StartDate
  23010.      notice.StartDateTime = doc.StartDateTime
  23011.      notice.EndDateTime = doc.EndDateTime
  23012.      notice.TimeRange = doc.TimeRange
  23013.      notice.Principal = Owner
  23014.      notice.Chair = Owner
  23015. 'get the context of the current note
  23016.      context = GetContext
  23017.      Select Case context
  23018.      Case 1,3:
  23019. '1 = non-repeat notice,3 = repeat notice -> use parentnote values
  23020.           notice.ApptUNID = parentnote.UniversalId
  23021.           notice.SequenceNum = parentnote.SequenceNum(0)
  23022.      Case 2,4
  23023. '2 = repeat instance, 4 = non-repeat instance -> use the document passed in
  23024.           notice.ApptUNID = doc.UniversalID
  23025.           If Not(doc.HasItem("SequenceNum")) Then doc.SequenceNum = 1
  23026.           notice.SequenceNum = doc.SequenceNum(0)               
  23027.      End Select
  23028.      notice.NoticeType = NoticeType
  23029.      notice.OrgState = ResourceType
  23030.      notice.SendTo = ResourceName         
  23031.      notice.ResourceName = ResourceName
  23032.      notice.Topic = doc.Subject
  23033.      If (doc.HasItem("$PublicAccess")) Then Call notice.ReplaceItemValue("$PublicAccess","1")
  23034. 'if this is a room, add the capacity
  23035.      If (ResourceType = ORS_STATE_ROOM) Then 
  23036.           notice.Capacity = Evaluate("@Elements(@Trim(RequiredAttendees:OptionalAttendees:Chair))",doc)
  23037.           If (doc.HasItem("OriginalRoom")) Then notice.OriginalRoom = doc.OriginalRoom
  23038.      End If
  23039. 'if this is a notice for a repeat set, add the necessary items
  23040.      If (doc.HasItem("RepeatDates")) Then
  23041.           notice.RepeatDates = doc.RepeatDates
  23042.           notice.RepeatIds = doc.RepeatIds
  23043.      Else
  23044.           If (doc.HasItem("OrgRepeat")) Then notice.OrgRepeat = True          
  23045.      End If
  23046. End Sub
  23047. '++LotusScript Development Environment:2:1:IsRemoved:1:8
  23048. Function IsRemoved(KeyValue As String,UserType As String) As Integer
  23049.     *This function is used to determine if a user/resource has been uninvited from a meeting
  23050.  *This function is used to determine if a resource/room should not be displayed in the Invitee Responses dialog
  23051. %END REM
  23052.      
  23053.      Dim index As Integer
  23054.      Dim keyname As New NotesName(KeyValue)
  23055.      Dim lookupname As NotesName
  23056.      
  23057.      IsRemoved = False
  23058.      
  23059.      Select Case UserType
  23060.      Case ORS_STATE_RESOURCE
  23061. 'this is a resource, look to see if this resource is in the RequiredResources field; if it isn't, it was uninvited
  23062.           tmpResourcesInvited = note.RequiredResources
  23063.           index = 0
  23064.           Do While (index <= Ubound(tmpResourcesInvited))
  23065.                Set lookupname = New NotesName(tmpResourcesInvited(index)) 
  23066.                If (Lcase(keyname.Canonical) = Lcase(lookupname.Canonical)) Then Exit Function
  23067.                index = index + 1
  23068.           Loop
  23069. 'if we got this far, then we didn't find the resource, it was removed
  23070.           IsRemoved = True
  23071.      Case ORS_STATE_ROOM
  23072. 'this is a room; see if it matches the value in the room field
  23073.           Set lookupname = New NotesName(note.Room(0))
  23074.           
  23075.           If (Lcase(keyname.CAnonical) <> Lcase(lookupname.Canonical)) Then IsRemoved = True
  23076.      Case Else
  23077.           tmpPeopleUninvited = note.Uninvited
  23078.           index = 0
  23079.           Do While (index <= Ubound(tmpPeopleUninvited))
  23080.                Set lookupname = New Notesname(tmpPeopleUninvited(index))               
  23081.                If (Lcase(keyname.Canonical) = Lcase(lookupname.Canonical)) Then 
  23082.                     IsRemoved = True                    
  23083.                     Exit Function
  23084.                End If
  23085.                index = index + 1
  23086.           Loop   
  23087.      End Select
  23088. End Function
  23089. '++LotusScript Development Environment:2:1:ProcessConflict:1:8
  23090. Function ProcessConflict(othernote As NotesDocument) As Integer
  23091.     *This routine is called from CheckIfConflictExists to see if the document
  23092.      we are comparing to can be processed
  23093. %END REM
  23094.      
  23095. 'default the return to False since this is what we are really checking for    
  23096.      ProcessConflict = False
  23097. 'if the two documents we are comparing are the same, then do not check for conflicts     
  23098.      If (note.UniversalID = othernote.UniversalID) Then Exit Function
  23099.      
  23100. 'if this is a reschedule, we need to check a few things     
  23101.      If (note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then
  23102. 'first, if the reschedule notice is being compared to its parent, do not check for conflicts
  23103.           If(note.ParentDocumentUNID = othernote.UniversalID) Then 
  23104.                Exit Function
  23105.           Else               
  23106. 'if we are not comparing ourselves to the parent, then check to see if only the room is changing
  23107. 'if the room is the only thing that is changing, then we don't check for conflicts
  23108.                If ((note.StartDateTime(0) = parentnote.StartDateTime(0)) And (note.EndDateTime(0) = parentnote.EndDateTime(0))) Then Exit Function 
  23109.           End If
  23110.      End If
  23111. 'since we made it this far, we can check for conflicts
  23112.      ProcessConflict = True
  23113. End Function
  23114. '++LotusScript Development Environment:2:1:CheckProfileTimes:1:8
  23115. Function CheckProfileTimes(doc As NotesDocument) As Integer
  23116.     *This function is call by CheckIfConflictExists
  23117.     *It compares the times of doc to the profile to make sure the times are within the profile settings
  23118.     *This function returns true if the time is not within the defined profile times
  23119. %END REM
  23120.      Dim dstartitem As NotesItem
  23121.      Dim denditem As NotesItem
  23122.      
  23123.      CheckProfileTimes = True
  23124.      
  23125.      Set dstartitem = doc.GetFirstItem("StartDateTime")
  23126.      
  23127.      Select Case Weekday(doc.StartDateTime(0))
  23128.      Case 1
  23129. 'sunday
  23130.           If (profile.Sunday(0) <> "1") Then Exit Function                     'this day is not selected in the profile
  23131.           ValidTimes = profile.GetItemValue("$Times1")
  23132.      Case 2
  23133. 'monday
  23134.           If (profile.Monday(0) <> "2") Then Exit Function                'this day is not selected in the profile
  23135.           ValidTimes = profile.GetItemValue("$Times2")
  23136.      Case 3
  23137. 'Tuesday
  23138.           If (profile.Tuesday(0) <> "3") Then  Exit Function            'this day is not selected in the profile
  23139.           ValidTimes = profile.GetItemValue("$Times3")
  23140.      Case 4
  23141. 'wednesday
  23142.           If (profile.Wednesday(0) <> "4") Then Exit Function            'this day is not selected in the profile
  23143.           ValidTimes = profile.GetItemValue("$Times4")
  23144.      Case 5
  23145. 'thursday
  23146.           If (profile.Thursday(0) <> "5") Then Exit Function            'this day is not selected in the profile
  23147.           ValidTimes = profile.GetItemValue("$Times5")
  23148.      Case 6
  23149. 'friday
  23150.           If (profile.Friday(0) <> "6") Then Exit Function                'this day is not selected in the profile
  23151.           ValidTimes = profile.GetItemValue("$Times6")
  23152.      Case 7
  23153. 'saturday
  23154.           If (profile.Saturday(0) <> "7") Then Exit Function            'this day is not selected in the profile
  23155.           ValidTimes = profile.GetItemValue("$Times7")
  23156.      End Select
  23157.      
  23158.      Set denditem= doc.GetFirstItem("EndDateTime")
  23159. 'we must now make sure that the times fall within the profile settings
  23160.      For x = 0 To Ubound(ValidTimes)
  23161. 'if the time falls within a profile range, then there is no conflict and we can exit
  23162.           Set date1 = New NotesDateTime(dstartitem.DateTimeValue.DateOnly & " " & Timevalue(ValidTimes(x)))
  23163.           Set date2 = New NotesDateTime(dstartitem.DateTimeValue.DateOnly & " " & Timevalue(ValidTimes(x+1)))
  23164.           
  23165.           If (dstartitem.DateTimeValue.TimeDifference(date1) >= 0) And (denditem.DateTimeValue.TimeDifference(date2) <= 0) Then          
  23166.                CheckProfileTimes = False
  23167.                Exit Function
  23168.           End If
  23169.           x = x + 1
  23170.      Next
  23171. End Function
  23172. '++LotusScript Development Environment:2:1:GetSubjectText:1:8
  23173. Function GetSubjectText(userDate As Variant) As String
  23174.      Dim selMonth As String
  23175.      Dim selTime As Variant
  23176.      
  23177.      Select Case Month(userDate)
  23178.      Case 1
  23179.           selMonth = CS_MONTH_JAN
  23180.      Case 2
  23181.           selMonth = CS_MONTH_FEB
  23182.      Case 3
  23183.           selMonth = CS_MONTH_MAR
  23184.      Case 4
  23185.           selMonth = CS_MONTH_APR
  23186.      Case 5
  23187.           selMonth = CS_MONTH_MAY
  23188.      Case 6
  23189.           selMonth = CS_MONTH_JUNE
  23190.      Case 7
  23191.           selMonth = CS_MONTH_JULY
  23192.      Case 8
  23193.           selMonth = CS_MONTH_AUG
  23194.      Case 9
  23195.           selMonth = CS_MONTH_SEPT
  23196.      Case 10
  23197.           selMonth = CS_MONTH_OCT
  23198.      Case 11
  23199.           selMonth = CS_MONTH_NOV
  23200.      Case 12
  23201.           selMonth = CS_MONTH_DEC       
  23202.      End Select
  23203.      
  23204.      selTime = Evaluate(|@Text(StartDateTime;"S1T1Z2")|,note)
  23205.      GetSubjectText = Cstr(Day(userDate)) & " " & selMonth & " " & selTime(0)
  23206. End Function
  23207. '++LotusScript Development Environment:2:1:GetContextSub:1:8
  23208. Function GetContextSub ( targetnote As NotesDocument ) As Integer
  23209. returns the context in which the current note exists
  23210. 1 = non repeat notice
  23211. 2 = repeat instance
  23212. 3 = repeat notice
  23213. 4 = original invitation     
  23214. %END REM
  23215.      If (targetnote.IsResponse) Then
  23216. 'the user opened up a response document; see what type of response this is
  23217.           If Not(targetnote.HasItem("OrgRepeat")) Then
  23218. 'this is a non-repeat notice
  23219.                GetContextSub = 1
  23220.           Else
  23221.                If (parentnote.IsResponse) Then
  23222. 'this is a repeat notice
  23223.                     GetContextSub = 3
  23224.                Else
  23225.                     GetContextSub = 2
  23226.                End If
  23227.           End If
  23228.      Else
  23229. 'this is the main invitation
  23230.           GetContextSub = 4
  23231.      End If
  23232. End Function
  23233. ( H `
  23234. )D    [T
  23235. #K4    -
  23236. #K4    -
  23237. O=Lotus Notes
  23238. O=Lotus Notes
  23239. PURSAFO
  23240. |.:#U
  23241. O=Lotus Notes
  23242. CN=Lotus Notes Template Development/O=Lotus Notes
  23243. PURSAFO
  23244. Fde!f^^
  23245. $ScriptLib
  23246. $ScriptLib_O
  23247. $TITLE
  23248. $Flags
  23249. $PublicAccess
  23250. '++LotusScript Development Environment:2:5:(Options):0:74
  23251. Option Public
  23252. Use "ObjectVariables"
  23253. '++LotusScript Development Environment:2:5:(Forward):0:1
  23254. Declare Sub Initialize
  23255. Declare Sub CreateNewDoc(nDocType As Integer)
  23256. Declare Sub CreateMailMemo(pNote As NotesDocument)
  23257. Declare Sub CreateCalendarEntry(pNote As NotesDocument)
  23258. Declare Sub CreateTask(pNote As NotesDocument)
  23259. Declare Function GetSendNames(pNote As NotesDocument) As Variant
  23260. Declare Function GetCopyNames(pNote As NotesDocument) As Variant
  23261. Declare Sub AddBodyToNewNote(pNewNote As NotesDocument, pSourceNote As NotesDocument)
  23262. '++LotusScript Development Environment:2:5:(Declarations):0:10
  23263. Const NEW_MEMO = 0
  23264. Const NEW_CALENDAR = 1
  23265. Const NEW_TASK = 2
  23266. Dim bOkToCopy As Integer
  23267. '++LotusScript Development Environment:2:2:Initialize:1:10
  23268. Sub Initialize
  23269.      
  23270. End Sub
  23271. '++LotusScript Development Environment:2:2:CreateNewDoc:1:8
  23272. Sub CreateNewDoc(nDocType As Integer)
  23273.      
  23274.      Set session = New NotesSession
  23275.      Set ws = New NotesUIWorkspace
  23276.      Set db = session.CurrentDatabase
  23277.      
  23278.      bOkToCopy = True
  23279.      
  23280.      'if there is a document currently open, and it is a new document, we cannot proceed
  23281.      Set uidoc = ws.CurrentDocument
  23282.      If Not(uidoc Is Nothing) Then
  23283.           If uidoc.IsNewDoc Then
  23284.                Messagebox "This action cannot be executed on a new document.",16,"Error"
  23285.                Exit Sub
  23286.           End If
  23287.           Set note = uidoc.Document          
  23288.      Else
  23289.           Set selecteddocs = db.UnprocessedDocuments
  23290.           If (selecteddocs.Count = 0) Then 
  23291.                Messagebox "Please select a document before executing this command.",16,"Error"
  23292.                Exit Sub
  23293.           End If
  23294.           Set note = selecteddocs.GetFirstDocument
  23295.      End If
  23296.      
  23297.      ' Make sure this document is not prevented from being copied
  23298.      If (note.~$KeepPrivate(0) = "1") Then
  23299.           Messagebox "This document is prevented from being copied. The body will not be copied into the new document created.",16,"Warning"
  23300.           bOkToCopy = False          
  23301.      End If
  23302.      
  23303.      Select Case nDocType
  23304.      Case NEW_MEMO
  23305.           Call CreateMailMemo(note)
  23306.      Case NEW_CALENDAR
  23307.           Call CreateCalendarEntry(note)
  23308.      Case NEW_TASK
  23309.           Call CreateTask(note)
  23310.      End Select
  23311.      
  23312. End Sub
  23313. '++LotusScript Development Environment:2:2:CreateMailMemo:1:8
  23314. Sub CreateMailMemo(pNote As NotesDocument)
  23315.      
  23316.      Dim mail As NotesDocument
  23317.      Dim rtitem As NotesRichTextItem
  23318.      
  23319.      Set mail = New NotesDocument(db)
  23320.      
  23321. 'set/retrieve standard mail values regardless of pNote type
  23322.      mail.Form = "Memo"
  23323.      mail.Principal = Owner
  23324.      mail.tmpSendTo = GetSendNames(pNote)
  23325.      mail.SendTo = Evaluate("@Trim(@Unique(tmpSendTo))",mail)
  23326.      mail.tmpCopyTo = GetCopyNames(pNote)
  23327.      mail.CopyTo = Evaluate("@Trim(@Unique(tmpCopyTo))",mail)
  23328.      
  23329.      If (pNote.NoticeType(0) <> "J") Then Call AddBodyToNewNote(mail,pNote)
  23330.      
  23331.      Call mail.RemoveItem("tmpSendTo")
  23332.      Call mail.RemoveItem("tmpCopyTo")
  23333.      
  23334.      
  23335. 'set/retrieve mail values depending on pNote type
  23336.      Select Case pNote.Form(0)
  23337.      Case "Memo","Reply","Appointment","Task"
  23338.           mail.Subject = pNote.Subject
  23339.      Case "Notice"
  23340.           mail.Subject = pNote.Topic
  23341.      Case Else
  23342.           mail.Subject = pNote.Subject
  23343.      End Select
  23344.      
  23345.      mail.Logo = session.GetEnvironmentString("DefaultLogo",False)
  23346.      mail.tmpnewdoc = True
  23347.      Call ws.EditDocument(True,mail)
  23348. End Sub
  23349. '++LotusScript Development Environment:2:2:CreateCalendarEntry:1:8
  23350. Sub CreateCalendarEntry(pNote As NotesDocument)
  23351.      
  23352.      Dim entry As NotesDocument
  23353.      Dim rtitem As NotesRichTextItem
  23354.      Dim startdt As New NotesDateTime("")
  23355.      Dim enddt As New NotesDateTime("")
  23356.      Dim trdr As NotesDateRange
  23357.      Dim entryitem As NotesItem
  23358.      
  23359.      Dim sForm As String
  23360.      Dim nMinutes As Integer
  23361.      Dim nSeconds As Integer
  23362.      
  23363.      If (profile Is Nothing) Then Call GetCalendarOwner
  23364.      
  23365.      Set entry = New NotesDocument(db)
  23366.      
  23367. 'add standard entry items
  23368.      entry.AppointmentType = profile.CalEntryType(0)
  23369.      entry.Form = "Appointment"
  23370.      entry.SendTo = GetSendNames(pNote)
  23371.      entry.CopyTo = GetCopyNames(pNote)
  23372.      entry.Chair = Owner
  23373.      entry.Principal = Owner
  23374.      entry.tmpOwner = Owner
  23375.      entry.From = session.UserName
  23376.      
  23377.      
  23378.      
  23379.      If (pNote.NoticeType(0) <> "J") Then Call AddBodyToNewNote(entry,pNote)          
  23380.      
  23381. 'add entry items depending upon pNote type
  23382.      sForm = pNote.Form(0)
  23383.      Select Case sForm
  23384.      Case "Memo","Reply","Task","Personal Stationery"
  23385.           startdt.SetNow          
  23386.           entry.Subject = pNote.Subject
  23387. 'add the startdatetime, enddatetime, timerange, and reminder time
  23388.           If (sForm = "Task") Then
  23389. 'this is a task
  23390. 'first, look for a StartDateTime item
  23391.                If (pNote.StartDateTime(0) <> "") Then
  23392.                     Set startitem = pNote.GetFirstItem("StartDateTime")            
  23393.                     Set startdt = New NotesDateTime(startitem.DateTimeValue.DateOnly & " " & startdt.TimeOnly)                    
  23394. 'if we don't have a startdate item, look for a duedate item                    
  23395.                Elseif (pNote.DueDateTime(0) <> "") Then
  23396.                     Set startitem = pNote.GetFirstItem("DueDateTime")
  23397.                     Set startdt = New NotesDateTime(startitem.DateTimeValue.DateOnly & " " & startdt.TimeOnly)
  23398.                End If
  23399.           End If
  23400. 'set the time component          
  23401.           nMinutes = Minute(startdt.LSLocalTime)
  23402.           nSeconds = 0 - Second(startdt.LSLocalTime)
  23403.           
  23404.           If (nMinutes > 45) Then          
  23405.                startdt.AdjustMinute(60 - nMinutes)
  23406.           Elseif (nMinutes > 30) Then
  23407.                startdt.AdjustMinute(45 - nMinutes)
  23408.           Elseif (nMinutes > 15) Then
  23409.                startdt.AdjustMinute(30 - nMinutes)
  23410.           Else
  23411.                startdt.AdjustMinute(15 - nMinutes)
  23412.           End If               
  23413.           
  23414.           startdt.AdjustSecond(nSeconds)
  23415.           
  23416.           Set entry.StartDate = startdt
  23417.           Set entry.StartDateTime = startdt
  23418.           Set entry.ReminderTime = startdt
  23419.           
  23420.           Set enddt = New NotesDateTime(startdt.LSLocalTime)
  23421.           enddt.AdjustMinute(profile.DefaultDuration(0))
  23422.           
  23423.           Set trdr = session.CreateDateRange
  23424.           Set trdr.StartDateTime = startdt
  23425.           Set trdr.EndDateTime = enddt
  23426.           Set entry.TimeRange = trdr
  23427.      Case "Appointment","Notice"
  23428.           If (sForm = "Appointment") Then
  23429.                entry.Subject = pNote.Subject
  23430.           Else
  23431.                entry.Subject = pNote.Topic
  23432.           End If
  23433.           
  23434. 'copy the startdatetime,enddatetime,timerange, and reminder time
  23435.           Set entryitem = pNote.GetFirstItem("StartDateTime")          
  23436.           If Not(entryitem Is Nothing) Then
  23437.                Call entryitem.CopyitemToDocument(entry,"StartDate")
  23438.                Call entryitem.CopyItemToDocument(entry,"StartDateTime")
  23439.                Call entryitem.CopyItemToDocument(entry,"ReminderTime")
  23440.           End If
  23441.           
  23442.           Set entryitem = pNote.GetFirstItem("EndDateTime")
  23443.           If Not(entryitem Is Nothing) Then Call entryitem.CopyItemToDocument(entry,"EndDateTime")
  23444.           
  23445.           Set entryitem = pNote.GetFirstItem("TimeRange")
  23446.           If Not (entryitem Is Nothing) Then Call entryitem.CopyItemToDocument(entry,"TimeRange")
  23447.      Case Else
  23448.           startdt.SetNow          
  23449.           entry.Subject = pNote.Subject
  23450.           nMinutes = Minute(startdt.LSLocalTime)
  23451.           nSeconds = 0 - Second(startdt.LSLocalTime)
  23452.           
  23453.           If (nMinutes > 45) Then          
  23454.                startdt.AdjustMinute(60 - nMinutes)
  23455.           Elseif (nMinutes > 30) Then
  23456.                startdt.AdjustMinute(45 - nMinutes)
  23457.           Elseif (nMinutes > 15) Then
  23458.                startdt.AdjustMinute(30 - nMinutes)
  23459.           Else
  23460.                startdt.AdjustMinute(15 - nMinutes)
  23461.           End If               
  23462.           
  23463.           startdt.AdjustSecond(nSeconds)
  23464.           
  23465.           Set entry.StartDate = startdt
  23466.           Set entry.StartDateTime = startdt
  23467.           Set entry.ReminderTime = startdt
  23468.           
  23469.           Set enddt = New NotesDateTime(startdt.LSLocalTime)
  23470.           enddt.AdjustMinute(profile.DefaultDuration(0))
  23471.           
  23472.           Set trdr = session.CreateDateRange
  23473.           Set trdr.StartDateTime = startdt
  23474.           Set trdr.EndDateTime = enddt
  23475.           Set entry.TimeRange = trdr
  23476.      End Select
  23477.      entry.ExcludeFromView = "D"
  23478.      entry.tmpNewDoc = True
  23479.      Call ws.EditDocument(True,entry)
  23480. End Sub   
  23481. '++LotusScript Development Environment:2:2:CreateTask:1:8
  23482. Sub CreateTask(pNote As NotesDocument)
  23483.      
  23484.      Dim task As NotesDocument
  23485.      Dim rtitem As NotesRichTextItem
  23486.      Dim sType As String
  23487.      Dim dueitem As NotesItem
  23488.      Dim tmpSendTo As Variant
  23489.      Dim tmpCopyTo As Variant
  23490.      
  23491.      Set task = New NotesDocument(db)
  23492.      
  23493. 'add standard items
  23494.      task.Form = "Task"
  23495.      task.AssignState = 0
  23496.      task.OrgTable = "T0"
  23497.      
  23498.      If (pNote.NoticeType(0) <> "J") Then Call AddBodyToNewNote(task,pNote)
  23499. 'for tasks, the cc = SendTo + CopyTo     
  23500.      tmpSendTo = GetSendNames(pNote)
  23501.      tmpCopyTo = GetCopyNames(pNote)
  23502.      task.tmpCopyTo1 = tmpSendTo
  23503.      task.tmpCopyTo2 = tmpCopyTo
  23504.      task.CopyTo = Evaluate("@Trim(tmpCopyTo1:tmpCopyTo2)",task)
  23505.      task.RemoveItem "tmpCopyTo1"
  23506.      task.RemoveItem "tmpCopyTo2"
  23507.      
  23508.      task.~_ViewIcon = 168
  23509.      
  23510. 'get specific items from pNote type
  23511.      sType = pNote.Form(0)
  23512.      Select Case sType
  23513.      Case "Memo","Reply"
  23514.           task.Subject = pNote.Subject
  23515.      Case "Appointment","Notice"
  23516.           If (sType = "Appointment") Then
  23517.                task.Subject = pNote.Subject
  23518.           Else
  23519.                taskSubject = pNote.Topic(0)
  23520.           End If
  23521.           
  23522.           Set dueitem = pNote.GetFirstItem("StartDateTime")
  23523.           Call dueitem.CopyItemtoDocument(task,"DueDateTime")
  23524.      Case "Task"
  23525.           task.Subject = pNote.Subject
  23526.           If (pNote.StartDateTime(0) <> "") Then
  23527.                Set dueitem = pNote.GetFirstItem("StartDateTime")
  23528.                Call dueitem.CopyItemToDocument(task,"StartDateTime")
  23529.           End If
  23530.           If (pNote.DueDateTime(0) <> "") Then
  23531.                Set dueitem = pNote.GetFirstItem("DueDateTime")
  23532.                Call dueitem.CopyItemToDocument(task,"DueDateTime")
  23533.           End If
  23534.      Case Else
  23535. 'not sure what we have, so assume subject item exists, but don't prefill-in any date info
  23536.           task.Subject = pNote.Subject         
  23537.      End Select
  23538.      task.ExcludeFromView = "D"
  23539.      task.tmpnewdoc = True
  23540.      Call ws.EditDocument(True,task)
  23541. End Sub
  23542. '++LotusScript Development Environment:2:1:GetSendNames:1:8
  23543. Function GetSendNames(pNote As NotesDocument) As Variant
  23544.      Dim sSendItem As String
  23545.      Dim vSendNames As Variant
  23546.      Dim vRetNames() As Variant
  23547.      Dim nItems As Integer
  23548.      Dim x As Integer
  23549.      Dim namUser As New NotesName(session.UserName)
  23550.      Dim nam As NotesName
  23551.      
  23552.      Select Case pNote.Form(0)
  23553.      Case "Memo","Reply"
  23554.           sSendItem = "SendTo"
  23555.      Case "Appointment","Notice"
  23556.           sSendItem = "RequiredAttendees"
  23557.      Case Else
  23558.           sSendItem = "SendTo"
  23559.      End Select
  23560.      
  23561.      vSendNames = pNote.GetItemValue(sSendItem)
  23562.      
  23563.      If (vSendNames(0) = "") And (Ubound(vSendNames) = 0) Then
  23564.           nItems = 1
  23565.      Else
  23566.           nItems = Ubound(vSendNames) + 2
  23567.      End If
  23568.      Redim vRetNames(nItems)
  23569.      
  23570.      Forall names In vSendNames
  23571. 'make sure we don't have a blank value & the name <> current user          
  23572.           If (names <> "") Then
  23573.                Set nam = New NotesName(names)
  23574.                If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  23575.                     vRetNames(x) = names
  23576.                     x = x+1
  23577.                End If
  23578.           End If
  23579.      End Forall
  23580.      
  23581.      If (pNote.HasItem("Principal")) Then
  23582.           Set nam = New NotesName(pNote.Principal(0))
  23583.           If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  23584.                If (pNote.HasItem("FromDomain")) Then          
  23585.                     vRetNames(x) = pNote.Principal(0) & "@" & pNote.FromDomain(0)
  23586.                Else
  23587.                     vRetNames(x) = pNote.Principal(0)
  23588.                End If
  23589.           End If
  23590.      Else
  23591.           Set nam = New NotesName(pNote.From(0))
  23592.           If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  23593.                If (pNote.HasItem("FromDomain")) Then          
  23594.                     vRetnames(x) = pNote.From(0) & "@" & pNote.FromDomain(0)
  23595.                Else
  23596.                     vRetNames(x) = pNote.From(0)
  23597.                End If
  23598.           End If
  23599.      End If
  23600.      
  23601.      GetSendNames = vRetNames
  23602.      
  23603. End Function  
  23604. '++LotusScript Development Environment:2:1:GetCopyNames:1:8
  23605. Function GetCopyNames(pNote As NotesDocument) As Variant
  23606.      Dim sCopyItem As String
  23607.      Dim vCopyNames As Variant
  23608.      Dim vRetnames() As Variant
  23609.      Dim x As Integer
  23610.      Dim nItems As Integer
  23611.      Dim namUser As New NotesName(session.UserName)
  23612.      
  23613.      Select Case pNote.Form(0)
  23614.      Case "Memo","Reply"
  23615.           sCopyItem = "CopyTo"
  23616.      Case "Appointment","Notice"
  23617.           sCopyItem = "OptionalAttendees"
  23618.      Case Else
  23619.           sCopyItem = "CopyTo"
  23620.      End Select
  23621.      
  23622.      vCopyNames = pNote.GetItemValue(sCopyItem)
  23623.      
  23624.      If (vCopyNames(0) = "") And (Ubound(vCopyNames) = 0) Then
  23625.           nItems = 1
  23626.      Else
  23627.           nItems = Ubound(vCopyNames) + 1
  23628.      End If
  23629.      
  23630.      Redim vRetNames(nItems)
  23631.      
  23632.      Forall names In vCopyNames
  23633.           If (names <> "") Then
  23634.                Set nam = New NotesName(names)
  23635.                If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  23636.                     
  23637.                     vRetNames(x) = names
  23638.                     x = x+1
  23639.                End If               
  23640.           End If
  23641.      End Forall
  23642.      
  23643.      GetCopyNames = vRetNames
  23644. End Function  
  23645. '++LotusScript Development Environment:2:2:AddBodyToNewNote:1:8
  23646. Sub AddBodyToNewNote(pNewNote As NotesDocument, pSourceNote As NotesDocument)
  23647.      Dim rtitemSource As NotesRichTextItem
  23648.      Dim rtitemNew As NotesRichTextItem
  23649.      Dim dtitem As NotesItem
  23650.      
  23651.      If Not(bOkToCopy) Then Exit Sub
  23652.      
  23653. 'first, get the body field of the source note
  23654.      Set rtitemSource = pSourceNote.GetFirstItem("Body")
  23655.      
  23656.      
  23657. 'now, create the new Body item
  23658.      Set rtitemNew = New NotesRichTextItem(pNewNote,"Body")
  23659.      rtitemNew.AddNewLine(2)
  23660.      rtitemNew.AppendText "---------------"
  23661.      rtitemNew.AddNewLine(1)
  23662.      
  23663.      
  23664.      Select Case pSourceNote.Form(0)
  23665.      Case "Appointment","Notice"
  23666.           If (pSourceNote.StartDateTime(0) <> "") Then
  23667.                Set dtitem = pSourceNote.GetFirstItem("StartDateTime")          
  23668.                Call rtitemNew.AppendText("Start:")
  23669.                rtitemNew.AddTab(1)
  23670.                rtitemNew.AppendText(dtitem.Values(0))
  23671.                Call rtitemNew.AddNewLine(1)
  23672.           End If
  23673.           If (pSourceNote.EndDateTime(0) <> "") Then
  23674.                Set dtitem = pSourceNote.GetFirstItem("EndDateTime")          
  23675.                Call rtitemNew.AppendText("End:")
  23676.                rtitemNew.AddTab(1)
  23677.                rtitemNew.AppendText(dtitem.Values(0))
  23678.                Call rtitemNew.AddNewLine(1)
  23679.           End If
  23680.           rtitemNew.AddNewLine(2)
  23681.      Case "Task"
  23682.           If (pSourceNote.StartDateTime(0) <> "") Then
  23683.                Set dtitem = pSourceNote.GetFirstItem("StartDateTime")          
  23684.                Call rtitemNew.AppendText("Start date:")
  23685.                rtitemNew.AddTab(1)
  23686.                rtitemNew.AppendText(dtitem.Values(0))
  23687.                Call rtitemNew.AddNewLine(1)
  23688.           End If
  23689.           If (pSourceNote.DueDateTime(0) <> "") Then
  23690.                Set dtitem = pSourceNote.GetFirstItem("DueDateTime")          
  23691.                Call rtitemNew.AppendText("Due date:")
  23692.                rtitemNew.AddTab(1)
  23693.                rtitemNew.AppendText(dtitem.Values(0))
  23694.                Call rtitemNew.AddNewLine(1)
  23695.           End If          
  23696.           rtitemNew.AddNewLine(2)
  23697.      End Select
  23698.      If Not(rtitemSource Is Nothing) Then Call rtitemNew.AppendRTItem(rtitemSource)
  23699. End Sub
  23700. |    |    \
  23701. [|    N`
  23702.     N|    P
  23703.     K@    -
  23704. tmpSendTo
  23705.     0S0E
  23706. tmpCopyTo
  23707.     0S0E
  23708. tmpCopyTo1
  23709. tmpCopyTo2
  23710.     0S0E
  23711. O=Lotus Notes
  23712. O=Lotus Notes
  23713. PURSAFO
  23714. |.:#U
  23715. O=Lotus Notes
  23716. CN=Lotus Notes Template Development/O=Lotus Notes
  23717. PURSAFO
  23718. Fde!f^^
  23719. $ScriptLib
  23720. $ScriptLib_O
  23721. $TITLE
  23722. $Flags
  23723. $PublicAccess
  23724. 06/21/97 02:15:29 PM Ryan Jansen/Iris updated LocalDomainServers
  23725. 03/06/97 01:29:19 PM Ryan Jansen/Iris updated [LocalDomainServers]
  23726. 03/06/97 01:28:35 PM Ryan Jansen/Iris updated [OtherDomainServers]
  23727. 03/06/97 01:28:30 PM Ryan Jansen/Iris added [OtherDomainServers]
  23728. 03/06/97 01:28:25 PM Ryan Jansen/Iris updated [LocalDomainServers]
  23729. 03/06/97 01:28:21 PM Ryan Jansen/Iris added [LocalDomainServers]
  23730. 03/06/97 01:28:14 PM Ryan Jansen/Iris updated [-Default-]
  23731. 03/06/97 01:28:06 PM Ryan Jansen/Iris added [-Default-]
  23732. 03/06/97 01:27:55 PM Ryan Jansen/Iris updated LocalDomainServers
  23733. 03/06/97 01:27:51 PM Ryan Jansen/Iris added LocalDomainServers
  23734. 03/06/97 01:27:45 PM Ryan Jansen/Iris deleted Ryan Jansen/Iris
  23735. 03/06/97 01:27:43 PM Ryan Jansen/Iris deleted Mountain/Iris
  23736. 03/06/97 01:27:42 PM Ryan Jansen/Iris updated -Default-
  23737. 03/06/97 12:21:12 PM Ryan Jansen/Iris updated -Default-
  23738. 03/06/97 12:21:07 PM Ryan Jansen/Iris deleted OtherDomainServers
  23739. 03/06/97 12:21:04 PM Ryan Jansen/Iris deleted LocalDomainServers
  23740. 03/06/97 12:20:55 PM Ryan Jansen/Iris added OtherDomainServers
  23741. 03/06/97 12:20:55 PM Ryan Jansen/Iris added LocalDomainServers
  23742. 03/06/97 12:20:55 PM Ryan Jansen/Iris added Mountain/Iris
  23743. 03/06/97 12:20:55 PM Ryan Jansen/Iris added Ryan Jansen/Iris
  23744. -Default-
  23745. LocalDomainServers
  23746. [-Default-]
  23747. [LocalDomainServers]
  23748. [OtherDomainServers]
  23749.