home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesDataFilesRequiredDataFiles / cmcforms.ntf (.txt) < prev    next >
Encoding:
Lotus Notes Storage Facility  |  1998-11-17  |  2.0 MB  |  24,093 lines

  1. MIME Conversion Forms
  2. #1MimeConvForms
  3. !X%`P
  4. P5~K-!W
  5. qHmvO
  6. CN=Lotus Notes Template Development/O=Lotus Notes
  7. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Keith Hatfield/OU=CAM/O=LotusCN=Lotus Notes Template Development/O=Lotus NotesW^I
  8. y###################################
  9. $Modified
  10.     1S2S3S
  11. $TITLE$FormPrivs$FormUsers$Body$Flags$Class$Modified$Comment$AssistTrigger$AssistType$AssistFlags$UpdatedBy$$FormScript_O$LANGUAGE
  12. $Flags
  13.     0SL1S4S5S3724
  14. $TITLE
  15. CN=Keith Hatfield/OU=CAM/O=Lotus#####
  16. _Calendar Tools\Calendar Profile... | Calendar Profile
  17. E41f3
  18. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  19. #########################################
  20. Periodic Archive
  21. 1SfL3
  22. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############################################
  23.  Mail Tools\Create Stationery... | CreateStationery303
  24. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  25. #######
  26. _Calendar Tools\Delete Repeating Appointment(s)... | DeleteRepeatingFormula
  27. E4fL3
  28. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes 
  29. ############################################
  30. 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#############################################
  31. 7Update Tasks
  32. 1SfL3
  33. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###############################################
  34. _Calendar Tools\Open Another Calendar... | Open Another Calendar
  35. E41f3
  36. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesQ
  37. ###############################
  38. -ProcessOutOfOffice
  39. 1SfL3
  40. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########################################
  41. JMail Tools\Archive Selected Documents
  42. E4fL3
  43. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################
  44. Mail Tools\Delegation Profile... | EditDelegationProfile
  45. E4fL3
  46. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  47. ###############################################
  48. "Mail Tools\Choose Letterhead... | Select Letterhead303
  49. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  50. ######
  51.  Mail Tools\Out of Office... | Out Of Office303
  52. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  53. ##############
  54. ,Empty Trash | Empty Trash303
  55. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################
  56. +Mail Tools\Add Sender to Address Book | AddToAddressBook
  57. E4fL3
  58. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####
  59. CN=Keith Hatfield/OU=CAM/O=LotusCN=Lotus Notes Template Development/O=Lotus Notes####################################
  60. CN=Ryan Jansen/O=Irise:\notefile\mail45.ntf
  61. CN=Ryan Jansen/O=IrisCN=Keith Hatfield/OU=CAM/O=Lotus
  62. ##########################################################
  63. _Archiving|Archiving
  64. Archive Logs
  65. Archive Profile
  66.     6S9S11S
  67. $75$74Subject$Conflict
  68. Archive
  69.     L1S5S1(
  70. $75$74Subject
  71. Archive Logs
  72. Archive Profile
  73.     6S9S11S$74
  74. SubjectDescription&
  75. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############
  76. Bouncy EarthStdNotesLtr1CU3A
  77. Mary LambCN=Lotus Notes Template Development/O=Lotus Notes########
  78. YD3F729BC2029D7188AE991E3D4201966CN=Michael Clark/O=Iris
  79. (Personal Stationery)Personal Stationeryw
  80. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################
  81. (ProcessExistingDbDlg)1DCU
  82. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######
  83. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  84. (Archive Log)Archive LogArchiveLog
  85. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCDw################################################
  86. Reversed TealStdNotesLtr20CU3
  87. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################################################
  88. Pencil and GridStdNotesLtr16CU3
  89. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  90. 1(AlarmDialog)DCU31
  91. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####
  92. Purple StairsStdNotesLtr18CU3
  93. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  94. ##########################################################
  95. Gray Gradient and LinesStdNotesLtr13CU3
  96. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################
  97. $MoodsMoodsCU3
  98. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######
  99. 1(RepeatInfo)CDU31
  100. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################
  101. (Delivery Options)DeliveryOptionsCDU31
  102. CN=Don Hatch/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################################
  103. _Special\Serial Route MemoRoutew
  104. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################################
  105. Squiggly LineStdNotesLtr23CU3
  106. CN=Paul DiCristina/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###############################################
  107. Geometry 1StdNotesLtr9CU3
  108. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################################
  109. Triangle with Dots 2StdNotesLtr30CU3
  110. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################
  111. G(Advanced Options)UC31
  112. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################
  113. 1(RepeatForm)UC31
  114. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######
  115. D3F729BC2029D7188AE991E3D4201966CN=Michael Clark/O=Iris
  116. _Special\Phone MessagePhone Messagew
  117. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####
  118. Torn PaperStdNotesLtr28CU3
  119. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########
  120. O=Lotus Notes
  121. O=Lotus Notes
  122. PURSAFO
  123. |.:#U
  124. O=Lotus Notes
  125. CN=Lotus Notes Template Development/O=Lotus Notes
  126. PURSAFO
  127. =^S^ML
  128. $ACLDigest
  129. Started running agent '_Calendar Tools\Calendar Profile... | Calendar Profile' on 03/10/97 11:01:08 AM
  130. 1 document(s) were modified by formula
  131. Done running agent '_Calendar Tools\Calendar Profile... | Calendar Profile' on 03/10/97 11:01:08 AM
  132. CalendarProfile
  133. O=Lotus Notes
  134. O=Lotus Notes
  135. PURSAFO
  136. |.:#U
  137. O=Lotus Notes
  138. CN=Lotus Notes Template Development/O=Lotus Notes
  139. PURSAFO
  140. $TITLE
  141. $AssistType
  142. $AssistLastRun
  143. $AssistDocCount
  144. $AssistFlags
  145. $AssistTrigger
  146. $AssistInfo
  147. $AssistQuery
  148. $AssistAction
  149. $AssistAction_Ex
  150. $PublicAccess
  151. '++LotusScript Development Environment:2:5:(Options):0:66
  152. '++LotusScript Development Environment:2:5:(Forward):0:1
  153. Declare Sub Initialize
  154. Declare Sub Terminate
  155. Declare Sub Main
  156. Declare Sub GetProfileSettings
  157. Declare Sub CreateLogDocument
  158. Declare Sub ProcessDocuments
  159. Declare Sub EvaluateDocument
  160. Declare Sub ArchiveDocument
  161. Declare Sub FixReaderNames
  162. Declare Sub AddDocumentToLog
  163. Declare Sub CloseLogDocument
  164. Declare Sub MarkLogDocuments
  165. '++LotusScript Development Environment:2:5:(Declarations):0:10
  166. '%INCLUDE "lserr.lss"
  167. '%INCLUDE "lsxbeerr.lss"
  168. Const MAXARCHIVEITEMS = 50
  169. Dim session As NotesSession
  170. Dim dbSource As NotesDatabase
  171. Dim dbArchive As NotesDatabase
  172. Dim docSource As NotesDocument
  173. Dim docArchive As NotesDocument
  174. Dim docLog As NotesDocument
  175. Dim docProfile As NotesDocument
  176. Dim viewArchive As NotesView
  177. Dim dtNow As NotesDateTime
  178. Dim dtExpired As NotesDateTime
  179. Dim dtDocument As NotesDateTime
  180. Dim dtCompare As NotesDateTime
  181. Dim docsCollection As NotesDocumentCollection
  182. Dim rtitem As NotesRichTextItem
  183. Dim item As NotesItem
  184. Dim nidArray() As String
  185. Dim SourcePath As String
  186. Dim SourceServer As String
  187. Dim ArchiveServer As String
  188. Dim ArchivePath As String
  189. Dim ArchiveLog As String
  190. Dim IncludeDocLinks As String
  191. Dim ArchiveExpired As String
  192. Dim ArchiveInactive As String
  193. Dim ExpiredLife As Integer
  194. Dim DocumentLife As Integer
  195. Dim nLogItems As Integer
  196. Dim numDocs As Integer
  197. Dim numDocsArchived As Integer
  198. Dim i As Integer
  199. Dim DoNotRun As Variant
  200. Dim DocCanBeArchived As Variant
  201. '++LotusScript Development Environment:2:2:Initialize:1:10
  202. Sub Initialize
  203.      'initialize some variables
  204.      Set session = New NotesSession
  205.      Set dbSource = session.CurrentDatabase
  206.      Redim nidArray(5)
  207.      nLogItems = 0
  208.      numDocsArchived = 0
  209.      'call the main entry point
  210.      Main     
  211. End Sub
  212. '++LotusScript Development Environment:2:2:Terminate:1:10
  213. Sub Terminate
  214.      
  215. End Sub
  216. '++LotusScript Development Environment:2:2:Main:1:8
  217. Sub Main
  218. 'Read the profile document to see what options are enabled and where databases are located
  219.      GetProfileSettings
  220.      If DoNotRun Then Exit Sub
  221.      
  222. 'setup the date/time structures
  223.      Set dtNow = New NotesDateTime("")
  224.      Set dtExpired = New NotesDateTime("")
  225.      Set dtDocument = New NotesDateTime("")
  226.      Set dtCompare = New NotesDateTime("")
  227.      dtNow.SetNow
  228.      dtExpired.SetNow
  229.      dtDocument.SetNow
  230.      dtCompare.SetNow
  231.      If ArchiveExpired = "Yes" Then dtExpired.AdjustDay(ExpiredLife * -1)
  232.      If ArchiveInactive = "Yes" Then dtDocument.AdjustDay(DocumentLife * -1)     
  233.      
  234. 'open the archive database
  235.      
  236.      On Error Resume Next
  237.      Set dbArchive = New NotesDatabase(ArchiveServer,ArchivePath)
  238.      If Err = 4060 Then Goto ErrNoDBAccess
  239.      
  240.      If Not (dbArchive.IsOpen) Then
  241.           Messagebox "Unable to open archive database.",16,"Error"
  242.           Exit Sub
  243.      End If
  244.      
  245.      'see if we are logging documents, if we are, then create the first one
  246.      If ArchiveLog = "Yes" Then CreateLogDocument
  247.      'process the documents in the database
  248.      'this finds all documents that needs to be archived, archives them, logs them (if necessary), and removes them from this database
  249.      ProcessDocuments
  250.      'mark the log documents in terms of x out of y
  251.      If ArchiveLog = "Yes" Then MarkLogDocuments
  252.      Exit Sub
  253.      
  254. ErrNoDBAccess:
  255.      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"
  256.      Exit Sub
  257. End Sub
  258. '++LotusScript Development Environment:2:2:GetProfileSettings:1:8
  259. Sub GetProfileSettings
  260.      'reads the profile document
  261.      Set view = dbSource.GetView("Archiving")
  262.      key = "Archive Profile"
  263.      Set docProfile = view.GetDocumentByKey(key,False)
  264.      If docProfile Is Nothing Then
  265.           'there is no profile document so exit
  266.           DoNotRun = True
  267.      Elseif docProfile.ArchivePath(0) = "" Then
  268.           'there is no archive database
  269.           Msgbox "You need to specify a location for the archive database.",16,"Error"          
  270.           DoNotRun = True
  271.      Else
  272.           DoNotRun = False
  273.           ArchiveExpired = docProfile.ArchiveExpired(0)
  274.           ArchiveInactive = docProfile.ArchiveInactive(0)
  275.           DocumentLife = docProfile.DocumentLife(0)
  276.           ExpiredLife = docProfile.ExpiredLife(0)
  277.           ArchiveServer = docProfile.ArchiveServer(0)
  278.           ArchivePath = docProfile.ArchivePath(0)
  279.           ArchiveLog = docProfile.ArchiveLog(0)
  280.           IncludeDocLinks = docProfile.IncludeDocLinks(0)
  281.      End If
  282. End Sub
  283. '++LotusScript Development Environment:2:2:CreateLogDocument:1:8
  284. Sub CreateLogDocument
  285.      'creates a new log document, incrementing the counter
  286.      Set docLog = New NotesDocument(dbSource)
  287.      Set rtitem = New NotesRichTextItem(docLog, "Body")
  288.      docLog.Form = "Archive Log"
  289.      dtNow.SetNow
  290.      docLog.ArchiveDate = dtNow.LSLocalTime
  291.      docLog.ProtectFromArchive = 1
  292.      docLog.ExcludeFromView = "D"
  293.      docLog.From = "Archiving"
  294.      docLog.Categories = "(Archive)"
  295.      docLog.ReplaceItemValue "_ViewIcon", 22
  296.      nLogItems = nLogItems + 1
  297.      'see if we need to redim the array
  298.      If nLogItems Mod 6 = 0 Then Redim Preserve nidArray(nLogItems + 4)     
  299. End Sub
  300. '++LotusScript Development Environment:2:2:ProcessDocuments:1:8
  301. Sub ProcessDocuments
  302.      'get a handle to all of the documents in the database
  303.      Set docsCollection = dbSource.AllDocuments
  304.      numDocs = docsCollection.Count
  305.      For i =1 To numDocs
  306.           Set docSource = docsCollection.GetNthDocument(i)
  307.           'see if this document can be archived
  308.           EvaluateDocument
  309.           If DocCanBeArchived Then
  310.                'archive this document
  311.                ArchiveDocument
  312.                If ArchiveLog = "Yes" Then AddDocumentToLog
  313.                docSource.Remove True
  314.           End If
  315.           '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
  316.           If (numDocsArchived Mod MAXARCHIVEITEMS = 0) And (numDocsArchived > 0) Then 
  317.                If ArchiveLog = "Yes" Then
  318.                     CloseLogDocument
  319.                     CreateLogDocument                  
  320.                End If
  321.           End If               
  322.      Next
  323.      'we are done processing all of the documents, close the last log document (if necessary)
  324.      If ArchiveLog = "Yes" Then CloseLogDocument
  325. End Sub
  326. '++LotusScript Development Environment:2:2:EvaluateDocument:1:8
  327. Sub EvaluateDocument
  328.      'checks to see if a document should be archived or not
  329.      DocCanBeArchived = False
  330.      'see if this document is protected from archiving
  331.      If docSource.HasItem("ProtectFromArchive") Then
  332.           If docSource.ProtectFromArchive(0) = 1 Then Exit Sub        
  333.      End If
  334.      
  335. 'look for a $NoPurge item; if it is a date, compare it to today;
  336.      If (docSource.HasItem("$NoPurge")) Then
  337.           Set Purge = docSource.GetFirstItem("$NoPurge")
  338.           If (Purge.Type = DATETIMES) Then
  339.                Set enddt = New NotesDateTime("")
  340.                Set enddt = Purge.DateTimeValue
  341.                Set nowdt = New NotesDateTime("")
  342.                nowdt.SetNow
  343.                If enddt.TimeDifference(nowdt) >= 0 Then Exit Sub
  344.           Else
  345.                Exit Sub
  346.           End If
  347.      End If
  348.      
  349.      'see if we should archive documents that expire
  350.      If ArchiveExpired = "Yes" Then
  351.           If docSource.HasItem("ExpireDate") Then
  352.                Set item = docSource.GetFirstItem("ExpireDate")
  353.                Set dtCompare = item.DateTimeValue
  354.                If dtCompare Is Nothing Then
  355.                     Set dtCompare = New NotesDateTime("")
  356.                     dtCompare.SetNow
  357.                Else
  358.                     If dtExpired.TimeDifference(dtCompare) >= 0 Then
  359.                          DocCanBeArchived = True
  360.                          Exit Sub ' we exit here so that we don't archive this document again
  361.                     End If
  362.                End If                    
  363.           End If
  364.      End If
  365.      'see if we should archive documents that are inactive
  366.      If ArchiveInactive = "Yes" Then
  367.           dtCompare.LSLocalTime = docSource.LastAccessed
  368.           If dtDocument.TimeDifference(dtCompare) >= 0 Then DocCanBeArchived = True
  369.      End If
  370. End Sub
  371. '++LotusScript Development Environment:2:2:ArchiveDocument:1:8
  372. Sub ArchiveDocument
  373.      'copies the source document into the archive database
  374. $Archived and DateArchived might already be present, if this agent failed the last
  375. time it was run.  None of these fields should be on the archived copy, because we 
  376. don't want the archive database to inadvertantly archive these documents (it can
  377. archive, but it needs to use its own criteria)
  378. %END REM
  379.      
  380.      If docSource.HasItem("$Archived") Then docSource.RemoveItem("$Archived")
  381.      If docSource.HasItem("DateArchived") Then docSource.RemoveItem("DateArchived")
  382.      If docSource.HasItem("ExpireDate") Then docSource.RemoveItem("ExpireDate")
  383.      FixReaderNames
  384.      docSource.Save True, True
  385.      Set docArchive = docSource.CopyToDatabase(dbArchive)
  386.      docSource.DateArchived = dtNow.LSLocalTime    
  387.      Call docSource.AppendItemValue("$Archived", True)
  388.      docSource.Save True, True
  389.      numDocsArchived = numDocsArchived + 1
  390. End Sub
  391. '++LotusScript Development Environment:2:2:FixReaderNames:1:8
  392. Sub FixReaderNames
  393.      'if the reader access fields are blank, remove them
  394.      If docSource.HasItem("Readers") Then
  395.           If docSource.Readers(0) = "" Then docSource.RemoveItem("Readers")
  396.      End If
  397.      If docSource.HasItem("DocumentReaders") Then
  398.           If docSource.DocumentReaders(0) = "" Then docSource.RemoveItem("DocumentReaders")
  399.      End If
  400.      
  401. End Sub
  402. '++LotusScript Development Environment:2:2:AddDocumentToLog:1:8
  403. Sub AddDocumentToLog
  404.      'only called if a document was archived and logging was enabled
  405.      If IncludeDocLinks = "Yes" Then
  406.           'the user wants a doclink to the new archived document
  407.           Call rtitem.AppendDocLink(docArchive, "DocLink to " & docSource.Subject(0))
  408.           Call rtitem.AddTab(1)
  409.      End If
  410.      Call rtitem.AppendText("     " & docSource.Subject(0) & " (created by " & docSource.From(0) &   " on " &_
  411.      Format(docSource.Created, "Short Date") & ")")
  412.      Call rtitem.AddNewLine(2)
  413. End Sub
  414. '++LotusScript Development Environment:2:2:CloseLogDocument:1:8
  415. Sub CloseLogDocument
  416.      'saves the log document, adds the note id to the array,
  417.      docLog.Save True, True
  418.      nidArray(nLogItems) = docLog.NoteID
  419. End Sub
  420. '++LotusScript Development Environment:2:2:MarkLogDocuments:1:8
  421. Sub MarkLogDocuments
  422.      'finds all of the log documents just created and marks them in terms of x out of y
  423.      For i = 1 To nLogItems
  424.           Set docLog = dbSource.GetDocumentByID(nidArray(i))
  425.           If Not (docLog Is Nothing) Then
  426.                docLog.Subject = "Log Document " &Cstr(i) & " of " & Cstr(nLogItems) & " (" & Format(docLog.Created, "General Date") & ")"
  427.                docLog.LogCount = Cstr(i)
  428.                docLog.LogTotal = Cstr(nLogItems)
  429.                docLog.ArchiveTrailer = "Archive log " & Cstr(i) & "of " & Cstr(nLogItems) & " for documents on server " & _
  430.                ArchiveServer & " from " & dbSource.Title & " (" & dbSource.FilePath & ") to " & dbArchive.Title & _
  431.                " (" & ArchivePath & ") completed sucessfully on " & _
  432.                Format(dtNow.LSLocalTime, "Short Date") & " at " & _
  433.                Format(dtNow.LSLocalTime, "Long Time") & _
  434.                ".  Expired documents are archived after " & ExpiredLife & _
  435.                " days.  All other documents are archived after " & DocumentLife & " days of inactivity."
  436.                docLog.Save True,True
  437.                Call docLog.CopyToDatabase(dbArchive)
  438.           End If
  439.      Next
  440. End Sub
  441. O=Lotus Notes
  442. O=Lotus Notes
  443. PURSAFO
  444. |.:#U
  445. O=Lotus Notes
  446. CN=Lotus Notes Template Development/O=Lotus Notes
  447. PURSAFO
  448. 6tQKd
  449. $TITLE
  450. $AssistType
  451. $AssistLastRun
  452. $AssistDocCount
  453. $AssistFlags
  454. $AssistTrigger
  455. $AssistInfo
  456. $AssistQuery
  457. $AssistAction
  458. $AssistAction_Ex
  459. Started running agent 'Mail Tools\Create Stationery... | CreateStationery' on 03/10/97 10:55:04 AM
  460. 1 document(s) were modified by formula
  461. Done running agent 'Mail Tools\Create Stationery... | CreateStationery' on 03/10/97 10:55:06 AM
  462. TheForm
  463. Create Stationery
  464. Which Form would you like to use to create this Stationery message?
  465. Personal Stationery
  466.     1S2S6S8S10S12S13S14S
  467. MailStEd
  468.     0R1S2S3S
  469. TheForm
  470.     0RR4S
  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. $TITLE
  479. $Formula
  480. '++LotusScript Development Environment:2:5:(Options):0:74
  481. Option Public
  482. Use "RepeatProcessing"
  483. '++LotusScript Development Environment:2:5:(Forward):0:1
  484. Declare Sub Initialize
  485. '++LotusScript Development Environment:2:5:(Declarations):0:10
  486. Dim acl As NotesAcl
  487. Dim aclentry As NotesAclEntry
  488. '++LotusScript Development Environment:2:2:Initialize:1:10
  489. Sub Initialize
  490.      
  491.      Set ws = New NotesUIWorkspace
  492.      Set uidoc = ws.CurrentDocument
  493.      If Not(uidoc Is Nothing) Then
  494.           Messagebox "You must close all documents before running the ""Delete Repeating..."" action.", 0, "Delete Repeating"
  495.           Exit Sub
  496.      End If
  497.      
  498.      Set session = New NotesSession
  499.      Set db = session.CurrentDatabase
  500.      
  501.      Set acl = db.ACL
  502.      
  503.      Set aclentry = acl.GetEntry(session.Username)
  504. 'if not found using distinquished name try with common name     
  505.      If aclentry Is Nothing Then
  506.           Set namelookup = New NotesName(session.Username)
  507.           Set aclentry = acl.GetEntry(namelookup.Common)
  508. 'if the name is still not found get the default entry          
  509.           If aclentry Is Nothing Then Set aclentry = acl.GetFirstEntry
  510.      End If
  511.      
  512. 'you must either be a public user or have Can Delete turn on     
  513.      If Not(aclentry.CanDeleteDocuments) And Not(aclentry.IsPublicWriter) Then
  514.           Messagebox "You are not authorized to delete documents in this database.", 0, "Delete Repeating"
  515.           Exit Sub
  516.      End If
  517.      
  518.      Set documents = db.UnprocessedDocuments
  519.      
  520. 'we can only realistically do this on one doc at a time.  otherwise how does the user know which we are prompting about.
  521.      Set note = documents.GetFirstDocument
  522.      
  523. 'If no doc is selected we don't want to continue     
  524.      If note Is Nothing Then 
  525.           Messagebox "There is no document selected.", 0, "Delete Repeating Error"
  526.           Exit Sub
  527.      End If
  528.      
  529.      If note.HasItem("OrgRepeat") Then
  530.           If aclentry.Level = ACLLEVEL_AUTHOR And Not(aclentry.IsPublicWriter) Then
  531.                AuthorList = note.Authors
  532.                IsAuthor = False
  533.                Forall a In AuthorList
  534.                     If a = session.Username Then IsAuthor = True
  535.                End Forall
  536.                If Not(IsAuthor) Then
  537.                     Messagebox "You did not create this repeat set and therefore you can not delete its appointments.", 0, "Delete Repeating"
  538.                     Exit Sub
  539.                End If
  540.           End If
  541.           Action = "Delete"
  542.           Call RepeatSave
  543.      Else
  544.           Messagebox "The selected document is not a repeating appointment.", 0, "Delete Repeating Appointment"
  545.      End If
  546.      
  547. End Sub
  548.     #~H    
  549. O=Lotus Notes
  550. O=Lotus Notes
  551. PURSAFO
  552. |.:#U
  553. O=Lotus Notes
  554. CN=Lotus Notes Template Development/O=Lotus Notes
  555. PURSAFO
  556. o^ Z{
  557. $TITLE
  558. $AssistType
  559. $AssistLastRun
  560. $AssistDocCount
  561. $AssistFlags
  562. $AssistTrigger
  563. $AssistInfo
  564. $AssistQuery
  565. $AssistAction
  566. $AssistAction_Ex
  567. '++LotusScript Development Environment:2:5:(Options):0:66
  568. '++LotusScript Development Environment:2:5:(Forward):0:1
  569. Declare Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
  570. Declare Sub Postdocumentdelete(Source As Notesuidatabase)
  571. '++LotusScript Development Environment:2:5:(Declarations):0:2
  572. '++LotusScript Development Environment:2:2:BindEvents:1:129
  573. Private Sub BindEvents(Byval Objectname_ As String)
  574.      Static Source As NOTESUIDATABASE
  575.      Set Source = Bind(Objectname_)
  576.      On Event Querydocumentdelete From Source Call Querydocumentdelete
  577.      On Event Postdocumentdelete From Source Call Postdocumentdelete
  578. End Sub
  579. '++LotusScript Development Environment:2:2:Querydocumentdelete:1:12
  580. Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
  581.      
  582. End Sub
  583. '++LotusScript Development Environment:2:2:Postdocumentdelete:1:12
  584. Sub Postdocumentdelete(Source As Notesuidatabase)
  585.      
  586. End Sub
  587. O=Lotus Notes
  588. O=Lotus Notes
  589. PURSAFO
  590. |.:#U
  591. O=Lotus Notes
  592. CN=Lotus Notes Template Development/O=Lotus Notes
  593. PURSAFO
  594. tvSk1D
  595. $DBScript
  596. $DBScript_O
  597. $TITLE
  598. $Flags
  599. $PublicAccess
  600. '++LotusScript Development Environment:2:5:(Options):0:74
  601. Option Public
  602. Use "SharedTaskLibrary"
  603. '++LotusScript Development Environment:2:5:(Forward):0:1
  604. Declare Sub Initialize
  605. '++LotusScript Development Environment:2:5:(Declarations):0:2
  606. '++LotusScript Development Environment:2:2:Initialize:1:10
  607. Sub Initialize
  608.      Call UpdateTasks
  609. End Sub
  610. O=Lotus Notes
  611. O=Lotus Notes
  612. PURSAFO
  613. |.:#U
  614. O=Lotus Notes
  615. CN=Lotus Notes Template Development/O=Lotus Notes
  616. PURSAFO
  617. $TITLE
  618. $AssistType
  619. $AssistLastRun
  620. $AssistDocCount
  621. $AssistFlags
  622. $AssistTrigger
  623. $AssistInfo
  624. $AssistQuery
  625. $AssistAction
  626. $AssistAction_Ex
  627.     0S0E
  628. O=Lotus Notes
  629. O=Lotus Notes
  630. PURSAFO
  631. |.:#U
  632. O=Lotus Notes
  633. CN=Lotus Notes Template Development/O=Lotus Notes
  634. PURSAFO
  635. $TITLE
  636. $AssistType
  637. $AssistLastRun
  638. $AssistDocCount
  639. $AssistFlags
  640. $AssistTrigger
  641. $AssistInfo
  642. $AssistQuery
  643. $AssistAction
  644. $AssistAction_Ex
  645. $PublicAccess
  646. '++LotusScript Development Environment:2:5:(Options):0:66
  647. Option Public
  648. '++LotusScript Development Environment:2:5:(Forward):0:1
  649. Declare Sub NotifySender
  650. Declare Sub Initialize
  651. Declare Sub GetProfile
  652. Declare Sub CheckName
  653. '++LotusScript Development Environment:2:5:(Declarations):0:10
  654. %INCLUDE "lsconst.lss"
  655. Dim s As NotesSession
  656. Dim db As NotesDatabase
  657. Dim view As NotesView
  658. Dim note As NotesDocument
  659. Dim profile As NotesDocument
  660. Dim maildoc As NotesDocument
  661. Dim notifieditem As NotesItem
  662. Dim startdate As NotesItem
  663. Dim enddate As NotesItem
  664. Dim rtitem As NotesRichTextItem
  665. Dim documents As NotesDocumentCollection
  666. Dim dtToday As NotesDateTime
  667. Dim dtCompare As NotesDateTime
  668. Dim deliveredDate As NotesItem
  669. Dim dtStart As NotesDateTime
  670. Dim nam As NotesName
  671. Dim FormName As Variant
  672. Dim AdminType As Variant
  673. Dim ProfileUser As Variant
  674. Dim FirstDayOut As Variant
  675. Dim FirstDayBack As Variant
  676. Dim DaysOut As Variant
  677. Dim GeneralSubject As Variant
  678. Dim GeneralMessage As Variant
  679. Dim SpecialSubject As Variant
  680. Dim SpecialMessage As Variant
  681. Dim SpecialPeople As Variant
  682. Dim IgnorePeople As Variant
  683. Dim AlreadyNotified As Variant
  684. Dim SenderIsSpecial As Variant
  685. Dim Sender As Variant
  686. Dim DoNotRun As Variant
  687. Dim DoNotSend As Variant
  688. Dim domainItem As Variant
  689. '++LotusScript Development Environment:2:2:NotifySender:1:8
  690. Sub NotifySender
  691.      
  692. 'Set object variables for email
  693.      
  694.      Set maildoc = New NotesDocument(db)
  695.      Set rtitem = New NotesRichTextItem(maildoc, "Body")
  696.      
  697. 'Check to see if this person is on the SpecialPeople list
  698.      SenderIsSpecial = False
  699.      Forall i In SpecialPeople
  700.           If Sender(0) = i Then
  701.                SenderIsSpecial = True
  702.                Exit Forall
  703.           End If
  704.      End Forall
  705.      
  706. 'Build and send the email
  707.      maildoc.Form = "Memo"
  708.      domainItem = note.FromDomain
  709.      maildoc.SendTo = Sender(0)
  710.      If Not (Isempty(domainItem)) And domainItem(0) <> "" Then
  711.           maildoc.SendTo = mailDoc.SendTo(0) & " @ " & domainItem(0)
  712.      End If
  713.      rtitem.AppendText(DaysOut(0))
  714.      rtitem.AddNewLine(2)
  715.      If SenderIsSpecial Then
  716.           maildoc.Subject = SpecialSubject(0)
  717.           rtitem.AppendText(SpecialMessage(0))
  718.      Else
  719.           maildoc.Subject = GeneralSubject(0)
  720.           rtitem.AppendText(GeneralMessage(0))
  721.      End If
  722.      Call maildoc.AppendItemvalue("$AutoForward", True)
  723.      
  724. 'Don't add this person to the Notified list if the message cannot be sent.
  725. 'Send may fail if an ambiguous name is supplied
  726.      On Error Goto SendError
  727.      maildoc.Send(False)
  728.      
  729. 'Add this sender to AlreadyNotified list on profile
  730.      notifieditem.AppendToTextList(Sender(0))
  731.      profile.Save True, True
  732.      
  733. SendError:
  734.      ' Maybe keep track of the people that we couldn't send to?
  735.      Exit Sub
  736.      
  737. End Sub
  738. '++LotusScript Development Environment:2:2:Initialize:1:10
  739. Sub Initialize
  740.      
  741. 'Set Object Variables
  742.      Set dtToday = New NotesDateTime("")    
  743.      dtToday.SetNow
  744.      Set s = New NotesSession
  745.      Set db = s.CurrentDatabase
  746.      Set documents = db.UnprocessedDocuments
  747.      Set view = db.GetView("($Profiles)")
  748.      Set profile = db.GetProfileDocument("OutOfOfficeProfile")
  749.      
  750. 'Get the profile data and be sure that this agent should run today
  751.      DoNotRun = False
  752.      GetProfile
  753.      If DoNotRun Then Exit Sub
  754.      
  755.      Set dtStart = startdate.DateTimeValue
  756.      
  757. 'Get each doc, check if sender has been notified yet, if not then notify them     
  758.      For n = 1 To documents.Count
  759.           Set note = documents.GetNthDocument(n)
  760.           Sender = note.From
  761. 'Make sure that we received this message (DeliveredDate) and that it was not automatically generated by someone else' agent ($AutoForward)
  762.           If note.HasItem("DeliveredDate")  And (Not note.HasItem("$AutoForward")) And (Not note.SentByAgent) Then
  763.                Set deliveredDate = note.GetFirstItem("DeliveredDate")
  764.                If deliveredDate.Values(0) <> "" Then
  765.                     Set dtCompare = deliveredDate.DateTimeValue
  766.                     If dtStart.TimeDifference(dtCompare) <= 0 Then
  767.                          CheckName
  768.                          If Not DoNotSend Then
  769.                               NotifySender
  770.                          End If
  771.                     End If
  772.                End If
  773.           End If
  774.           Call s.UpdateProcessedDoc(note)
  775.      Next
  776.      
  777. End Sub
  778. '++LotusScript Development Environment:2:2:GetProfile:1:8
  779. Sub GetProfile
  780. '    
  781. 'Get profile document and field values.  If no Profile, inform the user and exit.  We have to check on the existance
  782. 'of a couple of fields(we'll choose datein/dateout because of their importance), because if the profile isn't setup, a 
  783. 'blank default document is created with 3 fields; but not the 2 listed below...
  784.      If (profile Is Nothing) Or (profile.HasItem("dateFirstDayOut") = False) Or (profile.HasItem("dateFirstDayBack") = False) Then
  785.           Set maildoc = New NotesDocument(db)
  786.           maildoc.Form = "Memo"
  787.           maildoc.SendTo = "Email User"
  788.           maildoc.From = "Your Out of Office Agent"
  789.           maildoc.Subject = "Out of Office Agent failed"
  790.           maildoc.Body = "The Out of Office Agent cannot run unless you have created an Out of Office Profile.  " & _
  791.           "Choose ""Actions, Mail Tools, Out of Office"" from the Action menu and fill in the appropriate information."
  792.           maildoc.PostedDate = dtToday.LSLocalTime
  793.           maildoc.DeliveredDate = dtToday.LSLocalTime
  794.           maildoc.Save True, True
  795.           maildoc.PutInFolder("($InBox)")
  796.           DoNotRun = True
  797.           Exit Sub
  798.      Else
  799.           ProfileUser = profile.Sender
  800.      End If
  801.      
  802. 'Be sure the agent is supposed to be running today     
  803.      FirstDay = Datevalue(profile.dateFirstDayOut(0))
  804.      LastDay = Datevalue(profile.dateFirstDayBack(0))
  805.      LastTime = Timevalue(profile.dateFirstDayBack(0))
  806.      CurrentDay = Today
  807.      CurrentTime = Time
  808.      
  809. 'If this is the day before you return and within 6 hours of the return time (12AM of the day your return)
  810. 'then we consider you back.  This accounts for people who run this agent hourly or daily between 6PM and midnight.
  811. 'If this is the day you return or any day after then you are also back.
  812.      If (CurrentDay = LastDay - 1 And _
  813.      CurrentTime >= Timenumber(Hour(LastTime - 6), Minute(LastTime), Second(LastTime))) Or _
  814.      CurrentDay => LastDay Then
  815.           Set maildoc = New NotesDocument(db)          
  816.           Set rtitem = New NotesRichTextItem(maildoc, "Body")
  817.           maildoc.Form = "Memo"
  818.           maildoc.SendTo = ProfileUser(0)
  819. 'if the profile has this item, we have already sent you a Welcome Back notice.
  820. 'but we still need to remind you to turn off your Out of Office agent          
  821.           If profile.HasItem("BackInOffice") Then
  822. 'we only want to send one reminder per day               
  823.                If Datevalue(profile.BackInOffice(0)) < CurrentDay Then
  824.                     maildoc.Subject = "Please disable your OutOfOffice agent"
  825.                     rtitem.AppendText("Please select Actions, Mail Tools, Out Of Office and click " & _
  826.                     "the button entitled ""I Have Returned To The Office"" to disable your Out of Office Agent.")
  827.                     profile.BackInOffice = Today
  828.                     profile.save True, True
  829.                     maildoc.Send(False)
  830.                End If
  831.           Else
  832.                maildoc.Subject = "Welcome Back!"
  833.                rtitem.AppendText("Please select Actions, Mail Tools, Out Of Office and click " & _
  834.                "the button entitled ""I Have Returned To The Office"" to disable your Out of Office Agent.")
  835.                rtitem.AddNewLine(2)
  836.                AlreadyNotified = profile.AlreadyNotified
  837.                If AlreadyNotified(0) <> "" Then
  838.                     rtitem.AppendText("While you were out, your Out of Office Agent " & _
  839.                     "notified the following people of your absence:")
  840.                     rtitem.AddNewLine(2)
  841.                     For i = 0 To Ubound(AlreadyNotified)
  842.                          Set nam = New NotesName(AlreadyNotified(i))
  843.                          rtitem.AppendText(nam.Abbreviated)
  844.                          rtitem.AddNewLine(1)
  845.                     Next
  846.                End If
  847.                maildoc.BackInOffice = True
  848.                profile.BackInOffice = Today
  849.                profile.save True, True
  850.                maildoc.Send(False)
  851.           End If
  852.           DoNotRun = True
  853.           Exit Sub
  854.      End If
  855.      
  856.      If CurrentDay >= FirstDay Then
  857. 'if the agent has been run before we want to remove the Notified list          
  858.           If profile.HasItem("BackInOffice") Then
  859.                profile.RemoveItem("BackInOffice")
  860.                profile.RemoveItem("AlreadyNotified")
  861.                profile.save True, True
  862.           End If
  863.      Else
  864. 'if today is ealier that FirstDayOut then we don't want to run the agent
  865.           DoNotRun = True
  866.           Exit Sub
  867.      End If
  868.      
  869.      If profile.HasItem("AlreadyNotified") Then
  870.           Set notifieditem = profile.GetFirstItem("AlreadyNotified")
  871.      Else
  872.           Set notifieditem = New NotesItem(profile, "AlreadyNotified", "")
  873.      End If
  874.      Set startdate = profile.GetFirstItem("dateFirstDayOut")
  875.      Set enddate = profile.GetFirstItem("dateFirstDayBack")
  876.      DaysOut = profile.DaysOut         
  877.      GeneralSubject = profile.GeneralSubject
  878.      GeneralMessage = Profile.GeneralMessage
  879.      SpecialSubject = profile.SpecialSubject
  880.      SpecialMessage = profile.SpecialMessage
  881.      SpecialPeople = profile.SpecialPeople
  882.      IgnorePeople = profile.IgnorePeople
  883.      
  884. End Sub
  885. '++LotusScript Development Environment:2:2:CheckName:1:8
  886. Sub CheckName
  887.      DoNotSend = False
  888.      
  889. 'If the email is from yourself, don't notify sender     
  890.      If Sender(0) = ProfileUser(0) Then
  891.           DoNotSend = True
  892.           Exit Sub          
  893.      End If
  894.      
  895. 'See if sender was already notified
  896.      AlreadyNotified = profile.AlreadyNotified     
  897.      Forall a In AlreadyNotified
  898.           If Sender(0) = a Then
  899.                DoNotSend = True
  900.                Exit Sub          
  901.           End If
  902.      End Forall
  903.      
  904. 'See if sender should be ignored
  905.      Forall i In IgnorePeople
  906.           If Sender(0) = i Then
  907.                DoNotSend = True
  908.                Exit Sub          
  909.           End If
  910.      End Forall
  911.      
  912. End Sub
  913. O=Lotus Notes
  914. O=Lotus Notes
  915. PURSAFO
  916. |.:#U
  917. O=Lotus Notes
  918. CN=Lotus Notes Template Development/O=Lotus Notes
  919. PURSAFO
  920. &RCu!
  921. $TITLE
  922. $AssistType
  923. $AssistLastRun
  924. $AssistDocCount
  925. $AssistFlags
  926. $AssistTrigger
  927. $AssistInfo
  928. $AssistQuery
  929. $AssistAction
  930. $AssistAction_Ex
  931. '++LotusScript Development Environment:2:5:(Options):0:74
  932. Option Public
  933. '++LotusScript Development Environment:2:5:(Forward):0:1
  934. Declare Sub Initialize
  935. Declare Sub ArchiveDocument
  936. Declare Sub ProcessDocuments
  937. Declare Sub Terminate
  938. '++LotusScript Development Environment:2:5:(Declarations):0:10
  939. %INCLUDE "lserr.lss"
  940. %INCLUDE "lsxbeerr.lss"
  941. %INCLUDE "lsconst.lss"
  942. Dim w As NotesUIWorkspace
  943. Dim s As NotesSession
  944. Dim sourcedb As NotesDatabase
  945. Dim archivedb As NotesDatabase
  946. Dim note As NotesDocument
  947. Dim newnote As NotesDocument
  948. Dim lognote As NotesDocument
  949. Dim profile As NotesDocument
  950. Dim documents As NotesDocumentCollection
  951. Dim responses As NotesDocumentCollection
  952. Dim view As NotesView
  953. Dim dtNow As NotesDateTime
  954. Dim dtExpired As NotesDateTime
  955. Dim dtDocument As NotesDateTime
  956. Dim dtCompare As NotesDateTime
  957. Dim item As NotesItem
  958. Dim rtitem As NotesRichTextItem
  959. Dim CurrentServer As String
  960. Dim ArchiveExpired As Variant
  961. Dim ExpiredLife As Variant
  962. Dim ArchiveInactive As Variant
  963. Dim DocumentLife As Variant
  964. Dim ArchivePath As Variant
  965. Dim ArchiveLog As Variant
  966. Dim IncludeDocLinks As Variant
  967. Dim Archive As Variant
  968. Dim ManualArchive As String
  969. Dim goAgain As Variant
  970. Dim DoNotRun As Variant
  971. '++LotusScript Development Environment:2:2:Initialize:1:10
  972. Sub Initialize
  973.      
  974. 'IF YOU CHANGE THIS AGENT - CHANGE *Periodic Archive* TO MATCH - THEY ARE NEARLY IDENTICAL
  975.      On Error Goto ErrorRoutine
  976.      On Error 4060 Goto ErrNoDBAccess        'this handles the case where a delegee was added after the creation of the archive database
  977.      On Error ErrObjectVariableNotSet Resume Next 
  978.      
  979.      Dim calprofile As NotesDocument
  980.      
  981.      Set s = New NotesSession
  982.      Set w = New NotesUIWorkspace
  983.      Set sourcedb = s.CurrentDatabase
  984.      Set view = sourcedb.GetView("Archiving")
  985.      key  = "Archive Profile"
  986.      Set profile = view.GetDocumentByKey(key)
  987.      
  988.      If profile Is Nothing Then
  989.           If Messagebox("You must set up an archive database before you can archive " &_
  990.           "selected documents.  Would you like to set up an archive database now?",_
  991.           MB_YesNo + MB_IconQuestion, "Archive") = IDYES Then
  992.                Call w.ComposeDocument("", "", "ArchiveProfile")
  993.           End If
  994.           DoNotRun = True
  995.           Exit Sub       
  996.      End If
  997.      
  998.      If Messagebox("Are you sure you want to move these documents to your archive database now?", _
  999.      MB_YesNo + MB_IconQuestion, "Archiving") = IDNo Then
  1000.           Messagebox "No documents were archived.", MB_OK, "Archiving"
  1001.           DoNotRun = True
  1002.           Exit Sub
  1003.      End If
  1004.      
  1005.      ArchivePath = profile.ArchivePath
  1006.      ArchiveServer = Evaluate("@Name([Abbreviate]; ArchiveServer)", profile)
  1007.      ArchiveLog = profile.ArchiveLog
  1008.      IncludeDocLinks = profile.IncludeDocLinks
  1009.      
  1010.      Set dtNow = New NotesDateTime("")
  1011.      dtNow.SetNow
  1012.      
  1013.      If ArchiveLog(0) = "Yes" Then
  1014.           Set lognote = New NotesDocument(sourcedb)
  1015.           Set rtitem = New NotesRichTextItem(lognote, "Body")
  1016.           lognote.Form = "Archive Log"
  1017.           lognote.ArchiveDate = dtNow.LSLocalTime
  1018.           lognote.ProtectFromArchive = 1
  1019.           lognote.ExcludeFromView = "D"
  1020.           lognote.From = "Archiving"
  1021.           Call lognote.ReplaceItemValue("_ViewIcon", 22)
  1022.      End If
  1023.      
  1024.      On Error Resume Next     
  1025.      Set archivedb = New NotesDatabase(ArchiveServer(0), ArchivePath(0))
  1026.      If Err = 4060 Then Goto ErrNoDBAccess
  1027.      
  1028.      If archivedb.IsOpen = False Then
  1029.           If ArchiveServer(0) = "" Then
  1030.                ArchiveFile = ArchivePath(0)
  1031.           Else
  1032.                ArchiveFile = ArchiveServer(0) & "!!" & ArchivePath(0)
  1033.           End If
  1034.           Messagebox "The Archive agent was unable to open your archive file - " & ArchiveFile &_
  1035.           ".  Please verify that the file exists.", MB_IconStop, "Archiving"
  1036.           DoNotRun = True
  1037.           Err = 0
  1038.           Exit Sub
  1039.      End If        
  1040.      On Error Goto ErrorRoutine
  1041.      
  1042.      ProcessDocuments
  1043.      
  1044.      Exit Sub
  1045.      
  1046. ErrorRoutine:
  1047.      Messagebox "Unexpected condition: " & Err & " - " & Error, 0, "Archiving"
  1048.      Exit Sub
  1049. ErrNoDBAccess:
  1050.      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"
  1051.      Exit Sub
  1052. End Sub
  1053. '++LotusScript Development Environment:2:2:ArchiveDocument:1:8
  1054. Sub ArchiveDocument
  1055.      
  1056.      On Error Goto ErrorRoutine
  1057.      On Error ErrObjectVariableNotSet Resume Next 
  1058.      Dim Purge As NotesItem
  1059.      
  1060. $Archived and DateArchived might already be present, if this agent failed the last
  1061. time it was run.  None of these fields should be on the archived copy, because we 
  1062. don't want the archive database to inadvertantly archive these documents (it can
  1063. archive, but it needs to use its own criteria)
  1064. %END REM
  1065.      
  1066. 'If this type of form does not get archived then exit
  1067.      If note.HasItem("ProtectFromArchive") Then
  1068.           ProtectFromArchive = note.ProtectFromArchive
  1069.           If ProtectFromArchive(0) = 1 Then Exit Sub
  1070.      End If
  1071.      
  1072. 'look for a $NoPurge item; if it is a date, compare it to today;
  1073.      If (note.HasItem("$NoPurge")) Then
  1074.           Set Purge = note.GetFirstItem("$NoPurge")
  1075.           If (Purge.Type = DATETIMES) Then
  1076.                Set enddt = New NotesDateTime("")
  1077.                Set enddt = Purge.DateTimeValue
  1078.                Set nowdt = New NotesDateTime("")
  1079.                nowdt.SetNow
  1080.                If enddt.TimeDifference(nowdt) >= 0 Then 
  1081.                     Messagebox |The document "| & note.Subject(0) & |" could not be archived since the end date has not passed.|,0,"Status"                     
  1082.                     Exit Sub
  1083.                End If
  1084.           Else
  1085.                Exit Sub
  1086.           End If
  1087.      End If
  1088.      
  1089.      If note.HasItem("$Archived") Then note.RemoveItem("$Archived")
  1090.      If note.HasItem("DateArchived") Then note.RemoveItem("DateArchived")
  1091.      If note.HasItem("ExpireDate") Then note.RemoveItem("ExpireDate")
  1092.      note.Save True, True
  1093.      Set newnote = note.CopyToDatabase(archivedb)
  1094.      note.DateArchived = dtNow.LSLocalTime    
  1095.      Call note.AppendItemValue("$Archived", True)
  1096.      note.Save True, True
  1097.      
  1098.      Subject = note.Subject
  1099.      CreatedBy = Evaluate("@Name([Abbreviate]; From)", note)
  1100.      CreatedDate = note.Created
  1101.      
  1102.      If ArchiveLog(0) = "Yes" Then
  1103.           If IncludeDocLinks(0) = "Yes" Then
  1104.                Call rtitem.AppendDocLink(newnote, "DocLink to " & Subject(0))
  1105.                Call rtitem.AddTab(1)
  1106.           End If
  1107.           Call rtitem.AppendText(Subject(0) & " (created by " & CreatedBy(0) & " on " &_
  1108.           Format(CreatedDate, "Short Date") & ")")
  1109.           Call rtitem.AddNewLine(2)
  1110.           lognote.Save True, True
  1111.      End If
  1112.      
  1113.      Exit Sub
  1114.      
  1115. ErrorRoutine:
  1116.      Messagebox "Unexpected condition: " & Err & " - " & Error
  1117.      Exit Sub
  1118.      
  1119. End Sub 
  1120. '++LotusScript Development Environment:2:2:ProcessDocuments:1:8
  1121. Sub ProcessDocuments
  1122.      
  1123.      On Error Resume Next
  1124.      
  1125.      Print "Archiving selected documents..."
  1126.      
  1127.      Set documents = sourcedb.UnprocessedDocuments
  1128.      If documents.Count > 0 Then
  1129.           For n = 1 To documents.Count
  1130.                Set note = documents.GetNthDocument(n)
  1131.                ArchiveDocument
  1132.           Next
  1133.      End If
  1134.      
  1135. 'Loop through all the documents that we archived and archive their reponses
  1136.      Do
  1137.           Set documents = sourcedb.Search("@IsAvailable($Archived)", Nothing, 0)
  1138.           goAgain = False
  1139.           For n = 1 To documents.count
  1140.                Set note = documents.GetNthDocument(n)
  1141.                Call note.RemoveItem("$Archived")              
  1142.                If Err = 0 Then
  1143.                     note.Save True, True
  1144.                     Set responses = note.Responses
  1145.                     If responses.Count > 0 Then
  1146.                          For i = 1 To responses.Count
  1147.                               Set note = responses.GetNthDocument(i)
  1148.                               If Not note.HasItem("$Archived") Then ArchiveDocument
  1149. 'Since we just archived a response, we have to loop back through in order to archive all of its reponses
  1150.                               goAgain = True
  1151.                          Next
  1152.                     End If
  1153.                Else
  1154.                     Err = 0
  1155.                End If
  1156.           Next
  1157.      Loop While goAgain
  1158.      
  1159. End Sub
  1160. '++LotusScript Development Environment:2:2:Terminate:1:10
  1161. Sub Terminate
  1162.      
  1163.      If DoNotRun Then Exit Sub
  1164.      
  1165.      On Error Goto ErrorRoutine
  1166.      On Error ErrObjectVariableNotSet Resume Next
  1167.      On Error lsERR_NOTES_CANTREMOVE Resume Next
  1168.      
  1169.      Set documents = sourcedb.Search("@IsAvailable(DateArchived)", Nothing, 0)
  1170.      ArchiveCount = documents.Count
  1171.      For n = 1 To ArchiveCount
  1172.           Set note = documents.GetNthDocument(n)         
  1173.           note.Remove(True)
  1174.      Next
  1175.      If Err = 4241 Then
  1176.           Err = 0
  1177.           Messagebox "The open document was copied to the archive database, but it could not be deleted.  " &_
  1178.           "Please delete it manually.", 0, "Could not delete"
  1179.      End If
  1180.      
  1181.      If ArchiveLog(0) = "" Then Exit Sub
  1182.      
  1183.      ArchiveTitle = archivedb.Title
  1184.      dtNow.SetNow
  1185.      If CurrentServer = "" Then CurrentServer = "Local"
  1186.      lognote.Subject = "Archive Log for " & Format(dtNow.LSLocalTime, "General Date")
  1187.      
  1188.      lognote.ArchiveTrailer = "Archive of " & ArchiveCount & " documents on server " & _
  1189.      CurrentServer & " from " & sourcedb.Title & " (" & sourcedb.FilePath & ") to " & ArchiveTitle & _
  1190.      " (" & ArchivePath(0) & ") completed sucessfully on " & _
  1191.      Format(dtNow.LSLocalTime, "Short Date") & " at " & _
  1192.      Format(dtNow.LSLocalTime, "Long Time") & "."
  1193.      lognote.Save True, True
  1194.      Call lognote.CopyToDatabase(archivedb)
  1195.      
  1196.      w.ViewRefresh
  1197.      
  1198.      If ArchiveCount = 1 Then
  1199.           Messagebox ArchiveCount & " document was archived.", MB_OK, "Archiving"
  1200.      Else
  1201.           Messagebox ArchiveCount & " documents were archived.", MB_OK, "Archiving"
  1202.      End If
  1203.      Print
  1204.      
  1205.      Exit Sub
  1206.      
  1207. ErrorRoutine:
  1208.      Messagebox "Unexpected condition: " & Err & " - " & Error
  1209.      Exit Sub
  1210.      
  1211. End Sub
  1212. W4Y4Y
  1213. YLZX[
  1214. h"h"8,
  1215. #H$T-
  1216. $H%8/
  1217. ($(&p/
  1218. $('d0
  1219. %h&<2
  1220. 'H)86
  1221. )h),8
  1222. (*(*,:
  1223. *h/<;
  1224. ,h1p=
  1225. ,H.P>
  1226. -h.H@
  1227. H/H0@C
  1228. /H6 D
  1229. 1H1pF
  1230. 1h3TG
  1231. 2h2HH
  1232. (2(2xH
  1233. H4H4pL
  1234. 5(6HO
  1235. h6(7$P
  1236. 7(;\R
  1237. (8(9PS
  1238. 8H90T
  1239. H9H=XU
  1240. 9h:<V
  1241. <(=TZ
  1242. =(>L]
  1243. >h?p_
  1244. ?(AHa
  1245. @HA(c
  1246. A(Bdc
  1247. (C(C`g
  1248. C(D8h
  1249. E(G j
  1250. (EhE4j
  1251. EhF|j
  1252. F(Hlk
  1253. G(Ill
  1254. H(J(m
  1255. HHIHm
  1256. IhR0n
  1257. KhL8o
  1258. LHM8q
  1259. M(MTq
  1260. MXR$r
  1261. ]$[$[
  1262. YD]dY
  1263. hZp{a
  1264. N+4N$
  1265. V}$w#
  1266. N,LW}
  1267. S,PX#
  1268. QQ|X}
  1269. Q,dY}\
  1270. Q,dY}
  1271. ZKTY-(Z#
  1272. NLZT\Z'
  1273. ZShZ^LZ%
  1274. Q,dY}
  1275. Q,dY}H
  1276. Q,dY}h
  1277. Q,$[}
  1278. P-t\#
  1279. QKXR,
  1280. QKXR,
  1281. Q-D]#
  1282. ^x]48
  1283. QKhR,
  1284. Q,dY}
  1285. ]KXR-
  1286. QKXR,
  1287. S,PX#
  1288. QQtZ}
  1289. QQ<^}l
  1290. P-H^#
  1291. N,l^#
  1292. ArchiveServer
  1293. O=Lotus Notes
  1294. O=Lotus Notes
  1295. PURSAFO
  1296. |.:#U
  1297. O=Lotus Notes
  1298. CN=Lotus Notes Template Development/O=Lotus Notes
  1299. PURSAFO
  1300. $TITLE
  1301. $AssistType
  1302. $AssistLastRun
  1303. $AssistDocCount
  1304. $AssistFlags
  1305. $AssistTrigger
  1306. $AssistInfo
  1307. $AssistQuery
  1308. $AssistAction
  1309. $AssistAction_Ex
  1310. Started running agent 'Mail Tools\Delegation Profile...' on 05/23/96 09:30:02 AM
  1311. 0 document(s) were modified by formula
  1312. Done running agent 'Mail Tools\Delegation Profile...' on 05/23/96 09:30:03 AM
  1313. '++LotusScript Development Environment:2:5:(Options):0:74
  1314. Option Public
  1315. '++LotusScript Development Environment:2:5:(Forward):0:1
  1316. Declare Sub Initialize
  1317. Declare Sub GetAclEntries
  1318. '++LotusScript Development Environment:2:5:(Declarations):0:10
  1319. Dim acl As NotesACL
  1320. Dim aclentry As NotesAclEntry
  1321. Dim nextaclentry As NotesAclEntry
  1322. Dim profile As NotesDocument
  1323. Dim db As NotesDatabase
  1324. Dim session As NotesSession
  1325. Dim ws As NotesUIWorkspace
  1326. Dim ReadCal() As Variant
  1327. Dim WriteCal() As Variant
  1328. Dim ReadMail() As Variant
  1329. Dim WriteMail() As Variant
  1330. Dim EditMail() As Variant
  1331. Dim DeleteMail() As Variant
  1332. Dim OtherUsers() As Variant
  1333. '++LotusScript Development Environment:2:2:Initialize:1:10
  1334. Sub Initialize
  1335.      
  1336.      Set session = New NotesSession
  1337.      Set db = session.CurrentDatabase
  1338.      Set acl = db.ACL
  1339.      Set profile = db.GetProfileDocument("DelegationProfile")
  1340.      Set ws = New NotesUIWorkspace
  1341.      
  1342.      GetAclEntries
  1343.      
  1344.      profile.save True, True, True
  1345.      
  1346.      ws.EditProfile("DelegationProfile")
  1347.      
  1348. End Sub
  1349. '++LotusScript Development Environment:2:2:GetAclEntries:1:8
  1350. Sub GetAclEntries
  1351.      
  1352.      profile.ReadCalendar = ""
  1353.      profile.WriteCalendar = ""
  1354.      profile.ReadMail = ""
  1355.      profile.WriteMail = ""
  1356.      profile.EditMail = ""
  1357.      profile.DeleteMail = ""
  1358.      
  1359.      Redim ReadCal(0)
  1360.      Redim WriteCal(0)
  1361.      Redim ReadMail(0)
  1362.      Redim WriteMail(0)
  1363.      Redim EditMail(0)
  1364.      Redim DeleteMail(0)
  1365.      Redim OtherUsers(0)
  1366.      
  1367.      Set aclentry = acl.GetFirstEntry
  1368.      Do Until aclentry Is Nothing
  1369.           Select Case aclentry.Level
  1370.           Case ACLLEVEL_NOACCESS
  1371.                If aclentry.Name = "-Default-" Then
  1372.                     If aclentry.IsPublicReader Then
  1373.                          profile.PublicRead = "1"
  1374.                     Else
  1375.                          profile.PublicRead = ""
  1376.                     End If
  1377.                     If aclentry.IsPublicWriter Then
  1378.                          profile.PublicWrite = "1"
  1379.                     Else
  1380.                          profile.PublicWrite = ""
  1381.                     End If
  1382.                Else
  1383.                     If aclentry.IsPublicReader Or aclentry.IsPublicWriter Then
  1384.                          If aclentry.IsPublicReader Then
  1385.                               x = Ubound(ReadCal)
  1386.                               ReadCal(x) = aclentry.Name
  1387.                               Redim Preserve ReadCal(x + 1)
  1388.                          End If
  1389.                          Gosub CheckPublicWriter
  1390.                     Else
  1391. 'These are other NoAccess people and we don't want to change them
  1392.                          x = Ubound(OtherUsers)
  1393.                          OtherUsers(x) = aclentry.Name
  1394.                          Redim Preserve OtherUsers(x + 1)
  1395.                     End If
  1396.                End If
  1397.           Case ACLLEVEL_READER
  1398.                x = Ubound(ReadMail)
  1399.                ReadMail(x) = aclentry.Name
  1400.                Redim Preserve ReadMail(x + 1)
  1401.                Gosub CheckPublicWriter
  1402.           Case ACLLEVEL_AUTHOR
  1403.                If aclentry.CanCreateDocuments Then
  1404.                     x = Ubound(WriteMail)
  1405.                     WriteMail(x) = aclentry.Name
  1406.                     Redim Preserve WriteMail(x + 1)
  1407.                End If
  1408.                If aclentry.CanDeleteDocuments Then
  1409.                     x = Ubound(DeleteMail)
  1410.                     DeleteMail(x) = aclentry.Name
  1411.                     Redim Preserve DeleteMail(x + 1)
  1412.                End If
  1413.                Gosub CheckPublicWriter
  1414.           Case ACLLEVEL_EDITOR
  1415.                x = Ubound(EditMail)
  1416.                EditMail(x) = aclentry.Name
  1417.                Redim Preserve EditMail(x + 1)
  1418.                If aclentry.CanDeleteDocuments Then
  1419.                     x = Ubound(DeleteMail)
  1420.                     DeleteMail(x) = aclentry.Name
  1421.                     Redim Preserve DeleteMail(x + 1)
  1422.                End If
  1423.                Gosub CheckPublicWriter
  1424.           Case Else
  1425. 'These are Manager and Designers and we don't want to change them
  1426.                x = Ubound(OtherUsers)
  1427.                OtherUsers(x) = aclentry.Name
  1428.                Redim Preserve OtherUsers(x + 1)
  1429.           End Select
  1430.           Set aclentry = acl.GetNextEntry(aclentry)
  1431.      Loop
  1432.      
  1433.      profile.ReadCalendar = ReadCal
  1434.      profile.WriteCalendar = WriteCal
  1435.      profile.ReadMail = ReadMail
  1436.      profile.WriteMail = WriteMail
  1437.      profile.EditMail = EditMail
  1438.      profile.DeleteMail = DeleteMail
  1439.      
  1440.      Exit Sub
  1441.      
  1442. CheckPublicWriter:
  1443.      If aclentry.IsPublicWriter Then
  1444.           x = Ubound(WriteCal)
  1445.           WriteCal(x) = aclentry.Name
  1446.           Redim Preserve WriteCal(x + 1)
  1447.      End If
  1448.      Return
  1449.      
  1450. End Sub
  1451. O=Lotus Notes
  1452. O=Lotus Notes
  1453. PURSAFO
  1454. |.:#U
  1455. O=Lotus Notes
  1456. CN=Lotus Notes Template Development/O=Lotus Notes
  1457. PURSAFO
  1458. $TITLE
  1459. $AssistType
  1460. $AssistLastRun
  1461. $AssistDocCount
  1462. $AssistFlags
  1463. $AssistTrigger
  1464. $AssistInfo
  1465. $AssistQuery
  1466. $AssistAction
  1467. $AssistAction_Ex
  1468. GOLAu
  1469. Started running agent 'Mail Tools\Choose Letterhead... | Select Letterhead' on 03/11/97 09:55:15 AM
  1470. 1 document(s) were modified by formula
  1471. Done running agent 'Mail Tools\Choose Letterhead... | Select Letterhead' on 03/11/97 09:55:16 AM
  1472. (LetterHeadChooser)
  1473. O=Lotus Notes
  1474. O=Lotus Notes
  1475. PURSAFO
  1476. |.:#U
  1477. O=Lotus Notes
  1478. CN=Lotus Notes Template Development/O=Lotus Notes
  1479. PURSAFO
  1480. $TITLE
  1481. $Formula
  1482. OutOfOfficeProfile
  1483. O=Lotus Notes
  1484. O=Lotus Notes
  1485. PURSAFO
  1486. |.:#U
  1487. O=Lotus Notes
  1488. CN=Lotus Notes Template Development/O=Lotus Notes
  1489. PURSAFO
  1490. $TITLE
  1491. $Formula
  1492. DontShowTrash
  1493.     6S7S9S11S
  1494. O=Lotus Notes
  1495. O=Lotus Notes
  1496. PURSAFO
  1497. |.:#U
  1498. O=Lotus Notes
  1499. CN=Lotus Notes Template Development/O=Lotus Notes
  1500. PURSAFO
  1501. ,-4;Z1
  1502. $TITLE
  1503. $Formula
  1504. '++LotusScript Development Environment:2:5:(Options):0:74
  1505. Option Public
  1506. '++LotusScript Development Environment:2:5:(Forward):0:1
  1507. Declare Sub Initialize
  1508. Declare Function IsInternetAddress(address As String) As Integer
  1509. Declare Function Deflate(s As String) As String
  1510. Declare Function FixFullName(full As String) As String
  1511. Declare Function GetInternetFullName(fromString As String) As String
  1512. Declare Function GetFirst(full As String) As String
  1513. Declare Function GetLast(full As String) As String
  1514. Declare Function Abbreviate(fromString As String, full As String) As String
  1515. Declare Function GetAttribute(theString As String, theAttribute As String) As String
  1516. '++LotusScript Development Environment:2:5:(Declarations):0:10
  1517. '-----------------------------------------------------------------------------
  1518. ' MsgBox parameters
  1519. '-----------------------------------------------------------------------------
  1520. Public Const MB_OK = 0                         ' OK button only
  1521. Public Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  1522. Public Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  1523. Public Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  1524. Public Const MB_YESNO = 4              ' Yes and No buttons
  1525. Public Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  1526. Public Const MB_ICONSTOP = 16          ' Critical message
  1527. Public Const MB_ICONQUESTION = 32      ' Warning query
  1528. Public Const MB_ICONEXCLAMATION = 48   ' Warning message
  1529. Public Const MB_ICONINFORMATION = 64   ' Information message
  1530. Public Const MB_APPLMODAL = 0         ' Application Modal Message Box
  1531. Public Const MB_DEFBUTTON1 = 0       ' First button is default
  1532. Public Const MB_DEFBUTTON2 = 256       ' Second button is default
  1533. Public Const MB_DEFBUTTON3 = 512       ' Third button is default
  1534. Public Const MB_SYSTEMMODAL = 4096     ' System Modal
  1535. '-----------------------------------------------------------------------------
  1536. ' MsgBox return values
  1537. '-----------------------------------------------------------------------------
  1538. Public Const IDOK = 1                  ' OK button pressed
  1539. Public Const IDCANCEL = 2              ' Cancel button pressed
  1540. Public Const IDABORT = 3               ' Abort button pressed
  1541. Public Const IDRETRY = 4               ' Retry button pressed
  1542. Public Const IDIGNORE = 5              ' Ignore button pressed
  1543. Public Const IDYES = 6                 ' Yes button pressed
  1544. Public Const IDNO = 7                  ' No button pressed
  1545. Const NOTES = "1" 
  1546. Const CCMAIL = "2"
  1547. Const INTERNET = "5"
  1548. Const X400 = "4"
  1549. '++LotusScript Development Environment:2:2:Initialize:1:10
  1550. Sub Initialize
  1551.      
  1552.      Dim session As New NotesSession 
  1553.      Dim db As NotesDatabase    
  1554.      Dim docCount, actualCount As Integer
  1555.      Dim noteList As NotesDocumentCollection
  1556.      
  1557.      AddressBook = session.GetEnvironmentString("NAMES", True)
  1558.      If AddressBook = "" Then AddressBook = "names.nsf"
  1559.      
  1560.      CommaLocation = Instr(AddressBook, ",")
  1561.      If CommaLocation > 0 Then AddressBook = Left(AddressBook, CommaLocation-1)
  1562.      Dim addressDb As New NotesDatabase( "", AddressBook )
  1563.      If Not addressDB.IsOpen Then
  1564.           Messagebox "Unable to locate your Name & Address Book.  Name not added.", MB_ICONSTOP, "Add Sender to Address Book"
  1565.           Exit Sub
  1566.      End If
  1567.      
  1568.      actualCount = 0
  1569.      
  1570.      Set db = session.CurrentDatabase
  1571.      Set noteList = db.UnprocessedDocuments
  1572.      
  1573.      docCount = noteList.Count
  1574.      If docCount > 1 Then
  1575.           Dim alreadyAdded List As String
  1576.      End If
  1577.      
  1578.      Dim i As Integer
  1579.      i = 0
  1580.      
  1581.      Dim note As NotesDocument
  1582.      
  1583.      Set note = noteList.GetFirstDocument
  1584.      
  1585.      Do While Not (note Is Nothing)
  1586.           
  1587.           i = i + 1
  1588.           Print "Processing document " + Str(i) + " of " + Str(docCount)
  1589.           
  1590.           Dim fromItem, domainItem As Variant
  1591.           
  1592.           fromItem = note.From
  1593.           domainItem = note.FromDomain
  1594.           
  1595.           Dim first, last, full As String
  1596.           Dim mailAddress As String
  1597.           
  1598.           Dim addressType As String
  1599.           Dim pos As Integer
  1600.           
  1601.           last = ""
  1602.           mailAddress = fromItem(0)
  1603.           addressType = ""
  1604.           
  1605.      ' Is it a cc:Mail address?
  1606.           pos = Instr(fromItem(0), " at ")
  1607.           If pos <> 0 Then
  1608.                addressType = CCMAIL
  1609.                full = Left(fromItem(0), pos - 1)
  1610.                Goto gotFullName
  1611.           End If
  1612.           
  1613.           ' Guess whether this is an internet address or and X.400/Notes address
  1614.           
  1615.           If IsInternetAddress(fromItem(0)) Then
  1616.                ' It's an Internet address
  1617.                full = GetInternetFullName(fromItem(0))
  1618.                addressType = INTERNET
  1619.           Else
  1620.                ' See if there are any slashes at all in the address
  1621.                pos = Instr(fromItem(0), "/")
  1622.                
  1623.                If pos = 0 Then
  1624.                     full = fromItem(0)
  1625.                     addressType = NOTES
  1626.                Else
  1627.                     
  1628.                    ' Check to see if this is a canonical name
  1629.                     full = GetAttribute(fromItem(0), "CN")   
  1630.                     
  1631.                    ' If there are no /P and /A attributes, guess that this is a Notes address
  1632.                     If pos = 0 Or (full <> "" And GetAttribute(fromItem(0), "/P") = "" And GetAttribute(fromItem(0), "/A") = "") Then
  1633.                    ' It's a Notes address
  1634.                          addressType = NOTES
  1635.                     Else
  1636.                          addressType = X400
  1637.                          first = GetAttribute(fromItem(0), "/G")
  1638.                          last = GetAttribute(fromItem(0), "/S")
  1639.                          
  1640.                ' try to get the common name, if it isn't there, make it from first and last name
  1641.                          full = GetAttribute(fromItem(0), "/CN")
  1642.                          If full = "" Then
  1643.                               If first <> "" Then
  1644.                                    full = first + " " + last
  1645.                               Else
  1646.                                    full = last
  1647.                               End If
  1648.                          End If
  1649.                     End If
  1650.                End If
  1651.           End If
  1652.           
  1653.           
  1654. gotFullName:
  1655.           
  1656.           ' if last is not empty then the name has already been parsed
  1657.           If last = "" Then
  1658.                full = Deflate(full)
  1659.                full = FixFullName(full)
  1660.                
  1661.                first = GetFirst(full)
  1662.                last = GetLast(full)
  1663.           End If ' last <> ""
  1664.           
  1665.           If addressType = NOTES Then
  1666.                full = fromItem(0)
  1667.                mailAddress = full
  1668.           End If
  1669.           
  1670.           ' If this person has already been added or it's you, skip it
  1671.           If Iselement(alreadyAdded(full)) Goto nextDocument
  1672.           
  1673.           Dim fullname As New notesname(full)               
  1674.           
  1675.           If Not addressDB.IsOpen Then Call addressDB.Open( "", AddressBook )
  1676.           If addressDB.IsOpen Then
  1677.                
  1678.                Dim view As NotesView
  1679.                
  1680.                Set view = addressDb.GetView("($People)")
  1681.                If view Is Nothing Then
  1682.                ' tell them you cannot check
  1683.                Else
  1684.                     Dim tempDoc As NotesDocument
  1685.                     Dim searchKeys As String
  1686.                     searchKeys = Left(last, 1)
  1687.                     Set tempDoc = view.GetDocumentByKey(searchKeys)
  1688.                     NameFound = False
  1689.                     Do Until tempdoc Is Nothing
  1690.                          If tempDoc.FullName(0) = fullname.Canonical Then
  1691.                               NameFound = True
  1692.                               Exit Do
  1693.                          Else
  1694.                               Set tempDoc = view.GetNextDocument(tempDoc)
  1695.                               If tempDoc Is Nothing Then Exit Do
  1696.                               If Left(tempDoc.LastName(0), 1) <> searchKeys Then Exit Do
  1697.                          End If
  1698.                     Loop                              
  1699.                     
  1700.                     If NameFound Then
  1701.                          ' Don't prompt if we are doing 10 people or more, chances are that this will be an unattended operation. Default to no.                              
  1702.                          If docCount > 10 Goto nextDocument
  1703.                          If Messagebox (first & " " & last + " is already in your personal address book. Are you sure you want to add this address?", MB_YESNO+MB_ICONQUESTION, _
  1704.                          "Name already exists") = IDNO Then
  1705.                               alreadyAdded(full) = "1'"
  1706.                               Goto nextDocument
  1707.                          End If
  1708.                          
  1709.                     End  If ' NameFound
  1710.                     
  1711.                End If ' not view is nothing
  1712.                Dim newnote As New NotesDocument(addressDB)
  1713.                newnote.Form = "Person"
  1714.                newnote.Type = "Person"
  1715.                newnote.FirstName = first
  1716.                newnote.LastName = last
  1717.                
  1718.                newnote.FullName = fullname.Canonical
  1719.                newnote.MailAddress = mailAddress
  1720.                
  1721.                If domainItem(0) <> "" Then
  1722.                     newnote.MailAddress = newnote.MailAddress(0)  + " @ " + domainItem(0)
  1723.                End If
  1724.                newnote.MailSystem = addressType
  1725.                
  1726.                'newnote.MailDomain = domainItem(0)
  1727.                'Select Case addressType
  1728.                'Case CCMAIL
  1729.                     'newNote.ccMailAddress = mailAddress
  1730.                     'newNote.ccMailDomain = domainItem(0)
  1731.                'Case INTERNET
  1732.                     'newNote.InternetAddress = mailAddress
  1733.                     'newNote.InternetDomain = domainItem(0)
  1734.                'Case X400
  1735.                     'newNote.X400Address = mailAddress
  1736.                     'newNote.X400Domain = domainItem(0)
  1737.                'End Select
  1738.                
  1739.                If newnote.save(True, True) Then
  1740.                ' If we are only doing one document, tell them who we added
  1741.                     If docCount = 1 Then Messagebox first & " " & last + " has been added to your personal address book.", MB_OK, "Name added"
  1742.                     actualCount = actualCount + 1
  1743.                     alreadyAdded(full) = "1"
  1744.                Else
  1745.                     Messagebox "Cannot save "+first & " " & last+" in personal address book " & AddressBook & ".", MB_ICONSTOP, "Name not added"
  1746.                     Exit Do
  1747.                End If
  1748.           Else ' addressDb.IsOpen
  1749.                Messagebox "Cannot open personal address book " & AddressBook & ".", MB_ICONSTOP, "Name not added"
  1750.                Exit Sub
  1751.           End If
  1752. nextDocument:
  1753.           Set note = noteList.GetNextDocument(note)
  1754.      Loop
  1755.      If docCount > 1 Then
  1756.           Dim tempString As String
  1757.           If actualCount = 1 Then tempString = " person was" Else tempString = " people were"
  1758.           Messagebox Str(actualCount) + tempString + " added to your personal address book.", MB_OK, "Names added"
  1759.      End If
  1760. End Sub
  1761. '++LotusScript Development Environment:2:1:IsInternetAddress:1:8
  1762. Function IsInternetAddress(address As String) As Integer
  1763.      ' Return 0 through n, depending on how sure we are this is an Internet address
  1764.      IsInternetAddress = 0
  1765.      If address Like "*@*[! ].[! ]*" Then IsInternetAddress = IsInternetAddress + 1
  1766. End Function
  1767. '++LotusScript Development Environment:2:1:Deflate:1:8
  1768. Function Deflate(s As String) As String
  1769.      ' Remove all excess spaces from the string s
  1770.      Dim newString As String
  1771.      newString = ""
  1772.      s = Trim(s)
  1773.      Do While s <> ""
  1774.           If Left(s, 1) <> " " Then
  1775.                newString = newString + Left(s, 1)
  1776.                s = Mid(s, 2)
  1777.           Else
  1778.                newString = newString + " "
  1779.                ' Eat all the spaces
  1780.                Do While Left(s, 1) = " "
  1781.                     s = Mid(s, 2)
  1782.                Loop
  1783.           End If
  1784.      Loop
  1785.      Deflate = newString    
  1786. End Function
  1787. '++LotusScript Development Environment:2:1:FixFullName:1:8
  1788. Function FixFullName(full As String) As String
  1789.      ' Put a name string in the format: FIRST [MIDDLE] LAST [, SUFFIX]
  1790.      ' Assume that the string has no excess spaces
  1791.      
  1792.      Dim after As String
  1793.      Dim pos As Integer
  1794.      
  1795.      pos = Instr(full, ",")
  1796.      If pos <> 0 Then
  1797.           after = Trim(Mid(full, pos + 1))
  1798.           ' Is the string after the comma not a last namesuffix?
  1799.           If Not (Lcase(after) Like "jr*,sr*, II*") Then
  1800.                full = Trim(Left(full, pos - 1))
  1801.                full = after + " " + full
  1802.           End If
  1803.      Else
  1804.           pos = Instr(full, ".")
  1805.           If pos <> 0 Then
  1806.                after = Trim(Mid(full,pos+1))
  1807.                full = Left$(full, pos-1) + " " + after
  1808.           Else
  1809.                pos = Instr(full, "_")
  1810.                If pos <> 0 Then
  1811.                     after = Trim(Mid(full,pos+1))
  1812.                     full = Left$(full,pos-1) + " " + after
  1813.                End If
  1814.           End If
  1815.      End If
  1816.      
  1817.      FixFullName = full
  1818.      
  1819. End Function
  1820. '++LotusScript Development Environment:2:1:GetInternetFullName:1:8
  1821. Function GetInternetFullName(fromString As String) As String
  1822.      Dim pos As Integer
  1823.      Dim full As String
  1824.      
  1825.      Const QUOTE = """"
  1826.      
  1827.      ' Look for parenthesis e.g. poleary@iris.com ("Peter O'Leary")
  1828.      pos = Instr(fromString, "(")
  1829.      If pos = 0 Then
  1830.           ' no parens, just get the username
  1831.           pos = Instr(fromString, "@")
  1832.           full = Trim(Left(fromString, pos - 1))
  1833.           pos = Instr(full, "<")
  1834.           If pos>0 Then
  1835.                If Trim(Left(full, pos-1)) <> "" Then 
  1836.                     full = Trim(Left(full, pos-1))
  1837.                Else
  1838.                     full = Right(full,Len(full)-1)
  1839.                End If
  1840.                
  1841.                If Left(full,1) = QUOTE And Right(full,1) = QUOTE Then
  1842.                     full = Right(full,Len(full)-1)
  1843.                     full = Left(full,Len(full)-1)
  1844.                End If
  1845.           End If
  1846.      Else
  1847.           full = Mid(fromString, pos + 1)
  1848.           
  1849.           ' If the string is quoted, get everything in the quotes
  1850.           If Left(full, 1) = """" Then
  1851.                full = Mid(full, 2)
  1852.                pos = Instr(full, """")
  1853.           Else
  1854.                pos = Instr(full, ")")
  1855.           End If
  1856.           
  1857.           full = Left(full, pos - 1)
  1858.      End If
  1859.      GetInternetFullName = full
  1860. End Function
  1861. '++LotusScript Development Environment:2:1:GetFirst:1:8
  1862. Function GetFirst(full As String) As String
  1863.      Dim spacePos As Integer
  1864.      spacePos = Instr(full, " ")
  1865.      If spacePos <> 0 Then
  1866.           GetFirst = Trim(Left(full, spacePos))
  1867.      Else
  1868.           GetFirst = ""
  1869.      End If
  1870. End Function
  1871. '++LotusScript Development Environment:2:1:GetLast:1:8
  1872. Function GetLast(full As String) As String
  1873.      
  1874.      ' Get the lastname from a string
  1875.      ' Assume that the string is already formated as: FIRST [MIDDLE] LAST [, SUFFIX]
  1876.      
  1877.      Dim spacePos As Integer
  1878.      
  1879.      ' If there is a comma, chop off everything after it
  1880.      spacePos = Instr(full, ",")
  1881.      If spacePos <> 0 Then
  1882.           full = Left(full, spacePos - 1)
  1883.      End If
  1884.      
  1885.      spacePos = Instr(full, " ")
  1886.      
  1887.      ' If there are no spaces, get the whole string
  1888.      If spacePos = 0 Then
  1889.           spacePos = 1
  1890.      Else
  1891.           ' Make sure we have the last space in the string, assume that there is only one space between words
  1892.           Dim nextSpace As Integer
  1893.           nextSpace = Instr(spacePos + 1, full," " )
  1894.           Do While nextSpace <> 0
  1895.                spacePos = nextSpace
  1896.                nextSpace = Instr(spacePos + 1, full," " )
  1897.           Loop
  1898.      End If
  1899.      
  1900.      Last = Trim(Mid(full, spacePos))     
  1901.      
  1902. 'if there are any / in the name, get what comes before it     
  1903.      spacePos = Instr(Last, "/")
  1904.      If spacePos > 0 Then
  1905.           Last = Trim(Left(Last, spacePos - 1))
  1906.      End If
  1907.      
  1908.      GetLast = Last
  1909.      
  1910. End Function
  1911. '++LotusScript Development Environment:2:1:Abbreviate:1:8
  1912. Function Abbreviate(fromString As String, full As String) As String
  1913.      Dim ou, o As String        
  1914.      ou = GetAttribute(fromString, "/OU")
  1915.      o = GetAttribute(fromString, "/O")
  1916.      
  1917.      If ou <> "" Then
  1918.           full = full + "/" + ou
  1919.      End If
  1920.      If o <> "" Then
  1921.           full = full + "/" + o
  1922.      End If
  1923.      
  1924.      Abbreviate = full
  1925. End Function
  1926. '++LotusScript Development Environment:2:1:GetAttribute:1:8
  1927. Function GetAttribute(theString As String, theAttribute As String) As String
  1928.      Dim startpos, endpos As Integer
  1929.      startpos = Instr(theString, theAttribute+"=")
  1930.      If (startpos<>0) Then
  1931.           startpos = startpos + Len(theAttribute+"=")
  1932.           endpos = Instr(startpos, theString, "/")
  1933.           If endpos = 0 Then
  1934.                endpos = Len(theString) + 1
  1935.           End If
  1936.           GetAttribute = Trim(Mid(theString, startpos, endpos - startpos))
  1937.      Else
  1938.           GetAttribute = ""
  1939.      End If
  1940. End Function
  1941. @    `    d
  1942. }|    #}
  1943. O=Lotus Notes
  1944. O=Lotus Notes
  1945. PURSAFO
  1946. |.:#U
  1947. O=Lotus Notes
  1948. CN=Lotus Notes Template Development/O=Lotus Notes
  1949. PURSAFO
  1950. Lxegs
  1951. $TITLE
  1952. $AssistType
  1953. $AssistLastRun
  1954. $AssistDocCount
  1955. $AssistFlags
  1956. $AssistTrigger
  1957. $AssistInfo
  1958. $AssistQuery
  1959. $AssistAction
  1960. $AssistAction_Ex
  1961. Times New Roman
  1962. Using MIME Conversion Forms
  1963.  @  @@ @` @
  1964. @@ @@@@@`@@
  1965. `@ `@@`@``@
  1966.     All uses of this database are limited to automated CD->MIME conversion during Beta 2 and adding customized forms, though possible, must be pre-tested by the customer in controlled manner.
  1967. O=Lotus Notes
  1968. O=Lotus Notes
  1969. PURSAFO
  1970. |.:#U
  1971. O=Lotus Notes
  1972. CN=Lotus Notes Template Development/O=Lotus Notes
  1973. PURSAFO
  1974. ND"9    
  1975. n]k/b
  1976. $INFO
  1977. $BODY
  1978. _Forward
  1979. Categori_zeK
  1980. Edit Document
  1981. _Move to Folder...
  1982. _Remove from Folder...
  1983. Setup Archive...L
  1984. ArchiveProfile
  1985. Server
  1986.     1S2S6S
  1987.     0R1S2S6S
  1988. Server
  1989.     0R7S8S11S13S14S15S16S
  1990. Archive NowK
  1991. Archive Profile
  1992.     1S2S
  1993. AllDocs
  1994. NoCache
  1995. ($Profiles)
  1996. ArchivePath
  1997.     0R1S2S8S10S12S14S
  1998. AllDocs
  1999. Error
  2000. You must specify a location for the archive database
  2001.     0R3S4S5S6S14S15S
  2002. AllDocs2
  2003. NoCache
  2004. ($Profiles)
  2005. ArchivePath
  2006. Archive Now
  2007. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  2008.     0RR1S2S12S14S16S18S28S30S34S
  2009. Archiving
  2010. Are you sure you want to move documents to the archive database now?
  2011.     0R6S8S11S13S
  2012. AlreadyArchived
  2013. MailArchived|
  2014. Archiving
  2015. Since this is the first time you have requested an archive, it may take several minutes.  Do you want to proceed?
  2016. Archiving
  2017. No documents were archived
  2018.     0RR1S2S8S9S11S13S19S21S24S26S32S34S
  2019. MailArchived
  2020.     0RR1S2S3S
  2021. Periodic Archive
  2022.     0R4S
  2023. Server
  2024.     1S2S6S
  2025.     0R1S2S6S
  2026. Server
  2027.     0R7S8S11S13S14S15S16S
  2028. Enable Scheduled Archivingf
  2029. AllDocs
  2030. Archiving
  2031. Archive Profile
  2032. Archive Now
  2033. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  2034.     1S2S10S12S14S16S20S26S28S32S
  2035. Periodic Archive
  2036.     0RR4S
  2037. Server
  2038.     1S2S6S
  2039.     0R1S2S6S
  2040. Periodic Archive
  2041. Server
  2042.     0R4S5R12S13S16S18S19S20S21S
  2043. Disable Scheduled ArchivingKf
  2044. AllDocs
  2045. Archiving
  2046. Archive Profile
  2047. Archive Now
  2048. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  2049.     1S2S10S12S14S16S20S26S28S32S
  2050. Periodic Archive
  2051.     0RR4S
  2052. Server
  2053.     1S2S6S
  2054.     0R1S2S6S
  2055. Periodic Archive
  2056. Server
  2057.     0R7S8R15S16S19S21S22S23S24S
  2058. Open Archive Db...'++LotusScript Development Environment:2:5:(Options):0:66
  2059. '++LotusScript Development Environment:2:5:(Forward):0:1
  2060. Declare Sub Click(Source As Button)
  2061. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2062. Dim s As NotesSession
  2063. Dim w As NotesUIWorkspace
  2064. Dim sourcedb As NotesDatabase
  2065. Dim view As NotesView
  2066. Dim profile As NotesDocument
  2067. Dim server As String
  2068. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2069. Private Sub BindEvents(Byval Objectname_ As String)
  2070.      Static Source As BUTTON
  2071.      Set Source = Bind(Objectname_)
  2072.      On Event Click From Source Call Click
  2073. End Sub
  2074. '++LotusScript Development Environment:2:2:Click:1:12
  2075. Sub Click(Source As Button)
  2076.      
  2077.      On Error Goto ErrorRoutine
  2078. '91 is Object Variable Not Set     
  2079.      On Error 91 Resume Next 
  2080. '4412 is the notes database does not exist     
  2081.      On Error 4412 Goto DatabaseNotExistError
  2082.      
  2083.      Set s = New NotesSession
  2084.      Set sourcedb = s.CurrentDatabase
  2085.      Set view = sourcedb.GetView("($Profiles)")
  2086.      key = "Archive Profile"
  2087.      Set profile = view.GetDocumentByKey(key)
  2088.      
  2089.      If profile Is Nothing Then
  2090.           Messagebox "There is no Archive Db for this database.", 0 + 64, "Archive"
  2091.           Exit Sub
  2092.      End If
  2093.      
  2094.      ArchivePath = profile.ArchivePath
  2095.      ArchiveServer = profile.ArchiveServer
  2096.      If (ArchivePath(0) = "") Then
  2097.           Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  2098.           Exit Sub              
  2099.      End If
  2100.      
  2101.      Set w = New NotesUIWorkspace
  2102.      
  2103.      Call w.OpenDatabase(ArchiveServer(0), ArchivePath(0), "", "", "1")
  2104.      
  2105.      Exit Sub
  2106.      
  2107. ErrorRoutine:
  2108.      Messagebox "Unexpected condition: " & Err & " - " & Error
  2109.      Exit Sub
  2110. DatabaseNotExistError:
  2111.      Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  2112.      Exit Sub     
  2113. End Sub
  2114. O=Lotus Notes
  2115. O=Lotus Notes
  2116. PURSAFO
  2117. |.:#U
  2118. O=Lotus Notes
  2119. CN=Lotus Notes Template Development/O=Lotus Notes
  2120. PURSAFO
  2121. ulSNh
  2122. $SCRIPTOBJ_11
  2123. $TITLE
  2124. $Index
  2125. $Formula
  2126. $FormulaClass
  2127. $VIEWFORMAT
  2128. $Comment
  2129. $ACTIONS
  2130. $SCRIPTOBJ_10
  2131. $ViewGlobalScript_O
  2132. &Arial
  2133.  StdNotesLtr1
  2134. tmpDisplayFrom_Preview
  2135. tmpFrom
  2136. tmpDisplayDate_Preview
  2137. tmpDate
  2138. O=Lotus Notes
  2139. O=Lotus Notes
  2140. PURSAFO
  2141. |.:#U
  2142. O=Lotus Notes
  2143. CN=Lotus Notes Template Development/O=Lotus Notes
  2144. PURSAFO
  2145. $TITLE
  2146. $INFO
  2147. $$ScriptName
  2148. $BODY
  2149. $FolderInfo
  2150.  StdNotesLtr0
  2151. $HideMailHeader
  2152.     0S0E
  2153.     From:    
  2154. tmpDisplayFrom_Preview
  2155. tmpFrom
  2156.      on 
  2157. tmpDisplayDate_Preview
  2158. tmpDateTime/date memo was created or mailed.
  2159. O=Lotus Notes
  2160. O=Lotus Notes
  2161. PURSAFO
  2162. |.:#U
  2163. O=Lotus Notes
  2164. CN=Lotus Notes Template Development/O=Lotus Notes
  2165. PURSAFO
  2166. Fde!f^^
  2167. I)/H1
  2168. $TITLE
  2169. $INFO
  2170. $$Script_O
  2171. $$ScriptName
  2172. $BODY
  2173. $FolderRefInfo
  2174. Times New Roman
  2175. VersionOpt|
  2176.     6S7S9S14S
  2177. $VersionOpt
  2178.     0R1S2S3S
  2179. SavedOnce
  2180.     0R1S2S3S
  2181. PostedDate(
  2182.     0R1S2S3S
  2183. DeliveredDate
  2184.     0R1S2S3S
  2185. $AutoEditMode
  2186.     0R1S2S3S
  2187. MailSaveOptions
  2188.     0R1S2S3S
  2189. VersionOpt
  2190.     0R4S
  2191. Personal Stationery
  2192. Subject
  2193. Subject
  2194. Subject
  2195.     4S6S12S13S14S15S17S21S23S25S26S28S
  2196. '++LotusScript Development Environment:2:5:(Options):0:74
  2197. Option Public
  2198. Use "EmailProcessing"
  2199. Use "DocumentConversions"
  2200. '++LotusScript Development Environment:2:5:(Forward):0:1
  2201. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2202.  Personal Stationery'++LotusScript Development Environment:2:5:(Options):0:66
  2203. '++LotusScript Development Environment:2:5:(Forward):0:1
  2204. Declare Sub Postopen(Source As Notesuidocument)
  2205. Declare Sub Postmodechange(Source As Notesuidocument)
  2206. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  2207. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  2208. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2209. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2210. Private Sub BindEvents(Byval Objectname_ As String)
  2211.      Static Source As NOTESUIDOCUMENT
  2212.      Set Source = Bind(Objectname_)
  2213.      On Event Postopen From Source Call Postopen
  2214.      On Event Postmodechange From Source Call Postmodechange
  2215.      On Event Querysave From Source Call Querysave
  2216.      On Event Queryclose From Source Call Queryclose
  2217. End Sub
  2218. '++LotusScript Development Environment:2:2:Postopen:1:12
  2219. Sub Postopen(Source As Notesuidocument)
  2220.      
  2221.      Set ws = New NotesUIWorkSpace
  2222.      Set uidoc = source
  2223.      
  2224.      Call EmailOpen
  2225.      
  2226. End Sub
  2227. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  2228. Sub Postmodechange(Source As Notesuidocument)
  2229.      
  2230.      Call EmailModeChange
  2231.      
  2232. End Sub
  2233. '++LotusScript Development Environment:2:2:Querysave:1:12
  2234. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  2235.      
  2236.      Call EmailSave(Continue)
  2237.      
  2238. End Sub
  2239. '++LotusScript Development Environment:2:2:Queryclose:1:12
  2240. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  2241.      
  2242.      Call EmailClose(Continue)
  2243.      
  2244. End Sub
  2245.     Always Hidden: 
  2246. Principal
  2247. CalendarProfile
  2248. Owner
  2249.     1S2S3S7S
  2250. FromPerson memo is from.
  2251.     0S0E
  2252.     0S0E
  2253. Encrypt
  2254.     0S0E
  2255. DefaultMailSaveOptions
  2256. $KeepPrivate
  2257. $KeepPrivate
  2258. $KeepPrivate
  2259.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  2260. Header
  2261.     From:    
  2262. Principal
  2263. Principal
  2264. FromDomain
  2265. FromDomain
  2266. FromDomain
  2267. FromDomain
  2268.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  2269. FromName
  2270. Principal
  2271. Principal
  2272.     0RR1S2S9S11S15S
  2273. FromStops
  2274.     0R1S2S6S
  2275. FromName
  2276. FromStops
  2277. FromStops
  2278. FromStops
  2279.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  2280.      on 
  2281. PostedDateh
  2282. PostedDate
  2283.     7S9S
  2284. tmpDisplayDateTime/date memo was created or mailed.
  2285. ReplyDate
  2286. ReplyTo
  2287.     1S2S3S4S5S6S
  2288. Please respond
  2289. ReplyTo
  2290. ReplyTo
  2291. ReplyDate
  2292. ReplyDate
  2293.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  2294. $HideMailHeader
  2295. Principal
  2296. Principal
  2297. Principal
  2298. Principal
  2299. Principal
  2300.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  2301.     Sent by:    
  2302. FromDomain
  2303. FromDomain
  2304. FromDomain
  2305. FromDomain
  2306.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  2307. FromName
  2308.     0RR1S2S6S
  2309. FromStops
  2310.     0R1S2S6S
  2311. FromName
  2312. FromStops
  2313. FromStops
  2314. FromStops
  2315.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  2316. SendTo
  2317. CopyTo
  2318.   cc:  
  2319. CopyTo
  2320.     1S2S8S13S14S2E17S18S21S22S28S31S
  2321.     To:    
  2322. SendTo}
  2323.     0S0E
  2324. SendTo^
  2325. No names found to send mail.{
  2326.     1S6S7S8S9S11S16S
  2327. SendToList of primary people to send memo.
  2328.     cc:    
  2329. CopyTo}
  2330.     0S0E
  2331. CopyToList of people to send a copy of the memo.
  2332. DeliveredDate
  2333. BlindCopyTo
  2334. (bcc: 
  2335. BlindCopyTo
  2336.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  2337.     bcc:    
  2338. BlindCopyTo
  2339.     0S0E
  2340. BlindCopyToList of undisclosed people to send copies of memo.
  2341.     Subject:    
  2342. PhoneCaller
  2343. Phone Call: 
  2344. PhoneCaller
  2345. Subject
  2346.     7S8S9S11SSubjectSubject of memo.
  2347. $HideMailHeader
  2348.     0S0E
  2349. $HideMailHeader
  2350. Moods
  2351. PostedDate
  2352. SenderTag
  2353. Moods
  2354.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  2355. Footer
  2356. Edit Document
  2357. ForwardK 
  2358.     0S0E
  2359. New Memo.
  2360.     0S0E
  2361. Delete 
  2362.     0S0E
  2363. _Move To Folder...
  2364. Delivery Information...Kz
  2365. DeliveryInfo
  2366. Delivery Information
  2367.     4S5S6S7S8S9S10S12S
  2368. _Forward
  2369. Reply
  2370. Reply
  2371.     0S0E
  2372. Reply With History
  2373. Reply with History
  2374. This document is truncated.
  2375.     4S8S10S13S
  2376. Reply with history
  2377. Address... 
  2378.     0S0E
  2379. PostedDateh
  2380.     5S6S7S8S
  2381. Close
  2382.     0S0E
  2383. IsMailStationeryh
  2384. PostedDateh
  2385.     6S7S
  2386. Save As Draft
  2387. tmpAction
  2388. SaveAsDraft
  2389.     1S2S3S
  2390. IsMailStationeryh
  2391. PostedDateh
  2392.     4S5S
  2393. Save and File
  2394.     7S9S
  2395. tmpAction
  2396. SaveAndFile
  2397.     0R1S2S3S
  2398. IsMailStationeryh
  2399. PostedDateY
  2400. PostedDateh
  2401.     4S5S9S10S16S17S18S19S
  2402. PromptValue
  2403. DefaultMailSaveOptions
  2404. Save when sent
  2405. Do you wish to save a copy of this Memo?
  2406. DefaultMailSaveOptions
  2407.     1S2S5S6S8S14S17S
  2408. SaveOptions
  2409. PromptValue
  2410. SaveOptions
  2411. PromptValue
  2412.     0RR1S2S5S6S9S14S
  2413. tmpAction
  2414. DefaultMailSaveOptions
  2415. Mailing
  2416.     0RR1S2S3S6S7S9S11S
  2417. MailOptions
  2418.     0R1S2S3S
  2419.     0R7S9S
  2420. tmpAction
  2421. SaveOptions
  2422. SendAndFile
  2423.     0RR1S2S3S6S7S9S11S
  2424.     0R7S9S
  2425. PostedDateh
  2426. IsMailStationeryh
  2427.     5S6S7S8S10S11S
  2428. Send And File...
  2429. tmpAction
  2430. DefaultMailSaveOptions
  2431. Mailing
  2432.     1S2S3S6S7S9S11S
  2433. MailOptions
  2434.     0R1S2S3S
  2435.     0RR7S9S
  2436. tmpAction
  2437. SendAndFile
  2438.     0RR1S2S3S
  2439.     0R7S9S
  2440.     0R7S9S
  2441. PostedDateh
  2442. IsMailStationeryh
  2443.     5S6S7S8S10S11S
  2444. Delivery Options...K
  2445. DeliveryOptions
  2446. Delivery Options
  2447.     4S8S
  2448. _ViewIcon
  2449. SenderTag
  2450. SenderTag
  2451. SenderTag
  2452. SenderTag
  2453. SenderTag
  2454. SenderTag
  2455. SenderTag
  2456. SenderTag
  2457. SenderTag
  2458. SenderTag
  2459. SenderTag
  2460.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  2461. PostedDateh
  2462.     5S6S7S8S
  2463. Special Options...6
  2464. ReplyDate
  2465. ReplyDate
  2466.     1S2S3S
  2467. ReplyTo
  2468. ReplyTo
  2469.     0R1S2S3S
  2470. (Advanced Options)
  2471. Special Options
  2472.     0R6S10S13S15S
  2473. tmpDisplayReplyInfo
  2474. Please respond
  2475. ReplyTo
  2476. ReplyTo
  2477. ReplyDate
  2478. ReplyDate
  2479.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  2480. DueDateTime
  2481. ReplyDate
  2482. ReplyDate
  2483.     0R1S2S3S6S7S9S11S
  2484. PostedDateh
  2485.     5S6S7S8S
  2486. Save As Stationery...
  2487. tmpAction
  2488. SaveAsStationery
  2489.     1S2S3S
  2490. IsMailStationeryh
  2491.     0S0E
  2492. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  2493. '++LotusScript Development Environment:2:5:(Forward):0:1
  2494. Declare Sub Click(Source As Button)
  2495. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2496. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2497. Private Sub BindEvents(Byval Objectname_ As String)
  2498.      Static Source As BUTTON
  2499.      Set Source = Bind(Objectname_)
  2500.      On Event Click From Source Call Click
  2501. End Sub
  2502. '++LotusScript Development Environment:2:2:Click:1:12
  2503. Sub Click(Source As Button)
  2504.      Call CreateNewDoc(NEW_MEMO)
  2505. End Sub
  2506. tmpNewDoc
  2507.     1S2S
  2508. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  2509. '++LotusScript Development Environment:2:5:(Forward):0:1
  2510. Declare Sub Click(Source As Button)
  2511. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2512. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2513. Private Sub BindEvents(Byval Objectname_ As String)
  2514.      Static Source As BUTTON
  2515.      Set Source = Bind(Objectname_)
  2516.      On Event Click From Source Call Click
  2517. End Sub
  2518. '++LotusScript Development Environment:2:2:Click:1:12
  2519. Sub Click(Source As Button)
  2520.      Call CreateNewDoc(NEW_CALENDAR)
  2521. End Sub
  2522. tmpNewDoc
  2523.     1S2S
  2524. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  2525. '++LotusScript Development Environment:2:5:(Forward):0:1
  2526. Declare Sub Click(Source As Button)
  2527. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2528. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2529. Private Sub BindEvents(Byval Objectname_ As String)
  2530.      Static Source As BUTTON
  2531.      Set Source = Bind(Objectname_)
  2532.      On Event Click From Source Call Click
  2533. End Sub
  2534. '++LotusScript Development Environment:2:2:Click:1:12
  2535. Sub Click(Source As Button)
  2536.      Call CreateNewDoc(NEW_TASK)
  2537. End Sub
  2538. tmpNewDoc
  2539.     1S2S
  2540. Copy into\New GroupK,
  2541. NewGroup
  2542.     0S0E
  2543. tmpNewDoc
  2544.     1S2S
  2545. _Remove From Folder...
  2546. Categori_zeK
  2547. SSend
  2548. O=Lotus Notes
  2549. O=Lotus Notes
  2550. PURSAFO
  2551. |.:#U
  2552. O=Lotus Notes
  2553. CN=Lotus Notes Template Development/O=Lotus Notes
  2554. PURSAFO
  2555. $$FormPostOpenAction
  2556. $TypeIcon
  2557. ExpireDate
  2558. ReplyDate
  2559. ComposedDate
  2560. $TITLE
  2561. $INFO
  2562. $WINDOWTITLE
  2563. $Script
  2564. $$Script_O
  2565. $$ScriptName
  2566. $$FormScript
  2567. $$$FormScript_O
  2568. $BODY
  2569. $ACTIONS
  2570. $SCRIPTOBJ_18
  2571. $SCRIPTOBJ_19
  2572. $SCRIPTOBJ_20
  2573. (ProcessExistingDbDlg)'++LotusScript Development Environment:2:5:(Options):0:66
  2574. '++LotusScript Development Environment:2:5:(Forward):0:1
  2575. Declare Sub Postopen(Source As Notesuidocument)
  2576. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2577. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2578. Private Sub BindEvents(Byval Objectname_ As String)
  2579.      Static Source As NOTESUIDOCUMENT
  2580.      Set Source = Bind(Objectname_)
  2581.      On Event Postopen From Source Call Postopen
  2582. End Sub
  2583. '++LotusScript Development Environment:2:2:Postopen:1:12
  2584. Sub Postopen(Source As Notesuidocument)
  2585.      source.RefreshHideFormulas
  2586. End Sub
  2587. DeleteOptions
  2588. Delete the original database|1
  2589.     Documents are archived:
  2590. ArchiveLocation
  2591. Local
  2592.     1S2S
  2593.     Archive database is on server:
  2594.     Archive file:
  2595. Local
  2596. ArchiveLocation
  2597. Locally | LocalOn Server | Server
  2598.     0S0E
  2599. ArchiveServer
  2600. ArchiveLocation
  2601. Local
  2602. ArchiveServer
  2603. ArchiveServer
  2604.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  2605. ArchiveServer
  2606. CurrentPath
  2607.     1S2S6S
  2608. CurrentFile
  2609. CurrentPath
  2610.     0R1S2S6S
  2611. FileOnly
  2612. CurrentPath
  2613. CurrentFile
  2614. Macintosh
  2615. CurrentPath
  2616. CurrentFile
  2617. CurrentPath
  2618. CurrentFile
  2619. CurrentFile
  2620.     0R1S2S8S11S15S18S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  2621. DirOnly
  2622. CurrentPath
  2623. CurrentFile
  2624. Macintosh
  2625. CurrentPath
  2626. CurrentFile
  2627. CurrentPath
  2628. CurrentFile
  2629.     0R1S2S8S11S15S17S18S20S21S22S23S24S28S31S35S37S38S40S41S42S43S44S48S51S55S57S58S60S
  2630. DirOnly
  2631. FileOnly"
  2632. CurrentPath
  2633.     0RR1S2S5S6S8S10S11S15S
  2634. ArchivePath
  2635. Please specify the filename of the archive database
  2636.     3S4S6S11SArchivePath
  2637.     After creating the new archive db:
  2638. servers
  2639. names.nsf
  2640. ($ServersLookup)
  2641.     1S2S
  2642. selectedserver
  2643. Server
  2644. Please select a server to create your archive database on.
  2645. ArchiveServer
  2646. servers
  2647.     0R1S2S
  2648. ArchiveServer
  2649. selectedServer
  2650.     0R1S2S3S
  2651. ?_?__
  2652. `!b`1
  2653. 7`^///?
  2654. ?b___
  2655. `bOOO
  2656. `<b!R
  2657. @If(@IsN
  2658. CopyOptions
  2659. Copy documents from the original archive to the new one|1
  2660. O=Lotus Notes
  2661. O=Lotus Notes
  2662. PURSAFO
  2663. |.:#U
  2664. O=Lotus Notes
  2665. CN=Lotus Notes Template Development/O=Lotus Notes
  2666. PURSAFO
  2667. Fde!f^^
  2668. $TITLE
  2669. $INFO
  2670. $$Script_O
  2671. $$ScriptName
  2672. $$FormScript
  2673. $$$FormScript_O
  2674. $BODY
  2675. $PublicAccess
  2676. Archive Log
  2677. Times New Roman
  2678.  ArchiveLog
  2679. $MessageType
  2680. %12-/H
  2681. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  2682. WC9iB.xC-iF8wH8jT>zR<rd?
  2683. 2L3;FK=Dj=C:FQ8Qp<b
  2684. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  2685. Archive Log 
  2686. LogCount
  2687. LogTotal
  2688.  for 
  2689. ArchiveDate
  2690. ArchiveTrailer
  2691. ArchiveTrailer
  2692.     Hidden:  
  2693. Archive Log for 
  2694. ArchiveDate
  2695.     1S2S
  2696. Subject
  2697. (Archive)
  2698. Categories
  2699. Close
  2700.     0S0E
  2701. Categori_ze
  2702. _Edit Document
  2703. Send Docu_ment
  2704. _Forward
  2705. _Move to Folder...
  2706. _Remove from Folder
  2707. O=Lotus Notes
  2708. O=Lotus Notes
  2709. PURSAFO
  2710. |.:#U
  2711. O=Lotus Notes
  2712. CN=Lotus Notes Template Development/O=Lotus Notes
  2713. PURSAFO
  2714. asBvev,
  2715. DocLife
  2716. $ManualArchivers_O
  2717. ObsoleteLife
  2718. DocumentLife
  2719. $TITLE
  2720. $INFO
  2721. $WINDOWTITLE
  2722. $$Script_O
  2723. $$ScriptName
  2724. ArchiveDate
  2725. $BODY
  2726. $ACTIONS
  2727. &Arial
  2728.  StdNotesLtr20
  2729. tmpDisplayFrom_Previewb
  2730.     2S3S
  2731. TMPFROM
  2732. tmpDisplayDate_Preview
  2733. tmpDate
  2734. O=Lotus Notes
  2735. O=Lotus Notes
  2736. PURSAFO
  2737. |.:#U
  2738. O=Lotus Notes
  2739. CN=Lotus Notes Template Development/O=Lotus Notes
  2740. PURSAFO
  2741. Fde!f^^
  2742. $TITLE
  2743. $INFO
  2744. $Header
  2745. $$ScriptName
  2746. $BODY
  2747. &Arial
  2748.  StdNotesLtr16
  2749. tmpDisplayFrom_Preview
  2750. tmpFrom
  2751. tmpDisplayDate_Preview
  2752. tmpDate
  2753. O=Lotus Notes
  2754. O=Lotus Notes
  2755. PURSAFO
  2756. |.:#U
  2757. O=Lotus Notes
  2758. CN=Lotus Notes Template Development/O=Lotus Notes
  2759. PURSAFO
  2760. Fde!f^^
  2761. $TITLE
  2762. $INFO
  2763. $Header
  2764. $$ScriptName
  2765. $BODY
  2766. '++LotusScript Development Environment:2:5:(Options):0:74
  2767. Option Public
  2768. '++LotusScript Development Environment:2:5:(Forward):0:1
  2769. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2770. Dim AlarmDt As NotesDateTime
  2771. (AlarmDialog)
  2772. tmpBeforeOrAfter
  2773. AppointmentType
  2774.     3S4S5S6S7S8S9S10S
  2775.     Date:
  2776. $AlarmTimeh
  2777. $AlarmTimeK
  2778.     0S0E
  2779. AutoSetAdjust
  2780. AppointmentType
  2781. CalendarProfile
  2782. AppointmentLead
  2783. AppointmentType
  2784. CalendarProfile
  2785. AnniversaryLead
  2786. AppointmentType
  2787. CalendarProfile
  2788. EventLead
  2789. AppointmentType
  2790. CalendarProfile
  2791. ReminderLead
  2792.     0RR1S2S5S6S10S13S14S17S18S19S20S21S28R29S30S31S32S39S40S41S42S43S50S
  2793. AutoNewAdjust
  2794. AutoSetAdjust
  2795. AutoSetAdjust
  2796. AppointmentType
  2797. AppointmentType
  2798.     0RR1S2S5S6S7S8S10S11S12S18S19S20S23S24S26S
  2799. AppointmentType
  2800. StartDateTime
  2801. AutoNewAdjust
  2802. AppointmentType
  2803. StartDateTime
  2804. AutoNewAdjust
  2805. StartDateTime
  2806.     0RR10R33R39R62R
  2807. tmpBeforeOrAfter
  2808. tmpAlarmOnDate
  2809. You must enter a valid Time for this Alarm.
  2810.     3S4S5S6S9S10S11S12StmpAlarmOnDate
  2811. StartDateTime
  2812. StartDateTime
  2813.     When:
  2814. AppointmentType
  2815.     1S2S3S4S5S6S
  2816. $AlarmTimeh
  2817. $AlarmOffseth
  2818. $AlarmOffset
  2819.     20S21S23S
  2820. AppointmentType
  2821.     0R3S4S5S6S8S10StmpBeforeOrAfter
  2822. Before|1After|2On|3
  2823. tmpBeforeOrAfter
  2824. AppointmentType
  2825.     3S4S5S6S7S8S9S10S
  2826. AutoLead
  2827. CalendarProfile
  2828. AppointmentLead
  2829.     1S2S5S6S
  2830. $AlarmOffset[
  2831. $AlarmOffset
  2832. AutoLead
  2833. AutoLead
  2834.     0R1S2S9S14S15S16S17S18S
  2835. Init[
  2836. Init$
  2837.     0R7S10S11S13S15S16S18S21StmpAlarmOffset
  2838.     Minutes
  2839.     Alarm Message:
  2840. $AlarmDescription
  2841. Subject
  2842. $AlarmDescription
  2843.     3S4S6S8S
  2844. $AlarmDescription
  2845. tmpAlarmOff
  2846. Turn Alarm Off|1
  2847. $AlarmTimeh
  2848. $AlarmTimeL
  2849.     0S0E
  2850. AutoSetAdjust
  2851. AppointmentType
  2852. CalendarProfile
  2853. AppointmentLead
  2854. AppointmentType
  2855. CalendarProfile
  2856. AnniversaryLead
  2857. AppointmentType
  2858. CalendarProfile
  2859. EventLead
  2860. AppointmentType
  2861. CalendarProfile
  2862. ReminderLead
  2863.     0RR1S2S5S6S10S13S14S17S18S19S20S21S28R29S30S31S32S39S40S41S42S43S50S
  2864. AutoNewAdjust
  2865. AutoSetAdjust
  2866. AutoSetAdjust
  2867. AppointmentType
  2868. AppointmentType
  2869.     0RR1S2S5S6S7S8S10S11S12S18S19S20S23S24S26S
  2870. AppointmentType
  2871. StartDateTime
  2872. AutoNewAdjust
  2873. AppointmentType
  2874. StartDateTime
  2875. AutoNewAdjust
  2876. StartDateTime
  2877.     0RR10R33R39R62R
  2878. tmpBeforeOrAfter
  2879. tmpAlarmOnTime
  2880. You must enter a valid Time for this Alarm.
  2881.     3S4S5S6S9S10S11S12StmpAlarmOnTime
  2882.     Time:
  2883. AppointmentType
  2884.     1S2S3S4S
  2885.     Set Alarm On:
  2886. O=Lotus Notes
  2887. O=Lotus Notes
  2888. PURSAFO
  2889. |.:#U
  2890. O=Lotus Notes
  2891. CN=Lotus Notes Template Development/O=Lotus Notes
  2892. PURSAFO
  2893. $AlarmOffest
  2894. tmpAlarmOffest
  2895. $Alarm
  2896. AlarmTime
  2897. $AlarmTime
  2898. AlarmOn
  2899. AlarmOnTime
  2900. $AlarmOffset
  2901. $FormPublicAccess
  2902. $TITLE
  2903. $INFO
  2904. $Script
  2905. $$Script_O
  2906. $$ScriptName
  2907. tmpAlarmOnDate
  2908. tmpAlarmOffset
  2909. tmpAlarmOnTime
  2910. $BODY
  2911. $PublicAccess
  2912. &Arial
  2913.  StdNotesLtr18
  2914. tmpDisplayFrom_Preview
  2915. tmpFrom
  2916. tmpDisplayDate_Preview
  2917. tmpDate
  2918. O=Lotus Notes
  2919. O=Lotus Notes
  2920. PURSAFO
  2921. |.:#U
  2922. O=Lotus Notes
  2923. CN=Lotus Notes Template Development/O=Lotus Notes
  2924. PURSAFO
  2925. $TITLE
  2926. $INFO
  2927. $$ScriptName
  2928. $BODY
  2929. &Arial
  2930.  StdNotesLtr13
  2931.                                 
  2932. tmpDisplayFrom_Preview
  2933. tmpFrom
  2934.                                 
  2935. tmpDisplayDate_Preview
  2936. tmpDate
  2937.                                 
  2938. O=Lotus Notes
  2939. O=Lotus Notes
  2940. PURSAFO
  2941. |.:#U
  2942. O=Lotus Notes
  2943. CN=Lotus Notes Template Development/O=Lotus Notes
  2944. PURSAFO
  2945. Fde!f^^
  2946. $TITLE
  2947. $INFO
  2948. $Header
  2949. $$ScriptName
  2950. $BODY
  2951.  Moods
  2952.     Always Hidden 
  2953. SenderTag
  2954. SenderTag
  2955. SenderTag
  2956.     1S2S3S4S5S6S
  2957. SenderTag
  2958.     0S0E
  2959. @___@
  2960. <a>7`^
  2961. `!bb!R
  2962. SenderTag
  2963.     0S0E
  2964. @___@
  2965. <a>7`^
  2966. `!bb!R
  2967. SenderTag
  2968.     0S0E
  2969. @___@
  2970. <a>7`^
  2971. `!bb!R
  2972. SenderTag
  2973.     0S0E
  2974. @___@
  2975. <a>7`^
  2976. `!bb!R
  2977. SenderTag
  2978.     0S0E
  2979. @___@
  2980. <a>7`^
  2981. `!bb!R
  2982. SenderTag
  2983.     0S0E
  2984. %12-/H
  2985. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  2986. WC9iB.xC-iF8wH8jT>zR<rd?
  2987. 2L3;FK=Dj=C:FQ8Qp<b
  2988. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  2989. SenderTag
  2990.     0S0E
  2991. SenderTag
  2992.     0S0E
  2993. @___@
  2994. <a>7`^
  2995. `!bb!R
  2996. SenderTag
  2997.     0S0E
  2998. SenderTag
  2999.     0S0E
  3000. SenderTag
  3001. SenderTag
  3002. SenderTag
  3003.     4S5S8S9S10S11S
  3004. @___@
  3005. <a>7`^
  3006. `!bb!R
  3007. O=Lotus Notes
  3008. O=Lotus Notes
  3009. PURSAFO
  3010. |.:#U
  3011. O=Lotus Notes
  3012. CN=Lotus Notes Template Development/O=Lotus Notes
  3013. PURSAFO
  3014. Fde!f^^
  3015. $TITLE
  3016. $INFO
  3017. $$ScriptName
  3018. $BODY
  3019. &Arial
  3020.  StdNotesLtr5
  3021. tmpDisplayFrom_Preview
  3022. tmpFrom
  3023.                 
  3024. tmpDisplayDate_Preview
  3025. tmpDate
  3026. O=Lotus Notes
  3027. O=Lotus Notes
  3028. PURSAFO
  3029. |.:#U
  3030. O=Lotus Notes
  3031. CN=Lotus Notes Template Development/O=Lotus Notes
  3032. PURSAFO
  3033. Fde!f^^
  3034. $TITLE
  3035. $INFO
  3036. $$ScriptName
  3037. $BODY
  3038. FOLDER_DIRECTORY_OBJECT
  3039. ($Alarms)|$Alarms
  3040. ($Inbox)
  3041. ($Trash)
  3042. New Appointment
  3043. Subject
  3044. "Small Fonts
  3045. '++LotusScript Development Environment:2:5:(Options):0:74
  3046. Option Public 
  3047. '++LotusScript Development Environment:2:5:(Forward):0:1
  3048. Declare Sub Postopen(Source As Notesuidocument)
  3049. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  3050. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  3051. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3052. Declare Sub Postrecalc(Source As Notesuidocument)
  3053. Declare Sub Postmodechange(Source As Notesuidocument)
  3054. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  3055. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3056. '++LotusScript Development Environment:2:2:Postopen:1:8
  3057. Sub Postopen(Source As Notesuidocument)
  3058.      
  3059. End Sub
  3060. '++LotusScript Development Environment:2:2:Querysave:1:8
  3061. Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  3062.      
  3063. End Sub
  3064. '++LotusScript Development Environment:2:2:Queryopen:1:8
  3065. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  3066.      
  3067. End Sub
  3068. '++LotusScript Development Environment:2:2:Queryclose:1:8
  3069. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3070.      
  3071. End Sub
  3072. '++LotusScript Development Environment:2:2:Postrecalc:1:8
  3073. Sub Postrecalc(Source As Notesuidocument)
  3074.      
  3075. End Sub
  3076. '++LotusScript Development Environment:2:2:Postmodechange:1:8
  3077. Sub Postmodechange(Source As Notesuidocument)
  3078.      
  3079. End Sub
  3080. '++LotusScript Development Environment:2:2:Querymodechange:1:8
  3081. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  3082.      
  3083. End Sub
  3084. (RepeatInfo)'++LotusScript Development Environment:2:5:(Options):0:66
  3085. '++LotusScript Development Environment:2:5:(Forward):0:1
  3086. Declare Sub Postopen(Source As Notesuidocument)
  3087. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  3088. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  3089. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3090. Declare Sub Postrecalc(Source As Notesuidocument)
  3091. Declare Sub Postmodechange(Source As Notesuidocument)
  3092. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  3093. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3094. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3095. Private Sub BindEvents(Byval Objectname_ As String)
  3096.      Static Source As NOTESUIDOCUMENT
  3097.      Set Source = Bind(Objectname_)
  3098.      On Event Postopen From Source Call Postopen
  3099.      On Event Querysave From Source Call Querysave
  3100.      On Event Queryopen From Source Call Queryopen
  3101.      On Event Queryclose From Source Call Queryclose
  3102.      On Event Postrecalc From Source Call Postrecalc
  3103.      On Event Postmodechange From Source Call Postmodechange
  3104.      On Event Querymodechange From Source Call Querymodechange
  3105. End Sub
  3106. '++LotusScript Development Environment:2:2:Postopen:1:12
  3107. Sub Postopen(Source As Notesuidocument)
  3108.      
  3109. End Sub
  3110. '++LotusScript Development Environment:2:2:Querysave:1:12
  3111. Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  3112.      
  3113. End Sub
  3114. '++LotusScript Development Environment:2:2:Queryopen:1:12
  3115. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  3116.      
  3117. End Sub
  3118. '++LotusScript Development Environment:2:2:Queryclose:1:12
  3119. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3120.      
  3121. End Sub
  3122. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  3123. Sub Postrecalc(Source As Notesuidocument)
  3124.      
  3125. End Sub
  3126. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  3127. Sub Postmodechange(Source As Notesuidocument)
  3128.      
  3129. End Sub
  3130. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  3131. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  3132.      
  3133. End Sub
  3134. tmpRealDate
  3135.     0S0E
  3136. Repeat Info
  3137. AppointmentType
  3138.     0S0E
  3139.     Detailed description:
  3140. AppointmentType
  3141.     1S2S
  3142. AppointmentType
  3143. RequiredAttendees
  3144.     1S2S3S4S5S6S
  3145.     Invitations have been sent to:    
  3146. RequiredAttendees
  3147.     0S0E
  3148. tmpSendTo
  3149. AppointmentType
  3150. OptionalAttendees
  3151.     1S2S3S4S8S9S
  3152.     Optional invitees:
  3153. OptionalAttendees
  3154.     0S0E
  3155. tmpCopyTo
  3156. AppointmentType
  3157.     1S2S3S4S5S6S
  3158.     Meeting location:    
  3159. tmpRoom
  3160. AppointmentType
  3161. RequiredResources
  3162.     1S2S3S4S5S6S
  3163.     Resources:    
  3164. Resources
  3165. RequiredResources
  3166.     0S0E
  3167. tmpResources
  3168. AppointmentType
  3169. chair
  3170.     1S2S3S4S5S6S
  3171.     Chairperson:    
  3172. Chair
  3173. tmpChairperson
  3174. AppointmentType
  3175. Principal
  3176.     1S2S3S4S5S6S7S8S
  3177.     Sent by:    
  3178. Principal
  3179. Principal
  3180.     3S4S
  3181. tmpSentBy
  3182. RepeatIDs
  3183.     0S0E
  3184. Repeating meeting information:
  3185. RepeatUnit
  3186.     1S2S
  3187.     This meeting repeats 
  3188. RepeatInterval
  3189. tmpRepeatInterval
  3190. 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
  3191. RepeatUnit
  3192. tmpRepeatUnit
  3193. day|Dweek|Wmonth|MDmonth|MPyear|YDcustom|C
  3194. RepeatAdjust
  3195. tmpRepeatAdjust
  3196. RepeatUnit
  3197.  on Sunday|0
  3198.  on Monday|1
  3199.  on Tuesday|2
  3200.  on Wednesday|3
  3201.  on Thursday|4
  3202.  on Friday|5
  3203.  on Saturday|6
  3204. RepeatUnit
  3205.  on the 1st Sunday|1.0
  3206.  on the 1st Monday|1.1
  3207.  on the 1st Tuesday|1.2
  3208.  on the 1st Wednesday|1.3
  3209.  on the 1st Thursday|1.4
  3210.  on the 1st Friday|1.5
  3211.  on the 1st Saturday|1.6
  3212.  on the 2nd Sunday|2.0
  3213.  on the 2nd Monday|2.1
  3214.  on the 2nd Tuesday|2.2
  3215.  on the 2nd Wednesday|2.3
  3216.  on the 2nd Thursday|2.4
  3217.  on the 2nd Friday|2.5
  3218.  on the 2nd Saturday|2.6
  3219.  on the 3rd Sunday|3.0
  3220.  on the 3rd Monday|3.1
  3221.  on the 3rd Tuesday|3.2
  3222.  on the 3rd Wednesday|3.3
  3223.  on the 3rd Thursday|3.4
  3224.  on the 3rd Friday|3.5
  3225.  on the 3rd Saturday|3.6
  3226.  on the 4th Sunday|4.0
  3227.  on the 4th Monday|4.1
  3228.  on the 4th Tuesday|4.2
  3229.  on the 4th Wednesday|4.3
  3230.  on the 4th Thursday|4.4
  3231.  on the 4th Friday|4.5
  3232.  on the 4th Saturday|4.6
  3233.  on the Last Sunday|5.0
  3234.  on the Last Monday|5.1
  3235.  on the Last Tuesday|5.2
  3236.  on the Last Wednesday|5.3
  3237.  on the Last Thursday|5.4
  3238.  on the Last Friday|5.5
  3239.  on the Last Saturday|5.6
  3240. RepeatUnit
  3241.  on the 1st day|1
  3242.  on the 2nd day|2
  3243.  on the 3rd day|3
  3244.  on the 4th day|4
  3245.  on the 5th day|5
  3246.  on the 6th day|6
  3247.  on the 7th day|7
  3248.  on the 8th day|8
  3249.  on the 9th day|9
  3250.  on the 10th day|10
  3251.  on the 11th day|11
  3252.  on the 12th day|12
  3253.  on the 13th day|13
  3254.  on the 14th day|14
  3255.  on the 15th day|15
  3256.  on the 16th day|16
  3257.  on the 17th day|17
  3258.  on the 18th day|18
  3259.  on the 19th day|19
  3260.  on the 20th day|20
  3261.  on the 21st day|21
  3262.  on the 22nd day|22
  3263.  on the 23rd day|23
  3264.  on the 24th day|24
  3265.  on the 25th day|25
  3266.  on the 26th day|26
  3267.  on the 27th day|27
  3268.  on the 28th day|28
  3269.  on the 29th day|29
  3270.  on the 30th day|30
  3271.  on the 31st day|31
  3272.     3S4S6R8R10R12R14R16R18R20RS5E21S22S24R26R28R30R32R34R36R38R40R42R44R46R48R50R52R54R56R58R60R62R64R66R68R70R72R74R76R78R80R82R84R86R88R90R92R94RS5E95S96S98R100R102R104R106R108R110R112R114R116R118R120R122R124R126R128R130R132R134R136R138R140R142R144R146R148R150R152R154R156R158R160S
  3273.      starting on 
  3274. RepeatStartDate
  3275. tmpRepeatStartDate
  3276. RepeatHow
  3277. tmpRepeatHow
  3278. until|Ufor|F
  3279. RepeatFor
  3280. tmpRepeatUnit
  3281.     7S9S
  3282. RepeatHow
  3283. RepeatUntil
  3284. RepeatFor
  3285. RepeatForUnit
  3286. RepeatFor
  3287. RepeatForUnit
  3288. RepeatFor
  3289. RepeatForUnit
  3290. RepeatFor
  3291. month
  3292. RepeatForUnit
  3293. RepeatFor
  3294. RepeatFor
  3295. RepeatForUnit
  3296. RepeatFor
  3297. RepeatForUnit
  3298. weeks
  3299. RepeatFor
  3300. RepeatForUnit
  3301. months
  3302. RepeatFor
  3303. RepeatForUnit
  3304. years
  3305.     0R3S4S6S10S13S17S18S19S20S23S24S25S26S27S28S30S32S33S34S35S36S37S38S40S42S43S44S45S46S47S48S50S52S53S54S55S56S57S58S60S62S64S65S68S69S70S71S72S73S75S77S78S79S80S81S82S83S85S87S88S89S90S91S92S93S95S97S98S99S100S101S102S103S105S107S
  3306. tmpRepeatUntil
  3307. RepeatUnit
  3308.  (if the date occurs on a weekend the meeting 
  3309. RepeatWeekends
  3310. occurs anyway
  3311. RepeatWeekends
  3312. is moved to Friday
  3313. RepeatWeekends
  3314. is moved to Monday
  3315. RepeatWeekends
  3316. is moved to Nearest Weekday
  3317. RepeatWeekends
  3318. is deleted
  3319.     3S4S5S6S7S8S10S12S13S14R17S18S20S22S23S24S26S28S29S30S32S34S35S36S38S40S41S42S44S46S48S49S
  3320. tmpRepeatWeekends
  3321. RepeatIds
  3322.     0S0E
  3323.     Meeting Dates: 
  3324. RepeatDates
  3325. tmpRepeatDates
  3326. RepeatDates
  3327.     0S0E
  3328. O=Lotus Notes
  3329. O=Lotus Notes
  3330. PURSAFO
  3331. |.:#U
  3332. O=Lotus Notes
  3333. CN=Lotus Notes Template Development/O=Lotus Notes
  3334. PURSAFO
  3335. Fde!f^^
  3336. CompletedOn
  3337. EndDate
  3338. CalendarDate_Time___Start
  3339. CalendarDate_Time___End
  3340. CalendarDates
  3341. CalendarDate
  3342. RepeatDates
  3343. CalendarDateTime
  3344. EndDateTime
  3345. $NoPurge
  3346. StartTime
  3347. EndTime
  3348. StartEndTime
  3349. StartDateTime
  3350. $FormPublicAccess
  3351. $SCRIPTOBJ_23
  3352. Duration
  3353. StartDate
  3354. ReminderTime
  3355. TimeRange
  3356. _ViewIcon
  3357. $SCRIPTOBJ_6
  3358. $SCRIPTOBJ_8
  3359. $SCRIPTOBJ_9
  3360. $SCRIPTOBJ_11
  3361. $SCRIPTOBJ_13
  3362. $SCRIPTOBJ_21
  3363. $SCRIPTOBJ_22
  3364. $TITLE
  3365. $INFO
  3366. $WINDOWTITLE
  3367. $Script
  3368. $$Script_O
  3369. $$ScriptName
  3370. $$FormScript
  3371. $$$FormScript_O
  3372. $BODY
  3373. $PublicAccess
  3374.  DeliveryOptions'++LotusScript Development Environment:2:5:(Options):0:66
  3375. '++LotusScript Development Environment:2:5:(Forward):0:1
  3376. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3377. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3378. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3379. Private Sub BindEvents(Byval Objectname_ As String)
  3380.      Static Source As NOTESUIDOCUMENT
  3381.      Set Source = Bind(Objectname_)
  3382.      On Event Queryclose From Source Call Queryclose
  3383. End Sub
  3384. '++LotusScript Development Environment:2:2:Queryclose:1:12
  3385. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3386.      SenderTag = source.document.tmpSenderTag(0)
  3387.      If  SenderTag <> "" And SenderTag <> "N" Then source.document.SenderTag = SenderTag
  3388. End Sub
  3389. Importance:
  3390. Delivery report:
  3391. Delivery priority:
  3392. SenderTag
  3393.     0S0E
  3394. Mood stamp:
  3395. Importance
  3396. Normal|2High|1Low|3
  3397. DeliveryReport
  3398. Only on failure|BConfirm delivery|CTrace entire path|TNone|N
  3399. SenderTag
  3400. tmpSenderTag
  3401. Normal|NPersonal|PConfidential|CPrivate|RThank You!|TFlame|FGood Job!|GJoke|JFYI|YQuestion|QReminder|M
  3402. DeliveryPriority
  3403. High|HNormal|NLow|L
  3404. SecureMail
  3405.     1S2S
  3406.     3S4S6S8S
  3407. Sign|1
  3408. ReturnReceipt
  3409. Return receipt|1
  3410. Encrypt
  3411. Encrypt
  3412.     3S4S6S8S
  3413. Encrypt
  3414. Encrypt|1
  3415. $KeepPrivate
  3416. Prevent copying|1
  3417. O=Lotus Notes
  3418. O=Lotus Notes
  3419. PURSAFO
  3420. |.:#U
  3421. O=Lotus Notes
  3422. CN=Lotus Notes Template Development/O=Lotus Notes
  3423. PURSAFO
  3424. ExpireDate
  3425. ReplyDate
  3426. $TITLE
  3427. $INFO
  3428. $$Script_O
  3429. $$ScriptName
  3430. $$FormScript
  3431. $$$FormScript_O
  3432. $BODY
  3433. $PublicAccess
  3434. Times New Roman
  3435. VersionOpt|
  3436.     6S7S9S14S
  3437. $VersionOpt
  3438.     0R1S2S3S
  3439. SavedOnce
  3440.     0R1S2S3S
  3441. PostedDate(
  3442.     0R1S2S3S
  3443. DeliveredDate
  3444.     0R1S2S3S
  3445. $AutoEditMode
  3446.     0R1S2S3S
  3447. MailSaveOptions
  3448.     0R1S2S3S
  3449. VersionOpt
  3450.     0R4S
  3451. New Serial Route Memo
  3452. Subject
  3453. Subject
  3454. Subject
  3455.     4S6S12S13S14S15S17S21S23S25S26S28S
  3456. '++LotusScript Development Environment:2:5:(Options):0:74
  3457. Option Public
  3458. '++LotusScript Development Environment:2:5:(Forward):0:1
  3459. Declare Sub InstantiateObjectVariables(source)
  3460. Declare Sub SaveDialog(SavedDoc)
  3461. Declare Function SendToNext(source) As Variant
  3462. Declare Sub CheckSecureMail
  3463. '++LotusScript Development Environment:2:5:(Declarations):0:10
  3464. %INCLUDE "lsconst.lss"
  3465. Dim w As NotesUIWorkspace
  3466. Dim s As NotesSession
  3467. Dim db As NotesDatabase
  3468. Dim note As NotesDocument
  3469. Dim newnote As NotesDocument
  3470. Dim Action As Variant
  3471. Dim DocWasSaved
  3472. Dim DoNotClose As Variant
  3473. Dim ContinueSave As Variant
  3474. Dim NewDocument As Variant
  3475. '++LotusScript Development Environment:2:2:InstantiateObjectVariables:1:8
  3476. Sub InstantiateObjectVariables(source)
  3477.      
  3478.      Set w = New NotesUIWorkspace
  3479.      Set s = New NotesSession
  3480.      Set db = s.CurrentDatabase
  3481.      Set note = source.document
  3482.      source.AutoReload = False
  3483.      
  3484. End Sub
  3485. '++LotusScript Development Environment:2:2:SaveDialog:1:8
  3486. Sub SaveDialog(SavedDoc)
  3487.      
  3488.      SavePrompt = Messagebox("Do you wish to save this " & SavedDoc & "?", MB_YESNOCANCEL, "Save " & SavedDoc) 
  3489.      Select Case SavePrompt
  3490.      Case IDCANCEL
  3491.           note.MailOptions = "0"
  3492.           DoNotClose = True
  3493.           ContinueSave = False
  3494.           Exit Sub
  3495.      Case IDNO
  3496.           note.SaveOptions = "0"
  3497.           Exit Sub
  3498.      Case IDYES
  3499.           note.SaveOptions = "1"
  3500.      End Select
  3501.      
  3502. End Sub
  3503. '++LotusScript Development Environment:2:1:SendToNext:1:8
  3504. Function SendToNext(source) As Variant
  3505.      
  3506.      CurrentUser = note.tmpOwner(0)
  3507.      Originator = note.Originator
  3508.      FromName = note.From
  3509.      RouteList = note.OriginalRouteList
  3510.      
  3511.      If Originator(0) = CurrentUser Then
  3512.           note.CurrentSendTo = 0
  3513.      Else
  3514.           CurrentSendTo = note.CurrentSendTo  
  3515.           note.CurrentSendTo = CurrentSendTo(0) + 1
  3516.      End If
  3517.      
  3518.      CurrentSendTo = note.CurrentSendTo
  3519.      ListMax = Ubound(RouteList)
  3520.      
  3521.      Select Case CurrentSendTo(0)
  3522.      Case Is < ListMax
  3523.           Remaining = ListMax - (CurrentSendTo(0) + 1)
  3524.           Redim tmpList(Remaining)
  3525.           x = 0
  3526.           For i = (CurrentSendTo(0) + 1) To ListMax
  3527.                tmpList(x) = RouteList(i)
  3528.                x = x + 1
  3529.           Next
  3530.           note.RemainingRouteList = tmpList
  3531.           note.SendTo = RouteList(CurrentSendTo(0))
  3532.      Case Is > ListMax
  3533.           note.RemainingRouteList = "None"
  3534.           note.SendTo = Originator(0)         
  3535.      Case ListMax
  3536.           note.RemainingRouteList = "None"         
  3537.           note.SendTo = RouteList(CurrentSendTo(0))
  3538.      End Select
  3539.      
  3540.      Notify = note.Notify
  3541.      If Notify(0) = "1" Then note.CopyTo = Originator(0)
  3542.      
  3543.      note.tmpAction = "Mailing"
  3544.      
  3545.      source.Reload
  3546.      
  3547.      On Error Goto NotSent    
  3548.      source.Send
  3549.      
  3550.      SendToNext = True
  3551.      Exit Function
  3552.      
  3553. NotSent:
  3554.      Messagebox "Unable to send this document.  Please try later.", MB_OK, "Send Error"
  3555.      SendToNext = False
  3556.      Exit Function
  3557.      
  3558. End Function
  3559. '++LotusScript Development Environment:2:2:CheckSecureMail:1:8
  3560. Sub CheckSecureMail
  3561.      
  3562. 'If SecureMail = 1 in notes.ini all mail gets Signed and Encrypted and the user is unable to override it
  3563.      note.SecureMail = Cstr(s.GetEnvironmentValue("SecureMail", True))
  3564.      If note.SecureMail(0) = "1" Then
  3565.           Call note.ReplaceItemValue("Sign", "1")
  3566.           Call note.ReplaceItemValue("Encrypt", "1")
  3567.      End If     
  3568.      
  3569. End Sub
  3570.  Route'++LotusScript Development Environment:2:5:(Options):0:66
  3571. '++LotusScript Development Environment:2:5:(Forward):0:1
  3572. Declare Sub Postopen(Source As Notesuidocument)
  3573. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  3574. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3575. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3576. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3577. Private Sub BindEvents(Byval Objectname_ As String)
  3578.      Static Source As NOTESUIDOCUMENT
  3579.      Set Source = Bind(Objectname_)
  3580.      On Event Postopen From Source Call Postopen
  3581.      On Event Querysave From Source Call Querysave
  3582.      On Event Queryclose From Source Call Queryclose
  3583. End Sub
  3584. '++LotusScript Development Environment:2:2:Postopen:1:12
  3585. Sub Postopen(Source As Notesuidocument)
  3586.      
  3587.      Dim cnName As Variant
  3588.      
  3589.      If source.InPreviewPane Then Exit Sub
  3590.      If note Is Nothing Then Call InstantiateObjectVariables(source)
  3591.      
  3592.      cnName = Evaluate("@Name([CN];@Username)")
  3593.      If (note.HasItem("PostedDate") Or note.HasItem("DeliveredDate")) And source.EditMode = False And  Instr(Lcase(note.SendTo(0)), Lcase(cnName(0))) = 0 Then
  3594.           Exit Sub  
  3595.      Else
  3596.           source.EditMode = True
  3597.      End If
  3598.      
  3599.      If note.From(0) = s.UserName Or source.IsNewDoc Then
  3600.           If Not(note.HasItem("SecureMail")) Then
  3601.                CheckSecureMail
  3602.                source.reload
  3603.           End If
  3604.      End If
  3605.      
  3606.      EditType = s.GetEnvironmentValue("MailStEd")
  3607.      If EditType = "5" Then 
  3608.           Call note.ReplaceItemValue("$VersionOpt", "6")
  3609.           note.tmpAction = "ConvertNewDoc"
  3610.           Call s.SetEnvironmentVar("MailStEd", "0")
  3611.           source.reload
  3612.           source.save
  3613.      End If
  3614.      
  3615. End Sub
  3616. '++LotusScript Development Environment:2:2:Querysave:1:12
  3617. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  3618.      
  3619.      If note Is Nothing Then Call InstantiateObjectVariables(source)
  3620.      
  3621.      note.RemoveItem("MailOptions")
  3622.      note.RemoveItem("SaveOptions")
  3623.      
  3624.      Action = note.tmpAction
  3625.      Select Case Action(0)
  3626.      Case "SaveAsDraft"
  3627.           note.MailOptions = "0"
  3628.           note.SaveOptions = "1"
  3629.      Case "SendAndFile"
  3630.           If SendToNext(source) = False Then Continue = False         
  3631.           note.SaveOptions = "1"
  3632.      Case "Send"
  3633.           If SendToNext(source) = False Then Continue = False         
  3634.           note.SaveOptions = "0"
  3635.      Case "Mailing"
  3636. 'We do not want to do anything if mailing is in process (like from the Send button)
  3637.      Case Else
  3638. 'If this is a message that was not written by you we do not present the mail dialog          
  3639.           If note.From(0) <> s.UserName Then
  3640.                note.MailOptions = "0"
  3641.                note.SaveOptions = "1"
  3642.                ContinueSave = True
  3643.                Call SaveDialog("Document")
  3644.                If ContinueSave = False Then
  3645.                     Continue = False
  3646.                     Exit Sub
  3647.                End If
  3648.           End If
  3649.      End Select
  3650.      
  3651.      note.RemoveItem("tmpAction")
  3652.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  3653.      
  3654.      source.Reload
  3655.      
  3656. End Sub
  3657. '++LotusScript Development Environment:2:2:Queryclose:1:12
  3658. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  3659.      
  3660.      If DoNotClose Then
  3661.           DoNotClose = False
  3662.           Continue = False
  3663.      End If
  3664.      
  3665. End Sub
  3666. ,`    }<
  3667.     0S0E
  3668.     Always Hidden: 
  3669. Principal
  3670. CalendarProfile
  3671. Owner
  3672.     1S2S3S7S
  3673. Principal
  3674. Principal
  3675.     0R3S4S6S8S
  3676. FromPerson memo is from.
  3677. DefaultLogo
  3678. Gateway
  3679.     4S9S13S16S18SLogoPerson memo is from.
  3680.     0S0E
  3681.     0S0E
  3682. Encrypt
  3683.     0S0E
  3684. DefaultMailSaveOptions
  3685. origDomain
  3686. CalendarProfile
  3687. Owner
  3688.     0S0E
  3689. tmpOwner
  3690. ReplyTo
  3691. ReplyDate
  3692. Please respond
  3693. ReplyTo
  3694. ReplyTo
  3695. ReplyDate
  3696. ReplyDate
  3697.     3S4S5S6S7S8S10S12S13S14S17S18S20S22S23S24S26S27S30S31S33S35S36S37S
  3698. tmpDisplayReplyInfo
  3699.     From:    
  3700. Principal
  3701. Principal
  3702.     7S9S
  3703. Originator
  3704. Originator
  3705. tmpOwner
  3706.     1S2S
  3707.     Route to (individuals, not groups):
  3708. OriginalRouteList
  3709.     0S0E
  3710. CurrentUser
  3711.     1S2S6S
  3712. Originator
  3713. Originator
  3714.     0R1S2S6S
  3715. CurrentUser
  3716. Originator
  3717. OriginalRouteList
  3718. CurrentUser
  3719. You cannot include yourself in the Route List.{
  3720.     0R3S4S5S6S12S15S18S23S
  3721. OriginalRouteList
  3722.     Remaining route list:
  3723. RemainingRouteList
  3724. RemainingRouteList
  3725.     Current person in route:
  3726. SendTo
  3727. SendTo
  3728. EnRoute
  3729.     1S2S
  3730.     Subject:
  3731. SubjectSubject of memo.
  3732. $HideMailHeader
  3733.     0S0E
  3734. $HideMailHeader
  3735. Moods
  3736. PostedDate
  3737. SenderTag
  3738. Moods
  3739.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  3740. Notify
  3741. Notify sender at each stop | 1
  3742. Edit Document
  3743. PostedDateh
  3744.     4S5S6S7S
  3745. ForwardK 
  3746.     0S0E
  3747. New Memo.
  3748.     0S0E
  3749. Delete 
  3750.     0S0E
  3751. _Move To Folder...
  3752. Delivery Information...Kz
  3753. DeliveryInfo
  3754. Delivery Information
  3755.     4S5S6S7S8S9S10S12S
  3756. _Forward
  3757. Address...
  3758. NewNames
  3759.     1S2S4S5S
  3760. OriginalRouteList
  3761. OriginalRouteList
  3762. NewNames
  3763.     0R1S2S3S8S9S
  3764. PostedDateh
  3765.     5S6S7S8S
  3766. Close
  3767.     0S0E
  3768. PostedDateY
  3769.     0S0E
  3770. Save As Draft
  3771. tmpAction
  3772. SaveAsDraft
  3773.     1S2S3S
  3774. PostedDateh
  3775.     0S0E
  3776. Save and File
  3777.     7S9S
  3778. tmpAction
  3779. SaveAndFile
  3780.     0R1S2S3S
  3781. PostedDateY
  3782. PostedDateh
  3783.     4S5S11S12S13S14S
  3784. Send to Next PersonKl
  3785.     0R7S9S
  3786. PromptValue
  3787. DefaultMailSaveOptions
  3788. Save when sent
  3789. Do you wish to save a copy of this Memo?
  3790. DefaultMailSaveOptions
  3791.     0RR1S2S5S6S8S14S17S
  3792. SaveOptions
  3793. PromptValue
  3794. SaveOptions
  3795. PromptValue
  3796.     0R1S2S5S6S9S14S
  3797. tmpAction
  3798. SaveOptions
  3799. SendAndFile
  3800.     0RR1S2S3S6S7S9S11S
  3801.     0R7S9S
  3802. PostedDateh
  3803.     5S6S7S8S
  3804. Send And File...V
  3805.     4S11S13S19S
  3806.     0R7S9S
  3807.     0RR7S9S
  3808. tmpAction
  3809. SendAndFile
  3810.     0RR1S2S3S
  3811.     0R7S9S
  3812. PostedDateh
  3813.     5S6S7S8S
  3814. Delivery Options...K
  3815. DeliveryOptions
  3816. Delivery Options
  3817.     4S8S
  3818. _ViewIcon
  3819. SenderTag
  3820. SenderTag
  3821. SenderTag
  3822. SenderTag
  3823. SenderTag
  3824. SenderTag
  3825. SenderTag
  3826. SenderTag
  3827. SenderTag
  3828. SenderTag
  3829. SenderTag
  3830.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  3831. PostedDateh
  3832.     5S6S7S8S
  3833. Special Options...r
  3834. (Advanced Options)
  3835. Special Options
  3836.     4S8S
  3837. PostedDateh
  3838.     5S6S7S8S
  3839. _Remove From Folder...
  3840. Categori_zeK
  3841. SSend
  3842. O=Lotus Notes
  3843. O=Lotus Notes
  3844. PURSAFO
  3845. |.:#U
  3846. O=Lotus Notes
  3847. CN=Lotus Notes Template Development/O=Lotus Notes
  3848. PURSAFO
  3849. tQc90
  3850. U1gbx
  3851. $$FormPostOpenAction
  3852. $TypeIcon
  3853. ExpireDate
  3854. ReplyDate
  3855. ComposedDate
  3856. $TITLE
  3857. $INFO
  3858. $WINDOWTITLE
  3859. $Script
  3860. $$Script_O
  3861. $$ScriptName
  3862. $$FormScript
  3863. $$$FormScript_O
  3864. $BODY
  3865. $ACTIONS
  3866. &Arial
  3867.  StdNotesLtr23
  3868. tmpDisplayFrom_Preview
  3869. tmpFrom
  3870. tmpDisplayDate_Preview
  3871. tmpDate
  3872. O=Lotus Notes
  3873. O=Lotus Notes
  3874. PURSAFO
  3875. |.:#U
  3876. O=Lotus Notes
  3877. CN=Lotus Notes Template Development/O=Lotus Notes
  3878. PURSAFO
  3879. Fde!f^^
  3880. $TITLE
  3881. $INFO
  3882. $Header
  3883. $$ScriptName
  3884. $BODY
  3885. &Arial
  3886.  StdNotesLtr9
  3887.                                 
  3888. tmpDisplayFrom_Preview
  3889. tmpFrom
  3890. tmpDisplayDate_Preview
  3891. tmpDate
  3892. O=Lotus Notes
  3893. O=Lotus Notes
  3894. PURSAFO
  3895. |.:#U
  3896. O=Lotus Notes
  3897. CN=Lotus Notes Template Development/O=Lotus Notes
  3898. PURSAFO
  3899. Fde!f^^
  3900. &Q`'ph
  3901. 5sx<w)
  3902. Q}.1xo
  3903. $TITLE
  3904. $INFO
  3905. $Header
  3906. $$ScriptName
  3907. $BODY
  3908. &Arial
  3909.  StdNotesLtr30
  3910. tmpDisplayFrom_Preview
  3911. tmpFrom
  3912. tmpDisplayDate_Preview
  3913. tmpDate
  3914. O=Lotus Notes
  3915. O=Lotus Notes
  3916. PURSAFO
  3917. |.:#U
  3918. O=Lotus Notes
  3919. CN=Lotus Notes Template Development/O=Lotus Notes
  3920. PURSAFO
  3921. Fde!f^^
  3922. $TITLE
  3923. $INFO
  3924. $Header
  3925. $$ScriptName
  3926. $BODY
  3927. (Advanced Options)
  3928.     Replies to this memo should be addressed to:
  3929. Stamp message with a "Please reply by" date:
  3930. Expiration date  (after this date it is safe to archive or delete this document):
  3931. ReplyTo
  3932.     1S2S3S
  3933. ExpireDate
  3934.     3S4S6S11S
  3935. pcDate
  3936. ExpireDatea
  3937.     0R1S2S
  3938. TodayInt,
  3939.     0R1S2S
  3940. ConNext
  3941. pcDate
  3942.     0R1S2S13S15S
  3943. AdjustAmount
  3944. pcDate
  3945. pcDate
  3946. pcDate
  3947. pcDate
  3948. pcDate
  3949. pcDate
  3950. pcDate
  3951.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  3952. AdjustAmount
  3953. pcDateW
  3954.     0R6S17S
  3955. AdjustAmount
  3956. ConNext
  3957. TodayInt#
  3958. ExpireDate
  3959. ReplyDate
  3960.     3S4S6S11S
  3961. pcDate
  3962. ReplyDate
  3963.     0R1S2S
  3964. TodayInt,
  3965.     0R1S2S
  3966. ConNext
  3967. pcDate
  3968.     0R1S2S13S15S
  3969. AdjustAmount
  3970. pcDate
  3971. pcDate
  3972. pcDate
  3973. pcDate
  3974. pcDate
  3975. pcDate
  3976. pcDate
  3977.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  3978. AdjustAmount
  3979. pcDateW
  3980.     0R6S17S
  3981. AdjustAmount
  3982. ConNext
  3983. TodayInt#
  3984. ReplyDate
  3985. ReplyTo
  3986. ReplyTo
  3987. MailFormat
  3988.     1S2S
  3989.     Encoding method for Internet Mail attachments:
  3990. MailFormat
  3991. SMTPEncoding
  3992.     3S4S6S8S
  3993. SMTPEncoding
  3994. Accept Administrator's default|MIME (Base64)|BQuoted Printable|QUUencode|U
  3995. MailFormat
  3996. Sending this Notes document to other Notes mail user(s) through the Internet|E
  3997. O=Lotus Notes
  3998. O=Lotus Notes
  3999. PURSAFO
  4000. |.:#U
  4001. O=Lotus Notes
  4002. CN=Lotus Notes Template Development/O=Lotus Notes
  4003. PURSAFO
  4004. $TITLE
  4005. $INFO
  4006. $$Script_O
  4007. $$ScriptName
  4008. $BODY
  4009. $PublicAccess
  4010. &Arial
  4011.  StdNotesLtr4
  4012. tmpDisplayFrom_Preview
  4013. tmpFrom
  4014. tmpDisplayDate_Preview
  4015. tmpDate
  4016. O=Lotus Notes
  4017. O=Lotus Notes
  4018. PURSAFO
  4019. |.:#U
  4020. O=Lotus Notes
  4021. CN=Lotus Notes Template Development/O=Lotus Notes
  4022. PURSAFO
  4023. OMz{u
  4024. $TITLE
  4025. $INFO
  4026. $$ScriptName
  4027. $BODY
  4028. "Small Fonts
  4029.  $LotusFaxMemoSubform
  4030. O=Lotus Notes
  4031. O=Lotus Notes
  4032. PURSAFO
  4033. |.:#U
  4034. O=Lotus Notes
  4035. CN=Lotus Notes Template Development/O=Lotus Notes
  4036. PURSAFO
  4037. $TITLE
  4038. $INFO
  4039. $$ScriptName
  4040. $BODY
  4041. '++LotusScript Development Environment:2:5:(Options):0:74
  4042. Option Public
  4043. Use "ObjectVariables"
  4044. '++LotusScript Development Environment:2:5:(Forward):0:1
  4045. '++LotusScript Development Environment:2:5:(Declarations):0:10
  4046. Dim note1 As NotesDocument
  4047. Dim dt1 As NotesDateTime
  4048. Dim OldStartDate As Variant
  4049. Dim OldRepeatUnit As String
  4050. Dim OldInterval As Integer
  4051. (RepeatForm)'++LotusScript Development Environment:2:5:(Options):0:66
  4052. '++LotusScript Development Environment:2:5:(Forward):0:1
  4053. Declare Sub Postopen(Source As Notesuidocument)
  4054. Declare Sub Postrecalc(Source As Notesuidocument)
  4055. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  4056. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4057. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4058. Private Sub BindEvents(Byval Objectname_ As String)
  4059.      Static Source As NOTESUIDOCUMENT
  4060.      Set Source = Bind(Objectname_)
  4061.      On Event Postopen From Source Call Postopen
  4062.      On Event Postrecalc From Source Call Postrecalc
  4063.      On Event Queryclose From Source Call Queryclose
  4064. End Sub
  4065. '++LotusScript Development Environment:2:2:Postopen:1:12
  4066. Sub Postopen(Source As Notesuidocument)
  4067.      Set uidoc = source
  4068.      Set note1 = source.document
  4069.      RepeatUnit = Left(note1.RepeatUnit(0), 1)
  4070.      OldRepeatUnit = RepeatUnit
  4071.      OldStartDate = note1.RepeatStartDate(0)
  4072.      note1.RepeatStartDate = note1.StartDate
  4073.      
  4074. 'we need to initialize OldInterval and OldRepeatUnit so postrecalc won't recalc values
  4075.      Select Case RepeatUnit
  4076.      Case "W"
  4077.           OldInterval = Cint(note1.RepeatInterval_W(0)) * 2
  4078.      Case "M"
  4079.           OldInterval = Cint(note1.RepeatInterval_MDMP(0)) * 2
  4080.      Case "D"
  4081.           OldInterval = Cint(note1.RepeatInterval_D(0)) * 2
  4082.      Case "Y"
  4083.           OldInterval = Cint(note1.RepeatInterval_YD(0)) * 2
  4084.      End Select
  4085.      
  4086. End Sub
  4087. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  4088. Sub Postrecalc(Source As Notesuidocument)
  4089.      
  4090. 'this recalcs RepeatUntil - but we only want to do it if RepeatUnit or RepeatInterval has changed
  4091.      Call TIMEGetNotesFromLS(note1.GetITemValue("RepeatStartDate")(0), dt1)          
  4092.      RepeatUnit = Left(note1.RepeatUnit(0), 1)
  4093.      
  4094.      If RepeatUnit = "" Then
  4095.           note1.RepeatForUnit = "W"
  4096.           dt1.AdjustMonth(1)
  4097.      Elseif RepeatUnit = "C" Then
  4098.           If Not(Isdate(note1.RepeatAdjust_C(0))) Then note1.RepeatAdjust_C = note1.RepeatStartDate
  4099.      Else
  4100.           Select Case RepeatUnit
  4101.           Case "W"
  4102.                Interval = Cint(note1.RepeatInterval_W(0)) * 2
  4103.                Gosub CheckPreviousValues
  4104.                note1.RepeatForUnit = "W"
  4105.                note1.RepeatFor = Interval
  4106.                dt1.AdjustDay(Interval * 7)
  4107.           Case "M"
  4108.                Interval = Cint(note1.RepeatInterval_MDMP(0)) * 2
  4109.                Gosub CheckPreviousValues
  4110.                note1.RepeatForUnit = "M"
  4111.                note1.RepeatFor = Interval
  4112.                dt1.AdjustMonth(Interval)
  4113.           Case "D"
  4114.                Interval = Cint(note1.RepeatInterval_D(0)) * 2
  4115.                Gosub CheckPreviousValues
  4116.                note1.RepeatForUnit = "D"
  4117.                note1.RepeatFor = Interval               
  4118.                dt1.AdjustDay(Interval)
  4119.           Case "Y"
  4120.                Interval = Cint(note1.RepeatInterval_YD(0)) * 2
  4121.                Gosub CheckPreviousValues
  4122.                note1.RepeatForUnit = "Y"
  4123.                note1.RepeatFor = Interval                              
  4124.                dt1.AdjustYear(Interval)
  4125.           End Select
  4126.      End If
  4127.      
  4128.      OldInterval = Interval
  4129.      OldRepeatUnit = RepeatUnit
  4130.      OldStartDate = note1.RepeatStartDate(0)
  4131.      note1.RepeatUntil = dt1.LSLocalTime
  4132.      uidoc.reload
  4133.      
  4134.      Exit Sub
  4135.      
  4136. CheckPreviousValues:
  4137. 'This just checks to see if we should continue with the recalc
  4138.      If Interval = OldInterval And RepeatUnit = OldRepeatUnit And _
  4139.      note1.RepeatStartDate(0) = OldStartDate Then Exit Sub
  4140.      
  4141.      Return
  4142. End Sub
  4143. '++LotusScript Development Environment:2:2:Queryclose:1:12
  4144. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  4145.      
  4146.      If uidoc.DialogBoxCanceled Then Exit Sub
  4147.      
  4148.      Dim MessageText As String
  4149.      
  4150.      If note1.RepeatHow(0) = "U" Then
  4151.           StartDate = note1.RepeatStartDate(0)
  4152.           UntilDate = note1.RepeatUntil(0)
  4153.           If StartDate > UntilDate Then
  4154.                MessageText = "The Until Date must be greater than the Starting Date."
  4155.                FieldName = "RepeatUntil"
  4156.                Gosub ValidationFailed
  4157.           End If
  4158.      End If
  4159.      
  4160.      Select Case note1.RepeatUnit(0)
  4161.      Case "W"
  4162.           If note1.RepeatAdjust_W(0) = "" Then
  4163.                MessageText = "You must select at least one day to repeat."
  4164.                FieldName = "RepeatAdjust_W"
  4165.                Gosub ValidationFailed
  4166.           End If
  4167.           If note1.RepeatHow(0) = "F" Then
  4168.                Select Case note1.RepeatForUnit(0)
  4169.                Case "D" 
  4170.                     CompareInterval = Cint(note1.RepeatInterval_W(0)) * 7
  4171.                Case "W" 
  4172.                     CompareInterval = Cint(note1.RepeatInterval_W(0))
  4173.                Case "M" 
  4174.                     CompareInterval = Cint(note1.RepeatInterval_W(0)) / 4
  4175.                Case "Y" 
  4176.                     CompareInterval = 0
  4177.                End Select
  4178.           End If
  4179.      Case "MP", "MD"
  4180.           If note1.RepeatUnit(0) = "MP" And note1.RepeatAdjust_MP(0) = "" Then
  4181.                MessageText = "You must select at least one day to repeat."
  4182.                FieldName = "RepeatAdjust_MP"
  4183.                Gosub ValidationFailed
  4184.           End If
  4185.           If note1.RepeatUnit(0) = "MD" And note1.RepeatAdjust_MD(0) = "" Then
  4186.                MessageText = "You must select at least one day to repeat."
  4187.                FieldName = "RepeatAdjust_MD"
  4188.                Gosub ValidationFailed
  4189.           End If
  4190.           If note1.RepeatHow(0) = "F" Then
  4191.                Select Case note1.RepeatForUnit(0)
  4192.                Case "D" 
  4193.                     CompareInterval = Cint(note1.RepeatInterval_MDMP(0)) * 30
  4194.                Case "W" 
  4195.                     CompareInterval = Cint(note1.RepeatInterval_MDMP(0)) * 4
  4196.                Case "M" 
  4197.                     CompareInterval = Cint(note1.RepeatInterval_MDMP(0))
  4198.                Case "Y" 
  4199.                     CompareInterval = 0
  4200.                End Select
  4201.           End If
  4202.      Case "YD"
  4203.           If note1.RepeatHow(0) = "F" Then
  4204.                Select Case note1.RepeatForUnit(0)
  4205.                Case "D" 
  4206.                     CompareInterval = Cint(note1.RepeatInterval_YD(0)) * 365
  4207.                Case "W" 
  4208.                     CompareInterval = Cint(note1.RepeatInterval_YD(0)) * 52
  4209.                Case "M" 
  4210.                     CompareInterval = Cint(note1.RepeatInterval_YD(0)) * 12
  4211.                Case "Y" 
  4212.                     CompareInterval = Cint(note1.RepeatInterval_YD(0))
  4213.                End Select
  4214.           End If
  4215.      Case "C"
  4216.           If note1.RepeatAdjust_C(0) = "" Then
  4217.                MessageText = "You must enter at least one date to repeat."
  4218.                FieldName = "RepeatAdjust_C"
  4219.                Gosub ValidationFailed
  4220.           End If
  4221.      End Select
  4222.      
  4223.      If note1.RepeatHow(0) = "F" Then
  4224.           Select Case note1.RepeatForUnit(0)
  4225.           Case "D" 
  4226.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  4227.                MessageText = "The number of days is inconsistent with the frequency."
  4228.           Case "W" 
  4229.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  4230.                MessageText = "The number of weeks is inconsistent with the frequency."
  4231.           Case "M" 
  4232.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  4233.                MessageText = "The number of months is inconsistent with the frequency."
  4234.           Case "Y" 
  4235.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  4236.                MessageText = "The number of years is inconsistent with the frequency."
  4237.           End Select
  4238.           If MessageText <> "" Then
  4239.                FieldName = "RepeatFor"
  4240.                Gosub ValidationFailed
  4241.           End If
  4242.      End If
  4243.      
  4244.      Exit Sub
  4245.      
  4246. ValidationFailed:
  4247.      Messagebox MessageText, 0, "Validation Error"
  4248.      uidoc.GoToField(FieldName)
  4249.      continue = False
  4250.      Exit Sub
  4251.      
  4252. End Sub
  4253. Q$    } 
  4254. Q$    } 
  4255. Q$    }l
  4256.     ,0    Jl    
  4257. OrgRepeat
  4258. RepeatDates
  4259. RepeatUnit
  4260.     1S2S
  4261. RepeatUnit
  4262. RepeatDates
  4263. StartDateTime
  4264. RepeatDates
  4265. RepeatAdjust_C
  4266.     3S4S6S9S10S12S17S20S
  4267. RepeatAdjust_CK
  4268.     0S0E
  4269. RepeatAdjust_C
  4270. RepeatUnit
  4271.     1S2S
  4272. RepeatUnit
  4273. RepeatAdjust
  4274. RepeatAdjust
  4275. RepeatAdjust_MD
  4276.     3S4S5S6S7S8S10S12S
  4277. RepeatAdjust_MD
  4278. 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
  4279. RepeatUnit
  4280.     1S2S
  4281. RepeatUnit
  4282. RepeatAdjust
  4283. RepeatAdjust
  4284. RepeatAdjust_MP
  4285.     3S4S5S6S7S8S10S12S
  4286. RepeatAdjust_MP#
  4287. 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
  4288. RepeatUnit
  4289.     1S2S
  4290. RepeatUnit
  4291. RepeatAdjust
  4292. RepeatAdjust
  4293. StartDateTime
  4294.     3S4S5S6S7S8S10S12S
  4295. RepeatAdjust_W
  4296. Sunday|0Monday|1Tuesday|2Wednesday|3Thursday|4Friday|5Saturday|6
  4297. RepeatUnit
  4298. AppointmentType
  4299. RepeatUnit
  4300.     3S4S6S9S10S12S14S17S
  4301. RepeatUnit
  4302. Daily|DWeekly|WMonthly by Date|MDMonthly by Day|MPYearly|YDCustom|C
  4303. RepeatUnit
  4304.     3S4S5S6S
  4305. RepeatUnit
  4306. RepeatInterval
  4307. RepeatInterval
  4308. RepeatInterval_MDMP
  4309. RepeatInterval_MDMP
  4310.     3S4S5S6S7S8S9S10S12S14S15S16S18S20SRepeatInterval_MDMP
  4311. 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
  4312. RepeatUnit
  4313.     1S2S
  4314. StartDate
  4315.     0S0E
  4316. RepeatStartDate
  4317. RepeatHow
  4318. RepeatHow
  4319.     3S4S6S8S
  4320. RepeatHow
  4321. Until|UFor|F
  4322. RepeatHow
  4323. RepeatUnit
  4324.     3S4S5S6S
  4325. RepeatUntil
  4326. RepeatUntil
  4327.     3S4S6S8S
  4328. StartDate
  4329. RepeatStartDate
  4330.     0R1S2S
  4331. RepeatUnit
  4332. StartDate
  4333. RepeatUnit
  4334. StartDate
  4335. RepeatUnit
  4336. StartDate
  4337. RepeatUnit
  4338. StartDate
  4339. StartDate
  4340.     0R3S4S6S10S12S14S16S18S20S23S24S25S27S31S33S35S37S39S41S44S48S50S51S53S57S59S61S63S65S67S70S74S76S77S79S83S85S87S89S91S93S96SRepeatUntil
  4341. RepeatUnit
  4342.     1S2S3S4S5S6S
  4343. RepeatWeekends
  4344. RepeatWeekends
  4345.     3S4S6S8S
  4346. RepeatUnit
  4347. RepeatWeekends
  4348.     3S4S5S6S7S8S10S12S
  4349. RepeatWeekends
  4350. Don't Move|DMove to Friday|FMove to Monday|MMove to Nearest Weekday|NDelete|X
  4351. RepeatHow
  4352. RepeatUnit
  4353.     3S4S5S6S
  4354. RepeatForUnit
  4355. RepeatUnit
  4356. RepeatForUnit
  4357.     3S4S6S10S13S
  4358. RepeatForUnit
  4359. RepeatFor
  4360. Day|D
  4361. Week|W
  4362. Month|M
  4363. Year|Y
  4364. Days|D
  4365. Weeks|W
  4366. Months|M
  4367. Years|Y
  4368.     3S4S6S7S8S9S10S11S12S14S15S16S17S18S19S20S
  4369. RepeatFor
  4370. RepeatFor
  4371.     3S4S6S8S
  4372. RepeatFor
  4373. RepeatUnit
  4374.     1S2S
  4375. RepeatUnit
  4376. RepeatInterval
  4377. RepeatInterval
  4378. RepeatInterval_YD
  4379. RepeatInterval_YD
  4380.     3S4S5S6S7S8S10S12S13S14S16S18S
  4381. RepeatInterval_YD
  4382. 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
  4383. RepeatUnit
  4384.     1S2S
  4385. RepeatUnit
  4386. RepeatInterval
  4387. RepeatInterval
  4388. RepeatInterval_D
  4389. RepeatInterval_D
  4390.     3S4S5S6S7S8S10S12S13S14S16S18S
  4391. RepeatInterval_D
  4392. 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
  4393. Starting date
  4394. Repeat
  4395. At weekends
  4396. RepeatUnit
  4397. RepeatInterval
  4398. RepeatInterval
  4399. RepeatInterval_W
  4400. RepeatInterval_W
  4401.     3S4S5S6S7S8S10S12S13S14S16S18S
  4402. RepeatInterval_W
  4403. Every|1Every 2nd|2Every 3rd|3Every 4th|4Every 5th|5Every 6th|6Every 7th|7Every 8th|8
  4404.     Enter dates below (no times):
  4405. O=Lotus Notes
  4406. O=Lotus Notes
  4407. PURSAFO
  4408. |.:#U
  4409. O=Lotus Notes
  4410. CN=Lotus Notes Template Development/O=Lotus Notes
  4411. PURSAFO
  4412. RepeatEnd
  4413. RepeatStart
  4414. StartDate
  4415. $FormPublicAccess
  4416. $TITLE
  4417. $INFO
  4418. $Script
  4419. $$Script_O
  4420. $$ScriptName
  4421. $$FormScript
  4422. $$$FormScript_O
  4423. RepeatDates
  4424. RepeatAdjust_C
  4425. RepeatStartDate
  4426. RepeatUntil
  4427. RepeatFor
  4428. $BODY
  4429. $PublicAccess
  4430. VersionOpt|
  4431.     6S7S9S14S
  4432. $VersionOpt
  4433.     0R1S2S3S
  4434. SavedOnce
  4435.     0R1S2S3S
  4436. PostedDate(
  4437.     0R1S2S3S
  4438. DeliveredDate
  4439.     0R1S2S3S
  4440. $AutoEditMode
  4441.     0R1S2S3S
  4442. MailSaveOptions
  4443.     0R1S2S3S
  4444. VersionOpt
  4445.     0R4S
  4446. Phone Message
  4447. Subject
  4448. Subject
  4449. Subject
  4450.     4S6S12S13S14S15S17S21S23S25S26S28S
  4451. Times New Roman
  4452. '++LotusScript Development Environment:2:5:(Options):0:74
  4453. Option Public
  4454. Use "EmailProcessing"
  4455. Use "DocumentConversions"
  4456. '++LotusScript Development Environment:2:5:(Forward):0:1
  4457. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4458.  Phone Message'++LotusScript Development Environment:2:5:(Options):0:66
  4459. '++LotusScript Development Environment:2:5:(Forward):0:1
  4460. Declare Sub Postopen(Source As Notesuidocument)
  4461. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  4462. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  4463. Declare Sub Postmodechange(Source As Notesuidocument)
  4464. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4465. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4466. Private Sub BindEvents(Byval Objectname_ As String)
  4467.      Static Source As NOTESUIDOCUMENT
  4468.      Set Source = Bind(Objectname_)
  4469.      On Event Postopen From Source Call Postopen
  4470.      On Event Querysave From Source Call Querysave
  4471.      On Event Queryclose From Source Call Queryclose
  4472.      On Event Postmodechange From Source Call Postmodechange
  4473. End Sub
  4474. '++LotusScript Development Environment:2:2:Postopen:1:12
  4475. Sub Postopen(Source As Notesuidocument)
  4476.      
  4477.      Set ws = New NotesUIWorkSpace
  4478.      Set uidoc = source
  4479.      
  4480.      Call EmailOpen
  4481.      
  4482. End Sub
  4483. '++LotusScript Development Environment:2:2:Querysave:1:12
  4484. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  4485.      
  4486.      Call EmailSave(Continue)
  4487.      
  4488. End Sub
  4489. '++LotusScript Development Environment:2:2:Queryclose:1:12
  4490. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  4491.      
  4492.      Call EmailClose(Continue)
  4493.      
  4494. End Sub
  4495. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  4496. Sub Postmodechange(Source As Notesuidocument)
  4497.      
  4498.      Call EmailModeChange
  4499.      
  4500. End Sub
  4501.     Always Hidden: 
  4502. Principal
  4503. CalendarProfile
  4504. Owner
  4505.     1S2S3S7S
  4506. Principal
  4507. Principal
  4508.     0R3S4S6S8S
  4509. FromPerson memo is from.
  4510.     0S0E
  4511.     0S0E
  4512. Encrypt
  4513.     0S0E
  4514. DefaultMailSaveOptions
  4515. $KeepPrivate
  4516. $KeepPrivate
  4517. $KeepPrivate
  4518.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  4519.     From:    
  4520. Principal
  4521. Principal
  4522. FromDomain
  4523. FromDomain
  4524. FromDomain
  4525. FromDomain
  4526.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  4527. FromName
  4528. Principal
  4529. Principal
  4530.     0RR1S2S9S11S15S
  4531. FromStops
  4532.     0R1S2S6S
  4533. FromName
  4534. FromStops
  4535. FromStops
  4536. FromStops
  4537.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  4538.      on 
  4539. PostedDateh
  4540. PostedDate
  4541.     7S9S
  4542. tmpDisplayDateTime/date memo was created or mailed.
  4543. ReplyDate
  4544. ReplyTo
  4545.     1S2S3S4S5S6S
  4546. Please respond
  4547. ReplyTo
  4548. ReplyTo
  4549. ReplyDate
  4550. ReplyDate
  4551.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  4552. $HideMailHeader
  4553. Principal
  4554. Principal
  4555. Principal
  4556. Principal
  4557. Principal
  4558.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  4559.     Sent by:    
  4560. FromDomain
  4561. FromDomain
  4562. FromDomain
  4563. FromDomain
  4564.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  4565. FromName
  4566.     0RR1S2S6S
  4567. FromStops
  4568.     0R1S2S6S
  4569. FromName
  4570. FromStops
  4571. FromStops
  4572. FromStops
  4573.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  4574. SendTo
  4575. CopyTo
  4576.   cc:  
  4577. CopyTo
  4578.     1S8S13S14S2E17S18S21S28S31S
  4579. SendTo}
  4580.     0S0E
  4581. SendToList of primary people to send memo.
  4582. CopyTo}
  4583.     0S0E
  4584. CopyToList of people to send a copy of the memo.
  4585. DeliveredDate
  4586. BlindCopyTo
  4587. (bcc: 
  4588. BlindCopyTo
  4589.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  4590.     bcc:
  4591. BlindCopyTo
  4592.     0S0E
  4593. BlindCopyToList of undisclosed people to send copies of memo.
  4594. While You Were Out
  4595. Contact:
  4596. Phone:
  4597. PhoneCaller
  4598. tmpPhoneCaller
  4599. CompanyName
  4600. tmpCompanyName
  4601. PhoneNumber
  4602. tmpPhoneNumber
  4603. FaxNumber
  4604. tmpFaxNumber
  4605. PhoneCaller
  4606. CompanyName
  4607. PhoneNumber
  4608. FAXNumber
  4609. PhoneReason
  4610. PhoneReason    
  4611. Telephoned|TPlease Call|PWill Call Again|WReturned Call|RWas In|IWill Return|LLeft Package|KPlease See Me|MUrgent|N
  4612.     Message:
  4613. Phone Message from 
  4614. PhoneCaller
  4615.     1S2S
  4616. Subject
  4617. Edit Document
  4618. ForwardK 
  4619.     0S0E
  4620. New Memo.
  4621.     0S0E
  4622. Delete 
  4623.     0S0E
  4624. _Move To Folder...
  4625. Delivery Information...Kz
  4626. DeliveryInfo
  4627. Delivery Information
  4628.     4S5S6S7S8S9S10S12S
  4629. _Forward
  4630. Reply
  4631. Reply
  4632.     0S0E
  4633. Reply With History
  4634. Reply with History
  4635. This document is truncated.
  4636.     4S8S10S13S
  4637. Reply with history
  4638. Address... 
  4639.     0S0E
  4640. PostedDateh
  4641.     5S6S7S8S
  4642. Close
  4643.     0S0E
  4644. IsMailStationeryh
  4645. PostedDateh
  4646.     6S7S
  4647. Save As Draft
  4648. tmpAction
  4649. SaveAsDraft
  4650.     1S2S3S
  4651. IsMailStationeryh
  4652. PostedDateh
  4653.     4S5S
  4654. PromptValue
  4655. DefaultMailSaveOptions
  4656. Save when sent
  4657. Do you wish to save a copy of this Memo?
  4658. DefaultMailSaveOptions
  4659.     1S2S5S6S8S14S17S
  4660. SaveOptions
  4661. PromptValue
  4662. SaveOptions
  4663. PromptValue
  4664.     0RR1S2S5S6S9S14S
  4665. tmpAction
  4666. DefaultMailSaveOptions
  4667. Mailing
  4668.     0RR1S2S3S6S7S9S11S
  4669. MailOptions
  4670.     0R1S2S3S
  4671.     0R7S9S
  4672. tmpAction
  4673. SaveOptions
  4674. SendAndFile
  4675.     0RR1S2S3S6S7S9S11S
  4676.     0R7S9S
  4677. PostedDateh
  4678. IsMailStationeryh
  4679.     5S6S7S8S10S11S
  4680. Send And File...
  4681.     4S11S13S19S
  4682.     0RR7S9S
  4683. tmpAction
  4684. DefaultMailSaveOptions
  4685. Mailing
  4686.     0RR1S2S3S6S7S9S11S
  4687. MailOptions
  4688.     0R1S2S3S
  4689.     0R7S9S
  4690. tmpAction
  4691. SendAndFile
  4692.     0RR1S2S3S
  4693.     0R7S9S
  4694. PostedDateh
  4695. IsMailStationeryh
  4696.     5S6S7S8S10S11S
  4697. Delivery Options...K
  4698. DeliveryOptions
  4699. Delivery Options
  4700.     4S8S
  4701. _ViewIcon
  4702. SenderTag
  4703. SenderTag
  4704. SenderTag
  4705. SenderTag
  4706. SenderTag
  4707. SenderTag
  4708. SenderTag
  4709. SenderTag
  4710. SenderTag
  4711. SenderTag
  4712. SenderTag
  4713.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  4714. PostedDateh
  4715.     5S6S7S8S
  4716. Special Options...
  4717. ReplyDate
  4718. ReplyDate
  4719.     1S2S3S
  4720. ReplyTo
  4721. ReplyTo
  4722.     0R1S2S3S
  4723. (Advanced Options)
  4724. Special Options
  4725.     0R6S10S13S15S
  4726. tmpDisplayReplyInfo
  4727. Please respond
  4728. ReplyTo
  4729. ReplyTo
  4730. ReplyDate
  4731. ReplyDate
  4732.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  4733. DueDateTime
  4734. ReplyDate
  4735.     0R1S2S3S
  4736. PostedDateh
  4737.     5S6S7S8S
  4738. _Remove From Folder...
  4739. Categori_zeK
  4740. SSend
  4741. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  4742. '++LotusScript Development Environment:2:5:(Forward):0:1
  4743. Declare Sub Click(Source As Button)
  4744. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4745. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4746. Private Sub BindEvents(Byval Objectname_ As String)
  4747.      Static Source As BUTTON
  4748.      Set Source = Bind(Objectname_)
  4749.      On Event Click From Source Call Click
  4750. End Sub
  4751. '++LotusScript Development Environment:2:2:Click:1:12
  4752. Sub Click(Source As Button)
  4753.      Call CreateNewDoc(NEW_MEMO)
  4754. End Sub
  4755. tmpnewdoc
  4756.     1S2S
  4757. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  4758. '++LotusScript Development Environment:2:5:(Forward):0:1
  4759. Declare Sub Click(Source As Button)
  4760. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4761. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4762. Private Sub BindEvents(Byval Objectname_ As String)
  4763.      Static Source As BUTTON
  4764.      Set Source = Bind(Objectname_)
  4765.      On Event Click From Source Call Click
  4766. End Sub
  4767. '++LotusScript Development Environment:2:2:Click:1:12
  4768. Sub Click(Source As Button)
  4769.      Call CreateNewDoc(NEW_CALENDAR)
  4770. End Sub
  4771. tmpnewdoc
  4772.     1S2S
  4773. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  4774. '++LotusScript Development Environment:2:5:(Forward):0:1
  4775. Declare Sub Click(Source As Button)
  4776. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4777. '++LotusScript Development Environment:2:2:BindEvents:1:129
  4778. Private Sub BindEvents(Byval Objectname_ As String)
  4779.      Static Source As BUTTON
  4780.      Set Source = Bind(Objectname_)
  4781.      On Event Click From Source Call Click
  4782. End Sub
  4783. '++LotusScript Development Environment:2:2:Click:1:12
  4784. Sub Click(Source As Button)
  4785.      Call CreateNewDoc(NEW_TASK)
  4786. End Sub
  4787. tmpnewdoc
  4788.     1S2S
  4789. Copy into\New GroupK,
  4790. NewGroup
  4791.     0S0E
  4792. tmpnewdoc
  4793.     1S2S
  4794. O=Lotus Notes
  4795. O=Lotus Notes
  4796. PURSAFO
  4797. |.:#U
  4798. O=Lotus Notes
  4799. CN=Lotus Notes Template Development/O=Lotus Notes
  4800. PURSAFO
  4801. $$FormPostOpenAction
  4802. $TypeIcon
  4803. ExpireDate
  4804. ReplyDate
  4805. ComposedDate
  4806. $TITLE
  4807. $INFO
  4808. $WINDOWTITLE
  4809. $Script
  4810. $$Script_O
  4811. $$ScriptName
  4812. $$FormScript
  4813. $$$FormScript_O
  4814. $BODY
  4815. $ACTIONS
  4816. $SCRIPTOBJ_19
  4817. $SCRIPTOBJ_20
  4818. $SCRIPTOBJ_21
  4819. Wild ConfettiStdNotesLtr32CU3
  4820. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes>
  4821. ##########################################################
  4822. !X%`P
  4823. First InitialStdNotesLtr6CU3
  4824. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  4825. ##########################################################
  4826. Falling SpheresStdNotesLtr5CU3
  4827. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################################
  4828. Slashed Lines with GlobeStdNotesLtr21CU3
  4829. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################################################
  4830. (Delivery Info)DeliveryInfo1CDU
  4831. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#
  4832. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  4833. Out Of Office ProfileOutOfOfficeProfile
  4834. CN=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 NotesCDw##########################
  4835. Pony ExpressStdNotesLtr17CU3
  4836. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  4837. ##########################################################
  4838. CenteredStdNotesLtr3CU3
  4839. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################################
  4840. Green and Yellow DiamondStdNotesLtr14CU3
  4841. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  4842. Plain TextStdNotesLtr0CU3
  4843. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  4844. ##########################################################
  4845. 1(NamesPrompt)1
  4846. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCDU############################################
  4847. Triangle with Dots 1StdNotesLtr29CU3
  4848. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########################################
  4849. Three Dimensional ReliefStdNotesLtr27CU3
  4850. CN=Paul DiCristina/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################
  4851. 1(NoticeOptionsDlg)CDU31
  4852. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################
  4853. 1(InviteeResponses)UC31
  4854. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################
  4855. 1(PeopleListDlg)1U
  4856. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##############################################
  4857. (NonDelivery Report)DeliveryReportNonDelivery Report
  4858. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notesw###################################################
  4859. Frank LloydStdNotesLtr7CU3
  4860. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  4861. 1(ChangeRepeating)1
  4862. 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###############
  4863. Teal and Yellow LinesStdNotesLtr26CU3
  4864. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################################
  4865. Metal PlateStdNotesLtr15CU3
  4866. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#
  4867. ##########################################################
  4868. 1(CalendarHelp)1U
  4869. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  4870. ##########################################################
  4871. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  4872. Archive ProfileArchiveProfileArchive Profile
  4873. CN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCDw#
  4874. (ArchiveInstructions)(ArchiveInstructions)1CU
  4875. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########################
  4876. DeccoStdNotesLtr4CU3
  4877. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######
  4878. _Special\Temporary Export CertificateTemporary Export Certificate
  4879. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notesw################
  4880. Squiggle with BackdropStdNotesLtr22CU3
  4881. CN=Paul DiCristina/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################
  4882. MarqueeStdNotesLtr34CU3
  4883. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###
  4884. From The DeskStdNotesLtr8CU3
  4885. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####
  4886. $FORWARDSEPCU3
  4887. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########
  4888. TapeStdNotesLtr25CU3
  4889. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##############
  4890. Yellow GradientStdNotesLtr33CU3
  4891. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  4892. Buck Rogers MailStdNotesLtr2CU3
  4893. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  4894. TacksStdNotesLtr24CU3
  4895. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############
  4896. (ArchiveProfileDlg)1CDU
  4897. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################################
  4898. _Special\_Memo To Database ManagerMemow
  4899. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################################
  4900. 0(LetterHeadChooser)
  4901. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCDw############
  4902. GatewayStdNotesLtrGatewayCU3
  4903. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  4904. CN=Keith Hatfield/OU=CAM/O=LotusCN=Lotus Notes Template Development/O=Lotus Notes####################################
  4905. P5~K-!W
  4906. AutoProcessNotices
  4907. 5SfL3
  4908. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################################
  4909. (Delegation Profile)DelegationProfile1
  4910. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notesw##################
  4911. TaskTaskDw
  4912. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##############
  4913. (Notice)Noticew1
  4914. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################
  4915. _Calendar EntryAppointmentw1
  4916. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###################################################
  4917. (Copy into\New Group) | NewGroup
  4918. E4fL3
  4919. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########################
  4920. Times New Roman
  4921.  StdNotesLtr32
  4922. tmpDisplayFrom_Preview
  4923. tmpFrom
  4924. tmpDisplayDate_Preview
  4925. tmpDate
  4926. O=Lotus Notes
  4927. O=Lotus Notes
  4928. PURSAFO
  4929. |.:#U
  4930. O=Lotus Notes
  4931. CN=Lotus Notes Template Development/O=Lotus Notes
  4932. PURSAFO
  4933. $TITLE
  4934. $INFO
  4935. $$ScriptName
  4936. $BODY
  4937. &Arial Narrow
  4938. "Helvetica
  4939.  StdNotesLtr6
  4940. @___@
  4941. <a>7`^
  4942. `!bb!R
  4943.     6S9S
  4944. tmpFrom1stInitial
  4945. tmpDisplayFrom_Preview
  4946.     6S9S
  4947. tmpFromRestOfName
  4948. @___@
  4949. <a>7`^
  4950. `!bb!R
  4951. tmpDisplayDate_Preview
  4952. tmpDate
  4953. @___@
  4954. <a>7`^
  4955. `!bb!R
  4956. O=Lotus Notes
  4957. O=Lotus Notes
  4958. PURSAFO
  4959. |.:#U
  4960. O=Lotus Notes
  4961. CN=Lotus Notes Template Development/O=Lotus Notes
  4962. PURSAFO
  4963. Fde!f^^
  4964. $TITLE
  4965. $INFO
  4966. $$ScriptName
  4967. $BODY
  4968. Times New Roman
  4969.  StdNotesLtr21
  4970. tmpDisplayFrom_Preview
  4971. tmpFrom
  4972. tmpDisplayDate_Preview
  4973. tmpDate
  4974. O=Lotus Notes
  4975. O=Lotus Notes
  4976. PURSAFO
  4977. |.:#U
  4978. O=Lotus Notes
  4979. CN=Lotus Notes Template Development/O=Lotus Notes
  4980. PURSAFO
  4981. $TITLE
  4982. $INFO
  4983. $$ScriptName
  4984. $BODY
  4985.  DeliveryInfo
  4986. Importance:
  4987. Importance
  4988. Importance
  4989. Normal
  4990.     3S4S6S8S9S10S12S14StmpImportanceInfo
  4991. Signed:
  4992. Encrypted:
  4993. Return receipt:
  4994.     3S4S6S8S
  4995. tmpSignedInfo
  4996. Encrypt
  4997.     3S4S6S8S
  4998. tmpEncryptInfo
  4999. $KeepPrivate
  5000. Do not forward, copy or print!
  5001.     3S4S6S8S
  5002. tmpKeepPrivateInfo
  5003. ReturnReceipt
  5004.     3S4S6S8S
  5005. tmpReceiptInfo
  5006. PostedDate
  5007. Not sent yet
  5008. PostedDate
  5009. D1T1V
  5010.  Sent
  5011. DeliveredDate
  5012. DeliveredDate
  5013. D1T1V
  5014.  Delivered"
  5015. $AdditionalHeaders
  5016. -------- Additional  Header  ------
  5017. $AdditionalHeaders
  5018. SMTPHeaders
  5019. -------- Additional  Header  ------
  5020. SMTPHeaders
  5021. DeliveredDate
  5022. -------- Routing Information ------
  5023. DeliveredDate
  5024. RouteTimes
  5025. D1T1V
  5026.  at server 
  5027. RouteServers
  5028.     2R5S6S7S8RS8E10S16S17S20R23S24S26RS8E28S34S35S38R41S42S44RS8E46S49R50S51R54S55S57RS8E59S62R63S64R67S68S70RS8E72S75R78S79S81RS7E83S91S99S2E101RStmpPostedDateInfo
  5029. Delivery information:
  5030. FromDomain
  5031. FromDomain"
  5032.     1S2S5S6S8S10S11S12StmpFromInfo
  5033. From:
  5034. Categori_ze
  5035. _Edit Document
  5036. Send Docu_ment
  5037. _Forward
  5038. _Move to Folder...
  5039. _Remove from Folder...
  5040. O=Lotus Notes
  5041. O=Lotus Notes
  5042. PURSAFO
  5043. |.:#U
  5044. O=Lotus Notes
  5045. CN=Lotus Notes Template Development/O=Lotus Notes
  5046. PURSAFO
  5047. Fde!f^^
  5048. ExpireDate
  5049. ReplyDate
  5050. $Phone_O
  5051. $TITLE
  5052. $INFO
  5053. $$Script_O
  5054. $$ScriptName
  5055. $BODY
  5056. $ACTIONS
  5057. $PublicAccess
  5058. Out of Office Profile
  5059. Times New Roman
  5060. '++LotusScript Development Environment:2:5:(Options):0:66
  5061. Option Public
  5062. '++LotusScript Development Environment:2:5:(Forward):0:1
  5063. '++LotusScript Development Environment:2:5:(Declarations):0:10
  5064. Dim uidoc As NotesUIDocument
  5065.  OutOfOfficeProfile'++LotusScript Development Environment:2:5:(Options):0:66
  5066. '++LotusScript Development Environment:2:5:(Forward):0:1
  5067. Declare Sub Postopen(Source As Notesuidocument)
  5068. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5069. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5070. Private Sub BindEvents(Byval Objectname_ As String)
  5071.      Static Source As NOTESUIDOCUMENT
  5072.      Set Source = Bind(Objectname_)
  5073.      On Event Postopen From Source Call Postopen
  5074. End Sub
  5075. '++LotusScript Development Environment:2:2:Postopen:1:12
  5076. Sub Postopen(Source As Notesuidocument)
  5077.      Set uidoc = source
  5078. End Sub
  5079. '++LotusScript Development Environment:2:5:(Options):0:66
  5080. '++LotusScript Development Environment:2:5:(Forward):0:1
  5081. Declare Sub Exiting(Source As Field)
  5082. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5083. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5084. Private Sub BindEvents(Byval Objectname_ As String)
  5085.      Static Source As FIELD
  5086.      Set Source = Bind(Objectname_)
  5087.      On Event Exiting From Source Call Exiting
  5088. End Sub
  5089. '++LotusScript Development Environment:2:2:Exiting:1:12
  5090. Sub Exiting(Source As Field)
  5091.      uidoc.refresh
  5092. End Sub
  5093. '++LotusScript Development Environment:2:5:(Options):0:66
  5094. '++LotusScript Development Environment:2:5:(Forward):0:1
  5095. Declare Sub Exiting(Source As Field)
  5096. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5097. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5098. Private Sub BindEvents(Byval Objectname_ As String)
  5099.      Static Source As FIELD
  5100.      Set Source = Bind(Objectname_)
  5101.      On Event Exiting From Source Call Exiting
  5102. End Sub
  5103. '++LotusScript Development Environment:2:2:Exiting:1:12
  5104. Sub Exiting(Source As Field)
  5105.      uidoc.refresh 
  5106. End Sub
  5107. Normal
  5108. Action
  5109. Profile
  5110.     1S2S
  5111.     Always Hidden: 
  5112. AlreadyNotified
  5113. AlreadyNotified
  5114. Princ
  5115. CalendarProfile
  5116. Owner
  5117.     1S2S6S
  5118. Princ
  5119. Princ
  5120.     0R3S4S6S8S
  5121. Sender
  5122. System
  5123. Please do not delete - Out of Office Profile
  5124. Subject
  5125. ExcludeFromView
  5126. _ViewIcon
  5127. Out Of Office Profile 
  5128.     I will be out of the office on the following dates:
  5129.       
  5130. Leaving:
  5131. Returning:
  5132. FirstDayOut
  5133. pcDate
  5134. FirstDayOut
  5135.     1S2S
  5136. TodayInt,
  5137.     0R1S2S
  5138. ConNext
  5139. pcDate
  5140. nextG
  5141.     0R1S2S8S11S13S
  5142. AdjustAmount
  5143. pcDate
  5144. pcDate
  5145. pcDate
  5146. pcDate
  5147. pcDate
  5148. pcDate
  5149. pcDate
  5150.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  5151. AdjustAmount
  5152. pcDateW
  5153. AdjustAmount
  5154. ConNext
  5155. TodayInt#
  5156.     0R3S4S6S14R20S22S24S27S28S30S31S34S36S38SFirstDayOut
  5157. FirstDayBack
  5158. pcDate
  5159. FirstDayBacka
  5160.     1S2S
  5161. TodayInt,
  5162.     0R1S2S
  5163. ConNext
  5164. pcDate
  5165. nextG
  5166.     0R1S2S8S11S13S
  5167. AdjustAmount
  5168. pcDate
  5169. pcDate
  5170. pcDate
  5171. pcDate
  5172. pcDate
  5173. pcDate
  5174. pcDate
  5175.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  5176. AdjustAmount
  5177. pcDateW
  5178. AdjustAmount
  5179. ConNext
  5180. TodayInt#
  5181.     0R3S4S6S14R20S22S24S27S28S30S31S34S36S38SFirstDayBack
  5182.     My Out of The Office message for most people/groups:
  5183.     Whomever
  5184.     Subject:
  5185.  is out of the office."
  5186.     1S2S
  5187. GeneralSubject
  5188. FirstDayOut
  5189. FirstDayBack
  5190. I will be out of the office from 
  5191. FirstDayOut
  5192.  until 
  5193. FirstDayBackV
  5194.     3S4S5S6S7S8S10S12S13S14S18S19S20S21S25S26S
  5195. DaysOut
  5196. I will respond to your message when I return.
  5197. GeneralMessage
  5198.     People/groups who should receive a special message:
  5199. SpecialPeople
  5200. SpecialPeople
  5201.     My Out of The Office message for special people/groups:
  5202.     Whomever
  5203.     Subject:
  5204.  is out of the office."
  5205.     1S2S
  5206. SpecialSubject
  5207. DaysOut
  5208. dispDaysOut
  5209. SpecialMessage
  5210. SpecialMessage
  5211.     People/groups who should not receive any messages:
  5212. IgnorePeople
  5213. IgnorePeople
  5214. FirstDayOut can be entered as a date or a day of the week.
  5215. It is then converted to a text string containing a date, which 
  5216.     0R1S
  5217. @TextToTime does not always recognize as Text so it is 
  5218.     0R1S
  5219. converted to Text then to Time
  5220.     0R1S
  5221. DateValue
  5222. FirstDayOut
  5223.     0R1S2S
  5224. DateValue
  5225. DateValue
  5226. DateValue
  5227.     0R7S12S17S19S21S
  5228. dateFirstDayOut
  5229. FirstDayBack can be entered as a date or a day of the week.
  5230. It is then converted to a text string containing a date, which 
  5231.     0R1S
  5232. @TextToTime does not always recognize as Text so it is 
  5233.     0R1S
  5234. converted to Text then to Time
  5235.     0R1S
  5236. DateValue
  5237. FirstDayBackV
  5238.     0R1S2S
  5239. DateValue
  5240. DateValue
  5241. DateValue
  5242.     0R7S12S17S19S21S
  5243. dateFirstDayBack
  5244. Closed 
  5245.     0S0E
  5246. _Edit Document
  5247. _Forward
  5248. Enable Out of Office Agentn
  5249.     0S0E
  5250. FirstDayOut
  5251. FirstDayBack
  5252. Validation Error
  5253. You must indicate when you are leaving and when you will be back.
  5254.     0RR3S4S5S6S8S14S16S20S
  5255. FirstDayBackW
  5256. Validation Error
  5257. Your First Day Back is in the Past.  The Out of Office agent will not be enabled.
  5258.     0RR6S7S8S9S11S17S19S23S
  5259. ProcessOutOfOffice
  5260. Out of Office Agent
  5261. Please ask a Manager or Designer of this database to enable the agent for you.
  5262. The Out of Office agent was not enabled.
  5263.     0RR6S8S11S13S19S21S29S30S31S32S35S37S
  5264. Agent Enabled
  5265. The Out of Office agent is now enabled.  When people send you mail between 
  5266. FirstDayOut
  5267.  and 
  5268. FirstDayBackV
  5269.  it will inform them of your absence.
  5270.     0RR4S6S7S8S12S13S14S15S19S20S
  5271. AlreadyNotified
  5272.     0RR1S2S3S2E
  5273. ProcessOutOfOffice
  5274.     0S0E
  5275. I Have Returned To The Office
  5276. ProcessOutOfOffice
  5277. Welcome Back
  5278. No more "Out of Office" messages will be sent.
  5279. Out of Office Agent
  5280. Please ask a Manager or Designer of this database to disable the agent for you.
  5281. The Out of Office agent is still enabled.
  5282.     6S8S11S15S17S20S26S28S36S37S38S39S42S44S
  5283. ProcessOutOfOffice
  5284.     0S0E
  5285. Categori_ze
  5286. Send Docu_ment
  5287. _Move to Folder...
  5288. _Remove from Folder...    
  5289. O=Lotus Notes
  5290. O=Lotus Notes
  5291. PURSAFO
  5292. |.:#U
  5293. O=Lotus Notes
  5294. CN=Lotus Notes Template Development/O=Lotus Notes
  5295. PURSAFO
  5296. DocLife
  5297. ArchiveDate
  5298. $ManualArchivers_O
  5299. ObsoleteLife
  5300. DocumentLife
  5301. $$FirstDayOut1
  5302. $FirstDayOut1_O
  5303. $$FirstDayBack1
  5304. $FirstDayBack1_O
  5305. $TITLE
  5306. $INFO
  5307. $WINDOWTITLE
  5308. $Script
  5309. $$Script_O
  5310. $$ScriptName
  5311. $$FormScript
  5312. $$$FormScript_O
  5313. $$FirstDayOut
  5314. $FirstDayOut_O
  5315. $$FirstDayBack
  5316. $FirstDayBack_O
  5317. $$GeneralMessage
  5318. $GeneralMessage_O
  5319. _ViewIcon
  5320. dateFirstDayOut
  5321. dateFirstDayBack
  5322. $BODY
  5323. $ACTIONS
  5324. &Arial
  5325.  StdNotesLtr17
  5326. tmpDisplayFrom_Preview
  5327. tmpFrom
  5328. tmpDisplayDate_Preview
  5329. tmpDate
  5330. O=Lotus Notes
  5331. O=Lotus Notes
  5332. PURSAFO
  5333. |.:#U
  5334. O=Lotus Notes
  5335. CN=Lotus Notes Template Development/O=Lotus Notes
  5336. PURSAFO
  5337. $TITLE
  5338. $INFO
  5339. $$ScriptName
  5340. $BODY
  5341. Times New Roman
  5342.  StdNotesLtr3
  5343. tmpDisplayFrom_Previewb
  5344. tmpFromFirst
  5345. tmpDisplayFrom_Previewb
  5346. tmpFromLast
  5347.        
  5348. tmpDisplayDate_Preview
  5349. tmpDate
  5350. O=Lotus Notes
  5351. O=Lotus Notes
  5352. PURSAFO
  5353. |.:#U
  5354. O=Lotus Notes
  5355. CN=Lotus Notes Template Development/O=Lotus Notes
  5356. PURSAFO
  5357. Fde!f^^
  5358. $TITLE
  5359. $INFO
  5360. $Header
  5361. $$ScriptName
  5362. $BODY
  5363. &Arial
  5364.  StdNotesLtr14
  5365. tmpDisplayFrom_Preview
  5366. tmpFrom
  5367. tmpDisplayDate_Preview
  5368. tmpDate
  5369. O=Lotus Notes
  5370. O=Lotus Notes
  5371. PURSAFO
  5372. |.:#U
  5373. O=Lotus Notes
  5374. CN=Lotus Notes Template Development/O=Lotus Notes
  5375. PURSAFO
  5376. $TITLE
  5377. $INFO
  5378. $$ScriptName
  5379. $BODY
  5380. (NamesPrompt)
  5381.     Delegate to:
  5382. SendTo
  5383. SendTo
  5384.     1S2S3S7S
  5385. O=Lotus Notes
  5386. O=Lotus Notes
  5387. PURSAFO
  5388. |.:#U
  5389. O=Lotus Notes
  5390. CN=Lotus Notes Template Development/O=Lotus Notes
  5391. PURSAFO
  5392. Fde!f^^
  5393. $FormPublicAccess
  5394. $TITLE
  5395. $INFO
  5396. $$Script_O
  5397. $$ScriptName
  5398. $BODY
  5399. $PublicAccess
  5400. &Arial
  5401.  StdNotesLtr29
  5402. tmpDisplayFrom_Preview
  5403. tmpFrom
  5404. tmpDisplayDate_Preview
  5405. tmpDate
  5406. O=Lotus Notes
  5407. O=Lotus Notes
  5408. PURSAFO
  5409. |.:#U
  5410. O=Lotus Notes
  5411. CN=Lotus Notes Template Development/O=Lotus Notes
  5412. PURSAFO
  5413. Fde!f^^
  5414. $TITLE
  5415. $INFO
  5416. $Header
  5417. $$ScriptName
  5418. $BODY
  5419. &Arial
  5420.  StdNotesLtr27
  5421. tmpDisplayDate_Preview
  5422. tmpDate_2
  5423. tmpDisplayFrom_Preview
  5424. tmpFrom_2
  5425. tmpDisplayFrom_Preview
  5426. tmpFrom_1
  5427. tmpDisplayFrom_Preview
  5428. tmpFrom_
  5429. tmpDisplayDate_Preview
  5430. tmpDate_1
  5431. tmpDisplayDate_Preview
  5432. tmpDate_
  5433. O=Lotus Notes
  5434. O=Lotus Notes
  5435. PURSAFO
  5436. |.:#U
  5437. O=Lotus Notes
  5438. CN=Lotus Notes Template Development/O=Lotus Notes
  5439. PURSAFO
  5440. Fde!f^^
  5441. $TITLE
  5442. $INFO
  5443. $Header
  5444. $$ScriptName
  5445. $BODY
  5446. (NoticeOptionsDlg)
  5447. CanAccept
  5448. NoticeType
  5449. chair
  5450. tmpowner
  5451. DoNotProcessh
  5452. BroadCast
  5453.     1S2S20S21S23S24S26S27S31S32S34S35S38S39S40S
  5454. CanDecline
  5455. NoticeType
  5456. chair
  5457. tmpowner
  5458. DoNotProcessh
  5459. tmpNoParent
  5460. Broadcast
  5461.     0R1S2S20S21S23S24S26S27S32S33S38S39S41S42S45S46S47S
  5462. CanDelegate
  5463. NoticeType
  5464. chair
  5465. tmpowner
  5466. DoNotProcessh
  5467. BroadCast
  5468.     0R1S2S20S21S23S24S26S27S31S32S34S35S38S39S40S
  5469. CanPropose
  5470. NoticeType
  5471. chair
  5472. tmpowner
  5473. DoNotProcessh
  5474. BroadCast
  5475. OrgRepeat
  5476.     0R1S2S22S23S25S26S28S29S33S34S36S37S38S39S45S46S47S
  5477. CanPencilIn
  5478. NoticeType
  5479. Chair
  5480. tmpOwner
  5481. DoNotProcessh
  5482. Broadcast
  5483.     0R1S2S8S9S10S11S12S13S14S15S16S20S2E21S23S24S26S27S31S32S34S35S39S40S
  5484. SemiList
  5485. CanAccept
  5486. CanDecline
  5487. CanDelegate
  5488. CanPropose
  5489. CanPencilIn
  5490.     0R1S2S7S8S9S10S11S12S13S16S
  5491. SemiList
  5492. Accept|0
  5493. Decline|1
  5494. Delegate|2
  5495. Propose Alternative Time/Location|3
  5496. Pencil In|4
  5497.     0R5S6S7S8S9S10S11S14S15S16S17S18S19S20S21S22StmpUserActions
  5498. ResponseType
  5499. tmpUserActions
  5500. Comments
  5501.     Action to take:
  5502.     Comments to include:
  5503. O=Lotus Notes
  5504. O=Lotus Notes
  5505. PURSAFO
  5506. |.:#U
  5507. O=Lotus Notes
  5508. CN=Lotus Notes Template Development/O=Lotus Notes
  5509. PURSAFO
  5510. Fde!f^^
  5511. $FormPublicAccess
  5512. $TITLE
  5513. $INFO
  5514. $$Script_O
  5515. $$ScriptName
  5516. $BODY
  5517. $PublicAccess
  5518. '++LotusScript Development Environment:2:5:(Options):0:74
  5519. Option Public
  5520. Use "AppointmentResponses"
  5521. '++LotusScript Development Environment:2:5:(Forward):0:1
  5522. Declare Sub Initialize
  5523. Declare Sub SendConfirmation
  5524. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5525. '++LotusScript Development Environment:2:2:Initialize:1:10
  5526. Sub Initialize
  5527.      
  5528. End Sub
  5529. '++LotusScript Development Environment:2:2:SendConfirmation:1:8
  5530. Sub SendConfirmation
  5531.      Dim sendto() As Variant
  5532.      Dim names() As Variant   
  5533.      Dim dummydoc As New NotesDocument(db)
  5534.      Dim CanMail As Integer
  5535.      
  5536. 'first, create the notice document
  5537.      Call CreateNoticeDocument("Confirmed -",ORS_MSGTYPE_CONFIRMATION,10,1)
  5538. 'we need to change the $REF item
  5539.      dummydoc.UniversalID = note.RealDocUNID(0)
  5540.      Call notice.MakeResponse(dummydoc)
  5541.      notice.ApptUNID = dummydoc.UniversalID
  5542.      
  5543. 'next, add the invitee responses
  5544.      Dim rtitem  As New NotesRichTextItem(notice,"StatusUpdate")
  5545.      
  5546. 'add all of the invitee status's to the rich text item     
  5547.      If (note.tmpAccepted(0) <> "") Then
  5548.           Forall people In note.tmpAccepted
  5549.                Call rtitem.AppendText(Cstr(people) & " -> Accepted")
  5550.                Call rtitem.AddNewLine(1)          
  5551.           End Forall                         
  5552.      End If
  5553.      If (note.tmpDeclined(0) <> "") Then
  5554.           Forall people In note.tmpDeclined
  5555.                Call rtitem.AppendText(Cstr(people) & " -> Declined")
  5556.                Call rtitem.AddNewLine(1)          
  5557.           End Forall               
  5558.      End If
  5559.      If (note.tmpCounter(0) <> "") Then
  5560.           Forall people In note.tmpCounter
  5561.                Call rtitem.AppendText(Cstr(people) & " -> Counter Proposed")
  5562.                Call rtitem.AddNewLine(1)          
  5563.           End Forall               
  5564.      End If
  5565.      If (note.tmpDelegated(0) <> "") Then
  5566.           x = 0
  5567.           Forall people In note.tmpDelegated
  5568.                Call rtitem.AppendText(Cstr(people) & " -> Delegated to " & note.tmpDelegee(x))
  5569.                x= x+1
  5570.                Call rtitem.AddNewLine(1)          
  5571.           End Forall               
  5572.      End If
  5573.      Call rtitem.AddNewLine(1)               
  5574. 'now, include the people who did not respond
  5575.      If (note.tmpWaiting(0) <> "") Then          
  5576.           Call rtitem.AppendText("Waiting for reply:")
  5577.           Call rtitem.AddNewLine(1)
  5578.           Forall people In note.tmpWaiting
  5579.                Call rtitem.AppendText(Cstr(people))
  5580.                Call rtitem.AddNewLine(1)
  5581.           End Forall
  5582.      End If
  5583. 'include the people who were uninvited
  5584.      If (note.tmpUninvited(0) <> "") Then
  5585.           Call rtitem.AppendText("Uninvited:")          
  5586.           Call rtitem.AddNewLine(1)
  5587.           Forall  people In note.tmpUninvited
  5588.                Call rtitem.AppendText(Cstr(people))
  5589.                Call rtitem.AddNewLine(1)
  5590.           End Forall          
  5591.      End If
  5592.      
  5593.      i = 0     
  5594.      NamesToSend = Evaluate("@Trim(tmpAccepted:tmpWaiting)",note)
  5595.      If (NamesToSend(0) <> "") Then          
  5596.           CanMail = True
  5597.           Redim sendto(Ubound(NamesToSend))
  5598.           For i = 0 To Ubound(NamesToSend)
  5599.                sendto(i) = NamesToSend(i)
  5600.           Next
  5601.           i = i + 1          
  5602.      End If
  5603.      
  5604.      DelegeesToSend = Evaluate("@Trim(@Replace(tmpDelegee;tmpDeclined:tmpDelegated;""""))",note)
  5605.      If (DelegeesToSend(0) <> "") Then    
  5606.           CanMail = True          
  5607.           Redim Preserve sendto(i + Ubound(DelegeesToSend))
  5608.           For x = 0 To Ubound(DelegeesToSend)
  5609.                sendto(i) = DelegeesToSend(x)
  5610.                i = i + 1
  5611.           Next
  5612.      End If
  5613.      
  5614.      If CanMail Then
  5615.           Redim names(Ubound(sendto))
  5616.           For i = 0 To Ubound(sendto)
  5617.                names(i) = GetInviteeMailAddress(Cstr(sendto(i)))
  5618.           Next
  5619.           notice.SendTo = names
  5620.           Call notice.Send(False)
  5621.           Messagebox "A confirmation notice has been sent to the invitees.",0,"Status"
  5622.      End If
  5623. End Sub
  5624. tmpAccepted
  5625. tmpWaiting
  5626.     0S0E
  5627. tmpDelegee
  5628. tmpDeclined
  5629. tmpDelegated
  5630.     0S0E
  5631. (InviteeResponses)'++LotusScript Development Environment:2:5:(Options):0:66
  5632. '++LotusScript Development Environment:2:5:(Forward):0:1
  5633. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  5634. Declare Sub Postopen(Source As Notesuidocument)
  5635. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5636. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5637. Private Sub BindEvents(Byval Objectname_ As String)
  5638.      Static Source As NOTESUIDOCUMENT
  5639.      Set Source = Bind(Objectname_)
  5640.      On Event Queryopen From Source Call Queryopen
  5641.      On Event Postopen From Source Call Postopen
  5642. End Sub
  5643. '++LotusScript Development Environment:2:2:Queryopen:1:12
  5644. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  5645.      
  5646. End Sub
  5647. '++LotusScript Development Environment:2:2:Postopen:1:12
  5648. Sub Postopen(Source As Notesuidocument)
  5649.      Set uidoc = source
  5650.      Call InstantiateObjectVariables
  5651.      Call CreateInviteeTable(note)
  5652. End Sub
  5653.     0S0E
  5654.     Print
  5655. NoticeType
  5656.     1S2S
  5657. '++LotusScript Development Environment:2:5:(Options):0:66
  5658. '++LotusScript Development Environment:2:5:(Forward):0:1
  5659. Declare Sub Click(Source As Button)
  5660. '++LotusScript Development Environment:2:5:(Declarations):0:2
  5661. '++LotusScript Development Environment:2:2:BindEvents:1:129
  5662. Private Sub BindEvents(Byval Objectname_ As String)
  5663.      Static Source As BUTTON
  5664.      Set Source = Bind(Objectname_)
  5665.      On Event Click From Source Call Click
  5666. End Sub
  5667. '++LotusScript Development Environment:2:2:Click:1:12
  5668. Sub Click(Source As Button)
  5669.      Call SendConfirmation
  5670. End Sub
  5671. New Button
  5672. Need a newer version of Notes to execute this button.
  5673.     0S0E
  5674.     Send Confirmation
  5675. Broadcast
  5676.     1S2S
  5677.  Accepted
  5678. Counter proposed
  5679. tmpAccepted
  5680.     0S0E
  5681. dispAccepted
  5682. tmpCounterc
  5683.     0S0E
  5684. dispCounter
  5685.  Delegated
  5686. Declined
  5687. tmpDelegated^
  5688. tmpDelegated
  5689.  -> "
  5690. tmpDelegee
  5691.     6S7S8S9S10S11S23S24S25S26S
  5692. dispDelegated
  5693. tmpDeclined
  5694.     0S0E
  5695. dispDeclined
  5696.  No response
  5697. Removed
  5698. tmpWaiting
  5699.     0S0E
  5700. dispWaiting
  5701. tmpUninvited
  5702.     0S0E
  5703. dispUnivited
  5704. tmpResAccepted
  5705.     1S2S
  5706. tmpResAccepted^
  5707. tmpResDeclined^
  5708. tmpResWaiting
  5709.     4S5S6S7S11S12S13S14S18S19S
  5710. Rooms/Resources
  5711.  Reserved
  5712. Unavailable
  5713. tmpResAccepted
  5714. dispResAccepted
  5715. tmpResDeclined
  5716. dispResDeclined
  5717.  No response
  5718. tmpResWaiting
  5719. dispResWaiting
  5720. O=Lotus Notes
  5721. O=Lotus Notes
  5722. PURSAFO
  5723. |.:#U
  5724. O=Lotus Notes
  5725. CN=Lotus Notes Template Development/O=Lotus Notes
  5726. PURSAFO
  5727. $SCRIPTOBJ_6
  5728. $FormPublicAccess
  5729. $TITLE
  5730. $INFO
  5731. $Script
  5732. $$Script_O
  5733. $$ScriptName
  5734. $$FormScript
  5735. $$$FormScript_O
  5736. $BODY
  5737. $PublicAccess
  5738. (PeopleListDlg)
  5739. tmpPeopleList
  5740. tmpPeopleSelected
  5741. tmpPeopleList
  5742.     0S0E
  5743. tmpHeader
  5744. tmpHeader
  5745. O=Lotus Notes
  5746. O=Lotus Notes
  5747. PURSAFO
  5748. |.:#U
  5749. O=Lotus Notes
  5750. CN=Lotus Notes Template Development/O=Lotus Notes
  5751. PURSAFO
  5752. Fde!f^^
  5753. %%3Y~
  5754. $FormPublicAccess
  5755. $TITLE
  5756. $INFO
  5757. $$Script_O
  5758. $$ScriptName
  5759. $BODY
  5760. $PublicAccess
  5761. *** Message Not Delivered ***
  5762.  NonDelivery Report
  5763. Delivery Failure Report
  5764.     Your document:
  5765. Subject
  5766. OriginalSubject
  5767.     was not delivered to
  5768. IntendedRecipient
  5769. IntendedRecipient
  5770.     0S0E
  5771. IntendedRecipient
  5772.     because:
  5773. FailureReason
  5774. FailureReason
  5775. $HideMailHeader
  5776.     0S0E
  5777.     What should you do?
  5778.     You can resend the undeliverable document to the recipients listed above by choosing the Resend button or the Resend command on the Actions menu.  
  5779.     Once you have resent the document you may delete this Delivery Failure Report.
  5780.     If resending the document is not successful you will receive a new failure report
  5781.     Unless you receive other Delivery Failure Reports, the document was successfully delivered to all other recipients.
  5782. Routing path
  5783. RouteServers
  5784. RouteServersServers along route.
  5785.     ________________________
  5786.     To:    
  5787. SendTo
  5788. SendToList of people to send document.
  5789.     cc:    
  5790. CopyTo
  5791. CopyToList of people to send copies of document.
  5792.     From:    
  5793. FromPerson document is from.
  5794.     Date:    
  5795. PostedDateY
  5796. PostedDateJ
  5797. DateTime/date memo was created or mailed.
  5798.     Subject:    
  5799. Subject
  5800. SubjectSubject of document.
  5801. BodyBody of document.
  5802. Categori_ze
  5803. Closee 
  5804.     0S0E
  5805. Edit Document
  5806. Resend
  5807. Resend|
  5808.     7S9S
  5809. SaveOptions
  5810.     0R1S2S3S
  5811. _Forward
  5812. _Move to Folder...
  5813. _Remove from Folder...    
  5814. O=Lotus Notes
  5815. O=Lotus Notes
  5816. PURSAFO
  5817. |.:#U
  5818. O=Lotus Notes
  5819. CN=Lotus Notes Template Development/O=Lotus Notes
  5820. PURSAFO
  5821. [H61@,
  5822. $TITLE
  5823. $INFO
  5824. $WINDOWTITLE
  5825. $$ScriptName
  5826. $BODY
  5827. $ACTIONS
  5828.  StdNotesLtr28
  5829. tmpDisplayFrom_Preview
  5830. tmpFrom
  5831. tmpDisplayDate_Preview
  5832. tmpDate
  5833. O=Lotus Notes
  5834. O=Lotus Notes
  5835. PURSAFO
  5836. |.:#U
  5837. O=Lotus Notes
  5838. CN=Lotus Notes Template Development/O=Lotus Notes
  5839. PURSAFO
  5840. $TITLE
  5841. $INFO
  5842. $$ScriptName
  5843. $BODY
  5844. &Arial
  5845.  StdNotesLtr7
  5846. tmpDisplayFrom_Preview
  5847. tmpFrom
  5848. tmpDisplayDate_Preview
  5849. tmpDate
  5850. O=Lotus Notes
  5851. O=Lotus Notes
  5852. PURSAFO
  5853. |.:#U
  5854. O=Lotus Notes
  5855. CN=Lotus Notes Template Development/O=Lotus Notes
  5856. PURSAFO
  5857. $TITLE
  5858. $INFO
  5859. $$ScriptName
  5860. $BODY
  5861. (ChangeRepeating)
  5862. ChangeWhich
  5863. Just this one|0All|1All previous|2All future|3
  5864. Change:
  5865. O=Lotus Notes
  5866. O=Lotus Notes
  5867. PURSAFO
  5868. |.:#U
  5869. O=Lotus Notes
  5870. CN=Lotus Notes Template Development/O=Lotus Notes
  5871. PURSAFO
  5872. Fde!f^^
  5873. A    ATP
  5874. $FormPublicAccess
  5875. $TITLE
  5876. $INFO
  5877. $$Script_O
  5878. $$ScriptName
  5879. $BODY
  5880. $PublicAccess
  5881. &Arial
  5882.  StdNotesLtr26
  5883. tmpDisplayFrom_Preview
  5884. tmpFrom
  5885. tmpDisplayDate_Preview
  5886. tmpDate
  5887. O=Lotus Notes
  5888. O=Lotus Notes
  5889. PURSAFO
  5890. |.:#U
  5891. O=Lotus Notes
  5892. CN=Lotus Notes Template Development/O=Lotus Notes
  5893. PURSAFO
  5894. Fde!f^^
  5895. O}\Pq
  5896. $TITLE
  5897. $INFO
  5898. $Header
  5899. $$ScriptName
  5900. $BODY
  5901. Times New Roman
  5902.  StdNotesLtr15
  5903. tmpDisplayFrom_Preview
  5904. tmpFrom
  5905. tmpDisplayDate_Preview
  5906. tmpDate
  5907. O=Lotus Notes
  5908. O=Lotus Notes
  5909. PURSAFO
  5910. |.:#U
  5911. O=Lotus Notes
  5912. CN=Lotus Notes Template Development/O=Lotus Notes
  5913. PURSAFO
  5914. $TITLE
  5915. $INFO
  5916. $$ScriptName
  5917. $BODY
  5918. (CalendarHelp)
  5919.     Calendar entry--new ->tmpContext = 0
  5920. tmpContext
  5921.     1S2S
  5922.     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. 
  5923.     To specify the type of calendar entry, click a
  5924.     type at the top of the document. Notes displays different
  5925.     fields depending on
  5926.     the calendar type
  5927.     you select.
  5928.     Enter information in the calendar entry
  5929.     fields Notes displays.  
  5930.     set an alarm that reminds you about
  5931.     the calendar entry,
  5932.     click Alarm options and specify information about the alarm.
  5933.     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.
  5934.     To check your calendar as you are entering information, click Check Calendar. To return to the document, press ESC.
  5935.     Click Save and Close when you finish entering information
  5936.     for the calendar entry.
  5937.     If you created a meeting invitation, click Yes to send
  5938.     invitations to the invitees.
  5939.     For information on
  5940.     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.
  5941.     Calendar entry--existing -> tmpContext = 1
  5942. tmpContext
  5943.     1S2S
  5944.     You can make changes to an appointment, event, reminder, or anniversary.
  5945.     If you have not already done so, click Edit Document.
  5946.     Make changes in 
  5947.     any of
  5948.     the calendar entry
  5949.     fields Notes displays.
  5950.     To set an alarm that reminds you about the calendar entry, click Alarm options and specify information about the alarm.
  5951.     To check your calendar as you are making changes, click Check Calendar. To return to the document, press ESC.
  5952.     Click Save and Close.
  5953.     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.
  5954.     Invitation--existing entry (chair) -> tmpContext = "2"
  5955. tmpContext
  5956.     1S2S
  5957.     After you create a meeting invitation, you can make changes to the document by clicking Edit Document and doing the following:
  5958.     Display responses to a meeting invitation by clicking "Display invitee responses."
  5959.     Change the date, time, or location of the meeting by clicking Edit Document and changing the date or time fields or the reservation section. 
  5960.     Remove an invitee from the invitation list by clicking Edit Document
  5961.     and choosing Actions - Remove - Invitees.
  5962.     Cancel a room or resource reservation by clicking Edit Document and choosing Actions - Remove - Rooms & Resources.
  5963.     Send a confirmation to the invitees by clicking Send Confirmation.
  5964.     Cancel a meeting by choosing Actions - Cancel Meeting.
  5965.     Accept a meeting invitation for an invitee by choosing Actions - Change Status to Accepted.
  5966.     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.
  5967.     Invitation (invitee--action already taken) -> tmpContext = "3"
  5968. tmpContext
  5969.     1S2S
  5970.     You can make changes to a meeting invitation if necessary.
  5971.     If you have not already done so, click Edit Document.
  5972.     Make changes in 
  5973.     any of
  5974.     the calendar entry
  5975.     fields Notes displays.
  5976.     change your response to the meeting invitation, choose Actions - Other and select
  5977.     a different response
  5978.     Click Save and Close.
  5979.     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.
  5980.     Invitation (invitee - no action taken yet) -> tmpContext = "4"
  5981. tmpContext
  5982.     1S2S
  5983.     When you receive a meeting invitation, you can:
  5984.     Accept the meeting invitation by clicking Accept.
  5985.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In.
  5986.     Decline the meeting invitation by clicking Decline.
  5987.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  5988.     Propose a different time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  5989.     When you receive a broadcast meeting invitation, you can add the broadcast meeting to your calendar by clicking Add to Calendar.
  5990.     You can also accept meeting invitations from all or from selected people
  5991.     automatically by using the Meetings option under Autoprocessing Options
  5992.     in your Calendar Profile.
  5993.     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.
  5994.     Declined -> tmpContext = "5"
  5995. tmpContext
  5996.     1S2S
  5997.     The person you invited to the meeting declined your meeting invitation.
  5998.     To view a list of invitee responses, open the meeting invitation in the Calendar view and click "Display invitee responses."
  5999.     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.
  6000.     Change proposal ->tmpContext = "6"
  6001. tmpContext
  6002.     1S2S
  6003.     Someone you invited to the meeting proposed an alternative time or location for your meeting. You can accept or decline the proposal. 
  6004.     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.
  6005.     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.
  6006.     Reschedule ->tmpContext = "7"
  6007. tmpContext
  6008.     1S2S
  6009.     The meeting chairperson rescheduled this meeting. You can respond to the rescheduled meeting invitation in one of the following ways:
  6010.     Accept the meeting invitation by clicking Accept.
  6011.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In. 
  6012.     Decline the meeting invitation by clicking Decline.
  6013.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  6014.     Propose a different time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  6015.     When you receive a broadcast meeting invitation, you can add the broadcast meeting to your calendar by clicking Add to Calendar.
  6016.     You can also accept meeting invitations automatically from all or selected people by using the Meetings option under Autoprocessing Options in your Calendar Profile.
  6017.     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.
  6018.     Acceptance ->tmpContext = "8"
  6019. tmpContext
  6020.     1S2S
  6021.     The person you invited to the meeting accepted your meeting invitation. 
  6022.     To view a list of invitee responses, open the meeting invitation in the Calendar view and click "Display invitee responses."
  6023.     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.
  6024.     Counter proposal declined ->tmpContext = "9"
  6025. tmpContext
  6026.     1S2S
  6027.     The meeting chairperson declined the alternative time or location you proposed. You can respond to the meeting invitation in one of the following ways:
  6028.     Accept the meeting invitation by clicking Accept.
  6029.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In. 
  6030.     Decline the meeting invitation by clicking Decline.
  6031.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  6032.     Propose another time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  6033.     You can also accept meeting invitations automatically from all or selected people by using the Meetings option under Autoprocessing Options in your Calendar Profile.
  6034.     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.
  6035.     Cancelled ->tmpContext = "10"
  6036. tmpContext
  6037.     1S2S
  6038.     The chairperson cancelled this meeting. You do not need to respond to this message. Notes automatically removed the meeting from your calendar.
  6039.     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.
  6040.     Status update - Uninvite -> tmpContext = "11"
  6041. tmpContext
  6042.     1S2S
  6043.     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.
  6044.     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.
  6045.     Status update - Change Status to Accepted -> tmpContext = "12"
  6046. tmpContext
  6047.     1S2S
  6048.     You are required to attend this meeting. You do not need to respond to this message. Notes automatically added the meeting to your calendar.
  6049.     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.
  6050.     Confirmation -> tmpContext = "13"
  6051. tmpContext
  6052.     1S2S
  6053.     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.
  6054.     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.
  6055.     Delegation -> tmpContext = "14"
  6056. tmpContext
  6057.     1S2S
  6058.     Someone delegated this meeting invitation to you. You can respond to the meeting invitation in one of the following ways:
  6059.     Accept the meeting invitation by clicking Accept.
  6060.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In. 
  6061.     Decline the meeting invitation by clicking Decline.
  6062.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  6063.     Propose a different time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  6064.     You can also accept meeting invitations automatically from all or selected people by using the Meetings option under Autoprocessing Options in your Calendar Profile.
  6065.     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.
  6066.     Delegated Invitation -> tmpContext = "15"
  6067. tmpContext
  6068.     1S2S
  6069.     The person you invited to this meeting delegated the invitation to someone else. 
  6070.     To view a list of invitee responses, open the meeting invitation in the Calendar view and click "Display invitee responses."
  6071.     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.
  6072.     Invitation (invitee--action already taken) -> tmpContext = "16"
  6073. tmpContext
  6074.     1S2S
  6075.     You can make changes to a meeting invitation if necessary.
  6076.     If you have not already done so, click Edit Document.
  6077.     Make changes in any of
  6078.     the calendar entry
  6079.     fields Notes displays.
  6080.     change your response to the meeting invitation, choose Actions - Other and select
  6081.     a different response.
  6082.     Click Save and Close.
  6083.     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.
  6084.     Propose alternative time/location -> tmpContext = "17"
  6085. tmpContext
  6086.     1S2S
  6087.     You proposed a different time or location for the meeting. Notes sends this counter-proposal to the meeting chairperson.
  6088.     When the chairperson accepts or declines the proposal, Notes sends you the chairperson's response.
  6089. Categori_zeK
  6090. _Edit Document
  6091. Send Docu_ment
  6092. _Forward
  6093. _Move To Folder...
  6094. _Remove From FolderK
  6095. O=Lotus Notes
  6096. O=Lotus Notes
  6097. PURSAFO
  6098. |.:#U
  6099. O=Lotus Notes
  6100. CN=Lotus Notes Template Development/O=Lotus Notes
  6101. PURSAFO
  6102. Fde!f^^
  6103. B@BuW8
  6104. Uo-xO
  6105. $FormPublicAccess
  6106. $TITLE
  6107. $INFO
  6108. $$ScriptName
  6109. $BODY
  6110. $ACTIONS
  6111. $PublicAccess
  6112. New Memo.
  6113.     0S0E
  6114. Delete 
  6115.     0S0E
  6116. Move To Folder...
  6117.     0S0E
  6118. _Forward
  6119. Reply
  6120. Reply
  6121.     0S0E
  6122. Reply With History@
  6123. Reply with history
  6124.     0S0E
  6125. Categori_zeK
  6126. _Edit Document
  6127. Send    
  6128. Resend
  6129. NonDelivery Report
  6130. Not a Delivery Failure Report
  6131. You cannot Resend a message unless it is a Delivery Failure Report.
  6132.     6S12S17S23S
  6133. Convert To TaskK0
  6134. ConvertToTask
  6135. _Move To Folder...
  6136. _Remove From Folder...
  6137. O=Lotus Notes
  6138. O=Lotus Notes
  6139. PURSAFO
  6140. |.:#U
  6141. O=Lotus Notes
  6142. CN=Lotus Notes Template Development/O=Lotus Notes
  6143. PURSAFO
  6144. K!3iGtH
  6145. $Name
  6146. $TITLE
  6147. $Index
  6148. $Formula
  6149. $FormulaClass
  6150. $VIEWFORMAT
  6151. $Comment
  6152. $ACTIONS
  6153. '++LotusScript Development Environment:2:5:(Options):0:74
  6154. Option Public
  6155. '++LotusScript Development Environment:2:5:(Forward):0:1
  6156. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6157. O=Lotus Notes
  6158. O=Lotus Notes
  6159. PURSAFO
  6160. |.:#U
  6161. O=Lotus Notes
  6162. CN=Lotus Notes Template Development/O=Lotus Notes
  6163. PURSAFO
  6164. 1qLK6
  6165. $TITLE
  6166. $Index
  6167. $Formula
  6168. $FormulaClass
  6169. $VIEWFORMAT
  6170. $Comment
  6171. $ViewGlobalScript
  6172. _Forward
  6173. Categori_zeK
  6174. Edit Message
  6175. _Move to Folder...
  6176. _Remove from Folder...
  6177. O=Lotus Notes
  6178. O=Lotus Notes
  6179. PURSAFO
  6180. |.:#U
  6181. O=Lotus Notes
  6182. CN=Lotus Notes Template Development/O=Lotus Notes
  6183. PURSAFO
  6184. $TITLE
  6185. $Index
  6186. $Formula
  6187. $FormulaClass
  6188. $VIEWFORMAT
  6189. $Comment
  6190. $ACTIONS
  6191. Archive Profile
  6192. Times New Roman
  6193. '++LotusScript Development Environment:2:5:(Options):0:66
  6194. Option Public
  6195. '++LotusScript Development Environment:2:5:(Forward):0:1
  6196. Declare Sub Initialize
  6197. Declare Sub ProcessExistingArchiveDB
  6198. Declare Sub ProcessNonExistingArchiveDB 
  6199. Declare Sub ProcessArchiveDbExists
  6200. Declare Sub CreateNewArchiveDB
  6201. '++LotusScript Development Environment:2:5:(Declarations):0:10
  6202. %INCLUDE "lsconst.lss"
  6203. Dim s As NotesSession
  6204. Dim w As NotesUIWorkspace
  6205. Dim db As NotesDatabase
  6206. Dim existingdb As NotesDatabase
  6207. Dim archivedb As NotesDatabase
  6208. Dim view As NotesView
  6209. Dim note As NotesDocument
  6210. Dim profile As NotesDocument
  6211. Dim archivedoc As NotesDocument
  6212. Dim doc As NotesUIDocument
  6213. Dim DocWasSaved As Integer
  6214. Dim DoNotClose As Variant
  6215. Dim ExistingServer As String
  6216. Dim ExistingPath As String
  6217. '++LotusScript Development Environment:2:2:Initialize:1:10
  6218. Sub Initialize
  6219.      
  6220. End Sub
  6221. '++LotusScript Development Environment:2:2:ProcessExistingArchiveDB:1:12
  6222. Sub ProcessExistingArchiveDB
  6223. an existing archive already exists and the user has choosen to create a new one
  6224. this function gets called on one of two occasions
  6225. either the document has a value in the tmpArchivePath field
  6226. or the user entered a server and path that has an existing database
  6227. we need to handle both cases
  6228. %END REM
  6229.      
  6230. End Sub
  6231. '++LotusScript Development Environment:2:2:ProcessNonExistingArchiveDB:1:8
  6232. Sub ProcessNonExistingArchiveDB 
  6233.      On Error Goto ProcessError         
  6234.      On Error 4005 Goto DbCreateError
  6235.      'render the dialog box to get the location of the archive database
  6236.      If (w.DialogBox("(ArchiveProfileDlg)",True,True,"Specify New Location")) Then
  6237.           'see if the archive database exists
  6238.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  6239.           If (archivedb.IsOpen) Then
  6240.                Msgbox "Database already exists. Enter a new location"
  6241.                ProcessNonExistingArchiveDB          
  6242.           Else
  6243.                Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  6244.                archivedb.Title = db.Title & " (Archive)"
  6245.           End If
  6246.           Call doc.Reload
  6247.           Call doc.Refresh
  6248.      Else
  6249.           note.ArchiveServer = ""
  6250.           note.ArchivePath = ""
  6251.      End If
  6252.      Exit Sub
  6253. DbCreateError:
  6254.      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")
  6255.      Case 6
  6256.           ProcessNonExistingArchiveDb
  6257.      End Select
  6258.      Exit Sub        
  6259. ProcessError:
  6260.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  6261.      Exit Sub
  6262. End Sub
  6263. '++LotusScript Development Environment:2:2:ProcessArchiveDbExists:1:8
  6264. Sub ProcessArchiveDbExists
  6265.      'this function gets called if a database already exists in the tmpArchiveServer field
  6266.      'render the dialog box to get the location of the archive database
  6267.      On Error 4005 Goto DbCreateError
  6268.      If (w.DialogBox("(ProcessExistingDbDlg)",True,True,"Specify New Location")) Then
  6269.           On Error Resume Next          
  6270.           'see if the archive database exists
  6271.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  6272.           If (archivedb.IsOpen) Then
  6273.                Msgbox "Database already exists. Enter a new location"
  6274.                ProcessArchiveDbExists          
  6275.           Else
  6276.                Call CreateNewArchiveDB
  6277.                archivedb.Title = db.Title & " (Archive)"
  6278.           End If
  6279.           Call doc.reload
  6280.           Call doc.refresh
  6281.      End If        
  6282.      Exit Sub
  6283. DbCreateError:
  6284.      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")
  6285.      Case 6
  6286.           ProcessNonExistingArchiveDb
  6287.      End Select
  6288.      Exit Sub        
  6289. End Sub
  6290. '++LotusScript Development Environment:2:2:CreateNewArchiveDB:1:8
  6291. Sub CreateNewArchiveDB
  6292.      On Error 4005 Goto DbCreateError
  6293.      On Error Goto ProcessError
  6294.      
  6295. 'first, create the archive database     
  6296.      Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  6297.      
  6298. 'if the profile says to copy new documents, then copy them now
  6299.      If (note.CopyOptions(0) = "1") Then
  6300.           Set allDocs = existingdb.AllDocuments
  6301.           For i = 1 To allDocs.Count          
  6302.                Set archivedoc = allDocs.GetNthDocument(i)     
  6303.                Call archivedoc.CopyToDatabase(archivedb)
  6304.           Next
  6305.      End If
  6306.      
  6307. 'if the profile says we should delete the original archive database, then remove it
  6308.      If (note.DeleteOptions(0) = "1") Then Call existingdb.Remove
  6309.      
  6310.      Exit Sub
  6311. DbCreateError:
  6312.      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")
  6313.      Case 6
  6314.           ProcessNonExistingArchiveDb
  6315.      End Select
  6316.      Exit Sub        
  6317. ProcessError:
  6318.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  6319.      Exit Sub
  6320. End Sub
  6321.  Archive Profile'++LotusScript Development Environment:2:5:(Options):0:66
  6322. '++LotusScript Development Environment:2:5:(Forward):0:1
  6323. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6324. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  6325. Declare Sub Postopen(Source As Notesuidocument)
  6326. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6327. '++LotusScript Development Environment:2:2:BindEvents:1:129
  6328. Private Sub BindEvents(Byval Objectname_ As String)
  6329.      Static Source As NOTESUIDOCUMENT
  6330.      Set Source = Bind(Objectname_)
  6331.      On Event Queryclose From Source Call Queryclose
  6332.      On Event Querysave From Source Call Querysave
  6333.      On Event Postopen From Source Call Postopen
  6334. End Sub
  6335. '++LotusScript Development Environment:2:2:Queryclose:1:12
  6336. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6337.      
  6338.      If (DocWasSaved = False) Or (profile Is Nothing) Or DoNotClose Then Exit Sub
  6339.      
  6340.      ItemList = profile.Items
  6341.      Forall n In ItemList
  6342.           profile.RemoveItem(n.Name)    
  6343.      End Forall
  6344.      note.CopyAllItems profile
  6345.      profile.SaveOptions = "1"
  6346.      profile.save True, True
  6347.      
  6348. End Sub
  6349. '++LotusScript Development Environment:2:2:Querysave:1:12
  6350. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  6351.      
  6352.      DocWasSaved = True
  6353.      DoNotClose = False     
  6354.      If Not(profile Is Nothing) Then note.SaveOptions = "0"
  6355.      If (note.ArchivePath(0) = "") Then Msgbox "You will need to specify a location of the archive database before you can archive documents.",16     
  6356.      source.Reload
  6357.      source.RefreshHideFormulas  
  6358. End Sub
  6359. '++LotusScript Development Environment:2:2:Postopen:1:12
  6360. Sub Postopen(Source As Notesuidocument)
  6361.      'initialize global variables
  6362.      Set note = source.Document
  6363.      Set w = New NotesUIWorkspace
  6364.      Set s = New NotesSession
  6365.      Set db = s.CurrentDatabase
  6366.      Set view = db.GetView("Archiving")
  6367.      Set doc = source
  6368.      'turn off auto reload to make processing faster
  6369.      source.AutoReload = False
  6370.      'if this is not a new doc, we don't need to continue
  6371.      If Not (source.IsNewDoc) Then Exit Sub
  6372.      'get the existing profile
  6373.      key = "Archive Profile"
  6374.      Set profile = view.GetDocumentByKey(key,False)
  6375.      If profile Is Nothing Then
  6376.           'an existing profile was not found
  6377.           note.ProtectFromArchive = 1
  6378.           note.ExcludeFromView = "D"
  6379.           note.From = "Archiving"
  6380.           note.Subject = "Archive Profile"
  6381.           note.Categories = "(Archive)"
  6382.           Call note.ReplaceItemValue("_ViewIcon", 11)
  6383.           source.reload
  6384.      Else
  6385.           'copy the profile fields to this document
  6386.           ItemList = note.Items
  6387.           Forall n In ItemList
  6388.                note.RemoveItem(n.Name)    
  6389.           End Forall
  6390.           profile.CopyAllItems note
  6391.           source.Reload
  6392.           If source.EditMode Then source.Refresh
  6393.      End If
  6394.      
  6395.      DocWasSaved = False
  6396.      
  6397. End Sub
  6398. K     ,`
  6399. Archive Profile 
  6400. ArchiveExpired
  6401. Archive Expired documents | Yes
  6402.     after
  6403. ExpiredLife
  6404. Number cannot be negative.{
  6405.     3S4S6S11SExpiredLife
  6406.     days
  6407. ArchiveInactive
  6408. Archive documents which have no activity | Yes
  6409.     after
  6410. DocumentLife
  6411. Number cannot be negative.{
  6412.     3S4S6S11SDocumentLife
  6413.     days
  6414. ArchiveLog
  6415. Generate an Archive Log each time an archive occurs | Yes
  6416. IncludeDoclinks
  6417. Include document links | Yes
  6418.     Archive Profile editors:
  6419. ProfileEditors
  6420.     Archive Server:
  6421. ArchivePath
  6422. ArchiveServer
  6423. Local
  6424. ArchiveServer
  6425.     3S4S9S10S12S14StmpArchiveServer
  6426.     Archive Path:
  6427. ArchivePath
  6428. tmpArchivePath
  6429. Categori_ze
  6430. _Edit Document
  6431. Send Docu_ment
  6432. _Forward
  6433. Close
  6434.     0S0E
  6435. Save Profile 
  6436.     0S0E
  6437. Specify Archive Location'++LotusScript Development Environment:2:5:(Options):0:66
  6438. '++LotusScript Development Environment:2:5:(Forward):0:1
  6439. Declare Sub Click(Source As Button)
  6440. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6441. '++LotusScript Development Environment:2:2:BindEvents:1:129
  6442. Private Sub BindEvents(Byval Objectname_ As String)
  6443.      Static Source As BUTTON
  6444.      Set Source = Bind(Objectname_)
  6445.      On Event Click From Source Call Click
  6446. End Sub
  6447. '++LotusScript Development Environment:2:2:Click:1:12
  6448. Sub Click(Source As Button)
  6449.      
  6450. 'see if an archive database already exists based upon some field values
  6451.      If (Len(note.tmpArchivePath(0)) >0) Then
  6452.           If (note.tmpArchiveServer(0) = "Local") Then
  6453.                Fullpath$ = note.tmpArchivePath(0)
  6454.                ExistingServer = ""
  6455.           Else
  6456.                Fullpath$ = note.tmpArchiveServer(0) + "!!" + note.tmpArchivePath(0)
  6457.                ExistingServer = note.tmpArchiveServer(0)
  6458.           End If
  6459.           ExistingPath = note.tmpArchivePath(0)
  6460.           Set existingdb = New NotesDatabase(ExistingServer,ExistingPath)
  6461.           If (existingdb.IsOpen) Then
  6462.                Select Case Msgbox("The database (" + Fullpath$ + ") already exists. To create a new database, select OK, otherwise click Cancel",33,"Database already exists")
  6463.                Case IDOK: ProcessArchiveDBExists
  6464.                End Select
  6465.           Else
  6466.                ProcessNonExistingArchiveDB
  6467.           End If
  6468.      Else
  6469.           ProcessNonExistingArchiveDB
  6470.      End If
  6471. End Sub
  6472. InstructionsF
  6473. (ArchiveInstructions)
  6474.     2S4S
  6475. _Move to Folder...    
  6476. _Remove from Folderr
  6477. O=Lotus Notes
  6478. O=Lotus Notes
  6479. PURSAFO
  6480. |.:#U
  6481. O=Lotus Notes
  6482. CN=Lotus Notes Template Development/O=Lotus Notes
  6483. PURSAFO
  6484. M$q:5
  6485. DocLife
  6486. ArchiveDate
  6487. ObsoleteLife
  6488. $ManualArchivers_O
  6489. $TITLE
  6490. $INFO
  6491. $WINDOWTITLE
  6492. $Script
  6493. $$Script_O
  6494. $$ScriptName
  6495. $$FormScript
  6496. $$$FormScript_O
  6497. ExpiredLife
  6498. DocumentLife
  6499. $BODY
  6500. $ACTIONS
  6501. $SCRIPTOBJ_6
  6502. Times New Roman
  6503.  (ArchiveInstructions)
  6504. Archive Profile Help
  6505. 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.  
  6506. You can choose the following in your ArchiveProfile:
  6507.     Archive expired documents
  6508.         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.
  6509.     Archive documents which have no activity
  6510.         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.    
  6511.     Generate an Archive Log each time an archive occurs
  6512.         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.
  6513.     Specify Archive Location:
  6514.         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.
  6515. Categori_ze
  6516. _Edit Document
  6517. Send Docu_ment
  6518. _Forward
  6519. _Move To Folder...
  6520. _Remove From Folderm
  6521. O=Lotus Notes
  6522. O=Lotus Notes
  6523. PURSAFO
  6524. |.:#U
  6525. O=Lotus Notes
  6526. CN=Lotus Notes Template Development/O=Lotus Notes
  6527. PURSAFO
  6528. Fde!f^^
  6529. $TITLE
  6530. $INFO
  6531. $$ScriptName
  6532. $BODY
  6533. $ACTIONS
  6534. $PublicAccess
  6535. Temporary Export Certificate
  6536. "Helvetica
  6537.  Temporary Export Certificate'++LotusScript Development Environment:2:5:(Options):0:66
  6538. '++LotusScript Development Environment:2:5:(Forward):0:1
  6539. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6540. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6541. '++LotusScript Development Environment:2:2:BindEvents:1:129
  6542. Private Sub BindEvents(Byval Objectname_ As String)
  6543.      Static Source As NOTESUIDOCUMENT
  6544.      Set Source = Bind(Objectname_)
  6545.      On Event Queryclose From Source Call Queryclose
  6546. End Sub
  6547. '++LotusScript Development Environment:2:2:Queryclose:1:12
  6548. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6549.      
  6550.      On Error Resume Next
  6551.      source.Document.PutInFolder("Temporary Export Certificates")
  6552.      
  6553. End Sub
  6554. FieldCle
  6555. MicrosoftWord R
  6556. .WPD;*.WPT;*.DOC
  6557. Certificate for Temporary Export of 
  6558.               
  6559. Lotus Notes, North American version
  6560.     Personal information:
  6561.     Name:    
  6562.     Company name:    
  6563. CompanyName
  6564.     Travel information:
  6565.     Destination(s):    
  6566. Agreement
  6567. Destination
  6568. You must enter a destination.
  6569.     3S4S5S6S7S8S10S15S
  6570. Destination
  6571.     Product(s)
  6572. Lotus Notes (North American version)
  6573. Agreement
  6574. Product
  6575. You must enter a product.
  6576.     3S4S5S6S7S8S10S15S
  6577. Product
  6578.     U.S. departure date:    
  6579. Only do translation if not already in time format.
  6580. DepartureDate
  6581. DepartureDate
  6582.     0R7S15S
  6583. pcDate
  6584. DepartureDate
  6585.     0RR1S2S
  6586. TodayInt,
  6587.     0RR1S2S
  6588. ConNext
  6589. pcDate
  6590. nextG
  6591.     0R1S2S8S11S13S
  6592. AdjustAmount
  6593. pcDate
  6594. pcDate
  6595. pcDate
  6596. pcDate
  6597. pcDate
  6598. pcDate
  6599. pcDate
  6600.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  6601. AdjustAmount
  6602. ConNext
  6603. pcDateW
  6604.     0RR3S4S5S6S8S19S
  6605. AdjustAmount
  6606. ConNext
  6607. TodayInt#
  6608.     0R6S8S10S20S22S24S
  6609. Agreement
  6610. DepartureDate
  6611. You must enter a departure date.{
  6612.     3S4S5S6S7S8S10S15S
  6613. DepartureDate
  6614.     U.S. return date:    
  6615. Only do translation if not already in time format.
  6616. ReturnDate]
  6617. ReturnDateK
  6618.     0R7S15S
  6619. pcDate
  6620. ReturnDatea
  6621.     0RR1S2S
  6622. TodayInt,
  6623.     0RR1S2S
  6624. ConNext
  6625. pcDate
  6626. nextG
  6627.     0R1S2S8S11S13S
  6628. AdjustAmount
  6629. pcDate
  6630. pcDate
  6631. pcDate
  6632. pcDate
  6633. pcDate
  6634. pcDate
  6635. pcDate
  6636.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  6637. AdjustAmount
  6638. ConNext
  6639. pcDateW
  6640.     0RR3S4S5S6S8S19S
  6641. AdjustAmount
  6642. ConNext
  6643. TodayInt#
  6644.     0R6S8S10S20S22S24S
  6645. ReturnDate
  6646. Agreement
  6647. I hereby certify|Yes
  6648.     , 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.
  6649.     I certify that:
  6650.     the use of the product identified above was solely for personal use and not for sales, demonstration or marketing purposes;
  6651.     only one copy of the product identified above was exported and it remained in my possession (and was not sent separately) during this travel;
  6652.     I did not travel to a country to which exports are prohibited (countries on which a "ban or embargo" has been 
  6653.     imposed
  6654.      by the U.S. government or United Nations); and
  6655.     I have no knowledge or reason to believe the products were copied, transferred, stolen, or compromised while abroad.
  6656.    .   .   
  6657.    .   .  
  6658.     Explanation of law: 
  6659.     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.
  6660.     Requirements:
  6661.     - Use of the cryptographic items must be for personal use and not for sales, marketing, or demonstration purposes 
  6662.     - 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.
  6663.     - 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.
  6664.     - 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.
  6665.     - 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. 
  6666.     - 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.)
  6667. Temporary Export Certificate - 
  6668. Destination
  6669. DepartureDate
  6670.     1S2S3S4S5S6S
  6671. Subject
  6672. _ViewIcon
  6673. ExcludeFromView
  6674. Closeo 
  6675.     0S0E
  6676. _Edit Document
  6677. Categori_ze
  6678. Send Docu_ment
  6679. _Forward
  6680. _Move To Folder...
  6681. _Remove From Folder
  6682. O=Lotus Notes
  6683. O=Lotus Notes
  6684. PURSAFO
  6685. |.:#U
  6686. O=Lotus Notes
  6687. CN=Lotus Notes Template Development/O=Lotus Notes
  6688. PURSAFO
  6689. $TITLE
  6690. $INFO
  6691. $WINDOWTITLE
  6692. $$Script_O
  6693. $$ScriptName
  6694. $$FormScript
  6695. $$$FormScript_O
  6696. $BODY
  6697. $ACTIONS
  6698. &Arial
  6699.  StdNotesLtr22
  6700.                                 
  6701. tmpDisplayFrom_Preview
  6702. tmpFrom
  6703. tmpDisplayDate_Preview
  6704. tmpDate
  6705. O=Lotus Notes
  6706. O=Lotus Notes
  6707. PURSAFO
  6708. |.:#U
  6709. O=Lotus Notes
  6710. CN=Lotus Notes Template Development/O=Lotus Notes
  6711. PURSAFO
  6712. Fde!f^^
  6713. )RF~E
  6714. $TITLE
  6715. $INFO
  6716. $Header
  6717. $$ScriptName
  6718. $BODY
  6719. &Arial
  6720.  StdNotesLtr34
  6721. tmpDisplayFrom_Preview
  6722. tmpFrom
  6723. tmpDisplayDate_Preview
  6724. tmpDate
  6725. O=Lotus Notes
  6726. O=Lotus Notes
  6727. PURSAFO
  6728. |.:#U
  6729. O=Lotus Notes
  6730. CN=Lotus Notes Template Development/O=Lotus Notes
  6731. PURSAFO
  6732. $TITLE
  6733. $INFO
  6734. $$ScriptName
  6735. $BODY
  6736.  StdNotesLtr8
  6737. tmpDisplayFrom_Preview
  6738. tmpFrom
  6739. tmpDisplayDate_Preview
  6740. tmpDate
  6741. O=Lotus Notes
  6742. O=Lotus Notes
  6743. PURSAFO
  6744. |.:#U
  6745. O=Lotus Notes
  6746. CN=Lotus Notes Template Development/O=Lotus Notes
  6747. PURSAFO
  6748. Zbm;9
  6749. $TITLE
  6750. $INFO
  6751. $$ScriptName
  6752. $BODY
  6753. ----------------------
  6754.  Forwarded by 
  6755. ForwardedFrom
  6756. ForwardedDate
  6757. ---------------
  6758. --------
  6759. O=Lotus Notes
  6760. O=Lotus Notes
  6761. PURSAFO
  6762. |.:#U
  6763. O=Lotus Notes
  6764. CN=Lotus Notes Template Development/O=Lotus Notes
  6765. PURSAFO
  6766. Fde!f^^
  6767. 6/Jd-
  6768. $TITLE
  6769. $INFO
  6770. $Header
  6771. ForwardedDate
  6772. $BODY
  6773.  StdNotesLtr25
  6774. tmpDisplayFrom_Preview
  6775. tmpFrom
  6776. tmpDisplayDate_Preview
  6777. tmpDate
  6778. O=Lotus Notes
  6779. O=Lotus Notes
  6780. PURSAFO
  6781. |.:#U
  6782. O=Lotus Notes
  6783. CN=Lotus Notes Template Development/O=Lotus Notes
  6784. PURSAFO
  6785. $TITLE
  6786. $INFO
  6787. $$ScriptName
  6788. $BODY
  6789.  StdNotesLtr33
  6790. tmpDisplayFrom_Preview
  6791. tmpFrom
  6792. tmpDisplayDate_Preview
  6793. tmpDate
  6794. O=Lotus Notes
  6795. O=Lotus Notes
  6796. PURSAFO
  6797. |.:#U
  6798. O=Lotus Notes
  6799. CN=Lotus Notes Template Development/O=Lotus Notes
  6800. PURSAFO
  6801. Fde!f^^
  6802. $TITLE
  6803. $INFO
  6804. $Header
  6805. $$Script_O
  6806. $$ScriptName
  6807. $BODY
  6808. &Arial
  6809.  StdNotesLtr2
  6810. tmpDisplayFrom_Preview
  6811. tmpFrom
  6812. tmpDisplayDate_Preview
  6813. tmpDate
  6814. O=Lotus Notes
  6815. O=Lotus Notes
  6816. PURSAFO
  6817. |.:#U
  6818. O=Lotus Notes
  6819. CN=Lotus Notes Template Development/O=Lotus Notes
  6820. PURSAFO
  6821. Fde!f^^
  6822. $TITLE
  6823. $INFO
  6824. $Header
  6825. $$ScriptName
  6826. $BODY
  6827.  StdNotesLtr24
  6828. tmpDisplayFrom_Preview
  6829. tmpFrom
  6830. tmpDisplayDate_Preview
  6831. tmpDate
  6832. O=Lotus Notes
  6833. O=Lotus Notes
  6834. PURSAFO
  6835. |.:#U
  6836. O=Lotus Notes
  6837. CN=Lotus Notes Template Development/O=Lotus Notes
  6838. PURSAFO
  6839. ""I`7
  6840. c5zW#S
  6841. $TITLE
  6842. $INFO
  6843. $$ScriptName
  6844. $BODY
  6845. (ArchiveProfileDlg)
  6846. Local
  6847. ArchiveLocation
  6848. Locally | LocalOn Server | Server
  6849. ArchiveLocation
  6850. Local
  6851.     1S2S
  6852.     0S0E
  6853. ArchiveServer
  6854. ArchiveLocation
  6855. Local
  6856. ArchiveServer
  6857. ArchiveServer
  6858.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  6859. ArchiveServer
  6860. CurrentPath
  6861.     1S2S6S
  6862. CurrentFile
  6863. CurrentPath
  6864.     0R1S2S6S
  6865. FileOnly
  6866. CurrentPath
  6867. CurrentFile
  6868. Macintosh
  6869. CurrentPath
  6870. CurrentFile
  6871. CurrentPath
  6872. CurrentFile
  6873. CurrentFile
  6874.     0R1S2S8S11S15S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  6875. DirOnly
  6876. CurrentPath
  6877. Macintosh
  6878. CurrentFile
  6879. CurrentFile
  6880. CurrentFile
  6881. Macintosh
  6882. CurrentPath
  6883. CurrentFile
  6884. CurrentPath
  6885. CurrentFile
  6886.     0R1S2S8S11S14S15S16S21S23S2E24S27S28S34S36S37S39S43S45S46S49S50S51S52S53S57S60S64S66S67S69S70S71S72S73S77S80S84S86S87S89S
  6887. dftvalue
  6888. DirOnly
  6889. FileOnly"
  6890. CurrentPath
  6891.     0RR1S2S3S4S7S8S10S12S13S17S
  6892. Macintosh
  6893. dftvalue
  6894. dftvalue
  6895. dftvalue
  6896. dftvalue
  6897. dftvalue
  6898.     0R3S4S5S6S21S22S23S24S25S26S
  6899. ArchivePath
  6900. Please specify the filename of the archive database
  6901.     3S4S6S11SArchivePath
  6902.     Documents are archived:
  6903.     Archive database is on server:
  6904.     Archive file:
  6905. servers
  6906. names.nsf
  6907. ($ServersLookup)
  6908.     1S2S
  6909. selectedserver
  6910. Server
  6911. Please select a server to create your archive database on.
  6912. ArchiveServer
  6913. servers
  6914.     0R1S2S
  6915. ArchiveServer
  6916. selectedServer
  6917.     0R1S2S3S
  6918. ?_?__
  6919. `!b`1
  6920. 7`^///?
  6921. ?b___
  6922. `bOOO
  6923. `<b!R
  6924. @If(@IsN
  6925. O=Lotus Notes
  6926. O=Lotus Notes
  6927. PURSAFO
  6928. |.:#U
  6929. O=Lotus Notes
  6930. CN=Lotus Notes Template Development/O=Lotus Notes
  6931. PURSAFO
  6932. Fde!f^^
  6933. $TITLE
  6934. $INFO
  6935. $$ScriptName
  6936. $BODY
  6937. $PublicAccess
  6938. Times New Roman
  6939. VersionOpt|
  6940.     6S7S9S14S
  6941. $VersionOpt
  6942.     0R1S2S3S
  6943. SavedOnce
  6944.     0R1S2S3S
  6945. PostedDate(
  6946.     0R1S2S3S
  6947. DeliveredDate
  6948.     0R1S2S3S
  6949. $AutoEditMode
  6950.     0R1S2S3S
  6951. MailSaveOptions
  6952.     0R1S2S3S
  6953. VersionOpt
  6954.     0R4S
  6955. Memo To Database Manager
  6956. Subject
  6957. Subject
  6958. Subject
  6959.     4S6S12S13S14S15S17S21S23S25S26S28S
  6960. '++LotusScript Development Environment:2:5:(Options):0:74
  6961. Option Public
  6962. Use "EmailProcessing"
  6963. Use "DocumentConversions"
  6964. '++LotusScript Development Environment:2:5:(Forward):0:1
  6965. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6966.  Memo'++LotusScript Development Environment:2:5:(Options):0:66
  6967. '++LotusScript Development Environment:2:5:(Forward):0:1
  6968. Declare Sub Postopen(Source As Notesuidocument)
  6969. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  6970. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6971. Declare Sub Postmodechange(Source As Notesuidocument)
  6972. '++LotusScript Development Environment:2:5:(Declarations):0:2
  6973. '++LotusScript Development Environment:2:2:BindEvents:1:129
  6974. Private Sub BindEvents(Byval Objectname_ As String)
  6975.      Static Source As NOTESUIDOCUMENT
  6976.      Set Source = Bind(Objectname_)
  6977.      On Event Postopen From Source Call Postopen
  6978.      On Event Querysave From Source Call Querysave
  6979.      On Event Queryclose From Source Call Queryclose
  6980.      On Event Postmodechange From Source Call Postmodechange
  6981. End Sub
  6982. '++LotusScript Development Environment:2:2:Postopen:1:12
  6983. Sub Postopen(Source As Notesuidocument)
  6984.      
  6985.      Set ws = New NotesUIWorkSpace
  6986.      Set uidoc = source
  6987.      
  6988.      Call EmailOpen
  6989.      
  6990. End Sub
  6991. '++LotusScript Development Environment:2:2:Querysave:1:12
  6992. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  6993.      
  6994.      Call EmailSave(Continue)
  6995.      
  6996. End Sub
  6997. '++LotusScript Development Environment:2:2:Queryclose:1:12
  6998. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  6999.      
  7000.      Call EmailClose(Continue)
  7001.      
  7002. End Sub
  7003. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  7004. Sub Postmodechange(Source As Notesuidocument)
  7005.      
  7006.      Call EmailModeChange
  7007.      
  7008. End Sub
  7009.     Always hidden: 
  7010. Principal
  7011. CalendarProfile
  7012. Owner
  7013.     1S2S3S7S
  7014. Principal
  7015. Principal
  7016.     0R3S4S6S8S
  7017. FromPerson memo is from.
  7018.     0S0E
  7019.     0S0E
  7020. Encrypt
  7021.     0S0E
  7022. DefaultMailSaveOptions
  7023. $KeepPrivate
  7024. $KeepPrivate
  7025. $KeepPrivate
  7026.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  7027.     From:    
  7028. Principal
  7029. Principal
  7030. FromDomain
  7031. FromDomain
  7032. FromDomain
  7033. FromDomain
  7034.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  7035. FromName
  7036. Principal
  7037. Principal
  7038.     0RR1S2S9S11S15S
  7039. FromStops
  7040.     0R1S2S6S
  7041. FromName
  7042. FromStops
  7043. FromStops
  7044. FromStops
  7045.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  7046.      on 
  7047. PostedDateh
  7048. PostedDate
  7049.     4S5S10S12S
  7050. tmpDisplayDateTime/date memo was created or mailed.
  7051. ReplyDate
  7052. ReplyTo
  7053.     1S2S3S4S5S6S
  7054. Please respond
  7055. ReplyTo
  7056. ReplyTo
  7057. ReplyDate
  7058. ReplyDate
  7059.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  7060. $HideMailHeader
  7061. Principal
  7062. Principal
  7063. Principal
  7064. Principal
  7065. Principal
  7066.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  7067.     Sent by:    
  7068. FromDomain
  7069. FromDomain
  7070. FromDomain
  7071. FromDomain
  7072.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  7073. FromName
  7074.     0RR1S2S6S
  7075. FromStops
  7076.     0R1S2S6S
  7077. FromName
  7078. FromStops
  7079. FromStops
  7080. FromStops
  7081.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  7082. SendTo
  7083. CopyTo
  7084.   cc:  
  7085. CopyTo
  7086.     1S8S13S14S2E17S18S21S28S31S
  7087. SendTo}
  7088.     0S0E
  7089. SendToList of primary people to send memo.
  7090.     cc:    
  7091. CopyTo}
  7092.     0S0E
  7093. CopyToList of people to send a copy of the memo.
  7094. DeliveredDate
  7095. BlindCopyTo
  7096. (bcc: 
  7097. BlindCopyTo
  7098.     3S4S5S6S7S8S10S11S12S16S18S19S21SDisplayBlindCopyTo
  7099.     bcc:
  7100. BlindCopyTo
  7101.     0S0E
  7102. BlindCopyToList of undisclosed people to send copies of memo.
  7103.     Subject:    
  7104. PhoneCaller
  7105. Phone Call: 
  7106. PhoneCaller
  7107. Subject
  7108.     7S8S9S11S:
  7109. Subject
  7110.     0S0E
  7111. SubjectSubject of memo.
  7112. Edit Document
  7113. ForwardK 
  7114.     0S0E
  7115. New Memo.
  7116.     0S0E
  7117. Delete 
  7118.     0S0E
  7119. _Move To Folder...
  7120. Delivery Information...Kz
  7121. DeliveryInfo
  7122. Delivery Information
  7123.     4S5S6S7S8S9S10S12S
  7124. _Forward
  7125. Reply
  7126. Reply
  7127.     0S0E
  7128. Reply With History
  7129. Reply with History
  7130. This document is truncated.
  7131.     4S8S10S13S
  7132. Reply with history
  7133. Address... 
  7134.     0S0E
  7135. PostedDateh
  7136.     5S6S7S8S
  7137. Close
  7138.     0S0E
  7139. IsMailStationeryh
  7140. PostedDateh
  7141.     6S7S
  7142. Save As Draft
  7143. tmpAction
  7144. SaveAsDraft
  7145.     1S2S3S
  7146. IsMailStationeryh
  7147. PostedDateh
  7148.     4S5S
  7149. Save and File
  7150.     7S9S
  7151. tmpAction
  7152. SaveAndFile
  7153.     0R1S2S3S
  7154. IsMailStationeryh
  7155. PostedDateY
  7156. PostedDateh
  7157.     4S5S9S10S16S17S18S19S
  7158. PromptValue
  7159. DefaultMailSaveOptions
  7160. Save when sent
  7161. Do you wish to save a copy of this Memo?
  7162. DefaultMailSaveOptions
  7163.     1S2S5S6S8S14S17S
  7164. SaveOptions
  7165. PromptValue
  7166. SaveOptions
  7167. PromptValue
  7168.     0RR1S2S5S6S9S14S
  7169. tmpAction
  7170. DefaultMailSaveOptions
  7171. Mailing
  7172.     0RR1S2S3S6S7S9S11S
  7173. MailOptions
  7174.     0R1S2S3S
  7175.     0R7S9S
  7176. tmpAction
  7177. SaveOptions
  7178. SendAndFile
  7179.     0RR1S2S3S6S7S9S11S
  7180.     0R7S9S
  7181. PostedDateh
  7182. IsMailStationeryh
  7183.     5S6S7S8S10S11S
  7184. Send And File...
  7185.     4S11S13S19S
  7186.     0RR7S9S
  7187. tmpAction
  7188. DefaultMailSaveOptions
  7189. Mailing
  7190.     0RR1S2S3S6S7S9S11S
  7191. MailOptions
  7192.     0R1S2S3S
  7193.     0R7S9S
  7194. tmpAction
  7195. SendAndFile
  7196.     0RR1S2S3S
  7197.     0R7S9S
  7198. PostedDateh
  7199. IsMailStationeryh
  7200.     5S6S7S8S10S11S
  7201. Delivery Options...K
  7202. DeliveryOptions
  7203. Delivery Options
  7204.     4S8S
  7205. _ViewIcon
  7206. SenderTag
  7207. SenderTag
  7208. SenderTag
  7209. SenderTag
  7210. SenderTag
  7211. SenderTag
  7212. SenderTag
  7213. SenderTag
  7214. SenderTag
  7215. SenderTag
  7216. SenderTag
  7217.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  7218. PostedDateh
  7219.     5S6S7S8S
  7220. Special Options...
  7221. ReplyDate
  7222. ReplyDate
  7223.     1S2S3S
  7224. ReplyTo
  7225. ReplyTo
  7226.     0R1S2S3S
  7227. (Advanced Options)
  7228. Special Options
  7229.     0R6S10S13S15S
  7230. tmpDisplayReplyInfo
  7231. Please respond
  7232. ReplyTo
  7233. ReplyTo
  7234. ReplyDate
  7235. ReplyDate
  7236.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  7237. DueDateTime
  7238. ReplyDate
  7239.     0R1S2S3S
  7240. PostedDateh
  7241.     5S6S7S8S
  7242. _Remove From Folder...
  7243. Categori_zeK
  7244. SSend
  7245. PostedDateY
  7246.     0S0E
  7247. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  7248. '++LotusScript Development Environment:2:5:(Forward):0:1
  7249. Declare Sub Click(Source As Button)
  7250. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7251. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7252. Private Sub BindEvents(Byval Objectname_ As String)
  7253.      Static Source As BUTTON
  7254.      Set Source = Bind(Objectname_)
  7255.      On Event Click From Source Call Click
  7256. End Sub
  7257. '++LotusScript Development Environment:2:2:Click:1:12
  7258. Sub Click(Source As Button)
  7259.      Call CreateNewDoc(NEW_MEMO)
  7260. End Sub
  7261. tmpNewDoc
  7262.     1S2S
  7263. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  7264. '++LotusScript Development Environment:2:5:(Forward):0:1
  7265. Declare Sub Click(Source As Button)
  7266. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7267. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7268. Private Sub BindEvents(Byval Objectname_ As String)
  7269.      Static Source As BUTTON
  7270.      Set Source = Bind(Objectname_)
  7271.      On Event Click From Source Call Click
  7272. End Sub
  7273. '++LotusScript Development Environment:2:2:Click:1:12
  7274. Sub Click(Source As Button)
  7275.      Call CreateNewDoc(NEW_CALENDAR)
  7276. End Sub
  7277. tmpnewdoc
  7278.     1S2S
  7279. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  7280. '++LotusScript Development Environment:2:5:(Forward):0:1
  7281. Declare Sub Click(Source As Button)
  7282. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7283. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7284. Private Sub BindEvents(Byval Objectname_ As String)
  7285.      Static Source As BUTTON
  7286.      Set Source = Bind(Objectname_)
  7287.      On Event Click From Source Call Click
  7288. End Sub
  7289. '++LotusScript Development Environment:2:2:Click:1:12
  7290. Sub Click(Source As Button)
  7291.      Call CreateNewDoc(NEW_TASK)
  7292. End Sub
  7293. tmpnewdoc
  7294.     1S2S
  7295. Copy into\New GroupK,
  7296. NewGroup
  7297.     0S0E
  7298. tmpnewdoc
  7299.     1S2S
  7300. O=Lotus Notes
  7301. O=Lotus Notes
  7302. PURSAFO
  7303. |.:#U
  7304. O=Lotus Notes
  7305. CN=Lotus Notes Template Development/O=Lotus Notes
  7306. PURSAFO
  7307. $$FormPostOpenAction
  7308. $TypeIcon
  7309. ExpireDate
  7310. ReplyDate
  7311. ComposedDate
  7312. $TITLE
  7313. $AUTOLAUNCH
  7314. $INFO
  7315. $WINDOWTITLE
  7316. $Script
  7317. $$Script_O
  7318. $$ScriptName
  7319. $$FormScript
  7320. $$$FormScript_O
  7321. $BODY
  7322. $ACTIONS
  7323. $SCRIPTOBJ_20
  7324. $SCRIPTOBJ_21
  7325. $SCRIPTOBJ_22
  7326. Choose Letterhead
  7327. (LetterHeadChooser)'++LotusScript Development Environment:2:5:(Options):0:66
  7328. '++LotusScript Development Environment:2:5:(Forward):0:1
  7329. Declare Sub Postrecalc(Source As Notesuidocument)
  7330. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7331. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7332. Private Sub BindEvents(Byval Objectname_ As String)
  7333.      Static Source As NOTESUIDOCUMENT
  7334.      Set Source = Bind(Objectname_)
  7335.      On Event Postrecalc From Source Call Postrecalc
  7336. End Sub
  7337. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  7338. Sub Postrecalc(Source As Notesuidocument)
  7339.      Dim s As New notesSession    
  7340.      Dim w As New notesuiworkspace
  7341.      Dim doc As notesuidocument
  7342.      Set doc=w.currentdocument
  7343.      
  7344.      Dim Note As NotesDocument
  7345.      Set Note = Doc.Document
  7346.      
  7347.      s.SetEnvironmentVar "DefaultLogo", Note.LetterHeadChoices(0)
  7348.      Doc.Close
  7349.      w.ComposeDocument "","","(LetterHeadChooser)"
  7350. End Sub
  7351. SaveOptions
  7352. FromPerson memo is from.
  7353. DefaultLogo
  7354. stdNotesLtr0
  7355. DefaultLogo
  7356.     From:    
  7357. FromDomain
  7358. FromDomain
  7359. FromDomain
  7360. FromDomain
  7361.     7S10S18S19S23S25S28S29S31S33S34S35S41S44S48S51S57S
  7362. FromName
  7363.     0RR1S2S6S
  7364. FromStops
  7365.     0R1S2S6S
  7366. FromName
  7367. FromStops
  7368.     0RR1S2S3S4S8StmpDisplayFrom_Preview
  7369.      on 
  7370. PostedDateh
  7371. PostedDate
  7372.     7S9S
  7373. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  7374.     Preview  letterheads for new Memos and Replies in the list below.  
  7375.     When you find one you like, press Done. 
  7376. LetterHeadChoices
  7377. 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
  7378. DefaultLogo
  7379.     0S0E
  7380. Categori_ze
  7381. _Edit Document
  7382. Send Docu_ment
  7383. _Forward
  7384. _Move To Folder...
  7385. _Remove From Foldert
  7386. Choose New Letter Head
  7387. DefaultLogo
  7388. DefaultLogo
  7389.     1S2S
  7390. Logos
  7391.     0RR1S2S
  7392. The following list should be translated. It is presented to user in list box
  7393.     0R1S
  7394. LogoNames
  7395. Three
  7396. Buck Rogers
  7397. Centered Rich
  7398. Confetti
  7399. Falling Balls
  7400. Frank Lloyde
  7401.     0R1S2S
  7402. Select a Letterhead
  7403. Select the Letterhead which will appear at the top of all new Memos and Replys
  7404. DefaultLogo
  7405. Logos
  7406. LogoNames
  7407. LogoNames
  7408.     0R1S2S14S16S19S
  7409. DefaultLogo
  7410. LogoNames
  7411. Logos
  7412.     0RR4S8S10S
  7413. preview
  7414. Done 
  7415.     0S0E
  7416. O=Lotus Notes
  7417. O=Lotus Notes
  7418. PURSAFO
  7419. |.:#U
  7420. O=Lotus Notes
  7421. CN=Lotus Notes Template Development/O=Lotus Notes
  7422. PURSAFO
  7423. $TITLE
  7424. $INFO
  7425. $WINDOWTITLE
  7426. $$Script_O
  7427. $$ScriptName
  7428. $$FormScript
  7429. $BODY
  7430. $ACTIONS
  7431. &Arial Narrow
  7432. &Arial
  7433.  StdNotesLtrGateway
  7434.     Hidden: 
  7435. tmpDisplayDate_Preview
  7436. tmpDate
  7437. tmpDisplayFrom_Preview
  7438.  on "
  7439. tmpDisplayDate_Preview
  7440. D0S2V
  7441.     3S4S5S6S10StmpFrom
  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. $$Script_O
  7453. $$ScriptName
  7454. $BODY
  7455. Times New Roman
  7456. About MIME Conversion Forms
  7457.  @  @@ @` @
  7458. @@ @@@@@`@@
  7459. `@ `@@`@``@
  7460.     The template is used to create a database for use during the rendering of Notes Mail Rich Text bodies to MIME content.  The database: cmcforms.nsf is created automatically the first time CD->MIME conversion takes place.
  7461.     There is no Help available for this template.
  7462. O=Lotus Notes
  7463. O=Lotus Notes
  7464. PURSAFO
  7465. |.:#U
  7466. O=Lotus Notes
  7467. CN=Lotus Notes Template Development/O=Lotus Notes
  7468. PURSAFO
  7469. $INFO
  7470. $BODY
  7471. '++LotusScript Development Environment:2:5:(Options):0:74
  7472. Option Public
  7473. Use "NoticeProcessing"
  7474. Use "NoticeResponses"
  7475. Use "RepeatProcessing"
  7476. '++LotusScript Development Environment:2:5:(Forward):0:1
  7477. Declare Sub Initialize
  7478. Declare Function CanAutoProcess As Integer
  7479. '++LotusScript Development Environment:2:5:(Declarations):0:10
  7480. 'AutoProcessNotices: 
  7481. Dim FromList As Variant
  7482. Dim autodocs As NotesDocumentCollection
  7483. '++LotusScript Development Environment:2:2:Initialize:1:10
  7484. Sub Initialize
  7485.      Dim context As Integer
  7486.      
  7487.      On Error 4005 Resume Next ' handle the case if the parent document cannot be found
  7488.      
  7489.      Set session = New NotesSession
  7490.      Set db = session.CurrentDatabase
  7491.      Set autodocs = db.UnprocessedDocuments
  7492.      IsAgentProcessing = True
  7493. 'if we don't have any documents to process, we can exit now
  7494.      If (autodocs.count = 0) Then Exit Sub
  7495.      
  7496.      Set profile = db.GetProfileDocument("CalendarProfile")
  7497.      FromList = profile.MeetingsPeople
  7498.      Owner = profile.Owner(0)
  7499.      If (Owner = "") Then Owner = session.UserName
  7500.      
  7501.      Set note = autodocs.GetFirstDocument
  7502.      While Not (note Is Nothing)
  7503. 'we only need to process meeting invitations from other people; do not process meeting responses back from invitees          
  7504.           If (note.Form(0) = "Notice") And (note.Chair(0) <> Owner) Then
  7505. 'make sure we can process this notice
  7506.                If (CanAutoProcess) Then
  7507.                     ' First, see if this is a repeating update notice from a pre-5.0 user
  7508.                     If (note.HasItem("$CSVersion")) Then Call DowngradeV5Invite(note)
  7509. 'determine the type of notice being sent to us
  7510.                     Select Case note.NoticeType(0)
  7511.                     Case ORS_MSGTYPE_INVITE,ORS_MSGTYPE_DELEGATE
  7512. 'check for notice updates; if we have any, then do not process this note
  7513.                          Call GetMostRecentUpdateNotice(context)
  7514.                          If (UpdateResponses(0).misc2 = "") Then                                                 'we didn't find any update notices that we care about
  7515. 'we are receiving an invitation
  7516.                               If (note.HasItem("RepeatIds")) Then
  7517. 'this is a repeating meeting; determine if this is a broadcast notice or not
  7518.                                    If (note.Broadcast(0) <> "1") Then 
  7519.                                         note.tmpAction = "Accept"
  7520.                                         Call AcceptInvitation
  7521.                                    Else
  7522.                                         note.tmpAction = "AddCalendar"
  7523.                                         Call UpdateOriginalInvitation(note)
  7524. 'see if we should remove this from the inbox
  7525.                                         If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  7526.                                    End If                                   
  7527.                                    Action = "Accept"
  7528.                                    InstancesCreated = False
  7529.                                    Call RepeatSave
  7530.                               Else
  7531. 'this is a standard invitation                              
  7532.                                    If Not (CheckIfConflictExists) Then
  7533.                                         If (note.Broadcast(0) = "1") Then
  7534.                                              note.tmpAction = "AddCalendar"
  7535.                                              Call UpdateOriginalInvitation(note)
  7536.  'see if we should remove this from the inbox
  7537.                                              If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  7538.                                         Else
  7539.                                              note.tmpAction = "Accept"                                        
  7540.                                              Call AcceptInvitation                                    
  7541.                                         End If
  7542.                                    Else
  7543.                                         note.Subject = "(Time Conflict) " & note.Subject(0)
  7544.                                         Call MarkTempFields(note)
  7545.                                         Call note.Save(True,True)
  7546.                                    End If
  7547.                               End If
  7548.                          End If
  7549.                     Case ORS_MSGTYPE_RESCHEDULE
  7550. 'the meeting is being rescheduled          
  7551.                          Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  7552.                          If (parentnote Is Nothing) Then
  7553.                               note.Subject = "(Missing Parent Document) " & note.Subject(0)
  7554.                               Call MarkTempFields(note)
  7555.                               Call note.Save(True,True)
  7556.                          Else
  7557. 'get the most recent update notice and see if this note is the most recent one; we only process the most recent update notice
  7558.                               Call GetMostRecentUpdateNotice(context)
  7559.                               If (note.UniversalID = UpdateResponses(0).misc2) Then
  7560. 'we will only process the reschedule if the SequenceNum of the reschedule is greater than the parent SequenceNum                    
  7561.                                    If (note.SequenceNum(0) > parentnote.SequenceNum(0)) Then                 
  7562. 'if this is a repeating meeting, then handle this differently
  7563.                                         If (note.HasItem("OrgRepeat")) Then
  7564.                                              Call SaveOriginalValues
  7565.                                              note.tmpAction = "AddCalendar"
  7566.                                              Call UpdateOriginalInvitation(parentnote)
  7567.                                              Action = ""
  7568.                                              Call RepeatSave
  7569.                                         Else
  7570.                                              If Not (CheckIfConflictExists) Then
  7571.                                                   If (note.Broadcast(0) = "1") Then
  7572.                                                        note.tmpAction = "AddCalendar"
  7573.                                                        Call UpdateOriginalInvitation(parentnote)
  7574.                                                   Else
  7575.                                                        note.tmpAction = "Accept"                                             
  7576.                                                        Call AcceptInvitation                                    
  7577.                                                   End If
  7578.                                              Else
  7579.                                                   note.Subject = "(Time Conflict) " & note.Subject(0)
  7580.                                                   Call MarkTempFields(note)
  7581.                                                   Call note.Save(True,True)
  7582.                                              End If
  7583.                                         End If                                        
  7584.                                    End If       
  7585.                               End If
  7586.                          End If
  7587.                     Case ORS_MSGTYPE_CANCEL,ORS_MSGTYPE_STATUSUPDATE
  7588. 'if the orgstatus <> ORS_STATUS_REMOVED, then the chair is requiring us to attend
  7589. 'we only want to look for a parent if this document is a response; the original invitation might be stamped as a cancel
  7590.                          If (note.IsResponse) Then
  7591.                               Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  7592.                               If (parentnote Is Nothing) Then
  7593.                                    note.Subject = "(Missing Parent Document) " & note.Subject(0)
  7594.                                    Call MarkTempFields(note)
  7595.                                    Call note.Save(True,True)
  7596.                               Else                         
  7597.                                    If (note.OrgStatus(0) <> ORS_STATUS_REMOVED) And (note.NoticeType(0) = ORS_MSGTYPE_STATUSUPDATE) Then
  7598. 'currently, we do nothing -> you could call CommitAppointment passing it (parentnote)                              
  7599.                                    Else
  7600. 'get the most recent update notice and see if this note is the most recent one; we only process the most recent update notice
  7601.                                         Call GetMostRecentUpdateNotice(context)
  7602.                                         If (note.UniversalID = UpdateResponses(0).misc2) Then                                            
  7603. 'decommit the parent document if the SequenceNum on the note is >= the parent SequenceNum
  7604.                                              If (note.SequenceNum(0) >= parentnote.SequenceNum(0)) Then 
  7605.                                                   Call DeCommitAppointment(parentnote)
  7606.                                                   'we need to do this here since this is not handled in QuerySave          
  7607.                                                   If note.HasItem("OrgRepeat") Then
  7608.                                                        Action = "Cancel"
  7609.                                                        Call RepeatSave
  7610.                                                   End If
  7611.                                              End If
  7612.                                         End If
  7613.                                    End If
  7614.                               End If  
  7615.                          End If
  7616.                     End Select
  7617.                End If        
  7618.           End If
  7619.           Call session.UpdateProcessedDoc(note)
  7620.           Set note = autodocs.GetNextDocument(note)     
  7621.      Wend
  7622. End Sub
  7623. '++LotusScript Development Environment:2:1:CanAutoProcess:1:8
  7624. Function CanAutoProcess As Integer
  7625.      Dim namAllowed As NotesName
  7626.      Dim namPrincipal As NotesName
  7627.      
  7628. 'returns true if the given invitation can be autoprocessed or false if it can't
  7629.      CanAutoProcess = False
  7630.      
  7631.      ' If this is a replication conflict, do not process it
  7632.      If (note.HasItem("$Conflict")) Then Exit Function
  7633.      
  7634. 'if there are no items in the fromlist, then we can process this
  7635.      If (FromList(0) = "") Or (FromList(0) = "*") Then
  7636.           CanAutoProcess = True
  7637.           Exit Function
  7638.      End If
  7639.      
  7640.      Set namPrincipal = New NotesName(note.Principal(0))
  7641.      
  7642.      Forall f In FromList
  7643.           Set namAllowed = New NotesName(f)
  7644.           
  7645.           If Lcase(namPrincipal.Canonical) = Lcase(namAllowed.Canonical) Then
  7646.                CanAutoProcess = True
  7647.                Exit Forall
  7648.           End If
  7649.           
  7650.           If Lcase(namPrincipal.Common) = Lcase(namAllowed.Common) Then
  7651.                CanAutoProcess = True
  7652.                Exit Forall
  7653.           End If
  7654.      End Forall
  7655. End Function
  7656. O=Lotus Notes
  7657. O=Lotus Notes
  7658. PURSAFO
  7659. |.:#U
  7660. O=Lotus Notes
  7661. CN=Lotus Notes Template Development/O=Lotus Notes
  7662. PURSAFO
  7663. $TITLE
  7664. $AssistType
  7665. $AssistLastRun
  7666. $AssistDocCount
  7667. $AssistFlags
  7668. $AssistTrigger
  7669. $AssistInfo
  7670. $AssistQuery
  7671. $AssistAction
  7672. $AssistAction_Ex
  7673. Delegation Profile
  7674. &Arial
  7675. '++LotusScript Development Environment:2:5:(Options):0:74
  7676. Option Public
  7677. '++LotusScript Development Environment:2:5:(Forward):0:1
  7678. Declare Sub GetAclEntries
  7679. '++LotusScript Development Environment:2:5:(Declarations):0:10
  7680. Dim acl As NotesACL
  7681. Dim aclentry As NotesAclEntry
  7682. Dim nextaclentry As NotesAclEntry
  7683. Dim note As NotesDocument
  7684. Dim db As NotesDatabase
  7685. Dim nam As NotesName
  7686. Dim session As NotesSession
  7687. Dim ReadCal() As Variant
  7688. Dim WriteCal() As Variant
  7689. Dim ReadMail() As Variant
  7690. Dim WriteMail() As Variant
  7691. Dim EditMail() As Variant
  7692. Dim DeleteMail() As Variant
  7693. Dim OtherUsers() As Variant
  7694. Dim DoNotEdit As Integer
  7695. '++LotusScript Development Environment:2:2:GetAclEntries:1:8
  7696. Sub GetAclEntries
  7697.      
  7698.      note.ReadCalendar = ""
  7699.      note.WriteCalendar = ""
  7700.      note.ReadMail = ""
  7701.      note.WriteMail = ""
  7702.      note.EditMail = ""
  7703.      note.DeleteMail = ""
  7704.      
  7705.      Redim ReadCal(0)
  7706.      Redim WriteCal(0)
  7707.      Redim ReadMail(0)
  7708.      Redim WriteMail(0)
  7709.      Redim EditMail(0)
  7710.      Redim DeleteMail(0)
  7711.      Redim OtherUsers(0)
  7712.      
  7713.      Set aclentry = acl.GetFirstEntry
  7714.      Do Until aclentry Is Nothing
  7715.           Select Case aclentry.Level
  7716.           Case ACLLEVEL_NOACCESS
  7717.                If aclentry.Name = "-Default-" Then
  7718.                     If aclentry.IsPublicReader Then
  7719.                          note.PublicRead = "1"
  7720.                     Else
  7721.                          note.PublicRead = ""
  7722.                     End If
  7723.                     If aclentry.IsPublicWriter Then
  7724.                          note.PublicWrite = "1"
  7725.                     Else
  7726.                          note.PublicWrite = ""
  7727.                     End If
  7728.                Else
  7729.                     If aclentry.IsPublicReader Or aclentry.IsPublicWriter Then
  7730.                          If aclentry.IsPublicReader Then
  7731.                               x = Ubound(ReadCal)
  7732.                               ReadCal(x) = aclentry.Name
  7733.                               Redim Preserve ReadCal(x + 1)
  7734.                          End If
  7735.                          Gosub CheckPublicWriter
  7736.                     Else
  7737. 'These are other NoAccess people and we don't want to change them
  7738.                          x = Ubound(OtherUsers)
  7739.                          OtherUsers(x) = aclentry.Name
  7740.                          Redim Preserve OtherUsers(x + 1)
  7741.                     End If
  7742.                End If
  7743.           Case ACLLEVEL_READER
  7744.                x = Ubound(ReadMail)
  7745.                ReadMail(x) = aclentry.Name
  7746.                Redim Preserve ReadMail(x + 1)
  7747.                Gosub CheckPublicWriter
  7748.           Case ACLLEVEL_AUTHOR
  7749.                If aclentry.CanCreateDocuments Then
  7750.                     x = Ubound(WriteMail)
  7751.                     WriteMail(x) = aclentry.Name
  7752.                     Redim Preserve WriteMail(x + 1)
  7753.                End If
  7754.                If aclentry.CanDeleteDocuments Then
  7755.                     x = Ubound(DeleteMail)
  7756.                     DeleteMail(x) = aclentry.Name
  7757.                     Redim Preserve DeleteMail(x + 1)
  7758.                End If
  7759.                Gosub CheckPublicWriter
  7760.           Case ACLLEVEL_EDITOR
  7761.                x = Ubound(EditMail)
  7762.                EditMail(x) = aclentry.Name
  7763.                Redim Preserve EditMail(x + 1)
  7764.                If aclentry.CanDeleteDocuments Then
  7765.                     x = Ubound(DeleteMail)
  7766.                     DeleteMail(x) = aclentry.Name
  7767.                     Redim Preserve DeleteMail(x + 1)
  7768.                End If
  7769.                Gosub CheckPublicWriter
  7770.           Case Else
  7771. 'These are Manager and Designers and we don't want to change them
  7772.                x = Ubound(OtherUsers)
  7773.                OtherUsers(x) = aclentry.Name
  7774.                Redim Preserve OtherUsers(x + 1)
  7775.           End Select
  7776.           Set aclentry = acl.GetNextEntry(aclentry)
  7777.      Loop
  7778.      
  7779.      note.ReadCalendar = ReadCal
  7780.      note.WriteCalendar = WriteCal
  7781.      note.ReadMail = ReadMail
  7782.      note.WriteMail = WriteMail
  7783.      note.EditMail = EditMail
  7784.      note.DeleteMail = DeleteMail
  7785.      
  7786.      Exit Sub
  7787.      
  7788. CheckPublicWriter:
  7789.      If aclentry.IsPublicWriter Then
  7790.           x = Ubound(WriteCal)
  7791.           WriteCal(x) = aclentry.Name
  7792.           Redim Preserve WriteCal(x + 1)
  7793.      End If
  7794.      Return
  7795.      
  7796. End Sub
  7797.  DelegationProfile'++LotusScript Development Environment:2:5:(Options):0:66
  7798. '++LotusScript Development Environment:2:5:(Forward):0:1
  7799. Declare Sub Postopen(Source As Notesuidocument)
  7800. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  7801. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  7802. '++LotusScript Development Environment:2:5:(Declarations):0:2
  7803. '++LotusScript Development Environment:2:2:BindEvents:1:129
  7804. Private Sub BindEvents(Byval Objectname_ As String)
  7805.      Static Source As NOTESUIDOCUMENT
  7806.      Set Source = Bind(Objectname_)
  7807.      On Event Postopen From Source Call Postopen
  7808.      On Event Querysave From Source Call Querysave
  7809.      On Event Querymodechange From Source Call Querymodechange
  7810. End Sub
  7811. '++LotusScript Development Environment:2:2:Postopen:1:12
  7812. Sub Postopen(Source As Notesuidocument)
  7813.      
  7814.      Set session = New NotesSession
  7815.      Set note = source.document
  7816.      Set db = note.ParentDatabase
  7817.      Set acl = db.ACL
  7818.      
  7819.      Set aclentry = acl.GetEntry(session.Username)
  7820.      If aclentry Is Nothing Then
  7821.           Set nam = New NotesName(session.Username)
  7822.           Set aclentry = acl.GetEntry(nam.Common)
  7823.      End If
  7824.      
  7825.      If aclentry Is Nothing Then
  7826.           source.EditMode = False
  7827.      Elseif aclentry.level < ACLLEVEL_MANAGER Then
  7828. 'You need to be a manager to edit the ACL
  7829.           DoNotEdit = True
  7830.           source.EditMode = False
  7831.      End If     
  7832.      
  7833. 'setting reload = false because these updates were already done in the preceeding agent
  7834. '(we needed to populate the fields before loading the profile in case we had to use read mode)     
  7835.      source.AutoReload = False
  7836. 'executing GetAclEntries in order to initialize the arrays     
  7837.      GetAclEntries
  7838.      
  7839.      source.RefreshHideFormulas
  7840.      
  7841. End Sub
  7842. '++LotusScript Development Environment:2:2:Querysave:1:12
  7843. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  7844.      
  7845.      On Error Goto ErrorRoutine
  7846.      
  7847. 'We are replacing existing ACL with the new values entered here (with the exception of OtherUsers)     
  7848.      
  7849.      NewReadCal = note.ReadCalendar
  7850.      NewWriteCal = note.WriteCalendar
  7851.      NewReadMail = note.ReadMail
  7852.      NewWriteMail = note.WriteMail
  7853.      NewEditMail = note.EditMail
  7854.      NewDeleteMail = note.DeleteMail
  7855.      ListSize = Ubound(OtherUsers)
  7856.      
  7857. 'For each list, see if they are already in the acl.
  7858. 'If they are then change them - otherwise add them     
  7859.      
  7860.      If note.PublicRead(0) = "1" Then
  7861.           note.ReadCal = ""
  7862.           NewReadCal = note.ReadCal
  7863.           EntryName = "-Default-"
  7864.           AccessLevel = ACLLEVEL_NOACCESS
  7865.           Gosub PostNewAccess              
  7866.           aclentry.IsPublicReader = True     
  7867.           aclentry.IsPublicWriter = False
  7868.      Else
  7869.           EntryName = "-Default-"
  7870.           AccessLevel = ACLLEVEL_NOACCESS
  7871.           Gosub PostNewAccess              
  7872.           aclentry.IsPublicReader = False
  7873.           aclentry.IsPublicWriter = False
  7874.      End If
  7875.      
  7876.      If note.PublicWrite(0) = "1" Then
  7877.           note.WriteCal = ""
  7878.           NewWriteCal = note.WriteCal
  7879.           EntryName = "-Default-"
  7880.           AccessLevel = ACLLEVEL_NOACCESS
  7881.           Gosub PostNewAccess              
  7882.           aclentry.IsPublicWriter = True     
  7883. 'If you can manage the calendar, you need to be able to read it as well
  7884.           aclentry.IsPublicReader = True     
  7885.      Else
  7886.           EntryName = "-Default-"
  7887.           AccessLevel = ACLLEVEL_NOACCESS
  7888.           Gosub PostNewAccess              
  7889.           aclentry.IsPublicWriter = False
  7890.      End If
  7891.      
  7892.      Forall x In NewReadCal
  7893.           If x <> "" Then
  7894.                EntryName = x
  7895.                AccessLevel = ACLLEVEL_NOACCESS
  7896.                Gosub PostNewAccess              
  7897.                If aclentry.Level = ACLLEVEL_NOACCESS Then
  7898.                     aclentry.IsPublicReader = True
  7899.                     aclentry.IsPublicWriter = False
  7900.                End If
  7901.           End If
  7902.      End Forall
  7903.      
  7904.      Forall x In NewWriteCal
  7905.           If x <> "" Then
  7906.                EntryName = x
  7907.                AccessLevel = ACLLEVEL_NOACCESS
  7908.                Gosub PostNewAccess              
  7909.                If aclentry.Level = ACLLEVEL_NOACCESS Then
  7910.                     aclentry.IsPublicWriter = True
  7911. 'If you can manage the calendar, you need to be able to read it as well
  7912.                     aclentry.IsPublicReader = True     
  7913.                End If
  7914.           End If
  7915.      End Forall
  7916.      
  7917.      Forall x In NewReadMail
  7918.           If x <> "" Then          
  7919.                EntryName = x
  7920.                AccessLevel = ACLLEVEL_READER
  7921.                Gosub PostNewAccess
  7922.                If aclentry.Level = ACLLEVEL_READER Then
  7923.                     Gosub CheckPublicWrite
  7924.                End If
  7925.           End If          
  7926.      End Forall
  7927.      
  7928.      Forall x In NewWriteMail
  7929.           If x <> "" Then          
  7930.                EntryName = x
  7931.                AccessLevel = ACLLEVEL_AUTHOR
  7932.                Gosub PostNewAccess              
  7933.                If aclentry.Level = ACLLEVEL_AUTHOR Then
  7934.                     aclentry.CanCreateDocuments = True               
  7935.                     aclentry.CanDeleteDocuments = False
  7936.                     Gosub CheckPublicWrite
  7937.                End If
  7938.           End If          
  7939.      End Forall
  7940.      
  7941.      Forall x In NewEditMail
  7942.           If x <> "" Then          
  7943.                EntryName = x
  7944.                AccessLevel = ACLLEVEL_EDITOR
  7945.                Gosub PostNewAccess              
  7946.                If aclentry.Level = ACLLEVEL_EDITOR Then
  7947.                     aclentry.CanDeleteDocuments = False
  7948.                End If
  7949.           End If          
  7950.      End Forall
  7951.      
  7952. 'now remove entries which have not been accounted for
  7953.      Set aclentry = acl.GetFirstEntry
  7954.      If OtherUsers(ListSize) = "" Then Redim Preserve OtherUsers(ListSize - 1)
  7955.      Do Until aclentry Is Nothing
  7956.           Set nextaclentry = acl.GetNextEntry(aclentry)
  7957.           NotFound = True
  7958.           Forall x In OtherUsers
  7959.                If x = aclentry.Name Then NotFound = False
  7960.           End Forall
  7961.           If NotFound Then aclentry.Remove
  7962.           Set aclentry = nextaclentry
  7963.      Loop
  7964.      
  7965.      ListSize = Ubound(OtherUsers) + 1
  7966.      Redim Preserve OtherUsers(ListSize)                    
  7967.      
  7968.      Forall x In NewDeleteMail
  7969.           If x <> "" Then          
  7970.                Set aclentry = acl.GetEntry(x)
  7971.                Set nam = New NotesName(x)
  7972.                If aclentry Is Nothing Then
  7973.                     Messagebox "You must add " & nam.Common & _
  7974.                     " to either the ""Read and send"" or the ""Read, send, and edit"" list before adding them to the ""Delete"" list.", 0, "Error"
  7975.                     continue = False
  7976.                     Exit Sub
  7977.                Elseif aclentry.Level < ACLLEVEL_AUTHOR Then
  7978.                     Messagebox "You must add " & nam.Common & _
  7979.                     " to either the ""Read and send"" or the ""Read, send, and edit"" list before adding them to the ""Delete"" list.", 0, "Error"
  7980.                     continue = False
  7981.                     Exit Sub
  7982.                Elseif aclentry.Level > ACLLEVEL_EDITOR Then
  7983.                     EntryName = nam.Common
  7984.                     Gosub CannotChange
  7985.                     Messagebox nam.Common & " is currently a " & CurrentLevel & " of this database.  " &_
  7986.                     "Managers and Designers cannot be modified using the Delegation Profile.", 0, "Cannot Change " & CurrentLevel
  7987.                End If
  7988.                If aclentry.Level < ACLLEVEL_DESIGNER Then
  7989.                     aclentry.CanDeleteDocuments = True               
  7990.                     OtherUsers(ListSize) = x     
  7991.                     ListSize = ListSize + 1
  7992.                     Redim Preserve OtherUsers(ListSize)
  7993.                End If
  7994.           End If          
  7995.      End Forall
  7996.      
  7997. '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
  7998.      'acl.save
  7999.      'Delete acl
  8000.      'Set acl= db.ACL
  8001.      
  8002.      
  8003.      
  8004.      acl.save
  8005.      
  8006.      GetAclEntries
  8007.      
  8008.      source.Reload
  8009.      source.RefreshHideFormulas
  8010.      
  8011.      Exit Sub
  8012.      
  8013. PostNewAccess:
  8014.      Set aclentry = acl.GetEntry(EntryName)
  8015.      If aclentry Is Nothing Then
  8016.           Set aclentry = New NotesAclEntry(acl, EntryName, AccessLevel)
  8017.      Else
  8018. 'we don't want to downgrade designers and managers, but we may want to downgrade editors or authors          
  8019.           If aclentry.Level < ACLLEVEL_DESIGNER Then
  8020.                aclentry.Level = AccessLevel
  8021.           Else
  8022.                Gosub CannotChange
  8023.                Messagebox nam.Common & " is currently a " & CurrentLevel & " of this database and can already " &_
  8024.                NewLevel & ".  Managers and Designers cannot be modified using the Delegation Profile.", 0, "Cannot Change " & CurrentLevel
  8025.           End If
  8026.      End If
  8027.      OtherUsers(ListSize) = EntryName     
  8028.      ListSize = ListSize + 1
  8029.      Redim Preserve OtherUsers(ListSize)
  8030.      
  8031.      Return
  8032.      
  8033. CannotChange:
  8034.      Set nam = New NotesName(EntryName)
  8035.      If aclentry.Level = ACLLEVEL_DESIGNER Then
  8036.           CurrentLevel = "Designer"
  8037.      Else
  8038.           CurrentLevel = "Manager"
  8039.      End If
  8040.      Select Case AccessLevel
  8041.      Case ACLLEVEL_READER
  8042.           NewLevel = "read mail"
  8043.      Case ACLLEVEL_AUTHOR
  8044.           NewLevel = "send mail"
  8045.      Case ACLLEVEL_EDITOR
  8046.           NewLevel = "edit documents"
  8047.      Case Else
  8048.           NewLevel = "manage the calendar"
  8049.      End Select
  8050.      
  8051.      Return
  8052.      
  8053. CheckPublicWrite:
  8054. 'If a reader or author is found in the NewWriteCal list then turn on public access write, else turn it off     
  8055.      NameFound = False
  8056.      Forall y In NewWriteCal
  8057.           If y = EntryName Then
  8058.                NameFound = True
  8059.                Exit Forall
  8060.           End If
  8061.      End Forall
  8062.      If NameFound Then
  8063.           aclentry.IsPublicWriter = True     
  8064.      Else
  8065.           aclentry.IsPublicWriter = False
  8066.      End If
  8067.      Return
  8068.      
  8069. ErrorRoutine:
  8070.      Messagebox Error & " (Save Delegation)"
  8071.      Exit Sub
  8072.      
  8073. End Sub
  8074. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  8075. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  8076.      If DoNotEdit And source.EditMode = False Then continue = False
  8077. End Sub
  8078. .WK1;*.WR1;*
  8079. TIFF 5.0 Imag
  8080. =    o0ah
  8081. e    G0e    
  8082. Delegation Profile
  8083. CalendarProfile
  8084. Owner
  8085.     4S6S7S
  8086. Owner of Mail File:
  8087. Owner
  8088. CalendarProfile
  8089. Owner
  8090.     1S2S6S
  8091. Owner
  8092. Owner
  8093.     0R3S4S6S8S
  8094. Owner
  8095. CalendarProfile
  8096. Owner
  8097.     4S6S7S
  8098. Owner of Mail File:
  8099. Owner
  8100. CalendarProfile
  8101. Owner
  8102.     1S2S6S
  8103. Owner
  8104. Owner
  8105.     0R3S4S6S8S
  8106. Owner_1
  8107.     Calendar Access
  8108. PublicRead
  8109. Everyone can read my Calendar|1
  8110. PublicRead
  8111.     1S2S
  8112.     Only the following people/groups can read my Calendar: 
  8113. ReadCalendar
  8114. PublicWrite
  8115. Everyone can manage my Calendar|1
  8116. PublicWrite
  8117.     1S2S
  8118.     Only the following people/groups can manage my Calendar: 
  8119. WriteCalendar
  8120.     Email Access
  8121.      (anyone with Email Access can also read Calendar entries)
  8122.     The following people/groups can
  8123.     1. Read my mail: 
  8124. ReadMail
  8125.     2. Read and send mail on my behalf: 
  8126. WriteMail
  8127.     3. Read, send, and edit any document in my mail file: 
  8128. EditMail
  8129.     4. Delete mail (allowed for those who can send or edit mail): 
  8130. DeleteMail
  8131. $NoPurge
  8132. $NoPurge
  8133. _Edit Document
  8134. _Forward
  8135.     0S0E
  8136. CancelF
  8137. SaveOptions
  8138.     1S2S3S
  8139. _Move To Folder...
  8140. _Remove From Folder
  8141. Categori_ze
  8142. Send Docu_ment
  8143. O=Lotus Notes
  8144. O=Lotus Notes
  8145. PURSAFO
  8146. |.:#U
  8147. O=Lotus Notes
  8148. CN=Lotus Notes Template Development/O=Lotus Notes
  8149. PURSAFO
  8150. $FormPublicAccess
  8151. $TITLE
  8152. $INFO
  8153. $WINDOWTITLE
  8154. $Script
  8155. $$Script_O
  8156. $$ScriptName
  8157. $$FormScript
  8158. $$$FormScript_O
  8159. $NoPurge
  8160. $BODY
  8161. $ACTIONS
  8162. $PublicAccess
  8163. VersionOpt|
  8164.     6S7S9S14S
  8165. $VersionOpt
  8166.     0R1S2S3S
  8167. SavedOnce
  8168.     0R1S2S3S
  8169. PostedDate(
  8170.     0R1S2S3S
  8171. DeliveredDate
  8172.     0R1S2S3S
  8173. $AutoEditMode
  8174.     0R1S2S3S
  8175. MailSaveOptions
  8176.     0R1S2S3S
  8177. VersionOpt
  8178.     0R4S
  8179. New Task
  8180. Subject
  8181. Subject
  8182. Subject
  8183.     4S6S12S13S14S15S17S21S23S25S26S28S
  8184. "Small Fonts
  8185. '++LotusScript Development Environment:2:5:(Options):0:74
  8186. Option Public
  8187. Use "EmailProcessing"
  8188. Use "DocumentConversions"
  8189. '++LotusScript Development Environment:2:5:(Forward):0:1
  8190. Declare Sub CheckDueDate
  8191. Declare Sub CheckStartDate
  8192. Declare Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  8193. '++LotusScript Development Environment:2:5:(Declarations):0:10
  8194. Dim maildoc As NotesDocument
  8195. Dim rtitem As NotesRichTextItem
  8196. Dim dt As NotesDateTime
  8197. Dim dt2 As NotesDateTime
  8198. Dim Action As Variant
  8199. Dim DocWasSaved As Variant
  8200. Dim FinalSave As Variant
  8201. Dim CommentQuery As Variant
  8202. Dim StartDate As Variant
  8203. Dim DueDate As Variant
  8204. Dim Subject As Variant
  8205. Dim NewSubject As String
  8206. Dim ComposeReply As Variant
  8207. Dim ConvertedTask As Variant
  8208. '++LotusScript Development Environment:2:2:CheckDueDate:1:8
  8209. Sub CheckDueDate
  8210.      
  8211. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  8212.      Call TIMEGetNotesFromLS(DueDate(0), dt2)
  8213.      If dt.TimeDifference(dt2) > 0 Then 
  8214.           note.DueState = 0
  8215.      Else
  8216.           note.DueState = 1
  8217.      End If
  8218.      
  8219. End Sub
  8220. '++LotusScript Development Environment:2:2:CheckStartDate:1:8
  8221. Sub CheckStartDate
  8222.      
  8223. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  8224.      Call TIMEGetNotesFromLS(StartDate(0), dt2)
  8225.      If dt.TimeDifference(dt2) < 0 Then 
  8226.           note.DueState = 2
  8227.      Else
  8228.           note.DueState = 1
  8229.      End If
  8230.      
  8231. End Sub
  8232. '++LotusScript Development Environment:2:1:SendNotification:1:8
  8233. Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  8234.      
  8235.      SendNotification = True
  8236.      
  8237.      FromCommonName = Evaluate("@Name([CN]; Principal)", note)
  8238.      If FromCommonName(0) = "" Then FromCommonName = Evaluate("@Name([CN]; From)", note)
  8239.      
  8240.      CommentQuery = Messagebox("A " & ReplyType & " notice will be sent to " & FromCommonName(0) &_
  8241.      ".  Do you wish to send additional comments?", MB_YESNOCANCEL, "Task " & Action)
  8242.      Select Case CommentQuery
  8243.      Case IDYES
  8244.           Call session.SetEnvironmentVar("MailStEd", Cstr(NewSubject))
  8245.           ComposeReply = True
  8246.      Case IDNO
  8247.           Set maildoc = New NotesDocument(db)
  8248.           Set rtitem = New NotesRichTextItem(maildoc, "Body")
  8249.           If note.HasItem("Principal") Then
  8250.                maildoc.SendTo = note.Principal(0) & " @ " & note.FromDomain(0)
  8251.           Else
  8252.                maildoc.SendTo = note.From(0) & " @ " & note.FromDomain(0)
  8253.           End If
  8254.           maildoc.Subject = NewSubject
  8255.           rtitem.AppendText(MessageText & Subject & ".  ")
  8256.           maildoc.Form = "Reply"
  8257.           maildoc.Principal = Owner
  8258.           maildoc.AssignState = NewState
  8259.           maildoc.DueState = NewState
  8260.           maildoc.ExcludeFromView = "D"
  8261.           Call maildoc.AppendItemValue("_ViewIcon", ViewIcon)
  8262.           Call maildoc.MakeResponse(note)
  8263.           On Error Goto SendError
  8264.           Call maildoc.Send (False)
  8265.           Call maildoc.Save (True, True, True)
  8266.           ws.ViewRefresh
  8267.      Case IDCANCEL
  8268.           note.SaveOptions = "0"
  8269.           note.MailOptions = "0"
  8270.           CommentQuery = "Cancel"
  8271.           SendNotification = False
  8272.           Exit Function
  8273.      End Select
  8274.      
  8275.      note.SaveOptions = "1"          
  8276.      note.AssignState = NewState
  8277.      note.DueState = NewState
  8278.      Call note.ReplaceItemValue("_ViewIcon", ViewIcon)
  8279.      
  8280.      Exit Function
  8281.      
  8282. SendError:
  8283.      Messagebox ReplyType & " reply document could not be sent to " & FromCommonName(0) & " at this time.  Please retry", MB_OK, "Task Completion"
  8284.      SendNotification = False
  8285.      maildoc.Remove(True)
  8286.      Exit Function
  8287.      
  8288. End Function
  8289. QL    }D
  8290. Ql    I$
  8291. Ql    I$
  8292. Principal
  8293.  Task'++LotusScript Development Environment:2:5:(Options):0:66
  8294. '++LotusScript Development Environment:2:5:(Forward):0:1
  8295. Declare Sub Postopen(Source As Notesuidocument)
  8296. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  8297. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  8298. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  8299. Declare Sub Postrecalc(Source As Notesuidocument)
  8300. '++LotusScript Development Environment:2:5:(Declarations):0:2
  8301. '++LotusScript Development Environment:2:2:BindEvents:1:129
  8302. Private Sub BindEvents(Byval Objectname_ As String)
  8303.      Static Source As NOTESUIDOCUMENT
  8304.      Set Source = Bind(Objectname_)
  8305.      On Event Postopen From Source Call Postopen
  8306.      On Event Querysave From Source Call Querysave
  8307.      On Event Queryclose From Source Call Queryclose
  8308.      On Event Querymodechange From Source Call Querymodechange
  8309.      On Event Postrecalc From Source Call Postrecalc
  8310. End Sub
  8311. '++LotusScript Development Environment:2:2:Postopen:1:12
  8312. Sub Postopen(Source As Notesuidocument)
  8313.      
  8314.      If source.InPreviewPane Then Exit Sub
  8315.      
  8316.      DocWasSaved = False
  8317.      FinalSave = False
  8318.      
  8319.      Set ws = New NotesUIWorkSpace
  8320.      Set uidoc = source
  8321.      
  8322.      If note Is Nothing Then Call InstantiateObjectVariables
  8323.      
  8324.      If source.IsNewDoc Then
  8325.           Call note.ReplaceItemValue("_ViewIcon", 168)
  8326.           note.AssignState = 0
  8327.           note.ExcludeFromView = "D"
  8328.           note.OrgTable = "T0"
  8329.      Else
  8330.           FormName = note.Form
  8331.           If FormName(0) = "Task" Then
  8332.                EditType = session.GetEnvironmentValue("MailStEd")
  8333. 'EditType 5 = EditNewCopy               
  8334.                If EditType = "5" Then 
  8335.                     Call note.ReplaceItemValue("$VersionOpt", "6")
  8336.                     note.tmpAction = "ConvertNewDoc"
  8337.                     Call session.SetEnvironmentVar("MailStEd", "0")
  8338.                     source.reload
  8339.                     source.save
  8340.                End If
  8341.           End If
  8342.      End If
  8343.      
  8344.      note.RemoveItem("MailOptions")
  8345.      note.RemoveItem("SaveOptions")
  8346.      
  8347.      If note.tmpAction(0) = "Converting" Then ConvertedTask = True
  8348.      
  8349. 'default DueState to 1 (current)     
  8350.      If Not(note.HasItem("DueState")) Then note.DueState = 1
  8351.      
  8352.      If source.EditMode Then
  8353.           If Not(note.HasItem("SecureMail")) Then CheckSecureMail
  8354.           source.Reload
  8355.           source.RefreshHideFormulas 
  8356.      End If
  8357.      
  8358. End Sub
  8359. '++LotusScript Development Environment:2:2:Querysave:1:12
  8360. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  8361.      
  8362.      If Source.InPreviewPane Then Exit Sub
  8363.      Dim sendToList As Variant
  8364.      Dim cnName As Variant
  8365.      Dim foundName As Integer
  8366.      
  8367.      If FinalSave Then Exit Sub
  8368.      
  8369.      On Error 4412 Resume Next
  8370.      source.Refresh
  8371. '4412 = field did not pass validation     
  8372.      If Err = 4412 Then
  8373.           Err = 0
  8374.           continue = False
  8375.           Exit Sub
  8376.      End If
  8377.      
  8378.      Set dt = New NotesDateTime("")
  8379.      dt.SetNow         
  8380.      
  8381.      Action = note.tmpAction(0)
  8382.      Select Case Action
  8383.      Case "Complete"
  8384. 'AssignState = 0 if assigned to self, 1 if assigned to others but not sent, 2 if assigned and sent, and 9 if complete.                    
  8385.           If note.HasItem("Principal") Then
  8386.                FromName = note.Principal(0)
  8387.           Else
  8388.                FromName = note.From(0)
  8389.           End If          
  8390.           oldAssignState = note.AssignState(0)
  8391.           Subject = note.Subject(0)
  8392.           NewSubject = "Task:  " & Subject & " is complete as of " & dt.LSLocalTime
  8393.           Select Case oldAssignState
  8394.           Case 0, 1 '0=assigned to yourself.  1=assigned to someone else but not sent
  8395.                Gosub CompleteThisTask
  8396.           Case 8, 9 '9=complete
  8397.                Messagebox Subject & " is already closed.", 0, "Task Completion"
  8398.           Case Else ' make sure current user is in the assignTo list
  8399.                sendToList = note.SendTo
  8400.                cnName = Evaluate("@Name([CN]; @Username )")
  8401.                foundName = False
  8402.                Forall a In sendToList
  8403.                     If Instr(Lcase(a), Lcase(cnName(0))) > 0 Then
  8404.                          foundName = True
  8405.                          Exit Forall
  8406.                     End If
  8407.                End Forall
  8408.                
  8409.                If Not foundName Then
  8410.                     Messagebox "The task '" & Subject & "' is not assigned to you. You cannot complete a task that is assigned to someone else.", 0, "Task Completion"
  8411.                Else
  8412.                     If SendNotification("completion", "I have completed task: ", 9, 82) = False Then
  8413.                          source.Reload
  8414.                          continue = False
  8415.                          Exit Sub
  8416.                     Else
  8417.                          Gosub CompleteThisTask
  8418.                     End If
  8419.                End If
  8420.           End Select
  8421.           CloseDoc = True
  8422.      Case "Reassign"
  8423.           Subject = note.Subject(0)
  8424.           NewSubject = "Please reassign Task:  " & Subject
  8425.           If SendNotification("reassignment", "Please reassign this task: ", 8, 81) = False Then
  8426.                source.Reload
  8427.                continue = False
  8428.                Exit Sub
  8429.           End If
  8430.           CloseDoc = True
  8431.      Case "Reply"
  8432.           ComposeReply = True
  8433.           CloseDoc = True
  8434.      Case "ConvertNewDoc"
  8435.           note.From = Owner
  8436.           note.AssignState = 1
  8437.           note.MailOptions = "0"
  8438.           note.SaveOptions = "1"
  8439.      Case Else
  8440.           If Action = "Send" Then
  8441.                note.SaveOptions = "1"
  8442.                note.MailOptions = "0"
  8443.           End If
  8444. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future, 8=Rejected, 9=Complete
  8445. 'If it is complete we do not want to change it's DueState          
  8446.           If note.DueState(0) <> 9 Then
  8447.                DueDate = note.DueDateTime
  8448.                StartDate = note.StartDateTime
  8449.                If StartDate(0) = "" Then
  8450.                     If DueDate(0) = "" Then
  8451.                          note.DueState = 1
  8452.                     Else
  8453.                          CheckDueDate
  8454.                     End If
  8455.                Else
  8456.                     CheckStartDate
  8457.                     DueState = note.DueState
  8458.                     If DueDate(0) <> "" And DueState(0) <> 2 Then CheckDueDate
  8459.                End If
  8460.           End If
  8461.      End Select
  8462.      
  8463.      AssignState = note.AssignState
  8464.      SendTo = note.SendTo
  8465.      If AssignState(0) = 1 And SendTo(0) = "" Then note.AssignState = 0
  8466.      
  8467.      DocWasSaved = True
  8468.      
  8469.      note.RemoveItem("tmpAction")
  8470.      note.RemoveItem("tmpSenderTag")
  8471.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  8472.      'If Not(note.HasItem("DocAuthors")) Then Set item = New NotesItem(note, "DocAuthors", note.From, AUTHORS)
  8473.      
  8474.      source.Reload
  8475.      
  8476.      If CloseDoc Then source.Close
  8477.      
  8478.      Exit Sub
  8479.      
  8480. CompleteThisTask:
  8481.      note.DueState = 9
  8482.      note.AssignState = 9
  8483.      note.CompletedDateTime = dt.LSLocalTime
  8484.      Call note.ReplaceItemValue("_ViewIcon", 82)
  8485.      note.SaveOptions = "1"
  8486.      Return
  8487.      
  8488. End Sub
  8489. '++LotusScript Development Environment:2:2:Queryclose:1:12
  8490. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  8491.      
  8492.      If source.InPreviewPane Then Exit Sub
  8493.      
  8494.      If CommentQuery = "Cancel" Then
  8495.           CommentQuery = ""         
  8496.           Continue = False
  8497.           Exit Sub
  8498.      End If
  8499.      
  8500.      If DocWasSaved = False And source.EditMode Then 
  8501. 'this forces a save prompt for converted tasks         
  8502.           If ConvertedTask And ContinueSave = "" Then
  8503.                Call SaveDialog("Task")
  8504.                Select Case ContinueSave
  8505.                Case IDYES
  8506.                     source.Save
  8507.                Case IDCANCEL
  8508.                     Continue = False
  8509.                     Exit Sub
  8510.                Case Else
  8511.                     Exit Sub
  8512.                End Select
  8513.           Else
  8514.                Exit Sub
  8515.           End If
  8516.      End If
  8517.      
  8518.      If ConvertedTask Then
  8519.           note.RemoveFromFolder("($Inbox)")
  8520.           ws.ViewRefresh
  8521.      End If
  8522.      
  8523.      AssignState = note.AssignState
  8524.      If AssignState(0) = 1 Then
  8525.           SendPrompt = Messagebox("Do you wish to send this Task to the Assignee?", _
  8526.           MB_YESNOCANCEL, "Close Task") 
  8527.           Select Case SendPrompt
  8528.           Case IDCANCEL
  8529.                Continue = False
  8530.                Exit Sub
  8531.           Case IDNO
  8532.                Exit Sub
  8533.           Case IDYES
  8534.                note.AssignState = 2
  8535.                source.Reload
  8536. 'front end send will put up the ambiguious names dialog if necessary               
  8537.                On Error Resume Next
  8538.                source.Send
  8539.                If Err > 0 Then
  8540.                     Err = 0
  8541.                     note.AssignState = 1
  8542.                     continue = False
  8543.                     Exit Sub
  8544.                End If
  8545.                note.SaveOptions = "1"
  8546.                note.AssignedTo = note.SendTo
  8547.                source.Reload
  8548.                source.Save
  8549.                FinalSave = True
  8550.           End Select
  8551.      End If
  8552.      
  8553.      If ComposeReply Then Call ws.ComposeDocument("", "", "Reply") 
  8554.      
  8555. End Sub
  8556. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  8557. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  8558.      
  8559.      If (source.InPreviewPane) Then 
  8560.           continue = False
  8561.           Exit Sub
  8562.      End If          
  8563.      If note Is Nothing Then Call InstantiateObjectVariables
  8564.      note.RemoveItem("MailOptions")
  8565.      note.RemoveItem("SaveOptions")
  8566.      
  8567. End Sub
  8568. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  8569. Sub Postrecalc(Source As Notesuidocument)
  8570.      If (source.InPreviewPane) Then Exit Sub
  8571. 'Make sure DueDate > StartDate
  8572.      
  8573.      If note.StartDateTime(0) = "" Or note.DueDateTime(0) = "" Then Exit Sub
  8574.      
  8575.      Call TIMEGetNotesFromLS(note.getitemvalue("StartDateTime")(0), dt)
  8576.      Call TIMEGetNotesFromLS(note.getitemvalue("DueDateTime")(0), dt2)
  8577.      
  8578.      If dt.TimeDifference(dt2) > 0 Then 
  8579.           Messagebox "Due Date must be greater than Start Date.", 0, "Validation Error"
  8580.           Err = 4412
  8581.           note.AssignState = 1
  8582.           source.RefreshHideFormulas
  8583.           source.GoToField("DueDateTime")
  8584.      End If
  8585.      
  8586. End Sub
  8587.     4S5S
  8588.     Always Hidden: 
  8589. Principal
  8590. CalendarProfile
  8591. Owner
  8592.     1S2S3S7S
  8593. FromPerson memo is from.
  8594.     0S0E
  8595.     0S0E
  8596. Encrypt
  8597.     0S0E
  8598. DefaultMailSaveOptions
  8599. $KeepPrivate
  8600. $KeepPrivate
  8601. $KeepPrivate
  8602.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  8603.     1S2S
  8604.     From:    
  8605. Principal
  8606. Principal
  8607. FromDomain
  8608. FromDomain
  8609. FromDomain
  8610. FromDomain
  8611.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  8612. FromName
  8613. Principal
  8614. Principal
  8615.     0RR1S2S9S11S15S
  8616. FromStops
  8617.     0R1S2S6S
  8618. FromName
  8619. FromStops
  8620. FromStops
  8621. FromStops
  8622.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  8623.      on 
  8624. PostedDateh
  8625. PostedDate
  8626.     7S9S
  8627. tmpDisplayDateTime/date memo was created or mailed.
  8628. $HideMailHeader
  8629. Principal
  8630. Principal
  8631. Principal
  8632. Principal
  8633. Principal
  8634.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  8635.     Sent by:    
  8636. FromDomain
  8637. FromDomain
  8638. FromDomain
  8639. FromDomain
  8640.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  8641. FromName
  8642.     0RR1S2S6S
  8643. FromStops
  8644.     0R1S2S6S
  8645. FromName
  8646. FromStops
  8647. FromStops
  8648. FromStops
  8649.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  8650. ReplyTo
  8651.     1S2S
  8652.     Reply to:    
  8653. ReplyTo
  8654.     0S0E
  8655. tmpDisplayReplyTo
  8656.     Subject
  8657. Subject
  8658.     Priority:
  8659.     Due Date:
  8660.     Start Date:
  8661. Importance
  8662. None|99High (1)|1Medium (2)|2Low (3)|3
  8663. DueDateTime
  8664. Invalid Due Date.
  8665. DueDateTime
  8666. DueDateTime
  8667. Invalid Due Date.
  8668.     7S12S17S19S20S21S23S25SDueDateTime
  8669. StartDateTime
  8670. Invalid Start Date.
  8671. StartDateTime
  8672. StartDateTime
  8673. Invalid Start Date.
  8674.     7S12S17S19S20S21S23S25SStartDateTime
  8675. AssignState
  8676.     1S2S3S4S6S7S
  8677.     Assign to:    
  8678. AssignState
  8679. SendTo}
  8680.     3S4S6S8S
  8681. SendToList of people to assign to this task
  8682.     Assigned to:    
  8683. AssignState
  8684. Principal
  8685. Principal
  8686. AssignState
  8687. SendTo
  8688. AssignedTo
  8689.     3S4S6S9S10S12S14S17S18S19S20S21S23S25S
  8690. AssignedToList of primary people to invite to the meeting.
  8691. CopyToList of people to send a copy of the memo.
  8692.     Additional information:
  8693. Close
  8694. MailOptions
  8695.     1S2S3S
  8696. SaveOptions
  8697.     0R1S2S3S
  8698. Edit Task
  8699. Principal
  8700. AssignState
  8701.     3S4S5S6S8S9S10S11S
  8702. _Forward
  8703. _Move To Folder...
  8704. Delivery Information...Kz
  8705. DeliveryInfo
  8706. Delivery Information
  8707.     4S5S6S7S8S9S10S12S
  8708. DeliveredDate
  8709.     0S0E
  8710. Completed n
  8711. tmpAction
  8712. Complete
  8713.     0R1S2S3S
  8714. AssignState
  8715. AssignState
  8716. AssignState
  8717. Principal
  8718.     3S4R5S6S7S8R9S10S11S12R14S15S16S17S18S19S20S21S
  8719. Assign To Others...Kr
  8720. AssignState
  8721.     1S2S3S
  8722. SendTo
  8723.     0R4S
  8724. AssignState
  8725.     1S2S3S4S
  8726. Reassign...K
  8727. AssignState
  8728.     0R1S2S3S
  8729. SendTo
  8730.     0R4S
  8731. AssignState
  8732. DeliveredDate
  8733.     1S2S3S4S
  8734. Address... 
  8735.     0S0E
  8736. AssignState
  8737.     1S2S
  8738. Delete 
  8739.     0S0E
  8740. Principal
  8741.     3S4S5S6S
  8742. SendTo
  8743. Send Task
  8744. You must assign this task before sending it.
  8745.     3S4S6S12S14S18S
  8746. AssignState
  8747.     0RR1S2S3S
  8748. tmpAction
  8749.     0R1S2S3S
  8750.     0R7S9S
  8751. SaveOptions
  8752.     0RR1S2S3S
  8753. MailOptions
  8754.     0R1S2S3S
  8755.     0R7S9S
  8756. MailOptions
  8757.     0R1S2S3S
  8758. AssignState
  8759.     1S2S
  8760. Reply
  8761. tmpAction
  8762. Reply
  8763.     0R1S2S3S
  8764.     0RRZ
  8765. AssignState
  8766. Principal
  8767.     1S2S3S4S5S6S7S8S
  8768. Please Reassign...n
  8769. tmpAction
  8770. Reassign
  8771.     0R1S2S3S
  8772.     0RRZ
  8773. AssignState
  8774. Principal
  8775.     1S2S3S4S5S6S7S8S
  8776. Delivery Options...K
  8777. DeliveryOptions
  8778. Delivery Options
  8779.     4S8S
  8780. _ViewIcon
  8781. SenderTag
  8782. SenderTag
  8783. SenderTag
  8784. SenderTag
  8785. SenderTag
  8786. SenderTag
  8787. SenderTag
  8788. SenderTag
  8789. SenderTag
  8790. SenderTag
  8791. SenderTag
  8792.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E0
  8793. AssignState
  8794.     1S2S
  8795. Special Options...F
  8796. ReplyDate
  8797. ReplyDate
  8798.     1S2S3S
  8799. ReplyTo
  8800. ReplyTo
  8801.     0R1S2S3S
  8802. (Advanced Options)
  8803. Special Options
  8804.     0R6S10S13S15S
  8805. tmpDisplayReplyInfo
  8806. Please respond
  8807. ReplyTo
  8808. ReplyTo
  8809. ReplyDate
  8810. ReplyDate
  8811.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  8812. DueDateTime
  8813. DueDateTime
  8814. ReplyDate
  8815. DueDateTime
  8816.     0R1S2S3S6S7S9S11S
  8817. AssignState
  8818.     1S2S
  8819. Move To Folder 
  8820.     0S0E
  8821. Principal
  8822.     3S4S5S6S
  8823. Display Task on My CalendarK
  8824. StartDateTime
  8825. DueDateTime
  8826. Date Required
  8827. In order to display this task on your Calendar, you must enter a Start Date and/or a Due Date.
  8828.     3S4S5S6S7S8S10S16S18S22S
  8829. tmpDate
  8830. StartDateTime
  8831. DueDateTime
  8832. StartDateTime
  8833.     0RR1S2S5S6S8S10S
  8834. CalendarDateTime
  8835. tmpDate
  8836. tmpDate
  8837. tmpDate
  8838.     0R1S2S3S10S15S20S22S24S
  8839. CalendarDateTimeh
  8840.     0S0E
  8841. Remove From Calendar View
  8842. CalendarDateTime
  8843.     1S2S3S
  8844. CalendarDateTimeY
  8845.     0S0E
  8846. Categori_zeK
  8847. SSend
  8848. _Remove From Folder...
  8849. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  8850. '++LotusScript Development Environment:2:5:(Forward):0:1
  8851. Declare Sub Click(Source As Button)
  8852. '++LotusScript Development Environment:2:5:(Declarations):0:2
  8853. '++LotusScript Development Environment:2:2:BindEvents:1:129
  8854. Private Sub BindEvents(Byval Objectname_ As String)
  8855.      Static Source As BUTTON
  8856.      Set Source = Bind(Objectname_)
  8857.      On Event Click From Source Call Click
  8858. End Sub
  8859. '++LotusScript Development Environment:2:2:Click:1:12
  8860. Sub Click(Source As Button)
  8861.      Call CreateNewDoc(NEW_MEMO)
  8862. End Sub
  8863. tmpnewdoc
  8864.     1S2S
  8865. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  8866. '++LotusScript Development Environment:2:5:(Forward):0:1
  8867. Declare Sub Click(Source As Button)
  8868. '++LotusScript Development Environment:2:5:(Declarations):0:2
  8869. '++LotusScript Development Environment:2:2:BindEvents:1:129
  8870. Private Sub BindEvents(Byval Objectname_ As String)
  8871.      Static Source As BUTTON
  8872.      Set Source = Bind(Objectname_)
  8873.      On Event Click From Source Call Click
  8874. End Sub
  8875. '++LotusScript Development Environment:2:2:Click:1:12
  8876. Sub Click(Source As Button)
  8877.      Call CreateNewDoc(NEW_CALENDAR)
  8878. End Sub
  8879. tmpnewdoc
  8880.     1S2S
  8881. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  8882. '++LotusScript Development Environment:2:5:(Forward):0:1
  8883. Declare Sub Click(Source As Button)
  8884. '++LotusScript Development Environment:2:5:(Declarations):0:2
  8885. '++LotusScript Development Environment:2:2:BindEvents:1:129
  8886. Private Sub BindEvents(Byval Objectname_ As String)
  8887.      Static Source As BUTTON
  8888.      Set Source = Bind(Objectname_)
  8889.      On Event Click From Source Call Click
  8890. End Sub
  8891. '++LotusScript Development Environment:2:2:Click:1:12
  8892. Sub Click(Source As Button)
  8893.      Call CreateNewDoc(NEW_TASK)
  8894. End Sub
  8895. tmpnewdoc
  8896.     1S2S
  8897. Copy into\New GroupK,
  8898. NewGroup
  8899.     0S0E
  8900. tmpnewdoc
  8901.     1S2S
  8902. O=Lotus Notes
  8903. O=Lotus Notes
  8904. PURSAFO
  8905. |.:#U
  8906. O=Lotus Notes
  8907. CN=Lotus Notes Template Development/O=Lotus Notes
  8908. PURSAFO
  8909. DelegateAlert
  8910. AssigneeAlert
  8911. $$FormPostOpenAction
  8912. ExpireDate
  8913. ReplyDate
  8914. CompletedOn
  8915. ComposedDate
  8916. SelfAssigned
  8917. $TypeIcon
  8918. $TITLE
  8919. $AUTOLAUNCH
  8920. $INFO
  8921. $WINDOWTITLE
  8922. $Script
  8923. $$Script_O
  8924. $$ScriptName
  8925. $$FormScript
  8926. $$$FormScript_O
  8927. DueDateTime
  8928. StartDateTime
  8929. $BODY
  8930. $ACTIONS
  8931. $SCRIPTOBJ_21
  8932. $SCRIPTOBJ_22
  8933. $SCRIPTOBJ_23
  8934. Invitation from 
  8935. Principal
  8936.     1S2S6S
  8937. "Small Fonts
  8938. '++LotusScript Development Environment:2:5:(Options):0:74
  8939. Option Public  
  8940. Use "NoticeProcessing"
  8941. Use "NoticeResponses"
  8942. Use "RepeatProcessing"
  8943. Use "DocumentConversions"
  8944. '++LotusScript Development Environment:2:5:(Forward):0:1
  8945. Declare Sub Postopen(Source As Notesuidocument)
  8946. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  8947. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  8948. Declare Sub Postmodechange(Source As Notesuidocument)
  8949. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  8950. Declare Sub Click(Source As Button)
  8951. '++LotusScript Development Environment:2:5:(Declarations):0:10
  8952. Dim collection As NotesDocumentCollection
  8953. Dim nam As NotesName
  8954. Dim DocWasSaved As Integer
  8955. Dim NewForm As String
  8956. Dim ErrorStatus As Integer
  8957. '++LotusScript Development Environment:2:2:Postopen:1:8
  8958. Sub Postopen(Source As Notesuidocument)
  8959.      
  8960. End Sub
  8961. '++LotusScript Development Environment:2:2:Querysave:1:8
  8962. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  8963.      
  8964.      Call MarkTempFields(note)
  8965.      
  8966.      Select Case note.tmpAction(0)
  8967.      Case "Accept","PencilIn"
  8968.           AcceptInvitation
  8969.      Case "Decline"
  8970.           DeclineInvitation
  8971.      Case "Delegate"
  8972.           ErrorStatus = DelegateInvitation
  8973.      Case "CounterPropose"
  8974.           CounterPropose
  8975.      Case "AddCalendar"
  8976. '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
  8977.           Call UpdateOriginalInvitation(note)
  8978.           If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  8979.      Case "AcceptCounterProposal"
  8980.           AcceptCounterProposal
  8981.      Case "DeclineCounterProposal"
  8982.           DeclineCounterProposal
  8983.      End Select
  8984.      
  8985. '#############################     
  8986. 'If this should repeat then we need create the repeat instances
  8987.      Action = note.tmpAction(0)     
  8988.      If note.HasItem("OrgRepeat") Then Call RepeatSave
  8989. '#############################          
  8990.      
  8991.      source.Reload
  8992.      
  8993. End Sub
  8994. '++LotusScript Development Environment:2:2:Queryopen:1:8
  8995. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  8996.      On Error 4005 Resume Next   'we want to trap whenever the parentnote is nothing
  8997. 'notice documents always exist when opening them
  8998.      Set ws = New NotesUIWorkspace
  8999.      Set uidoc = Source
  9000.      InstantiateObjectVariables
  9001.      
  9002.      note.RemoveItem("MailOptions")
  9003. 'if the user is in the preview pane, exit
  9004.      If (uidoc.InPreviewPane) Then Exit Sub
  9005.      
  9006. 'if this is a response document, get the parent
  9007. 'we do this for both the chair and the invitee so we can detect missing parent documents    
  9008.      If (note.IsResponse) Then 
  9009.           Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  9010.           If (parentnote Is Nothing) Then
  9011. 'if this is a non-repeating note, see if we should re-create the document
  9012.                If Not(note.hasitem("OrgRepeat")) Then
  9013.                     If (Msgbox("The appointment document has been deleted from your calendar, do you want to re-create it?",52) = 6) Then 
  9014.                          Call ResurrectParentDoc                        
  9015.                     Else
  9016.                          note.tmpNoParent = True
  9017.                          note.DoNotProcess = True
  9018.                     End If                         
  9019.                Else
  9020.                     Msgbox "This deleted appointment was part of a repeat set but is being recreated as a single appointment.",48 
  9021.                     Call ResurrectParentDoc
  9022.                End If                         
  9023.           End If 
  9024.      End If
  9025. 'remove any sendto items
  9026.      note.RemoveItem "SendTo"
  9027.      note.tmpOwner = Owner    
  9028. 'get any update items if we are not the chair
  9029.      If Not (note.tmpOwner(0) = note.Chair(0)) Then CheckForNoticeUpdates
  9030. End Sub
  9031. '++LotusScript Development Environment:2:2:Postmodechange:1:8
  9032. Sub Postmodechange(Source As Notesuidocument)
  9033.      
  9034. End Sub
  9035. '++LotusScript Development Environment:2:2:Queryclose:1:8
  9036. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  9037.      If (ErrorStatus > 0) Then 
  9038.           continue = False
  9039.           ErrorStatus = 0
  9040.      End If
  9041.      If ((Action = "Accept") Or (Action = "AddCalendar")) And note.HasItem("RepeatFor") Then note.Subject = "Repeat parent for " & note.Subject(0) & " - do not delete"
  9042.      ws.ViewRefresh
  9043. End Sub
  9044. '++LotusScript Development Environment:2:2:Click:1:8
  9045. Sub Click(Source As Button)
  9046.      Call ResurrectParentDoc
  9047.      Call note.RemoveItem("tmpNoParent")
  9048.      Call note.RemoveItem("DoNotProcess")
  9049.      Call uidoc.Refresh
  9050. End Sub
  9051. K|    -t
  9052. %K|    S
  9053. K|    Qp
  9054. K|    Sp
  9055.  Notice'++LotusScript Development Environment:2:5:(Options):0:66
  9056. '++LotusScript Development Environment:2:5:(Forward):0:1
  9057. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  9058. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9059. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  9060. Declare Sub Postopen(Source As Notesuidocument)
  9061. Declare Sub Postrecalc(Source As Notesuidocument)
  9062. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9063. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9064. Private Sub BindEvents(Byval Objectname_ As String)
  9065.      Static Source As NOTESUIDOCUMENT
  9066.      Set Source = Bind(Objectname_)
  9067.      On Event Queryopen From Source Call Queryopen
  9068.      On Event Querysave From Source Call Querysave
  9069.      On Event Queryclose From Source Call Queryclose
  9070.      On Event Postopen From Source Call Postopen
  9071.      On Event Postrecalc From Source Call Postrecalc
  9072. End Sub
  9073. '++LotusScript Development Environment:2:2:Queryopen:1:12
  9074. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  9075.      On Error 4005 Resume Next   'we want to trap whenever the parentnote is nothing
  9076. 'notice documents always exist when opening them
  9077.      Set ws = New NotesUIWorkspace
  9078.      Set uidoc = Source
  9079.      InstantiateObjectVariables
  9080.      
  9081.      note.RemoveItem("MailOptions")
  9082. 'if the user is in the preview pane, exit
  9083.      If (uidoc.InPreviewPane) Then Exit Sub
  9084.      
  9085. 'if this is a response document, get the parent
  9086. 'we do this for both the chair and the invitee so we can detect missing parent documents    
  9087.      If (note.IsResponse) Then 
  9088.           Call GetParentDocument
  9089. 'if the user did not create a parent, exit sub
  9090.           If (parentnote Is Nothing) Then Exit Sub
  9091.      End If
  9092.      
  9093.      If Not(parentnote Is Nothing) Then
  9094.           If(note.HasItem("RescheduleWhich")) Then parentnote.RescheduleWhich = note.RescheduleWhich
  9095.           If(note.HasItem("OriginalStartDate")) Then parentnote.OriginalStartDate = note.OriginalStartDate
  9096.      End If
  9097. 'remove any sendto items
  9098.      note.RemoveItem "SendTo"
  9099.      note.tmpOwner = Owner    
  9100. 'get any update items if we are not the chair
  9101.      If Not (note.tmpOwner(0) = note.Chair(0)) Then 
  9102.           CheckForNoticeUpdates
  9103.   ' See if this is a repeating invitation from a 5.0+ user
  9104.           If (note.HasItem("$CSVersion")) Then Call DowngradeV5Invite(note)
  9105.      End If
  9106. End Sub
  9107. '++LotusScript Development Environment:2:2:Querysave:1:12
  9108. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9109.      ErrorStatus = 0
  9110.      
  9111.      'if we had to open the repeat parent, then make sure the user actually processsed the parent     
  9112.      If (OpenRepeatParent) Then 
  9113.           If Not(GetParentDocument()) Then
  9114.                continue = False
  9115.                Exit Sub
  9116.           End If
  9117.      End If
  9118.      
  9119. 'if the user had delegated the meeting invitation and is now trying to take a different action ,warn them
  9120.      If (note.NoticeType(0) = ORS_MSGTYPE_DELEGATING) Or (note.HasItem("tmpDidDelegate")) Then
  9121.           Select Case note.tmpAction(0)
  9122.           Case "Accept","PencilIn","Decline","CounterPropose"
  9123.                Set nam = New NotesName(note.Delegee(0))
  9124.                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. " _
  9125.                & "You may also have missed important change notifications (reschedule, cancellation) that were sent to the delegee by the Chairperson.  Continue?",36,"Warning") = 7) Then 
  9126.                     note.NoticeType = ORS_MSGTYPE_DELEGATING
  9127.                     note.RemoveItem("tmpDidDelegate")
  9128.                     note.RemoveItem("tmpUserActions")
  9129.                     source.Reload
  9130.                     source.Refresh
  9131.                     ErrorStatus = 1
  9132.                     continue = False
  9133.                     Exit Sub
  9134.                End If
  9135.           End Select
  9136.      End If
  9137.      
  9138.      If note.HasItem("OrgRepeat") Then Call SaveOriginalValues    
  9139.      
  9140.      If(note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then
  9141.           If (note.SequenceNum(0) <= parentnote.sequencenum(0)) Then
  9142.                Messagebox "This reschedule notice cannot be processed since it has a lower sequence than the parent document."
  9143.                continue = False
  9144.                ErrorStatus = 1
  9145.                Exit Sub
  9146.           End If
  9147.      End If
  9148.      DocWasSaved = True
  9149.      source.Reload
  9150.      
  9151. End Sub
  9152. '++LotusScript Development Environment:2:2:Queryclose:1:12
  9153. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  9154.      Dim bOkToAdd As Integer
  9155.      
  9156.      If Not(DocWasSaved) Then Exit Sub     
  9157.      Select Case note.tmpAction(0)
  9158.      Case "Accept","PencilIn"
  9159.           AcceptInvitation
  9160.      Case "Decline"
  9161.           DeclineInvitation
  9162.      Case "Delegate"
  9163.           ErrorStatus = DelegateInvitation
  9164.           If (ErrorStatus <> 0) Then
  9165.                note.RemoveItem "tmpUserActions"
  9166.                note.RemoveItem "tmpAction"
  9167.                continue = False
  9168.                ErrorStatus = 0
  9169.                Exit Sub
  9170.           End If
  9171.      Case "CounterPropose"
  9172.           CounterPropose
  9173.      Case "AddCalendar"
  9174. '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
  9175.           ' make sure there is no conflict in this time slot for non-repeating entries only
  9176.           If (profile.GetItemValue("ConflictMeeting")(0) = "1" And Not(note.hasitem("OrgRepeat"))) Then
  9177.                If Not(CheckIfConflictExists()) Then
  9178.                     bOkToAdd = True
  9179.                Else
  9180.                     bOkToAdd = False
  9181.                End If
  9182.           Else
  9183.                bOkToAdd = True
  9184.           End If
  9185.           If (bOkToAdd) Then          
  9186.                Context = GetContext
  9187.                Select Case Context
  9188.                Case 1,3
  9189.                     Call UpdateOriginalInvitation(parentnote)
  9190.                Case 2,4
  9191.                     Call UpdateOriginalInvitation(note)
  9192.                End Select
  9193.                If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  9194.           End If
  9195.      Case "AcceptCounterProposal"
  9196.           AcceptCounterProposal
  9197.      Case "DeclineCounterProposal"
  9198.           DeclineCounterProposal
  9199.      End Select
  9200.      
  9201. '#############################     
  9202. 'If this should repeat then we need create the repeat instances
  9203.      Action = note.tmpAction(0)     
  9204.      If (Action = "AddCalendar") Then Action = "Accept"
  9205.      If note.HasItem("OrgRepeat") Then 
  9206.           If (note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then Action = ""          
  9207.           Call RepeatSave      
  9208.      End If
  9209. '#############################          
  9210.      
  9211.      If (ErrorStatus > 0) Then 
  9212.           continue = False
  9213.           ErrorStatus = 0
  9214.           Exit Sub
  9215.      End If
  9216.      If ((Action = "Accept") Or (Action = "AddCalendar")) And note.HasItem("RepeatIds") Then note.Subject = "Do Not Delete - Repeat parent for " & note.Subject(0)
  9217.      Call MarkTempFields(note)
  9218.      Call note.Save(True,True,True)
  9219.      ws.ViewRefresh
  9220. End Sub
  9221. '++LotusScript Development Environment:2:2:Postopen:1:12
  9222. Sub Postopen(Source As Notesuidocument)
  9223.      If (OpenReschedule) Then
  9224.           Set TmpNote = db.GetDocumentByUNID(UpdateResponses(0).misc2)    
  9225.           Call ws.EditDocument(False,TmpNote)
  9226.      Elseif (OpenRepeatParent) Then
  9227.           Call ws.editdocument(False,parentnote)
  9228.      End If
  9229.      DocWasSaved = False
  9230. End Sub
  9231. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  9232. Sub Postrecalc(Source As Notesuidocument)
  9233.      If (note.NoticeType(0) = ORS_MSGTYPE_COUNTER) Then
  9234.           Set trdr = session.CreateDateRange
  9235.           trdr.Text = uidoc.FieldGetText("NewTimeRange")
  9236.           Set startdt = New NotesDateTime(uidoc.FieldGetText("Newdate") & " " & trdr.StartDateTime.TimeOnly)
  9237.           Set enddt = New NotesDateTime(uidoc.FieldGetText("Newdate") & " " & trdr.EndDateTime.TimeOnly)
  9238.           
  9239.           Set note.tmpNewStart = startdt
  9240.           Set note.tmpNewEnd = enddt
  9241.           Call uidoc.Reload
  9242.      End If
  9243. End Sub
  9244. X    X    p
  9245. ,X    }`
  9246. ,X    }D
  9247. ,X    }T
  9248. %KH    S
  9249. ,X    }0
  9250. tmpRealDate
  9251.     0S0E
  9252. tmpRealDate
  9253. The invitation from 
  9254. chair
  9255.  for 
  9256. tmpRealDate
  9257. S0D0V
  9258. tmpRealTime
  9259. S1T1V
  9260.  has been confirmed."
  9261.     8S15S16S17S18S24S25S26S27S33S34S
  9262. tmpConfirmMsg
  9263. NoticeType
  9264. Invitation
  9265. NoticeType
  9266. Reschedule
  9267. NoticeType
  9268. Cancelled
  9269. NoticeType
  9270. Delegated Invitation
  9271. NoticeType
  9272. Status Update
  9273. NoticeType
  9274. Confirmation
  9275. NoticeType
  9276. Counter Proposal Declined
  9277. NoticeType
  9278. Acceptance
  9279. NoticeType
  9280. Declined
  9281. NoticeType
  9282. Delegation
  9283. NoticeType
  9284. Original Meeting
  9285. NoticeType
  9286. Pencilled In
  9287. tmpNoticeHeader
  9288.     3S4S6S8RS8E9S10S12S14RS8E15S16S18S20RS8E21S22S24S26RS8E27S28S30S32RS8E33S34S36S38RS8E39S40S42S44RS8E45S46S48S50RS8E51S52S54S56RS8E57S58S60S62RS8E63S64S66S68RS8E69S70S72S74R
  9289. tmpLabel
  9290. NoticeType
  9291.     1S2S3S4S5S6S
  9292. NoticeType
  9293. Accepted by:
  9294. NoticeType
  9295. Declined by:
  9296. NoticeType
  9297. tmpOwner
  9298. chair
  9299. Delegated to:
  9300. Delegated by:
  9301. NoticeType
  9302. Delegated by:
  9303. NoticeType
  9304. Counter proposal by:
  9305. tmpWhoLabel
  9306.     4RS8E7S8S10S12RS16E13S14S16S18RS16E19S20S25S26S28S30S33RS16E34S35S36S37S39RS16E40S41S43S45RS10E48R
  9307. tmpWhoLabel
  9308. NoticeType
  9309. Principal
  9310. Principal
  9311. NoticeType
  9312. tmpOwner
  9313. chair
  9314. Delegee
  9315. Principal
  9316.  (to 
  9317. Delegee
  9318. NoticeType
  9319. Principal
  9320. tmpWho
  9321.     4RS16E7S8S9S10S12S14RS34E21RS52E28RS34E32S36RS21E37S38S44S47S48S50S52S58S59S60S61S67S68S72RS21E73S74S75S76S83RS21E86RS9E
  9322. tmpWho
  9323.     Chairperson:    
  9324. Chair
  9325.     0S0E
  9326. tmpOriginator
  9327. NoticeType
  9328. chair
  9329. NoticeType
  9330. Principal
  9331. OrgStateh
  9332. OrgState
  9333.     2S3S12S14S15S16S17S19S20S22S23S28S29S30S31S32S33S34S35S36S37S39S40S45S46S47S48S
  9334.     Sent by:
  9335.     0S0E
  9336. tmpFrom
  9337.     Start:    
  9338. StartDateTime
  9339. tmpStartDate
  9340.     End:    
  9341. EndDateTime
  9342. tmpEndDate
  9343.     1S2S
  9344.     Room:    
  9345. tmpRoom
  9346.     Description:    
  9347. topic
  9348. tmpTopic
  9349. NoticeType
  9350.     1S2S
  9351. Proposed Change
  9352.     Reason for change:
  9353.     Proposed date:
  9354. AppointmentType
  9355.     1S2S3S4S
  9356.     Proposed time:
  9357. StartDate
  9358. StartDate
  9359. StartDateTime
  9360.     0S0E
  9361. NewDate
  9362. AppointmentType
  9363.     1S2S3S4S5S
  9364. StartDateTime
  9365. EndDateTime
  9366.     6S7S8S9S
  9367. NewTimeRange
  9368. Reason
  9369.     Proposed location:
  9370. NoticeType
  9371. chair
  9372. tmpOwner
  9373.     1S2S3S4S5S6S
  9374. NewRoom
  9375. NoticeType
  9376. chair
  9377. tmpOwner
  9378.     1S2S3S4S5S6S
  9379. CurrentServer
  9380.     1S2S
  9381. CurrentServer
  9382. Invalid Home Server
  9383. Please edit your current location document and specify a home/mail server.
  9384.     0R3S4S5S6S12S13S14S
  9385. RoomAvailable
  9386. CurrentServer
  9387. names.nsf
  9388. ($Rooms)
  9389. Select a room to reserve for this meeting.
  9390.     0R1S2S
  9391. NewRoom
  9392. RoomAvailable
  9393. RoomAvailable
  9394.     0R1S2S3S9S10S11S
  9395. RoomAvailable
  9396. Error
  9397. RoomAvailable
  9398.     0R6S7S18S19S23S24S
  9399.     Propose Specific Room...
  9400. CurrentServer
  9401.     1S2S
  9402. CurrentServer
  9403. Invalid Home Server
  9404. Please edit your current location document and specify a home/mail server.
  9405.     0R3S4S5S6S12S13S14S
  9406. Sites
  9407. CurrentServer
  9408. names.nsf
  9409. ($Rooms)
  9410.     0R1S2S
  9411. Select the site to search for a room.
  9412. Sites
  9413.     0R1S2S7S8S
  9414. SiteKey
  9415. CN=*/O=
  9416. Site"
  9417.     0R1S2S3S4S
  9418. Capacity
  9419. RequiredAttendees
  9420. OptionalAttendees
  9421.     0R1S2S
  9422. RoomAvailable
  9423. SiteKey
  9424. tmpNewStart
  9425. tmpNewEnd
  9426. Capacity
  9427.     0R1S2S
  9428. RoomAvailable
  9429. No Room Found
  9430. No room was found during the specified time.
  9431.     0R3S4S5S6S11S12S14S15S
  9432. NewRoom
  9433. RoomAvailable
  9434. RoomAvailable
  9435.     0RR1S2S3S
  9436. RoomAvailable
  9437. Error
  9438. RoomAvailable
  9439.     0R6S7S18S19S23S24S
  9440.     Find Available Room...
  9441. CurrentServer
  9442.     1S2S
  9443. CurrentServer
  9444. Error
  9445. This operation cannot be performed locally.
  9446.     0R3S4S5S6S14S15S
  9447. Sites
  9448. CurrentServer
  9449. names.nsf
  9450. ($Rooms)
  9451.     0R1S2S
  9452. Select the site to search for a room.
  9453. Sites
  9454.     0R1S2S7S8S
  9455. SiteKey
  9456. CN=*/O=
  9457. Site"
  9458.     0R1S2S3S4S
  9459. Capacity
  9460. RequiredAttendees
  9461. OptionalAttendees
  9462.     0R1S2S
  9463. RoomAvailable
  9464. SiteKey
  9465. tmpNewStart
  9466. tmpNewEnd
  9467. Capacity
  9468.     0R1S2S
  9469. RoomAvailable
  9470. No Room Found
  9471. No room was found during the specified time.
  9472.     0R3S4S5S6S11S12S14S15S
  9473. NewRoom
  9474. RoomAvailable
  9475.     0R1S2S3S
  9476. ProposeRoom
  9477.     0R1S2S3S
  9478. SelectRoom
  9479.     0R1S2S3S
  9480.          
  9481. NewRoom
  9482. tmpNewRoom
  9483. RepeatIDs
  9484. NoticeType
  9485.     4S5S6S7S
  9486. Repeating meeting information:
  9487. RepeatUnit
  9488. NoticeType
  9489.     1S2S3S4S5S6S
  9490.     This meeting repeats 
  9491. RepeatInterval
  9492. RepeatInterval
  9493. 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
  9494. RepeatUnit
  9495. RepeatUnit
  9496. day|Dweek|Wmonth|MDmonth|MPyear|YDcustom|C
  9497. RepeatAdjust
  9498. RepeatAdjust
  9499. RepeatUnit
  9500.  on Sunday|0
  9501.  on Monday|1
  9502.  on Tuesday|2
  9503.  on Wednesday|3
  9504.  on Thursday|4
  9505.  on Friday|5
  9506.  on Saturday|6
  9507. RepeatUnit
  9508.  on the 1st Sunday|1.0
  9509.  on the 1st Monday|1.1
  9510.  on the 1st Tuesday|1.2
  9511.  on the 1st Wednesday|1.3
  9512.  on the 1st Thursday|1.4
  9513.  on the 1st Friday|1.5
  9514.  on the 1st Saturday|1.6
  9515.  on the 2nd Sunday|2.0
  9516.  on the 2nd Monday|2.1
  9517.  on the 2nd Tuesday|2.2
  9518.  on the 2nd Wednesday|2.3
  9519.  on the 2nd Thursday|2.4
  9520.  on the 2nd Friday|2.5
  9521.  on the 2nd Saturday|2.6
  9522.  on the 3rd Sunday|3.0
  9523.  on the 3rd Monday|3.1
  9524.  on the 3rd Tuesday|3.2
  9525.  on the 3rd Wednesday|3.3
  9526.  on the 3rd Thursday|3.4
  9527.  on the 3rd Friday|3.5
  9528.  on the 3rd Saturday|3.6
  9529.  on the 4th Sunday|4.0
  9530.  on the 4th Monday|4.1
  9531.  on the 4th Tuesday|4.2
  9532.  on the 4th Wednesday|4.3
  9533.  on the 4th Thursday|4.4
  9534.  on the 4th Friday|4.5
  9535.  on the 4th Saturday|4.6
  9536.  on the Last Sunday|5.0
  9537.  on the Last Monday|5.1
  9538.  on the Last Tuesday|5.2
  9539.  on the Last Wednesday|5.3
  9540.  on the Last Thursday|5.4
  9541.  on the Last Friday|5.5
  9542.  on the Last Saturday|5.6
  9543. RepeatUnit
  9544.  on the 1st day|1
  9545.  on the 2nd day|2
  9546.  on the 3rd day|3
  9547.  on the 4th day|4
  9548.  on the 5th day|5
  9549.  on the 6th day|6
  9550.  on the 7th day|7
  9551.  on the 8th day|8
  9552.  on the 9th day|9
  9553.  on the 10th day|10
  9554.  on the 11th day|11
  9555.  on the 12th day|12
  9556.  on the 13th day|13
  9557.  on the 14th day|14
  9558.  on the 15th day|15
  9559.  on the 16th day|16
  9560.  on the 17th day|17
  9561.  on the 18th day|18
  9562.  on the 19th day|19
  9563.  on the 20th day|20
  9564.  on the 21st day|21
  9565.  on the 22nd day|22
  9566.  on the 23rd day|23
  9567.  on the 24th day|24
  9568.  on the 25th day|25
  9569.  on the 26th day|26
  9570.  on the 27th day|27
  9571.  on the 28th day|28
  9572.  on the 29th day|29
  9573.  on the 30th day|30
  9574.  on the 31st day|31
  9575.     3S4S6R8R10R12R14R16R18R20RS5E21S22S24R26R28R30R32R34R36R38R40R42R44R46R48R50R52R54R56R58R60R62R64R66R68R70R72R74R76R78R80R82R84R86R88R90R92R94RS5E95S96S98R100R102R104R106R108R110R112R114R116R118R120R122R124R126R128R130R132R134R136R138R140R142R144R146R148R150R152R154R156R158R160S
  9576.      starting on 
  9577. RepeatStartDate
  9578. RepeatStartDate
  9579. RepeatHow
  9580. RepeatHow
  9581. until|Ufor|F
  9582. RepeatFor
  9583. tmpRepeatUnit
  9584.     7S9S
  9585. RepeatHow
  9586. RepeatUntil
  9587. RepeatFor
  9588. RepeatForUnit
  9589. RepeatFor
  9590. RepeatForUnit
  9591. RepeatFor
  9592. RepeatForUnit
  9593. RepeatFor
  9594. month
  9595. RepeatForUnit
  9596. RepeatFor
  9597. RepeatFor
  9598. RepeatForUnit
  9599. RepeatFor
  9600. RepeatForUnit
  9601. weeks
  9602. RepeatFor
  9603. RepeatForUnit
  9604. months
  9605. RepeatFor
  9606. RepeatForUnit
  9607. years
  9608.     0R3S4S6S10S13S17S18S19S20S23S24S25S26S27S28S30S32S33S34S35S36S37S38S40S42S43S44S45S46S47S48S50S52S53S54S55S56S57S58S60S62S64S65S68S69S70S71S72S73S75S77S78S79S80S81S82S83S85S87S88S89S90S91S92S93S95S97S98S99S100S101S102S103S105S107S
  9609. tmpRepeatUntil
  9610. RepeatUnit
  9611.  (if the date occurs on a weekend the meeting 
  9612. RepeatWeekends
  9613. occurs anyway
  9614. RepeatWeekends
  9615. is moved to Friday
  9616. RepeatWeekends
  9617. is moved to Monday
  9618. RepeatWeekends
  9619. is moved to Nearest Weekday
  9620. RepeatWeekends
  9621. is deleted
  9622.     3S4S5S6S7S8S10S12S13S14R17S18S20S22S23S24S26S28S29S30S32S34S35S36S38S40S41S42S44S46S48S49S
  9623. tmpRepeatWeekends
  9624. NoticeType
  9625.     1S2S
  9626.     Meeting Dates: 
  9627. RepeatDates
  9628. RepeatDates
  9629. RepeatDates
  9630.     0S0E
  9631. NoticeType
  9632.     3S4S5S6S7S8S
  9633. Invitees:
  9634. RequiredAttendees
  9635. OptionalAttendees
  9636.     0S0E
  9637. tmpAttendeeList
  9638.     Detailed description:
  9639. NoticeType
  9640.     1S2S
  9641.     Status update:
  9642. StatusUpdate
  9643. Comments
  9644.     1S2S
  9645.     Comments sent:
  9646. Comments
  9647. Comments
  9648.     Hidden Fields: 
  9649. tmpNewStart
  9650. tmpNewEnd
  9651. _Edit Document
  9652. _Forward
  9653. _Move To Folder...
  9654. Close
  9655.     0S0E
  9656. Accept'++LotusScript Development Environment:2:5:(Options):0:66
  9657. '++LotusScript Development Environment:2:5:(Forward):0:1
  9658. Declare Sub Click(Source As Button)
  9659. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9660. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9661. Private Sub BindEvents(Byval Objectname_ As String)
  9662.      Static Source As BUTTON
  9663.      Set Source = Bind(Objectname_)
  9664.      On Event Click From Source Call Click
  9665. End Sub
  9666. '++LotusScript Development Environment:2:2:Click:1:12
  9667. Sub Click(Source As Button)
  9668.      On Error Resume Next
  9669.      On Error 4412 Goto ErrNoAccess
  9670.      
  9671.      If Not(uidoc.EditMode) Then uidoc.EditMode = True
  9672.      note.tmpAction = "Accept"
  9673.      uidoc.Save
  9674.      If (ErrorStatus = 0) Then uidoc.Close
  9675.      Exit Sub
  9676. ErrNoAccess:
  9677. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  9678. 'if ErrorStatus > 0, then the Save failed     
  9679.      If (ErrorStatus = 0) Then Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  9680.      uidoc.Close
  9681.      Exit Sub
  9682. End Sub
  9683. NoticeType
  9684. Chair
  9685. tmpOwner
  9686. DoNotProcessh
  9687. Broadcast
  9688. OrgRepeat
  9689.     4S5S6S7S8S9S10S11S12S16S2E17S19S20S22S23S27S28S29S30S31S32S
  9690. DeclineK'++LotusScript Development Environment:2:5:(Options):0:66
  9691. '++LotusScript Development Environment:2:5:(Forward):0:1
  9692. Declare Sub Click(Source As Button)
  9693. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9694. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9695. Private Sub BindEvents(Byval Objectname_ As String)
  9696.      Static Source As BUTTON
  9697.      Set Source = Bind(Objectname_)
  9698.      On Event Click From Source Call Click
  9699. End Sub
  9700. '++LotusScript Development Environment:2:2:Click:1:12
  9701. Sub Click(Source As Button)
  9702.      On Error Resume Next
  9703.      On Error 4412 Goto ErrNoAccess
  9704.      
  9705.      If Not(uidoc.EditMode) Then uidoc.EditMode = True
  9706.      note.tmpAction = "Decline"
  9707.      uidoc.Save
  9708.      If (ErrorStatus = 0) Then uidoc.Close
  9709.      Exit Sub
  9710. ErrNoAccess:
  9711. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  9712. 'if ErrorStatus > 0, then the Save failed     
  9713.      If (ErrorStatus = 0) Then Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  9714.      uidoc.Close
  9715.      Exit Sub
  9716. End Sub
  9717. NoticeType
  9718. Chair
  9719. tmpOwner
  9720. DoNotProcessh
  9721. tmpNoParent
  9722. Broadcast
  9723. OrgRepeat
  9724.     4S5S6S7S8S9S10S11S12S16S17S19S20S22S23S27S28S32S33S34S35S36S37S
  9725. Other...'++LotusScript Development Environment:2:5:(Options):0:66
  9726. '++LotusScript Development Environment:2:5:(Forward):0:1
  9727. Declare Sub Click(Source As Button)
  9728. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9729. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9730. Private Sub BindEvents(Byval Objectname_ As String)
  9731.      Static Source As BUTTON
  9732.      Set Source = Bind(Objectname_)
  9733.      On Event Click From Source Call Click
  9734. End Sub
  9735. '++LotusScript Development Environment:2:2:Click:1:12
  9736. Sub Click(Source As Button)
  9737.      On Error Resume Next
  9738.      On Error 4412 Goto ErrNoAccess
  9739.      
  9740.      uidoc.EditMode = True
  9741.      If (ws.DialogBox("(NoticeOptionsDlg)",True,True,,,,,"Options")) Then
  9742. 'the user selected an action and clicked on OK
  9743. 'if the user selected Accept, Decline, we can save and exit
  9744.           If (note.Comments(0) <> "") Then note.IncludeComment = "1"
  9745.           Select Case note.ResponseType(0)
  9746.           Case "0"
  9747. 'this is an acceptance
  9748.                note.tmpAction = "Accept"
  9749.                Call uidoc.Save
  9750.                If (ErrorStatus = 0) Then Call uidoc.Close
  9751.           Case "1"
  9752. 'this is a decline
  9753.                note.tmpAction = "Decline"
  9754.                Call uidoc.Save
  9755.                If (ErrorStatus = 0) Then Call uidoc.Close
  9756.           Case "2"
  9757. 'this is a delegate
  9758.                note.tmpAction = "Delegate"
  9759.                Call uidoc.Save
  9760.                If (ErrorStatus = 0) Then Call uidoc.Close            
  9761.           Case "3"
  9762. 'this is a counter propose
  9763.                note.tmpAction = "CounterPropose"
  9764.                If (note.NoticeType(0) = ORS_MSGTYPE_DELEGATING) Then note.tmpDidDelegate = True
  9765.                note.NoticeType = ORS_MSGTYPE_COUNTER
  9766.                Call uidoc.RefreshHideFormulas
  9767.                Call uidoc.GotoField("Reason")
  9768.           Case "4"
  9769. 'this is a pencil in
  9770.                note.tmpAction = "PencilIn"
  9771.                Call uidoc.Save
  9772.                If (ErrorStatus = 0) Then Call uidoc.Close
  9773.           End Select
  9774.      End If
  9775.      Exit Sub
  9776. ErrNoAccess:
  9777. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  9778. 'if ErrorStatus > 0, then the Save failed     
  9779.      note.RemoveItem("tmpUserActions")     
  9780.      If (ErrorStatus = 0) Then 
  9781.           Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  9782.           uidoc.Close
  9783.      End If     
  9784.      Exit Sub
  9785. End Sub
  9786. chair
  9787. tmpowner
  9788. DoNotProcessh
  9789. Broadcast
  9790. OrgRepeat
  9791. NoticeType
  9792.     2S3S5S6S12S13S14S15S16S17S21S22S23S24S
  9793. Send Counter Proposal
  9794. tmpAction
  9795. CounterPropose
  9796.     0R1S2S3S
  9797.     0R7S12S
  9798. NoticeType
  9799. NoticeType
  9800. Principal
  9801. tmpOwner
  9802. ProposalSenth
  9803. Chair
  9804. tmpOwner
  9805.     2S3S5S6S8S9S10S11S12S13S15S2E16S20S21S23S24S
  9806. Accept Counter ProposalK
  9807. tmpAction
  9808. AcceptCounterProposal
  9809.     0R1S2S3S
  9810. ProposalSent+
  9811.     0R1S2S3S
  9812.     0R7S12S
  9813. NoticeType
  9814. NoticeType
  9815. Chair
  9816. tmpOwner
  9817. ProposalSenth
  9818.     2S3S5S6S8S9S10S11S12S13S15S2E16S
  9819. Decline Counter Proposal
  9820. tmpAction
  9821. DeclineCounterProposal
  9822.     0R1S2S3S
  9823. ProposalSent+
  9824.     0R1S2S3S
  9825.     0R7S12S
  9826. NoticeType
  9827. NoticeType
  9828. Chair
  9829. tmpOwner
  9830. ProposalSenth
  9831.     2S3S5S6S8S9S10S11S12S13S15S16S
  9832. Delivery Information...Kz
  9833. DeliveryInfo
  9834. Delivery Information
  9835.     4S5S6S7S8S9S10S12S
  9836. Add to CalendarK'++LotusScript Development Environment:2:5:(Options):0:66
  9837. '++LotusScript Development Environment:2:5:(Forward):0:1
  9838. Declare Sub Click(Source As Button)
  9839. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9840. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9841. Private Sub BindEvents(Byval Objectname_ As String)
  9842.      Static Source As BUTTON
  9843.      Set Source = Bind(Objectname_)
  9844.      On Event Click From Source Call Click
  9845. End Sub
  9846. '++LotusScript Development Environment:2:2:Click:1:12
  9847. Sub Click(Source As Button)
  9848.      On Error Resume Next
  9849.      On Error 4412 Goto ErrNoAccess
  9850.      
  9851.      If Not(uidoc.EditMode) Then uidoc.EditMode = True
  9852.      note.tmpAction = "AddCalendar"
  9853.      uidoc.Save
  9854.      If (ErrorStatus = 0) Then uidoc.Close
  9855.      Exit Sub
  9856. ErrNoAccess:
  9857. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  9858. 'if ErrorStatus > 0, then the Save failed     
  9859.      If (ErrorStatus = 0) Then Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  9860.      uidoc.Close
  9861.      Exit Sub
  9862. End Sub
  9863. Broadcast
  9864. DoNotProcessh
  9865. Chair
  9866. tmpOwner
  9867. NoticeType
  9868.     1S2S3S4S8S9S10S11S12S13S14S15S
  9869. Pencil In
  9870. tmpAction
  9871. PencilIn
  9872.     0R1S2S3S
  9873.     0R7S12S
  9874. NoticeType
  9875. Chair
  9876. tmpOwner
  9877. DoNotProcessh
  9878. Broadcast
  9879.     4S5S6S7S8S9S10S11S12S14S2E15S17S18S20S21S25S26S27S28S
  9880. Check Calendar
  9881. KeyValue
  9882. NoticeType
  9883. NewDate
  9884. StartDate
  9885.     1S2S5S6S7S8S9S10S
  9886. Calendar
  9887. KeyValue
  9888. KeyValue
  9889. tmpOwner
  9890. chair
  9891. NoticeType
  9892.     2S3S5S6S8S9S
  9893. '++LotusScript Development Environment:2:5:(Options):0:66
  9894. '++LotusScript Development Environment:2:5:(Forward):0:1
  9895. Declare Sub Click(Source As Button)
  9896. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9897. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9898. Private Sub BindEvents(Byval Objectname_ As String)
  9899.      Static Source As BUTTON
  9900.      Set Source = Bind(Objectname_)
  9901.      On Event Click From Source Call Click
  9902. End Sub
  9903. '++LotusScript Development Environment:2:2:Click:1:12
  9904. Sub Click(Source As Button)
  9905.      Set helpdoc = New NotesDocument(db)
  9906.      
  9907. 'get the context the user is in
  9908.      If (note.Chair(0) = note.tmpOwner(0)) Then
  9909. 'the chair is looking at this
  9910.           Select Case note.NoticeType(0)
  9911.           Case ORS_MSGTYPE_REJECT
  9912.                helpdoc.tmpContext = "5"       'chair is reading a decline notice
  9913.           Case ORS_MSGTYPE_COUNTER
  9914.                helpdoc.tmpContext = "6"       'chair is reading a counter notice
  9915.           Case ORS_MSGTYPE_ACCEPT
  9916.                helpdoc.tmpContext = "8"      'chair is reading an acceptance
  9917.           Case ORS_MSGTYPE_DELEGATING
  9918.                helpdoc.tmpContext = "15"    'chair is reading a delegation notice
  9919.           End Select
  9920.      Else
  9921. 'the invitee is looking at this
  9922.           Select Case note.NoticeType(0)
  9923.           Case ORS_MSGTYPE_INVITE
  9924.                helpdoc.tmpContext = "4"       'invitee is looking at an invitation
  9925.           Case ORS_MSGTYPE_RESCHEDULE
  9926.                helpdoc.tmpContext = "7"       'invitee is reading a reschedule notice
  9927.           Case ORS_MSGTYPE_COUNTERREJECT
  9928.                helpdoc.tmpContext = "9"       'invitee is reading a counter-decline notice
  9929.           Case ORS_MSGTYPE_CANCEL
  9930.                helpdoc.tmpContext = "10"     'invitee is reading a cancel notice
  9931.           Case ORS_MSGTYPE_STATUSUPDATE
  9932.                If (note.OrgStatus(0)) = ORS_STATUS_REMOVED Then
  9933.                     helpdoc.tmpContext = "11"    'invitee is reading a removal notice
  9934.                Else
  9935.                     helpdoc.tmpContext = "12"    'invitee is reading a mest attend notice
  9936.                End If
  9937.           Case ORS_MSGTYPE_CONFIRMATION
  9938.                helpdoc.tmpContext = "13"      'invitee is reading a confirmation notice
  9939.           Case ORS_MSGTYPE_DELEGATE
  9940.                If (note.OrgState(0) = ORS_STATE_DELEGATE) Then helpdoc.tmpContext = "14"  'delegatee opens an invitation notice
  9941.           Case ORS_MSGTYPE_REJECT,ORS_MSGTYPE_DELEGATING
  9942.                helpdoc.tmpContext = "16"     'invitee is looking at a notice they declined/delegated
  9943.           Case ORS_MSGTYPE_COUNTER
  9944.                helpdoc.tmpContext = "17"    'invitee is looking at notice they counter proposed               
  9945.           End Select
  9946.      End If
  9947.      Call ws.DialogBox("(CalendarHelp)",True,True,True,True,True,True,"C&S Workflow Help",helpdoc)
  9948. End Sub
  9949. NoticeType
  9950. OrgStateY
  9951.     2S3S4S5S
  9952. Recreate Appointment'++LotusScript Development Environment:2:5:(Options):0:66
  9953. '++LotusScript Development Environment:2:5:(Forward):0:1
  9954. Declare Sub Click(Source As Button)
  9955. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9956. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9957. Private Sub BindEvents(Byval Objectname_ As String)
  9958.      Static Source As BUTTON
  9959.      Set Source = Bind(Objectname_)
  9960.      On Event Click From Source Call Click
  9961. End Sub
  9962. '++LotusScript Development Environment:2:2:Click:1:12
  9963. Sub Click(Source As Button)
  9964.      If (uidoc.EditMode = False) Then uidoc.EditMode = True
  9965.      Call ResurrectParentDoc
  9966.      Call note.RemoveItem("tmpNoParent")
  9967.   '   Call note.RemoveItem("DoNotProcess")
  9968.      Call uidoc.Refresh
  9969. End Sub
  9970. tmpNoParent
  9971.     0S0E
  9972. Categori_zeK
  9973. Send Docu_ment
  9974. _Remove From FolderK
  9975. Copy into\New Memo,
  9976. NewMemo
  9977.     0S0E
  9978. tmpnewdoc
  9979.     1S2S
  9980. Copy into\New Calendar Entry4
  9981. NewCalendarEntry
  9982.     0S0E
  9983. tmpnewdoc
  9984.     1S2S
  9985. Copy into\New Task,
  9986. NewTask
  9987.     0S0E
  9988. tmpnewdoc
  9989.     1S2S
  9990. Copy into\New GroupK,
  9991. NewGroup
  9992.     0S0E
  9993. tmpnewdoc
  9994.     1S2S
  9995. O=Lotus Notes
  9996. O=Lotus Notes
  9997. PURSAFO
  9998. |.:#U
  9999. O=Lotus Notes
  10000. CN=Lotus Notes Template Development/O=Lotus Notes
  10001. PURSAFO
  10002. StartDate
  10003. TimeRange
  10004. $FormPublicAccess
  10005. tmpStartDate
  10006. tmpEndDate
  10007. $TITLE
  10008. $INFO
  10009. $WINDOWTITLE
  10010. $Script
  10011. $$Script_O
  10012. $$ScriptName
  10013. $$FormScript
  10014. $$$FormScript_O
  10015. NewDate
  10016. NewTimeRange
  10017. tmpNewStart
  10018. tmpNewEnd
  10019. $BODY
  10020. $ACTIONS
  10021. $SCRIPTOBJ_4
  10022. $SCRIPTOBJ_5
  10023. $SCRIPTOBJ_6
  10024. $SCRIPTOBJ_11
  10025. $SCRIPTOBJ_14
  10026. $SCRIPTOBJ_15
  10027. $PublicAccess
  10028. New Calendar Entry
  10029. Subject
  10030. "Small Fonts
  10031. '++LotusScript Development Environment:2:5:(Options):0:74
  10032. Option Public  
  10033. Use "AppointmentProcessing" 'includes NoticeProcessing and AppointmentResponses
  10034. Use "NoticeResponses"
  10035. Use "ResourceProcessing" 'includes RepeatProcessing 
  10036. Use "DocumentConversions"
  10037. '++LotusScript Development Environment:2:5:(Forward):0:1
  10038. '++LotusScript Development Environment:2:5:(Declarations):0:10
  10039. '(Globals): 
  10040. Dim startdt As NotesDateTime
  10041. Dim enddt As NotesDateTime
  10042. Dim remdt As NotesDateTime
  10043. Dim trdr As NotesDateRange
  10044. Dim Intl As NotesInternational
  10045. Dim tmpList() As Variant
  10046. Dim SelectedDate As Variant
  10047. Dim AppointmentAlarms As Integer
  10048. Dim AnniversaryAlarms As Integer
  10049. Dim EventAlarms As Integer
  10050. Dim DocWasSaved As Integer
  10051. Dim ErrorStatus As Integer
  10052. Dim AlarmSet As Integer
  10053. Dim InAlarmFolder As Integer 
  10054.  Appointment'++LotusScript Development Environment:2:5:(Options):0:66
  10055. '++LotusScript Development Environment:2:5:(Forward):0:1
  10056. Declare Sub Postopen(Source As Notesuidocument)
  10057. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  10058. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  10059. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  10060. Declare Sub Postrecalc(Source As Notesuidocument)
  10061. Declare Sub Postmodechange(Source As Notesuidocument)
  10062. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  10063. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10064. '++LotusScript Development Environment:2:2:BindEvents:1:129
  10065. Private Sub BindEvents(Byval Objectname_ As String)
  10066.      Static Source As NOTESUIDOCUMENT
  10067.      Set Source = Bind(Objectname_)
  10068.      On Event Postopen From Source Call Postopen
  10069.      On Event Querysave From Source Call Querysave
  10070.      On Event Queryopen From Source Call Queryopen
  10071.      On Event Queryclose From Source Call Queryclose
  10072.      On Event Postrecalc From Source Call Postrecalc
  10073.      On Event Postmodechange From Source Call Postmodechange
  10074.      On Event Querymodechange From Source Call Querymodechange
  10075. End Sub
  10076. '++LotusScript Development Environment:2:2:Postopen:1:12
  10077. Sub Postopen(Source As Notesuidocument)
  10078.      If (source.InPreviewPane) Then Exit Sub     
  10079.      source.AutoReload = False
  10080.      
  10081.      On Error Goto ErrorRoutine
  10082. 'if the user wants to open the reschedule notice, go for it!     
  10083.      If (OpenReschedule) Then
  10084.           Set note = db.GetDocumentByUNID(UpdateResponses(0).misc2)
  10085.     '      Call uidoc.Close          
  10086.           Set uidoc = ws.EditDocument(False,note)
  10087.      End If     
  10088.      
  10089. 'if this is a new document we need to set up some defaults
  10090.      If source.IsNewDoc Then
  10091.           Set uidoc = source
  10092.           Set note = uidoc.Document
  10093.           Call GetCalendarOwner
  10094.           If (note.AppointmentType(0) = "3") Then Call CreateInviteeTable(note)
  10095.           Set trdr = session.CreateDateRange
  10096.           If (Hour(SelectedDate) > 0) Then 
  10097. 'the user selected a date and time               
  10098.                note.StartDate = SelectedDate
  10099.                note.StartDateTime = SelectedDate
  10100.                PreferredDuration = profile.DefaultDuration(0)
  10101.                Call TIMEGetNotesFromLS(note.GetITemValue("StartDateTime")(0), enddt)          
  10102.                Call enddt.AdjustMinute(PreferredDuration, True)
  10103.                Set note.EndDateTime = enddt
  10104. 'set thet ime range value
  10105.                Set trdr.StartDateTime = startdt
  10106.                Set trdr.EndDateTime = enddt
  10107.                Set note.TimeRange = trdr
  10108.           Elseif (SelectedDate <> "") Then
  10109. 'the user selected a date but now time
  10110.                note.StartDate = SelectedDate           
  10111.           End If
  10112.           note.ReminderTime = note.StartDateTime
  10113.           note.From = session.UserName
  10114.           note.Principal = Owner
  10115.           note.ExcludeFromView = "D"
  10116.           AlarmSet = 0
  10117.           If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") Then
  10118.                Select Case note.AppointmentType(0)
  10119.                Case "0","3"
  10120.                     If profile.SetAlarmAppointment(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  10121.                Case "1"
  10122.                     If profile.SetAlarmAnniversary(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  10123.                Case "2"
  10124.                     If profile.SetAlarmEvent(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  10125.                Case "4"
  10126.                     If (profile.SetAlarmReminder(0)) = "1" Then Call note.ReplaceItemValue("$Alarm",1)
  10127.                End Select 
  10128.           End If
  10129.           note.Chair = Owner
  10130.           note.tmpOwner = Owner
  10131.           If (profile.CalEntryType(0) = "1") Then note.BookFreeTime = "1"
  10132.             'note.EndDateTime = note.StartDateTime
  10133.           source.Reload
  10134.           If (session.UserName = Owner) Then
  10135.                source.RefreshHideFormulas
  10136.           Else
  10137.                source.refresh
  10138.           End If
  10139.           
  10140.           NewDocument = True
  10141.      Else
  10142. 'DO NOT SET NewDocument = FALSE
  10143. 'In some cases, we set it to true in QueryOpen!!!          
  10144.           If source.InPreviewPane Then Exit Sub
  10145.           If source.EditMode And note.HasItem("OrgRepeat") Then
  10146.                If note.HasItem("RepeatIds") Then
  10147.                     source.EditMode = False
  10148.                Else
  10149.                     Call SaveOriginalValues
  10150.                End If
  10151.           End If
  10152.      End If
  10153.      
  10154.      note.tmpApptFlags = note.AppointmentType
  10155.      note.tmpOwner = Owner
  10156.      DocWasSaved = False
  10157.      
  10158.      Exit Sub
  10159.      
  10160. ErrorRoutine:
  10161.      Messagebox Error & " (PostOpen)"
  10162.      Exit Sub
  10163.      
  10164. End Sub
  10165. '++LotusScript Development Environment:2:2:Querysave:1:12
  10166. Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  10167. 'refresh the document to get any updated values
  10168.      Dim apptdt As NotesDateTime
  10169.      
  10170.      ErrorStatus = 0
  10171.      source.reload     
  10172.      source.refresh     
  10173.      
  10174. 'the first thing we do is make sure the document can be saved
  10175.      
  10176. 'if the current user is not the owner, and the HideEntries is set, warn the user     
  10177.      If (db.CurrentAccessLevel < ACLLEVEL_AUTHOR) And (note.OrgConfidential(0) = "1") Then
  10178.           Messagebox "You have indicated that you want this document hidden from public viewing, but since you are considered a public viewer, " & _
  10179.           "you will not be able to save this document. This option will be de-selected.",0,"Warning"
  10180.           note.OrgConfidential = ""
  10181.           source.Reload
  10182.           source.Refresh
  10183.      End If
  10184.      
  10185. 'if this is not a new document, and the originaltype was an invitation but no longer is, make sure they want to proceed
  10186.      If Not(NewDocument) And (Owner = note.Chair(0))Then
  10187.           If ((OriginalType = "3") And (note.AppointmentType(0) <> "3")) Then
  10188.                If Messagebox("Changing this entry from an Invitation will cancel this meeting. Continue?",36,"Cancel Invitation") = 6 Then
  10189.                     If Not(note.IsResponse) Then
  10190.                          If (note.HasItem("PostedDate")) Then Call CancelAppointment(False)
  10191.                     Else
  10192.                          If (parentnote.HasItem("PostedDate")) Then Call CancelAppointment(False)
  10193.                     End If
  10194.                Else
  10195.                     Continue = False
  10196.                     DocWasSaved = False
  10197.                     Exit Sub
  10198.                End If
  10199.           End If
  10200.      End If
  10201.      
  10202. 'see if we are creating a document in the past
  10203.      If (Owner = note.Chair(0)) And ((note.AppointmentType(0) <> "1") And (note.AppointmentType(0) <> "2")) And (NewDocument) And Not(note.HasItem("RepeatFor")) Then     
  10204.           Set nowdt = New NotesDateTime("")
  10205.           Call nowdt.SetNow
  10206.           Call TIMEGetNotesFromLS(note.GetITemValue("StartDateTime")(0), apptdt)          
  10207.           If nowdt.TimeDifference(apptdt) > 0 Then
  10208.                If(Msgbox("This appointment is being created in the past. Continue?",36,"Continue") <> 6) Then
  10209.                     Continue = False
  10210.                     ErrorStatus = 2
  10211.                     DocWasSaved = False
  10212.                     Exit Sub
  10213.                Else
  10214.                     ErrorStatus = 0
  10215.                End If
  10216.           End If
  10217.      End If
  10218.      
  10219. 'check for any conflicts if this is not a reminder and the Warn for Conflicts button is selected 
  10220.      If (note.OrgDontDoubleBook(0) = "1") And (note.BookFreeTime(0) <> "1") And Not(note.HasItem("RepeatFor")) Then
  10221.           If Isarray(OriginalStartDate) Then
  10222.                If (OriginalStartDate(0) <> note.StartDateTime(0)) Then
  10223.                     If (CheckIfConflictExists) Then 
  10224.                          Continue = False    
  10225.                          DocWasSaved = False
  10226.                          Exit Sub
  10227.                     End If                    
  10228.                End If
  10229.           Else
  10230.                If (CheckIfConflictExists) Then 
  10231.                     Continue = False      
  10232.                     DocWasSaved = False
  10233.                     Exit Sub
  10234.                End If
  10235.           End If
  10236.      End If     
  10237.      
  10238.      If (NewDocument) And (note.hasitem("RepeatFor")) And (note.AppointmentType(0) = "3") Then note.Broadcast = "1"
  10239.      
  10240. 'if the invitee is modifying the date/time, see if they want to proceed
  10241.      If (Owner <> note.Chair(0)) Then
  10242.           If (OriginalStartDate(0) <> note.StartDateTime(0)) Or (OriginalEndDate(0) <> note.EndDateTime(0)) Then
  10243.                If(Messagebox("You are not the originator of this entry. Are you sure you want to change the date/time?",36,"Warning") = 7) Then
  10244. 'the user does not want to change the date/time
  10245.                     Set trdr = session.CreateDateRange
  10246.                     Call TIMEGetNotesFromLS(OriginalStartDate(0), startdt)          
  10247.                     Call TIMEGetNotesFromLS(OriginalEndDate(0), enddt)          
  10248.                     Set trdr.StartDateTime = startdt
  10249.                     Set trdr.EndDateTime = enddt 
  10250.                     Set note.StartDate = startdt
  10251.                     Set note.StartDateTime = startdt
  10252.                     Set note.EndDateTime = enddt
  10253.                     Set note.TimeRange = trdr
  10254.                     source.Reload
  10255.                     source.Refresh
  10256.                End If
  10257.           End If
  10258.      End If
  10259.      
  10260.      On Error Goto ErrorRoutine
  10261.      
  10262.      If note.HasItem("$Alarm") Then
  10263.           If Not(note.HasItem("$AlarmOffset") Or note.HasItem("$AlarmTime")) Then
  10264.                AlarmSet = 1
  10265. 'they want it set automatically so default it as shown in calendar profile
  10266.                Select Case note.AppointmentType(0)
  10267.                Case "0","3"
  10268.                     Call note.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  10269.                Case "1"
  10270.                     AdjustMinutes = -1440 * profile.AnniversaryLead(0)
  10271.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  10272.                     Call alarmtime.AdjustMinute(AdjustMinutes, True)
  10273.                     Set note.~$AlarmTime = alarmtime
  10274.                Case "2"
  10275.                     AdjustMinutes = -1440 * profile.EventLead(0)
  10276.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  10277.                     Call alarmtime.AdjustMinute(AdjustMinutes, True)
  10278.                     Set note.~$AlarmTime = alarmtime
  10279.                Case "4"
  10280.                     AdjustMinutes = -1 * profile.ReminderLead(0)
  10281.                     Set alarmtime = New NotesDateTime(remdt.DateOnly & " " & remdt.TimeOnly)
  10282.                     Call alarmtime.AdjustMinute(AdjustMinutes, True)
  10283.                     Set note.~$AlarmTime = alarmtime
  10284.                End Select
  10285.                Call note.ReplaceItemValue("$AlarmDescription", note.Subject(0))
  10286.           Elseif note.HasItem("$AlarmTime") And Not(NewDocument) Then
  10287.                Dim dtOrigStart As NotesDateTime
  10288.                Dim dtCurrentStart As NotesDateTime
  10289.                
  10290.                AlarmTime = note.GetItemValue("$AlarmTime")
  10291.                Call TIMEGetNotesFromLS(AlarmTime(0), dateitem)          
  10292.                Call TIMEGetNotesFromLS(OriginalStartDate(0), dtOrigStart)
  10293.                Call TIMEGetNotesFromLS(note.GetItemValue("StartDateTime")(0), dtCurrentStart)
  10294.                totaldiff = dtCurrentStart.TimeDifference(dtOrigStart)
  10295.                DayDiff = Fix(TotalDiff / 86400)
  10296.                SecDiff = TotalDiff Mod 86400
  10297.                MinDiff = Fix(SecDiff / 60)
  10298.                SecDiff = SecDiff Mod 60
  10299.                dateitem.AdjustDay(DayDiff)
  10300.                dateitem.AdjustMinute(MinDiff)
  10301.                dateitem.AdjustSecond(SecDiff)
  10302.                Set item = note.GetFirstItem("$AlarmTime")
  10303.                Set item.DateTimeValue = dateitem
  10304.           Else
  10305.                AlarmDesc = note.GetItemValue("$AlarmDescription")
  10306.                If (AlarmDesc(0) = "") Then Call note.ReplaceItemValue("$AlarmDescription",note.Subject(0))
  10307.           End If
  10308.      Else
  10309.           note.RemoveItem("$AlarmOffset")
  10310.           note.RemoveItem("$AlarmTime")
  10311.           note.RemoveItem("$AlarmDescription")
  10312.      End If
  10313.      
  10314.      
  10315.      
  10316.      If Not(note.HasItem("DocAuthors")) Then Set item = New NotesItem(note, "DocAuthors", note.From, AUTHORS)
  10317.      
  10318.      'if this is a repeating meeting, see if changes need to be copied
  10319.      If Not(NewDocument) And note.HasItem("OrgRepeat") Then
  10320.           Call GetModifiedSettings
  10321.           If (CancelChange) Then 
  10322.                continue = False
  10323.                Exit Sub
  10324.           Else
  10325.                Call note.ReplaceItemValue("OriginalStartDate", OriginalStartDate(0))              
  10326.           End If
  10327.      End If     
  10328.      DocWasSaved = True
  10329.      
  10330.      source.Reload
  10331.      
  10332.      Exit Sub
  10333.      
  10334. ErrorRoutine:
  10335.      Messagebox Error & " (QuerySave)"
  10336.      Exit Sub
  10337.      
  10338. End Sub
  10339. '++LotusScript Development Environment:2:2:Queryopen:1:12
  10340. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  10341. 'if this is a new document, get the currently selected time from the Calendar view
  10342.      If IsNewDoc Then
  10343.           Set ws = New NotesUIWorkspace          
  10344.           Set session = New NotesSession
  10345.           Set db = session.CurrentDatabase
  10346.           On Error Resume Next
  10347.           Set profile = db.GetProfileDocument("CalendarProfile")
  10348.           If Err > 0 Then
  10349.                Err = 0
  10350.                Messagebox "This mail file does not have a Calendar Profile. " &_
  10351.                "Please ask the owner of this mail file to select Actions, Calendar Tools, Calendar Profile from the menu to create one.", 0, "Calendar Profile"
  10352.                continue = False
  10353.                Exit Sub
  10354.           End If
  10355.           If (profile.Owner(0) <> "") Then
  10356.                If (db.CurrentAccessLevel < ACLLEVEL_AUTHOR) And (profile.CalEntryHide(0) = "1") Then
  10357.                     Set nam = New NotesName(profile.Owner(0))
  10358.                     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"
  10359.                     continue = False
  10360.                     Exit Sub
  10361.                End If         
  10362.           End If
  10363.           SelectedDate = ws.CurrentCalendarDateTime
  10364.           Call TIMEGetNotesFromLS(SelectedDate, startdt)          
  10365.      End If
  10366. 'if this is a new document, then exit this routine     
  10367.      If Isnewdoc Or source.InPreviewPane Then Exit Sub
  10368.      
  10369.      Set ws = New NotesUIWorkspace
  10370.      Set uidoc = source     
  10371.      InstantiateObjectVariables
  10372.      
  10373.      
  10374.      On Error Goto ErrorRoutine
  10375.      On Error 4005 Resume Next   'this will handle the parentnote not being found
  10376.      
  10377.      Set trdr = session.CreateDateRange
  10378.      
  10379. 'see if this is a document being created from an existing one
  10380.      If (note.HasItem("tmpNewDoc")) Then
  10381.           NewDocument = True
  10382.           Exit Sub
  10383.      End If
  10384.      
  10385.      If (note.HasItem("$Alarm")) Then 
  10386.           AlarmSet = 1
  10387.           InAlarmFolder = True
  10388.      End If
  10389.      
  10390.      note.tmpOwner = Owner
  10391.      If (note.IsResponse) Then 
  10392.           Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  10393.           If (parentnote Is Nothing) Then
  10394. '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
  10395. 'we do not need to create the parent document since this was part of a repeat set                
  10396.                If (note.HasItem("OrgRepeat")) Then
  10397.                     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"
  10398.                     note.RemoveItem("$REF")
  10399.                     note.RemoveItem("$REFOPTIONS")
  10400.                     note.RemoveItem("OrgRepeat")
  10401.                     Call note.Save(True,True,True)
  10402.                End If
  10403.           End If
  10404.      End If
  10405.      
  10406. 'we need to get the original start and end date times
  10407.      OriginalStartDate = note.StartDateTime
  10408.      OriginalEndDate = note.EndDateTime
  10409.      OriginalType = note.AppointmentType(0)
  10410.      
  10411.      If (note.AppointmentType(0) <> "3") Then Exit Sub
  10412.      
  10413. 'get any update items if we are not the chair
  10414.      If Not (note.tmpOwner(0) = note.Chair(0)) Then 
  10415.           Call note.RemoveItem("MailOptions")
  10416.           Call note.RemoveItem("SendTo")
  10417.           CheckForNoticeUpdates
  10418.           note.SendTo = ""
  10419.      Else
  10420. 'we are the chair
  10421.           
  10422.           If (note.IsResponse) Then
  10423. 'this is a repeat instance; we need to add our parent's required & optional attendees               
  10424.                OriginalRequired = parentnote.RequiredAttendees
  10425.                OriginalOptional = parentnote.OptionalAttendees
  10426.                OriginalRoom = parentnote.Room(0)
  10427.                Call CreateInviteeTable(parentnote)               
  10428.           Else
  10429.                OriginalRequired = note.RequiredAttendees
  10430.                OriginalOptional = note.OptionalAttendees
  10431.                OriginalRoom = note.Room(0)
  10432.                Call CreateInviteeTable(note)               
  10433.           End If
  10434.      End If
  10435.      Print Now     
  10436.      Exit Sub
  10437.      
  10438. ErrorRoutine:
  10439.      Messagebox Error & " (QueryOpen)"
  10440.      Exit Sub
  10441.      
  10442. End Sub
  10443. '++LotusScript Development Environment:2:2:Queryclose:1:12
  10444. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  10445.      Dim InstanceWarned As Integer
  10446.      
  10447. 'if the document is in read mode, was not saved, or is a conflict, bail     
  10448.      If source.EditMode = False Or DocWasSaved = False Then Exit Sub
  10449. 'we need to make this check here -> if the user is in preview pane, the note object would not be set    
  10450.      If note.HasItem("$Conflict") Then Exit Sub
  10451.      
  10452. 'if this is a parent document, check for PostedDate  
  10453.      If Not(NewDocument) Then     
  10454.           If (note.AppointmentType(0) = "3") Then        
  10455.                If (OriginalStartDate(0) <> note.StartDateTime(0)) Or (OriginalEndDate(0) <> note.EndDateTime(0)) Then
  10456.                     IsDateChange = True
  10457.                Else
  10458.                     IsDateChange = False
  10459.                End If           
  10460. 'see if the room has changed          
  10461.                If (OriginalRoom <> note.Room(0)) And (OriginalRoom <> "") Then
  10462.                     IsRoomChange = True
  10463.                     note.OriginalRoom = OriginalRoom
  10464.                Else
  10465.                     IsRoomChange = False
  10466.                End If
  10467.                If (IsDateChange Or IsRoomChange) And (note.chair(0) = owner) Then
  10468.                     If (note.IsResponse) Then
  10469.                          If (parentnote.HasItem("PostedDate") Or (note.RequiredResources(0) <> "") Or (note.RoomRequired(0) = "1" And note.Room(0) <> "")) Then NeedsReschedule = True
  10470.                     Else
  10471.                          If (note.HasItem("PostedDate")) Or (note.RequiredResources(0) <> "") Or (note.RoomRequired(0) = "1" And note.Room(0) <> "") Then NeedsReschedule = True                  
  10472.                     End If
  10473.                End If
  10474.           End If    
  10475.      End If     
  10476.      
  10477.      If (NeedsReschedule) Then note.SequenceNum = note.SequenceNum(0) + 1     
  10478.      
  10479. 'If they have not indicated that this should repeat then we don't need to do this stuff
  10480.  'If they have not indicated that this should repeat then we don't need to do this stuff
  10481.      If note.HasItem("OrgRepeat") And (note.tmpAction(0) <> "Confirm") Then
  10482.           Action = note.tmpAction(0)          
  10483.           Call RepeatSave
  10484.      End If
  10485.      
  10486.      Select Case note.tmpAction(0)
  10487.      Case "Confirm"
  10488.           ConfirmAppointment
  10489.      Case "Cancel"
  10490.           Call CancelAppointment(True)
  10491.      Case "Decline"
  10492. 'this gets called if an invitee changes their mind
  10493.           DeclineInvitation
  10494.      Case "Delegate"
  10495. 'the invitee is delegating a meeting that has been accepted
  10496.           DelegateInvitation
  10497.      End Select
  10498.      
  10499.      On Error Goto ErrorRoutine
  10500.      
  10501.      If note.HasItem("$Alarm") Then
  10502.           ws.EnableAlarms(True)
  10503.           If Not(note.HasItem("$AlarmOffset") Or note.HasItem("$AlarmTime")) Then
  10504. 'they want it set automatically so default it as shown in calendar profile
  10505.                Select Case note.AppointmentType(0)
  10506.                Case "0","3"
  10507.                     Call note.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  10508.                Case "1"
  10509.                     AdjustMinutes = -1440 * profile.AnniversaryLead(0)
  10510.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  10511.                     Call alarmtime.AdjustMinute(AdjustMinutes, True)
  10512.                     Set note.~$AlarmTime = alarmtime
  10513.                Case "2"
  10514.                     AdjustMinutes = -1440 * profile.EventLead(0)
  10515.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  10516.                     Call alarmtime.AdjustMinute(AdjustMinutes, True)
  10517.                     Set note.~$AlarmTime = alarmtime
  10518.                Case "4"
  10519.                     AdjustMinutes = -1 * profile.ReminderLead(0)
  10520.                     Set alarmtime = New NotesDateTime(remdt.DateOnly & " " & remdt.TimeOnly)
  10521.                     Call alarmtime.AdjustMinute(AdjustMinutes, True)
  10522.                     Set note.~$AlarmTime = alarmtime
  10523.                End Select
  10524.                Call note.ReplaceItemValue("$AlarmDescription", note.Subject(0))
  10525.           Else
  10526.                AlarmDesc = note.GetItemValue("$AlarmDescription")
  10527.                If (AlarmDesc(0) = "") Then Call note.ReplaceItemValue("$AlarmDescription",note.Subject(0))
  10528.           End If
  10529. 'if the document is not in the Alarms folder, put it in there if it is not the parent document of a repeat set          
  10530.           If Not(InAlarmFolder) Then
  10531.                If Not(note.HasItem("RepeatDates")) Then
  10532.                     If (note.noteid = "0") Then Call note.Save(True,True,True)
  10533.                     Call note.PutInFolder("$Alarms")
  10534.                End If
  10535.           Else
  10536. '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 
  10537. 'we only need to check startdate time, regardless of appointment type since the alarm is based upon the start date time
  10538.                If(OriginalStartDate(0) <> note.StartDateTime(0)) And Not(note.HasItem("RepeatIds"))Then Call note.PutInFolder("$Alarms")
  10539.           End If
  10540.           ws.CheckAlarms
  10541.      End If
  10542.      
  10543. 'check to see if this is a repeating entry and the repeat documents were not created
  10544.      If (NewDocument) And (note.HasItem("OrgRepeat")) And Not(note.HasItem("RepeatIds")) Then Call RepeatSave
  10545.      
  10546. 'see if we should invite the users/resources to this meeting
  10547.      If (note.AppointmentType(0) = "3") And (note.Chair(0) = Owner) And (ErrorStatus = 0) Then     
  10548.           If (note.Resources(0) <> "") Or (note.SendTo(0) <> "") Or (note.CopyTo(0) <> "") Or (note.RoomRequired(0) = "1" And note.RoomToReserve(0) <> "" And OriginalRoom = "") Then
  10549.                If Messagebox("Do you want to send this to the people/resources you invited?", 4 + 32, "Close") = 6 Then
  10550. 'the user wants to send this out
  10551. 'first, invite users
  10552.                     If (note.SendTo(0) <> "") Or (note.CopyTo(0) <> "") Then
  10553.                          If note.HasItem("Body") Then
  10554.                               ErrorStatus = SendInvitation
  10555.                               If (errorstatus > 0) Then
  10556.                                    continue = False
  10557.                                    ErrorStatus = 0
  10558.                                    Exit Sub
  10559.                               End If 
  10560.                          Else
  10561.                               ErrorStatus = SendInvitation
  10562.                               If (errorstatus > 0) Then
  10563.                                    continue = False
  10564.                                    ErrorStatus = 0
  10565.                                    Exit Sub
  10566.                               End If
  10567.                          End If
  10568.                          If (note.HasItem("OrgRepeat")) And (note.IsResponse) And (ChangeWhich <> "0") Then 
  10569.                               Messagebox "The people/resources invited will be for this repeat instance only.",0,"Status"
  10570.                               InstanceWarned =True
  10571.                          End If                               
  10572.                     End If                    
  10573. 'invite any resources -> resources are on a per repeat instance basis, so we only invite resources for this meeting                    
  10574.                     If (note.Resources(0) <> "") Then 
  10575.                          Call InviteResources(note)
  10576.                          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"
  10577.                     End If                         
  10578. 'invite the room -> the user can change the room for multiple repeat instances                   
  10579.                     If (note.RoomRequired(0) = "1") And (note.RoomToReserve(0) <> "") Then
  10580.                          If (note.HasItem("tmpRescheduleWhich")) Then
  10581.                               Call ProcessRepeatingResources(note.tmpreschedulewhich(0),ORS_MSGTYPE_INVITE,ORS_STATE_ROOM)
  10582.                          Else               
  10583.                               Call InviteRoom(note)
  10584.                          End If               
  10585.                     End If               
  10586.                End If     
  10587.           End If
  10588.      End If        
  10589.      If note.HasItem("RepeatFor") And (NewDocument) Then 
  10590.           note.Subject = "Do Not Delete - Repeat parent for " & note.Subject(0)
  10591.      End If
  10592.      
  10593.      If note.HasItem("OrgRepeat") And Not(note.IsResponse) Then note.RemoveItem("CalendarDateTime")
  10594.      
  10595.      If (NeedsReschedule) Then Call RescheduleAppointment
  10596.      
  10597.      Call MarkTempFields(note)
  10598.      Call note.Save(True,True,True)
  10599.      
  10600.      If (note.tmpAction(0) = "CounterPropose") Then     
  10601.           note.NoticeType = ORS_MSGTYPE_COUNTER
  10602.           note.Form = "Notice"               
  10603.           Call uidoc.Reload     
  10604.           noteunid = note.UniversalID
  10605.           Set note = db.GetDocumentByUNID(noteunid)
  10606.           Set uidoc =  ws.EditDocument(True,note) 
  10607.      End If
  10608.      
  10609. '     If notice Is Nothing Then
  10610.           'Call MarkTempFields
  10611.           'note.Save True,True
  10612.      ws.ViewRefresh
  10613.  '         Exit Sub    
  10614.   '   End If     
  10615.      
  10616. %REM     
  10617.      If notice.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE Or _
  10618.      notice.NoticeType(0) = ORS_MSGTYPE_CONFIRMATION Or _
  10619.      notice.NoticeType(0) = ORS_MSGTYPE_CANCEL Or _
  10620.      notice.NoticeType(0) = ORS_MSGTYPE_STATUSUPDATE Then
  10621.           note.OriginalAttendees = OriginalAttendees
  10622.           'Call SendUpdateNotice
  10623.      End If
  10624. %ENDREM  
  10625.      Exit Sub
  10626.      
  10627. ErrorRoutine:
  10628.      Messagebox Error & " (QueryClose)"
  10629.      Exit Sub
  10630.      
  10631. End Sub
  10632. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  10633. Sub Postrecalc(Source As Notesuidocument)
  10634.      Dim startitem As NotesItem
  10635.      Dim enditem As NotesItem
  10636.      
  10637.      If Not (source.EditMode) Then Exit Sub
  10638.      
  10639.      On Error Goto ErrorRoutine
  10640.      
  10641. 'if the user is attempting to change the appointment type of a repeating meeting, don't let them
  10642.      If Not(NewDocument) And (note.HasItem("OrgRepeat")) And (note.IsResponse) And (OriginalType <> note.AppointmentType(0)) Then note.AppointmentType = OriginalType
  10643.      
  10644. 'if there is no chair item and there should be, add it
  10645.      If Not(note.HasItem("Chair")) Then note.Chair = Owner
  10646.      
  10647. 'if the user is changing this from a non-invitation to an invitation, we need to set up the invitee objects
  10648.      If (note.AppointmentType(0) = "3" And OriginalType <> "3") And (note.Chair(0) = Owner) Then Call CreateInviteeTable(note)
  10649.      
  10650. '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
  10651.      If AlarmSet = 0 And note.HasItem("$Alarm") Then
  10652.           Call note.RemoveItem("$Alarm")
  10653.      End If
  10654. 'If $Alarm is not set and $AlarmOffset is not, we check if it should be     
  10655. '(they would both be set if the user set the alarm manually)     
  10656.      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
  10657.           Select Case note.AppointmentType(0)
  10658.           Case "0","3"
  10659.                If profile.SetAlarmAppointment(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  10660.           Case "1"
  10661.                If profile.SetAlarmAnniversary(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  10662.           Case "2"
  10663.                If profile.SetAlarmEvent(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  10664.           Case "4"
  10665.                If (profile.SetAlarmReminder(0)) = "1" Then Call note.ReplaceItemValue("$Alarm",1)
  10666.           End Select
  10667.      End If
  10668.      
  10669. 'tmpFreeTime is set when you click the FreeTime action
  10670.      Select Case note.tmpFreeTime(0)
  10671. 'The first time through, we are only setting the Attendee list so that the FreeTime dialog can use it          
  10672.      Case "0"
  10673.           OriginalTimeRange = note.TimeRange
  10674.           note.tmpFreeTime = "1"
  10675. 'we need to get the actual text from the time control since LotusScript date/time objects don't work as well as Notes objects
  10676.           trdr.Text = uidoc.FieldGetText("TimeRange") 
  10677.           Set startdt = New NotesDatetime(uidoc.FieldGetText("StartDate") & " " & trdr.StartDateTime.TimeOnly)
  10678.           Set enddt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " " & trdr.EndDateTime.TimeOnly)
  10679.           Set note.StartDateTime = startdt
  10680.           Set note.EndDateTime = enddt
  10681.           note.StartDate = note.StartDateTime          
  10682. 'The second time through, we are recalcing TimeRange from StartDateTime and EndDateTime
  10683.      Case "1"
  10684.           note.RemoveItem("tmpFreeTime")     
  10685.           Set startitem = note.GetFirstItem("StartDateTime")
  10686.           Set enditem = note.GetFirstItem("EndDateTime")
  10687.           Set note.StartDate = startitem.DateTimeValue
  10688.           Set trdr.StartDateTime = startitem.DateTimeValue
  10689.           Set trdr.EndDateTime = enditem.DateTimeValue
  10690.           Set note.TimeRange = trdr
  10691. 'otherwise we are recalcing based on what is on the screen          
  10692.      Case Else
  10693.           If (note.AppointmentType(0) = "0") Or (note.AppointmentType(0) = "3") Then
  10694. 'this is a personal appointment or a meeting               
  10695.                trdr.Text = uidoc.FieldGetText("TimeRange") 
  10696.                Set startdt = New NotesDatetime(uidoc.FieldGetText("StartDate") & " " & trdr.StartDateTime.TimeOnly)
  10697.                Set enddt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " " & trdr.EndDateTime.TimeOnly)
  10698.                Set note.StartDateTime = startdt
  10699.                Set note.EndDateTime = enddt
  10700.                Set note.StartDate = startdt               
  10701.                Set trdr.StartDateTime = startdt
  10702.                Set trdr.EndDateTime = enddt
  10703.                Set note.TimeRange = trdr
  10704.                If startdt.TimeDifference(enddt) > 0 Then
  10705.                     Call enddt.AdjustDay(1, True)
  10706.                     Set note.EndDateTime = enddt
  10707.                End If
  10708.                Call note.ReplaceItemValue("$NoPurge",note.EndDateTime(0))
  10709.           Elseif (note.AppointmentType(0) = "4") Then
  10710. 'this is a reminder               
  10711.                Set remdt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " " & uidoc.FieldGetText("ReminderTime"))
  10712.                Set note.StartDateTime = remdt
  10713.                note.ReminderTime = note.StartDateTime
  10714.                note.StartDate = note.StartDateTime
  10715.                Call note.RemoveItem("EndDateTime")
  10716.                Call note.RemoveItem("TimeRange")
  10717.                Call note.ReplaceItemValue("$NoPurge",note.StartDateTime(0))
  10718.           Else
  10719.                Set Intl = session.INternational
  10720.                Set startdt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " 00" & Intl.Timesep & "00" & Intl.Timesep & "01")
  10721.                Set note.StartDateTime = startdt
  10722.                Call TIMEGetNotesFromLS(note.GetITemValue("StartDateTime")(0), enddt)          
  10723.                'If note.Duration(0) > 1 Then enddt.AdjustDay(note.Duration(0) - 1)
  10724.                Call enddt.AdjustDay(note.Duration(0) - 1, True)
  10725.                Call enddt.AdjustHour(23, True)
  10726.                Call enddt.AdjustMinute(59, True)
  10727.                Set note.EndDateTime = enddt
  10728.                Call note.ReplaceItemValue("$NoPurge",note.EndDateTime(0))
  10729.           End If
  10730.      End Select
  10731.      
  10732. 'Reminder's should always have a $BusyPriority of 2
  10733.      If (note.AppointmentType(0) = "4") Or (note.BookFreeTime(0) = "1") Then
  10734.           Call note.ReplaceItemValue("$BusyPriority","2")
  10735.      Else
  10736.           Call note.ReplaceItemValue("$BusyPriority","1")               
  10737.      End If
  10738. 'if this is a main repeat document, remove the $BusyName
  10739.      If (note.HasItem("RepeatFor"))Then
  10740.           Call note.removeItem("$BusyName")          
  10741.      Else 
  10742.           Call note.replaceItemValue("$BusyName",Owner)
  10743.      End If
  10744.      note.CalendarDateTime = note.StartDateTime     
  10745. 'add the correct icon to the view, as well as the conflict checking value
  10746.      Select Case note.AppointmentType(0)
  10747.      Case "0" 
  10748.           Call note.ReplaceItemValue("_ViewIcon",160)
  10749.           note.OrgDontDoubleBook = profile.ConflictMeeting(0)
  10750.           note.OrgTable = ORS_ITEM_CALENDAR
  10751.      Case "1" 
  10752.           Call note.ReplaceItemValue("_ViewIcon",63)
  10753.           note.OrgDontDoubleBook = profile.ConflictAnniv(0)
  10754.           note.OrgTable = ORS_ITEM_ANNIVERSARY
  10755.      Case "2" 
  10756.           Call note.ReplaceItemValue("_ViewIcon",9)
  10757.           note.OrgDontDoubleBook = profile.ConflictEvent(0)
  10758.           note.OrgTable = ORS_ITEM_PLANNER          
  10759.      Case "3" 
  10760.           Call note.ReplaceItemValue("_ViewIcon",158)
  10761.           note.OrgDontDoubleBook = profile.ConflictMeeting(0)
  10762.           note.OrgTable = ORS_ITEM_CALENDAR
  10763.           If Not(note.HasItem("SequenceNum")) Then note.SequenceNum = 1          
  10764.      Case "4" 
  10765.           Call note.ReplaceItemValue("_ViewIcon",10)          
  10766.           note.OrgDontDoubleBook = ""
  10767.           note.OrgTable = ORS_ITEM_CALENDAR
  10768.           note.BookFreeTime = "1"
  10769.      End Select
  10770. 'if this is a meeting and the owner != chair, ensure that this is a meeting
  10771.      If (note.HasItem("Chair")) Then
  10772.           If (note.chair(0) <> Owner) Then note.AppointmentType = "3"
  10773.      End If
  10774.      
  10775.      'add the $PublicAccess item if this is a public document
  10776.      If (note.OrgConfidential(0) <> "1") Then 
  10777.           If Not (note.HasItem("$PublicAccess")) Then Call note.ReplaceItemValue("$PublicAccess","1")
  10778.      Else
  10779.           If (note.HasItem("$PublicAccess")) Then Call note.RemoveItem("$PublicAccess")
  10780.      End If
  10781.      
  10782.      Call source.Reload
  10783.      Call source.RefreshHideFormulas
  10784.      Exit Sub
  10785.      
  10786. ErrorRoutine:
  10787.      Messagebox Error & " (PostRecalc)"
  10788.      Exit Sub
  10789.      
  10790.      
  10791. End Sub
  10792. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  10793. Sub Postmodechange(Source As Notesuidocument)
  10794. 'If they have put it in edit mode, we want to save the original values     
  10795.      If Not(source.InPreviewPane) Then If source.EditMode And note.HasItem("OrgRepeat") Then Call SaveOriginalValues
  10796. End Sub
  10797. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  10798. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  10799. 'if the document is in the preview pane, editing is not allowed
  10800.      If (source.InPreviewPane) Then
  10801.           Continue = False
  10802.      Else
  10803.           If note.HasItem("RepeatIds") And Not(source.EditMode) Then continue = False          
  10804.      End If
  10805. End Sub
  10806. #x#x#
  10807. #@    t$(
  10808. K@    ,P    
  10809. K@    -(
  10810. [@    K(
  10811. K@    ,`
  10812. K@    -(
  10813. K@    ,P    K
  10814. !}$##
  10815. !}$##
  10816. }0$#85
  10817. }\%#8
  10818. &}D&#
  10819. K@    ,P    J
  10820. KP%-\
  10821. KP%-\
  10822. K`%-\
  10823. *}T    #1
  10824. QT&}<+
  10825. }d(#8
  10826.     Hidden Fields: 
  10827. AppointmentType
  10828.     0S0E
  10829. tmpRealDate
  10830.     0S0E
  10831. tmpRealDate
  10832. The invitation from 
  10833. chair
  10834.  for 
  10835. tmpRealDate
  10836. S0D0V
  10837. tmpRealTime
  10838. S1T1V
  10839.  has been confirmed."
  10840.     8S15S16S17S18S24S25S26S27S33S34S
  10841. tmpConfirmMsg
  10842. $AlarmY
  10843.     0S0E
  10844. TimeDisp
  10845. $AlarmTimeh
  10846. $AlarmTime
  10847. $AlarmOffseth
  10848. $AlarmOffsetA
  10849.  minutes 
  10850. $AlarmOffset
  10851. before
  10852. after
  10853.  the start time of this entry."
  10854.     1S2S10S11S25S32S33S34S35S38S39S43S45S46S
  10855. TimeDisp
  10856. Alarm enabled: an alarm will occur 
  10857. TimeDisp"
  10858.     0R3S4S6S7S8S
  10859. tmpAlarmDisplay
  10860. Calendar Entry
  10861. AppointmentType
  10862. tmpOwner
  10863. Chair
  10864.     1S2S3S2E4S5S6S
  10865. AppointmentType
  10866.     2S3S5S6S8S9S10S11S12S13S14S15S
  10867.     Duration (days):
  10868.     Brief description:
  10869.     Date:
  10870. AppointmentType
  10871.     1S2S3S4S
  10872.     Time:
  10873. CalendarProfile
  10874. CalEntryType
  10875.     1S2S
  10876.     0R3S4S5S6S7S8S
  10877. AppointmentType
  10878. Appointment|0Invitation|3Event|2Reminder|4Anniversary|1
  10879. AppointmentType
  10880. Duration
  10881. You must enter a duration of at least 1 day.{
  10882.     3S4S5S6S7S8S10SDuration
  10883. AppointmentType
  10884.     1S2S5S6S7S
  10885. StartDateTime
  10886.     0S0E
  10887. AppointmentType
  10888. ReminderTime
  10889. You must enter a valid Time for this entry.
  10890.     3S4S9S10S11S12S20S
  10891. ReminderTime
  10892. SubjectEnter a brief description for this entry (i.e < 100 characters).
  10893. StartDateTime
  10894.     4S6S
  10895. newDateTime
  10896.     0RR1S2S
  10897. minutes
  10898. newDateTime
  10899.     0R1S2S
  10900. seconds
  10901. newDateTime
  10902.     0R1S2S3S4S
  10903. adjust time to the next 15 minute interval
  10904.     0RR1S
  10905. StartDateTime
  10906. minutes
  10907. newDateTime
  10908. minutes
  10909. seconds
  10910. minutes
  10911. newDateTime
  10912. minutes
  10913. seconds
  10914. minutes
  10915. newDateTime
  10916. minutes
  10917. seconds
  10918. minutes
  10919. newDateTime
  10920. minutes
  10921. seconds
  10922. newDateTime
  10923. seconds
  10924.     0R1S2S3S6S7S9S13S15S17S19S21S22S23S25S28S29S30S32S36S38S40S42S44S45S46S48S51S52S53S55S59S61S63S65S67S68S69S71S74S75S76S78S82S84S86S88S90S91S92S94S97S101S103S105S107S109S111S
  10925. MinuteDur
  10926. CalendarProfile
  10927. DefaultDuration
  10928.     0RR1S2S6S
  10929. MinuteDuration
  10930. MinuteDur
  10931. MinuteDur
  10932. MinuteDur
  10933.     0R1S2S4S6S7S9S10S12S13S16S17S18S
  10934. EndDateTime
  10935. StartDateTime
  10936. MinuteDuration
  10937.     0RR1S2S3S7S9S11S13S15S17S
  10938. StartDateTime
  10939.     0RRL
  10940. StartDate
  10941. StartDate
  10942.     3S4S5S6S
  10943. StartDate
  10944. You must enter a valid Start Date for this entry.
  10945.     3S4S5S6S
  10946. StartDate
  10947. AppointmentType
  10948.     1S2S3S4S5S
  10949. StartDateTime
  10950. EndDateTime
  10951.     6S7S8S9S
  10952. AppointmentType
  10953. TimeRange
  10954. You must enter a valid Time Range for this entry.
  10955.     3S4S11S12S13S14S22STimeRange
  10956. AppointmentType
  10957.     1S2S
  10958. tmpApptFlags
  10959. AppointmentType
  10960. tmpApptFlagsY
  10961. AppointmentType
  10962. BookFreeTime
  10963.     3S4S5S6S15S16S17S18S19S
  10964. tmpApptFlags
  10965. AppointmentType
  10966.     0R1S2S3S
  10967. BookFreeTime
  10968. Pencil in|1
  10969. CalendarProfile
  10970. CalEntryHide
  10971.     0S0E
  10972. OrgConfidential
  10973. Not for public viewing|1
  10974.     Detailed description:
  10975. AppointmentType
  10976.     1S2S
  10977. AppointmentType
  10978. tmpOwner
  10979. Chair
  10980.     1S2S3S2E4S5S6S7S8S
  10981.  @  @@ @` @
  10982. @@ @@@@@`@@
  10983. `@ `@@`@``@
  10984.  Invitations
  10985.     Send invitations to:    
  10986. SendTo
  10987. SendTo
  10988. Principal
  10989.     1S2S10S
  10990. SendTo}
  10991. SendToEnter the names of people who you want to send invitations to.
  10992.     Optional invitees:    
  10993. CopyTo
  10994. CopyTo
  10995. Principal
  10996.     1S2S8S10S
  10997. CopyTo}
  10998. CopyToOptional invitees receive invitations but are not required to attend the meeting.
  10999. Broadcast
  11000. I don't want responses from the Invitees|1
  11001. tmpFreeTime
  11002.     1S2S3S
  11003. tmpApptFlags
  11004. AppointmentType
  11005.     0R1S2S3S
  11006. tmpOwner2
  11007. tmpOwner
  11008.     0R1S2S3S
  11009. tmpOwner2
  11010. SendTo
  11011. RequiredAttendees
  11012. CopyTo
  11013. OptionalAttendees
  11014. Resources
  11015. RequiredResources
  11016. Uninvited
  11017. StartDateTime
  11018. EndDateTime
  11019. tmpOwner2
  11020.     0R1S2S3S
  11021.     Find Free Time...
  11022. AppointmentType
  11023. RequiredAttendees
  11024.     1S2S3S4S8S9S
  11025.     Invitations have been sent to:    
  11026. RequiredAttendees
  11027.     0S0E
  11028. tmpSendTo
  11029. AppointmentType
  11030. OptionalAttendees
  11031.     1S2S3S4S8S9S
  11032.     Optional invitees:
  11033. OptionalAttendees
  11034.     0S0E
  11035. tmpCopyTo
  11036. AppointmentType
  11037.     1S2S3S4S5S6S
  11038.     Meeting location:    
  11039. tmpRoom
  11040. AppointmentType
  11041. tmpOwner
  11042. Chair
  11043.     1S2S3S4S5S6S7S8S
  11044. Reservations
  11045.  @  @@ @` @
  11046. @@ @@@@@`@@
  11047. `@ `@@`@``@
  11048. Reservations
  11049. HomeServer
  11050.     1S2S
  11051. HomeServer
  11052. Invalid Home Server
  11053. Please edit your current location document and specify a home/mail server.
  11054.     0R3S4S5S6S12S13S14S
  11055. RoomAvailable
  11056. HomeServer
  11057. names.nsf
  11058. ($Rooms)
  11059. Select a room to reserve for this meeting.
  11060.     0R1S2S
  11061. RoomAvailable
  11062. RoomAvailable
  11063.     0RR1S2S3S10S11S
  11064. RoomAvailable
  11065. Error
  11066. RoomAvailable
  11067.     0R6S7S18S19S
  11068. RoomToReserve
  11069.     0R1S2S3S
  11070. RoomRequired
  11071.     0R1S2S3S
  11072. RoomSpecific
  11073.     0R1S2S3S
  11074. RoomAvailable
  11075.     0R1S2S3S
  11076.     Reserve Specific Room...
  11077.     - or -
  11078. HomeServer
  11079.     1S2S
  11080. HomeServer
  11081. Invalid Home Server
  11082. Please edit your current location document and specify a home/mail server.
  11083.     0R3S4S5S6S12S13S14S
  11084. Sites
  11085. HomeServer
  11086. names.nsf
  11087. ($Rooms)
  11088.     0R1S2S
  11089. Select the site to search for a room.
  11090. Sites
  11091.     0R1S2S7S8S
  11092. Invalid Selection
  11093. You didn't select a site.
  11094.     0R3S4S5S6S14S15S
  11095. SiteKey
  11096. CN=*/O=
  11097. Site"
  11098.     0R1S2S3S4S
  11099. Capacity
  11100. SendTo
  11101. CopyTo
  11102. RequiredAttendees
  11103. OptionalAttendees
  11104.     0R1S2S
  11105. RoomAvailable
  11106. SiteKey
  11107. StartDateTime
  11108. EndDateTime
  11109. Capacity
  11110.     0R1S2S
  11111. RoomAvailable
  11112. No Room Found
  11113. No room was found during the specified time.
  11114.     0R3S4S5S6S11S12S14S15S
  11115. RoomAvailable
  11116. RoomAvailable
  11117.     0RRR1S2S3S10S11S
  11118. RoomAvailable
  11119. Error
  11120. RoomAvailable
  11121.     0R6S7S18S19S
  11122. RoomToReserve
  11123.     0R1S2S3S
  11124. RoomRequired
  11125.     0R1S2S3S
  11126. RoomAvailable
  11127.     0R1S2S3S
  11128. RoomSpecific
  11129.     0R1S2S3S
  11130.     Find Available Room...
  11131. tmpRoom1
  11132. HomeServer
  11133.     1S2S
  11134. HomeServer
  11135. Invalid Home Server
  11136. Please edit your current location document and specify a home/mail server.
  11137.     0R3S4S5S6S12S13S14S
  11138. NewResources
  11139. HomeServer
  11140. names.nsf
  11141. ($Resources)
  11142. Resources
  11143. Select resources to reserve for this meeting.
  11144.     0R1S2S
  11145. NewResourcesZ
  11146. Error
  11147. NewResourcesV
  11148.     0R6S7S18S19S
  11149. Resources
  11150. NewResources
  11151. Resources
  11152. RequiredResources
  11153.     0R1S2S3S
  11154.     Reserve Resources...      
  11155. Resources
  11156. RequiredResources
  11157.     0S0E
  11158. tmpResources
  11159. AppointmentType
  11160.     1S2S
  11161.     _________________________________________________________________________
  11162. chair
  11163.     1S2S
  11164.     Chairperson:    
  11165. Chair
  11166. tmpChairperson
  11167. AppointmentType
  11168. Principal
  11169.     1S2S3S4S5S6S7S8S
  11170.     Sent by:    
  11171. Principal
  11172. Principal
  11173.     3S4S
  11174. tmpSentBy
  11175. AppointmentType
  11176. tmpOwner
  11177. Chair
  11178. OrgRepeat
  11179. Broadcast
  11180. RequiredResources
  11181. RoomRequired
  11182. tmpNewDoc
  11183.     1S2S3S4S5S2E6S7S8S9S10S16S17S18S19S21S22S23S24S25S26S27S28S30S31S
  11184. '++LotusScript Development Environment:2:5:(Options):0:66
  11185. '++LotusScript Development Environment:2:5:(Forward):0:1
  11186. Declare Sub Click(Source As Button)
  11187. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11188. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11189. Private Sub BindEvents(Byval Objectname_ As String)
  11190.      Static Source As BUTTON
  11191.      Set Source = Bind(Objectname_)
  11192.      On Event Click From Source Call Click
  11193. End Sub
  11194. '++LotusScript Development Environment:2:2:Click:1:12
  11195. Sub Click(Source As Button)
  11196.      
  11197.      Dim dispnote As NotesDocument
  11198.      
  11199.      
  11200.      If Not(HasInviteeInfo) Then 
  11201.           If (note.HasItem("OrgRepeat") And (note.IsResponse)) Then          
  11202.                Call GetInviteeStatus(parentnote,False)
  11203.                Call GetInviteeStatus(note,True)
  11204.           Else
  11205.                Call GetInviteeStatus(note,False)
  11206.           End If
  11207.      End If
  11208.      
  11209.      If Not(HasBeenProcessed) Then Call ProcessInviteeTable(note)
  11210.      
  11211.      Set dispnote = New NotesDocument(db)
  11212.      dispnote.tmpAccepted = UsersAccepted
  11213.      dispnote.tmpDeclined = UsersDeclined
  11214.      dispnote.tmpDelegated = UsersDelegated
  11215.      dispnote.tmpCounter = UsersCountered     
  11216.      dispnote.tmpDelegee = Delegees
  11217.      dispnote.tmpUninvited = note.Uninvited
  11218.      dispnote.tmpWaiting = UsersWaiting
  11219.      dispnote.tmpResAccepted = ResourcesReserved
  11220.      dispnote.tmpResDeclined = ResourcesDeclined
  11221.      dispnote.tmpResWaiting = ResourcesWaiting
  11222.      dispnote.SequenceNum = note.SequenceNum
  11223.      dispnote.Subject = note.Subject
  11224.      dispnote.Room = note.Room
  11225.      dispnote.Broadcast = note.Broadcast
  11226.      dispnote.StartDate = note.StartDate
  11227.      dispnote.StartDateTime = note.StartDateTime
  11228.      dispnote.EndDateTime = note.EndDateTime
  11229.      dispnote.requiredattendees = note.requiredattendees
  11230.      dispnote.optionalattendees = note.optionalattendees
  11231.      dispnote.RealDocUNID = note.UniversalID
  11232.      dispnote.NoticeType = note.NoticeType
  11233.      
  11234.      Call ws.DialogBox("(InviteeResponses)",False,False,True,,True,,"Invitee Responses",dispnote)    
  11235. End Sub
  11236. New Button
  11237. Need a newer version of Notes to execute this button.
  11238.     0S0E
  11239.     Display invitee responses...
  11240. AppointmentType
  11241. tmpOwner
  11242. Chair
  11243.     1S2S3S4S5S6S
  11244. RepeatIDs
  11245.     0S0E
  11246. Repeating meeting information:
  11247. RepeatUnit
  11248.     1S2S
  11249.     This meeting repeats 
  11250. RepeatInterval
  11251. tmpRepeatInterval
  11252. 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
  11253. RepeatUnit
  11254. tmpRepeatUnit
  11255. day|Dweek|Wmonth|MDmonth|MPyear|YDcustom|C
  11256. RepeatAdjust
  11257. tmpRepeatAdjust
  11258. RepeatUnit
  11259.  on Sunday|0
  11260.  on Monday|1
  11261.  on Tuesday|2
  11262.  on Wednesday|3
  11263.  on Thursday|4
  11264.  on Friday|5
  11265.  on Saturday|6
  11266. RepeatUnit
  11267.  on the 1st Sunday|1.0
  11268.  on the 1st Monday|1.1
  11269.  on the 1st Tuesday|1.2
  11270.  on the 1st Wednesday|1.3
  11271.  on the 1st Thursday|1.4
  11272.  on the 1st Friday|1.5
  11273.  on the 1st Saturday|1.6
  11274.  on the 2nd Sunday|2.0
  11275.  on the 2nd Monday|2.1
  11276.  on the 2nd Tuesday|2.2
  11277.  on the 2nd Wednesday|2.3
  11278.  on the 2nd Thursday|2.4
  11279.  on the 2nd Friday|2.5
  11280.  on the 2nd Saturday|2.6
  11281.  on the 3rd Sunday|3.0
  11282.  on the 3rd Monday|3.1
  11283.  on the 3rd Tuesday|3.2
  11284.  on the 3rd Wednesday|3.3
  11285.  on the 3rd Thursday|3.4
  11286.  on the 3rd Friday|3.5
  11287.  on the 3rd Saturday|3.6
  11288.  on the 4th Sunday|4.0
  11289.  on the 4th Monday|4.1
  11290.  on the 4th Tuesday|4.2
  11291.  on the 4th Wednesday|4.3
  11292.  on the 4th Thursday|4.4
  11293.  on the 4th Friday|4.5
  11294.  on the 4th Saturday|4.6
  11295.  on the Last Sunday|5.0
  11296.  on the Last Monday|5.1
  11297.  on the Last Tuesday|5.2
  11298.  on the Last Wednesday|5.3
  11299.  on the Last Thursday|5.4
  11300.  on the Last Friday|5.5
  11301.  on the Last Saturday|5.6
  11302. RepeatUnit
  11303.  on the 1st day|1
  11304.  on the 2nd day|2
  11305.  on the 3rd day|3
  11306.  on the 4th day|4
  11307.  on the 5th day|5
  11308.  on the 6th day|6
  11309.  on the 7th day|7
  11310.  on the 8th day|8
  11311.  on the 9th day|9
  11312.  on the 10th day|10
  11313.  on the 11th day|11
  11314.  on the 12th day|12
  11315.  on the 13th day|13
  11316.  on the 14th day|14
  11317.  on the 15th day|15
  11318.  on the 16th day|16
  11319.  on the 17th day|17
  11320.  on the 18th day|18
  11321.  on the 19th day|19
  11322.  on the 20th day|20
  11323.  on the 21st day|21
  11324.  on the 22nd day|22
  11325.  on the 23rd day|23
  11326.  on the 24th day|24
  11327.  on the 25th day|25
  11328.  on the 26th day|26
  11329.  on the 27th day|27
  11330.  on the 28th day|28
  11331.  on the 29th day|29
  11332.  on the 30th day|30
  11333.  on the 31st day|31
  11334.     3S4S6R8R10R12R14R16R18R20RS5E21S22S24R26R28R30R32R34R36R38R40R42R44R46R48R50R52R54R56R58R60R62R64R66R68R70R72R74R76R78R80R82R84R86R88R90R92R94RS5E95S96S98R100R102R104R106R108R110R112R114R116R118R120R122R124R126R128R130R132R134R136R138R140R142R144R146R148R150R152R154R156R158R160S
  11335.      starting on 
  11336. RepeatStartDate
  11337. tmpRepeatStartDate
  11338. RepeatHow
  11339. tmpRepeatHow
  11340. until|Ufor|F
  11341. RepeatFor
  11342. tmpRepeatUnit
  11343.     7S9S
  11344. RepeatHow
  11345. RepeatUntil
  11346. RepeatFor
  11347. RepeatForUnit
  11348. RepeatFor
  11349. RepeatForUnit
  11350. RepeatFor
  11351. RepeatForUnit
  11352. RepeatFor
  11353. month
  11354. RepeatForUnit
  11355. RepeatFor
  11356. RepeatFor
  11357. RepeatForUnit
  11358. RepeatFor
  11359. RepeatForUnit
  11360. weeks
  11361. RepeatFor
  11362. RepeatForUnit
  11363. months
  11364. RepeatFor
  11365. RepeatForUnit
  11366. years
  11367.     0R3S4S6S10S13S17S18S19S20S23S24S25S26S27S28S30S32S33S34S35S36S37S38S40S42S43S44S45S46S47S48S50S52S53S54S55S56S57S58S60S62S64S65S68S69S70S71S72S73S75S77S78S79S80S81S82S83S85S87S88S89S90S91S92S93S95S97S98S99S100S101S102S103S105S107S
  11368. tmpRepeatUntil
  11369. RepeatUnit
  11370.  (if the date occurs on a weekend the meeting 
  11371. RepeatWeekends
  11372. occurs anyway
  11373. RepeatWeekends
  11374. is moved to Friday
  11375. RepeatWeekends
  11376. is moved to Monday
  11377. RepeatWeekends
  11378. is moved to Nearest Weekday
  11379. RepeatWeekends
  11380. is deleted
  11381.     3S4S5S6S7S8S10S12S13S14R17S18S20S22S23S24S26S28S29S30S32S34S35S36S38S40S41S42S44S46S48S49S
  11382. tmpRepeatWeekends
  11383. RepeatIds
  11384.     0S0E
  11385.     Meeting Dates: 
  11386. RepeatDates
  11387. tmpRepeatDates
  11388. RepeatDates
  11389.     0S0E
  11390. IncludeComment
  11391.     1S2S
  11392.     My comments:
  11393. Comments
  11394. tmpComments
  11395. _ViewIcon
  11396.     Hidden:
  11397. Appointment
  11398. $ExpandGroups
  11399. Edit Document
  11400. Attendees
  11401. Principal
  11402. RepeatIds
  11403.     4S5S6S7R11S12S13S14S15S17S18S
  11404. _Forward
  11405. _Move to Folder...
  11406. Delivery Information...Kz
  11407. DeliveryInfo
  11408. Delivery Information
  11409.     4S5S6S7S8S9S10S12S
  11410. Close
  11411.     0S0E
  11412. Save and Close@
  11413.     0S7S12S|
  11414. Attendees
  11415. Principal
  11416. RepeatIds
  11417.     4S5S6S7R11S12S13S14S15S17S18S
  11418. _Edit Document
  11419. Attendees
  11420. Principal
  11421. RepeatIds
  11422.     4S5S6S7R11S12S13S14S15S17S18S
  11423. Remove\Invitees...'++LotusScript Development Environment:2:5:(Options):0:66
  11424. '++LotusScript Development Environment:2:5:(Forward):0:1
  11425. Declare Sub Click(Source As Button)
  11426. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11427. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11428. Private Sub BindEvents(Byval Objectname_ As String)
  11429.      Static Source As BUTTON
  11430.      Set Source = Bind(Objectname_)
  11431.      On Event Click From Source Call Click
  11432. End Sub
  11433. '++LotusScript Development Environment:2:2:Click:1:12
  11434. Sub Click(Source As Button)
  11435.      SelectUserToRemove
  11436. End Sub
  11437. AppointmentType
  11438. Principal
  11439. tmpOwner
  11440. OrgRepeat
  11441. NoticeType
  11442. tmpNewDoc
  11443.     1S2S3S4R5S6S7S8S9S2E10S14S15S16S17S18S19S
  11444. Remove\Rooms & Resources...K'++LotusScript Development Environment:2:5:(Options):0:66
  11445. '++LotusScript Development Environment:2:5:(Forward):0:1
  11446. Declare Sub Click(Source As Button)
  11447. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11448. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11449. Private Sub BindEvents(Byval Objectname_ As String)
  11450.      Static Source As BUTTON
  11451.      Set Source = Bind(Objectname_)
  11452.      On Event Click From Source Call Click
  11453. End Sub
  11454. '++LotusScript Development Environment:2:2:Click:1:12
  11455. Sub Click(Source As Button)
  11456.      Call SelectResourcesToRemove
  11457. End Sub
  11458. AppointmentType
  11459. Principal
  11460. tmpOwner
  11461. OrgRepeat
  11462. RequiredResources
  11463. NoticeType
  11464. tmpNewDoc
  11465.     1S2S3S4R5S6S7S8S9S2E10S14S15S17S18S19S20S21S22S24S25S26S27S28S29S
  11466. Send|
  11467. you can't send if there is no SendTo field
  11468. SendTo
  11469. CopyTo
  11470. No SendTo
  11471. You must enter at least one name in the Required or Optional Attendees field.
  11472.     0R7S8S11S12S14S20S22S26S
  11473. if it is a new doc, we need to save before sending in order to send the Body field
  11474.     0RR1S
  11475. this should only happen on @IsNewDoc - doing it always in order to coordinate with subform (should use db lib)
  11476.     0R1S
  11477. tmpAction
  11478. SaveBody
  11479.     0R1S2S3S
  11480. @If(@IsNewDoc; @Command([FileSave]);  ......  );
  11481.     0R1S
  11482. OrgPersonal
  11483. Personal Document
  11484. You cannot sent a personal document.
  11485.     0RR3S4S6S12S14S18S
  11486. tmpAction
  11487.     0RR1S2S3S
  11488.     0R7S12S
  11489. AppointmentType
  11490. PostedDateh
  11491. Principal
  11492. tmpOwner
  11493. RepeatIds
  11494.     1S2S3S4S9S10R11S12S14S15S
  11495. Repeat...
  11496. '++LotusScript Development Environment:2:5:(Options):0:66
  11497. '++LotusScript Development Environment:2:5:(Forward):0:1
  11498. Declare Sub Click(Source As Button)
  11499. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11500. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11501. Private Sub BindEvents(Byval Objectname_ As String)
  11502.      Static Source As BUTTON
  11503.      Set Source = Bind(Objectname_)
  11504.      On Event Click From Source Call Click
  11505. End Sub
  11506. '++LotusScript Development Environment:2:2:Click:1:12
  11507. Sub Click(Source As Button)
  11508.      'the refresh is temporary - until the date/time fields get fixed     
  11509.      uidoc.Refresh
  11510.      
  11511.      If ws.DialogBox("(RepeatForm)", True, True, False, False, False, False, "Repeat Rules") = False Then Exit Sub
  11512.      
  11513.      Select Case note.RepeatUnit(0)
  11514.      Case "D"
  11515.           note.RepeatInterval = note.RepeatInterval_D
  11516.      Case "W"
  11517.           note.RepeatInterval = note.RepeatInterval_W
  11518.           note.RepeatAdjust = note.RepeatAdjust_W
  11519.      Case "MD"
  11520.           note.RepeatInterval = note.RepeatInterval_MDMP
  11521.           note.RepeatAdjust = note.RepeatAdjust_MD
  11522.      Case "MP"
  11523.           note.RepeatInterval = note.RepeatInterval_MDMP
  11524.           note.RepeatAdjust = note.RepeatAdjust_MP
  11525.      Case "YD"
  11526.           note.RepeatInterval = note.RepeatInterval_YD
  11527.      Case "C"
  11528.           note.RepeatDates = note.RepeatAdjust_C
  11529.      End Select
  11530.      
  11531.      note.RemoveItem("RepeatInterval_D")
  11532.      note.RemoveItem("RepeatInterval_W")
  11533.      note.RemoveItem("RepeatInterval_MDMP")
  11534.      note.RemoveItem("RepeatInterval_YD")
  11535.      note.RemoveItem("RepeatAdjust_W")
  11536.      note.RemoveItem("RepeatAdjust_MD")
  11537.      note.RemoveItem("RepeatAdjust_MP")
  11538.      note.RemoveItem("RepeatAdjust_C")
  11539.      note.StartDate = note.RepeatStartDate
  11540.      uidoc.Reload
  11541. End Sub
  11542. tmpNewDoc
  11543.     2S3S
  11544. Alarm options...'++LotusScript Development Environment:2:5:(Options):0:66
  11545. '++LotusScript Development Environment:2:5:(Forward):0:1
  11546. Declare Sub Click(Source As Button)
  11547. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11548. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11549. Private Sub BindEvents(Byval Objectname_ As String)
  11550.      Static Source As BUTTON
  11551.      Set Source = Bind(Objectname_)
  11552.      On Event Click From Source Call Click
  11553. End Sub
  11554. '++LotusScript Development Environment:2:2:Click:1:12
  11555. Sub Click(Source As Button)
  11556.      Dim dateitem As NotesItem
  11557.      Dim timeitem As NotesItem
  11558.      
  11559.    'this causes the StartDateTime field to get rebuilt     
  11560.      note.tmpFreeTime = "2"
  11561.      uidoc.Refresh
  11562.      note.RemoveItem("tmpFreeTime")
  11563.      uidoc.Reload
  11564.      If profile.EnableAlarms(0) <> "1" Then
  11565.           Dim boxType As Long
  11566.           boxType& = MB_YESNO + MB_ICONQUESTION
  11567.           If Messagebox("You have not enabled alarms in your Calendar Profile.  Do you want to enable them now?", boxType&, "Enable Alarms?") = 6 Then
  11568.                ws.EnableAlarms(True)
  11569.                Call profile.ReplaceItemValue("EnableAlarms", "1")
  11570.                Call profile.Save(True,True,True)
  11571.           Else
  11572.                Exit Sub
  11573.           End If
  11574.      End If
  11575.      
  11576.      If ws.DialogBox("(AlarmDialog)", True, True, False, False, False, False, "Set Alarm") = False Then Exit Sub
  11577.      
  11578.      If note.tmpAlarmOff(0) = "1" Then
  11579.           note.RemoveItem("$Alarm")
  11580.           note.RemoveItem("$AlarmOffset")
  11581.           note.RemoveItem("$AlarmTime")
  11582.      Else
  11583.           Call note.ReplaceItemValue("$Alarm", 1)
  11584.           AlarmSet = 1
  11585.           If note.AppointmentType(0) = "0" Or note.AppointmentType(0) = "3" Then
  11586.                Select Case note.tmpBeforeOrAfter(0)
  11587.                Case "1"
  11588.                     Call note.ReplaceItemValue("$AlarmOffset", Cint(note.tmpAlarmOffset(0)) * -1)
  11589.                     Call note.RemoveItem("$AlarmTime")
  11590.                Case "2"
  11591.                     Call note.ReplaceItemValue("$AlarmOffset", Cint(note.tmpAlarmOffset(0)))
  11592.                     Call note.RemoveItem("$AlarmTime")
  11593.                Case "3"
  11594.                     note.RemoveItem("$AlarmOffset")
  11595.                     Set dateitem = note.GetFirstItem("tmpAlarmOnDate")
  11596.                     Set timeitem = note.GetFirstItem("tmpAlarmOnTime")
  11597.                     Set AlarmTime = New NotesDateTime(dateitem.DateTimeValue.DateOnly & " " & timeitem.DateTimeValue.TimeOnly)
  11598.                     Call note.ReplaceItemValue("$AlarmTime", AlarmTime.LSLocalTime)
  11599.                End Select
  11600.           Else
  11601.                note.RemoveItem("$AlarmOffset")
  11602.                Set dateitem = note.GetFirstItem("tmpAlarmOnDate")
  11603.                Set timeitem = note.GetFirstItem("tmpAlarmOnTime")
  11604.                Set AlarmTime = New NotesDateTime(dateitem.DateTimeValue.DateOnly & " " & timeitem.DateTimeValue.TimeOnly)
  11605.                Call note.ReplaceItemValue("$AlarmTime", AlarmTime.LSLocalTime)
  11606.           End If
  11607.      End If
  11608.      
  11609.      uidoc.Refresh
  11610. End Sub
  11611. Send Confirmation
  11612. tmpAction
  11613. Confirm
  11614.     0R1S2S3S
  11615.     0R7S12S
  11616. AppointmentType
  11617. Chair
  11618. tmpOwner
  11619. RepeatIds
  11620. NoticeType
  11621. tmpNewDoc
  11622.     1S2S3S4R5S6S7S8S10S14S15S16S17S19S
  11623. Other...'++LotusScript Development Environment:2:5:(Options):0:66
  11624. '++LotusScript Development Environment:2:5:(Forward):0:1
  11625. Declare Sub Click(Source As Button)
  11626. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11627. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11628. Private Sub BindEvents(Byval Objectname_ As String)
  11629.      Static Source As BUTTON
  11630.      Set Source = Bind(Objectname_)
  11631.      On Event Click From Source Call Click
  11632. End Sub
  11633. '++LotusScript Development Environment:2:2:Click:1:12
  11634. Sub Click(Source As Button)
  11635.      uidoc.EditMode = True 
  11636.      If (ws.DialogBox("(NoticeOptionsDlg)",True,True,,,,,"Options")) Then
  11637. 'the user selected an action and clicked on OK
  11638. 'if the user selected Accept, Decline, we can save and exit
  11639.           If (note.Comments(0) <> "") Then note.IncludeComment = "1"
  11640.           Select Case note.ResponseType(0)
  11641.           Case "0"
  11642. 'this is an acceptance
  11643. 'this will never get called from the calendar entry form since this is already an acceptance               
  11644.           Case "1"
  11645. 'this is a decline
  11646.                note.tmpAction = "Decline"
  11647.                Call uidoc.Save
  11648.                Call uidoc.Close
  11649.           Case "2"
  11650. 'this is a delegate
  11651.                note.tmpAction = "Delegate"
  11652.                Call uidoc.Save
  11653.                Call uidoc.Close            
  11654.           Case "3"
  11655. 'this is a counter propose
  11656.                note.tmpAction = "CounterPropose"
  11657.                Call uidoc.Save
  11658.                Call uidoc.Close
  11659.           End Select
  11660.      End If
  11661. End Sub
  11662. chair
  11663. tmpowner
  11664. DoNotProcessh
  11665. Broadcast
  11666. OrgRepeat
  11667. NoticeType
  11668. tmpNewDoc
  11669.     2S3S5S6S12S13S14S15S16S17S21S22S23S24S25S26S
  11670. Cancel Meeting
  11671. tmpAction
  11672. Cancel
  11673.     0R1S2S3S
  11674.     0R7S12S
  11675. Principal
  11676. tmpOwner
  11677. RepeatIds
  11678. AppointmentType
  11679. NoticeType
  11680. tmpNewDoc
  11681.     1S2R4S5S7S8S12S13S14S15S16S17S18S19S20S21S
  11682. Change Status to Accepted...'++LotusScript Development Environment:2:5:(Options):0:66
  11683. '++LotusScript Development Environment:2:5:(Forward):0:1
  11684. Declare Sub Click(Source As Button)
  11685. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11686. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11687. Private Sub BindEvents(Byval Objectname_ As String)
  11688.      Static Source As BUTTON
  11689.      Set Source = Bind(Objectname_)
  11690.      On Event Click From Source Call Click
  11691. End Sub
  11692. '++LotusScript Development Environment:2:2:Click:1:12
  11693. Sub Click(Source As Button)
  11694.      Call ChangeStatus
  11695. End Sub
  11696. PostedDateh
  11697. Principal
  11698. tmpOwner
  11699. RepeatIds
  11700. AppointmentType
  11701. NoticeType
  11702. tmpNewDoc
  11703.     5S6R7S8S10S11S13S17S18S19S20S21S22S23S24S25S26S27S28S
  11704. I Can No Longer Attend
  11705. tmpAction
  11706. Decline
  11707.     0R1S2S3S
  11708.     0R7S12S|
  11709. Principal
  11710. tmpOwner
  11711. Broadcast
  11712. RepeatIds
  11713. tmpNewDoc
  11714.     1S2S3S4S5S6S8S12S13S
  11715. Check Calendar
  11716. Calendar
  11717. StartDate
  11718.     0S0E
  11719. StartDate
  11720. RepeatIds
  11721. NoticeType
  11722.     2S3S7S8S9S10S
  11723. View Repeat Info'++LotusScript Development Environment:2:5:(Options):0:66
  11724. '++LotusScript Development Environment:2:5:(Forward):0:1
  11725. Declare Sub Click(Source As Button)
  11726. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11727. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11728. Private Sub BindEvents(Byval Objectname_ As String)
  11729.      Static Source As BUTTON
  11730.      Set Source = Bind(Objectname_)
  11731.      On Event Click From Source Call Click
  11732. End Sub
  11733. '++LotusScript Development Environment:2:2:Click:1:12
  11734. Sub Click(Source As Button)
  11735.      If (parentnote Is Nothing) Then
  11736.           Msgbox "The parent document cannot be found."
  11737.           Exit Sub
  11738.      End If
  11739.      Call ws.DialogBox("(RepeatInfo)",False,False,True,True,True,True,"Repeat Info",parentnote)
  11740. End Sub
  11741. OrgRepeat
  11742. OrgRepeat
  11743.     6S7S12S13S
  11744. '++LotusScript Development Environment:2:5:(Options):0:66
  11745. '++LotusScript Development Environment:2:5:(Forward):0:1
  11746. Declare Sub Click(Source As Button)
  11747. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11748. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11749. Private Sub BindEvents(Byval Objectname_ As String)
  11750.      Static Source As BUTTON
  11751.      Set Source = Bind(Objectname_)
  11752.      On Event Click From Source Call Click
  11753. End Sub
  11754. '++LotusScript Development Environment:2:2:Click:1:12
  11755. Sub Click(Source As Button)
  11756.      Set helpdoc = New NotesDocument(db)
  11757. 'determine the context the user is in
  11758.      If (uidoc.IsNewDoc) Then
  11759.           helpdoc.tmpContext = "0"     'user creating brand new document
  11760.      Elseif Not(uidoc.IsNewDoc) And (note.AppointmentType(0) <> "3") Then
  11761.           helpdoc.tmpContext = "1"     'user viewing existing, non-meeting entry    
  11762.      Elseif Not(uidoc.IsNewDoc) And (note.AppointmentType(0) = "3") Then
  11763.           If  (note.Chair(0) = note.tmpowner(0)) Then
  11764.                helpdoc.tmpContext = "2"     'user viewing existing meeting entry when they are the chair
  11765.           Else
  11766.                helpdoc.tmpContext = "3"     'user viewing existing meeting entry when they are the invitee
  11767.           End If
  11768.      End If
  11769.      Call ws.DialogBox("(CalendarHelp)",True,True,True,True,True,True,"C&S Workflow Help",helpdoc)
  11770. End Sub
  11771. Categori_zeK
  11772. Send Docu_ment
  11773. _Remove from Folder...
  11774. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  11775. '++LotusScript Development Environment:2:5:(Forward):0:1
  11776. Declare Sub Click(Source As Button)
  11777. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11778. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11779. Private Sub BindEvents(Byval Objectname_ As String)
  11780.      Static Source As BUTTON
  11781.      Set Source = Bind(Objectname_)
  11782.      On Event Click From Source Call Click
  11783. End Sub
  11784. '++LotusScript Development Environment:2:2:Click:1:12
  11785. Sub Click(Source As Button)
  11786.      Call CreateNewDoc(NEW_MEMO)
  11787. End Sub
  11788. tmpnewdoc
  11789.     1S2S
  11790. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  11791. '++LotusScript Development Environment:2:5:(Forward):0:1
  11792. Declare Sub Click(Source As Button)
  11793. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11794. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11795. Private Sub BindEvents(Byval Objectname_ As String)
  11796.      Static Source As BUTTON
  11797.      Set Source = Bind(Objectname_)
  11798.      On Event Click From Source Call Click
  11799. End Sub
  11800. '++LotusScript Development Environment:2:2:Click:1:12
  11801. Sub Click(Source As Button)
  11802.      Call CreateNewDoc(NEW_CALENDAR)
  11803. End Sub
  11804. tmpnewdoc
  11805.     1S2S
  11806. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  11807. '++LotusScript Development Environment:2:5:(Forward):0:1
  11808. Declare Sub Click(Source As Button)
  11809. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11810. '++LotusScript Development Environment:2:2:BindEvents:1:129
  11811. Private Sub BindEvents(Byval Objectname_ As String)
  11812.      Static Source As BUTTON
  11813.      Set Source = Bind(Objectname_)
  11814.      On Event Click From Source Call Click
  11815. End Sub
  11816. '++LotusScript Development Environment:2:2:Click:1:12
  11817. Sub Click(Source As Button)
  11818.      Call CreateNewDoc(NEW_TASK)
  11819. End Sub
  11820. tmpnewdoc
  11821.     1S2S
  11822. Copy into\New GroupK,
  11823. NewGroup
  11824.     0S0E
  11825. tmpnewdoc
  11826.     1S2S
  11827. (>x    8n
  11828. O=Lotus Notes
  11829. O=Lotus Notes
  11830. PURSAFO
  11831. |.:#U
  11832. O=Lotus Notes
  11833. CN=Lotus Notes Template Development/O=Lotus Notes
  11834. PURSAFO
  11835. CompletedOn
  11836. EndDate
  11837. CalendarDate_Time___Start
  11838. CalendarDate_Time___End
  11839. CalendarDates
  11840. CalendarDate
  11841. RepeatDates
  11842. CalendarDateTime
  11843. EndDateTime
  11844. $NoPurge
  11845. StartTime
  11846. EndTime
  11847. StartEndTime
  11848. StartDateTime
  11849. $FormPublicAccess
  11850. $TITLE
  11851. $INFO
  11852. $WINDOWTITLE
  11853. $Script
  11854. $$Script_O
  11855. $$ScriptName
  11856. $$FormScript
  11857. $$$FormScript_O
  11858. Duration
  11859. ReminderTime
  11860. StartDate
  11861. TimeRange
  11862. _ViewIcon
  11863. $BODY
  11864. $ACTIONS
  11865. $SCRIPTOBJ_7
  11866. $SCRIPTOBJ_8
  11867. $SCRIPTOBJ_10
  11868. $SCRIPTOBJ_11
  11869. $SCRIPTOBJ_13
  11870. $SCRIPTOBJ_15
  11871. $SCRIPTOBJ_18
  11872. $SCRIPTOBJ_19
  11873. $SCRIPTOBJ_23
  11874. $SCRIPTOBJ_24
  11875. $SCRIPTOBJ_25
  11876. $PublicAccess
  11877. '++LotusScript Development Environment:2:5:(Options):0:74
  11878. Option Public
  11879. Use "ObjectVariables"
  11880. '++LotusScript Development Environment:2:5:(Forward):0:1
  11881. Declare Type NamesTable
  11882. Declare Sub Initialize
  11883. Declare Function GetLocalNAB() As NotesDatabase
  11884. Declare Sub CreateGroupDocument(pCollection As NotesDocumentCollection,pdbNAB As NotesDatabase)
  11885. Declare Sub GetDocumentNames(pNote As NotesDocument,pSend As String,pCopy As String,pFrom As String)
  11886. Declare Function FindName(pName As String) As Integer
  11887. Declare Function GetNameComponents(pName As String, pFullName As String, pDomainName As String)
  11888. Declare Sub AddNewName(pCanonicalName As String,pDomainName As String)
  11889. Declare Function GetNamesList() As Variant
  11890. '++LotusScript Development Environment:2:5:(Declarations):0:10
  11891. Type NamesTable
  11892.      Common As String
  11893.      Canonical As String
  11894.      Domain As String
  11895. End Type
  11896. Dim selecteddocs As NotesDocumentCollection
  11897. Dim nabdb As NotesDatabase
  11898. Dim GroupMembers() As NamesTable
  11899. Dim MemberCounter As Integer
  11900. Dim MaxMembers As Integer
  11901. Const TABLESIZE = 20
  11902. '++LotusScript Development Environment:2:2:Initialize:1:10
  11903. Sub Initialize
  11904.      Set session = New NotesSession
  11905.      Set ws = New NotesUIWorkspace
  11906.      Set nabdb = GetLocalNAB()
  11907.      
  11908.      Set selecteddocs = session.CurrentDatabase.UnprocessedDocuments
  11909.      
  11910.      If (selecteddocs.Count = 0) Then 
  11911.           Messagebox "Please select one or more documents before executing this command.",16,"Error"
  11912.           Exit Sub
  11913.      End If
  11914.      
  11915. 'if there is a document currently open, and it is a new document, we cannot proceed
  11916.      Set uidoc = ws.CurrentDocument
  11917.      If Not(uidoc Is Nothing) Then
  11918.           If uidoc.IsNewDoc Then
  11919.                Messagebox "This action cannot be executed on a new document.",16,"Error"
  11920.                Exit Sub
  11921.           End If
  11922.      End If
  11923.      
  11924.      Call CreateGroupDocument(selecteddocs,nabdb)
  11925. End Sub
  11926. '++LotusScript Development Environment:2:1:GetLocalNAB:1:8
  11927. Function GetLocalNAB() As NotesDatabase
  11928.  *Given a session object, gets the local NAB for the local desktop
  11929. %END REM
  11930.      
  11931.      Dim sNamesLine As String
  11932.      Dim nPos As Integer
  11933.      
  11934.      
  11935.      sNamesLine = session.GetEnvironmentString("names",True)
  11936.      
  11937. 'make sure this value was found; if not, assume names.nsf
  11938.      If (sNamesLine = "") Then
  11939.           Set GetLocalNAB = New NotesDatabase("","names.nsf")
  11940.      Else
  11941. 'check to see if multiple NAB's are listed; we use the first one
  11942.           nPos = Instr(sNamesLine,",")
  11943.           If (nPos > 0) Then sNamesLine = Left$(sNamesLine,nPos-1)
  11944.           
  11945. 'open the database
  11946.           Set GetLocalNAB = New NotesDatabase("",sNamesLine)          
  11947.      End If
  11948. End Function
  11949. '++LotusScript Development Environment:2:2:CreateGroupDocument:1:8
  11950. Sub CreateGroupDocument(pCollection As NotesDocumentCollection,pdbNAB As NotesDatabase)
  11951.  *Given a collection of documents and a NAB database, this routine
  11952.   will create a group document in the editor with the 
  11953.   members item filled in
  11954. %END REM
  11955.      Dim groupnote As NotesDocument
  11956.      Dim mailnote As NotesDocument
  11957.      Dim GroupUIDoc As NotesUIDocument
  11958.      Dim sFromItem As String
  11959.      
  11960.      Redim GroupMembers(TABLESIZE)
  11961.      MaxMembers = TABLESIZE
  11962.      MemberCounter = 0
  11963.      
  11964.      Set mailnote = pCollection.GetFirstDocument
  11965.      While Not(mailnote Is Nothing)  
  11966.           Select Case mailnote.Form(0)
  11967.           Case "Memo","Reply"
  11968.                If mailnote.HasItem("Principal") Then
  11969.                     sFromItem = "Principal"
  11970.                Else
  11971.                     sFromItem = "From"
  11972.                End If 
  11973.                Call GetDocumentNames(mailnote,"SendTo","CopyTo",sFromItem)
  11974.           Case "Appointment","Notice"
  11975.                If mailnote.HasItem("Principal") Then
  11976.                     sFromItem = "Principal"
  11977.                Else
  11978.                     sFromItem = "Chair"
  11979.                End If 
  11980.                Call GetDocumentNames(mailnote,"RequiredAttendees","OptionalAttendees",sFromItem)
  11981.           Case Else
  11982. 'not sure what we are dealing with, so assume mail-related item names
  11983.                If mailnote.HasItem("Principal") Then
  11984.                     sFromItem = "Principal"
  11985.                Else
  11986.                     sFromItem = "From"
  11987.                End If 
  11988.                Call GetDocumentNames(mailnote,"SendTo","CopyTo",sFromItem)
  11989.           End Select        
  11990.           
  11991. 'get the next document
  11992.           Set mailnote = pCollection.GetNextDocument(mailnote)
  11993.      Wend
  11994.      
  11995. 'now that we have gone through all documents, create the group document
  11996.      Set groupnote = New NotesDocument(pdbNAB)
  11997.      groupnote.Form = "Group"
  11998.      groupnote.Type = "Group"
  11999.      groupnote.DocumentAccess = session.UserName     
  12000. 'now, iterate through the list of names     
  12001.      groupnote.tmpMembers = GetNamesList()
  12002.      groupnote.Members = Evaluate(|@Trim(@Unique(tmpMembers))|,groupnote)
  12003.      groupnote.RemoveItem "tmpMembers"
  12004.      Call ws.EditDocument(True,groupnote)
  12005. End Sub
  12006. '++LotusScript Development Environment:2:2:GetDocumentNames:1:8
  12007. Sub GetDocumentNames(pNote As NotesDocument,pSend As String,pCopy As String,pFrom As String)
  12008.  *Given a document, retrieve the item names given
  12009.  *Inputs
  12010.   pSend -> item name of SendTo item
  12011.   pCopy -> item name of CopyTo item
  12012.   pFrom -> item name of From item
  12013.  *Return
  12014.   array of names
  12015. %END REM
  12016.      
  12017.      Dim vSendTo As Variant
  12018.      Dim vCopyTo As Variant
  12019.      Dim vFrom As Variant
  12020.      Dim CanonicalName As String
  12021.      Dim DomainName As String
  12022.      
  12023.      
  12024.      vSendTo = pNote.GetItemValue(pSend)
  12025.      vCopyTo = pNote.GetItemValue(pCopy)
  12026.      vFrom = pNote.GetItemValue(pFrom)
  12027.      
  12028.      Forall names In vSendTo
  12029.           If (names <> "") Then          
  12030. 'first, try to locate this person in the namestable
  12031.                Call GetNameComponents(Cstr(names),CanonicalName,DomainName)
  12032.                If (FindName(CanonicalName) = -1) Then
  12033.                     Call AddNewName(CanonicalName,DomainName)
  12034.                End If
  12035.           End If
  12036.      End Forall
  12037.      
  12038.      Forall names In vCopyTo
  12039.           If (names <> "") Then          
  12040. 'first, try to locate this person in the namestable
  12041.                Call GetNameComponents(Cstr(names),CanonicalName,DomainName)
  12042.                If (FindName(CanonicalName) = -1) Then
  12043.                     Call AddNewName(CanonicalName,DomainName)
  12044.                End If
  12045.           End If
  12046.      End Forall
  12047.      
  12048. 'see if the from value already exists
  12049.      If (FindName(vFrom(0)) = -1) Then
  12050.           If (pNote.HasItem("FromDomain")) Then     
  12051.                Call AddNewName(vFrom(0),pNote.FromDomain(0))
  12052.           Else
  12053.                Call AddnewName(vFrom(0),"")
  12054.           End If
  12055.      End If        
  12056.      
  12057. End Sub
  12058. '++LotusScript Development Environment:2:1:FindName:1:8
  12059. Function FindName(pName As String) As Integer
  12060.      Dim key As New NotesName(pName)
  12061.      Dim x As Integer
  12062.      Dim namUser As New NotesName(session.UserName)
  12063.      
  12064.      For x = 0 To (MemberCounter - 1)
  12065. 'do a canonical name comparison
  12066.           If Lcase(key.Canonical) = Lcase(GroupMembers(x).Canonical) Or Lcase(namUser.Canonical) = Lcase(key.Canonical) Then
  12067.                FindInvitee = x 
  12068.                Exit Function
  12069. 'do a common name comparison               
  12070.           Elseif Lcase(key.Common) = Lcase(GroupMembers(x).Common) Or Lcase(namUser.Common) = Lcase(key.Common) Then
  12071.                FindInvitee = x 
  12072.                Exit Function               
  12073.           End If
  12074.      Next
  12075.      
  12076.      FindName = -1
  12077. End Function
  12078. '++LotusScript Development Environment:2:1:GetNameComponents:1:8
  12079. Function GetNameComponents(pName As String, pFullName As String, pDomainName As String)
  12080.      
  12081.      Dim pos As Integer
  12082.      
  12083.      pos = Instr(pName,"@")
  12084.      
  12085.      If(pos > 0) Then
  12086.           Set nam = New NotesName(Left$(pName,pos-1))     
  12087.           pFullName = nam.Canonical
  12088.           pDomainName = Right$(pName,Len(pName)-pos)
  12089.      Else
  12090.           Set nam = New NotesName(pName)     
  12091.           pFullName = nam.Canonical
  12092.           pDomainName = ""
  12093.      End If
  12094. End Function
  12095. '++LotusScript Development Environment:2:2:AddNewName:1:8
  12096. Sub AddNewName(pCanonicalName As String,pDomainName As String)
  12097.      
  12098. 'see if we need to increase the table
  12099.      If (MaxMembers = MemberCounter) Then
  12100.           MaxMembers = MaxMembers + TABLESIZE
  12101.           Redim Preserve GroupMembers(MaxMembers)
  12102.      End If
  12103.      Set nam = New NotesName(pCanonicalName)
  12104.      GroupMembers(MemberCounter).Common = nam.Common
  12105.      GroupMembers(MemberCounter).Canonical = nam.Canonical
  12106.      GroupMembers(MemberCounter).Domain = pDomainName
  12107.      MemberCounter = MemberCounter + 1
  12108. End Sub
  12109. '++LotusScript Development Environment:2:1:GetNamesList:1:8
  12110. Function GetNamesList() As Variant
  12111.      Dim vRetNames() As Variant
  12112.      Dim x As Integer
  12113.      
  12114.      Redim vRetNames(MemberCounter)
  12115.      
  12116.      For x = 0 To (MemberCounter-1)
  12117.           If (GroupMembers(x).Domain <> "") Then
  12118.                vRetNames(x) = GroupMembers(x).Canonical & "@" & GroupMembers(x).Domain
  12119.           Else
  12120.                vRetNames(x) = GroupMembers(x).Canonical                
  12121.           End If
  12122.      Next
  12123.      GetNamesList = vRetNames
  12124. End Function
  12125.     +     $
  12126. tmpMembers
  12127.     0S0E
  12128. O=Lotus Notes
  12129. O=Lotus Notes
  12130. PURSAFO
  12131. |.:#U
  12132. O=Lotus Notes
  12133. CN=Lotus Notes Template Development/O=Lotus Notes
  12134. PURSAFO
  12135. g    UX]px
  12136. $TITLE
  12137. $AssistType
  12138. $AssistLastRun
  12139. $AssistDocCount
  12140. $AssistFlags
  12141. $AssistTrigger
  12142. $AssistInfo
  12143. $AssistQuery
  12144. $AssistAction
  12145. $AssistAction_Ex
  12146. (OLEMailFields)CUA3
  12147. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############################################
  12148. ReplyReply
  12149. StdNotesLtr16$LotusFaxMemoSubform | 1.0 | $LotusFaxMemoSubformMoodsw
  12150. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##
  12151. Reply With HistoryReply
  12152. StdNotesLtr16$LotusFaxMemoSubform | 1.0 | $LotusFaxMemoSubformMoodsw
  12153. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################################
  12154. 29FB8414250BFCF038F51072FC347194AF5CB9E208931A2E889B51112269D913
  12155. _Document Memo$DocMemoWord.Document$Word MemoWordPro.Document$Word Pro MemoAlternateMemow
  12156. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################################
  12157. MemoDocumentMemo
  12158. StdNotesLtr16$LotusFaxMemoSubform | 1.0 | $LotusFaxMemoSubformMoodsw
  12159. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Keith Hatfield/OU=CAM/O=LotusCN=Lotus Notes Template Development/O=Lotus Notes8151D8514A255DA6F2843060C84ED391AF5CB9E208931A2E889B51112269D913#####
  12160. $LotusFaxMemoSubform1.0$LotusFaxMemoSubformCUA3
  12161. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################
  12162. Discussion Threads|Threads1
  12163. $39$13
  12164. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################################################
  12165. $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
  12166. $104$68
  12167. $68Yd
  12168. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  12169. ($Calendar)|Calendar11'
  12170. $134$126$143
  12171. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########
  12172.     ($Drafts)1$
  12173. $58$59$55
  12174. $65$65
  12175. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################################
  12176. $FolderInfo($FolderInfo)
  12177. $103Y8
  12178. CN=Marc Zehngut/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################################
  12179. $FolderRefInfo($FolderRefInfo)
  12180. $FolderRefV
  12181.     0S0E
  12182. $105$FolderRefID$FolderRefFlags$Conflict
  12183. $FolderRefh
  12184.     L1S1
  12185. $105$
  12186. $105$FolderRefID
  12187. $105Folder UNID*
  12188. $FolderRefV
  12189.     0S0E
  12190. $FolderRefIDFolder Reference ID$FolderRefFlagsFolder Reference Flags&
  12191. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######
  12192. ($Meetings)|Meetings11
  12193. StartDateTime
  12194. StartDateTimeY
  12195. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####
  12196. ($POP3UIDL)|($POP3UIDL)J
  12197. $RFC822MessageSize
  12198.     1S2S3S
  12199. $RFC822MessageSize
  12200. $POP3ExportSize
  12201.     1S2S3S
  12202. $POP3ExportSize
  12203. MailPop3UIDLDeliveredDate$32$30$Conflict
  12204. MailPop3UIDL
  12205.     1S2S3S
  12206. MailPop3UIDL
  12207.     0RL1S2S3S1-
  12208. MailPop3UIDLDeliveredDate
  12209. MailPop3UIDLMailPop3UIDLDeliveredDateDelivered Date$32$RFC822MessageSize`
  12210. $RFC822MessageSize
  12211.     1S2S3S
  12212. $RFC822MessageSize
  12213. $30$POP3ExportSize\
  12214. $POP3ExportSize
  12215.     1S2S3S
  12216. $POP3ExportSize
  12217. 553Courier NewYP
  12218. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################
  12219. ($POP3)@
  12220. $RFC822MessageSize
  12221.     1S2S3S
  12222. $RFC822MessageSize
  12223. $POP3ExportSize
  12224.     1S2S3S
  12225. $POP3ExportSize
  12226. DeliveredDate$32$30$Conflict
  12227. DeliveredDate
  12228.     1S2S3S
  12229. DeliveredDate
  12230.     0RL1S2S3S1
  12231. DeliveredDate
  12232. DeliveredDateDelivered Date$32$RFC822MessageSize`
  12233. $RFC822MessageSize
  12234.     1S2S3S
  12235. $RFC822MessageSize
  12236. $30$POP3ExportSize\
  12237. $POP3ExportSize
  12238.     1S2S3S
  12239. $POP3ExportSize
  12240. 553Courier NewY
  12241. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################
  12242. ($Profiles)H
  12243. Form$Conflict
  12244. Profile
  12245.     L1S5S1
  12246. FormType&
  12247. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############################
  12248. $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
  12249. $82$62
  12250. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################################
  12251. $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
  12252. $172$176$186DueDateTime$182#
  12253. $182DueDateTimeY
  12254. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  12255. ##########################################################
  12256. $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
  12257. DeliveredDate
  12258. DeliveredDate
  12259. PostedDate
  12260. PostedDatei
  12261. FromDomainh
  12262. FromDomain"
  12263. DeliveryPriority
  12264. DeliveryPriority
  12265. MessageType
  12266. MessageType
  12267. Delivery Report
  12268. VIM_DLR
  12269. NonDelivery Report
  12270. VIM_NDLR
  12271. Return Receipt
  12272. VIM_RTRC
  12273. VIM_MAILJ    
  12274. Subject
  12275. $53$47$48$50$51$52$Conflict
  12276. $MessageType
  12277.     L1S1$
  12278. $53$47$48
  12279. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############################
  12280. $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
  12281. PostedDateY
  12282. VIMSEL_DRAFT
  12283. DeliveredDate
  12284. DeliveredDate
  12285. PostedDate
  12286. PostedDatei
  12287. FromDomainh
  12288. FromDomain"
  12289. DeliveryPriority
  12290. DeliveryPriority
  12291. MessageType
  12292. MessageType
  12293. Delivery Report
  12294. VIM_DLR
  12295. NonDelivery Report
  12296. VIM_NDLR
  12297. Return Receipt
  12298. VIM_RTRC
  12299. VIM_MAILJ    
  12300. Subject
  12301. $53$47$48$50$51$52$Conflict
  12302. $MessageType
  12303.     L1S1$
  12304. $53$47$48
  12305. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  12306. ##########################################################
  12307. $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
  12308. Recipients
  12309. Categories
  12310. Categoriesb
  12311. (No Category)
  12312. DeliveredDate
  12313. DeliveredDate
  12314. PostedDate
  12315. PostedDatei
  12316. FromDomainh
  12317. FromDomain"
  12318. DeliveryPriority
  12319. DeliveryPriority
  12320. MessageType
  12321. MessageType
  12322. Delivery Report
  12323. VIM_DLR
  12324. NonDelivery Report
  12325. VIM_NDLR
  12326. Return Receipt
  12327. VIM_RTRC
  12328. VIM_MAILJ    
  12329. Subject
  12330. $53$47$48$50$51$52$Conflict
  12331. $MessageType
  12332.     L1S1$
  12333. $53$47$48T
  12334. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####
  12335. ($Inbox)($Inbox)1
  12336. $93$70
  12337. $70Newly received mail messages.FY
  12338. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  12339. ##########################################################
  12340. ($Trash)1($Trash)1
  12341. $87$64
  12342. $64FY
  12343. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  12344. ##########################################
  12345. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesDocumentConversionss34Q1################
  12346. (OLEMailFields)
  12347. SendTo
  12348. CopyTo
  12349. BlindCopyTo
  12350. Subject
  12351.     Bcc:
  12352.     Subject:
  12353.     0S0E
  12354.     0S0E
  12355.     0S0E
  12356. O=Lotus Notes
  12357. O=Lotus Notes
  12358. PURSAFO
  12359. |.:#U
  12360. O=Lotus Notes
  12361. CN=Lotus Notes Template Development/O=Lotus Notes
  12362. PURSAFO
  12363. $TITLE
  12364. $INFO
  12365. $$Script_O
  12366. $$ScriptName
  12367. $BODY
  12368. 11/12/98 07:09:46 PM Keith Hatfield/CAM/Lotus updated [-Default-]
  12369. 02/19/98 03:51:22 PM Ryan Jansen/Iris updated -Default-
  12370. 12/03/97 01:15:36 AM Ryan Jansen/Iris updated -Default-
  12371. 12/03/97 01:14:22 AM Ryan Jansen/Iris updated [LocalDomainServers]
  12372. 12/03/97 01:14:16 AM Ryan Jansen/Iris updated -Default-
  12373. 12/03/97 01:10:01 AM Ryan Jansen/Iris deleted OtherDomainServers
  12374. 12/03/97 01:07:00 AM Ryan Jansen/Iris updated [LocalDomainServers]
  12375. 12/03/97 01:06:49 AM Ryan Jansen/Iris updated [OtherDomainServers]
  12376. 12/03/97 01:06:45 AM Ryan Jansen/Iris updated [LocalDomainServers]
  12377. 12/03/97 01:06:42 AM Ryan Jansen/Iris updated OtherDomainServers
  12378. 12/03/97 01:06:40 AM Ryan Jansen/Iris updated LocalDomainServers
  12379. 06/21/97 02:00:25 PM Ryan Jansen/Iris updated [OtherDomainServers]
  12380. 06/21/97 02:00:21 PM Ryan Jansen/Iris updated [LocalDomainServers]
  12381. 06/21/97 01:58:41 PM Ryan Jansen/Iris updated [OtherDomainServers]
  12382. 06/21/97 01:58:38 PM Ryan Jansen/Iris added [OtherDomainServers]
  12383. 06/21/97 01:58:30 PM Ryan Jansen/Iris updated [LocalDomainServers]
  12384. 06/21/97 01:58:22 PM Ryan Jansen/Iris added [LocalDomainServers]
  12385. 06/21/97 01:58:08 PM Ryan Jansen/Iris added [-Default-]
  12386. 06/21/97 01:58:00 PM Ryan Jansen/Iris deleted Ryan Jansen/Iris
  12387. 06/21/97 01:57:58 PM Ryan Jansen/Iris updated OtherDomainServers
  12388. -Default-
  12389. LocalDomainServers
  12390. [-Default-]
  12391. [LocalDomainServers]
  12392. [OtherDomainServers]
  12393. Times New Roman
  12394. VersionOpt|
  12395.     6S7S9S14S
  12396. $VersionOpt
  12397.     0R1S2S3S
  12398. SavedOnce
  12399.     0R1S2S3S
  12400. PostedDate(
  12401.     0R1S2S3S
  12402. DeliveredDate
  12403.     0R1S2S3S
  12404. $AutoEditMode
  12405.     0R1S2S3S
  12406. MailSaveOptions
  12407.     0R1S2S3S
  12408. VersionOpt
  12409.     0R4S
  12410. InheritedBody
  12411. New Reply
  12412. Subject
  12413. Subject
  12414. Subject
  12415.     4S6S12S13S14S15S17S21S23S25S26S28S
  12416. '++LotusScript Development Environment:2:5:(Options):0:74
  12417. Option Public
  12418. Use "EmailProcessing"
  12419. Use "DocumentConversions"
  12420. '++LotusScript Development Environment:2:5:(Forward):0:1
  12421. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12422.  Reply'++LotusScript Development Environment:2:5:(Options):0:66
  12423. '++LotusScript Development Environment:2:5:(Forward):0:1
  12424. Declare Sub Postopen(Source As Notesuidocument)
  12425. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  12426. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  12427. Declare Sub Postmodechange(Source As Notesuidocument)
  12428. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12429. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12430. Private Sub BindEvents(Byval Objectname_ As String)
  12431.      Static Source As NOTESUIDOCUMENT
  12432.      Set Source = Bind(Objectname_)
  12433.      On Event Postopen From Source Call Postopen
  12434.      On Event Querysave From Source Call Querysave
  12435.      On Event Queryclose From Source Call Queryclose
  12436.      On Event Postmodechange From Source Call Postmodechange
  12437. End Sub
  12438. '++LotusScript Development Environment:2:2:Postopen:1:12
  12439. Sub Postopen(Source As Notesuidocument)
  12440.      
  12441.      Set ws = New NotesUIWorkSpace
  12442.      Set uidoc = source
  12443.      
  12444.      Call EmailOpen
  12445.      
  12446. End Sub
  12447. '++LotusScript Development Environment:2:2:Querysave:1:12
  12448. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  12449.      
  12450.      Call EmailSave(Continue)
  12451.      
  12452. End Sub
  12453. '++LotusScript Development Environment:2:2:Queryclose:1:12
  12454. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  12455.      
  12456.      Call EmailClose(Continue)
  12457.      
  12458. End Sub
  12459. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  12460. Sub Postmodechange(Source As Notesuidocument)
  12461.      
  12462.      Call EmailModeChange
  12463.      
  12464. End Sub
  12465.     Always hidden: 
  12466. SendTo
  12467. CopyTo
  12468.     1S2S
  12469. InheritedSendTo
  12470. ReplyTo
  12471. InheritedReplyTo
  12472. Principal
  12473. Principal
  12474. Principal
  12475. Fromh
  12476.     1S2S8S9S10S11S13S15S20S22S
  12477. FromDomainh
  12478. FromDomain"
  12479.     0R7S8S9S10S11S13SInheritedFrom
  12480. FromDomain
  12481. InheritedFromDomain
  12482. Principal
  12483. CalendarProfile
  12484. Owner
  12485.     1S2S3S7S
  12486. FromPerson memo is from.
  12487. DefaultLogo
  12488. StdNotesLtrGateway
  12489.     4S9S13S16S18SLogo
  12490.     0S0E
  12491.     0S0E
  12492. Encrypt
  12493.     0S0E
  12494. DefaultMailSaveOptions
  12495. $KeepPrivate
  12496. $KeepPrivate
  12497. $KeepPrivate
  12498.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  12499. $HideMailHeader
  12500.     0S0E
  12501.     From:    
  12502. Principal
  12503. Principal
  12504.     1S2S5S6S8S10S
  12505.     0R1S2S8S
  12506.     0R1S2S5S6S8S14S18S
  12507.     0R1S2S5S6S8S14S18S
  12508. SentBy
  12509. X400FreeForm^
  12510.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  12511. SentBy
  12512. FromDomain
  12513. FromDomain
  12514. FromDomain
  12515. FromDomain
  12516.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  12517. FromName
  12518. Principal
  12519. Principal
  12520.     0RR1S2S9S11S15S
  12521. FromStops
  12522.     0R1S2S6S
  12523. FromName
  12524. FromStops
  12525. FromStops
  12526. FromStops
  12527.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  12528.      on 
  12529. PostedDateh
  12530. PostedDate
  12531.     4S5S10S12S
  12532. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  12533. $HideMailHeader
  12534. StdNotesLtr16
  12535.     7S9S10S11S13S15S
  12536. tmpDate
  12537. $HideMailHeader
  12538.     4S5S6S8S10S11S
  12539.     From:    
  12540. tmpDisplayFrom_Preview
  12541. tmpDisplayFrom_NoLogo
  12542.      on 
  12543. PostedDateh
  12544. PostedDate
  12545.     4S5S10S12S
  12546. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  12547. ReplyDate
  12548. ReplyTo
  12549. $HideMailHeader
  12550.     2S3S4S5S6S7S9S10S
  12551. Please respond
  12552. ReplyTo
  12553. ReplyTo
  12554. ReplyDate
  12555. ReplyDate
  12556.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  12557. $HideMailHeader
  12558. Principal
  12559. Principal
  12560. Principal
  12561. Principal
  12562. Principal
  12563.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  12564.     Sent by:    
  12565. FromDomain
  12566. FromDomain
  12567. FromDomain
  12568. FromDomain
  12569.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  12570. FromName
  12571.     0RR1S2S6S
  12572. FromStops
  12573.     0R1S2S6S
  12574. FromName
  12575. FromStops
  12576. FromStops
  12577. FromStops
  12578.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  12579. SendTo
  12580. CopyTo
  12581.   cc:  
  12582. CopyTo
  12583.     1S8S13S14S2E17S18S21S28S31S
  12584. MailAddress
  12585. InheritedReplyToh
  12586. InheritedReplyTo
  12587. InheritedReplyTo
  12588. InheritedFrom
  12589.     1S2S8S9S10S11S13S15S
  12590. MailAddress
  12591.     0RR 
  12592. SendTo}
  12593.     0S0E
  12594. SendTo^
  12595. No names found to send mail.{
  12596.     1S6S7S8S9S11S16S
  12597. SendToList of primary people to send memo.
  12598. CopyTo}
  12599.     0S0E
  12600. CopyToList of people to send a copy of the memo.
  12601. DeliveredDate
  12602. BlindCopyTo
  12603. (bcc: 
  12604. BlindCopyTo
  12605.     4S5S6S7S8S9S10S11S13S14S15S19S21S22S24StmpBlindCopyTo
  12606.     bcc:
  12607. BlindCopyTo
  12608.     0S0E
  12609. BlindCopyToList of undisclosed people to send copies of memo.
  12610. $LotusFaxMemoSubform | 1.0 | $LotusFaxMemoSubform
  12611.     Subject:    
  12612. ReplyText
  12613. MailStEd|
  12614.     1S2S
  12615. Prefix
  12616. ReplyText
  12617.     0R1S2S8S9S11S13S
  12618. Prefix
  12619. ReplyText
  12620. Subject
  12621. Topic
  12622. Subject
  12623.     0R1S2S5S6S8S10S11S12S14S16S
  12624. Prefix
  12625. Subj"
  12626.     0R10S12S16S17S19S21S22S23S
  12627. Subject
  12628.     0S0E
  12629. SubjectSubject of memo.
  12630.     Subject:    
  12631. Subject
  12632. tmpDisplaySubjectSubject of memo.
  12633.     0S0E
  12634. tmpDisplayLink
  12635. $HideMailHeader
  12636. Moods
  12637. PostedDate
  12638. SenderTag
  12639. Moods
  12640.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  12641. Edit Document
  12642. ForwardK 
  12643.     0S0E
  12644. New Memo.
  12645.     0S0E
  12646. Delete 
  12647.     0S0E
  12648. _Move To Folder...
  12649. Delivery Information...Kz
  12650. DeliveryInfo
  12651. Delivery Information
  12652.     4S5S6S7S8S9S10S12S
  12653. _Forward
  12654. Reply
  12655. Reply
  12656.     0S0E
  12657. Reply With History
  12658. Reply with History
  12659. This document is truncated.
  12660.     4S8S10S13S
  12661. Reply with history
  12662. Address... 
  12663.     0S0E
  12664. PostedDateh
  12665.     5S6S7S8S
  12666. Close
  12667.     0S0E
  12668. PostedDateY
  12669.     0S0E
  12670. Reply To All
  12671. Owner
  12672. CalendarProfile
  12673. Owner
  12674.     1S2S6S
  12675. CanonicalName
  12676. Owner
  12677. Owner
  12678.     0R1S2S6S9S10S12S14S
  12679. Names
  12680. InheritedSendTo
  12681.     0R1S2S
  12682. Try 4 different ways of removing the current sender from the new recipient list
  12683.     0RR1S
  12684. Names1 compares the original names list with the canonical name plus the domain name and if found replaces with a null - works
  12685.     0R1S
  12686. Names1
  12687. Names
  12688. CanonicalName
  12689. Names
  12690. CanonicalName
  12691.     0R1S2S6S7S8S15S21S
  12692. 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
  12693.     0RR1S
  12694. Names2
  12695. Names1
  12696. CanonicalName
  12697. Names1b
  12698. CanonicalName
  12699.     0R1S2S6S10S12S13S20S26S31S
  12700. Names3 compares the canonical names against the Names 2 list and replaces with a null.
  12701.     0RR1S
  12702. Names3
  12703. Names2
  12704. CanonicalName
  12705. 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.
  12706.     0RR1S
  12707. Names4
  12708. Names3
  12709. CanonicalName
  12710.     0R1S2S10S14S17S
  12711. Names4
  12712.     0R3S4S6S11S
  12713. 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...
  12714.     0RR1S
  12715. Names4a
  12716. Names4
  12717. InheritedFromDomain
  12718.     0R1S2S
  12719. Look for all addresses whose last domain is the same as the sender's domain - tack on the whole FromDomain
  12720.     0RR1S
  12721. Names5
  12722. Names4a
  12723. Names4a
  12724. InheritedFromDomain
  12725. Names4a
  12726. InheritedFromDomain
  12727.     0R1S2S6S10S12S13S14S15S21S25S29S31S32S33S34S
  12728. Find all the addresses without a domain and attach FromDomain
  12729.     0RR1S
  12730. Names6
  12731. Names5
  12732. Names5
  12733. Names5
  12734.     0R1S2S6S10S12S13S14S15S19S22S
  12735. Names7
  12736. Names5
  12737. Names6
  12738. Names6
  12739. InheritedFromDomain
  12740.     0R1S2S6S8S9S10S11S12S
  12741. Find everyone whose domain is the same as yours and strip it off
  12742.     0RR1S
  12743. Names8
  12744. Names7
  12745. Names7
  12746.     0R1S2S8S9S11S13S17S18S19S21S
  12747. Names8a
  12748. Names8
  12749. Names8
  12750.     0R1S2S8S9S11S13S17S18S19S24S
  12751. Names8b
  12752. Names8a
  12753. Names8a
  12754.     0R1S2S8S9S11S13S17S18S19S24S
  12755. Names8c
  12756. Names8b
  12757. Names8b
  12758.     0R1S2S8S9S11S13S17S18S19S24S
  12759. CopyTo
  12760. CopyTo
  12761. InheritedFromDomain
  12762. Names5
  12763. Names5
  12764. Names8c
  12765.     0R1S2S3S10S11S14S15S16S17S18S19S21S23S
  12766. PostedDateh
  12767.     0S0E
  12768. Save As Draft
  12769. MailOptions
  12770.     1S2S3S
  12771. SaveOptions
  12772.     0R1S2S3S
  12773. PostedDateh
  12774.     0S0E
  12775. Save and File
  12776. tmpAction
  12777. SaveAndFile
  12778.     1S2S3S
  12779. IsMailStationeryh
  12780. PostedDateY
  12781. PostedDateh
  12782.     4S5S9S10S16S17S18S19S
  12783. PromptValue
  12784. DefaultMailSaveOptions
  12785. Save when sent
  12786. Do you wish to save a copy of this Memo?
  12787. DefaultMailSaveOptions
  12788.     1S2S5S6S8S14S17S
  12789. SaveOptions
  12790. PromptValue
  12791. SaveOptions
  12792. PromptValue
  12793.     0RR1S2S5S6S9S14S
  12794. tmpAction
  12795. DefaultMailSaveOptions
  12796. Mailing
  12797.     0RR1S2S3S6S7S9S11S
  12798. MailOptions
  12799.     0R1S2S3S
  12800.     0R7S9S
  12801. tmpAction
  12802. SaveOptions
  12803. SendAndFile
  12804.     0RR1S2S3S6S7S9S11S
  12805.     0R7S9S
  12806. PostedDateh
  12807.     5S6S7S8S
  12808. Send And File...
  12809. tmpAction
  12810. DefaultMailSaveOptions
  12811. Mailing
  12812.     1S2S3S6S7S9S11S
  12813. MailOptions
  12814.     0R1S2S3S
  12815.     0RR7S9S
  12816. tmpAction
  12817. SendAndFile
  12818.     0RR1S2S3S
  12819.     0R7S9S
  12820.     0R7S9S
  12821. PostedDateh
  12822.     5S6S7S8S
  12823. Delivery Options...K
  12824. DeliveryOptions
  12825. Delivery Options
  12826.     4S8S
  12827. _ViewIcon
  12828. SenderTag
  12829. SenderTag
  12830. SenderTag
  12831. SenderTag
  12832. SenderTag
  12833. SenderTag
  12834. SenderTag
  12835. SenderTag
  12836. SenderTag
  12837. SenderTag
  12838. SenderTag
  12839.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  12840. PostedDateh
  12841.     5S6S7S8S
  12842. Special Options...
  12843. ReplyDate
  12844. ReplyDate
  12845.     1S2S3S
  12846. ReplyTo
  12847. ReplyTo
  12848.     0R1S2S3S
  12849. (Advanced Options)
  12850. Special Options
  12851.     0R6S10S13S15S
  12852. tmpDisplayReplyInfo
  12853. Please respond
  12854. ReplyTo
  12855. ReplyTo
  12856. ReplyDate
  12857. ReplyDate
  12858.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  12859. DueDateTime
  12860. ReplyDate
  12861.     0R1S2S3S
  12862. PostedDateh
  12863.     5S6S7S8S10S11S15S16S
  12864. Save As Stationery...
  12865. tmpAction
  12866. SaveAsStationery
  12867.     1S2S3S
  12868. IsMailStationeryh
  12869.     0S0E
  12870. _Remove From Folder...
  12871. Categori_zeK
  12872. SSend
  12873. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  12874. '++LotusScript Development Environment:2:5:(Forward):0:1
  12875. Declare Sub Click(Source As Button)
  12876. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12877. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12878. Private Sub BindEvents(Byval Objectname_ As String)
  12879.      Static Source As BUTTON
  12880.      Set Source = Bind(Objectname_)
  12881.      On Event Click From Source Call Click
  12882. End Sub
  12883. '++LotusScript Development Environment:2:2:Click:1:12
  12884. Sub Click(Source As Button)
  12885.      Call CreateNewDoc(NEW_MEMO)
  12886. End Sub
  12887. tmpnewdoc
  12888.     1S2S
  12889. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  12890. '++LotusScript Development Environment:2:5:(Forward):0:1
  12891. Declare Sub Click(Source As Button)
  12892. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12893. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12894. Private Sub BindEvents(Byval Objectname_ As String)
  12895.      Static Source As BUTTON
  12896.      Set Source = Bind(Objectname_)
  12897.      On Event Click From Source Call Click
  12898. End Sub
  12899. '++LotusScript Development Environment:2:2:Click:1:12
  12900. Sub Click(Source As Button)
  12901.      Call CreateNewDoc(NEW_CALENDAR)
  12902. End Sub
  12903. tmpnewdoc
  12904.     1S2S
  12905. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  12906. '++LotusScript Development Environment:2:5:(Forward):0:1
  12907. Declare Sub Click(Source As Button)
  12908. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12909. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12910. Private Sub BindEvents(Byval Objectname_ As String)
  12911.      Static Source As BUTTON
  12912.      Set Source = Bind(Objectname_)
  12913.      On Event Click From Source Call Click
  12914. End Sub
  12915. '++LotusScript Development Environment:2:2:Click:1:12
  12916. Sub Click(Source As Button)
  12917.      Call CreateNewDoc(NEW_TASK)
  12918. End Sub
  12919. tmpnewdoc
  12920.     1S2S
  12921. Copy into\New GroupK,
  12922. NewGroup
  12923.     0S0E
  12924. tmpnewdoc
  12925.     1S2S
  12926. O=Lotus Notes
  12927. O=Lotus Notes
  12928. PURSAFO
  12929. |.:#U
  12930. O=Lotus Notes
  12931. CN=Lotus Notes Template Development/O=Lotus Notes
  12932. PURSAFO
  12933. $$FormPostOpenAction
  12934. ExpireDate
  12935. ReplyDate
  12936. $TypeIcon
  12937. ReplyNumber
  12938. ComposedDate
  12939. $TITLE
  12940. $AUTOLAUNCH
  12941. $INFO
  12942. $SubForms
  12943. $WINDOWTITLE
  12944. $Script
  12945. $$Script_O
  12946. $$ScriptName
  12947. $$FormScript
  12948. $$$FormScript_O
  12949. $BODY
  12950. $ACTIONS
  12951. $SCRIPTOBJ_22
  12952. $SCRIPTOBJ_23
  12953. $SCRIPTOBJ_24
  12954. Times New Roman
  12955. VersionOpt|
  12956.     6S7S9S14S
  12957. $VersionOpt
  12958.     0R1S2S3S
  12959. SavedOnce
  12960.     0R1S2S3S
  12961. PostedDate(
  12962.     0R1S2S3S
  12963. DeliveredDate
  12964.     0R1S2S3S
  12965. $AutoEditMode
  12966.     0R1S2S3S
  12967. MailSaveOptions
  12968.     0R1S2S3S
  12969. VersionOpt
  12970.     0R4S
  12971. New Reply
  12972. Subject
  12973. Subject
  12974. Subject
  12975.     4S6S12S13S14S15S17S21S23S25S26S28S
  12976. '++LotusScript Development Environment:2:5:(Options):0:74
  12977. Option Public
  12978. Use "EmailProcessing"
  12979. Use "DocumentConversions"
  12980. '++LotusScript Development Environment:2:5:(Forward):0:1
  12981. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12982.  Reply'++LotusScript Development Environment:2:5:(Options):0:66
  12983. '++LotusScript Development Environment:2:5:(Forward):0:1
  12984. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  12985. Declare Sub Postopen(Source As Notesuidocument)
  12986. Declare Sub Postmodechange(Source As Notesuidocument)
  12987. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  12988. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12989. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12990. Private Sub BindEvents(Byval Objectname_ As String)
  12991.      Static Source As NOTESUIDOCUMENT
  12992.      Set Source = Bind(Objectname_)
  12993.      On Event Queryclose From Source Call Queryclose
  12994.      On Event Postopen From Source Call Postopen
  12995.      On Event Postmodechange From Source Call Postmodechange
  12996.      On Event Querysave From Source Call Querysave
  12997. End Sub
  12998. '++LotusScript Development Environment:2:2:Queryclose:1:12
  12999. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  13000.      
  13001.      Call EmailClose(Continue)
  13002.      
  13003. End Sub
  13004. '++LotusScript Development Environment:2:2:Postopen:1:12
  13005. Sub Postopen(Source As Notesuidocument)
  13006.      
  13007.      Set ws = New NotesUIWorkSpace
  13008.      Set uidoc = source
  13009.      
  13010.      Call EmailOpen
  13011.      
  13012. End Sub
  13013. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  13014. Sub Postmodechange(Source As Notesuidocument)
  13015.      
  13016.      Call EmailModeChange
  13017.      
  13018. End Sub
  13019. '++LotusScript Development Environment:2:2:Querysave:1:12
  13020. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  13021.      
  13022.      Call EmailSave(Continue)
  13023.      
  13024. End Sub
  13025.     Always hidden: 
  13026. SendTo
  13027. CopyTo
  13028.     1S2S
  13029. InheritedSendTo
  13030. ReplyTo
  13031. InheritedReplyTo
  13032. Principal
  13033. Principal
  13034. Principal
  13035. Fromh
  13036.     1S2S8S9S10S11S13S15S20S22S
  13037. FromDomainh
  13038. FromDomain"
  13039.     0R7S8S9S10S11S13SInheritedFrom
  13040. FromDomain
  13041. InheritedFromDomain
  13042. Principal
  13043. CalendarProfile
  13044. Owner
  13045.     1S2S3S7S
  13046. FromPerson memo is from.
  13047. DefaultLogo
  13048. StdNotesLtrGateway
  13049.     4S9S13S16S18SLogo
  13050.     0S0E
  13051.     0S0E
  13052. Encrypt
  13053.     0S0E
  13054. DefaultMailSaveOptions
  13055. $KeepPrivate
  13056. $KeepPrivate
  13057. $KeepPrivate
  13058.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  13059. $HideMailHeader
  13060.     0S0E
  13061.     From:    
  13062. Principal
  13063. Principal
  13064.     1S2S5S6S8S10S
  13065.     0R1S2S8S
  13066.     0R1S2S5S6S8S14S18S
  13067.     0R1S2S5S6S8S14S18S
  13068. SentBy
  13069. X400FreeForm^
  13070.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  13071. SentBy
  13072. FromDomain
  13073. FromDomain
  13074. FromDomain
  13075. FromDomain
  13076.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  13077. FromName
  13078. Principal
  13079. Principal
  13080.     0RR1S2S9S11S15S
  13081. FromStops
  13082.     0R1S2S6S
  13083. FromName
  13084. FromStops
  13085. FromStops
  13086. FromStops
  13087.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  13088.      on 
  13089. PostedDateh
  13090. PostedDate
  13091.     4S5S10S12S
  13092. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  13093. $HideMailHeader
  13094. StdNotesLtr16
  13095.     7S9S10S11S13S15S
  13096. tmpDate
  13097. $HideMailHeader
  13098.     4S5S6S8S10S11S
  13099.     From:    
  13100. tmpDisplayFrom_Preview
  13101. tmpDisplayFrom_NoLogo
  13102.      on 
  13103. PostedDateh
  13104. PostedDate
  13105.     4S5S10S12S
  13106. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  13107. ReplyDate
  13108. ReplyTo
  13109. $HideMailHeader
  13110.     2S3S4S5S6S7S9S10S
  13111. Please respond
  13112. ReplyTo
  13113. ReplyTo
  13114. ReplyDate
  13115. ReplyDate
  13116.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  13117. $HideMailHeader
  13118. Principal
  13119. Principal
  13120. Principal
  13121. Principal
  13122. Principal
  13123.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  13124.     Sent by:    
  13125. FromDomain
  13126. FromDomain
  13127. FromDomain
  13128. FromDomain
  13129.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  13130. FromName
  13131.     0RR1S2S6S
  13132. FromStops
  13133.     0R1S2S6S
  13134. FromName
  13135. FromStops
  13136. FromStops
  13137. FromStops
  13138.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  13139. SendTo
  13140. CopyTo
  13141.   cc:  
  13142. CopyTo
  13143.     1S8S13S14S2E17S18S21S28S31S
  13144. MailAddress
  13145. InheritedReplyToh
  13146. InheritedReplyTo
  13147. InheritedReplyTo
  13148. InheritedFrom
  13149.     1S2S8S9S10S11S13S15S
  13150. MailAddress
  13151.     0RR 
  13152. SendTo}
  13153.     0S0E
  13154. SendTo^
  13155. No names found to send mail.{
  13156.     1S6S7S8S9S11S16S
  13157. SendToList of primary people to send memo.
  13158. CopyTo}
  13159.     0S0E
  13160. CopyToList of people to send a copy of the memo.
  13161. DeliveredDate
  13162. BlindCopyTo
  13163. (bcc: 
  13164. BlindCopyTo
  13165.     4S5S6S7S8S9S10S11S13S14S15S19S21S22S24StmpBlindCopyTo
  13166.     bcc:
  13167. BlindCopyTo
  13168.     0S0E
  13169. BlindCopyToList of undisclosed people to send copies of memo.
  13170. $LotusFaxMemoSubform | 1.0 | $LotusFaxMemoSubform
  13171.     Subject:    
  13172. Subject
  13173. Topic
  13174. Subject
  13175.     1S2S5S6S8S10S
  13176. Subj"
  13177.     0R10S12S16S17S19S21S22S23S
  13178. Subject
  13179.     0S0E
  13180. SubjectSubject of memo.
  13181.     Subject:    
  13182. Subject
  13183. tmpDisplaySubjectSubject of memo.
  13184.     0S0E
  13185. tmpDisplayLink
  13186. $HideMailHeader
  13187. Moods
  13188. PostedDate
  13189. SenderTag
  13190. Moods
  13191.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  13192. Edit Document
  13193. ForwardK 
  13194.     0S0E
  13195. New Memo.
  13196.     0S0E
  13197. Delete 
  13198.     0S0E
  13199. _Move To Folder...
  13200. Delivery Information...Kz
  13201. DeliveryInfo
  13202. Delivery Information
  13203.     4S5S6S7S8S9S10S12S
  13204. _Forward
  13205. Reply
  13206. Reply
  13207.     0S0E
  13208. Reply With History
  13209. Reply with History
  13210. This document is truncated.
  13211.     4S8S10S13S
  13212. Reply with history
  13213. Address... 
  13214.     0S0E
  13215. PostedDateh
  13216.     5S6S7S8S
  13217. Close
  13218.     0S0E
  13219. PostedDateY
  13220.     0S0E
  13221. Reply To All
  13222. Owner
  13223. CalendarProfile
  13224. Owner
  13225.     1S2S6S
  13226. CanonicalName
  13227. Owner
  13228. Owner
  13229.     0R1S2S6S9S10S12S14S
  13230. Names
  13231. InheritedSendTo
  13232.     0R1S2S
  13233. Try 4 different ways of removing the current sender from the new recipient list
  13234.     0RR1S
  13235. Names1 compares the original names list with the canonical name plus the domain name and if found replaces with a null - works
  13236.     0R1S
  13237. Names1
  13238. Names
  13239. CanonicalName
  13240. Names
  13241. CanonicalName
  13242.     0R1S2S6S7S8S15S21S
  13243. 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
  13244.     0RR1S
  13245. Names2
  13246. Names1
  13247. CanonicalName
  13248. Names1b
  13249. CanonicalName
  13250.     0R1S2S6S10S12S13S20S26S31S
  13251. Names3 compares the canonical names against the Names 2 list and replaces with a null.
  13252.     0RR1S
  13253. Names3
  13254. Names2
  13255. CanonicalName
  13256. 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.
  13257.     0RR1S
  13258. Names4
  13259. Names3
  13260. CanonicalName
  13261.     0R1S2S10S14S17S
  13262. Names4
  13263.     0R3S4S6S11S
  13264. 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...
  13265.     0RR1S
  13266. Names4a
  13267. Names4
  13268. InheritedFromDomain
  13269.     0R1S2S
  13270. Look for all addresses whose last domain is the same as the sender's domain - tack on the whole FromDomain
  13271.     0RR1S
  13272. Names5
  13273. Names4a
  13274. Names4a
  13275. InheritedFromDomain
  13276. Names4a
  13277. InheritedFromDomain
  13278.     0R1S2S6S10S12S13S14S15S21S25S29S31S32S33S34S
  13279. Find all the addresses without a domain and attach FromDomain
  13280.     0RR1S
  13281. Names6
  13282. Names5
  13283. Names5
  13284. Names5
  13285.     0R1S2S6S10S12S13S14S15S19S22S
  13286. Names7
  13287. Names5
  13288. Names6
  13289. Names6
  13290. InheritedFromDomain
  13291.     0R1S2S6S8S9S10S11S12S
  13292. Find everyone whose domain is the same as yours and strip it off
  13293.     0RR1S
  13294. Names8
  13295. Names7
  13296. Names7
  13297.     0R1S2S8S9S11S13S17S18S19S21S
  13298. Names8a
  13299. Names8
  13300. Names8
  13301.     0R1S2S8S9S11S13S17S18S19S24S
  13302. Names8b
  13303. Names8a
  13304. Names8a
  13305.     0R1S2S8S9S11S13S17S18S19S24S
  13306. Names8c
  13307. Names8b
  13308. Names8b
  13309.     0R1S2S8S9S11S13S17S18S19S24S
  13310. CopyTo
  13311. CopyTo
  13312. InheritedFromDomain
  13313. Names5
  13314. Names5
  13315. Names8c
  13316.     0R1S2S3S10S11S14S15S16S17S18S19S21S23S
  13317. PostedDateh
  13318.     0S0E
  13319. Save As Draft
  13320. MailOptions
  13321.     1S2S3S
  13322. SaveOptions
  13323.     0R1S2S3S
  13324. PostedDateh
  13325.     0S0E
  13326. Save and File
  13327. tmpAction
  13328. SaveAndFile
  13329.     1S2S3S
  13330. IsMailStationeryh
  13331. PostedDateY
  13332. PostedDateh
  13333.     4S5S9S10S16S17S18S19S
  13334. PromptValue
  13335. DefaultMailSaveOptions
  13336. Save when sent
  13337. Do you wish to save a copy of this Memo?
  13338. DefaultMailSaveOptions
  13339.     1S2S5S6S8S14S17S
  13340. SaveOptions
  13341. PromptValue
  13342. SaveOptions
  13343. PromptValue
  13344.     0RR1S2S5S6S9S14S
  13345. tmpAction
  13346. DefaultMailSaveOptions
  13347. Mailing
  13348.     0RR1S2S3S6S7S9S11S
  13349. MailOptions
  13350.     0R1S2S3S
  13351.     0R7S9S
  13352. tmpAction
  13353. SaveOptions
  13354. SendAndFile
  13355.     0RR1S2S3S6S7S9S11S
  13356.     0R7S9S
  13357. PostedDateh
  13358.     5S6S7S8S
  13359. Send And File...
  13360. tmpAction
  13361. DefaultMailSaveOptions
  13362. Mailing
  13363.     1S2S3S6S7S9S11S
  13364. MailOptions
  13365.     0R1S2S3S
  13366.     0RR7S9S
  13367. tmpAction
  13368. SendAndFile
  13369.     0RR1S2S3S
  13370.     0R7S9S
  13371.     0R7S9S
  13372. PostedDateh
  13373.     5S6S7S8S
  13374. Delivery Options...K
  13375. DeliveryOptions
  13376. Delivery Options
  13377.     4S8S
  13378. _ViewIcon
  13379. SenderTag
  13380. SenderTag
  13381. SenderTag
  13382. SenderTag
  13383. SenderTag
  13384. SenderTag
  13385. SenderTag
  13386. SenderTag
  13387. SenderTag
  13388. SenderTag
  13389. SenderTag
  13390.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  13391. PostedDateh
  13392.     5S6S7S8S
  13393. Special Options...
  13394. ReplyDate
  13395. ReplyDate
  13396.     1S2S3S
  13397. ReplyTo
  13398. ReplyTo
  13399.     0R1S2S3S
  13400. (Advanced Options)
  13401. Special Options
  13402.     0R6S10S13S15S
  13403. tmpDisplayReplyInfo
  13404. Please respond
  13405. ReplyTo
  13406. ReplyTo
  13407. ReplyDate
  13408. ReplyDate
  13409.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  13410. DueDateTime
  13411. ReplyDate
  13412.     0R1S2S3S
  13413. PostedDateh
  13414.     5S6S7S8S10S11S15S16S
  13415. Save As Stationery...
  13416. tmpAction
  13417. SaveAsStationery
  13418.     1S2S3S
  13419. IsMailStationeryh
  13420.     0S0E
  13421. _Remove From Folder...
  13422. Categori_zeK
  13423. SSend
  13424. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  13425. '++LotusScript Development Environment:2:5:(Forward):0:1
  13426. Declare Sub Click(Source As Button)
  13427. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13428. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13429. Private Sub BindEvents(Byval Objectname_ As String)
  13430.      Static Source As BUTTON
  13431.      Set Source = Bind(Objectname_)
  13432.      On Event Click From Source Call Click
  13433. End Sub
  13434. '++LotusScript Development Environment:2:2:Click:1:12
  13435. Sub Click(Source As Button)
  13436.      Call CreateNewDoc(NEW_MEMO)
  13437. End Sub
  13438. tmpnewdoc
  13439.     1S2S
  13440. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  13441. '++LotusScript Development Environment:2:5:(Forward):0:1
  13442. Declare Sub Click(Source As Button)
  13443. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13444. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13445. Private Sub BindEvents(Byval Objectname_ As String)
  13446.      Static Source As BUTTON
  13447.      Set Source = Bind(Objectname_)
  13448.      On Event Click From Source Call Click
  13449. End Sub
  13450. '++LotusScript Development Environment:2:2:Click:1:12
  13451. Sub Click(Source As Button)
  13452.      Call CreateNewDoc(NEW_CALENDAR)
  13453. End Sub
  13454. tmpnewdoc
  13455.     1S2S
  13456. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  13457. '++LotusScript Development Environment:2:5:(Forward):0:1
  13458. Declare Sub Click(Source As Button)
  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 BUTTON
  13463.      Set Source = Bind(Objectname_)
  13464.      On Event Click From Source Call Click
  13465. End Sub
  13466. '++LotusScript Development Environment:2:2:Click:1:12
  13467. Sub Click(Source As Button)
  13468.      Call CreateNewDoc(NEW_TASK)
  13469. End Sub
  13470. tmpnewdoc
  13471.     1S2S
  13472. Copy into\New GroupK,
  13473. NewGroup
  13474.     0S0E
  13475. tmpnewdoc
  13476.     1S2S
  13477. O=Lotus Notes
  13478. O=Lotus Notes
  13479. PURSAFO
  13480. |.:#U
  13481. O=Lotus Notes
  13482. CN=Lotus Notes Template Development/O=Lotus Notes
  13483. PURSAFO
  13484.     K$o(\B
  13485. q\wl,
  13486. $$FormPostOpenAction
  13487. ExpireDate
  13488. ReplyDate
  13489. $TypeIcon
  13490. ReplyNumber
  13491. ComposedDate
  13492. $TITLE
  13493. $AUTOLAUNCH
  13494. $INFO
  13495. $SubForms
  13496. $WINDOWTITLE
  13497. $Script
  13498. $$Script_O
  13499. $$ScriptName
  13500. $$FormScript
  13501. $$$FormScript_O
  13502. $BODY
  13503. $ACTIONS
  13504. $SCRIPTOBJ_22
  13505. $SCRIPTOBJ_23
  13506. $SCRIPTOBJ_24
  13507. Times New Roman
  13508. VersionOpt|
  13509.     6S7S9S14S
  13510. $VersionOpt
  13511.     0R1S2S3S
  13512. SavedOnce
  13513.     0R1S2S3S
  13514. PostedDate(
  13515.     0R1S2S3S
  13516. DeliveredDate
  13517.     0R1S2S3S
  13518. $AutoEditMode
  13519.     0R1S2S3S
  13520. MailSaveOptions
  13521.     0R1S2S3S
  13522. VersionOpt
  13523.     0R4S
  13524. New Memo
  13525. Subject
  13526. Subject
  13527. Subject
  13528.     4S6S12S13S14S15S17S21S23S25S26S28S
  13529. '++LotusScript Development Environment:2:5:(Options):0:74
  13530. Option Public
  13531. Use "EmailProcessing"
  13532. Use "DocumentConversions"
  13533. '++LotusScript Development Environment:2:5:(Forward):0:1
  13534. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13535.  AlternateMemo'++LotusScript Development Environment:2:5:(Options):0:66
  13536. '++LotusScript Development Environment:2:5:(Forward):0:1
  13537. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  13538. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  13539. Declare Sub Postmodechange(Source As Notesuidocument)
  13540. Declare Sub Postopen(Source As Notesuidocument)
  13541. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  13542. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13543. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13544. Private Sub BindEvents(Byval Objectname_ As String)
  13545.      Static Source As NOTESUIDOCUMENT
  13546.      Set Source = Bind(Objectname_)
  13547.      On Event Querysave From Source Call Querysave
  13548.      On Event Queryclose From Source Call Queryclose
  13549.      On Event Postmodechange From Source Call Postmodechange
  13550.      On Event Postopen From Source Call Postopen
  13551.      On Event Querymodechange From Source Call Querymodechange
  13552. End Sub
  13553. '++LotusScript Development Environment:2:2:Querysave:1:12
  13554. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  13555.      If Not(source.InPreviewPane) Then
  13556.           Call EmailSave(Continue)
  13557.      End If
  13558. End Sub
  13559. '++LotusScript Development Environment:2:2:Queryclose:1:12
  13560. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  13561.      If Not(source.InPreviewPane) Then
  13562.           Call EmailClose(Continue)
  13563.      End If
  13564. End Sub
  13565. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  13566. Sub Postmodechange(Source As Notesuidocument)
  13567.      
  13568.      Call EmailModeChange
  13569.      
  13570. End Sub
  13571. '++LotusScript Development Environment:2:2:Postopen:1:12
  13572. Sub Postopen(Source As Notesuidocument)
  13573.      Set ws = New NotesUIWorkSpace
  13574.      Set uidoc = source
  13575.      
  13576.      If Not(source.InPreviewPane) Then
  13577.           Call EmailOpen
  13578.           If (note.tmpUseOLE(0) = "1") Then CreateOLEObject
  13579.      End If
  13580. End Sub
  13581. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  13582. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  13583.      If (source.InPreviewPane) Then
  13584.           Continue = False
  13585.      End If
  13586. End Sub
  13587.     Always Hidden: 
  13588. Principal
  13589. CalendarProfile
  13590. Owner
  13591.     1S2S3S7S
  13592. FromPerson memo is from.
  13593. DefaultLogo
  13594. StdNotesLtrGateway
  13595.     4S9S13S16S18SLogo
  13596.     0S0E
  13597.     0S0E
  13598. Encrypt
  13599. MailSaveOptions
  13600.     1S2S3S
  13601. MailSaveOptions
  13602. DefaultMailSaveOptions
  13603. $KeepPrivate
  13604. $KeepPrivate
  13605. $KeepPrivate
  13606.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  13607. MailEditor
  13608. AltEditorProgID
  13609.     1S2S
  13610. OriginalEditorh
  13611. MailEditor
  13612. OriginalEditor
  13613. MailEditor
  13614.     0R7S10S11S13S14S15S18S19S20S
  13615. tmpUseOLE
  13616. OLEBody
  13617. $OLEObjField
  13618. $OLEObjRichTextField
  13619. AltEditorProgID
  13620.     0S0E
  13621. $OLEObjProgID
  13622. $HideMailHeader
  13623.     0S0E
  13624.     From:    
  13625. Principal
  13626. Principal
  13627.     1S2S5S6S8S10S
  13628.     0R1S2S8S
  13629.     0R1S2S5S6S8S14S18S
  13630.     0R1S2S5S6S8S14S18S
  13631. SentBy
  13632. X400FreeForm^
  13633.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  13634. SentBy
  13635. FromDomain
  13636. FromDomain
  13637. FromDomain
  13638. FromDomain
  13639.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  13640. FromName
  13641. Principal
  13642. Principal
  13643.     0RR1S2S9S11S15S
  13644. FromStops
  13645.     0R1S2S6S
  13646. FromName
  13647. FromStops
  13648. FromStops
  13649. FromStops
  13650.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  13651.      on 
  13652. PostedDateh
  13653. PostedDate
  13654.     7S9S
  13655. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  13656. tmpDate
  13657. $HideMailHeader
  13658.     4S5S6S8S10S11S
  13659.     From:    
  13660. tmpDisplayFrom_Preview
  13661. tmpDisplayFrom_NoLogo
  13662.      on 
  13663. PostedDateh
  13664. PostedDate
  13665.     7S9S
  13666. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  13667. ReplyDate
  13668. ReplyTo
  13669. $HideMailHeader
  13670.     2S3S4S5S6S7S9S10S
  13671. Please respond
  13672. ReplyTo
  13673. ReplyTo
  13674. ReplyDate
  13675. ReplyDate
  13676.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  13677. $HideMailHeader
  13678. Principal
  13679. Principal
  13680. Principal
  13681. Principal
  13682. Principal
  13683.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  13684.     Sent by:    
  13685. FromDomain
  13686. FromDomain
  13687. FromDomain
  13688. FromDomain
  13689.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  13690. FromName
  13691.     0RR1S2S6S
  13692. FromStops
  13693.     0R1S2S6S
  13694. FromName
  13695. FromStops
  13696. FromStops
  13697. FromStops
  13698.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  13699.     To:    
  13700. SendTo}
  13701.     0S0E
  13702. SendTo^
  13703. No names found to send mail.{
  13704.     1S6S7S8S9S11S16S
  13705. SendToList of primary people to send memo.
  13706.     cc:    
  13707. CopyTo}
  13708.     0S0E
  13709. CopyToList of people to send a copy of the memo.
  13710. DeliveredDate
  13711. BlindCopyTo
  13712. (bcc: 
  13713. BlindCopyTo
  13714.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  13715.     bcc:    
  13716. BlindCopyTo
  13717.     0S0E
  13718. BlindCopyToList of undisclosed people to send copies of memo.
  13719.     Subject:    
  13720. PhoneCaller
  13721. Phone Call: 
  13722. PhoneCaller
  13723. Subject
  13724.     7S8S9S11SSubjectSubject of memo.
  13725. tmpUseOLE
  13726.     1S2S
  13727. OLEBody
  13728. tmpUseOLE
  13729.     1S2S
  13730. Edit Document
  13731. ForwardK 
  13732.     0S0E
  13733. New Memo.
  13734.     0S0E
  13735. Delete 
  13736.     0S0E
  13737. _Move To Folder...
  13738. Delivery Information...Kz
  13739. DeliveryInfo
  13740. Delivery Information
  13741.     4S5S6S7S8S9S10S12S
  13742. _Forward
  13743. Reply
  13744. Reply
  13745.     0S0E
  13746. Reply With History
  13747. Reply with History
  13748. This document is truncated.
  13749.     4S8S10S13S
  13750. Reply with history
  13751. Close
  13752.     0S0E
  13753. Envelope...K@
  13754. (OLEMailFields)
  13755.     0S0E
  13756. PostedDateh
  13757. tmpUseOLE
  13758.     5S6S7S8S11S12S13S
  13759. Address... 
  13760.     0S0E
  13761. PostedDateh
  13762.     5S6S7S8S
  13763. Save As Draft
  13764. tmpAction
  13765. SaveAsDraft
  13766.     1S2S3S
  13767. IsMailStationeryh
  13768. PostedDateh
  13769.     4S5S
  13770. Save and File
  13771.     7S9S
  13772. tmpAction
  13773. SaveAndFile
  13774.     0R1S2S3S
  13775. IsMailStationeryh
  13776. PostedDateY
  13777. PostedDateh
  13778.     4S5S9S10S16S17S18S19S
  13779. PromptValue
  13780. DefaultMailSaveOptions
  13781. Save when sent
  13782. Do you wish to save a copy of this Memo?
  13783. DefaultMailSaveOptions
  13784.     1S2S5S6S8S14S17S
  13785. SaveOptions
  13786. PromptValue
  13787. SaveOptions
  13788. PromptValue
  13789.     0RR1S2S5S6S9S14S
  13790. SendTo^
  13791. CopyTo^
  13792. BlindCopyTo
  13793. (OLEMailFields)
  13794.     0RR6S7S8S9S13S14S15S16S20S21S22S23S36S37S42S44S
  13795. tmpAction
  13796. DefaultMailSaveOptions
  13797. Mailing
  13798.     0RR1S2S3S6S7S9S11S
  13799. MailOptions
  13800.     0R1S2S3S
  13801.     0R7S9S
  13802. tmpAction
  13803. SaveOptions
  13804. SendAndFile
  13805.     0RR1S2S3S6S7S9S11S
  13806.     0R7S9S
  13807. PostedDateh
  13808. IsMailStationeryh
  13809.     5S6S7S8S10S11S
  13810. Send And File...p
  13811. tmpAction
  13812. DefaultMailSaveOptions
  13813. Mailing
  13814.     1S2S3S6S7S9S11S
  13815. MailOptions
  13816.     0R1S2S3S
  13817. SendTo^
  13818. CopyTo^
  13819. BlindCopyTo
  13820. (OLEMailFields)
  13821.     0RR6S7S8S9S13S14S15S16S20S21S22S23S36S37S42S44S
  13822.     0RR7S9S
  13823. tmpAction
  13824. SendAndFile
  13825.     0RR1S2S3S
  13826.     0R7S9S
  13827.     0R7S9S
  13828. PostedDateh
  13829. IsMailStationeryh
  13830.     5S6S7S8S10S11S
  13831. Delivery Options...K
  13832. DeliveryOptions
  13833. Delivery Options
  13834.     4S8S
  13835. _ViewIcon
  13836. SenderTag
  13837. SenderTag
  13838. SenderTag
  13839. SenderTag
  13840. SenderTag
  13841. SenderTag
  13842. SenderTag
  13843. SenderTag
  13844. SenderTag
  13845. SenderTag
  13846. SenderTag
  13847.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  13848. PostedDateh
  13849.     5S6S7S8S
  13850. Special Options...6
  13851. ReplyDate
  13852. ReplyDate
  13853.     1S2S3S
  13854. ReplyTo
  13855. ReplyTo
  13856.     0R1S2S3S
  13857. (Advanced Options)
  13858. Special Options
  13859.     0R6S10S13S15S
  13860. tmpDisplayReplyInfo
  13861. Please respond
  13862. ReplyTo
  13863. ReplyTo
  13864. ReplyDate
  13865. ReplyDate
  13866.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  13867. DueDateTime
  13868. ReplyDate
  13869. ReplyDate
  13870.     0R1S2S3S6S7S9S11S
  13871. PostedDateh
  13872.     5S6S7S8S
  13873. Save As Stationery...
  13874. tmpAction
  13875. SaveAsStationery
  13876.     1S2S3S
  13877. IsMailStationeryh
  13878.     0S0E
  13879. _Remove From Folder...
  13880. Categori_zeK
  13881. SSend
  13882. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  13883. '++LotusScript Development Environment:2:5:(Forward):0:1
  13884. Declare Sub Click(Source As Button)
  13885. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13886. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13887. Private Sub BindEvents(Byval Objectname_ As String)
  13888.      Static Source As BUTTON
  13889.      Set Source = Bind(Objectname_)
  13890.      On Event Click From Source Call Click
  13891. End Sub
  13892. '++LotusScript Development Environment:2:2:Click:1:12
  13893. Sub Click(Source As Button)
  13894.      Call CreateNewDoc(NEW_MEMO)
  13895. End Sub
  13896. tmpnewdoc
  13897.     1S2S
  13898. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  13899. '++LotusScript Development Environment:2:5:(Forward):0:1
  13900. Declare Sub Click(Source As Button)
  13901. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13902. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13903. Private Sub BindEvents(Byval Objectname_ As String)
  13904.      Static Source As BUTTON
  13905.      Set Source = Bind(Objectname_)
  13906.      On Event Click From Source Call Click
  13907. End Sub
  13908. '++LotusScript Development Environment:2:2:Click:1:12
  13909. Sub Click(Source As Button)
  13910.      Call CreateNewDoc(NEW_CALENDAR)
  13911. End Sub
  13912. tmpnewdoc
  13913.     1S2S
  13914. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  13915. '++LotusScript Development Environment:2:5:(Forward):0:1
  13916. Declare Sub Click(Source As Button)
  13917. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13918. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13919. Private Sub BindEvents(Byval Objectname_ As String)
  13920.      Static Source As BUTTON
  13921.      Set Source = Bind(Objectname_)
  13922.      On Event Click From Source Call Click
  13923. End Sub
  13924. '++LotusScript Development Environment:2:2:Click:1:12
  13925. Sub Click(Source As Button)
  13926.      Call CreateNewDoc(NEW_TASK)
  13927. End Sub
  13928. tmpnewdoc
  13929.     1S2S
  13930. Copy into\New GroupK,
  13931. NewGroup
  13932.     0S0E
  13933. tmpnewdoc
  13934.     1S2S
  13935. O=Lotus Notes
  13936. O=Lotus Notes
  13937. PURSAFO
  13938. |.:#U
  13939. O=Lotus Notes
  13940. CN=Lotus Notes Template Development/O=Lotus Notes
  13941. PURSAFO
  13942. $$FormPostOpenAction
  13943. $TypeIcon
  13944. ExpireDate
  13945. ReplyDate
  13946. ComposedDate
  13947. $TITLE
  13948. $INFO
  13949. $WINDOWTITLE
  13950. $Script
  13951. $$ScriptName
  13952. $$FormScript
  13953. $BODY
  13954. $ACTIONS
  13955. VersionOpt|
  13956.     6S7S9S14S
  13957. $VersionOpt
  13958.     0R1S2S3S
  13959. SavedOnce
  13960.     0R1S2S3S
  13961. PostedDate(
  13962.     0R1S2S3S
  13963. DeliveredDate
  13964.     0R1S2S3S
  13965. $AutoEditMode
  13966.     0R1S2S3S
  13967. MailSaveOptions
  13968.     0R1S2S3S
  13969. VersionOpt
  13970.     0R4S
  13971. "Small Fonts
  13972. New Memo
  13973. Subject
  13974. Subject
  13975. Subject
  13976.     4S6S12S13S14S15S17S21S23S25S26S28S
  13977. '++LotusScript Development Environment:2:5:(Options):0:74
  13978. Option Public
  13979. Use "EmailProcessing"
  13980. Use "DocumentConversions"
  13981. '++LotusScript Development Environment:2:5:(Forward):0:1
  13982. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13983.  Memo'++LotusScript Development Environment:2:5:(Options):0:66
  13984. '++LotusScript Development Environment:2:5:(Forward):0:1
  13985. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  13986. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  13987. Declare Sub Postmodechange(Source As Notesuidocument)
  13988. Declare Sub Postopen(Source As Notesuidocument)
  13989. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13990. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13991. Private Sub BindEvents(Byval Objectname_ As String)
  13992.      Static Source As NOTESUIDOCUMENT
  13993.      Set Source = Bind(Objectname_)
  13994.      On Event Querysave From Source Call Querysave
  13995.      On Event Queryclose From Source Call Queryclose
  13996.      On Event Postmodechange From Source Call Postmodechange
  13997.      On Event Postopen From Source Call Postopen
  13998. End Sub
  13999. '++LotusScript Development Environment:2:2:Querysave:1:12
  14000. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  14001.      
  14002.      Call EmailSave(Continue)
  14003.      
  14004. End Sub
  14005. '++LotusScript Development Environment:2:2:Queryclose:1:12
  14006. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  14007.      
  14008.      Call EmailClose(Continue)
  14009.      
  14010. End Sub
  14011. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  14012. Sub Postmodechange(Source As Notesuidocument)
  14013.      
  14014.      Call EmailModeChange
  14015.      
  14016. End Sub
  14017. '++LotusScript Development Environment:2:2:Postopen:1:12
  14018. Sub Postopen(Source As Notesuidocument)
  14019.      
  14020.      Set ws = New NotesUIWorkSpace
  14021.      Set uidoc = source
  14022.      
  14023.      Call EmailOpen
  14024.      
  14025. End Sub
  14026.     Always Hidden: 
  14027. Principal
  14028. CalendarProfile
  14029. Owner
  14030.     1S2S3S7S
  14031. FromPerson memo is from.
  14032. DefaultLogo
  14033. StdNotesLtrGateway
  14034.     4S9S13S16S18SLogo
  14035.     0S0E
  14036.     0S0E
  14037. Encrypt
  14038. MailSaveOptions
  14039.     1S2S3S
  14040. MailSaveOptions
  14041. DefaultMailSaveOptions
  14042. $KeepPrivate
  14043. $KeepPrivate
  14044. $KeepPrivate
  14045.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  14046. $HideMailHeader
  14047.     0S0E
  14048.     From:    
  14049. Principal
  14050. Principal
  14051.     1S2S5S6S8S10S
  14052.     0R1S2S8S
  14053.     0R1S2S5S6S8S14S18S
  14054.     0R1S2S5S6S8S14S18S
  14055. SentBy
  14056. X400FreeForm^
  14057.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  14058. SentBy
  14059. FromDomain
  14060. FromDomain
  14061. FromDomain
  14062. FromDomain
  14063.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  14064. FromName
  14065. Principal
  14066. Principal
  14067.     0RR1S2S9S11S15S
  14068. FromStops
  14069.     0R1S2S6S
  14070. FromName
  14071. FromStops
  14072. FromStops
  14073. FromStops
  14074.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  14075.      on 
  14076. PostedDateh
  14077. PostedDate
  14078.     7S9S
  14079. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  14080. $HideMailHeader
  14081. StdNotesLtr16
  14082.     7S9S10S11S13S15S
  14083. tmpDate
  14084. $HideMailHeader
  14085.     4S5S6S8S10S11S
  14086.     From:    
  14087. tmpDisplayFrom_Preview
  14088. tmpDisplayFrom_NoLogo
  14089.      on 
  14090. PostedDateh
  14091. PostedDate
  14092.     7S9S
  14093. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  14094. ReplyDate
  14095. ReplyTo
  14096. $HideMailHeader
  14097.     2S3S4S5S6S7S9S10S
  14098. Please respond
  14099. ReplyTo
  14100. ReplyTo
  14101. ReplyDate
  14102. ReplyDate
  14103.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  14104. $HideMailHeader
  14105. Principal
  14106. Principal
  14107. Principal
  14108. Principal
  14109. Principal
  14110.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  14111.     Sent by:    
  14112. FromDomain
  14113. FromDomain
  14114. FromDomain
  14115. FromDomain
  14116.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  14117. FromName
  14118.     0RR1S2S6S
  14119. FromStops
  14120.     0R1S2S6S
  14121. FromName
  14122. FromStops
  14123. FromStops
  14124. FromStops
  14125.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  14126. SendTo
  14127. CopyTo
  14128.   cc:  
  14129. CopyTo
  14130.     1S2S8S13S14S2E17S18S21S22S28S31S
  14131.     To:    
  14132. SendTo}
  14133.     0S0E
  14134. SendTo^
  14135. No names found to send mail.{
  14136.     1S6S7S8S9S11S16S
  14137. SendToList of primary people to send memo.
  14138.     cc:    
  14139. CopyTo}
  14140.     0S0E
  14141. CopyToList of people to send a copy of the memo.
  14142. DeliveredDate
  14143. BlindCopyTo
  14144. (bcc: 
  14145. BlindCopyTo
  14146.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  14147.     bcc:    
  14148. BlindCopyTo
  14149.     0S0E
  14150. BlindCopyToList of undisclosed people to send copies of memo.
  14151. $LotusFaxMemoSubform | 1.0 | $LotusFaxMemoSubform
  14152.     Subject:    
  14153. PhoneCaller
  14154. Phone Call: 
  14155. PhoneCaller
  14156. Subject
  14157.     7S8S9S11SSubjectSubject of memo.
  14158. $HideMailHeader
  14159. PostedDate
  14160. SenderTag
  14161. Moods
  14162.     7S9S10S11S12S13S15S16S17S18S21S23S
  14163. Edit Document
  14164. ForwardK 
  14165.     0S0E
  14166. New Memo.
  14167.     0S0E
  14168. Delete 
  14169.     0S0E
  14170. _Move To Folder...
  14171. Delivery Information...Kz
  14172. DeliveryInfo
  14173. Delivery Information
  14174.     4S5S6S7S8S9S10S12S
  14175. _Forward
  14176. Reply
  14177. Reply
  14178.     0S0E
  14179. Reply With History
  14180. Reply with History
  14181. This document is truncated.
  14182.     4S8S10S13S
  14183. Reply with history
  14184. Address... 
  14185.     0S0E
  14186. PostedDateh
  14187.     5S6S7S8S
  14188. Close
  14189.     0S0E
  14190. IsMailStationeryh
  14191. PostedDateh
  14192.     6S7S
  14193. Save As Draft
  14194. tmpAction
  14195. SaveAsDraft
  14196.     1S2S3S
  14197. IsMailStationeryh
  14198. PostedDateh
  14199.     4S5S
  14200. Save and File
  14201. tmpAction
  14202. SaveAndFile
  14203.     1S2S3S
  14204. IsMailStationeryh
  14205. PostedDateY
  14206. PostedDateh
  14207.     4S5S9S10S16S17S18S19S
  14208. PromptValue
  14209. DefaultMailSaveOptions
  14210. Save when sent
  14211. Do you wish to save a copy of this Memo?
  14212. DefaultMailSaveOptions
  14213.     1S2S5S6S8S14S17S
  14214. SaveOptions
  14215. PromptValue
  14216. SaveOptions
  14217. PromptValue
  14218.     0RR1S2S5S6S9S14S
  14219. tmpAction
  14220. DefaultMailSaveOptions
  14221. Mailing
  14222.     0RR1S2S3S6S7S9S11S
  14223. MailOptions
  14224.     0R1S2S3S
  14225.     0R7S9S
  14226. tmpAction
  14227. SaveOptions
  14228. SendAndFile
  14229.     0RR1S2S3S6S7S9S11S
  14230.     0R7S9S
  14231. PostedDateh
  14232. IsMailStationeryh
  14233.     5S6S7S8S10S11S
  14234. Send And File...
  14235. tmpAction
  14236. DefaultMailSaveOptions
  14237. Mailing
  14238.     1S2S3S6S7S9S11S
  14239. MailOptions
  14240.     0R1S2S3S
  14241.     0RR7S9S
  14242. tmpAction
  14243. SendAndFile
  14244.     0RR1S2S3S
  14245.     0R7S9S
  14246.     0R7S9S
  14247. PostedDateh
  14248. IsMailStationeryh
  14249.     5S6S7S8S10S11S
  14250. Delivery Options...K
  14251. DeliveryOptions
  14252. Delivery Options
  14253.     4S8S
  14254. _ViewIcon
  14255. SenderTag
  14256. SenderTag
  14257. SenderTag
  14258. SenderTag
  14259. SenderTag
  14260. SenderTag
  14261. SenderTag
  14262. SenderTag
  14263. SenderTag
  14264. SenderTag
  14265. SenderTag
  14266.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  14267. PostedDateh
  14268.     5S6S7S8S
  14269. Special Options...6
  14270. ReplyDate
  14271. ReplyDate
  14272.     1S2S3S
  14273. ReplyTo
  14274. ReplyTo
  14275.     0R1S2S3S
  14276. (Advanced Options)
  14277. Special Options
  14278.     0R6S10S13S15S
  14279. tmpDisplayReplyInfo
  14280. Please respond
  14281. ReplyTo
  14282. ReplyTo
  14283. ReplyDate
  14284. ReplyDate
  14285.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  14286. DueDateTime
  14287. ReplyDate
  14288. ReplyDate
  14289.     0R1S2S3S6S7S9S11S
  14290. PostedDateh
  14291.     5S6S7S8S10S11S15S16S
  14292. Save As Stationery...
  14293. tmpAction
  14294. SaveAsStationery
  14295.     1S2S3S
  14296. IsMailStationeryh
  14297.     0S0E
  14298. _Remove From Folder...
  14299. Categori_zeK
  14300. SSend
  14301. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  14302. '++LotusScript Development Environment:2:5:(Forward):0:1
  14303. Declare Sub Click(Source As Button)
  14304. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14305. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14306. Private Sub BindEvents(Byval Objectname_ As String)
  14307.      Static Source As BUTTON
  14308.      Set Source = Bind(Objectname_)
  14309.      On Event Click From Source Call Click
  14310. End Sub
  14311. '++LotusScript Development Environment:2:2:Click:1:12
  14312. Sub Click(Source As Button)
  14313.      Call CreateNewDoc(NEW_MEMO)
  14314. End Sub
  14315. tmpnewdoc
  14316.     1S2S
  14317. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  14318. '++LotusScript Development Environment:2:5:(Forward):0:1
  14319. Declare Sub Click(Source As Button)
  14320. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14321. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14322. Private Sub BindEvents(Byval Objectname_ As String)
  14323.      Static Source As BUTTON
  14324.      Set Source = Bind(Objectname_)
  14325.      On Event Click From Source Call Click
  14326. End Sub
  14327. '++LotusScript Development Environment:2:2:Click:1:12
  14328. Sub Click(Source As Button)
  14329.      Call CreateNewDoc(NEW_CALENDAR)
  14330. End Sub
  14331. tmpnewdoc
  14332.     1S2S
  14333. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  14334. '++LotusScript Development Environment:2:5:(Forward):0:1
  14335. Declare Sub Click(Source As Button)
  14336. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14337. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14338. Private Sub BindEvents(Byval Objectname_ As String)
  14339.      Static Source As BUTTON
  14340.      Set Source = Bind(Objectname_)
  14341.      On Event Click From Source Call Click
  14342. End Sub
  14343. '++LotusScript Development Environment:2:2:Click:1:12
  14344. Sub Click(Source As Button)
  14345.      Call CreateNewDoc(NEW_TASK)
  14346. End Sub
  14347. tmpnewdoc
  14348.     1S2S
  14349. Copy into\New GroupK,
  14350. NewGroup
  14351.     0S0E
  14352. tmpnewdoc
  14353.     1S2S
  14354. O=Lotus Notes
  14355. O=Lotus Notes
  14356. PURSAFO
  14357. |.:#U
  14358. O=Lotus Notes
  14359. CN=Lotus Notes Template Development/O=Lotus Notes
  14360. PURSAFO
  14361. G_rdo
  14362. $$FormPostOpenAction
  14363. $TypeIcon
  14364. ExpireDate
  14365. ReplyDate
  14366. ComposedDate
  14367. $TITLE
  14368. $INFO
  14369. $SubForms
  14370. $WINDOWTITLE
  14371. $Script
  14372. $$Script_O
  14373. $$ScriptName
  14374. $$FormScript
  14375. $$$FormScript_O
  14376. $BODY
  14377. $ACTIONS
  14378. $SCRIPTOBJ_21
  14379. $SCRIPTOBJ_22
  14380. $SCRIPTOBJ_23
  14381. DeliveredDate
  14382. PostedDate
  14383. PostedDateY
  14384. IsMailStationeryh
  14385. _ViewIcon
  14386. _ViewIcon
  14387. Importance
  14388. Importance
  14389. _ViewIcon
  14390. _ViewIcon
  14391. $TypeIcon
  14392.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  14393. SentBy
  14394. Principal
  14395. Principal
  14396.     1S2S5S6S8S10S
  14397. Attendees
  14398. RequiredAttendees
  14399. OptionalAttendees
  14400.     0R1S2S5S6S
  14401. DeliveredDate
  14402. SentBy
  14403. Attendees
  14404. Attendees
  14405. SendTo
  14406. SentBy
  14407. SendTo
  14408.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  14409.     0R1S2S8S
  14410.     0R1S2S15S16S
  14411.     0R1S2S5S6S8S14S18S
  14412.     0R1S2S5S6S8S14S18S
  14413. Person
  14414. X400FreeForm^
  14415.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  14416. Person2
  14417. Person
  14418. Person
  14419. Person
  14420. Person
  14421.     0R1S2S12S13S22S34S
  14422. Delivery Report
  14423. NonDelivery Report
  14424. Trace Report
  14425. Mail Router
  14426. Person2
  14427.     0R3S4S5S6S7S8S10S12S
  14428. DeliveredDate
  14429. DeliveredDate
  14430. PostedDate
  14431. PostedDate
  14432.     3S4S6S8S9S10S12S14S
  14433. $ContentIconh
  14434. $ContentIcon
  14435. Froma
  14436.  pager 
  14437. SendToa
  14438.  pager 
  14439. message.wav
  14440. vmsg_hdr.wav
  14441. .wavG
  14442. .tifG
  14443. $ContentIconh
  14444. $ContentIcon
  14445.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  14446. NonDelivery Report
  14447. DELIVERY FAILURE: 
  14448. FailureReason
  14449. PhoneCaller
  14450. Phone Call: 
  14451. PhoneCaller
  14452. Delivery Report
  14453. DELIVERED: 
  14454. Subject
  14455. Return Receipt
  14456. RECEIVED: 
  14457. Subject
  14458. Subject
  14459.     3S4S6S7S8S10S15S16S17S19S20S21S23S24S25S27S28S29S31S32S33S35S
  14460. $27$39$13$32Subject$14$Conflict$REF
  14461. HiddenDocument
  14462. $MessageType
  14463. IsMailStationeryY
  14464.     L1S2S3S4S5S8S2E9S
  14465. DeliveredDate
  14466. PostedDate
  14467. PostedDateY
  14468. IsMailStationeryh
  14469. _ViewIcon
  14470. _ViewIcon
  14471. Importance
  14472. Importance
  14473. _ViewIcon
  14474. _ViewIcon
  14475. $TypeIcon
  14476.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  14477. $39Who
  14478. SentBy
  14479. Principal
  14480. Principal
  14481.     1S2S5S6S8S10S
  14482. Attendees
  14483. RequiredAttendees
  14484. OptionalAttendees
  14485.     0R1S2S5S6S
  14486. DeliveredDate
  14487. SentBy
  14488. Attendees
  14489. Attendees
  14490. SendTo
  14491. SentBy
  14492. SendTo
  14493.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  14494.     0R1S2S8S
  14495.     0R1S2S15S16S
  14496.     0R1S2S5S6S8S14S18S
  14497.     0R1S2S5S6S8S14S18S
  14498. Person
  14499. X400FreeForm^
  14500.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  14501. Person2
  14502. Person
  14503. Person
  14504. Person
  14505. Person
  14506.     0R1S2S12S13S22S34S
  14507. Delivery Report
  14508. NonDelivery Report
  14509. Trace Report
  14510. Mail Router
  14511. Person2
  14512.     0R3S4S5S6S7S8S10S12S
  14513. $13Date
  14514. DeliveredDate
  14515. DeliveredDate
  14516. PostedDate
  14517. PostedDate
  14518.     3S4S6S8S9S10S12S14S$32F
  14519. $ContentIconh
  14520. $ContentIcon
  14521. Froma
  14522.  pager 
  14523. SendToa
  14524.  pager 
  14525. message.wav
  14526. vmsg_hdr.wav
  14527. .wavG
  14528. .tifG
  14529. $ContentIconh
  14530. $ContentIcon
  14531.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105SSubject$14Subject~
  14532. NonDelivery Report
  14533. DELIVERY FAILURE: 
  14534. FailureReason
  14535. PhoneCaller
  14536. Phone Call: 
  14537. PhoneCaller
  14538. Delivery Report
  14539. DELIVERED: 
  14540. Subject
  14541. Return Receipt
  14542. RECEIVED: 
  14543. Subject
  14544. Subject
  14545.     3S4S6S7S8S10S15S16S17S19S20S21S23S24S25S27S28S29S31S32S33S35S&
  14546. Categori_zeK
  14547. New Memo.
  14548.     0S0E
  14549. Delete 
  14550.     0S0E
  14551. Move to Folder...
  14552.     0S0E
  14553. _Edit Document
  14554. _Forward
  14555. Reply
  14556. Reply
  14557.     0S0E
  14558. Reply With History@
  14559. Reply with history
  14560.     0S0E
  14561. _Move to Folder...
  14562. _Remove from Folder...
  14563. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  14564. '++LotusScript Development Environment:2:5:(Forward):0:1
  14565. Declare Sub Click(Source As Button)
  14566. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14567. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14568. Private Sub BindEvents(Byval Objectname_ As String)
  14569.      Static Source As BUTTON
  14570.      Set Source = Bind(Objectname_)
  14571.      On Event Click From Source Call Click
  14572. End Sub
  14573. '++LotusScript Development Environment:2:2:Click:1:12
  14574. Sub Click(Source As Button)
  14575.      Call CreateNewDoc(NEW_MEMO)
  14576. End Sub
  14577. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  14578. '++LotusScript Development Environment:2:5:(Forward):0:1
  14579. Declare Sub Click(Source As Button)
  14580. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14581. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14582. Private Sub BindEvents(Byval Objectname_ As String)
  14583.      Static Source As BUTTON
  14584.      Set Source = Bind(Objectname_)
  14585.      On Event Click From Source Call Click
  14586. End Sub
  14587. '++LotusScript Development Environment:2:2:Click:1:12
  14588. Sub Click(Source As Button)
  14589.      Call CreateNewDoc(NEW_CALENDAR)
  14590. End Sub
  14591. tmpnewdoc
  14592.     1S2S
  14593. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  14594. '++LotusScript Development Environment:2:5:(Forward):0:1
  14595. Declare Sub Click(Source As Button)
  14596. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14597. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14598. Private Sub BindEvents(Byval Objectname_ As String)
  14599.      Static Source As BUTTON
  14600.      Set Source = Bind(Objectname_)
  14601.      On Event Click From Source Call Click
  14602. End Sub
  14603. '++LotusScript Development Environment:2:2:Click:1:12
  14604. Sub Click(Source As Button)
  14605.      Call CreateNewDoc(NEW_TASK)
  14606. End Sub
  14607. tmpnewdoc
  14608.     1S2S
  14609. Copy into\New GroupK,
  14610. NewGroup
  14611.     0S0E
  14612. tmpnewdoc
  14613.     1S2S
  14614. '++LotusScript Development Environment:2:5:(Options):0:74
  14615. Option Public
  14616. Use "DocumentConversions"
  14617. '++LotusScript Development Environment:2:5:(Forward):0:1
  14618. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14619. O=Lotus Notes
  14620. O=Lotus Notes
  14621. PURSAFO
  14622. |.:#U
  14623. O=Lotus Notes
  14624. CN=Lotus Notes Template Development/O=Lotus Notes
  14625. PURSAFO
  14626. $TITLE
  14627. $Index
  14628. $Formula
  14629. $FormulaClass
  14630. $VIEWFORMAT
  14631. $Comment
  14632. $ACTIONS
  14633. $SCRIPTOBJ_11
  14634. $SCRIPTOBJ_12
  14635. $SCRIPTOBJ_13
  14636. $ViewGlobalScript
  14637. $ViewGlobalScript_O
  14638. DeliveredDate
  14639. PostedDate
  14640. PostedDateY
  14641. IsMailStationeryh
  14642. _ViewIcon
  14643. _ViewIcon
  14644. Importance
  14645. Importance
  14646. _ViewIcon
  14647. _ViewIcon
  14648. $TypeIcon
  14649.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  14650. SentBy
  14651. Principal
  14652. Principal
  14653.     1S2S5S6S8S10S
  14654. Attendees
  14655. RequiredAttendees
  14656. OptionalAttendees
  14657.     0R1S2S5S6S
  14658. DeliveredDate
  14659. SentBy
  14660. Attendees
  14661. Attendees
  14662. SendTo
  14663. SentBy
  14664. SendTo
  14665.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  14666.     0R1S2S8S
  14667.     0R1S2S15S16S
  14668.     0R1S2S5S6S8S14S18S
  14669.     0R1S2S5S6S8S14S18S
  14670. Person
  14671. X400FreeForm^
  14672.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  14673. Person2
  14674. Person
  14675. Person
  14676. Person
  14677. Person
  14678.     0R1S2S12S13S22S34S
  14679. Delivery Report
  14680. NonDelivery Report
  14681. Trace Report
  14682. Mail Router
  14683. Person2
  14684.     0R3S4S5S6S7S8S10S12S
  14685. DeliveredDate
  14686. DeliveredDate
  14687. PostedDate
  14688. PostedDate
  14689.     3S4S6S8S9S10S12S14S
  14690. $ContentIconh
  14691. $ContentIcon
  14692. Froma
  14693.  pager 
  14694. SendToa
  14695.  pager 
  14696. message.wav
  14697. vmsg_hdr.wav
  14698. .wavG
  14699. .tifG
  14700. $ContentIconh
  14701. $ContentIcon
  14702.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  14703. NonDelivery Report
  14704. DELIVERY FAILURE: 
  14705. FailureReason
  14706. Delivery Report
  14707. DELIVERED: 
  14708. Subject
  14709. Return Receipt
  14710. RECEIVED: 
  14711. Subject
  14712. ReturnNonReceipt
  14713. NOT RECEIVED: 
  14714. Subject
  14715. Subject
  14716.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S
  14717. $93$104$68$92$74$Conflict
  14718. DeliveredDate
  14719. PostedDate
  14720. PostedDateY
  14721. IsMailStationeryh
  14722. _ViewIcon
  14723. _ViewIcon
  14724. Importance
  14725. Importance
  14726. _ViewIcon
  14727. _ViewIcon
  14728. $TypeIcon
  14729.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  14730. $104Who
  14731. SentBy
  14732. Principal
  14733. Principal
  14734.     1S2S5S6S8S10S
  14735. Attendees
  14736. RequiredAttendees
  14737. OptionalAttendees
  14738.     0R1S2S5S6S
  14739. DeliveredDate
  14740. SentBy
  14741. Attendees
  14742. Attendees
  14743. SendTo
  14744. SentBy
  14745. SendTo
  14746.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  14747.     0R1S2S8S
  14748.     0R1S2S15S16S
  14749.     0R1S2S5S6S8S14S18S
  14750.     0R1S2S5S6S8S14S18S
  14751. Person
  14752. X400FreeForm^
  14753.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  14754. Person2
  14755. Person
  14756. Person
  14757. Person
  14758. Person
  14759.     0R1S2S12S13S22S34S
  14760. Delivery Report
  14761. NonDelivery Report
  14762. Trace Report
  14763. Mail Router
  14764. Person2
  14765.     0R3S4S5S6S7S8S10S12S
  14766. $68Date
  14767. DeliveredDate
  14768. DeliveredDate
  14769. PostedDate
  14770. PostedDate
  14771.     3S4S6S8S9S10S12S14S$92F
  14772. $ContentIconh
  14773. $ContentIcon
  14774. Froma
  14775.  pager 
  14776. SendToa
  14777.  pager 
  14778. message.wav
  14779. vmsg_hdr.wav
  14780. .wavG
  14781. .tifG
  14782. $ContentIconh
  14783. $ContentIcon
  14784.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$74Subject
  14785. NonDelivery Report
  14786. DELIVERY FAILURE: 
  14787. FailureReason
  14788. Delivery Report
  14789. DELIVERED: 
  14790. Subject
  14791. Return Receipt
  14792. RECEIVED: 
  14793. Subject
  14794. ReturnNonReceipt
  14795. NOT RECEIVED: 
  14796. Subject
  14797. Subject
  14798.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S&
  14799. New Memo.
  14800.     0S0E
  14801. Delete 
  14802.     0S0E
  14803. Move To Folder...
  14804.     0S0E
  14805. _Forward
  14806. Reply
  14807. Reply
  14808.     0S0E
  14809. Reply With History@
  14810. Reply with history
  14811.     0S0E
  14812. Categori_zeK
  14813. _Edit Document
  14814. Send    
  14815. Resend
  14816. NonDelivery Report
  14817. Not a Delivery Failure Report
  14818. You cannot Resend a message unless it is a Delivery Failure Report.
  14819.     6S12S17S23S
  14820. _Move To Folder...
  14821. _Remove From Folder...
  14822. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  14823. '++LotusScript Development Environment:2:5:(Forward):0:1
  14824. Declare Sub Click(Source As Button)
  14825. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14826. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14827. Private Sub BindEvents(Byval Objectname_ As String)
  14828.      Static Source As BUTTON
  14829.      Set Source = Bind(Objectname_)
  14830.      On Event Click From Source Call Click
  14831. End Sub
  14832. '++LotusScript Development Environment:2:2:Click:1:12
  14833. Sub Click(Source As Button)
  14834.      Call CreateNewDoc(NEW_MEMO)
  14835. End Sub
  14836. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  14837. '++LotusScript Development Environment:2:5:(Forward):0:1
  14838. Declare Sub Click(Source As Button)
  14839. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14840. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14841. Private Sub BindEvents(Byval Objectname_ As String)
  14842.      Static Source As BUTTON
  14843.      Set Source = Bind(Objectname_)
  14844.      On Event Click From Source Call Click
  14845. End Sub
  14846. '++LotusScript Development Environment:2:2:Click:1:12
  14847. Sub Click(Source As Button)
  14848.      Call CreateNewDoc(NEW_CALENDAR)
  14849. End Sub
  14850. tmpnewdoc
  14851.     1S2S
  14852. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  14853. '++LotusScript Development Environment:2:5:(Forward):0:1
  14854. Declare Sub Click(Source As Button)
  14855. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14856. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14857. Private Sub BindEvents(Byval Objectname_ As String)
  14858.      Static Source As BUTTON
  14859.      Set Source = Bind(Objectname_)
  14860.      On Event Click From Source Call Click
  14861. End Sub
  14862. '++LotusScript Development Environment:2:2:Click:1:12
  14863. Sub Click(Source As Button)
  14864.      Call CreateNewDoc(NEW_TASK)
  14865. End Sub
  14866. tmpnewdoc
  14867.     1S2S
  14868. Copy into\New GroupK,
  14869. NewGroup
  14870.     0S0E
  14871. tmpnewdoc
  14872.     1S2S
  14873. '++LotusScript Development Environment:2:5:(Options):0:74
  14874. Option Public
  14875. Use "DocumentConversions"
  14876. '++LotusScript Development Environment:2:5:(Forward):0:1
  14877. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14878. O=Lotus Notes
  14879. O=Lotus Notes
  14880. PURSAFO
  14881. |.:#U
  14882. O=Lotus Notes
  14883. CN=Lotus Notes Template Development/O=Lotus Notes
  14884. PURSAFO
  14885. qRjKq
  14886. $TABLEFORMAT
  14887. $TITLE
  14888. $Index
  14889. $Formula
  14890. $FormulaClass
  14891. $VIEWFORMAT
  14892. $Comment
  14893. $ACTIONS
  14894. $SCRIPTOBJ_12
  14895. $SCRIPTOBJ_13
  14896. $SCRIPTOBJ_14
  14897. $ViewGlobalScript
  14898. $ViewGlobalScript_O
  14899. StartTime
  14900. CalendarDateTimeL
  14901.     1S2S
  14902. DateList
  14903. CalendarDateTimeV
  14904. EndDateTime
  14905.     0R1S2S10S11S12S13S
  14906. AppointmentType
  14907. CalendarDateTime
  14908. DateList
  14909. StartTime
  14910.     0R3S4S5S6S7S8S9S10S12S14S20S21S22S23S
  14911. AppointmentType
  14912. EndDateTime
  14913. StartDateTime
  14914.     3S4S6S8S10S11S13S14S16S
  14915. section
  14916. OrgTable
  14917.     1S2S6S
  14918. section
  14919. section
  14920. section
  14921.     0R3S4S6RS5E8R9S10S12RS5E14R15S16S18RS5E20R
  14922. AppointmentType
  14923. StartDateTime
  14924. StartDateTime
  14925. StartDateTime
  14926. StartDateTime
  14927. -All Day-
  14928.     3S4S5S6S7S8S10RS4E17RS8E24S29S32RS5E35R
  14929. Subject
  14930. -No Subject-
  14931. Subject
  14932.     3S4S6S
  14933. $134$135$126$143_ViewIcon$141$Conflict
  14934. CalendarDateTimeh
  14935. $134t
  14936. StartTime
  14937. CalendarDateTimeL
  14938.     1S2S
  14939. DateList
  14940. CalendarDateTimeV
  14941. EndDateTime
  14942.     0R1S2S10S11S12S13S
  14943. AppointmentType
  14944. CalendarDateTime
  14945. DateList
  14946. StartTime
  14947.     0R3S4S5S6S7S8S9S10S12S14S20S21S22S23S$135
  14948. AppointmentType
  14949. EndDateTime
  14950. StartDateTime
  14951.     3S4S6S8S10S11S13S14S16S$126
  14952. section
  14953. OrgTable
  14954.     1S2S6S
  14955. section
  14956. section
  14957. section
  14958.     0R3S4S6RS5E8R9S10S12RS5E14R15S16S18RS5E20R
  14959. $143Time
  14960. AppointmentType
  14961. StartDateTime
  14962. StartDateTime
  14963. StartDateTime
  14964. StartDateTime
  14965. -All Day-
  14966.     3S4S5S6S7S8S10RS4E17RS8E24S29S32RS5E35R_ViewIcon$141DescriptionZ
  14967. Subject
  14968. -No Subject-
  14969. Subject
  14970.     3S4S6S
  14971. _Forward
  14972. _Edit Document
  14973. New Entry
  14974. Appointment
  14975.     0S0E
  14976. Go To TodayK$
  14977.     0S0E
  14978. Two Days$
  14979. One Week$
  14980. Two Weeks
  14981. One Month
  14982. _Move to Folder...    
  14983. _Remove from Folder...
  14984. Categori_zeK
  14985. Send Docu_ment
  14986. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  14987. '++LotusScript Development Environment:2:5:(Forward):0:1
  14988. Declare Sub Click(Source As Button)
  14989. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14990. '++LotusScript Development Environment:2:2:BindEvents:1:129
  14991. Private Sub BindEvents(Byval Objectname_ As String)
  14992.      Static Source As BUTTON
  14993.      Set Source = Bind(Objectname_)
  14994.      On Event Click From Source Call Click
  14995. End Sub
  14996. '++LotusScript Development Environment:2:2:Click:1:12
  14997. Sub Click(Source As Button)
  14998.      Call CreateNewDoc(NEW_MEMO)
  14999. End Sub
  15000. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  15001. '++LotusScript Development Environment:2:5:(Forward):0:1
  15002. Declare Sub Click(Source As Button)
  15003. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15004. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15005. Private Sub BindEvents(Byval Objectname_ As String)
  15006.      Static Source As BUTTON
  15007.      Set Source = Bind(Objectname_)
  15008.      On Event Click From Source Call Click
  15009. End Sub
  15010. '++LotusScript Development Environment:2:2:Click:1:12
  15011. Sub Click(Source As Button)
  15012.      Call CreateNewDoc(NEW_CALENDAR)
  15013. End Sub
  15014. tmpnewdoc
  15015.     1S2S
  15016. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  15017. '++LotusScript Development Environment:2:5:(Forward):0:1
  15018. Declare Sub Click(Source As Button)
  15019. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15020. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15021. Private Sub BindEvents(Byval Objectname_ As String)
  15022.      Static Source As BUTTON
  15023.      Set Source = Bind(Objectname_)
  15024.      On Event Click From Source Call Click
  15025. End Sub
  15026. '++LotusScript Development Environment:2:2:Click:1:12
  15027. Sub Click(Source As Button)
  15028.      Call CreateNewDoc(NEW_TASK)
  15029. End Sub
  15030. tmpnewdoc
  15031.     1S2S
  15032. Copy into\New GroupK,
  15033. NewGroup
  15034.     0S0E
  15035. tmpnewdoc
  15036.     1S2S
  15037. '++LotusScript Development Environment:2:5:(Options):0:74
  15038. Option Public
  15039. Use "AppointmentProcessing"
  15040. Use "RepeatProcessing"
  15041. Use "DocumentConversions"
  15042. '++LotusScript Development Environment:2:5:(Forward):0:1
  15043. Declare Sub PutTask
  15044. Declare Sub SetViewObjectVariables(source)
  15045. Declare Sub PutCalendarEntry(Action)
  15046. Declare Sub PutAppointment(Action)
  15047. Declare Sub DeleteGlobalVariables
  15048. '++LotusScript Development Environment:2:5:(Declarations):0:10
  15049. Dim uiview As NotesUIView
  15050. Dim startdt As NotesDateTime
  15051. Dim enddt As NotesDateTime
  15052. '++LotusScript Development Environment:2:2:PutTask:1:8
  15053. Sub PutTask
  15054.      
  15055. 'This subroutine is used both for drag/dropping and for pasting
  15056.      Dim timeitem As NotesItem
  15057.      Dim timedt As New NotesDateTime("")
  15058.      Dim datedt As NotesDateTime
  15059.      
  15060.      On Error Goto ErrorRoutine
  15061.      
  15062.      Set timeitem = note.GetFirstItem("OriginalStartDate")
  15063.      Call TIMEGetNotesFromLS(uiview.CalendarDateTime, datedt)          
  15064.      Set timedt = timeitem.DateTimeValue
  15065.      Set date2 = New NotesDateTime(datedt.DateOnly & " " & timedt.TimeOnly)                         
  15066. 'date1 is the original CalendarDateTime and date2 is the new one     
  15067.      TotalDiff = date2.TimeDifference(date1)
  15068. 'break the difference down to a number that fits in the integer datatype                              
  15069.      DayDiff = Fix(TotalDiff / 86400)
  15070.      SecDiff = TotalDiff Mod 86400
  15071.      MinDiff = Fix(SecDiff / 60)
  15072.      SecDiff = SecDiff Mod 60
  15073. 'If you are changing the date     
  15074.      If (date1.LSLocalTime <> date2.LSLocalTime) Then
  15075.           If note.StartDateTime(0) = "" Then
  15076.                Set note.DueDateTime = date2
  15077.                note.CalendarDateTime = note.DueDateTime
  15078.           Elseif note.DueDateTime(0) = "" Then
  15079.                Set note.StartDateTime = date2
  15080.                note.CalendarDateTime = note.StartDateTime     
  15081.           Else
  15082.                Set note.StartDateTime = date2
  15083.                note.CalendarDateTime = note.StartDateTime
  15084.                Call TIMEGetNotesFromLS(note.GetITemValue("DueDateTime")(0), dateitem)          
  15085.                dateitem.AdjustDay(DayDiff)
  15086.                dateitem.AdjustMinute(MinDiff)
  15087.                dateitem.AdjustSecond(SecDiff)
  15088.                Set note.DueDateTime = dateitem   
  15089.           End If
  15090.           Call MarkTempFields(note)
  15091.           note.removeitem("OriginalStartDate")
  15092.           Call note.Save(True, True, True)
  15093.      End If
  15094.      
  15095.      Exit Sub
  15096.      
  15097. ErrorRoutine:
  15098.      Messagebox Error & " (PutTask)"
  15099.      Exit Sub
  15100. End Sub
  15101. '++LotusScript Development Environment:2:2:SetViewObjectVariables:1:8
  15102. Sub SetViewObjectVariables(source)
  15103.      
  15104.      Set uiview = source
  15105.      Set session = New NotesSession   
  15106.      Set ws = New NotesUIWorkspace
  15107.      Set db = session.CurrentDatabase
  15108.      
  15109. End Sub
  15110. '++LotusScript Development Environment:2:2:PutCalendarEntry:1:8
  15111. Sub PutCalendarEntry(Action)
  15112.      Dim tmpNote As NotesDocument
  15113.      
  15114. 'This subroutine is used both for drag/dropping and for pasting
  15115.      
  15116.      On Error Goto ErrorRoutine
  15117.      
  15118.      CheckAlarms = False
  15119.      Set documents = uiview.documents
  15120.      
  15121.      Set note = documents.GetFirstDocument
  15122.      While Not(note Is Nothing)
  15123.           Call DeleteGlobalVariables
  15124.           OriginalStartDate = note.StartDateTime
  15125.           note.OriginalStartDate = note.CalendarDateTime          
  15126.           Call TIMEGetNotesFromLS(note.GetITemValue("OriginalStartDate")(0), date1)          
  15127.           
  15128.           Select Case note.Form(0)
  15129.           Case "Task"
  15130.                PutTask          
  15131.           Case "Appointment"
  15132.                PutAppointment(Action)
  15133.           Case Else
  15134.                'we only support this for Tasks and Appointments
  15135.           End Select
  15136.           Set tmpNote = note          
  15137.           Set note = documents.GetNextDocument(note)
  15138.           Delete tmpNote
  15139.      Wend
  15140.      
  15141.      If CheckAlarms Then ws.CheckAlarms
  15142.      ws.ViewRefresh
  15143.      
  15144.      Exit Sub
  15145.      
  15146. ErrorRoutine:
  15147.      Messagebox Error & " (PutCalendarEntry)"
  15148.      Exit Sub
  15149. End Sub
  15150. '++LotusScript Development Environment:2:2:PutAppointment:1:8
  15151. Sub PutAppointment(Action)
  15152.      Dim datedt As NotesDateTime
  15153.      Dim timeitem As NotesItem
  15154.      Dim timedt As New NotesDateTime("")
  15155.      
  15156.      On Error Goto ErrorRoutine
  15157.      
  15158.      Set notice = New NotesDocument(db)          
  15159.      If Action = "Drop" And note.HasItem("OrgRepeat") Then Call SaveOriginalValues
  15160.      If note.HasItem("$Alarm") Then CheckAlarms = True
  15161. 'see if the document was dropped onto a date but no time, or if this is an anniverary/event          
  15162.      If (Hour(uiview.CalendarDateTime) = 0) Or (note.AppointmentType(0) = "1") Or (note.AppointmentType(0) = "2") Then
  15163. 'since this was dropped on a date with no time, keep the same time               
  15164.           Call TIMEGetNotesFromLS(uiview.CalendarDateTime, datedt)          
  15165.           Set timeitem = note.GetFirstItem("OriginalStartDate")
  15166.           Set timedt = timeitem.DateTimeValue             
  15167.           Set date2 = New NotesDateTime(datedt.DateOnly & " " & timedt.TimeOnly)                         
  15168.      Else
  15169.           Call TIMEGetNotesFromLS(uiview.CalendarDateTime, date2)          
  15170.      End If
  15171.      TotalDiff = date2.TimeDifference(date1)
  15172. 'break the difference down to a number that fits in the integer datatype                              
  15173.      DayDiff = Fix(TotalDiff / 86400)
  15174.      SecDiff = TotalDiff Mod 86400
  15175.      MinDiff = Fix(SecDiff / 60)
  15176.      SecDiff = SecDiff Mod 60
  15177. 'If you are changing the date     
  15178.      If (date1.LSLocalTime <> date2.LSLocalTime) Then
  15179.           If (note.Chair(0) <> Owner) Then
  15180. 'we are not the creator of this entry -> make sure the user wants to change the date/time of this meeting                    
  15181.                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
  15182.                     Set note.StartDateTime = date2
  15183.                     note.StartDate = Datevalue(note.StartDateTime(0))
  15184.                     note.CalendarDateTime = note.StartDateTime
  15185.                     ' Not all types have enddatetime items
  15186.                     If note.hasitem("EndDateTime") Then
  15187.                          Call TIMEGetNotesFromLS(note.GetITemValue("EndDateTime")(0), dateitem)          
  15188.                          dateitem.AdjustDay(DayDiff)
  15189.                          dateitem.AdjustMinute(MinDiff)
  15190.                          dateitem.AdjustSecond(SecDiff)
  15191.                          Set note.EndDateTime = dateitem
  15192.                     End If
  15193.                     If note.HasItem("$AlarmTime") Then
  15194.                          AlarmTime = note.GetItemValue("$AlarmTime")
  15195.                          Call TIMEGetNotesFromLS(AlarmTime(0), dateitem)          
  15196.                          dateitem.AdjustDay(DayDiff)
  15197.                          dateitem.AdjustMinute(MinDiff)
  15198.                          dateitem.AdjustSecond(SecDiff)
  15199.                          Set item = note.GetFirstItem("$AlarmTime")
  15200.                          Set item.DateTimeValue = dateitem
  15201.                     End If
  15202.                     If (note.AppointmentType(0) = "4") Then
  15203.                          note.ReminderTime = note.StartDateTime(0)
  15204.                     Else
  15205.                          Set trdr = session.CreateDateRange
  15206.                          Call TIMEGetNotesFromLS(note.GetITemValue("StartDateTime")(0), startdt)          
  15207.                          Call TIMEGetNotesFromLS(note.GetITemValue("EndDateTime")(0), enddt)          
  15208.                          Set trdr.StartDateTime = startdt
  15209.                          Set trdr.EndDateTime = enddt
  15210.                          Set note.TimeRange = trdr                   
  15211.                     End If
  15212.                     If Action = "Drop" Then
  15213.                          If note.HasItem("OrgRepeat") Then Call RepeatSave
  15214.                     Elseif note.HasItem("OrgRepeat") Then
  15215.                          note.RemoveItem("OrgRepeat")
  15216.                          note.RemoveItem("$Ref")
  15217.                          Messagebox "Pasting an instance of a repeating appointment creates a non-repeating appointment.", 64, "Paste"
  15218.                     End If
  15219.                     If CancelChange = True Then Exit Sub                         
  15220.                     Call MarkTempFields(note)
  15221.                     note.removeitem("OriginalStartDate")
  15222.                     Call note.Save(True, True, True)                         
  15223.                End If
  15224.           Else
  15225. 'we are the originator of this meeting
  15226.                Set note.StartDateTime = date2
  15227.                Set note.StartDate = date2
  15228.                note.CalendarDateTime = note.StartDateTime
  15229.                If note.hasitem("EndDateTime") Then               
  15230.                     Call TIMEGetNotesFromLS(note.GetITemValue("endDateTime")(0), dateitem)          
  15231.                     dateitem.AdjustDay(DayDiff)
  15232.                     dateitem.AdjustMinute(MinDiff)
  15233.                     dateitem.AdjustSecond(SecDiff)
  15234.                     Set note.EndDateTime = dateitem
  15235.                End If
  15236.                If note.HasItem("$AlarmTime") Then
  15237.                     AlarmTime = note.GetItemValue("$AlarmTime")
  15238.                     Call TIMEGetNotesFromLS(AlarmTime(0), dateitem)          
  15239.                     dateitem.AdjustDay(DayDiff)
  15240.                     dateitem.AdjustMinute(MinDiff)
  15241.                     dateitem.AdjustSecond(SecDiff)
  15242.                     Set item = note.GetFirstItem("$AlarmTime")
  15243.                     Set item.DateTimeValue = dateitem
  15244.                End If
  15245.                If (note.AppointmentType(0) = "4") Then
  15246.                     note.ReminderTime = note.StartDateTime(0)
  15247.                Else
  15248.                     Set trdr = session.CreateDateRange
  15249.                     Call TIMEGetNotesFromLS(note.GetITemValue("StartDateTime")(0), startdt)          
  15250.                     Call TIMEGetNotesFromLS(note.GetITemValue("EndDateTime")(0), enddt)          
  15251.                     Set trdr.StartDateTime = date2
  15252.                     Set trdr.EndDateTime = dateitem
  15253.                     Set note.TimeRange = trdr                   
  15254.                End If
  15255. 'see if we need to reschedule the appointment -> if the user is pasting a document, we do not need to check
  15256.                If (Not(note.IsResponse) And (note.HasItem("PostedDate"))) Or ((note.IsResponse) And (note.AppointmentType(0) = "3")) And Lcase(Action) = "drop" Then 
  15257.                     
  15258.                     If (note.IsResponse) Then
  15259.                          Set parentnote = db.GetDocumentBYUNID(note.ParentDocumentUNID)
  15260.                          Call CreateInviteeTable(parentnote)                         
  15261.                     Else
  15262.                          Call CreateInviteeTable(note)
  15263.                     End If
  15264.                     NeedsReschedule = True
  15265.                End If        
  15266.                If (NeedsReschedule) Then note.SequenceNum = note.SequenceNum(0) + 1
  15267.                If Action = "Drop" Then
  15268.                     If note.HasItem("OrgRepeat") Then Call RepeatSave
  15269.                Else
  15270.                     If note.HasItem("OrgRepeat") Then
  15271.                          note.RemoveItem("OrgRepeat")
  15272.                          note.RemoveItem("$Ref")
  15273.                          Messagebox "Pasting an instance of a repeating appointment creates a non-repeating appointment.", 64, "Paste"
  15274.                     End If
  15275. ' Problem - the existing document might be an invitation; unfortunately, if we do not clear out certain values, meeting workflow will go crazy!
  15276.                     If (note.AppointmentType(0) = "3") Then
  15277.                          note.RemoveItem("RequiredAttendees")
  15278.                          note.RemoveItem("OptionalAttendees")
  15279.                          note.RemoveItem("RequiredResources")
  15280.                          note.RemoveItem("Room")
  15281.                          note.SequenceNum = 0
  15282.                          note.Chair = Owner                         
  15283.                     End If               
  15284.                End If
  15285.                If CancelChange = True Then Exit Sub
  15286.                If (NeedsReschedule) Then Call RescheduleAppointment
  15287.                Call MarkTempFields(note)
  15288.                note.removeitem("OriginalStartDate")
  15289.                Call note.Save(True, True, True)
  15290.           End If                             
  15291.      End If
  15292.      
  15293.      Exit Sub
  15294.      
  15295. ErrorRoutine:
  15296.      Messagebox Error & " (PutAppointment)"
  15297.      Exit Sub
  15298.      
  15299.      
  15300. End Sub
  15301. '++LotusScript Development Environment:2:2:DeleteGlobalVariables:1:8
  15302. Sub DeleteGlobalVariables
  15303.      On Error Resume Next
  15304.      
  15305.      Erase SaveValueList
  15306.      Erase SaveValueList2
  15307.      CancelChange = False
  15308.      QueriedForChanges = False
  15309.      
  15310. End Sub
  15311.     L    L    
  15312. x    x    P
  15313.     G<    #
  15314. ^x    Jx    
  15315.     G<    #
  15316. }x    #8
  15317. }x    #8)
  15318. }x    #8
  15319. }x    #8)
  15320. '++LotusScript Development Environment:2:5:(Options):0:66
  15321. '++LotusScript Development Environment:2:5:(Forward):0:1
  15322. Declare Sub Postdragdrop(Source As Notesuiview)
  15323. Declare Sub Regiondoubleclick(Source As Notesuiview)
  15324. Declare Sub Querydragdrop(Source As Notesuiview, Continue As Variant)
  15325. Declare Sub Postpaste(Source As Notesuiview)
  15326. Declare Sub Queryopen(Source As Notesuiview, Continue As Variant)
  15327. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15328. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15329. Private Sub BindEvents(Byval Objectname_ As String)
  15330.      Static Source As NOTESUIVIEW
  15331.      Set Source = Bind(Objectname_)
  15332.      On Event Postdragdrop From Source Call Postdragdrop
  15333.      On Event Regiondoubleclick From Source Call Regiondoubleclick
  15334.      On Event Querydragdrop From Source Call Querydragdrop
  15335.      On Event Postpaste From Source Call Postpaste
  15336.      On Event Queryopen From Source Call Queryopen
  15337. End Sub
  15338. '++LotusScript Development Environment:2:2:Postdragdrop:1:12
  15339. Sub Postdragdrop(Source As Notesuiview)
  15340.      
  15341.      Call SetViewObjectVariables(source)
  15342.      Call GetCalendarOwner
  15343.      Call PutCalendarEntry("Drop")
  15344.      
  15345. End Sub
  15346. '++LotusScript Development Environment:2:2:Regiondoubleclick:1:12
  15347. Sub Regiondoubleclick(Source As Notesuiview)
  15348.      
  15349.      Set ws = New NotesUIWorkspace
  15350.      Set session = New NotesSession
  15351.      
  15352.      If source.CalendarDateTime <> "" Then Call ws.ComposeDocument("", "", "Appointment")
  15353.      
  15354. End Sub
  15355. '++LotusScript Development Environment:2:2:Querydragdrop:1:12
  15356. Sub Querydragdrop(Source As Notesuiview, Continue As Variant)
  15357.      
  15358. End Sub
  15359. '++LotusScript Development Environment:2:2:Postpaste:1:12
  15360. Sub Postpaste(Source As Notesuiview)
  15361.      
  15362.      Call SetViewObjectVariables(source)
  15363.      GetCalendarOwner
  15364.      PutCalendarEntry("Paste")
  15365.      
  15366. End Sub
  15367. '++LotusScript Development Environment:2:2:Queryopen:1:12
  15368. Sub Queryopen(Source As Notesuiview, Continue As Variant)
  15369.      
  15370. End Sub
  15371. O=Lotus Notes
  15372. O=Lotus Notes
  15373. PURSAFO
  15374. |.:#U
  15375. O=Lotus Notes
  15376. CN=Lotus Notes Template Development/O=Lotus Notes
  15377. PURSAFO
  15378. $TITLE
  15379. $PublicAccess
  15380. $Index
  15381. $Formula
  15382. $FormulaClass
  15383. $VIEWFORMAT
  15384. $CalendarFormat
  15385. $Comment
  15386. $ACTIONS
  15387. $SCRIPTOBJ_12
  15388. $SCRIPTOBJ_13
  15389. $SCRIPTOBJ_14
  15390. $ViewGlobalScript
  15391. $ViewGlobalScript_O
  15392. $ViewScript
  15393. $ViewScript_O
  15394. IsMailStationeryh
  15395. Stationery
  15396. Drafts
  15397.     7S9S
  15398. IsMailStationeryh
  15399.     7S9S
  15400. SendTo
  15401.     1S2S6S
  15402.     0R1S2S8S
  15403.     0R1S2S15S16S17S18S25S
  15404. SendTo
  15405.     0R1S2S5S6S8S12S16S20S
  15406. SendTo
  15407.     0R1S2S5S6S8S12S16S20S
  15408. Person
  15409.     0R1S2S5S6S8S10S11S12S13S14S
  15410. Person
  15411. Person
  15412. Person
  15413. Person
  15414.     0R10S11S20S32S
  15415. $ContentIconh
  15416. $ContentIcon
  15417. Froma
  15418.  pager 
  15419. SendToa
  15420.  pager 
  15421. message.wav
  15422. vmsg_hdr.wav
  15423. .wavG
  15424. .tifG
  15425. $ContentIconh
  15426. $ContentIcon
  15427.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  15428. IsMailStationeryh
  15429. MailStationeryName
  15430. Subject
  15431.     7S9S
  15432. $58$59$65$55$62$60$Conflict
  15433. PostedDate
  15434. $MessageType
  15435. ExcludeFromView
  15436.     L1S2S3S4S5S6S7S8S9S12S13S
  15437. IsMailStationeryh
  15438. Stationery
  15439. Drafts
  15440.     7S9S
  15441. IsMailStationeryh
  15442.     7S9S
  15443. $65Whol
  15444. SendTo
  15445.     1S2S6S
  15446.     0R1S2S8S
  15447.     0R1S2S15S16S17S18S25S
  15448. SendTo
  15449.     0R1S2S5S6S8S12S16S20S
  15450. SendTo
  15451.     0R1S2S5S6S8S12S16S20S
  15452. Person
  15453.     0R1S2S5S6S8S10S11S12S13S14S
  15454. Person
  15455. Person
  15456. Person
  15457. Person
  15458.     0R10S11S20S32S
  15459. $55Date
  15460. $ContentIconh
  15461. $ContentIcon
  15462. Froma
  15463.  pager 
  15464. SendToa
  15465.  pager 
  15466. message.wav
  15467. vmsg_hdr.wav
  15468. .wavG
  15469. .tifG
  15470. $ContentIconh
  15471. $ContentIcon
  15472.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$60Subjectb
  15473. IsMailStationeryh
  15474. MailStationeryName
  15475. Subject
  15476.     7S9S
  15477. New Memo.
  15478.     0S0E
  15479. Delete 
  15480.     0S0E
  15481. _Forward
  15482. Categori_zeK
  15483. Edit Document
  15484. IsMailStationeryh
  15485.     7S9S
  15486. MailStEd
  15487. Edit Document
  15488. Which would you like to do?
  15489. Edit this Stationery
  15490. Edit this Stationery
  15491. Create a new message from this Stationery
  15492. Edit this Stationery
  15493.     0RR1S2S3S8S9S11S13S15S17S18S19S21S22S24S26S
  15494. Use Stationery
  15495. IsMailStationeryh
  15496. Not Stationery
  15497. This is a not a Stationery message.
  15498.     7S9S
  15499. Rename Stationery...
  15500. IsMailStationery
  15501. Rename Stationery
  15502. The currently selected document is a Draft.  Only Stationery documents can be renamed.
  15503.     3S4S10RS9E19RS9E
  15504. MailStationeryName
  15505. Rename Stationery
  15506. What would you like to call this Stationery message?
  15507. MailStationeryName
  15508.     0R1S2S3S7S9S11S
  15509. _Move To Folder...
  15510. _Remove From Folder...
  15511. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  15512. '++LotusScript Development Environment:2:5:(Forward):0:1
  15513. Declare Sub Click(Source As Button)
  15514. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15515. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15516. Private Sub BindEvents(Byval Objectname_ As String)
  15517.      Static Source As BUTTON
  15518.      Set Source = Bind(Objectname_)
  15519.      On Event Click From Source Call Click
  15520. End Sub
  15521. '++LotusScript Development Environment:2:2:Click:1:12
  15522. Sub Click(Source As Button)
  15523.      Call CreateNewDoc(NEW_MEMO)
  15524. End Sub
  15525. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  15526. '++LotusScript Development Environment:2:5:(Forward):0:1
  15527. Declare Sub Click(Source As Button)
  15528. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15529. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15530. Private Sub BindEvents(Byval Objectname_ As String)
  15531.      Static Source As BUTTON
  15532.      Set Source = Bind(Objectname_)
  15533.      On Event Click From Source Call Click
  15534. End Sub
  15535. '++LotusScript Development Environment:2:2:Click:1:12
  15536. Sub Click(Source As Button)
  15537.      Call CreateNewDoc(NEW_CALENDAR)
  15538. End Sub
  15539. tmpnewdoc
  15540.     1S2S
  15541. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  15542. '++LotusScript Development Environment:2:5:(Forward):0:1
  15543. Declare Sub Click(Source As Button)
  15544. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15545. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15546. Private Sub BindEvents(Byval Objectname_ As String)
  15547.      Static Source As BUTTON
  15548.      Set Source = Bind(Objectname_)
  15549.      On Event Click From Source Call Click
  15550. End Sub
  15551. '++LotusScript Development Environment:2:2:Click:1:12
  15552. Sub Click(Source As Button)
  15553.      Call CreateNewDoc(NEW_TASK)
  15554. End Sub
  15555. tmpnewdoc
  15556.     1S2S
  15557. Copy into\New GroupK,
  15558. NewGroup
  15559.     0S0E
  15560. tmpnewdoc
  15561.     1S2S
  15562. '++LotusScript Development Environment:2:5:(Options):0:74
  15563. Option Public
  15564. Use "DocumentConversions"
  15565. '++LotusScript Development Environment:2:5:(Forward):0:1
  15566. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15567. O=Lotus Notes
  15568. O=Lotus Notes
  15569. PURSAFO
  15570. |.:#U
  15571. O=Lotus Notes
  15572. CN=Lotus Notes Template Development/O=Lotus Notes
  15573. PURSAFO
  15574. M(b+X
  15575. $TITLE
  15576. $Index
  15577. $Formula
  15578. $FormulaClass
  15579. $VIEWFORMAT
  15580. $Comment
  15581. $ACTIONS
  15582. $SCRIPTOBJ_11
  15583. $SCRIPTOBJ_12
  15584. $SCRIPTOBJ_13
  15585. $ViewGlobalScript
  15586. $ViewGlobalScript_O
  15587. Strip alternatives, enclosing matched parentheses, and a leading dollar sign from the $Title item
  15588. FolderName1
  15589. $Title
  15590.     0R1S2S5S6S8S
  15591. FolderName2
  15592. FolderName1
  15593. FolderName1
  15594. FolderName1
  15595. FolderName1
  15596.     0R1S2S9S11S12S14S15S20S22S23S26S32S35S38S
  15597. FolderName3
  15598. FolderName2
  15599. $Title
  15600. FolderName2
  15601. FolderName2
  15602. FolderName2
  15603.     0R1S2S6S7S9S10S15S17S18S21S25S28S
  15604. FolderName3
  15605.     0S0E
  15606. Set the folder flags in addition to those that are stored
  15607. FolderFlags1
  15608. $FolderFlagsh
  15609. $FolderFlags
  15610.     0R1S2S9S11S
  15611. Set the FOLDER_FLAG_HIDDEN (32) and FOLDER_FLAG_SYSTEM (16) flags
  15612.     0R1S
  15613. FolderFlags1
  15614. $Name
  15615. $Name
  15616.     0R1S2S8S10S11S13S19S21S22S24S26S29S
  15617. $106$103$107$Conflict
  15618. Select all folders, except shared-on-first-use folders
  15619. $Flags
  15620. $Flags
  15621.     0RL1S5S7S8S13S
  15622. $106Folder Name
  15623. Strip alternatives, enclosing matched parentheses, and a leading dollar sign from the $Title item
  15624. FolderName1
  15625. $Title
  15626.     0R1S2S5S6S8S
  15627. FolderName2
  15628. FolderName1
  15629. FolderName1
  15630. FolderName1
  15631. FolderName1
  15632.     0R1S2S9S11S12S14S15S20S22S23S26S32S35S38S
  15633. FolderName3
  15634. FolderName2
  15635. $Title
  15636. FolderName2
  15637. FolderName2
  15638. FolderName2
  15639.     0R1S2S6S7S9S10S15S17S18S21S25S28S
  15640. FolderName3
  15641. $103Folder UNID
  15642.     0S0E
  15643. $107Folder Flags
  15644. Set the folder flags in addition to those that are stored
  15645. FolderFlags1
  15646. $FolderFlagsh
  15647. $FolderFlags
  15648.     0R1S2S9S11S
  15649. Set the FOLDER_FLAG_HIDDEN (32) and FOLDER_FLAG_SYSTEM (16) flags
  15650.     0R1S
  15651. FolderFlags1
  15652. $Name
  15653. $Name
  15654.     0R1S2S8S10S11S13S19S21S22S24S26S29S&
  15655. New Memo.
  15656.     0S0E
  15657. Delete 
  15658.     0S0E
  15659. Move To Folder...
  15660.     0S0E
  15661. _Forward
  15662. Reply
  15663. Reply
  15664.     0S0E
  15665. Reply With History@
  15666. Reply with history
  15667.     0S0E
  15668. Categori_zeK
  15669. _Edit Document
  15670. Send    
  15671. Resend
  15672. NonDelivery Report
  15673. Not a Delivery Failure Report
  15674. You cannot Resend a message unless it is a Delivery Failure Report.
  15675.     6S12S17S23S
  15676. Convert To TaskK0
  15677. ConvertToTask
  15678. _Move To Folder...
  15679. _Remove From Folder...
  15680. O=Lotus Notes
  15681. O=Lotus Notes
  15682. PURSAFO
  15683. |.:#U
  15684. O=Lotus Notes
  15685. CN=Lotus Notes Template Development/O=Lotus Notes
  15686. PURSAFO
  15687. "K[46
  15688.     TfG{k
  15689. $Name
  15690. $TITLE
  15691. $Index
  15692. $Formula
  15693. $VIEWFORMAT
  15694. $Comment
  15695. $ACTIONS
  15696. $FormulaClass
  15697. Appointment
  15698. _ViewIcon
  15699. _ViewIcon
  15700.     3S4S6S8S13S15S
  15701. Principal
  15702. Principal
  15703.     1S2S
  15704. OrgRepeat
  15705. Notice
  15706. InviteeName
  15707. NoticeType
  15708.  can meet at the suggested time
  15709. NoticeType
  15710.  would like to propose a change
  15711. NoticeType
  15712.  will not be attending"
  15713. NoticeType
  15714.  has asked someone else to attend instead
  15715. From 
  15716. Subject
  15717. Subject
  15718. Subject
  15719. StartDateTime
  15720. D0S2V
  15721. PostedDateh
  15722. NoticeType
  15723.  can meet at the suggested time
  15724. NoticeType
  15725.  would like to propose a change
  15726. NoticeType
  15727.  will not be attending"
  15728. NoticeType
  15729.  has asked someone else to attend instead
  15730. From 
  15731. Subject
  15732. Subject
  15733.     0R7RS4E10S11S12S13RS18E19S20RS27E23S24S26RS50E27S28S30RS34E31S32S34RS51E35S36S38RS34E39S40S42RS50E43S44S46RS33E47S48S50RS49E51S52S54RS33E55S56S57S58S59S60S63RRS24E66RS13E67S68S69S70S74S76S77S80R85RS4E88S89S91RS13E92S93S95RS8E96S97S99RS14E100S101S103RS8E104S105S107RS14E108S109S111RS8E112S113S115RS14E116S117S119RS7E120S121S122S123S124S125S128R
  15734. $119$123StartDateTimeSubject$Conflict$REF
  15735. Appointment
  15736. Notice
  15737.     L1S2S3S6S7S
  15738.  $119
  15739. Appointment
  15740. _ViewIcon
  15741. _ViewIcon
  15742.     3S4S6S8S13S15S
  15743. Principal
  15744. Principal
  15745.     1S2S
  15746. OrgRepeat
  15747. Notice
  15748. InviteeName
  15749. NoticeType
  15750.  can meet at the suggested time
  15751. NoticeType
  15752.  would like to propose a change
  15753. NoticeType
  15754.  will not be attending"
  15755. NoticeType
  15756.  has asked someone else to attend instead
  15757. From 
  15758. Subject
  15759. Subject
  15760. Subject
  15761. StartDateTime
  15762. D0S2V
  15763. PostedDateh
  15764. NoticeType
  15765.  can meet at the suggested time
  15766. NoticeType
  15767.  would like to propose a change
  15768. NoticeType
  15769.  will not be attending"
  15770. NoticeType
  15771.  has asked someone else to attend instead
  15772. From 
  15773. Subject
  15774. Subject
  15775.     0R7RS4E10S11S12S13RS18E19S20RS27E23S24S26RS50E27S28S30RS34E31S32S34RS51E35S36S38RS34E39S40S42RS50E43S44S46RS33E47S48S50RS49E51S52S54RS33E55S56S57S58S59S60S63RRS24E66RS13E67S68S69S70S74S76S77S80R85RS4E88S89S91RS13E92S93S95RS8E96S97S99RS14E100S101S103RS8E104S105S107RS14E108S109S111RS8E112S113S115RS14E116S117S119RS7E120S121S122S123S124S125S128RStartDateTimeMeeting TimeSubjectSubject&
  15776. _Forward
  15777. _Edit Document
  15778. New Entry
  15779. Appointment
  15780.     0S0E
  15781. _Move to Folder...
  15782. _Remove from Folder...
  15783. Categori_zeK
  15784. Send Docu_ment
  15785. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  15786. '++LotusScript Development Environment:2:5:(Forward):0:1
  15787. Declare Sub Click(Source As Button)
  15788. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15789. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15790. Private Sub BindEvents(Byval Objectname_ As String)
  15791.      Static Source As BUTTON
  15792.      Set Source = Bind(Objectname_)
  15793.      On Event Click From Source Call Click
  15794. End Sub
  15795. '++LotusScript Development Environment:2:2:Click:1:12
  15796. Sub Click(Source As Button)
  15797.      Call CreateNewDoc(NEW_MEMO)
  15798. End Sub
  15799. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  15800. '++LotusScript Development Environment:2:5:(Forward):0:1
  15801. Declare Sub Click(Source As Button)
  15802. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15803. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15804. Private Sub BindEvents(Byval Objectname_ As String)
  15805.      Static Source As BUTTON
  15806.      Set Source = Bind(Objectname_)
  15807.      On Event Click From Source Call Click
  15808. End Sub
  15809. '++LotusScript Development Environment:2:2:Click:1:12
  15810. Sub Click(Source As Button)
  15811.      Call CreateNewDoc(NEW_CALENDAR)
  15812. End Sub
  15813. tmpnewdoc
  15814.     1S2S
  15815. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  15816. '++LotusScript Development Environment:2:5:(Forward):0:1
  15817. Declare Sub Click(Source As Button)
  15818. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15819. '++LotusScript Development Environment:2:2:BindEvents:1:129
  15820. Private Sub BindEvents(Byval Objectname_ As String)
  15821.      Static Source As BUTTON
  15822.      Set Source = Bind(Objectname_)
  15823.      On Event Click From Source Call Click
  15824. End Sub
  15825. '++LotusScript Development Environment:2:2:Click:1:12
  15826. Sub Click(Source As Button)
  15827.      Call CreateNewDoc(NEW_TASK)
  15828. End Sub
  15829. tmpnewdoc
  15830.     1S2S
  15831. Copy into\New GroupK,
  15832. NewGroup
  15833.     0S0E
  15834. tmpnewdoc
  15835.     1S2S
  15836. '++LotusScript Development Environment:2:5:(Options):0:74
  15837. Option Public
  15838. Use "DocumentConversions"
  15839. '++LotusScript Development Environment:2:5:(Forward):0:1
  15840. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15841. O=Lotus Notes
  15842. O=Lotus Notes
  15843. PURSAFO
  15844. |.:#U
  15845. O=Lotus Notes
  15846. CN=Lotus Notes Template Development/O=Lotus Notes
  15847. PURSAFO
  15848. $TITLE
  15849. $PublicAccess
  15850. $Index
  15851. $Formula
  15852. $FormulaClass
  15853. $VIEWFORMAT
  15854. $Comment
  15855. $ACTIONS
  15856. $SCRIPTOBJ_7
  15857. $SCRIPTOBJ_8
  15858. $SCRIPTOBJ_9
  15859. $ViewGlobalScript
  15860. $ViewGlobalScript_O
  15861. '++LotusScript Development Environment:2:5:(Options):0:74
  15862. Option Public
  15863. '++LotusScript Development Environment:2:5:(Forward):0:1
  15864. '++LotusScript Development Environment:2:5:(Declarations):0:2
  15865. O=Lotus Notes
  15866. O=Lotus Notes
  15867. PURSAFO
  15868. |.:#U
  15869. O=Lotus Notes
  15870. CN=Lotus Notes Template Development/O=Lotus Notes
  15871. PURSAFO
  15872. $TITLE
  15873. $Index
  15874. $Formula
  15875. $FormulaClass
  15876. $VIEWFORMAT
  15877. $Comment
  15878. $ViewGlobalScript
  15879. $ViewGlobalScript_O
  15880. DeliveredDate
  15881. PostedDate
  15882. PostedDateY
  15883. Importance
  15884.     6S11S12S17S19S31S
  15885. SentBy
  15886. Principal
  15887. Principal
  15888.     1S2S5S6S8S10S
  15889. Attendees
  15890. RequiredAttendees
  15891. OptionalAttendees
  15892.     0R1S2S5S6S
  15893. DeliveredDate
  15894. SentBy
  15895. Attendees
  15896. Attendees
  15897. SendTo
  15898. SentBy
  15899. SendTo
  15900.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  15901.     0R1S2S8S
  15902.     0R1S2S15S16S
  15903.     0R1S2S5S6S8S14S18S
  15904.     0R1S2S5S6S8S14S18S
  15905. Person
  15906. X400FreeForm^
  15907.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  15908. Person2
  15909. Person
  15910. Person
  15911. Person
  15912. Person
  15913.     0R1S2S12S13S22S34S
  15914. Delivery Report
  15915. NonDelivery Report
  15916. Trace Report
  15917. Mail Router
  15918. Person2
  15919.     0R3S4S5S6S7S8S10S12S
  15920. DeliveredDate
  15921. DeliveredDate
  15922. PostedDate
  15923. PostedDate
  15924.     3S4S6S8S9S10S12S14S
  15925. $ContentIconh
  15926. $ContentIcon
  15927. Froma
  15928.  pager 
  15929. SendToa
  15930.  pager 
  15931. message.wav
  15932. vmsg_hdr.wav
  15933. .wavG
  15934. .tifG
  15935. $ContentIconh
  15936. $ContentIcon
  15937.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  15938. NonDelivery Report
  15939. DELIVERY FAILURE: 
  15940. FailureReason
  15941. Delivery Report
  15942. DELIVERED: 
  15943. Subject
  15944. Return Receipt
  15945. RECEIVED: 
  15946. Subject
  15947. ReturnNonReceipt
  15948. NOT RECEIVED: 
  15949. Subject
  15950. Subject
  15951.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S
  15952. $71$82$62$75$65$Conflict
  15953. DeliveredDate
  15954. PostedDate
  15955.     L1S4S5S
  15956. DeliveredDate
  15957. PostedDate
  15958. PostedDateY
  15959. Importance
  15960.     6S11S12S17S19S31S$82Who
  15961. SentBy
  15962. Principal
  15963. Principal
  15964.     1S2S5S6S8S10S
  15965. Attendees
  15966. RequiredAttendees
  15967. OptionalAttendees
  15968.     0R1S2S5S6S
  15969. DeliveredDate
  15970. SentBy
  15971. Attendees
  15972. Attendees
  15973. SendTo
  15974. SentBy
  15975. SendTo
  15976.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  15977.     0R1S2S8S
  15978.     0R1S2S15S16S
  15979.     0R1S2S5S6S8S14S18S
  15980.     0R1S2S5S6S8S14S18S
  15981. Person
  15982. X400FreeForm^
  15983.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  15984. Person2
  15985. Person
  15986. Person
  15987. Person
  15988. Person
  15989.     0R1S2S12S13S22S34S
  15990. Delivery Report
  15991. NonDelivery Report
  15992. Trace Report
  15993. Mail Router
  15994. Person2
  15995.     0R3S4S5S6S7S8S10S12S
  15996. $62Date
  15997. DeliveredDate
  15998. DeliveredDate
  15999. PostedDate
  16000. PostedDate
  16001.     3S4S6S8S9S10S12S14S$75F
  16002. $ContentIconh
  16003. $ContentIcon
  16004. Froma
  16005.  pager 
  16006. SendToa
  16007.  pager 
  16008. message.wav
  16009. vmsg_hdr.wav
  16010. .wavG
  16011. .tifG
  16012. $ContentIconh
  16013. $ContentIcon
  16014.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$65Subject
  16015. NonDelivery Report
  16016. DELIVERY FAILURE: 
  16017. FailureReason
  16018. Delivery Report
  16019. DELIVERED: 
  16020. Subject
  16021. Return Receipt
  16022. RECEIVED: 
  16023. Subject
  16024. ReturnNonReceipt
  16025. NOT RECEIVED: 
  16026. Subject
  16027. Subject
  16028.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S&
  16029. New Memo.
  16030.     0S0E
  16031. Delete 
  16032.     0S0E
  16033. Move To Folder...
  16034.     0S0E
  16035. _Forward
  16036. Categori_zeK
  16037. Edit Document
  16038. Edit New Copy
  16039. MailStEd
  16040.     1S2S3S
  16041. _Move To Folder...    
  16042. _Remove From Folder...
  16043. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  16044. '++LotusScript Development Environment:2:5:(Forward):0:1
  16045. Declare Sub Click(Source As Button)
  16046. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16047. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16048. Private Sub BindEvents(Byval Objectname_ As String)
  16049.      Static Source As BUTTON
  16050.      Set Source = Bind(Objectname_)
  16051.      On Event Click From Source Call Click
  16052. End Sub
  16053. '++LotusScript Development Environment:2:2:Click:1:12
  16054. Sub Click(Source As Button)
  16055.      Call CreateNewDoc(NEW_MEMO)
  16056. End Sub
  16057. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  16058. '++LotusScript Development Environment:2:5:(Forward):0:1
  16059. Declare Sub Click(Source As Button)
  16060. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16061. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16062. Private Sub BindEvents(Byval Objectname_ As String)
  16063.      Static Source As BUTTON
  16064.      Set Source = Bind(Objectname_)
  16065.      On Event Click From Source Call Click
  16066. End Sub
  16067. '++LotusScript Development Environment:2:2:Click:1:12
  16068. Sub Click(Source As Button)
  16069.      Call CreateNewDoc(NEW_CALENDAR)
  16070. End Sub
  16071. tmpnewdoc
  16072.     1S2S
  16073. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  16074. '++LotusScript Development Environment:2:5:(Forward):0:1
  16075. Declare Sub Click(Source As Button)
  16076. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16077. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16078. Private Sub BindEvents(Byval Objectname_ As String)
  16079.      Static Source As BUTTON
  16080.      Set Source = Bind(Objectname_)
  16081.      On Event Click From Source Call Click
  16082. End Sub
  16083. '++LotusScript Development Environment:2:2:Click:1:12
  16084. Sub Click(Source As Button)
  16085.      Call CreateNewDoc(NEW_TASK)
  16086. End Sub
  16087. tmpnewdoc
  16088.     1S2S
  16089. Copy into\New GroupK,
  16090. NewGroup
  16091.     0S0E
  16092. tmpnewdoc
  16093.     1S2S
  16094. '++LotusScript Development Environment:2:5:(Options):0:74
  16095. Option Public
  16096. Use "DocumentConversions"
  16097. '++LotusScript Development Environment:2:5:(Forward):0:1
  16098. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16099. O=Lotus Notes
  16100. O=Lotus Notes
  16101. PURSAFO
  16102. |.:#U
  16103. O=Lotus Notes
  16104. CN=Lotus Notes Template Development/O=Lotus Notes
  16105. PURSAFO
  16106. $TABLEFORMAT
  16107. $TITLE
  16108. $Index
  16109. $Formula
  16110. $FormulaClass
  16111. $VIEWFORMAT
  16112. $Comment
  16113. $ACTIONS
  16114. $SCRIPTOBJ_10
  16115. $SCRIPTOBJ_11
  16116. $SCRIPTOBJ_12
  16117. $ViewGlobalScript
  16118. $ViewGlobalScript_O
  16119. DueStateh
  16120. DueState
  16121.     7S9S
  16122. DueState
  16123. Overdue
  16124. DueState
  16125. Future
  16126. DueState
  16127. Rejected
  16128. DueState
  16129. Complete
  16130. Current
  16131.     3S4S6S8S9S10S12S14S15S16S18S20S21S22S24S26S
  16132. $186l
  16133. AssignState
  16134. Importance
  16135. Importance
  16136. Importance
  16137.     4S6R7S8S10S12R18R24R30R
  16138. SentBy
  16139. Principal
  16140. Principal
  16141.     1S2S5S6S8S10S
  16142. Subject
  16143. SentBy
  16144.  (Assigned by 
  16145. SentBy
  16146.     0R1S2E2S5S6S8S14S16S17S19S
  16147. AssignedToh
  16148. AssignedTo
  16149. AssignedTo
  16150. AssignState
  16151.  (Not Sent)
  16152. ReplyTo
  16153. ReplyDate
  16154. SendTo
  16155. SendTo
  16156. ReplyTo
  16157.     2R6S7S10S11S15S18S20S24S26S27S30S31S33S35S39R42S43S46S49S50S52S56S59S65S68S72S76S78S82S86R
  16158. $172$176$186Subject$185DueDateTime$182$Conflict$REF
  16159. DueDateTime
  16160. ExcludeFromView
  16161.     L1S3S4S5S6S7S8S9S10S12S13S16S17S
  16162.  $172N
  16163. DueStateh
  16164. DueState
  16165.     7S9S
  16166. DueState
  16167. Overdue
  16168. DueState
  16169. Future
  16170. DueState
  16171. Rejected
  16172. DueState
  16173. Complete
  16174. Current
  16175.     3S4S6S8S9S10S12S14S15S16S18S20S21S22S24S26S$186
  16176. $186l
  16177. AssignState
  16178. Importance
  16179. Importance
  16180. Importance
  16181.     4S6R7S8S10S12R18R24R30RSubject$185Task
  16182. SentBy
  16183. Principal
  16184. Principal
  16185.     1S2S5S6S8S10S
  16186. Subject
  16187. SentBy
  16188.  (Assigned by 
  16189. SentBy
  16190.     0R1S2E2S5S6S8S14S16S17S19S
  16191. DueDateTimeDue$182Assigned To
  16192. AssignedToh
  16193. AssignedTo
  16194. AssignedTo
  16195. AssignState
  16196.  (Not Sent)
  16197. ReplyTo
  16198. ReplyDate
  16199. SendTo
  16200. SendTo
  16201. ReplyTo
  16202.     2R6S7S10S11S15S18S20S24S26S27S30S31S33S35S39R42S43S46S49S50S52S56S59S65S68S72S76S78S82S86R
  16203. Categori_zeK
  16204. _Forward
  16205. _Edit Document
  16206. Send Docu_ment
  16207. New Task.
  16208.     0S0E
  16209. Delete
  16210. DueState
  16211. Task Not Completed
  16212. This Task is not yet completed, are you sure you want to delete it?
  16213.     3S4S5S6S7S8S10R21S23S29S
  16214. Mark Completed'++LotusScript Development Environment:2:5:(Options):0:74
  16215. Use "ObjectVariables"
  16216. '++LotusScript Development Environment:2:5:(Forward):0:1
  16217. Declare Sub Click(Source As Button)
  16218. Declare Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  16219. '++LotusScript Development Environment:2:5:(Declarations):0:10
  16220. Dim maildoc As NotesDocument
  16221. Dim dt As NotesDateTime
  16222. Dim Subject As Variant
  16223. Dim Action As Variant
  16224. Dim NewSubject As String
  16225. Dim ComposeReply As Variant
  16226. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16227. Private Sub BindEvents(Byval Objectname_ As String)
  16228.      Static Source As BUTTON
  16229.      Set Source = Bind(Objectname_)
  16230.      On Event Click From Source Call Click
  16231. End Sub
  16232. '++LotusScript Development Environment:2:2:Click:1:12
  16233. Sub Click(Source As Button)
  16234.      
  16235.      Dim sendToList As Variant
  16236.      Dim cnName As Variant
  16237.      Dim foundName As Integer
  16238.      
  16239.      ComposeReply = False
  16240.      Call InstantiateObjectVariables
  16241.      
  16242.      Set dt = New NotesDateTime("")
  16243.      dt.SetNow
  16244.      
  16245.      Set ws = New NotesUIWorkspace
  16246.      Set documents = db.UnprocessedDocuments
  16247.      
  16248.      If documents.Count = 0 Then Exit Sub
  16249.      
  16250.      For d = 1 To documents.Count
  16251.           Set note = documents.GetNthDocument(d)
  16252.           If note.HasItem(Principal) Then
  16253.                FromName = note.Principal(0)
  16254.           Else
  16255.                FromName = note.From(0)
  16256.           End If
  16257.           If note.Form(0) = "Task" Then
  16258.                oldAssignState = note.AssignState(0)
  16259.           Else
  16260.                oldAssignState = 99
  16261.           End If
  16262.           Subject = note.Subject(0)
  16263.           NewSubject = "Task:  " & Subject & " is complete as of " & dt.LSLocalTime
  16264.           Select Case oldAssignState
  16265.           Case 0, 1 '0=assigned to yourself.  1=assigned to someone else but not sent
  16266.                Gosub CompleteThisTask
  16267.           Case 8, 9 '9=complete
  16268.                Messagebox Subject & " is already closed.", 0, "Task Completion"
  16269.           Case 99 '99=this is not a Task doc
  16270.                Messagebox Subject & " is not a task document and therefore it cannot be completed.", 0, "Task Completion"
  16271.           Case Else ' make sure current user (using common name) is included in the assignTo list
  16272.                sendToList = note.SendTo
  16273.                cnName = Evaluate("@Name([CN]; @Username )")
  16274.                foundName = False
  16275.                Forall a In sendToList
  16276.                     If Instr(Lcase(a), Lcase(cnName(0))) > 0 Then
  16277.                          foundName = True
  16278.                          Exit Forall
  16279.                     End If
  16280.                End Forall
  16281.                
  16282.                If Not foundName Then
  16283.                     Messagebox "Task '" & Subject & "' is not assigned to you. You cannot complete a task that is assigned to someone else.", 0, "Task Completion"
  16284.                Else
  16285.                     Action = "Complete"
  16286.                     If SendNotification("completion", "I have completed task: ", 9, 82) = False Then Exit Sub
  16287.                     Gosub CompleteThisTask
  16288.                End If
  16289.           End Select
  16290.      Next
  16291.      
  16292.      If ComposeReply Then Call ws.ComposeDocument("", "", "Reply") 
  16293.      
  16294.      Delete note
  16295.      ws.ViewRefresh
  16296.      
  16297.      Exit Sub
  16298.      
  16299. CompleteThisTask:
  16300.      note.DueState = 9
  16301.      note.AssignState = 9
  16302.      note.CompletedDateTime = dt.LSLocalTime
  16303.      Call note.ReplaceItemValue("_ViewIcon", 82)
  16304.      Call note.save(True, True, True)
  16305.      Return
  16306.      
  16307. End Sub
  16308. '++LotusScript Development Environment:2:1:SendNotification:1:8
  16309. Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  16310.      
  16311. '(this was copied from the Task form)
  16312.      
  16313.      SendNotification = True
  16314.      
  16315.      FromCommonName = Evaluate("@Name([CN]; Principal)", note)
  16316.      If FromCommonName(0) = "" Then FromCommonName = Evaluate("@Name([CN]; From)", note)
  16317.      
  16318.      CommentQuery = Messagebox("A " & ReplyType & " notice will be sent to " & FromCommonName(0) &_
  16319.      ".  Do you wish to send additional comments?", MB_YESNOCANCEL, "Task " & Action)
  16320.      Select Case CommentQuery
  16321.      Case IDYES
  16322.           Call session.SetEnvironmentVar("MailStEd", Cstr(NewSubject))
  16323.           ComposeReply = True
  16324.      Case IDNO
  16325.           Set maildoc = New NotesDocument(db)
  16326.           Set rtitem = New NotesRichTextItem(maildoc, "Body")
  16327.           If note.HasItem("Principal") Then
  16328.                maildoc.SendTo = note.Principal(0) & " @ " & note.FromDomain(0)
  16329.           Else
  16330.                maildoc.SendTo = note.From(0) & " @ " & note.FromDomain(0)
  16331.           End If
  16332.           maildoc.Subject = NewSubject
  16333.           rtitem.AppendText(MessageText & Subject & ".  ")
  16334.           maildoc.Form = "Reply"
  16335.           maildoc.Principal = Owner
  16336.           maildoc.AssignState = NewState
  16337.           maildoc.DueState = NewState
  16338.           Call maildoc.AppendItemValue("_ViewIcon", ViewIcon)
  16339.           Call maildoc.Save (True, True, True)
  16340.           Call maildoc.MakeResponse(note)
  16341.           On Error Goto SendError
  16342.           Call maildoc.Send (False)
  16343.           Call maildoc.Save (True, True, True)
  16344.           ws.ViewRefresh
  16345.      Case IDCANCEL
  16346.           note.SaveOptions = "0"
  16347.           note.MailOptions = "0"
  16348.           CommentQuery = "Cancel"
  16349.           SendNotification = False
  16350.           Exit Function
  16351.      End Select
  16352.      
  16353.      note.SaveOptions = "1"          
  16354.      note.AssignState = NewState
  16355.      note.DueState = NewState
  16356.      Call note.ReplaceItemValue("_ViewIcon", ViewIcon)
  16357.      
  16358.      Exit Function
  16359.      
  16360. SendError:
  16361.      Messagebox ReplyType & " reply document could not be sent to " & FromCommonName(0) & " at this time.  Please retry", MB_OK, "Task Completion"
  16362.      SendNotification = False
  16363.      maildoc.Remove(True)
  16364.      Exit Function
  16365.      
  16366. End Function
  16367. Unmark Completed
  16368. AssignState
  16369. Unmark Completed Task
  16370. You cannot unmark a task that has not been completed.
  16371.     3S4S6S8S14S16S
  16372. DbOwner
  16373. CalendarProfile
  16374. Owner
  16375.     0R1S2S6S
  16376. 4.0 converted AssignedTo to abbreviated name and 4.5 does not so here we are checking both
  16377.     0RR1S
  16378. Owner1
  16379. DbOwner
  16380. DbOwner
  16381.     0R1S2S6S9S10S12S14S
  16382. Owner2
  16383. DbOwner
  16384. DbOwner
  16385.     0R1S2S6S9S10S12S14S
  16386. AssignedTo1
  16387. AssignedTo
  16388.     0R1S2S6S
  16389. AssignedTo2
  16390. AssignedTo
  16391.     0R1S2S6S
  16392. User1
  16393.     0R1S2S6S
  16394. User2
  16395.     0R1S2S6S
  16396. AssignedTo1
  16397. AssignedTo2
  16398. Owner1
  16399. Owner2
  16400. User1
  16401. User2
  16402. Unmark Completed Task
  16403. You can only unmark a completed task that was assigned to you.
  16404.     0RR3S4S5S6S7S8S9S10S11S12S13S14S16S18S24S26S
  16405. AssignState
  16406.     0R1S2S3S
  16407. DueState
  16408.     0R1S2S3S
  16409. CompletedDateTime
  16410.     0R1S2S3S
  16411. Update Tasks.
  16412. Update Tasks
  16413. _Move to Folder...
  16414. _Remove from Folder...
  16415. Remove from To Do View`
  16416. ExcludeFromView
  16417. ExcludeFromView
  16418.     1S2S3S8S9S
  16419. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  16420. '++LotusScript Development Environment:2:5:(Forward):0:1
  16421. Declare Sub Click(Source As Button)
  16422. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16423. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16424. Private Sub BindEvents(Byval Objectname_ As String)
  16425.      Static Source As BUTTON
  16426.      Set Source = Bind(Objectname_)
  16427.      On Event Click From Source Call Click
  16428. End Sub
  16429. '++LotusScript Development Environment:2:2:Click:1:12
  16430. Sub Click(Source As Button)
  16431.      Call CreateNewDoc(NEW_MEMO)
  16432. End Sub
  16433. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  16434. '++LotusScript Development Environment:2:5:(Forward):0:1
  16435. Declare Sub Click(Source As Button)
  16436. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16437. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16438. Private Sub BindEvents(Byval Objectname_ As String)
  16439.      Static Source As BUTTON
  16440.      Set Source = Bind(Objectname_)
  16441.      On Event Click From Source Call Click
  16442. End Sub
  16443. '++LotusScript Development Environment:2:2:Click:1:12
  16444. Sub Click(Source As Button)
  16445.      Call CreateNewDoc(NEW_CALENDAR)
  16446. End Sub
  16447. tmpnewdoc
  16448.     1S2S
  16449. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  16450. '++LotusScript Development Environment:2:5:(Forward):0:1
  16451. Declare Sub Click(Source As Button)
  16452. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16453. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16454. Private Sub BindEvents(Byval Objectname_ As String)
  16455.      Static Source As BUTTON
  16456.      Set Source = Bind(Objectname_)
  16457.      On Event Click From Source Call Click
  16458. End Sub
  16459. '++LotusScript Development Environment:2:2:Click:1:12
  16460. Sub Click(Source As Button)
  16461.      Call CreateNewDoc(NEW_TASK)
  16462. End Sub
  16463. tmpnewdoc
  16464.     1S2S
  16465. Copy into\New GroupK,
  16466. NewGroup
  16467.     0S0E
  16468. tmpnewdoc
  16469.     1S2S
  16470. ^(    Kt
  16471. Q8    I$
  16472. Q8    I$
  16473.     4S5S
  16474. Principal
  16475. '++LotusScript Development Environment:2:5:(Options):0:74
  16476. Option Public
  16477. Use "DocumentConversions"
  16478. '++LotusScript Development Environment:2:5:(Forward):0:1
  16479. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16480. O=Lotus Notes
  16481. O=Lotus Notes
  16482. PURSAFO
  16483. |.:#U
  16484. O=Lotus Notes
  16485. CN=Lotus Notes Template Development/O=Lotus Notes
  16486. PURSAFO
  16487. $TABLEFORMAT
  16488. $TITLE
  16489. $Index
  16490. $Formula
  16491. $FormulaClass
  16492. $VIEWFORMAT
  16493. $Comment
  16494. $ACTIONS
  16495. $SCRIPTOBJ_6
  16496. $SCRIPTOBJ_12
  16497. $SCRIPTOBJ_13
  16498. $SCRIPTOBJ_14
  16499. $ViewGlobalScript
  16500. $ViewGlobalScript_O
  16501.  $53Unique ID
  16502. $47Date^
  16503. DeliveredDate
  16504. DeliveredDate
  16505. PostedDate
  16506. PostedDatei
  16507. $48From`
  16508. FromDomainh
  16509. FromDomain"
  16510. $50PriorityD
  16511. DeliveryPriority
  16512. DeliveryPriority
  16513. $51Type
  16514. MessageType
  16515. MessageType
  16516. Delivery Report
  16517. VIM_DLR
  16518. NonDelivery Report
  16519. VIM_NDLR
  16520. Return Receipt
  16521. VIM_RTRC
  16522. VIM_MAILJ    
  16523. $52Subject
  16524. Subject
  16525. Categori_ze
  16526. _Edit Document
  16527. Send Docu_ment
  16528. _Forward
  16529. O=Lotus Notes
  16530. O=Lotus Notes
  16531. PURSAFO
  16532. |.:#U
  16533. O=Lotus Notes
  16534. CN=Lotus Notes Template Development/O=Lotus Notes
  16535. PURSAFO
  16536. j&fS:ZD
  16537. $TABLEFORMAT
  16538. $Author
  16539. $TITLE
  16540. $Index
  16541. $Formula
  16542. $FormulaClass
  16543. $VIEWFORMAT
  16544. $Comment
  16545. $ACTIONS
  16546.  $53Draft4
  16547. PostedDateY
  16548. VIMSEL_DRAFT
  16549. $47Date^
  16550. DeliveredDate
  16551. DeliveredDate
  16552. PostedDate
  16553. PostedDatei
  16554. $48From`
  16555. FromDomainh
  16556. FromDomain"
  16557. $50PriorityD
  16558. DeliveryPriority
  16559. DeliveryPriority
  16560. $51Type
  16561. MessageType
  16562. MessageType
  16563. Delivery Report
  16564. VIM_DLR
  16565. NonDelivery Report
  16566. VIM_NDLR
  16567. Return Receipt
  16568. VIM_RTRC
  16569. VIM_MAILJ    
  16570. $52Subject
  16571. Subject
  16572. Categori_ze
  16573. _Edit Document
  16574. Send Docu_ment
  16575. _Forward
  16576. O=Lotus Notes
  16577. O=Lotus Notes
  16578. PURSAFO
  16579. |.:#U
  16580. O=Lotus Notes
  16581. CN=Lotus Notes Template Development/O=Lotus Notes
  16582. PURSAFO
  16583. $TABLEFORMAT
  16584. $Author
  16585. $TITLE
  16586. $Index
  16587. $Formula
  16588. $FormulaClass
  16589. $VIEWFORMAT
  16590. $Comment
  16591. $ACTIONS
  16592.  $53Categoryj
  16593. Recipients
  16594. Categories
  16595. Categoriesb
  16596. (No Category)
  16597. $47Date^
  16598. DeliveredDate
  16599. DeliveredDate
  16600. PostedDate
  16601. PostedDatei
  16602. $48From`
  16603. FromDomainh
  16604. FromDomain"
  16605. $50PriorityD
  16606. DeliveryPriority
  16607. DeliveryPriority
  16608. $51Type
  16609. MessageType
  16610. MessageType
  16611. Delivery Report
  16612. VIM_DLR
  16613. NonDelivery Report
  16614. VIM_NDLR
  16615. Return Receipt
  16616. VIM_RTRC
  16617. VIM_MAILJ    
  16618. $52Subject
  16619. Subject
  16620. Categori_ze
  16621. _Edit Document
  16622. Send Docu_ment
  16623. _Forward
  16624. O=Lotus Notes
  16625. O=Lotus Notes
  16626. PURSAFO
  16627. |.:#U
  16628. O=Lotus Notes
  16629. CN=Lotus Notes Template Development/O=Lotus Notes
  16630. PURSAFO
  16631. $TABLEFORMAT
  16632. $Author
  16633. $TITLE
  16634. $Index
  16635. $Formula
  16636. $FormulaClass
  16637. $VIEWFORMAT
  16638. $Comment
  16639. $ACTIONS
  16640. $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
  16641. Recipients
  16642. SenderCategorized
  16643. SenderCategorized
  16644. (No Category)
  16645. DeliveredDate
  16646. DeliveredDate
  16647. PostedDate
  16648. PostedDatei
  16649. FromDomainh
  16650. FromDomain"
  16651. DeliveryPriority
  16652. DeliveryPriority
  16653. MessageType
  16654. MessageType
  16655. Delivery Report
  16656. VIM_DLR
  16657. NonDelivery Report
  16658. VIM_NDLR
  16659. Return Receipt
  16660. VIM_RTRC
  16661. VIM_MAILJ    
  16662. Subject
  16663. $53$47$48$50$51$52$Conflict
  16664. $MessageType
  16665.     L1S1$
  16666. $53$47$48
  16667. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################################
  16668. $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
  16669. MessageType
  16670. MessageType
  16671. Delivery Report
  16672. VIM_DLR
  16673. NonDelivery Report
  16674. VIM_NDLR
  16675. Return Receipt
  16676. VIM_RTRC
  16677. VIM_MAILJ    
  16678. DeliveredDate
  16679. DeliveredDate
  16680. PostedDate
  16681. PostedDatei
  16682. FromDomainh
  16683. FromDomain"
  16684. DeliveryPriority
  16685. DeliveryPriority
  16686. MessageType
  16687. MessageType
  16688. Delivery Report
  16689. VIM_DLR
  16690. NonDelivery Report
  16691. VIM_NDLR
  16692. Return Receipt
  16693. VIM_RTRC
  16694. VIM_MAILJ    
  16695. Subject
  16696. $45$47$48$50$51$52$Conflict
  16697. $MessageType
  16698.     L1S1$
  16699. $45$47$48
  16700. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  16701. ($Alarms)|$Alarms1($Alarms)|$Alarms
  16702. $AlarmTimeh
  16703. $AlarmTime
  16704. CalendarDateTime
  16705. $AlarmOffset
  16706.     7S9S13S15S17S19S21S23S
  16707. $92CalendarDateTime$AlarmOffset$AlarmDescription$Conflict
  16708. $92CalendarDateTime
  16709. $92AlarmTime
  16710. $AlarmTimeh
  16711. $AlarmTime
  16712. CalendarDateTime
  16713. $AlarmOffset
  16714.     7S9S13S15S17S19S21S23S
  16715. CalendarDateTimeCalendarDateTime$AlarmOffsetOffset$AlarmDescriptionDescription&
  16716. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  16717. ############
  16718. 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####################################
  16719. CN=Ryan Jansen/O=IrisCN=user1 test/O=C&SCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesAppointmentResponsess34Q1###################################
  16720. 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###############################################
  16721. 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##################################################
  16722. 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#########################################
  16723. 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=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesObjectVariabless34Q1#########################################################
  16724. 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########################################################
  16725. 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 
  16726. ##########################################################
  16727. qHmvO
  16728. CN=Stan Getz/O=bogusCN=Lou Reed/O=bogusCN=Ryan Jansen/O=IrisCN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesSharedTaskLibrarys34Q1##############
  16729. 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##########################################
  16730. (Delivery Report)Delivery Report
  16731. CN=Richard Schwartz/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########
  16732. (Return Receipt)Return Receipt
  16733. CN=Richard Schwartz/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############
  16734. (ReturnNonReceipt)ReturnNonReceipt
  16735. CN=Richard Schwartz/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################
  16736. (Trace Report)Trace ReportCD
  16737. CN=Richard Schwartz/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###############
  16738. _Special\BookmarkBookmark
  16739. CN=Richard Schwartz/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################################################
  16740. (Calendar Profile)CalendarProfilew1
  16741. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############
  16742. 30719
  16743. CN=Keith Hatfield/OU=CAM/O=Lotus##########################
  16744. 2CN=Keith Hatfield/OU=CAM/O=Lotus
  16745. 30719
  16746. CN=Keith Hatfield/OU=CAM/O=Lotus
  16747. ##########################################################
  16748. ##########################################################
  16749. ##########################################################
  16750. ##########################################################
  16751. ##########################################################
  16752. ##########################################################
  16753. ##########################################################
  16754. ##########################################################
  16755. ##########################################################
  16756. ##########################################################
  16757. ##########################################################
  16758. ##########################################################
  16759. ##########################################################
  16760. ##########################################################
  16761. ##########################################################
  16762. ##########################################################
  16763. ##########################################################
  16764. ##########################################################
  16765. ##########################################################
  16766. ##########################################################
  16767. ##########################################################
  16768. ##########################################################
  16769. ##########################################################
  16770. ##########################################################
  16771. ##########################################################
  16772. ##########################################################
  16773. ##########################################################
  16774. ##########################################################
  16775. ##########################################################
  16776. ##########################################################
  16777. ##########################################################
  16778. ##########################################################
  16779. ##########################################################
  16780. ##########################################################
  16781. ##########################################################
  16782. ##########################################################
  16783. ##########################################################
  16784. ##########################################################
  16785. ##########################################################
  16786. ##########################################################
  16787. ##########################################################
  16788. ##########################################################
  16789. ##########################################################
  16790. ##########################################################
  16791. ##########################################################
  16792. ##########################################################
  16793. ##########################################################
  16794. ##########################################################
  16795. ##########################################################
  16796. ##########################################################
  16797. ##########################################################
  16798. ##########################################################
  16799. ##########################################################
  16800. ##########################################################
  16801. ##########################################################
  16802. ##########################################################
  16803. ##########################################################
  16804. ##########################################################
  16805. ##########################################################
  16806. ##########################################################
  16807. ##########################################################
  16808.  $53Keywordz
  16809. Recipients
  16810. SenderCategorized
  16811. SenderCategorized
  16812. (No Category)
  16813. $47Date^
  16814. DeliveredDate
  16815. DeliveredDate
  16816. PostedDate
  16817. PostedDatei
  16818. $48From`
  16819. FromDomainh
  16820. FromDomain"
  16821. $50PriorityD
  16822. DeliveryPriority
  16823. DeliveryPriority
  16824. $51Type
  16825. MessageType
  16826. MessageType
  16827. Delivery Report
  16828. VIM_DLR
  16829. NonDelivery Report
  16830. VIM_NDLR
  16831. Return Receipt
  16832. VIM_RTRC
  16833. VIM_MAILJ    
  16834. $52Subject
  16835. Subject
  16836. Categori_ze
  16837. _Edit Document
  16838. Send Docu_ment
  16839. _Forward
  16840. O=Lotus Notes
  16841. O=Lotus Notes
  16842. PURSAFO
  16843. |.:#U
  16844. O=Lotus Notes
  16845. CN=Lotus Notes Template Development/O=Lotus Notes
  16846. PURSAFO
  16847. lHmW4ty
  16848. $TABLEFORMAT
  16849. $Author
  16850. $TITLE
  16851. $Index
  16852. $Formula
  16853. $FormulaClass
  16854. $VIEWFORMAT
  16855. $Comment
  16856. $ACTIONS
  16857.  $45Type
  16858. MessageType
  16859. MessageType
  16860. Delivery Report
  16861. VIM_DLR
  16862. NonDelivery Report
  16863. VIM_NDLR
  16864. Return Receipt
  16865. VIM_RTRC
  16866. VIM_MAILJ    
  16867. $47Date^
  16868. DeliveredDate
  16869. DeliveredDate
  16870. PostedDate
  16871. PostedDatei
  16872. $48From`
  16873. FromDomainh
  16874. FromDomain"
  16875. $50PriorityD
  16876. DeliveryPriority
  16877. DeliveryPriority
  16878. $51Type
  16879. MessageType
  16880. MessageType
  16881. Delivery Report
  16882. VIM_DLR
  16883. NonDelivery Report
  16884. VIM_NDLR
  16885. Return Receipt
  16886. VIM_RTRC
  16887. VIM_MAILJ    
  16888. $52Subject
  16889. Subject
  16890. Categori_ze
  16891. _Edit Document
  16892. Send Docu_ment
  16893. _Forward
  16894. O=Lotus Notes
  16895. O=Lotus Notes
  16896. PURSAFO
  16897. |.:#U
  16898. O=Lotus Notes
  16899. CN=Lotus Notes Template Development/O=Lotus Notes
  16900. PURSAFO
  16901.  o _!V
  16902. $TABLEFORMAT
  16903. $Author
  16904. $TITLE
  16905. $Index
  16906. $Formula
  16907. $FormulaClass
  16908. $VIEWFORMAT
  16909. $Comment
  16910. $ACTIONS
  16911. New Memo.
  16912.     0S0E
  16913. Delete 
  16914.     0S0E
  16915. Move To Folder...
  16916.     0S0E
  16917. _Forward
  16918. Reply
  16919. Reply
  16920.     0S0E
  16921. Reply With History@
  16922. Reply with history
  16923.     0S0E
  16924. Categori_zeK
  16925. _Edit Document
  16926. Send    
  16927. Resend
  16928. NonDelivery Report
  16929. Not a Delivery Failure Report
  16930. You cannot Resend a message unless it is a Delivery Failure Report.
  16931.     6S12S17S23S
  16932. _Move To Folder...
  16933. _Remove From Folder...
  16934. O=Lotus Notes
  16935. O=Lotus Notes
  16936. PURSAFO
  16937. |.:#U
  16938. O=Lotus Notes
  16939. CN=Lotus Notes Template Development/O=Lotus Notes
  16940. PURSAFO
  16941. h)Hkv
  16942. $TITLE
  16943. $PublicAccess
  16944. $Name
  16945. $Index
  16946. $Formula
  16947. $FormulaClass
  16948. $VIEWFORMAT
  16949. $Comment
  16950. $ACTIONS
  16951. CN=returns_process/O=05:31 PM
  16952. DeliveredDate
  16953. PostedDate
  16954. PostedDateY
  16955. IsMailStationeryh
  16956. _ViewIcon
  16957. _ViewIcon
  16958. Importance
  16959. Importance
  16960. _ViewIcon
  16961. _ViewIcon
  16962. $TypeIcon
  16963.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  16964. SentBy
  16965. Principal
  16966. Principal
  16967.     1S2S5S6S8S10S
  16968. DeliveredDate
  16969. SendTo
  16970. SentBy
  16971. SendTo
  16972.     0R1S2S5S6S7S8S9S10S12S14S18S
  16973.     0R1S2S8S
  16974.     0R1S2S15S16S
  16975. DeliveredDate
  16976. SendTo
  16977. SentBy
  16978. SendTo
  16979.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  16980. DeliveredDate
  16981. SendTo
  16982. SentBy
  16983. SendTo
  16984.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  16985. Person
  16986. X400FreeForm^
  16987.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  16988. Person2
  16989. Person
  16990. Person
  16991. Person
  16992. Person
  16993.     0R1S2S12S13S22S34S
  16994. Delivery Report
  16995. NonDelivery Report
  16996. Trace Report
  16997. Mail Router
  16998. Person2
  16999.     0R3S4S5S6S7S8S10S12S
  17000. DeliveredDate
  17001. DeliveredDate
  17002. PostedDate
  17003. PostedDate
  17004.     3S4S6S8S9S10S12S14S
  17005. $ContentIconh
  17006. $ContentIcon
  17007. Froma
  17008.  pager 
  17009. SendToa
  17010.  pager 
  17011. message.wav
  17012. vmsg_hdr.wav
  17013. .wavG
  17014. .tifG
  17015. $ContentIconh
  17016. $ContentIcon
  17017.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  17018. NonDelivery Report
  17019. DELIVERY FAILURE: 
  17020. FailureReason
  17021. Delivery Report
  17022. DELIVERED: 
  17023. Subject
  17024. Return Receipt
  17025. RECEIVED: 
  17026. Subject
  17027. ReturnNonReceipt
  17028. NOT RECEIVED: 
  17029. Subject
  17030. Subject
  17031.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S
  17032. $86$93$70$85$73$Conflict
  17033. DeliveredDate
  17034. PostedDate
  17035. PostedDateY
  17036. IsMailStationeryh
  17037. _ViewIcon
  17038. _ViewIcon
  17039. Importance
  17040. Importance
  17041. _ViewIcon
  17042. _ViewIcon
  17043. $TypeIcon
  17044.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  17045. $93Who>
  17046. SentBy
  17047. Principal
  17048. Principal
  17049.     1S2S5S6S8S10S
  17050. DeliveredDate
  17051. SendTo
  17052. SentBy
  17053. SendTo
  17054.     0R1S2S5S6S7S8S9S10S12S14S18S
  17055.     0R1S2S8S
  17056.     0R1S2S15S16S
  17057. DeliveredDate
  17058. SendTo
  17059. SentBy
  17060. SendTo
  17061.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  17062. DeliveredDate
  17063. SendTo
  17064. SentBy
  17065. SendTo
  17066.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  17067. Person
  17068. X400FreeForm^
  17069.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  17070. Person2
  17071. Person
  17072. Person
  17073. Person
  17074. Person
  17075.     0R1S2S12S13S22S34S
  17076. Delivery Report
  17077. NonDelivery Report
  17078. Trace Report
  17079. Mail Router
  17080. Person2
  17081.     0R3S4S5S6S7S8S10S12S
  17082. $70Date
  17083. DeliveredDate
  17084. DeliveredDate
  17085. PostedDate
  17086. PostedDate
  17087.     3S4S6S8S9S10S12S14S$85F
  17088. $ContentIconh
  17089. $ContentIcon
  17090. Froma
  17091.  pager 
  17092. SendToa
  17093.  pager 
  17094. message.wav
  17095. vmsg_hdr.wav
  17096. .wavG
  17097. .tifG
  17098. $ContentIconh
  17099. $ContentIcon
  17100.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$73Subject
  17101. NonDelivery Report
  17102. DELIVERY FAILURE: 
  17103. FailureReason
  17104. Delivery Report
  17105. DELIVERED: 
  17106. Subject
  17107. Return Receipt
  17108. RECEIVED: 
  17109. Subject
  17110. ReturnNonReceipt
  17111. NOT RECEIVED: 
  17112. Subject
  17113. Subject
  17114.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S&
  17115. New Memo.
  17116.     0S0E
  17117. Delete 
  17118.     0S0E
  17119. Move To Folder...
  17120.     0S0E
  17121. _Forward
  17122. Reply
  17123. Reply
  17124.     0S0E
  17125. Reply With History@
  17126. Reply with history
  17127.     0S0E
  17128. Categori_zeK
  17129. _Edit Document
  17130. Send Docu_ment    
  17131. Resend
  17132. NonDelivery Report
  17133. Not a Delivery Failure Report
  17134. You cannot Resend a message unless it is a Delivery Failure Report.
  17135.     6S12S17S23S
  17136. _Move To Folder...
  17137. _Remove From Folder...
  17138. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  17139. '++LotusScript Development Environment:2:5:(Forward):0:1
  17140. Declare Sub Click(Source As Button)
  17141. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17142. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17143. Private Sub BindEvents(Byval Objectname_ As String)
  17144.      Static Source As BUTTON
  17145.      Set Source = Bind(Objectname_)
  17146.      On Event Click From Source Call Click
  17147. End Sub
  17148. '++LotusScript Development Environment:2:2:Click:1:12
  17149. Sub Click(Source As Button)
  17150.      Call CreateNewDoc(NEW_MEMO)
  17151. End Sub
  17152. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  17153. '++LotusScript Development Environment:2:5:(Forward):0:1
  17154. Declare Sub Click(Source As Button)
  17155. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17156. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17157. Private Sub BindEvents(Byval Objectname_ As String)
  17158.      Static Source As BUTTON
  17159.      Set Source = Bind(Objectname_)
  17160.      On Event Click From Source Call Click
  17161. End Sub
  17162. '++LotusScript Development Environment:2:2:Click:1:12
  17163. Sub Click(Source As Button)
  17164.      Call CreateNewDoc(NEW_CALENDAR)
  17165. End Sub
  17166. tmpnewdoc
  17167.     1S2S
  17168. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  17169. '++LotusScript Development Environment:2:5:(Forward):0:1
  17170. Declare Sub Click(Source As Button)
  17171. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17172. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17173. Private Sub BindEvents(Byval Objectname_ As String)
  17174.      Static Source As BUTTON
  17175.      Set Source = Bind(Objectname_)
  17176.      On Event Click From Source Call Click
  17177. End Sub
  17178. '++LotusScript Development Environment:2:2:Click:1:12
  17179. Sub Click(Source As Button)
  17180.      Call CreateNewDoc(NEW_TASK)
  17181. End Sub
  17182. tmpnewdoc
  17183.     1S2S
  17184. Copy into\New GroupK,
  17185. NewGroup
  17186.     0S0E
  17187. tmpnewdoc
  17188.     1S2S
  17189. Retrieve mail
  17190. Database
  17191.     1S2S
  17192. Database
  17193. ($Inbox)
  17194.     0R4S6S
  17195.     4S5S
  17196. '++LotusScript Development Environment:2:5:(Options):0:74
  17197. Option Public
  17198. Use "ObjectVariables"
  17199. Use "DocumentConversions"
  17200. '++LotusScript Development Environment:2:5:(Forward):0:1
  17201. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17202. O=Lotus Notes
  17203. O=Lotus Notes
  17204. PURSAFO
  17205. |.:#U
  17206. O=Lotus Notes
  17207. CN=Lotus Notes Template Development/O=Lotus Notes
  17208. PURSAFO
  17209. xpQgz
  17210. U02l[
  17211. $TITLE
  17212. $Name
  17213. $Index
  17214. $Formula
  17215. $FormulaClass
  17216. $VIEWFORMAT
  17217. $Comment
  17218. $ACTIONS
  17219. $SCRIPTOBJ_12
  17220. $SCRIPTOBJ_13
  17221. $SCRIPTOBJ_14
  17222. $ViewGlobalScript
  17223. $ViewGlobalScript_O
  17224. CN=returns_process/O=05:31 PM
  17225. DeliveredDate
  17226. PostedDate
  17227. PostedDateY
  17228. IsMailStationeryh
  17229. _ViewIcon
  17230. _ViewIcon
  17231. Importance
  17232. Importance
  17233. _ViewIcon
  17234. _ViewIcon
  17235. $TypeIcon
  17236.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  17237. SentBy
  17238. Principal
  17239. Principal
  17240.     1S2S5S6S8S10S
  17241. DeliveredDate
  17242. SendTo
  17243. SentBy
  17244. SendTo
  17245.     0R1S2S5S6S7S8S9S10S12S14S18S
  17246.     0R1S2S8S
  17247.     0R1S2S15S16S
  17248. DeliveredDate
  17249. SendTo
  17250. SentBy
  17251. SendTo
  17252.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  17253. DeliveredDate
  17254. SendTo
  17255. SentBy
  17256. SendTo
  17257.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  17258. Person
  17259. X400FreeForm^
  17260.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  17261. Person2
  17262. Person
  17263. Person
  17264. Person
  17265. Person
  17266.     0R1S2S12S13S22S34S
  17267. Delivery Report
  17268. NonDelivery Report
  17269. Trace Report
  17270. Mail Router
  17271. Person2
  17272.     0R3S4S5S6S7S8S10S12S
  17273. DeliveredDate
  17274. DeliveredDate
  17275. PostedDate
  17276. PostedDate
  17277.     3S4S6S8S9S10S12S14S
  17278. $ContentIconh
  17279. $ContentIcon
  17280. Froma
  17281.  pager 
  17282. SendToa
  17283.  pager 
  17284. message.wav
  17285. vmsg_hdr.wav
  17286. .wavG
  17287. .tifG
  17288. $ContentIconh
  17289. $ContentIcon
  17290.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  17291. IsMailStationeryh
  17292. MailStationeryName
  17293. NonDelivery Report
  17294. DELIVERY FAILURE: 
  17295. FailureReason
  17296. Delivery Report
  17297. DELIVERED: 
  17298. Subject
  17299. Return Receipt
  17300. RECEIVED: 
  17301. Subject
  17302. ReturnNonReceipt
  17303. NOT RECEIVED: 
  17304. Subject
  17305. Subject
  17306.     7S9S10S11S13S14S15S17S18S19S21S22S23S25S26S27S29S30S31S33S34S35S37S38S39S41S
  17307. $79$87$64$80$69$Conflict
  17308. DeliveredDate
  17309. PostedDate
  17310. PostedDateY
  17311. IsMailStationeryh
  17312. _ViewIcon
  17313. _ViewIcon
  17314. Importance
  17315. Importance
  17316. _ViewIcon
  17317. _ViewIcon
  17318. $TypeIcon
  17319.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  17320. $87Who>
  17321. SentBy
  17322. Principal
  17323. Principal
  17324.     1S2S5S6S8S10S
  17325. DeliveredDate
  17326. SendTo
  17327. SentBy
  17328. SendTo
  17329.     0R1S2S5S6S7S8S9S10S12S14S18S
  17330.     0R1S2S8S
  17331.     0R1S2S15S16S
  17332. DeliveredDate
  17333. SendTo
  17334. SentBy
  17335. SendTo
  17336.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  17337. DeliveredDate
  17338. SendTo
  17339. SentBy
  17340. SendTo
  17341.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  17342. Person
  17343. X400FreeForm^
  17344.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  17345. Person2
  17346. Person
  17347. Person
  17348. Person
  17349. Person
  17350.     0R1S2S12S13S22S34S
  17351. Delivery Report
  17352. NonDelivery Report
  17353. Trace Report
  17354. Mail Router
  17355. Person2
  17356.     0R3S4S5S6S7S8S10S12S
  17357. $64Date
  17358. DeliveredDate
  17359. DeliveredDate
  17360. PostedDate
  17361. PostedDate
  17362.     3S4S6S8S9S10S12S14S$80F
  17363. $ContentIconh
  17364. $ContentIcon
  17365. Froma
  17366.  pager 
  17367. SendToa
  17368.  pager 
  17369. message.wav
  17370. vmsg_hdr.wav
  17371. .wavG
  17372. .tifG
  17373. $ContentIconh
  17374. $ContentIcon
  17375.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$69Subject
  17376. IsMailStationeryh
  17377. MailStationeryName
  17378. NonDelivery Report
  17379. DELIVERY FAILURE: 
  17380. FailureReason
  17381. Delivery Report
  17382. DELIVERED: 
  17383. Subject
  17384. Return Receipt
  17385. RECEIVED: 
  17386. Subject
  17387. ReturnNonReceipt
  17388. NOT RECEIVED: 
  17389. Subject
  17390. Subject
  17391.     7S9S10S11S13S14S15S17S18S19S21S22S23S25S26S27S29S30S31S33S34S35S37S38S39S41S
  17392. Categori_zeK
  17393. _Edit Document
  17394. Send Docu_ment
  17395. _Forward
  17396. Empty TrashK 
  17397.     0S0E
  17398. _Move to Folder...
  17399. _Remove From Trash
  17400. >|'++LotusScript Development Environment:2:5:(Options):0:74
  17401. Option Public
  17402. '++LotusScript Development Environment:2:5:(Forward):0:1
  17403. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17404. O=Lotus Notes
  17405. O=Lotus Notes
  17406. PURSAFO
  17407. |.:#U
  17408. O=Lotus Notes
  17409. CN=Lotus Notes Template Development/O=Lotus Notes
  17410. PURSAFO
  17411.  '[+T
  17412. $TITLE
  17413. $PublicAccess
  17414. $Name
  17415. $Index
  17416. $Formula
  17417. $FormulaClass
  17418. $VIEWFORMAT
  17419. $Comment
  17420. $ACTIONS
  17421. $ViewGlobalScript
  17422. $ViewGlobalScript_O
  17423. '++LotusScript Development Environment:2:5:(Options):0:74
  17424. Option Public 
  17425. Use "NoticeProcessing"
  17426. Use "ResourceProcessing"
  17427. '++LotusScript Development Environment:2:5:(Forward):0:1
  17428. Declare Sub Initialize
  17429. Declare Function SendInvitation As Integer
  17430. Declare Sub RescheduleAppointment
  17431. Declare Sub CancelAppointment(bRemoveFromCalendar As Integer)
  17432. Declare Sub ConfirmAppointment
  17433. Declare Sub RemoveInvitee
  17434. Declare Sub BuildAttendeeLists(mode As Integer)
  17435. Declare Sub SelectUserToRemove
  17436. Declare Sub ChangeStatus
  17437. Declare Sub RollbackAppointment(BusyPriority As String)
  17438. '++LotusScript Development Environment:2:5:(Declarations):0:10
  17439. 'AppointmentProcessing: 
  17440. 'AppointmentProcessing: 
  17441. 'AppointmentProcessing: 
  17442. '++LotusScript Development Environment:2:2:Initialize:1:10
  17443. Sub Initialize
  17444.      
  17445. End Sub
  17446. '++LotusScript Development Environment:2:1:SendInvitation:1:8
  17447. Function SendInvitation As Integer
  17448.     *This routine is called whenever the meeting originator invites users to a meeting
  17449.     *This routine sends out an invitation notice to the people listed in the 
  17450.      SendTo and CopyTo items and adds them to the RequiredAttendees and OptionalAttendees items        
  17451.     *This is the only routine that does not create a separate notice document to mail
  17452.     *The reason is that we need the router to update the SendTo and CopyTo items     
  17453.     Outputs:
  17454.     returns 0 if no errors occur, 1 if an error does occur
  17455. %END REM
  17456.      
  17457.      
  17458.      On Error Goto ErrorRoutine
  17459.      On Error 4412 Goto CleanUp          'this should trap uidoc.Send errors
  17460.      
  17461. 'if we have never invited anyone, add the SequenceNum item
  17462.      If Not note.HasItem("SequenceNum") Then note.SequenceNum = 1
  17463.      
  17464. 'modify the appointment document so it is an invitation
  17465.      note.Form  = "Notice"
  17466.      note.NoticeType = ORS_MSGTYPE_INVITE
  17467.      note.Topic = note.Subject
  17468.      note.apptunid = note.UniversalID
  17469.      If (note.Broadcast(0) = "1") Then
  17470.           MailSubject$ = "Broadcast - "
  17471.      Else
  17472.           MailSubject$ = "Invitation - "
  17473.      End If
  17474.      Set startitem = note.GetFirstItem("StartDateTime")
  17475.      If (note.Room(0) <> "") Then
  17476.           note.Subject = MailSubject$ & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  17477.      Else
  17478.           note.Subject =  MailSubject$ & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  17479.      End If     
  17480.      Call note.ReplaceItemValue("_ViewIcon",133)
  17481.      note.Principal = Owner
  17482.      note.Chair = Owner
  17483. 'remove fields that will need to be added later
  17484.      Call note.RemoveItem("CalendarDateTime")
  17485.      Call note.RemoveItem("OrgTable")
  17486.      BusyPriority = note.GetItemValue("$BusyPriority")
  17487.      Call note.RemoveItem("$BusyName")
  17488.      Call note.RemoveItem("$BusyPriority")
  17489.      Call note.RemoveItem("tmpOwner")
  17490.      
  17491. 'build the attendee lists so that the invitees have them
  17492.      Call BuildAttendeeLists(1)
  17493.      Call note.RemoveItem("tmpRequiredAttendees")
  17494.      Call note.RemoveItem("tmpOptionalAttendees")
  17495.      
  17496. 'this supresses the sign/encrypt dialog
  17497.      note.MailOptions = "1"
  17498.      Call uidoc.reload
  17499.      
  17500. 'we call the send from the NotesUIDocument object so that the Ambiguous Names dialog is invoked if needed    
  17501.      Call uidoc.Send
  17502.      
  17503. 'reset the fields on the note to make it an appointment
  17504.      Call RollbackAppointment(BusyPriority(0))
  17505.      
  17506. 'rebuild the attendees lists with the updated values from the router
  17507.      Call BuildAttendeeLists(2)
  17508.      
  17509. 'remove fields from the note
  17510.      note.SendTo =""
  17511.      note.CopyTo = ""
  17512.      SendInvitation = 0
  17513.      Exit Function
  17514.      
  17515. Cleanup:
  17516. 'reset the fields on the note to make it an appointment
  17517.      Call RollbackAppointment(BusyPriority(0))
  17518.      SendInvitation = 1
  17519.      Call uidoc.Reload
  17520.      Exit Function
  17521.      
  17522. ErrorRoutine:
  17523.      Call RollbackAppointment(BusyPriority(0))
  17524.      Messagebox Error & " (SendInvitation)"
  17525.      SendInvitation = 1     
  17526.      Exit Function
  17527. End Function
  17528. '++LotusScript Development Environment:2:2:RescheduleAppointment:1:8
  17529. Sub RescheduleAppointment
  17530.     *This routine is called whenever the user changes the room and/or the date/time of the meeting
  17531.     *This routine increments the SequenceNum item by 1 and notifies the room, resources, and invitees
  17532.      of the change by sending Reschedule notices out
  17533.     *This is routine is called from the uidocument or the calendar view (for drag/drop)
  17534. %END REM
  17535.      
  17536.      On Error Resume Next
  17537.      
  17538. 'see if this document belongs to a repeat set
  17539.      If (note.hasitem("tmpRescheduleWhich")) Then
  17540.           Call ProcessRepeatingResources(note.tmprescheduleWhich(0),ORS_MSGTYPE_RESCHEDULE,ORS_STATE_RESOURCE)
  17541.           Call ProcessRepeatingResources(note.tmprescheduleWhich(0),ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM)
  17542.      Else
  17543. 'this is not a repeating meeting          
  17544. 'reschedule the resources if need be
  17545.           If (note.RequiredResources(0) <> "") Then Call RescheduleResources(ORS_STATE_RESOURCE,note)
  17546.  'reschedule the room if need be
  17547.           If (note.RoomRequired(0) = "1") And (note.Room(0) <> "") Then Call RescheduleResources(ORS_STATE_ROOM,note)         
  17548.      End If
  17549.      
  17550.      On Error Goto ErrorRoutine
  17551.      
  17552. 'we need to add the correct attendees to the sendto item
  17553.      Call GetMailingList
  17554.      
  17555. 'make sure we have people to notify
  17556.      If (MailingList(0) = "") Then Exit Sub
  17557.      
  17558. 'create the notice document
  17559.      Call CreateNoticeDocument("Reschedule -",ORS_MSGTYPE_RESCHEDULE,33,1)
  17560.      
  17561.      notice.SendTo = MailingList
  17562.      Call notice.Send(False)
  17563.      Messagebox "The invitees have been notified that the appointment has changed.",0,"Status"
  17564.      
  17565.      Exit Sub
  17566. ErrorRoutine:
  17567.      Messagebox Error & " (RescheduleAppointment)"
  17568.      Exit Sub
  17569. End Sub
  17570. '++LotusScript Development Environment:2:2:CancelAppointment:1:8
  17571. Sub CancelAppointment(bRemoveFromCalendar As Integer)
  17572.     *This routine is called whenever the Chair manually cancels an appointment
  17573.     *A Cancellation notice is sent to the room, resources, and invitees
  17574.     *The $BusyPriority item is modified to tell the FreeTime system we are no longer busy
  17575.      1 = Busy, 2 = Not busy
  17576. %END REM
  17577.      
  17578.      On Error Resume Next
  17579.      
  17580. 'First, take care of cancelling any rooms/resrouces the user may have invited
  17581. 'if this is a repeating meeting, process every instance that we should
  17582.      If (note.HasItem("tmpRescheduleWhich")) Then
  17583.           Call ProcessRepeatingResources(note.tmpRescheduleWhich(0),ORS_MSGTYPE_CANCEL,ORS_STATE_RESOURCE)
  17584.           Call ProcessRepeatingResources(note.tmpRescheduleWhich(0),ORS_MSGTYPE_CANCEL,ORS_STATE_ROOM)
  17585.      Else
  17586. 'cancel the room and resource if need be
  17587.           If (note.RequiredResources(0) <> "") Then Call CancelResources(ORS_STATE_RESOURCE,note)
  17588.           If (note.RoomRequired(0) = "1") And (note.Room(0) <> "") Then Call CancelResources(ORS_STATE_ROOM,note)
  17589.      End If
  17590.      
  17591.      On Error Goto ErrorRoutine
  17592. 'we need to get the attendees who should be notified of the cancellation
  17593.      Call GetMailingList
  17594.      
  17595. 'make sure we have people to notify
  17596.      If (MailingList(0) <> "") Then
  17597. 'we don't exit since we need to remove items from the note          
  17598. 'create the notice
  17599.           Call CreateNoticeDocument("Cancelled -",ORS_MSGTYPE_CANCEL,81,1)
  17600.           
  17601.           notice.SendTo = MailingList
  17602.           Call notice.Send(False)
  17603.           Messagebox "The invitees have been notified that this appointment has been cancelled.",0,"Status"
  17604.      End If
  17605. 'update the appointment document
  17606.      If (bRemoveFromCalendar) Then
  17607.           note.RemoveItem("CalendarDateTime")
  17608.           Call note.ReplaceItemValue("$BusyPriority","2")     
  17609.           note.NoticeType = ORS_MSGTYPE_CANCEL
  17610.           Call note.RemoveItem("OrgTable")
  17611. 'if this document had an alarm, remove it from the alarms folder
  17612.           If (note.HasItem("$Alarm")) Then Call note.RemoveFromFolder("$Alarms")
  17613.      End If     
  17614.      Exit Sub
  17615. ErrorRoutine:
  17616.      Messagebox Error & " (CancelAppointment)"
  17617.      Exit Sub
  17618. End Sub
  17619. '++LotusScript Development Environment:2:2:ConfirmAppointment:1:8
  17620. Sub ConfirmAppointment
  17621.     *This routine sends out a confirmation notice to all invitees
  17622.     *If this is a repeating meeting, then the people invited to that instance of the
  17623.      meeting being confirmed is included in the confirmation
  17624.     *If this is not a repeating meeting, then that status of all invitees is included
  17625.      in the confirmation notice
  17626. %END REM
  17627.      
  17628.      On Error Goto ErrorRoutine
  17629.      
  17630. 'we need to get a list of attendees to send this to   
  17631.      Call GetMailingList
  17632.      
  17633. 'make sure we have people to notify
  17634.      If (MailingList(0) = "") Then Exit Sub
  17635.      
  17636.      Call CreateNoticeDocument("Confirmed -",ORS_MSGTYPE_CONFIRMATION,10,1)
  17637.      
  17638. 'if we are confirming a NON-repeating meeting, do the following
  17639.      If Not(note.HasItem("OrgRepeat")) Then
  17640.           Dim rtitem  As New NotesRichTextItem(notice,"StatusUpdate")
  17641.           
  17642. 'add all of the invitee status's to the rich text item   
  17643.           For i = 0 To InviteeCounter-1
  17644.                Set nam = New NotesName(InviteeList(i).InviteeName)
  17645.                Select Case InviteeList(i).Status
  17646.                Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  17647.                     Call rtitem.AppendText(nam.Common & " -> Accepted")
  17648.                Case ORS_MSGTYPE_REJECT
  17649.                     Call rtitem.AppendText(nam.Common & " -> Declined")
  17650.                Case ORS_MSGTYPE_COUNTER
  17651.                     Call rtitem.AppendText(nam.Common & " -> Counter Proposed")
  17652.                Case ORS_MSGTYPE_DELEGATING
  17653.                     Call rtitem.AppendText(nam.Common & " -> Delegated to " & InviteeList(i).Delegee)               
  17654.                Case ORG_STATUS_WAITING
  17655.                     Call rtitem.AppendText(nam.Common & " -> No Response")
  17656.                End Select
  17657.                Call rtitem.AddNewLine(1)          
  17658.           Next
  17659. 'include the people who were uninvited
  17660.           If (note.Uninvited(0) <> "") Then
  17661.                Call rtitem.AddNewLine(1)
  17662.                Call rtitem.AppendText("Uninvited:")          
  17663.                Call rtitem.AddNewLine(1)
  17664.                Uninvited = note.Uninvited
  17665.                For x = 0 To Ubound(Uninvited)
  17666.                     Call rtitem.AppendText(Uninvited(x))
  17667.                     Call rtitem.AddNewLine(1)
  17668.                Next          
  17669.           End If
  17670.      End If
  17671.      notice.SendTo = MailingList
  17672.      Call notice.Send(False)
  17673.      Messagebox "A confirmation notice has been sent to the invitees.",0,"Status"
  17674.      Exit Sub
  17675.      
  17676. ErrorRoutine:
  17677.      Messagebox Error & " (ConfirmAppointment)"
  17678.      Exit Sub
  17679. End Sub
  17680. '++LotusScript Development Environment:2:2:RemoveInvitee:1:8
  17681. Sub RemoveInvitee
  17682.     *This routine is called from SelectUserToRemove
  17683.     *This routine sends out a StatusUpdate message to the specified invitees
  17684.         with the OrgStatus item set to ORS_STATUS_REMOVED
  17685.     *The specified invitees are then appended to an item called Uninvited
  17686. %END REM
  17687.      Dim FullUserNames() As String
  17688.      Dim nIndex As Integer
  17689.      
  17690.      On Error Goto ErrorRoutine
  17691.      
  17692.      Call CreateNoticeDocument("You are no longer required to attend this appointment -",ORS_MSGTYPE_STATUSUPDATE,157,1)
  17693.      
  17694.      notice.OrgStatus = ORS_STATUS_REMOVED
  17695. 'for each person in the tmpUninvited field, get their full mail address
  17696.      PeopleToSend = note.tmpPeopleSelected
  17697.      Redim FullUserNames(Ubound(PeopleToSend))
  17698.      For i = 0 To Ubound(PeopleToSend)
  17699.           nIndex = FindInvitee(PeopleToSend(i))
  17700.           If (nIndex = -1) Then
  17701.                FullUserNames(i) = PeopleToSend(i)
  17702.           Else
  17703.                If (InviteeList(nIndex).Domain <> "") Then
  17704.                     FullUserNames(i) = InviteeList(nIndex).InviteeName & "@" & InviteeList(nIndex).Domain
  17705.                Else
  17706.                     FullUserNames(i) = InviteeList(nIndex).InviteeName    
  17707.                End If
  17708.                InviteeList(nIndex).Status = ORS_STATUS_REMOVED
  17709.                InviteeList(nIndex).KeepPosted = False
  17710.           End If
  17711.      Next
  17712.      
  17713.      notice.SendTo = FullUserNames
  17714.      Call notice.Send(False)
  17715.      Messagebox "An Uninvite notice has been sent to the people selected.",0,"Status"
  17716.      Exit Sub
  17717.      
  17718. ErrorRoutine:
  17719.      Messagebox Error & " (RemoveInvitee)"
  17720.      Exit Sub
  17721. End Sub
  17722. '++LotusScript Development Environment:2:2:BuildAttendeeLists:1:8
  17723. Sub BuildAttendeeLists(mode As Integer)
  17724.  *This routine is called from SendInvitation ONLY!
  17725.  *It is called twice
  17726.   First time - remove duplicate entries
  17727.   Second time - update names
  17728. %END REM
  17729.      
  17730.      Dim vSendToNames As Variant
  17731.      Dim vCopyToNames As Variant
  17732.      Dim vNewRequiredNames() As Variant
  17733.      Dim vNewOptionalNames() As Variant 
  17734.      Dim bInviteeExists As Integer
  17735.      Dim counter As Integer
  17736.      Dim newcounter As Integer
  17737.      Dim sCanonicalName As String
  17738.      Dim sDomainName As String
  17739.      Dim sNewNames() As String
  17740.      
  17741.      On Error Goto ErrorRoutine
  17742.      
  17743. 'get the sendto and copyto field values
  17744.      vSendToNames = note.SendTo
  17745.      vCopyToNames = note.CopyTo
  17746.      
  17747. 'determine why we are being called
  17748.      Select Case mode
  17749.      Case 1    'first time
  17750. 'we need to look for duplicate entries only if people have been invited
  17751. 'check RequiredAttendees
  17752.           If (vSendToNames(0) <> "") Then
  17753. 'initialize some variables
  17754.                Redim sNewNames(Ubound(vSendToNames))
  17755.                newcounter = 0               
  17756.                If (Isarray(OriginalRequired)) Then
  17757. 'required invitees already exist; copy them into a local variable                    
  17758.                     Redim vNewRequiredNames(Ubound(OriginalRequired) + Ubound(vSendToNames)+1)
  17759.                     Forall names In OriginalRequired
  17760.                          vNewRequiredNames(newcounter) = names
  17761.                          newcounter = newcounter+1
  17762.                     End Forall
  17763.                Else
  17764.                     Redim vNewRequiredNames(Ubound(vSendToNames))
  17765.                End If
  17766.                counter = 0
  17767.                Forall names In vSendToNames
  17768.                     Call GetNameComponents(Cstr(names),sCanonicalName,sDomainName)
  17769.                     bInviteeExists = FindInvitee(sCanonicalName)
  17770. 'if the invitee wasn't found, then add them keep them in the list and add them to the table
  17771.                     If (bInviteeExists = -1) Then
  17772.                          sNewNames(counter) = names
  17773.                          vNewRequiredNames(newcounter) = names                         
  17774.                          Call AddInviteeToInviteeTable(Cstr(names),"", False)
  17775.                          counter = counter + 1
  17776.                          newcounter = newcounter + 1
  17777.                     End If
  17778.                End Forall
  17779.                note.SendTo = sNewNames
  17780. 'we have to update the RequiredAttendees item so invitees can see who else has been invited               
  17781.                note.RequiredAttendees = vNewRequiredNames               
  17782.           End If
  17783. 'check OptionalAttendees
  17784.           If (vCopyToNames(0) <> "") Then
  17785. 'initialize some variables
  17786.                newcounter = 0               
  17787.                Redim sNewNames(Ubound(vCopyToNames))
  17788.                If (Isarray(OriginalOptional)) Then
  17789. 'optional invitees already exist; copy them into a local variable                    
  17790.                     Redim vNewOptionalNames(Ubound(OriginalOptional) + Ubound(vCopyToNames)+1)
  17791.                     Forall names In OriginalOptional
  17792.                          vNewOptionalNames(newcounter) = names
  17793.                          newcounter = newcounter+1
  17794.                     End Forall
  17795.                Else
  17796.                     Redim vNewOptionalNames(Ubound(vCopyToNames))
  17797.                End If
  17798.                counter = 0
  17799.                Forall names In vCopyToNames
  17800.                     Call GetNameComponents(Cstr(names),sCanonicalName,sDomainName)
  17801.                     bInviteeExists = FindInvitee(sCanonicalName)
  17802. 'if the invitee wasn't found, then add them keep them in the list and add them to the table
  17803.                     If (bInviteeExists = -1) Then
  17804.                          sNewNames(counter) = names
  17805.                          vNewOptionalNames(newcounter) = names                         
  17806.                          Call AddInviteeToInviteeTable(Cstr(names),"", False)
  17807.                          counter = counter + 1
  17808.                          newcounter = newcounter + 1
  17809.                     End If
  17810.                End Forall
  17811.                note.CopyTo = sNewNames
  17812.                note.OptionalAttendees = vNewOptionalNames
  17813.           End If
  17814.      Case 2     'second & final time being called
  17815. 'we need to update the RequiredAttendees and OptionalAttendees fields
  17816. 'first, update the RequiredAttendees item only if there are values in the SendTo item
  17817.           If (vSendToNames(0) <> "") Then
  17818. 'intialize variables
  17819.                newcounter = 0               
  17820.                If (Isarray(OriginalRequired)) Then
  17821. 'required invitees already exist; copy them into a local variable      
  17822.                     If (OriginalRequired(0) = "") And (Ubound(OriginalRequired) = 0) Then
  17823.                          Redim vNewRequiredNames(Ubound(vSendToNames))
  17824.                     Else                         
  17825.                          Redim vNewRequiredNames(Ubound(OriginalRequired) + Ubound(vSendToNames)+1)
  17826.                          Forall names In OriginalRequired
  17827.                               If (names <> "") Then
  17828.                                    vNewRequiredNames(newcounter) = names
  17829.                                    newcounter = newcounter+1
  17830.                               End If                         
  17831.                          End Forall
  17832.                     End If                    
  17833.                Else
  17834.                     Redim vNewRequiredNames(Ubound(vSendToNames))
  17835.                End If
  17836. 'add the sendto names
  17837.                Forall names In vSendToNames
  17838.                     If (names <> "") Then                    
  17839.                          vNewRequiredNames(newcounter) = names
  17840.                          newcounter = newcounter + 1
  17841.                     End If                    
  17842.                End Forall
  17843.                note.RequiredAttendees = vNewRequiredNames
  17844.           End If
  17845. 'update the OptionalAttendees item only if there are values in the CopyTo item
  17846.           If (vCopyToNames(0) <> "") Then
  17847. 'intialize variables
  17848.                newcounter = 0               
  17849.                If (Isarray(OriginalOptional)) Then
  17850. 'optional invitees already exist; copy them into a local variable                    
  17851.                     If (OriginalOptional(0) = "") And (Ubound(OriginalOptional) = 0) Then                    
  17852.                          Redim vNewOptionalNames(Ubound(vCopyToNames))
  17853.                     Else                         
  17854.                          Redim vNewOptionalNames(Ubound(OriginalOptional) + Ubound(vCopyToNames)+1)
  17855.                          Forall names In OriginalOptional
  17856.                               If (names <> "") Then                         
  17857.                                    vNewOptionalNames(newcounter) = names
  17858.                                    newcounter = newcounter+1
  17859.                               End If                         
  17860.                          End Forall
  17861.                     End If                    
  17862.                Else
  17863.                     Redim vNewOptionalNames(Ubound(vCopyToNames))
  17864.                End If
  17865. 'add the copyto names
  17866.                Forall names In vCopyToNames
  17867.                     If (names <> "") Then                    
  17868.                          vNewOptionalNames(newcounter) = names
  17869.                          newcounter = newcounter + 1
  17870.                     End If                    
  17871.                End Forall
  17872.                note.OptionalAttendees = vNewOptionalNames 
  17873.           End If   
  17874.      Case Else
  17875.      End Select
  17876.      Exit Sub
  17877.      
  17878. ErrorRoutine:
  17879.      Messagebox Error & " (BuildAttendeeList)"
  17880.      Exit Sub
  17881.      
  17882. End Sub
  17883. '++LotusScript Development Environment:2:2:SelectUserToRemove:1:8
  17884. Sub SelectUserToRemove
  17885.     *This routine is called whenever the user selects to remove people from a meeting
  17886.     *This routine displays a dialog box that allows the user to select those people 
  17887.      that should be removed
  17888.     *If people were selected, this routine calls RemoveInvitee to send out StatusUpdate notices
  17889. %END REM
  17890.      
  17891.      On Error Goto ErrorRoutine
  17892.      
  17893. 'first, get the status of the attendees
  17894.      If Not(HasInviteeInfo) Then Call GetInviteeStatus(note,False)
  17895.      If Not(HasBeenProcessed) Then Call ProcessInviteeTable(note)
  17896.      
  17897. 'get the list of people who can be uninvited 
  17898.      note.tmpAccepted = UsersAccepted
  17899.      note.tmpDeclined = UsersDeclined
  17900.      note.tmpDelegated = UsersDelegated
  17901.      note.tmpCountered = UsersCountered
  17902.      note.tmpWaiting = UsersWaiting
  17903.      note.tmpHeader = "Select the people you want to remove:"
  17904.      tmpPeopleList = Evaluate("@Trim(@Replace(tmpAccepted:tmpDeclined:tmpDelegated:tmpCountered:tmpWaiting;Uninvited;""""))",note)
  17905.      note.tmpPeopleList = tmpPeopleList
  17906.      
  17907. 'display the dialog so the user can select people
  17908.      If (ws.DialogBox("(PeopleListDlg)",True,True,False,False,False,False,"Remove Invitees") = True) Then
  17909. 'the user has uninvited people from the meeting
  17910.           If (note.HasItem("OrgRepeat")) Then
  17911.                Messagebox "The invitees selected will be removed for the current repeat instance only.",0,"Status"
  17912.                note.tmpRescheduleWhich = "0"
  17913.                note.RescheduleWhich = "0"
  17914.           End If
  17915. 'we can only remove people from the current repeat instance          
  17916. 'append the latest uninvited people to the uninvited field
  17917.           tmpUninvitedList = Evaluate("@Trim(@Unique(Uninvited : tmpPeopleSelected))",note)
  17918.           note.Uninvited = tmpUninvitedList
  17919.           If(note.tmpPeopleSelected(0) <> "") Then Call RemoveInvitee
  17920.           Call uidoc.Save
  17921.           note.removeitem("tmpRescheduleWhich")
  17922.           note.RemoveItem("RescheduleWhich")
  17923.           Call MarkTempFields(note)
  17924.           Call note.Save(True,True,True)
  17925.      End If
  17926.      Exit Sub
  17927.      
  17928. ErrorRoutine:
  17929.      Messagebox Error & " (SelectUserToRemove)"
  17930.      Exit Sub
  17931. End Sub
  17932. '++LotusScript Development Environment:2:2:ChangeStatus:1:8
  17933. Sub ChangeStatus
  17934.     *This routine is called whenever the user wants to require that an invitee attend a meeting
  17935.     *This routine displays a dialog box that allows the user to select those people 
  17936.      that should be required to attend
  17937.     *This routine sends a StatusUpdate notice to the specified user with the OrgStatus item
  17938.        set to ORS_STATUS_ACCEPTED
  17939. %END REM
  17940.      Dim nIndex As Integer
  17941.      
  17942.      On Error Goto ErrorRoutine
  17943. 'first, get the status of the attendees
  17944.      If Not(HasInviteeInfo) Then Call GetInviteeStatus(note,False)
  17945.      If Not(HasBeenProcessed) Then Call ProcessInviteeTable(note)
  17946.      
  17947.      note.tmpHeader = "Select the people you want to Accept:"
  17948.      
  17949.      note.tmpAccepted = UsersAccepted
  17950.      note.tmpDeclined = UsersDeclined
  17951.      note.tmpDelegated = UsersDelegated
  17952.      note.tmpCountered = UsersCountered
  17953.      note.tmpWaiting = UsersWaiting
  17954.      
  17955.      tmpPeopleList = Evaluate("@Trim(@Replace(tmpDeclined:tmpDelegated:tmpCountered:tmpWaiting;tmpAccepted:Uninvited;""""))",note)
  17956.      note.tmpPeopleList = tmpPeopleList    
  17957. 'clear out the tmpAction item
  17958.      note.tmpAction = ""
  17959. 'display the dialog so the user can select people
  17960.      If (ws.DialogBox("(PeopleListDlg)",True,True,False,False,False,False,"Change Status") = True) Then
  17961. 'the user has selected people 
  17962.           tmpChangeList = note.tmpPeopleSelected
  17963. 'for everyone selected, do the following          
  17964.              If (tmpChangeList(0) <> "") Then
  17965.                   Forall cs In tmpChangeList
  17966. 'create the change status notice and send it out               
  17967.                           Call CreateNoticeDocument("You are required to attend this appointment - ",ORS_MSGTYPE_STATUSUPDATE,36,1)
  17968.                           notice.OrgStatus = ORS_STATUS_ACCEPTED
  17969.                     nIndex = FindInvitee(Cstr(cs))
  17970.                     If (nIndex = -1) Then
  17971.                          notice.SendTo = Cstr(cs)
  17972.                     Else
  17973.                          If (InviteeList(nIndex).Domain <> "") Then
  17974.                               notice.SendTo = InviteeList(nIndex).InviteeName & "@" & InviteeList(nIndex).Domain
  17975.                          Else
  17976.                               notice.SendTo = InviteeList(nIndex).InviteeName                        
  17977.                          End If
  17978.                          InviteeList(nIndex).Status = ORS_MSGTYPE_ACCEPT
  17979.                          InviteeList(nIndex).KeepPosted = True
  17980.                     End If
  17981.                     Call notice.Send(False)
  17982. 'create the acceptance notice (as if it had come from the invitee)
  17983.                           Call CreateNoticeDocument("Accepted - ",ORS_MSGTYPE_ACCEPT,83,1)
  17984. 'update specific fields
  17985.                           notice.Subject = "Accepted - " & notice.Topic(0)
  17986.                           notice.Principal = cs
  17987.                           notice.InviteeName = cs
  17988.                     If (nIndex > -1) Then
  17989.                          If (InviteeList(nIndex).Domain <> "") Then note.FromDomain = InviteeList(nIndex).Domain
  17990.                     End If
  17991.                     notice.Chair = Owner
  17992.                     notice.PostedDate = Now()
  17993.                           Call notice.Save(True,True,True)
  17994.                   End Forall
  17995.                   Messagebox "A Change Status notice has been sent to the people selected.",0,"Status"
  17996.              End If       
  17997.      End If
  17998.      
  17999.      Exit Sub
  18000.      
  18001. ErrorRoutine:
  18002.      Messagebox Error & " (ChangeStatus)"
  18003.      Exit Sub     
  18004. End Sub
  18005. '++LotusScript Development Environment:2:2:RollbackAppointment:1:8
  18006. Sub RollbackAppointment(BusyPriority As String)
  18007.     *This routine is called from SendInvitation for one of two reasons
  18008.      Either the uidoc.Send failed and we need to get the original values
  18009.      Or the uidoc.Send was successful and we are modifying the note/uidoc to be a meeting
  18010.     *This routine changes a meeting invitation notice back into an appointment document
  18011. %END REM
  18012.      
  18013.      note.Form = "Appointment"
  18014.      note.Subject = note.Topic
  18015.      note.CalendarDateTime = note.StartDateTime
  18016.      note.tmpOwner = Owner
  18017.      note.OrgTable = ORS_ITEM_CALENDAR
  18018.      tmpRequiredAttendees = Evaluate("@Trim(@Replace(RequiredAttendees;SendTo;""""))",note)
  18019.      tmpOptionalAttendees = Evaluate("@Trim(@Replace(OptionalAttendees;CopyTo;""""))",note)
  18020.      note.RequiredAttendees = tmpRequiredAttendees
  18021.      note.OptionalAttendees = tmpOptionalAttendees
  18022.      Call note.RemoveItem("MailOptions")
  18023. 'we only add the $BusyName if this is not the repeat parent
  18024.      If Not(note.HasItem("RepeatIds")) Then Call note.ReplaceItemValue("$BusyName",Owner)
  18025.      Call note.ReplaceItemValue("$BusyPriority",BusyPriority)
  18026.      Call note.ReplaceItemValue("_ViewIcon",158)
  18027.      Call note.RemoveItem("Topic")
  18028.      Call note.RemoveItem("NoticeType")
  18029.      note.tmpAction = ""
  18030. End Sub
  18031. $    $    <
  18032. tmpAccepted
  18033. tmpDeclined
  18034. tmpDelegated
  18035. tmpCountered
  18036. tmpWaiting
  18037. Uninvited
  18038.     0S0E
  18039. Uninvited
  18040. tmpPeopleSelected
  18041.     5S6S
  18042. tmpDeclined
  18043. tmpDelegated
  18044. tmpCountered
  18045. tmpWaiting
  18046. tmpAccepted
  18047. Uninvited
  18048.     0S0E
  18049. RequiredAttendees
  18050. SendTo
  18051.     0S0E
  18052. OptionalAttendees
  18053. CopyTo
  18054.     0S0E
  18055. O=Lotus Notes
  18056. O=Lotus Notes
  18057. PURSAFO
  18058. |.:#U
  18059. O=Lotus Notes
  18060. CN=Lotus Notes Template Development/O=Lotus Notes
  18061. PURSAFO
  18062. $ScriptLib
  18063. $ScriptLib_O
  18064. $TITLE
  18065. $Flags
  18066. $PublicAccess
  18067. '++LotusScript Development Environment:2:5:(Options):0:74
  18068. Option Public
  18069. Use "SharedWorkflowLibrary"
  18070. '++LotusScript Development Environment:2:5:(Forward):0:1
  18071. Declare Sub Initialize
  18072. Declare Sub CreateInviteeTable(pNote As NotesDocument)
  18073. Declare Sub IncreaseInviteeTable()
  18074. Declare Sub DecreaseInviteeTable()
  18075. Declare Sub GetNameComponents(pInviteeName As String,pRetCanonicalName As String,pRetDomain As String)
  18076. Declare Function FindInvitee(pInviteeName As String) As Integer
  18077. Declare Sub AddInviteeToInviteeTable(pInviteeName As String,pState As String, bKeepPosted As Integer)
  18078. Declare Sub GetInviteeResponseInfo(pNote As NotesDocument)
  18079. Declare Function CanUpdateInviteeInfo(Byval nIndex As Integer) As Integer
  18080. Declare Sub AddDelegeeToInviteeTable()
  18081. Declare Sub UpdateInviteeInfo(Byval nIndex As Integer)
  18082. Declare Sub AddInviteeResponseToInviteeTable()
  18083. Declare Sub BuildInviteeResponsesList(pNote As NotesDocument)
  18084. Declare Sub GetInviteeStatus(pNote As NotesDocument,Byval nForce As Integer)
  18085. Declare Sub ProcessInviteeTable(pNote As NotesDocument)
  18086. Declare Sub GetMailingList()
  18087. Declare Sub AcceptCounterProposal 
  18088. Declare Sub DeclineCounterProposal
  18089. Declare Sub AddUninvitedToInviteeList()
  18090. Declare Function GetInviteeMailAddress(pName As String) As String
  18091. '++LotusScript Development Environment:2:5:(Declarations):0:10
  18092. 'AppointmentResponses: 
  18093. 'AppointmentResponses: 
  18094. Dim InviteeList() As InviteeTable
  18095. Dim InviteeResponseInfo As InviteeTable
  18096. Dim HasBeenProcessed As Integer
  18097. Dim HasInviteeInfo As Integer
  18098. Dim InviteeCounter As Integer
  18099. Dim InviteeMaxEntries As Integer
  18100. Dim UsersAccepted() As String
  18101. Dim UsersDeclined() As String
  18102. Dim UsersDelegated() As String
  18103. Dim UsersCountered() As String
  18104. Dim UsersWaiting() As String
  18105. Dim ResourcesReserved() As String
  18106. Dim ResourcesDeclined() As String
  18107. Dim ResourcesWaiting() As String
  18108. Dim Delegees() As String
  18109. Dim MailingList() As String
  18110. Dim NumKeepPosted As Integer
  18111. Dim UpdatedInvitees As Variant
  18112. Dim numAccepted As Integer
  18113. Dim numDeclined As Integer
  18114. Dim numDelegated As Integer
  18115. Dim numCountered As Integer
  18116. Dim numWaiting As Integer
  18117. Dim numResAccepted As Integer
  18118. Dim numResDeclined As Integer
  18119. Dim numResWaiting As Integer 
  18120. '++LotusScript Development Environment:2:2:Initialize:1:10
  18121. Sub Initialize
  18122.      
  18123. End Sub
  18124. '++LotusScript Development Environment:2:2:CreateInviteeTable:1:8
  18125. Sub CreateInviteeTable(pNote As NotesDocument)
  18126.      Dim RequiredAttendees As Variant
  18127.      Dim OptionalAttendees As Variant
  18128.      Dim Resources As Variant
  18129.      Dim Room As String
  18130.      
  18131.         InviteeMaxEntries = CS_INVITEE_INDEX
  18132.         InviteeCounter = 0
  18133.         HasInviteeInfo = False
  18134.         HasBeenProcessed = False
  18135.      
  18136.      Redim InviteeList(InviteeMaxEntries)
  18137.      
  18138.      RequiredAttendees = pNote.RequiredAttendees
  18139.      OptionalAttendees = pNote.OptionalAttendees
  18140.      Resources = pNote.RequiredResources
  18141.      Room = pNote.Room(0)
  18142.      
  18143. 'initialize the invitee table to values that exist on the passed in note
  18144.      If (RequiredAttendees(0) <> "") Then
  18145.           Forall names In RequiredAttendees
  18146.                Call AddInviteeToInviteeTable(Cstr(names),"", True)
  18147.           End Forall
  18148.      End If
  18149.      If (OptionalAttendees(0) <> "") Then
  18150.           Forall names In OptionalAttendees
  18151.                Call AddInviteeToInviteeTable(Cstr(names),"", True)
  18152.           End Forall          
  18153.      End If
  18154.      
  18155.      If (pNote.Uninvited(0) <> "") Then Call AddUninvitedToInviteeList
  18156.      
  18157.      If (Room <> "") Then Call AddInviteeToInviteeTable(Room,ORS_STATE_ROOM, True)
  18158.      
  18159.      If (Resources(0) <> "") Then
  18160.           Forall names In Resources
  18161.                Call AddInviteeToInviteeTable(Cstr(names),ORS_STATE_RESOURCE, True)
  18162.           End Forall
  18163.      End If
  18164. End Sub
  18165. '++LotusScript Development Environment:2:2:IncreaseInviteeTable:1:8
  18166. Sub IncreaseInviteeTable()
  18167.      
  18168.         InviteeMaxEntries = InviteeMaxEntries + CS_INVITEE_INDEX
  18169.      Redim Preserve InviteeList(InviteeMaxEntries)
  18170. End Sub
  18171. '++LotusScript Development Environment:2:2:DecreaseInviteeTable:1:8
  18172. Sub DecreaseInviteeTable()
  18173.         InviteeMaxEntries = InviteeCounter
  18174.      Redim Preserve InviteeList(InviteeMaxEntries)
  18175. End Sub
  18176. '++LotusScript Development Environment:2:2:GetNameComponents:1:8
  18177. Sub GetNameComponents(pInviteeName As String,pRetCanonicalName As String,pRetDomain As String)
  18178.      
  18179.      Dim pos As Integer
  18180.      
  18181.      
  18182.      pos = Instr(pInviteeName,"@")
  18183.      
  18184.      If(pos > 0) Then
  18185.           Set nam = New NotesName(Left$(pInviteeName,pos-1))     
  18186.           pRetCanonicalName = nam.Canonical
  18187.           pRetDomain = Right$(pInviteeName,Len(pInviteeName)-pos)
  18188.      Else
  18189.           Set nam = New NotesName(pInviteeName)     
  18190.           pRetCanonicalName = nam.Canonical
  18191.           pRetDomain = ""
  18192.      End If
  18193. End Sub
  18194. '++LotusScript Development Environment:2:1:FindInvitee:1:8
  18195. Function FindInvitee(pInviteeName As String) As Integer
  18196.     *Given an InviteeTable and an invitee name find the index position
  18197.     *Returns -1 if the user cannot be found
  18198. %END REM
  18199.      Dim key As New NotesName(pInviteeName)
  18200.         Dim x As Integer
  18201.      
  18202.         For x = 0 To (InviteeCounter - 1)
  18203.           Set findname = New NotesName(InviteeList(x).InviteeName)
  18204.           ' If both names are hierarchical, comapre the canonical names
  18205.           If (findname.IsHierarchical And key.IsHierarchical) Then
  18206.                If Lcase(key.Canonical) = Lcase(findname.Canonical) Then
  18207.                     FindInvitee = x 
  18208.                     Exit Function
  18209.                End If
  18210.           Else
  18211.                'do a common name comparison               
  18212.                If Lcase(key.Common) = Lcase(findname.Common) Then
  18213.                     FindInvitee = x 
  18214.                     Exit Function               
  18215.                End If
  18216.           End If
  18217.         Next
  18218.      
  18219.         FindInvitee = -1
  18220. End Function
  18221. '++LotusScript Development Environment:2:2:AddInviteeToInviteeTable:1:8
  18222. Sub AddInviteeToInviteeTable(pInviteeName As String,pState As String, bKeepPosted As Integer)
  18223.     *Adds an existing invitee to the invitee table
  18224. %END REM
  18225.      Dim CanonicalName As String
  18226.      Dim domain As String
  18227.      
  18228.      
  18229.     'see if we need to increase the invitee table
  18230.         If(InviteeCounter = InviteeMaxEntries) Then Call IncreaseInviteeTable()
  18231.      
  18232.     'get the canonical and domain name from the inviteename
  18233.         Call GetNameComponents(pInviteeName,CanonicalName,Domain)
  18234.      
  18235.      InviteeList(InviteeCounter).InviteeName = CanonicalName
  18236.      InviteeList(InviteeCounter).Status = ORG_STATUS_WAITING
  18237.      InviteeList(InviteeCounter).State = pState
  18238.      InviteeList(InviteeCounter).KeepPosted = bKeepPosted
  18239.      
  18240.      If(Domain <> "") Then InviteeList(InviteeCounter).Domain = Domain
  18241.      
  18242.      NumKeepPosted = NumKeepPosted + 1
  18243.      InviteeCounter = InviteeCounter + 1
  18244.      If (pState <> "") Then
  18245.           numResWaiting = numResWaiting + 1
  18246.      Else
  18247.           numWaiting = numWaiting + 1
  18248.      End If
  18249. End Sub
  18250. '++LotusScript Development Environment:2:2:GetInviteeResponseInfo:1:8
  18251. Sub GetInviteeResponseInfo(pNote As NotesDocument)
  18252.      
  18253.         InviteeResponseInfo.CreationDate = pNote.Created
  18254.         InviteeResponseInfo.SequenceNum = pNote.SequenceNum(0)
  18255.         InviteeResponseInfo.InviteeName = pNote.Principal(0)
  18256.         If pNote.HasItem("FromDomain") Then
  18257.                 InviteeResponseInfo.Domain = pNote.FromDomain(0)
  18258.         Else
  18259.                 InviteeResponseInfo.Domain = ""
  18260.         End If
  18261.         
  18262.         If pNote.HasItem("OrgState") Then 
  18263.                 InviteeResponseInfo.State = pNote.OrgState(0)
  18264.         Else
  18265.                 InviteeResponseInfo.State = ""
  18266.         End If
  18267.      
  18268.      InviteeResponseInfo.Status = pNote.NoticeType(0)
  18269.      
  18270.      Select Case InviteeResponseInfo.Status
  18271.      Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  18272.           InviteeResponseInfo.KeepPosted = True
  18273.      Case ORS_MSGTYPE_REJECT
  18274.           InviteeResponseInfo.KeepPosted = False
  18275.      Case ORS_MSGTYPE_COUNTER
  18276.           InviteeResponseInfo.KeepPosted = True
  18277.      Case ORS_MSGTYPE_DELEGATING
  18278.           InviteeResponseInfo.KeepPosted = False
  18279.           InviteeResponseInfo.Delegee = pNote.Delegee(0)
  18280.           Call AddDelegeeToInviteeTable
  18281.      End Select
  18282. End Sub 
  18283. '++LotusScript Development Environment:2:1:CanUpdateInviteeInfo:1:8
  18284. Function CanUpdateInviteeInfo(Byval nIndex As Integer) As Integer
  18285.     *Determines if InviteeRepsonseInfo should be updated in InviteeTable
  18286. %END REM
  18287.      
  18288. 'if the sequencenum is greater than the existing one, we can add them
  18289.      If (InviteeList(nIndex).Status = ORS_STATUS_REMOVED) Then
  18290.           CanUpdateInviteeInfo = False
  18291.           Exit Function
  18292.      End If
  18293.      If (InviteeResponseInfo.SequenceNum > InviteeList(nIndex).SequenceNum) Then
  18294.                 CanUpdateInviteeInfo = True
  18295.                 Exit Function
  18296.      Elseif (InviteeResponseInfo.SequenceNum = InviteeList(nIndex).SequenceNum) Then
  18297. 'the SequeceNum items are equal; compare creation date
  18298.           If (InviteeResponseInfo.CreationDate > InviteeList(nIndex).CreationDate) Then
  18299.                         CanUpdateInviteeInfo = True
  18300.                         Exit Function
  18301.                 Else
  18302.                         CanUpdateInviteeInfo = False
  18303.                         Exit Function
  18304.                 End If
  18305.         End If
  18306.      
  18307. 'if we made it this far, then we can't update the inviteetable
  18308.         CanUpdateInviteeInfo = False
  18309. End Function
  18310. '++LotusScript Development Environment:2:2:AddDelegeeToInviteeTable:1:8
  18311. Sub AddDelegeeToInviteeTable()
  18312.      
  18313.      Dim CanonicalName As String
  18314.      Dim Domain As String
  18315.         Dim nIndex As Integer
  18316.      
  18317. 'get the name components
  18318.         Call GetNameComponents(InviteeResponseInfo.Delegee,CanonicalName,Domain)
  18319.      
  18320. 'set the domain
  18321.         If (Domain = "") Then
  18322.                 If(InviteeResponseInfo.Domain <> "") Then Domain = InviteeResponseInfo.Domain
  18323.         End If
  18324.         
  18325.      nIndex = FindInvitee(CanonicalName)
  18326.      
  18327.         If (nIndex = -1) Then
  18328. 'we didn't find the delegee -> this is the more likely case since we would only find the delegee
  18329. 'if they had replied before we had received the delegation notice
  18330.              
  18331. 'make sure we can add the delegee
  18332.                 If (InviteeCounter = InviteeMaxEntries) Then Call IncreaseInviteeTable()
  18333.           InviteeList(InviteeCounter).CreationDate = InviteeResponseInfo.CreationDate
  18334.           InviteeList(InviteeCounter).SequenceNum = InviteeResponseInfo.SequenceNum
  18335.           InviteeList(InviteeCounter).InviteeName = CanonicalName
  18336.           InviteeList(InviteeCounter).Domain = Domain
  18337.           InviteeList(InviteeCounter).Status = ORG_STATUS_WAITING
  18338.           InviteeList(InviteeCounter).State = ""
  18339.           InviteeList(InviteeCounter).Delegee = ""
  18340.           InviteeList(InviteeCounter).KeepPosted = True
  18341.           InviteeCounter = InviteeCounter + 1
  18342.      End If
  18343. End Sub
  18344. '++LotusScript Development Environment:2:2:UpdateInviteeInfo:1:8
  18345. Sub UpdateInviteeInfo(Byval nIndex As Integer)
  18346.      Dim IsPerson As Integer
  18347.      
  18348.      InviteeList(nINdex).CreationDate = InviteeResponseInfo.CreationDate
  18349.      InviteeList(nIndex).SequenceNum = InviteeResponseInfo.SequenceNum
  18350.      InviteeList(nIndex).InviteeName = InviteeResponseInfo.InviteeName
  18351.      InviteeList(nIndex).Domain = InviteeResponseInfo.Domain
  18352.      InviteeList(nIndex).Status = InviteeResponseInfo.Status
  18353.      InviteeList(nIndex).State = InviteeResponseInfo.State
  18354.      InviteeList(nIndex).Delegee = InviteeResponseInfo.Delegee
  18355.      InviteeList(nIndex).KeepPosted = InviteeResponseInfo.KeepPosted
  18356.      If (InviteeResponseInfo.KeepPosted = True) Then NumKeepPosted = NumKeepPosted + 1
  18357.      
  18358.      If (InviteeResponseInfo.State <> "") Then
  18359.           IsPerson  = False
  18360.      Else
  18361.           IsPerson = True
  18362.      End If
  18363.      
  18364.      Select Case InviteeResponseInfo.Status
  18365.      Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  18366.           If (IsPerson) Then          
  18367.                numAccepted = numAccepted+1
  18368.           Else
  18369.                numResAccepted = numResAccepted + 1
  18370.           End If
  18371.      Case ORS_MSGTYPE_REJECT
  18372.           If (IsPerson) Then          
  18373.                numDeclined = numDeclined+1
  18374.           Else
  18375.                numResDeclined = numResDeclined + 1
  18376.           End If
  18377.      Case ORS_MSGTYPE_COUNTER
  18378.           numCountered = numCountered+1
  18379.      Case ORS_MSGTYPE_DELEGATING
  18380.           numDelegated = numDelegated+1
  18381.      Case ORG_STATUS_WAITING
  18382.           If (IsPerson) Then          
  18383.                numWaiting = numWaiting + 1
  18384.           Else
  18385.                numResWaiting = numResWaiting + 1
  18386.           End If
  18387.      End Select
  18388. End Sub
  18389. '++LotusScript Development Environment:2:2:AddInviteeResponseToInviteeTable:1:8
  18390. Sub AddInviteeResponseToInviteeTable()
  18391.      
  18392.      If (InviteeCounter = InviteeMaxEntries) Then Call IncreaseInviteeTable()
  18393.            Call UpdateInviteeInfo(InviteeCounter)        
  18394.            InviteeCounter = InviteeCounter + 1
  18395. End Sub
  18396. '++LotusScript Development Environment:2:2:BuildInviteeResponsesList:1:8
  18397. Sub BuildInviteeResponsesList(pNote As NotesDocument)
  18398.     *Gets the most recent reply from an invitee
  18399. %END REM
  18400.      
  18401.         Dim responses As NotesDocumentCollection
  18402.         Dim nIndex As Integer
  18403.         Dim reply As NotesDocument
  18404.      
  18405. 'first, get a collection of responses to process
  18406.         Set responses = pNote.Responses
  18407.      
  18408.         If(responses.Count = 0) Then Exit Sub
  18409.      
  18410.         Set reply = responses.GetFirstDocument()
  18411.      
  18412.         While Not(reply Is Nothing)    
  18413.                 If(reply.Form(0) = "Notice") Then
  18414. 'get the response items
  18415.                Call GetInviteeResponseInfo(reply)
  18416. 'see if the invitee exists or not
  18417.                nIndex = FindInvitee(InviteeResponseInfo.InviteeName)
  18418.                      
  18419.                         If(nIndex = -1) Then
  18420. 'the user was not found, so we need to add them
  18421.                                 Call AddInviteeResponseToInviteeTable()
  18422.                         Else
  18423. 'the user was found; update their info if we can
  18424.                     If (CanUpdateInviteeInfo(nIndex)) Then Call UpdateInviteeInfo(nIndex)
  18425.                         End If
  18426.                 End If
  18427. 'get the next reply
  18428.                 Set reply = responses.GetNextDocument(reply)
  18429.         Wend        
  18430. End Sub
  18431. '++LotusScript Development Environment:2:2:GetInviteeStatus:1:8
  18432. Sub GetInviteeStatus(pNote As NotesDocument,Byval nForce As Integer)
  18433.     *This routine will build the invitee response table, and then fill global array values
  18434.         with the result
  18435.     *If the table has already been built by a different function and nForce is not True
  18436.         then the cached table will be returned
  18437. %END REM
  18438.      
  18439.         If (nForce) Then
  18440. 'we want to update the table regardless of the state
  18441.           Call BuildInviteeResponsesList(pNote)
  18442.                 HasInviteeInfo = True
  18443. 'only build the table if it isn't cached
  18444. 'it would be cached if a different calling function already built the table
  18445.         Elseif Not(HasInviteeInfo) Then
  18446.           Call BuildInviteeResponsesList(pNote)
  18447.                 HasInviteeInfo = True
  18448.         Else
  18449. 'the table is already uptodate; exit this function
  18450.                 Exit Sub
  18451.         End If
  18452.      
  18453. End Sub
  18454. '++LotusScript Development Environment:2:2:ProcessInviteeTable:1:8
  18455. Sub ProcessInviteeTable(pNote As NotesDocument)
  18456.      
  18457. 'now that we've built the table, iterate through it and fill in the various items
  18458.         Redim UsersAccepted(numAccepted)
  18459.         Redim UsersDeclined(numDeclined)
  18460.         Redim UsersDelegated(numDelegated)
  18461.      Redim Delegees(numDelegated)     
  18462.      Redim UsersCountered(numCountered)
  18463.         Redim UsersWaiting(numWaiting)
  18464.      Redim ResourcesReserved(numResAccepted)
  18465.         Redim ResourcesDeclined(numResDeclined)
  18466.         Redim ResourcesWaiting(numResWaiting)
  18467.      
  18468.         numAccepted = 0
  18469.         numDeclined = 0
  18470.         numDelegated = 0
  18471.         numCountered = 0
  18472.         numWaiting = 0
  18473.      numResAccepted = 0
  18474.         numResDeclined = 0
  18475.         numResWaiting = 0
  18476.      
  18477.         Dim x As Integer
  18478.      
  18479.         For x = 0 To (InviteeCounter - 1)
  18480.                 
  18481.           Select Case InviteeList(x).Status
  18482.           Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  18483.                If (InviteeList(x).SequenceNum < pNote.SequenceNum(0)) Then
  18484. 'if this is a person, then we are still waiting to here back from them                    
  18485.                     If(InviteeList(x).State = "") Then
  18486.                          UsersWaiting(numWaiting) = InviteeList(x).InviteeName
  18487.                          numWaiting = numWaiting + 1
  18488.                     Else
  18489. 'this is a room/resource; we are still waiting to here back from them
  18490.                          ResourcesWaiting(numResWaiting) = InviteeList(x).InviteeName
  18491.                          numResWaiting = numResWaiting + 1
  18492.                                 End If
  18493.                         Else
  18494.                     If(InviteeList(x).State <> "") Then
  18495. 'this is a room or resource; see if it has been removed
  18496.                          If Not(IsRemoved(InviteeList(x).InviteeName,InviteeList(x).State)) Then
  18497.                               ResourcesReserved(numResAccepted) = InviteeList(x).InviteeName
  18498.                               numResAccepted = numResAccepted + 1
  18499.                                         End If
  18500.                                 Else
  18501. 'this is a person
  18502.                          UsersAccepted(numAccepted) = InviteeList(x).InviteeName
  18503.                                         numAccepted = numAccepted+1
  18504.                                 End If
  18505.                         End If
  18506.                 Case ORS_MSGTYPE_REJECT
  18507.                If(InviteeList(x).State <> "") Then
  18508. 'if this is a room or resource, see if it has been removed           
  18509.                     If Not(IsRemoved(InviteeList(x).InviteeName,InviteeList(x).State)) Then
  18510. 'if the sequencenum of the response is < pNote, then the resource has not responded
  18511.                          If (InviteeList(x).SequenceNum < pNote.SequenceNum(0)) Then
  18512.                               ResourcesWaiting(numResWaiting) = InviteeList(x).InviteeName                         
  18513.                               numResWaiting = numResWaiting + 1
  18514.                          Else                         
  18515.                               ResourcesDeclined(numResDeclined) = InviteeList(x).InviteeName
  18516.                                              numResDeclined = numResDeclined + 1
  18517.                          End If                         
  18518.                     End If
  18519.                         Else
  18520. 'this is a person
  18521.                     UsersDeclined(numDeclined) = InviteeList(x).InviteeName
  18522.                     numDeclined = numDeclined+1
  18523.                         End If
  18524.           Case ORS_MSGTYPE_COUNTER
  18525.                If (InviteeList(x).SequenceNum < pNote.SequenceNum(0)) Then
  18526.                     UsersWaiting(numWaiting) = InviteeList(x).InviteeName
  18527.                                    numWaiting = numWaiting + 1
  18528.                Else
  18529. 'this is a person -> Resources cannot CounterPropose!!!
  18530.                     UsersCountered(numCountered) = InviteeList(x).InviteeName
  18531.                                 numCountered = numCountered+1
  18532.                         End If
  18533.                 Case ORS_MSGTYPE_DELEGATING
  18534. 'this is a person -> Resources cannot Delegate!!!
  18535.                UsersDelegated(numDelegated) = InviteeList(x).InviteeName
  18536.                Delegees(numDelegated) = InviteeList(x).Delegee
  18537.                numDelegated = numDelegated+1
  18538.           Case ORG_STATUS_WAITING
  18539. 'we didn't get any reply from this invitee
  18540.                If(InviteeList(x).State <> "") Then
  18541. 'this is a resource
  18542.                     ResourcesWaiting(numResWaiting) = InviteeList(x).InviteeName
  18543.                                 numResWaiting = numResWaiting + 1
  18544.                         Else
  18545. 'this is a person
  18546.                     UsersWaiting(numWaiting) = InviteeList(x).InviteeName
  18547.                                 numWaiting = numWaiting + 1
  18548.                End If
  18549.           End Select
  18550.         Next    
  18551.         HasBeenProcessed = True
  18552. End Sub
  18553. '++LotusScript Development Environment:2:2:GetMailingList:1:8
  18554. Sub GetMailingList()
  18555.     *Gets the latest list of people who should receive an update
  18556.         Reschedule,Cancel,Confirmation
  18557. %END REM
  18558.         Dim x,counter As Integer
  18559.      
  18560. 'if this is a Repeating Meeting, we only need to get the invitees of the parent document
  18561.         If (note.HasItem("OrgRepeat")) Then
  18562. 'if this hasn't been cached, then we need to get both the parent and this instance's responses
  18563.           If Not(HasInviteeInfo) Then
  18564.                         Call GetInviteeStatus(ParentNote,False)
  18565.                         Call GetInviteeStatus(Note,True)
  18566.                 End If
  18567.      Else
  18568.                 Call GetInviteeStatus(note,False)
  18569.      End If
  18570.      
  18571. 'anyone who has accepted, countered, or is waiting, we need to send them the notice
  18572.      If (numKeepPosted = 0) Then 
  18573.           Redim MailingList(0)
  18574.           MailingList(0) = ""
  18575.           Exit Sub
  18576.      End If
  18577.      
  18578.      Redim MailingList(numKeepPosted-1)
  18579.      
  18580.      For x = 0 To (InviteeCounter-1)
  18581. 'make sure we have a person; rooms and resources are handled separately
  18582.           If (InviteeList(x).State = "") Then
  18583.                If (InviteeList(x).KeepPosted = True) Then               
  18584.                     If(InviteeList(x).Domain <> "") Then
  18585.                          MailingList(counter) = InviteeList(x).InviteeName & "@" & InviteeList(x).Domain
  18586.                                 Else
  18587.                          MailingList(counter) = InviteeList(x).InviteeName
  18588.                                 End If
  18589.                                 counter = counter + 1
  18590.                End If                    
  18591.           End If
  18592.      Next
  18593. End Sub
  18594. '++LotusScript Development Environment:2:2:AcceptCounterProposal:1:8
  18595. Sub AcceptCounterProposal 
  18596.  *This routine is called whenever the chair accepts a counter proposal
  18597.  *This routine increments the SequenceNum item and sends Reschedule notices
  18598.   to all people, room, and resources
  18599.  *The parentnote is updated to reflect the changes, since the current note object is the 
  18600.   notice document and not the chair's meeting document
  18601. %END REM
  18602.      
  18603.      Dim StartDateTime As Variant
  18604.      Dim EndDateTime As Variant
  18605.      Dim NewRoom As String
  18606.      Dim OldRoom As String
  18607.      
  18608.      
  18609.      On Error Resume Next
  18610.      
  18611.      Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  18612. 'make sure we have a parentnote object; if we don't, then exit this routine
  18613.      If (parentnote Is Nothing) Then Exit Sub
  18614.      
  18615.      Set trdr = session.CreateDateRange
  18616.      
  18617.      trdr.Text = uidoc.FieldGetText("NewTimeRange")
  18618.      
  18619.      Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  18620.      Set enddt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.EndDateTime.TimeOnly)
  18621.      
  18622.      Call CreateNoticeDocument("",ORS_MSGTYPE_RESCHEDULE,33,1)
  18623.      
  18624. 'add the items specific to the reschedule; this will overwrite items already set be the CreateNoticeDocument routine
  18625.      Set notice.StartDateTime = startdt
  18626.      Set notice.EndDateTime = enddt
  18627.      Set notice.StartDate =startdt
  18628.      
  18629.      NewRoom = note.NewRoom(0)
  18630.      OldRoom = parentnote.Room(0)
  18631.      
  18632. 'if the new room has a value, use it     
  18633.      If (NewRoom <> "") Then
  18634.           notice.Subject = "Reschedule- " & note.Topic(0) & " (" & GetSubjectText(startdt.LSLocalTime) & " in " & NewRoom & ")"
  18635.           parentnote.OriginalRoom = OldRoom
  18636.           notice.Room = NewRoom
  18637. 'if the old room has a value, use it
  18638.      Elseif (OldRoom <> "") Then
  18639.           notice.Subject = "Reschedule- "& note.Topic(0) & " (" & GetSubjectText(startdt.LSLocalTime) & " in " & OldRoom & ")"
  18640.           notice.Room = OldRoom
  18641.      Else
  18642.           notice.Subject = "Reschedule- " & note.Topic(0) & " (" & GetSubjectText(startdt.LSLocalTime) & ")"
  18643.      End If
  18644.      
  18645.      notice.Topic = note.Topic
  18646.      notice.Chair = Owner
  18647.      
  18648. 'we need to add the correct attendees to the sendto item
  18649.      
  18650.      Call CreateInviteeTable(parentnote)
  18651.      
  18652.      Call GetInviteeStatus(parentnote,False)
  18653.      Call ProcessInviteeTable(parentnote)
  18654.      Call GetMailingList
  18655.      
  18656. 'make sure we have a valid mailing list -> we should but we need to make sure just in case
  18657.      If (MailingList(0) = "") Then Exit Sub     
  18658.      notice.SendTo = MailingList
  18659.      
  18660. 'call the routine that updates the parentnote with the appropriate values
  18661.      Call UpdateOriginalInvitation(parentnote)
  18662.      
  18663.      notice.SequenceNum = parentnote.SequenceNum(0)
  18664.      Call notice.Send(False)
  18665.      Messagebox "The invitees have been notified of the change.",0,"Status"
  18666.      
  18667. 'see if the time is changing; if the time is changing, then we need to reschedule resources
  18668.      tmpResourcesInvited = parentnote.RequiredResources
  18669.      If (tmpResourcesInvited(0) <> "") Then
  18670.           Forall Resources In tmpResourcesInvited
  18671.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_RESOURCE,Cstr(Resources),parentnote)
  18672.                notice.StartDateTime = parentnote.StartDateTime
  18673.                notice.EndDateTime = parentnote.EndDateTime
  18674.                notice.StartDate = parentnote.StartDate
  18675.                notice.TimeRange = parentnote.TimeRange
  18676.                Call notice.Send(False)
  18677.           End Forall
  18678.      End If     
  18679.      
  18680. 'reschedule the room if need be
  18681.      If (parentnote.RoomRequired(0) = "1") Then
  18682.           If (NewRoom <> "") Then
  18683.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM,NewRoom,parentnote)       
  18684.           Else
  18685.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM,OldRoom,parentnote)
  18686.           End If
  18687.           notice.StartDateTime = parentnote.StartDateTime
  18688.           notice.EndDateTime = parentnote.EndDateTime
  18689.           notice.StartDate = parentnote.StartDate
  18690.           notice.TimeRange = parentnote.TimeRange
  18691.           Call notice.Send(False)     
  18692.      End If
  18693.      
  18694.      Exit Sub
  18695.      
  18696. ErrorRoutine:
  18697.      Messagebox Error & " (AcceptCounterProposal)"
  18698.      Exit Sub
  18699. End Sub
  18700. '++LotusScript Development Environment:2:2:DeclineCounterProposal:1:8
  18701. Sub DeclineCounterProposal
  18702.  *This routine is called when the Chair declines a counter proposal
  18703.  *A notice is sent back to the invitee informing them of the chair's decline
  18704. %END REM
  18705.      
  18706.      On Error Goto ErrorRoutine
  18707.      
  18708.      Call CreateNoticeDocument("",ORS_MSGTYPE_COUNTERREJECT,38,1)
  18709. 'we need to overwrite some items     
  18710.      notice.Subject = "Proposed Change Declined - " & note.Topic(0)
  18711.      notice.Topic = note.Topic
  18712.      notice.Chair = Owner
  18713.      
  18714.      If (note.HasItem("FromDomain")) Then     
  18715.           notice.sendTo= note.InviteeName(0) & " @ " & note.FromDomain(0)
  18716.      Else
  18717.           FromDomain = Evaluate("@Domain")
  18718.           notice.SendTo = note.InviteeName(0) & " @ " & FromDomain(0)
  18719.      End If       
  18720.      Set nam = New NotesName(note.Inviteename(0))
  18721.      
  18722.      Call notice.Send(False)
  18723.      Messagebox "A notice has been sent informing " & nam.Common & " that the proposal for a time/location change has been declined.",0,"Status"
  18724.      Exit Sub
  18725.      
  18726. ErrorRoutine:
  18727.      Messagebox Error & " (DeclineCounterProposal)"
  18728.      Exit Sub
  18729. End Sub
  18730. '++LotusScript Development Environment:2:2:AddUninvitedToInviteeList:1:8
  18731. Sub AddUninvitedToInviteeList()
  18732.      Dim nIndex As Integer
  18733.      Dim UninvitedList As Variant
  18734.      
  18735. 'find this person in the InviteeTable
  18736.      UninvitedList = note.Uninvited
  18737.      
  18738.      Forall names In UninvitedList
  18739.           nIndex = FindInvitee(Cstr(names))
  18740.           InviteeList(nIndex).Status = ORS_STATUS_REMOVED
  18741.           InviteeList(nIndex).KeepPosted = False
  18742.      End Forall
  18743. End Sub
  18744. '++LotusScript Development Environment:2:1:GetInviteeMailAddress:1:8
  18745. Function GetInviteeMailAddress(pName As String) As String
  18746.      
  18747.      Dim nIndex As Integer
  18748.      
  18749.      nIndex = FindInvitee(pName)
  18750.      
  18751.      If (nIndex = -1) Then
  18752. 'the invitee was not found          
  18753.           GetInviteeMailAddress = pName
  18754.           Exit Function          
  18755.      End If
  18756.      
  18757. 'see if there is a domain associated with this user
  18758.      If(InviteeList(nIndex).Domain <> "") Then
  18759.           GetInviteeMailAddress = InviteeList(nIndex).InviteeName & "@" & InviteeList(nIndex).Domain
  18760.      Else
  18761.           GetInviteeMailAddress = InviteeList(nIndex).InviteeName
  18762.      End If
  18763.      
  18764.      
  18765. End Function
  18766. Q\ KX
  18767. Q\ KX
  18768. O=Lotus Notes
  18769. O=Lotus Notes
  18770. PURSAFO
  18771. |.:#U
  18772. O=Lotus Notes
  18773. CN=Lotus Notes Template Development/O=Lotus Notes
  18774. PURSAFO
  18775. $ScriptLib
  18776. $ScriptLib_O
  18777. $TITLE
  18778. $Flags
  18779. $PublicAccess
  18780. '++LotusScript Development Environment:2:5:(Options):0:74
  18781. Option Public
  18782. Use "ObjectVariables" 
  18783. '++LotusScript Development Environment:2:5:(Forward):0:1
  18784. Declare Sub EmailOpen
  18785. Declare Sub EmailModeChange
  18786. Declare Sub EmailSave(Continue)
  18787. Declare Sub EmailClose(Continue)
  18788. Declare Sub SaveDialog(SavedDoc)
  18789. Declare Sub CheckSecureMail
  18790. Declare Sub CreateOLEObject
  18791. Declare Function IsEmailAuthor() As Integer
  18792. '++LotusScript Development Environment:2:5:(Declarations):0:10
  18793. 'EmailProcessing: 
  18794. 'EmailProcessing: 
  18795. Dim newnote As NotesDocument
  18796. Dim DoNotClose As Variant
  18797. Dim ContinueSave As Variant
  18798. Dim TaskReply As Variant
  18799. Dim OLEObject As Variant
  18800. '++LotusScript Development Environment:2:2:EmailOpen:1:8
  18801. Sub EmailOpen
  18802.      
  18803.      If uidoc.InPreviewPane Then Exit Sub
  18804.      If note Is Nothing Then Call InstantiateObjectVariables
  18805.      
  18806.      If (note.HasItem("PostedDate") Or note.HasItem("DeliveredDate")) Then
  18807.           If uidoc.EditMode = False Then
  18808.                Exit Sub
  18809.           Else
  18810. 'If this is a message that was written by you or your mail file, we need to remove any options fields
  18811.                If IsEmailAuthor() Then
  18812.                     note.RemoveItem("MailOptions")
  18813.                     note.RemoveItem("SaveOptions")
  18814.                     If Not(note.HasItem("SecureMail")) Then CheckSecureMail
  18815. 'If this is a message that was not written by you we do not present the mail dialog
  18816. 'but we do want to force processing into QuerySave               
  18817.                Else
  18818.                     note.MailOptions = "0"
  18819.                     note.SaveOptions = "1"
  18820.                End If
  18821.           End If
  18822.      Else
  18823.           uidoc.EditMode = True
  18824.      End If
  18825.      
  18826.      If uidoc.IsNewDoc Then
  18827.           NewDocument = True
  18828.           note.Principal = Owner
  18829.           CheckSecureMail
  18830.           EditType = session.GetEnvironmentString("MailStEd")
  18831. 'EditType 1 = CreateStationery          
  18832.           If EditType = "1" Then
  18833.                note.tmpAction = "SaveAsStationery"
  18834.                note.IsMailStationery = 1
  18835.                Call session.SetEnvironmentVar("MailStEd", "0")
  18836.                note.MailOptions = "0"
  18837.                note.SaveOptions = "1"
  18838.           Else
  18839.                If Len(EditType) > 1 Then
  18840.                     TaskReply = True
  18841.                     Call session.SetEnvironmentVar("MailStEd", "0")
  18842.                     note.SaveOptions = "1"
  18843.                     note.MailOptions = "1"
  18844.                     note.AssignState = 9
  18845.                     note.DueState = 9
  18846.                     Call note.ReplaceItemValue("_ViewIcon", 82)
  18847.                End If
  18848.           End If
  18849.      Else
  18850.           NewDocument = False
  18851.           If note.HasItem("IsMailStationery") Then
  18852.                EditType = session.GetEnvironmentString("MailStEd")
  18853. 'EditType 2 = EditStationery
  18854.                If EditType = "2" Then 
  18855.                     Call session.SetEnvironmentVar("MailStEd", "0")
  18856.                     note.MailOptions = "0"
  18857.                     note.SaveOptions = "1"
  18858.                Else
  18859. 'Create a doc from Stationery
  18860.                     note.RemoveItem("IsMailStationery")
  18861.                     note.RemoveItem("MailStationeryName")
  18862.                     Call note.ReplaceItemValue("$VersionOpt", "6")
  18863.                     uidoc.GoToField("SendTo")
  18864.                End If
  18865.           Else
  18866.                EditType = session.GetEnvironmentString("MailStEd")
  18867. 'EditType 5 = EditNewCopy               
  18868.                If EditType = "5" Then 
  18869.                     Call note.ReplaceItemValue("$VersionOpt", "6")
  18870.                     note.tmpAction = "ConvertNewDoc"
  18871.                     note.RemoveItem("PostedDate")
  18872.                     Call session.SetEnvironmentVar("MailStEd", "0")
  18873.                     uidoc.Reload
  18874.                     uidoc.Save
  18875.                     uidoc.Refresh
  18876.                     uidoc.RefreshHideFormulas
  18877.                     Exit Sub
  18878.                End If
  18879.           End If
  18880.      End If 
  18881.      
  18882.      uidoc.Reload
  18883.      uidoc.RefreshHideFormulas
  18884.      
  18885. End Sub
  18886. '++LotusScript Development Environment:2:2:EmailModeChange:1:8
  18887. Sub EmailModeChange
  18888.      
  18889.      If note Is Nothing Then Call InstantiateObjectVariables
  18890.      
  18891. 'If this is a message that was written by you or your mail file, we need to remove any options fields
  18892.      If note.From(0) = Owner Or note.From(0) = session.UserName Or _
  18893.      note.Principal(0) = Owner Or note.Principal(0) = session.UserName Then
  18894.           note.RemoveItem("MailOptions")
  18895.           note.RemoveItem("SaveOptions")
  18896.           If Not(note.HasItem("SecureMail")) Then CheckSecureMail
  18897. 'If this is a message that was not written by you we do not present the mail dialog
  18898. 'but we do want to force processing into QuerySave               
  18899.      Else
  18900.           note.MailOptions = "0"
  18901.           note.RemoveItem("SaveOptions")
  18902.      End If
  18903.      
  18904.      If uidoc.EditMode Then uidoc.Reload
  18905.      
  18906. End Sub
  18907. '++LotusScript Development Environment:2:2:EmailSave:1:8
  18908. Sub EmailSave(Continue)
  18909.      
  18910.      DoNotClose = False
  18911.      
  18912.      If note Is Nothing Then Call InstantiateObjectVariables
  18913.      
  18914.      note.RemoveItem("MailOptions")
  18915.      note.RemoveItem("SaveOptions")
  18916.      
  18917.      Action = note.tmpAction(0)
  18918.      
  18919.      If note.HasItem("IsMailStationery") Then
  18920.           If Action <> "RenameStationery" Then
  18921.                Call SaveDialog("Stationery")
  18922.                If ContinueSave = IDCANCEL Then continue = False
  18923.                If ContinueSave <> IDYES Then 
  18924.                     uidoc.reload
  18925.                     Exit Sub
  18926.                End If
  18927.           End If
  18928.      End If
  18929.      
  18930.      Select Case Action
  18931.      Case "SaveAsStationery"
  18932.           sName = Inputbox$("What would you like to call this Stationery?", "Save as Stationery", "-Untitled-")
  18933.           If sName = "" Then
  18934.                Continue = False
  18935.                note.RemoveItem("tmpAction")
  18936.                Exit Sub
  18937.           End If
  18938.           If NewDocument Then
  18939.                note.IsMailStationery = 1
  18940.                note.MailStationeryName = sName
  18941.                note.MailOptions = "0"
  18942.                note.SaveOptions = "1"
  18943.           Else
  18944.                note.SaveOptions = "0"
  18945.                Set newnote = New NotesDocument(db)
  18946.                Call note.CopyAllItems(newnote)
  18947.                ItemList = newnote.Items
  18948.                Forall i In ItemList
  18949.                     If Lcase(Left(i.Name, 3)) = "tmp" Then i.Remove
  18950.                End Forall
  18951.                newnote.IsMailStationery = 1
  18952.                newnote.MailStationeryName = sName              
  18953.                newnote.Form = "Memo"
  18954.                newnote.RemoveItem("PostedDate")
  18955.                newnote.RemoveItem("DeliveredDate")
  18956.                newnote.Save True, True
  18957.                ws.ViewRefresh
  18958.           End If
  18959.           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"
  18960.           note.RemoveItem("tmpAction")
  18961.           Call uidoc.close
  18962.                    Exit Sub
  18963.      Case "RenameStationery"
  18964.           MailStationeryName = note.MailStationeryName
  18965.           sName = Inputbox$("What would you like to call this Stationery?", "Save as Stationery", MailStationeryName(0))
  18966.           If sName = "" Then
  18967.                note.MailOptions = "0"
  18968.                note.RemoveItem("tmpAction")
  18969.                DoNotClose = True
  18970.                Continue = False
  18971.                Exit Sub
  18972.           End If
  18973.           note.MailStationeryName = sName
  18974.           note.MailOptions = "0"
  18975.           note.SaveOptions = "1"
  18976.      Case "SaveAsDraft", "SaveAndFile", "SendAndFile", "ConvertNewDoc"
  18977.           note.MailOptions = "0"
  18978.           note.SaveOptions = "1"
  18979.      Case "Send"
  18980.           note.MailOptions = "0"
  18981.           note.SaveOptions = "0"
  18982.      Case "Mailing"
  18983. 'We do not want to do anything if mailing is in process (like from the Send button)
  18984.      Case "ConvertToTask"
  18985.           note.RemoveItem("DeliveredDate")
  18986.           note.RemoveItem("PostedDate")
  18987.           note.SendTo = ""
  18988.           note.CopyTo = ""
  18989.           note.SaveOptions ="1"
  18990.           note.MailOptions = "0"
  18991.           note.Form = "Task"
  18992.           note.AssignState = 0
  18993.           note.ExcludeFromView = "D"
  18994.           Call note.ReplaceItemValue("_ViewIcon", 168)
  18995.      Case Else
  18996. '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          
  18997.           If note.HasItem("DeliveredDate") And Not(IsEmailAuthor) Then
  18998.                note.MailOptions = "0"
  18999.                note.SaveOptions = "1"
  19000.                Call SaveDialog("Document")
  19001.                If ContinueSave = IDCANCEL Then continue = False
  19002.                If ContinueSave <> IDYES Then 
  19003.                     uidoc.reload
  19004.                     Exit Sub
  19005.                End If
  19006.           End If
  19007.      End Select
  19008.      
  19009.      note.RemoveItem("tmpAction")
  19010.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  19011.      
  19012.      If Not(note.HasItem("AuthorList")) Then Set item = New NotesItem(note, "AuthorList", note.From, AUTHORS)
  19013.      
  19014.      uidoc.Reload
  19015.      
  19016. End Sub
  19017. '++LotusScript Development Environment:2:2:EmailClose:1:8
  19018. Sub EmailClose(Continue)
  19019.      
  19020.      If DoNotClose Then
  19021.           DoNotClose = False
  19022.           Continue = False
  19023. 'This backs out anything you did previously to MailOptions and SaveOptions and will force you back into QuerySave next time you try to exit          
  19024.           note.RemoveItem("MailOptions")
  19025.           note.RemoveItem("SaveOptions")
  19026.           uidoc.reload
  19027.      End If
  19028.      
  19029.      If TaskReply Then
  19030.           Set namelookup = New NotesName(note.SendTo(0))
  19031.           Messagebox "Notification has been sent to " & namelookup.Common & ".", 0, "Task Message"
  19032.      End If
  19033.      
  19034. End Sub
  19035. '++LotusScript Development Environment:2:2:SaveDialog:1:8
  19036. Sub SaveDialog(SavedDoc)
  19037.      
  19038.      ContinueSave = Messagebox("Do you wish to save this " & SavedDoc & "?", MB_YESNOCANCEL, "Save " & SavedDoc) 
  19039.      Select Case ContinueSave
  19040.      Case IDCANCEL
  19041.           note.MailOptions = "0"
  19042. 'This will force us into querysave next time - this time it will set continue = false so no save will occur          
  19043.           note.SaveOptions = "1"
  19044.      Case IDNO
  19045.           note.SaveOptions = "0"
  19046.      Case IDYES
  19047.           note.SaveOptions = "1"
  19048.      End Select
  19049.      
  19050. End Sub
  19051. '++LotusScript Development Environment:2:2:CheckSecureMail:1:8
  19052. Sub CheckSecureMail
  19053.      
  19054. 'If SecureMail = 1 in notes.ini all mail gets Signed and Encrypted and the user is unable to override it
  19055.      note.SecureMail = Cstr(session.GetEnvironmentString("SecureMail", True))
  19056.      If note.SecureMail(0) = "1" Then
  19057.           Call note.ReplaceItemValue("Sign", "1")
  19058.           Call note.ReplaceItemValue("Encrypt", "1")
  19059.      End If     
  19060.      
  19061. End Sub
  19062. '++LotusScript Development Environment:2:2:CreateOLEObject:1:8
  19063. Sub CreateOLEObject
  19064.      Dim sProgid As String
  19065.      
  19066.      On Error Resume Next
  19067.      
  19068.      sProgid = note.~$OLEObjProgId(0)
  19069.      
  19070. 'if this is a new document, then we need to create the ole object     
  19071.      If (NewDocument) Then     
  19072.           note.OriginalEditor = sProgid
  19073.           uidoc.GotoField(note.~$OLEObjField(0))
  19074.           
  19075.           Call uidoc.CreateObject("OLEObject", sProgId ,"")
  19076.           If (Err = 0) Then 
  19077.                Call ws.DialogBox("(OLEMailFields)",True,True)
  19078.           Else
  19079.                note.tmpuseOLE = ""
  19080.                uidoc.RefreshHideFormulas
  19081.           End If
  19082.      Else
  19083. 'the user is reading/editing an existing document
  19084. 'if the OriginalEditor = MailEditor, display the document using that Editor
  19085. 'otherwise, let Notes display the document
  19086.           If Lcase(note.OriginalEditor(0)) = Lcase(sProgId) Then
  19087.                uidoc.editmode = True
  19088.                Set OLEObject = uidoc.GetObject("OLEObject")
  19089.                If Not(Isobject(OLEObject)) Then
  19090. 'there is no object for some reason -this should be rare!!       
  19091.                     uidoc.EditMode = True
  19092.                     note.OriginalEditor = sProgid
  19093.                     uidoc.GotoField(note.~$OLEObjField(0))
  19094.                     Call uidoc.CreateObject("OLEObject",sProgId,"")      
  19095.                     Exit Sub    
  19096.                End If
  19097.           Else
  19098. 'the user has a different editor
  19099.                note.tmpUseOLE = ""
  19100.                uidoc.RefreshHideFormulas               
  19101.           End If
  19102.      End If     
  19103. End Sub
  19104. '++LotusScript Development Environment:2:1:IsEmailAuthor:1:8
  19105. Function IsEmailAuthor() As Integer
  19106.      If Not(note Is Nothing) Then
  19107.           If note.From(0) = Owner Or note.From(0) = session.UserName Or _
  19108.           note.Principal(0) = Owner Or note.Principal(0) = session.UserName Then
  19109.                IsEmailAuthor = True
  19110.           Else
  19111.                IsEmailAuthor = False
  19112.           End If
  19113.      Else
  19114.           IsEmailAuthor = False
  19115.      End If
  19116. End Function
  19117. ,8    }@
  19118. Qh    }p
  19119. ,8    }@
  19120. ,8    }@
  19121. Qh    }(
  19122. O=Lotus Notes
  19123. O=Lotus Notes
  19124. PURSAFO
  19125. |.:#U
  19126. O=Lotus Notes
  19127. CN=Lotus Notes Template Development/O=Lotus Notes
  19128. PURSAFO
  19129. z7l`,#
  19130. $ScriptLib
  19131. $ScriptLib_O
  19132. $TITLE
  19133. $Flags
  19134. $PublicAccess
  19135. '++LotusScript Development Environment:2:5:(Options):0:74
  19136. Option Public
  19137. Use "AppointmentResponses"    
  19138. '++LotusScript Development Environment:2:5:(Forward):0:1
  19139. Declare Sub Initialize
  19140. Declare Sub AcceptInvitation
  19141. Declare Sub DeclineInvitation
  19142. Declare Function DelegateInvitation As Integer
  19143. Declare Sub CounterPropose
  19144. '++LotusScript Development Environment:2:5:(Declarations):0:10
  19145. 'NoticeProcessing: 
  19146. 'NoticeProcessing: 
  19147. '++LotusScript Development Environment:2:2:Initialize:1:10
  19148. Sub Initialize
  19149.      
  19150. End Sub
  19151. '++LotusScript Development Environment:2:2:AcceptInvitation:1:8
  19152. Sub AcceptInvitation
  19153.     *This routine is called whenever the user accepts a meeting invitation
  19154.     *A notice document is sent to the chair informing them of our intent to attend
  19155.     *The main invitation document is updated to reflect our acceptance     
  19156. %END REM
  19157.      
  19158.      On Error Goto ErrorRoutine
  19159.      On Error 4005 Resume Next 'handle a delegee 
  19160.      
  19161. 'first, make sure a conflict doesn't exist 
  19162. 'we don't check repeating appointments or appointments being auto-processed (auto-process does it itself)
  19163.      If Not((note.HasItem("RepeatFor")) Or (IsAgentProcessing)) Then          
  19164.           If (profile.ConflictMeeting(0) = "1") Then
  19165.                If (CheckIfConflictExists) Then Exit Sub
  19166.           End If
  19167.      End If
  19168.      
  19169. 'create the notice document
  19170.      If (note.tmpAction(0) = "PencilIn") Then
  19171.           Call CreateNoticeDocument("Penciled In -",ORS_MSGTYPE_ACCEPT,83,2)
  19172.      Else
  19173.           Call CreateNoticeDocument("Accepted -",ORS_MSGTYPE_ACCEPT,83,2)
  19174.      End If
  19175.      
  19176. 'add the comment if necessary
  19177.      If (note.HasItem("IncludeComment")) Then AddInviteeComment
  19178.      
  19179.      If (note.HasItem("FromDomain")) Then     
  19180.           notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  19181.      Else
  19182.           FromDomain = Evaluate("@Domain")
  19183.           notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  19184.      End If          
  19185.      
  19186. 'we use the profile document in case this is being processed by the agent     
  19187.      InviteeUserName = Evaluate("@Name([Abbreviate];owner)",profile)
  19188.      ChairName = Evaluate("@Name([cn];chair)",note)
  19189.      notice.InviteeName = InviteeUserName
  19190.      Call notice.Send(False)
  19191. 'now we need to update the original invitation document
  19192.      Context = GetContext
  19193.      Select Case Context
  19194.      Case 1,3
  19195. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  19196.           Call UpdateOriginalInvitation(parentnote)
  19197.      Case 2,4
  19198. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  19199.           Call UpdateOriginalInvitation(note)
  19200.      End Select
  19201.      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"
  19202.      
  19203. 'see if we should remove this from the inbox
  19204.      If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  19205.      Exit Sub
  19206.      
  19207. ErrorRoutine:
  19208.      Messagebox Error & " (AcceptInvitation)"
  19209.      Exit Sub
  19210. End Sub
  19211. '++LotusScript Development Environment:2:2:DeclineInvitation:1:8
  19212. Sub DeclineInvitation
  19213.     *This routine is called whenever the user declines an invitation or
  19214.      changes their mind after accepting an invitation
  19215.     *A notice document is sent to the chair informing them of our decline
  19216.     *The main invitation document is updated to reflect our decline    
  19217. %END REM
  19218.      Dim MessageText As String
  19219.      
  19220.      On Error Goto ErrorRoutine
  19221.      On Error 4005 Resume Next 'handle a delegee 
  19222.      
  19223.      Call CreateNoticeDocument("Declined -",ORS_MSGTYPE_REJECT,84,2)
  19224.      
  19225. 'add the comment if necessary
  19226.      If (note.HasItem("IncludeComment")) Then AddInviteeComment
  19227.      
  19228.      If (note.HasItem("FromDomain")) Then     
  19229.           notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  19230.      Else
  19231.           FromDomain = Evaluate("@Domain")
  19232.           notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  19233.      End If   
  19234.      
  19235.      InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  19236.      ChairName = Evaluate("@Name([cn];chair)",note)
  19237.      notice.InviteeName = InviteeUserName
  19238.      
  19239.      Call notice.Send(False)
  19240. 'now we need to update the original invitation document
  19241.      Context = GetContext
  19242.      Select Case Context
  19243.      Case 1,3
  19244. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  19245.           If (parentnote.Form(0) = "Appointment") Then
  19246.                MessageText  = "The calendar entry has been removed from your calendar."
  19247.           Else
  19248.                MessageText = "A meeting document has not been added to your Calendar."
  19249.           End If
  19250.           Call UpdateOriginalInvitation(parentnote)
  19251.      Case 2,4
  19252. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  19253.           If (note.Form(0) = "Appointment") Then
  19254.                MessageText  = "The calendar entry has been removed from your calendar."
  19255.           Else
  19256.                MessageText = "A meeting document has not been added to your Calendar."
  19257.           End If
  19258.           Call UpdateOriginalInvitation(note)
  19259.      End Select
  19260.      
  19261.      Messagebox "A notice has been sent informing " & ChairName(0) & " that you will not be attending. " & MessageText,0,"Status"
  19262. 'see if we should remove this from the inbox
  19263.      If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  19264.      Exit Sub
  19265.      
  19266. ErrorRoutine:
  19267.      Messagebox Error & " (DeclineInvitation)"
  19268.      Exit Sub
  19269. End Sub
  19270. '++LotusScript Development Environment:2:1:DelegateInvitation:1:8
  19271. Function DelegateInvitation As Integer
  19272.     *This routine is called whenever the user wants to delegate a meeting invitation
  19273.     *This routine provides a dialogbox to select the delegatee
  19274.     *This routine sends an invitation to the delegatee and a delegation notice back to the chair
  19275.     *The main appointment document is updated to reflect the change
  19276.     *This function returns 0 if no errors occurred, or 1 if errors did occur
  19277. %END REM
  19278.      
  19279.      On Error Goto ErrorRoutine
  19280.      On Error 4005 Resume Next 'handle a delegee 
  19281.      
  19282.      DelegateInvitation = 0
  19283. 'invoke the dialog box to get the name
  19284.      If (ws.Dialogbox("(NamesPrompt)", True, True, False, False, False, False, "Delegate To") = True) Then
  19285. 'if this person has been invited by the chair, they should not be able to be a delegee
  19286.           localHasBeenInvited = Evaluate("@IsMember(@Lowercase(@Name([cn];SendTo));@Lowercase(@Name([cn];RequiredAttendees:OptionalAttendees:Chair)))",note)
  19287.           If (localHasBeenInvited(0) <> False) Then
  19288.                Messagebox "You have selected a person that has already been invited to this meeting. Please choose someone else.",0,"Invalid Selection"
  19289.                DelegateInvitation = DelegateInvitation()
  19290.                Exit Function
  19291.           End If          
  19292. 'create the notice and send it to the delegee          
  19293.           Call CreateNoticeDocument("Invitation -",ORS_MSGTYPE_DELEGATE,133,2)
  19294.           notice.OrgState = ORS_STATE_DELEGATE
  19295. 'remove the items that make this a response
  19296.           Call notice.RemoveItem("$Ref")
  19297.           Call notice.RemoveItem("$RefOptions")
  19298. 'add the comment if necessary
  19299.           If (note.HasItem("IncludeComment")) Then AddInviteeComment          
  19300. 'set the UniversalID of the notice          
  19301.           If (parentnote Is Nothing) Then
  19302.                notice.UniversalID = note.UniversalID
  19303.           Else
  19304.                notice.UniversalID = parentnote.UniversalID
  19305.           End If
  19306.           notice.SendTo = note.SendTo
  19307.           Call notice.Send(False)
  19308. 'create the notice and send it to the chair
  19309.           Call CreateNoticeDocument("Delegated -",ORS_MSGTYPE_DELEGATING,84,2)
  19310. 'add the comment if necessary
  19311.           If (note.HasItem("IncludeComment")) Then AddInviteeComment          
  19312.           
  19313.           If (note.HasItem("FromDomain")) Then     
  19314.                notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  19315.           Else
  19316.                FromDomain = Evaluate("@Domain")
  19317.                notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  19318.           End If
  19319.           note.Delegee = note.SendTo(0)
  19320.           notice.Delegee = Evaluate("@Name([Abbreviate];SendTo)",note)
  19321.           InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  19322.           ChairName = Evaluate("@Name([cn];chair)",note)
  19323.           DelegeeName = Evaluate("@Name([cn];sendto)",note)
  19324.           notice.InviteeName = InviteeUserName
  19325.           Call notice.Send(False)
  19326. 'call the function to update our invitation 
  19327.           Context = GetContext
  19328.           Select Case Context
  19329.           Case 1,3
  19330. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  19331.                Call UpdateOriginalInvitation(parentnote)
  19332.                parentnote.Delegee = DelegeeName(0)
  19333.                parentnote.save True,False,True
  19334.           Case 2,4
  19335. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  19336.                Call UpdateOriginalInvitation(note)
  19337.           End Select
  19338.           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"
  19339. 'remove the sendto on the note
  19340.           note.SendTo = ""
  19341. 'see if we should remove this from the inbox
  19342.           If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  19343.           DelegateInvitation = 0          
  19344.      Else
  19345.           DelegateInvitation = 1
  19346.      End If
  19347.      
  19348.      Exit Function
  19349.      
  19350. ErrorRoutine:
  19351.      Messagebox Error & " (DelegateInvitation)"
  19352.      Call MarkTempFields(note)
  19353.      Call note.RemoveItem("tmpUserActions")
  19354.      DelegateInvitation = 1     
  19355.      Exit Function
  19356. End Function
  19357. '++LotusScript Development Environment:2:2:CounterPropose:1:8
  19358. Sub CounterPropose
  19359.     *This routine is called whenever the user wants to send a counter propose notice
  19360.     *This routine sends a counter propose notice to the chair and updates the main
  19361.      appointment document
  19362. %END REM
  19363.      Dim dtEnd As NotesDateTime
  19364.      
  19365.      On Error Goto ErrorRoutine
  19366.      On Error 4005 Resume Next 'handle a delegee 
  19367.      
  19368.      Call CreateNoticeDocument("Change Proposal -",ORS_MSGTYPE_COUNTER,39,2)
  19369.      
  19370. 'add the comment if necessary
  19371.      If (note.HasItem("IncludeComment")) Then AddInviteeComment     
  19372.      
  19373. 'add the remaining items     
  19374.      notice.Reason = note.Reason
  19375.      
  19376.      Set trdr = session.CreateDateRange
  19377.      trdr.Text = uidoc.FieldGetText("NewTimeRange")
  19378.      Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  19379.      Set dtEnd = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.EndDateTime.TimeOnly)
  19380.      
  19381.      ' update the date/time object
  19382.      Set trdr.StartDateTime = startdt
  19383.      Set trdr.EndDateTime = dtEnd
  19384.      
  19385.      Set notice.NewDate = startdt
  19386.      Set notice.NewTimeRange = trdr
  19387.      notice.NewRoom = note.NewRoom
  19388.      InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  19389.      ChairName = Evaluate("@Name([cn];chair)",note)
  19390.      notice.InviteeName = InviteeUserName
  19391.      
  19392.      If (note.HasItem("FromDomain")) Then     
  19393.           notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  19394.      Else
  19395.           FromDomain = Evaluate("@Domain")
  19396.           notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  19397.      End If        
  19398.      
  19399.      notice.Send False
  19400.      
  19401.      Messagebox "A notice has been sent to " & ChairName(0) & " requesting a change to the Time/Location of this meeting.",0,"Status"
  19402.      
  19403.      Call UpdateOriginalInvitation(note)
  19404. 'see if we should remove this from the inbox
  19405.      If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  19406.      Exit Sub
  19407.      
  19408. ErrorRoutine:
  19409.      Messagebox Error & " (CounterPropose)"
  19410.      Exit Sub
  19411. End Sub
  19412. owner
  19413.     0S0E
  19414. chair
  19415.     0S0E
  19416. tmpOwner
  19417.     0S0E
  19418. chair
  19419.     0S0E
  19420. SendTo
  19421. RequiredAttendees
  19422. OptionalAttendees
  19423. Chair
  19424.     0S0E
  19425. SendTo
  19426.     0S0E
  19427. tmpOwner
  19428.     0S0E
  19429. chair
  19430.     0S0E
  19431. sendto
  19432.     0S0E
  19433. tmpOwner
  19434.     0S0E
  19435. chair
  19436.     0S0E
  19437. O=Lotus Notes
  19438. O=Lotus Notes
  19439. PURSAFO
  19440. |.:#U
  19441. O=Lotus Notes
  19442. CN=Lotus Notes Template Development/O=Lotus Notes
  19443. PURSAFO
  19444. $ScriptLib
  19445. $ScriptLib_O
  19446. $TITLE
  19447. $Flags
  19448. $PublicAccess
  19449. '++LotusScript Development Environment:2:5:(Options):0:74
  19450. Option Public
  19451. Option Explicit
  19452. Use "SharedWorkflowLibrary"     
  19453. Use "RepeatProcessing" 
  19454. '++LotusScript Development Environment:2:5:(Forward):0:1
  19455. Declare Sub Initialize
  19456. Declare Sub GetUpdateResponseItems(Byval context As Integer)
  19457. Declare Sub SetUpdateAsMostRecent(MainSequence As Integer)
  19458. Declare Sub GetMostRecentUpdateNotice(Context As Integer)
  19459. Declare Sub CheckForNoticeUpdates
  19460. Declare Sub DeCommitAppointment(apptdoc As NotesDocument)
  19461. Declare Sub CommitAppointment(apptdoc As NotesDocument)
  19462. Declare Function GetParentDocument() As Integer
  19463. '++LotusScript Development Environment:2:5:(Declarations):0:10
  19464. 'NoticeResponses: 
  19465. 'NoticeResponses: 
  19466. Dim UpdateResponses() As NoticeInfo
  19467. Dim UpdateSequence As Integer
  19468. Dim UpdateCreation As Variant
  19469. Dim UpdateAction As String
  19470. Dim UpdateStatus As String
  19471. Dim UpdateUNID As String
  19472. Dim UpdateDate As Variant
  19473. Dim UpdateTime As Variant
  19474. '++LotusScript Development Environment:2:2:Initialize:1:10
  19475. Sub Initialize
  19476.      
  19477. End Sub
  19478. '++LotusScript Development Environment:2:2:GetUpdateResponseItems:1:8
  19479. Sub GetUpdateResponseItems(Byval context As Integer)
  19480.     *This gets specific items from any update notices from the chair
  19481.  *Update notices are responses documents to the current invitation
  19482. %END REM
  19483.      Dim itemSDT As NotesItem
  19484.      
  19485.      On Error Goto ErrorRoutine
  19486.      
  19487.      UpdateSequence = response.SequenceNum(0)
  19488.      UpdateCreation = response.Created
  19489.      UpdateAction = response.NoticeType(0)
  19490.      UpdateUNID = response.UniversalID
  19491. 'if this update is a status update, get the status update type
  19492.      If (UpdateAction = ORS_MSGTYPE_STATUSUPDATE) Then 
  19493.           UpdateStatus = response.OrgStatus(0)               
  19494.      Else
  19495.           UpdateStatus = ""
  19496.      End If 
  19497.      If (UpdateAction = ORS_MSGTYPE_CONFIRMATION) Then
  19498.           Set itemSDT = response.GetFirstItem("StartDateTime")
  19499.           UpdateDate = itemSDT.DateTimeValue.DateOnly
  19500.           UpdateTime = itemSDT.DateTimeValue.TimeOnly
  19501.      End If
  19502. 'if the user opened up the main parent document and this is a repeat response, we need to add certain items to the parent
  19503.      Select Case context
  19504. '1 means the current note is a non-repeat notice, 3 = repeat notice
  19505.      Case 1,3
  19506.           If(response.HasItem("RescheduleWhich")) Then parentnote.RescheduleWhich = response.RescheduleWhich
  19507.           If(response.HasItem("OriginalStartDate")) Then parentnote.OriginalStartDate = response.OriginalStartDate
  19508.      Case 2,4
  19509. '2 means repeat instance, 4 means non-repeat instance
  19510.           If(response.HasItem("RescheduleWhich")) Then note.RescheduleWhich = response.RescheduleWhich
  19511.           If(response.HasItem("OriginalStartDate")) Then note.OriginalStartDate = response.OriginalStartDate
  19512.      End Select
  19513.      
  19514.      Exit Sub
  19515.      
  19516. ErrorRoutine:
  19517.      Messagebox Error & " (GetUpdateResponseItems)"
  19518.      Exit Sub
  19519. End Sub
  19520. '++LotusScript Development Environment:2:2:SetUpdateAsMostRecent:1:8
  19521. Sub SetUpdateAsMostRecent(MainSequence As Integer)
  19522.     *This routine sets the current response as the most recent
  19523.     *We need to do this in case multiple update notices have been
  19524.      received from the chair and we want to process the most recent one
  19525.     *The MainSequence parameter is the SequenceNum item of the main inviation document
  19526. %END REM
  19527.      
  19528.      On Error Goto ErrorRoutine
  19529.      
  19530. 'if this is a confirmation, then add it's items to the 1 index, otherwise add it to the 0 index
  19531.      Dim index As Integer
  19532.      
  19533.      If (UpdateAction = ORS_MSGTYPE_CONFIRMATION) Then
  19534.           index = 1
  19535.           UpdateResponses(index).apptdate = UpdateDate
  19536.           UpdateResponses(index).appttime = UpdateTime
  19537.      Else
  19538.           index = 0
  19539.      End If
  19540.      
  19541.      UpdateResponses(index).sequencenum = UpdateSequence
  19542.      UpdateResponses(index).creationdate = UpdateCreation
  19543.      UpdateResponses(index).action = UpdateAction
  19544.      UpdateResponses(index).misc1 = UpdateStatus
  19545.      UpdateResponses(index).misc2 = UpdateUNID
  19546.      numResponses = numResponses + 1
  19547.      Exit Sub
  19548.      
  19549. ErrorRoutine:
  19550.      Messagebox Error & " (SetUpdateAsMostRecent)"
  19551.      Exit Sub
  19552. End Sub
  19553. '++LotusScript Development Environment:2:2:GetMostRecentUpdateNotice:1:8
  19554. Sub GetMostRecentUpdateNotice(Context As Integer)
  19555.     *This is the bulk of the processing for notice responses
  19556.     *This routine iterates through the responses of a particular meeting invitation
  19557.      and gets the most recent notice sent by the chair
  19558. %END REM
  19559.      Dim index As Integer     
  19560.      Dim MainSequence As Integer
  19561.      
  19562.      If (note.IsResponse) And (parentnote Is Nothing) Then Exit Sub
  19563.      On Error Goto ErrorRoutine
  19564.      
  19565.      Redim UpdateResponses(2)
  19566.      numResponses = 0
  19567.      
  19568. 'get the context that this document was opened in
  19569.      Context = GetContext
  19570.      Select Case context
  19571.      Case 1,3
  19572. '1 means the current note is a non-repeat notice, 3 = repeat notice
  19573.           Set documents  = parentnote.Responses          
  19574.           MainSequence = parentnote.SequenceNum(0)
  19575.      Case 2,4
  19576. '2 means repeat instance, 4 means non-repeat instance
  19577.           Set documents  = note.Responses          
  19578.           MainSequence = note.SequenceNum(0)          
  19579.      End Select
  19580.      
  19581.      If (documents.Count = 0) Then Exit Sub
  19582.      
  19583.      Set response = documents.GetFirstDocument
  19584.      While Not(response Is Nothing)
  19585. 'make sure we have a valid document
  19586.           If (response.Form(0) = "Notice") Then
  19587. 'get the necessary values for this update
  19588.                GetUpdateResponseItems(Context)
  19589. 'if the sequence is >= the original invitation sequence, we can process it
  19590.                If (UpdateSequence >= MainSequence) Then
  19591. 'if we haven't added anything to the array, add this one
  19592.                     If (numResponses = 0) Then 
  19593.                          Call SetUpdateAsMostRecent(MainSequence)
  19594.                     Else
  19595.                          If (UpdateAction = ORS_MSGTYPE_CONFIRMATION) Then 
  19596.                               index =1 
  19597.                          Else
  19598.                               index = 0
  19599.                          End If
  19600. 'if the UpdateSequence value is greater than the existing value, add this response
  19601.                          If (UpdateSequence > UpdateResponses(index).sequencenum) Then 
  19602.                               Call SetUpdateAsMostRecent(MainSequence)
  19603.                          Else
  19604. 'if the UpdateSequence = the existing value, compare creation dates
  19605.                               If (UpdateSequence = UpdateResponses(index).sequencenum) And (UpdateCreation > UpdateResponses(index).creationdate) Then Call SetUpdateAsMostRecent(MainSequence)
  19606.                          End If               
  19607.                     End If
  19608.                End If     
  19609.           End If
  19610.           Set response = documents.GetNextDocument(response)          
  19611.      Wend
  19612.      Exit Sub
  19613.      
  19614. ErrorRoutine:
  19615.      Messagebox Error & " (GetMostRecentUpdateNotice)"
  19616.      Exit Sub
  19617. End Sub
  19618. '++LotusScript Development Environment:2:2:CheckForNoticeUpdates:1:8
  19619. Sub CheckForNoticeUpdates
  19620.     *This routine is called from the QueryOpen event on notice and appointment forms
  19621.     *It is only called if the mail owner != the meeting chair (i.e. we are an invitee)
  19622.     *This routine calls GetMostRecentResponseNotice and performs an action based upon the notice
  19623. %END REM
  19624.      
  19625.      Dim Context As Integer
  19626.      Dim StaticString As String
  19627.      Dim RealDate As Variant
  19628.      Dim RealTime As Variant
  19629.      Dim lDoc As NotesDocument
  19630.      
  19631.      Call GetMostRecentUpdateNotice(Context)
  19632.      
  19633.      If (documents.Count = 0) Then Exit Sub 'there are no responses
  19634.      
  19635.      Select Case Context
  19636. '1 means the current note is a non-repeat notice, 3 = repeat notice 
  19637.      Case 1,3
  19638.           Set lDoc = parentnote
  19639.      Case 2,4
  19640. '2 means repeat instance, 4 means non-repeat instance
  19641.           Set lDoc = note
  19642.      End Select
  19643.      
  19644.      On Error Goto ErrorRoutine
  19645. 'if there are any responses waiting, see what the most recent one is; 
  19646.      Select Case UpdateResponses(0).action
  19647.      Case ORS_MSGTYPE_RESCHEDULE
  19648. 'if the user is not reading the most upto date notice, see if we should open the reschedule notice or not
  19649.           If  (UpdateResponses(0).misc2 <> note.UniversalID) Then
  19650.                If (UpdateResponses(0).sequencenum > lDoc.SequenceNum(0)) Then
  19651.                     If IsWebClient Then
  19652.                          note.tmpConfirmMsg = "This meeting has been rescheduled. Check your In Box or Meetings view for the latest notice."
  19653.                     Else
  19654.                          If (Messagebox("This meeting has been rescheduled. Do you want to open the Reschedule notice now?.",33,"Open Reschedule") = 1) Then
  19655. 'the user wants us to open the reschedule notice
  19656.                               OpenReschedule = True
  19657.                          Else
  19658.                               OpenReschedule = False
  19659.                               note.DoNotProcess = True
  19660.                          End If
  19661.                     End If
  19662.                End If
  19663.           Else
  19664. 'the user is reading the most upto date reschedule notice -> make sure we can process this document
  19665.                If (UpdateResponses(0).sequencenum <= parentnote.SequenceNum(0)) Then note.DoNotProcess = True
  19666.           End If
  19667.      Case ORS_MSGTYPE_CANCEL 
  19668.           staticstring = "This meeting has been cancelled."
  19669.           If IsWebClient Then
  19670.                note.tmpConfirmMsg = staticstring
  19671.           Else
  19672.                If (lDoc.NoticeType(0) = ORS_MSGTYPE_ACCEPT) Then
  19673.                     Messagebox staticstring & " The calendar entry will be updated to reflect this change",0,"Status"
  19674.                     Call DeCommitAppointment(lDoc)
  19675.                Else
  19676.                     Messagebox staticstring, 0, "Status"
  19677.                End If
  19678.           End If
  19679.           note.DoNotProcess = True
  19680. 'we need to do this here since this is not handled in QuerySave          
  19681.           If Not IsWebClient And note.HasItem("OrgRepeat") Then
  19682.                Action = "Cancel"
  19683.                Call RepeatSave
  19684.           End If
  19685.      Case ORS_MSGTYPE_STATUSUPDATE
  19686.           If (UpdateResponses(0).misc1 = ORS_STATUS_REMOVED) Then
  19687. 'this user was uninvited
  19688.                staticstring = "You are no longer required to attend this meeting."
  19689.                If IsWebClient Then
  19690.                     note.tmpConfirmMsg = staticstring
  19691.                Else
  19692.                     If (lDoc.NoticeType(0) = ORS_MSGTYPE_ACCEPT) Then
  19693.                          Messagebox staticstring & " The calendar entry will be updated to reflect this change",0,"Status"
  19694.                          Call DeCommitAppointment(lDoc)
  19695.                     Else
  19696.                          Messagebox staticstring,0,"Status"
  19697.                     End If
  19698.                'we need to do this here since this is not handled in QuerySave          
  19699.                     If note.HasItem("OrgRepeat") Then
  19700.                          Action = "Cancel"
  19701.                          Call RepeatSave
  19702.                     End If
  19703.                End If
  19704.           Else                    
  19705. 'the user is being required to attend
  19706.                If (lDoc.NoticeType(0) <> ORS_MSGTYPE_ACCEPT) Then
  19707.                     staticstring = "You are required to attend this meeting."
  19708.                     If IsWebClient Then
  19709.                          note.tmpConfirmMsg = staticstring
  19710.                     Else
  19711.                          Messagebox  staticstring & " The calendar entry will be created to reflect this change",0,"Status"
  19712.                          Call CommitAppointment(lDoc)                        
  19713.                     End If
  19714.                End If
  19715.           End If
  19716.           note.DoNotProcess = True                       
  19717.      End Select
  19718. 'see if there are any confirmation notice          
  19719.      If (UpdateResponses(1).Action = ORS_MSGTYPE_CONFIRMATION) Then          
  19720. '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
  19721.           If  (UpdateResponses(1).misc2 <> note.UniversalID) And _
  19722.           ((UpdateResponses(1).sequencenum > UpdateResponses(0).SequenceNum) Or _
  19723.           (UpdateResponses(1).creationdate > UpdateResponses(0).creationdate)) Then 
  19724.                note.tmpRealDate = UpdateResponses(1).apptdate
  19725.                note.tmpRealTime = UpdateResponses(1).appttime
  19726.                If IsWebClient Then
  19727.                     RealDate = Evaluate({@Text(tmpRealDate;"S0D0")},note)
  19728.                     RealTime = Evaluate({@Text(tmpRealTime;"S1T1")},note)
  19729.                     Dim nName As New NotesName(note.Chair(0))
  19730.                     note.tmpConfirmMsg = "The invitation from " & nName.Common & " for " & _
  19731.                     RealDate(0) & " " & RealTime(0) & " has been confirmed."
  19732.                End If
  19733.           End If
  19734.      End If
  19735.      Exit Sub
  19736.      
  19737. ErrorRoutine:
  19738.      Messagebox Error & " (CheckForNoticeUpdates)"
  19739.      Exit Sub
  19740. End Sub
  19741. '++LotusScript Development Environment:2:2:DeCommitAppointment:1:8
  19742. Sub DeCommitAppointment(apptdoc As NotesDocument)
  19743.     *This routine is called if a user is uninvited from a meeting or
  19744.      if the meeting is cancelled
  19745.     *This routine modifies the passed in apptdoc to make it a non-calendar item
  19746. %END REM
  19747.      
  19748.      apptdoc.NoticeType = UpdateResponses(0).action
  19749.      apptdoc.OrgStatus = UpdateResponses(0).misc1
  19750.      Call apptdoc.ReplaceItemValue("$BusyPriority","2")
  19751.      Call apptdoc.RemoveItem("CalendarDateTime")
  19752.      Call apptdoc.ReplaceItemValue("_ViewIcon",0)
  19753.      apptdoc.SequenceNum = UpdateResponses(0).SequenceNum
  19754.      Call apptdoc.RemoveItem("OrgTable")
  19755. 'if this document has an alarm, remove it from the alarms folder
  19756.      If (apptdoc.HasItem("$Alarm")) Then Call apptdoc.RemoveFromFolder("$Alarms")
  19757.      Call MarkTempFields(apptdoc)
  19758.      Call apptdoc.Save(True,True,True)
  19759. End Sub
  19760. '++LotusScript Development Environment:2:2:CommitAppointment:1:8
  19761. Sub CommitAppointment(apptdoc As NotesDocument)
  19762.     *This routine is called ONLY when the user is being required to attend a meeting
  19763.         - THIS MEANS THE INVITEE RECEIVED A STATUSUPDATE NOTICE FROM THE CHAIR
  19764.         - WITH AN ORGSTATUS ITEM SET TO ORS_STATUS_ACCEPTED
  19765.     *This routine is not the same as an acceptance and should not be treated as such,
  19766.      since we don't mail anything back to the chair
  19767. %END REM
  19768.      Dim chairnote As NotesDocument
  19769.      Dim startdt As NotesDateTime
  19770.      Dim enddt As NotesDateTime
  19771.      Dim trdr As NotesDateRange
  19772.      
  19773.      If (UpdateResponses(0).misc2 <> "") Then
  19774.           Set chairnote = db.GetDocumentbyUNID(UpdateResponses(0).misc2)
  19775.      Else
  19776.              Set chairnote = note
  19777.      End If
  19778.      
  19779.      apptdoc.Form = "Appointment"
  19780.      
  19781.      Set trdr = session.CreateDateRange
  19782.      Call TIMEGetNotesFromLS(chairnote.GetITemValue("StartDAteTime")(0), startdt)          
  19783.      Call TIMEGetNotesFromLS(chairnote.GetITemValue("EndDateTime")(0), enddt)          
  19784.      
  19785.      Set trdr.StartDateTime = startdt
  19786.      Set trdr.EndDateTime = enddt
  19787.      Set apptdoc.TimeRange = trdr
  19788.      Set apptdoc.StartDateTime = startdt
  19789.      Set apptdoc.EndDateTime = enddt
  19790.      apptdoc.CalendarDateTime = chairnote.StartDateTime
  19791.      apptdoc.StartDate = chairnote.StartDate
  19792.      apptdoc.Principal = chairnote.chair
  19793.      apptdoc.NoticeType = ORS_MSGTYPE_ACCEPT  
  19794.      Call apptdoc.ReplaceItemValue("_ViewIcon",158)
  19795.      Call apptdoc.ReplaceItemValue("$BusyName",Owner)
  19796.      Call apptdoc.ReplaceItemValue("$BusyPriority","1")
  19797.      Call apptdoc.ReplaceItemValue("_ViewIcon",158)
  19798.      apptdoc.Subject = chairnote.Topic
  19799. 'check to see if we should automatically set an alarm
  19800.      If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") And (profile.SetAlarmAppointment(0) = "1") Then
  19801.           Call apptdoc.ReplaceItemValue("$Alarm",1)
  19802.           Call apptdoc.ReplaceItemValue("$AlarmDescription",note.Topic)
  19803.           Call apptdoc.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  19804.           Call apptdoc.PutInFolder("$Alarms")
  19805.      Else
  19806.           Call apptdoc.RemoveItem("$Alarm")
  19807.           Call apptdoc.RemoveItem("$AlarmDescription")
  19808.           Call apptdoc.RemoveItem("$AlarmOffset")               
  19809.      End If
  19810.      Call apptdoc.ReplaceItemValue("$NoPurge",apptdoc.EndDateTime(0))
  19811.      apptdoc.SequenceNum = UpdateResponses(0).SequenceNum     
  19812.      apptdoc.OrgTable =  ORS_ITEM_CALENDAR
  19813.      Call MarkTempFields(apptdoc)
  19814.      Call apptdoc.Save(True,True,True)  
  19815. End Sub
  19816. '++LotusScript Development Environment:2:1:GetParentDocument:1:8
  19817. Function GetParentDocument() As Integer
  19818.      *this routine gets the parent document for a given note     
  19819. %END REM
  19820.      On Error Resume Next
  19821.      GetParentDocument = False
  19822.      
  19823.      Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  19824.      If (parentnote Is Nothing) Then
  19825. 'if this is a non-repeating note, see if we should re-create the document
  19826.           If Not(note.hasitem("OrgRepeat")) Then
  19827.                If (Msgbox("The appointment document has been deleted from your calendar, do you want to re-create it?",52) = 6) Then 
  19828.                     Call ResurrectParentDoc        
  19829.                     GetParentDocument =True
  19830.                     Exit Function
  19831.                Else
  19832.                     note.tmpNoParent = True
  19833.                     note.DoNotProcess = True
  19834.                     Exit Function
  19835.                End If                         
  19836.           Else
  19837. 'this is a repeating notice; see if the user is trying to process a response without processing the repeat parent
  19838.                If (note.HasItem("RepeatParentUNID")) Then 
  19839.                     Set parentnote = db.GetDocumentByUNID(note.RepeatParentUNID(0))
  19840.                     If (parentnote Is Nothing) Then
  19841. 'the repeat set has been deleted; see if the user wants to continue on by creating a non-repeat instance
  19842.                          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 
  19843.                               Call ResurrectParentDoc
  19844.                               GetParentDocument =True
  19845.                               Exit Function                            
  19846.                          Else
  19847.                               note.tmpNoParent = True
  19848.                               note.DoNotProcess = True
  19849.                               Exit Function
  19850.                          End If       
  19851.                     Else
  19852. 'the parent repeat set has not been deleted; see if it is an invitation
  19853.                          If (parentnote.NoticeType(0) = ORS_MSGTYPE_INVITE) Then
  19854.                               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"
  19855.                               OpenRepeatParent = True
  19856.                               Exit Function
  19857.                          Else
  19858. 'the parent repeat set has been processed; see if the user wants to recreate this as a non-repeating instance                                   
  19859.                               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 
  19860.                                    Call ResurrectParentDoc
  19861.                                    GetParentDocument =True
  19862.                                    Exit Function
  19863.                               Else
  19864.                                    note.tmpNoParent = True
  19865.                                    note.DoNotProcess = True
  19866.                                    Exit Function                                   
  19867.                               End If                                  
  19868.                          End If
  19869.                     End If
  19870.                End If                         
  19871.           End If 
  19872.      Else
  19873. 'we found the parent          
  19874.           GetParentDocument = True
  19875.      End If
  19876. End Function
  19877. 8    h     
  19878. tmpRealDate
  19879. S0D0V
  19880.     0S0E
  19881. tmpRealTime
  19882. S1T1V
  19883.     0S0E
  19884. O=Lotus Notes
  19885. O=Lotus Notes
  19886. PURSAFO
  19887. |.:#U
  19888. O=Lotus Notes
  19889. CN=Lotus Notes Template Development/O=Lotus Notes
  19890. PURSAFO
  19891. $ScriptLib
  19892. $ScriptLib_O
  19893. $TITLE
  19894. $Flags
  19895. $PublicAccess
  19896. '++LotusScript Development Environment:2:5:(Options):0:74
  19897. Option Public   
  19898. '++LotusScript Development Environment:2:5:(Forward):0:1
  19899. Declare Sub Initialize
  19900. Declare Sub InstantiateObjectVariables
  19901. Declare Sub GetCalendarOwner
  19902. Declare Sub MarkTempFields(doc As NotesDocument)
  19903. Declare Sub CreateDefaultCalendarProfile
  19904. Declare Sub wInitDefaultSettings
  19905. Declare Sub TIMEGetNotesFromLS(vLS As Variant, dtNotes As NotesDateTime)
  19906. '++LotusScript Development Environment:2:5:(Declarations):0:10
  19907. 'ObjectVariables: 
  19908. 'Front end classes -> we declare these as variant so that backend server tasks will operate correctly
  19909. Dim ws As Variant
  19910. Dim uidoc As Variant
  19911. 'Back end classes
  19912. Dim session As NotesSession
  19913. Dim db As NotesDatabase
  19914. Dim note As NotesDocument
  19915. Dim profile As NotesDocument
  19916. Dim notice As NotesDocument
  19917. Dim parentnote As NotesDocument
  19918. Dim parent As NotesDocument
  19919. Dim child As NotesDocument
  19920. Dim documents As NotesDocumentCollection
  19921. Dim children As NotesDocumentCollection
  19922. Dim date1 As NotesDateTime
  19923. Dim date2 As NotesDateTime
  19924. Dim dateItem As NotesDateTime
  19925. Dim item As NotesItem
  19926. Dim NameLookup As NotesName
  19927. 'General Purpose classes
  19928. Dim Owner As String
  19929. Dim NewDocument As Integer
  19930. 'Client Differenciation
  19931. Dim IsWebClient As Variant
  19932. %INCLUDE "orgconst.lss"
  19933. %INCLUDE "lsconst.lss"
  19934. '++LotusScript Development Environment:2:2:Initialize:1:10
  19935. Sub Initialize
  19936.      
  19937. End Sub
  19938. '++LotusScript Development Environment:2:2:InstantiateObjectVariables:1:8
  19939. Sub InstantiateObjectVariables
  19940.      Set session = New NotesSession
  19941.      Set db = session.CurrentDatabase
  19942.      
  19943.      GetCalendarOwner
  19944.      
  19945.      If Typename(uidoc) <> "EMPTY" Then
  19946.           Set note = uidoc.Document
  19947.           uidoc.AutoReload  = False
  19948.      End If
  19949. End Sub
  19950. '++LotusScript Development Environment:2:2:GetCalendarOwner:1:8
  19951. Sub GetCalendarOwner
  19952.      
  19953.      On Error Resume Next
  19954.      
  19955.      If (profile Is Nothing) Then Set profile = db.GetProfileDocument("CalendarProfile")     
  19956.      If Err > 0 Then
  19957.           Err = 0     
  19958.           Call CreateDefaultCalendarProfile
  19959.      End If
  19960.      
  19961.      On Error Goto ErrorRoutine
  19962.      If profile.Owner(0) = "" Then Call CreateDefaultCalendarProfile
  19963.      
  19964.      Owner = profile.Owner(0)
  19965.      
  19966.      Exit Sub
  19967.      
  19968. ErrorRoutine:
  19969.      Messagebox Error & " (creating Calendar Profile)"
  19970.      Exit Sub
  19971. End Sub
  19972. '++LotusScript Development Environment:2:2:MarkTempFields:1:8
  19973. Sub MarkTempFields(doc As NotesDocument)
  19974. 'Mark all temporary and compute for display fields such that they will not be saved to disk     
  19975.      On Error Resume Next
  19976.      itemlist = doc.Items
  19977.      Forall n In itemlist
  19978.           If Lcase(Left(n.Name, 3)) = "tmp" Or Lcase(Left(n.Name, 4)) = "disp" Then n.SaveToDisk = False
  19979.      End Forall     
  19980.      
  19981.      If Not IsWebClient Then Exit Sub
  19982.      
  19983.      'remove web CGI variable so that they will get updated on the next doc read
  19984.      Call doc.RemoveItem("$$QueryOpenAgent")
  19985.      Call doc.RemoveItem("$$QuerySaveAgent")
  19986.      Call doc.RemoveItem("Path_Info")
  19987.      Call doc.RemoveItem("Query_String")
  19988.      
  19989.      'if the mail option fields are all default values, remove them
  19990.      If (doc.Importance(0) = "2" And doc.DeliveryPriority(0) = "N" And doc.DeliveryReport(0) = "B" And _
  19991.      doc.Form(0) <> "Task") Then
  19992.           Call doc.RemoveItem("Importance")
  19993.           Call doc.RemoveItem("DeliveryPriority")
  19994.           Call doc.RemoveItem("DeliveryReport")
  19995.      End If
  19996. End Sub
  19997. '++LotusScript Development Environment:2:2:CreateDefaultCalendarProfile:1:8
  19998. Sub CreateDefaultCalendarProfile
  19999.  *This routine creates a calendar profile document
  20000.   containg default values for required fields
  20001. %END REM
  20002.      
  20003. 'the global variable "profile" is a profile document already
  20004. 'we need to add the fields to it
  20005.      profile.Form = "CalendarProfile"
  20006.      Call profile.ComputeWithForm(False, False)
  20007.      
  20008.      If IsWebClient Then
  20009.           Call wInitDefaultSettings()
  20010.      Else
  20011.           Call profile.Save(True,True,True)
  20012.      End If
  20013. End Sub
  20014. '++LotusScript Development Environment:2:2:wInitDefaultSettings:1:8
  20015. Sub wInitDefaultSettings
  20016.      profile.wDefaultMailOpt = "2"
  20017.      profile.wEnableTrashIcon = "1"
  20018.      profile.wCalGridType = "3"
  20019.      
  20020.      profile.wEnableNABs = "0"
  20021.      profile.wEnableFavorites = "0"
  20022.      
  20023.      profile.wIsFolder1 = "1"
  20024.      profile.wIsFolder2 = "1"
  20025.      profile.wIsFolder3 = "1"
  20026.      profile.wIsFolder4 = "1"
  20027.      profile.wIsFolder5 = "1"
  20028.      profile.wIsFolder6 = "1"
  20029.      
  20030.      profile.NotesNab1 = "names.nsf"
  20031.      
  20032.      Call profile.Save(True,True,True)
  20033. End Sub
  20034. '++LotusScript Development Environment:2:2:TIMEGetNotesFromLS:1:8
  20035. Sub TIMEGetNotesFromLS(vLS As Variant, dtNotes As NotesDateTime)
  20036.      Set dtNotes = New NotesDateTime("")
  20037.      
  20038.      If Isdate(vLS) Then
  20039.           dtNotes.LSLocalTime = vLS
  20040.      End If
  20041. End Sub
  20042. O=Lotus Notes
  20043. O=Lotus Notes
  20044. PURSAFO
  20045. |.:#U
  20046. O=Lotus Notes
  20047. CN=Lotus Notes Template Development/O=Lotus Notes
  20048. PURSAFO
  20049. $ScriptLib
  20050. $ScriptLib_O
  20051. $TITLE
  20052. $Flags
  20053. $PublicAccess
  20054. '++LotusScript Development Environment:2:5:(Options):0:74
  20055. Option Public
  20056. Option Explicit
  20057. Use "ObjectVariables"
  20058. '++LotusScript Development Environment:2:5:(Forward):0:1
  20059. Declare Sub RepeatSave
  20060. Declare Sub RepeatClose
  20061. Declare Sub SaveOriginalValues
  20062. Declare Sub ModifyRecurring
  20063. Declare Sub CopyChanges(ValueList List As Variant, bNewItems As Integer)
  20064. Declare Sub BuildRepeatDates
  20065. Declare Sub NextAdjustment(x, TargetWeek)
  20066. Declare Function ProcessThisDoc(dtBase As NotesDateTime) As Integer
  20067. Declare Sub GetModifiedSettings
  20068. Declare Sub UpdateDateTimeValue(OldValue As Variant, NewValue As Variant, FieldName As String)
  20069. '++LotusScript Development Environment:2:5:(Declarations):0:10
  20070. 'RepeatProcessing: 
  20071. '------PROCESSING VARIABLES------
  20072. Dim tmpnote As NotesDocument
  20073. Dim repnote As NotesDocument
  20074. Dim timerange As NotesDateRange
  20075. Dim Action As String
  20076. Dim AdjustDays As Integer
  20077. Dim Adjustment As Integer
  20078. Dim ChangeWhich As String
  20079. Dim DateList() As Variant
  20080. Dim DayList() As Integer
  20081. Dim SaveValueList List As Variant
  20082. Dim SaveValueList2 List As Variant
  20083. Dim tmpRepeatDates() As Variant
  20084. Dim tmpRepeatIds() As Variant
  20085. Dim WeekList() As Integer
  20086. Dim WeekNbr As Integer
  20087. Dim CancelChange As Integer
  20088. Dim InstancesCreated As Integer
  20089. Dim QueriedForChanges As Integer
  20090. '++LotusScript Development Environment:2:2:RepeatSave:1:8
  20091. Sub RepeatSave
  20092.      Dim itemlist As Variant
  20093.      Dim Duration As Long
  20094.      Dim AlarmTime As Variant
  20095.      Dim AlarmDiff As Integer
  20096.      Dim RepeatDates As Variant
  20097.      Dim RepeatIds As Variant
  20098.      Dim BusyName As String
  20099.      Dim idList As Variant
  20100.      Dim x As Integer
  20101.      Dim itemAlarmTime As NotesItem
  20102.      Dim dtAlarm As NotesDateTime
  20103.      Dim dtTemp As NotesDateTime
  20104.      Dim bHasRepeatIds As Integer
  20105.      
  20106.      On Error Goto ErrorRoutine
  20107.      
  20108. 'note IS THE CURRENT DOCUMENT
  20109. 'repnote IS THE REPEAT INSTANCE
  20110. 'parent IS THE ULTIMATE PARENT     
  20111.      
  20112. 'if note is a response, check to see if it is a notice
  20113. 'if it is a notice then we need to find the parent     
  20114.      If note.IsResponse Then
  20115.           If note.Form(0) = "Notice" Then
  20116.                Set repnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  20117.           Else
  20118.                Set repnote = note
  20119.           End If
  20120.           If repnote Is Nothing Then Exit Sub
  20121.           Err = 0          
  20122.           On Error Resume Next
  20123.           Set parent = db.GetDocumentByUNID(repnote.ParentDocumentUNID)
  20124.           If Err = 0 Then
  20125.                On Error Goto ErrorRoutine
  20126.           Else
  20127.                Err = 0
  20128.                If parent Is Nothing Then Messagebox "This document's repeat parent has been deleted, "&_
  20129.                "therefore this calendar entry can no longer be processed as a repeating entry.", 0, "Repeat Parent Not Found"
  20130.                Exit Sub
  20131.           End If
  20132.      Else
  20133.           Set parent = note
  20134.      End If    
  20135.      
  20136.      If parent Is Nothing Then Exit Sub
  20137.      
  20138.      If (NewDocument Or Action = "Accept") And Not(InstancesCreated) Then
  20139. 'Build a list of all the dates this appointment will recur on (Accept already has the RepeatDates)               
  20140.           If NewDocument And note.RepeatUnit(0) <> "C" Then Call BuildRepeatDates
  20141. 'This doc becomes the parent of all of the repeat instances               
  20142. 'Mark all temporary and compute for display fields such that they will not be saved to disk     
  20143.           On Error Resume Next
  20144.           itemlist = parent.Items
  20145.           Forall n In itemlist
  20146.                If Lcase(Left(n.Name, 3)) = "tmp" Or Lcase(Left(n.Name, 4)) = "disp" Then n.SaveToDisk = False
  20147.           End Forall
  20148.           On Error Goto ErrorRoutine
  20149.           Set timerange = session.CreateDateRange
  20150. 'Get the duration
  20151.           Call TIMEGetNotesFromLS(parent.GetITemValue("StartDateTime")(0), date1)          
  20152.           Call TIMEGetNotesFromLS(parent.GetITemValue("EndDateTime")(0), date2)          
  20153.           Duration =date2.TimeDifference(date1) / 60
  20154. 'Get the original start time and use it to set the time
  20155.           Call TIMEGetNotesFromLS(parent.GetITemValue("StartDateTime")(0), date2)          
  20156.           date2.SetAnyDate
  20157. 'If there is a $AlarmTime we need to create the correct alarm times for each instsance
  20158.           If parent.HasItem("$AlarmTime") Then
  20159.                Set itemAlarmTime = parent.GetFirstItem("$AlarmTime")               
  20160.           End If
  20161. 'Create a copy of this meeting for each of the repeatDates, these are all children of parent which we just created
  20162.           RepeatDates = parent.RepeatDates
  20163.           bHasRepeatIds = parent.HasItem("RepeatIds")
  20164.           If(bHasRepeatIds) Then
  20165.                RepeatIds = parent.RepeatIds
  20166.           Else
  20167.                RepeatIds = ""
  20168.           End If
  20169.           BusyName = Owner
  20170.           IdList = parent.RepeatIds
  20171.           If Ubound(RepeatDates) > Ubound(IdList) Then Redim Preserve IdList(Ubound(RepeatDates))
  20172.           x = 0
  20173.           Forall d In RepeatDates
  20174.                Print "Creating repeating appointments... (" & (x+1) & " out of " & (Ubound(RepeatDates)+1) & ")"
  20175.                Set repnote = New NotesDocument(db)
  20176.                Call parent.CopyAllItems(repnote)
  20177.                repnote.Form = "Appointment"
  20178.                If NewDocument Then
  20179.                     repnote.Chair = Owner
  20180.                Else
  20181.                     repnote.Chair = note.Chair 'in this case we are accepting an invite
  20182.                End If
  20183.                repnote.SequenceNum = 1
  20184. 'Store new date with original time (date2)
  20185.                Call TIMEGetNotesFromLS(d, dtTEmp)               
  20186.                Set date1 = New NotesDateTime(dtTemp.DateOnly & " " & date2.LocalTime)
  20187.                Call repnote.ReplaceItemValue("StartDateTime", date1)
  20188.                Call repnote.ReplaceItemValue("StartDate", date1)
  20189.                Call repnote.ReplaceItemValue("CalendarDateTime", date1)
  20190.                Call date1.AdjustMinute(Duration, True)
  20191.                Call repnote.ReplaceItemValue("EndDateTime", date1)
  20192.                Call repnote.ReplaceItemValue("$NoPurge", date1)
  20193.                Set timerange.StartDateTime = New NotesDateTime(dtTemp.DateOnly & " " & date2.LocalTime)               
  20194.                Set timerange.EndDateTime = date1
  20195.                Set repnote.TimeRange = timerange
  20196.                If repnote.HasItem("$AlarmTime") Then
  20197.                     Set dtAlarm = New NotesDateTime(date1.DateOnly & " " & itemAlarmTime.DateTimeValue.TimeOnly)                    
  20198.                     Call repnote.ReplaceItemValue("$AlarmTime", dtAlarm)
  20199.                End If
  20200.                If repnote.HasItem("Invite") Or repnote.SendTo(0) <> "" Or repnote.CopyTo(0) <> "" Or Action = "Accept" Or NewDocument Then
  20201.                     repnote.RemoveItem("Invite") 
  20202.                     repnote.RemoveItem("SendTo") 
  20203.                     repnote.RemoveItem("CopyTo") 
  20204.                     If (repnote.Resources(0) <> "") Then repnote.RequiredResources = repnote.Resources
  20205.                     repnote.RemoveItem("Resources")
  20206.                     repnote.RemoveItem("RoomToReserve")
  20207.                     repnote.RemoveItem("$Signature")
  20208.                End If 
  20209. 'Remove all of the Repeat parameters - these are saved in the parent document               
  20210.                repnote.RemoveItem("RepeatUnit")               
  20211.                repnote.RemoveItem("RepeatDates")
  20212.                repnote.RemoveItem("RepeatIds")
  20213.                repnote.RemoveItem("RepeatAdjust")
  20214.                repnote.RemoveItem("RepeatFor")
  20215.                repnote.RemoveItem("RepeatForUnit")
  20216.                repnote.RemoveItem("RepeatHow")
  20217.                repnote.RemoveItem("RepeatInterval")
  20218.                repnote.RemoveItem("RepeatUntil")
  20219.                repnote.RemoveItem("RepeatWeekends")
  20220.                Call repnote.ReplaceItemValue("$BusyName", BusyName)
  20221.                Call repnote.MakeResponse(parent)
  20222.                Call repnote.ReplaceItemValue("$RefOptions", "1")
  20223.                If Action = "Accept" Then
  20224.                     If (bHasRepeatIds) Then
  20225.                          repnote.UniversalId = RepeatIds(x)
  20226.                     Else
  20227.                          IdList(x) = repnote.UniversalId
  20228.                     End If
  20229.                Else
  20230.                     IdList(x) = repnote.UniversalId
  20231.                End If
  20232.                repnote.save True, True, True
  20233.                If repnote.HasItem("$Alarm") Then Call repnote.PutInFolder("$Alarms")
  20234.                x = x + 1
  20235.           End Forall
  20236.           parent.RepeatIds = IdList
  20237.           parent.RemoveItem("CalendarDateTime")
  20238.           parent.RemoveItem("$BusyName")
  20239.           parent.RemoveItem("$BusyPriority")
  20240.           parent.Save True, True, True
  20241.           InstancesCreated = True          
  20242.      Else
  20243.           If note.IsResponse Then Call ModifyRecurring
  20244.      End If
  20245.      
  20246.      If Typename(uidoc) = "EMPTY" Then
  20247.           If Not(note Is Nothing) And Not(CancelChange) Then note.save True, True, True
  20248.      Elseif uidoc Is Nothing Then
  20249.           If Not(note Is Nothing) And Not(CancelChange) Then note.save True, True, True
  20250.      End If
  20251.      
  20252.      Exit Sub
  20253.      
  20254. ErrorRoutine:
  20255.      Messagebox Error & " (RepeatSave)"
  20256.      Exit Sub
  20257.      
  20258. End Sub
  20259. '++LotusScript Development Environment:2:2:RepeatClose:1:8
  20260. Sub RepeatClose
  20261.      
  20262.      On Error Goto ErrorRoutine
  20263.      
  20264.      If Action = "SaveBody" Then
  20265.           uidoc.Save
  20266.      Else
  20267.           ws.ViewRefresh
  20268.      End If
  20269.      
  20270.      Exit Sub
  20271.      
  20272. ErrorRoutine:
  20273.      Messagebox Error & " (RepeatQueryClose)"
  20274.      Exit Sub
  20275.      
  20276. End Sub
  20277. '++LotusScript Development Environment:2:2:SaveOriginalValues:1:8
  20278. Sub SaveOriginalValues
  20279.      On Error Goto ErrorRoutine
  20280. 'Save the current value of all fields in the repeat instance
  20281.      
  20282.      If note.Form(0) = "Notice" And note.IsResponse Then
  20283.           Set repnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  20284.      Else
  20285.           Set repnote = note
  20286.      End If
  20287.      
  20288.      If repnote Is Nothing Then Exit Sub
  20289.      
  20290.      Forall i In repnote.Items
  20291.           If (Left(i.name, 1) <> "$" And Lcase(Left(i.name, 3)) <> "tmp" And Lcase(Left(i.name, 3)) <> "disp") Or _
  20292.           (Mid(i.name, 2, 5) = "Alarm")  Then
  20293.                SaveValueList(i.Name) = i.Values
  20294.           End If
  20295.      End Forall
  20296.      
  20297.      Exit Sub
  20298.      
  20299. ErrorRoutine:
  20300.      Messagebox Error & " (SaveOriginalValues)"
  20301.      Exit Sub
  20302.      
  20303. End Sub
  20304. '++LotusScript Development Environment:2:2:ModifyRecurring:1:8
  20305. Sub ModifyRecurring
  20306.      Dim dttemp As NotesDateTime
  20307.      Dim dtBase As NotesDateTime
  20308.      Dim RepeatDates As Variant
  20309.      Dim RepeatIds As Variant
  20310.      Dim d As Integer
  20311.      Dim ItemFound As Integer
  20312.      Dim x As Integer
  20313.      Dim y As Integer
  20314.      Dim r As Integer
  20315.      
  20316.      
  20317.      On Error Goto ErrorRoutine
  20318.      
  20319.      If parent Is Nothing Then Exit Sub
  20320.      
  20321.      RepeatDates = parent.RepeatDates
  20322.      RepeatIds = parent.RepeatIds
  20323.      If RepeatDates(0) = "" Or RepeatIds(0) = "" Then Exit Sub
  20324.      
  20325. 'clear out these arrays because we'll be rebuilding them with only the remaining dates     
  20326.      If Action = "Delete" Then
  20327.           For d = 0 To Ubound(RepeatDates)
  20328.                RepeatDates(d) = ""
  20329.                RepeatIds(d) = ""
  20330.           Next
  20331.      End If
  20332.      
  20333.      Call GetModifiedSettings
  20334.      
  20335.      If (CancelChange) Then Exit Sub
  20336.      
  20337.      If ChangeWhich = "0" And Action <> "Delete" Then Exit Sub
  20338.      
  20339. 'Add any new items and their values.
  20340.      Forall i In repnote.Items
  20341.           If (Left(i.name, 1) <> "$" And Lcase(Left(i.name, 3)) <> "tmp" And Lcase(Left(i.name, 3)) <> "disp") Or _
  20342.           (Mid(i.name, 2, 5) = "Alarm")  Then
  20343.                ItemFound = False
  20344.                Forall s In SaveValueList
  20345.                     If Lcase(i.Name) = Lcase(Listtag(s)) Then
  20346.                          ItemFound = True
  20347.                          Exit Forall
  20348.                     End If
  20349.                End Forall
  20350.                If Not(ItemFound) Then SaveValueList2(i.Name) = i.Values
  20351.           End If
  20352.      End Forall
  20353.      
  20354.      Set children = parent.Responses
  20355.      If children Is Nothing Then Exit Sub
  20356.      Set child = children.GetFirstDocument
  20357.      Set timerange = session.CreateDateRange
  20358.      If repnote.HasItem("OriginalStartDate") Then
  20359.           Call TIMEGetNotesFromLS(repnote.GetITemValue("OriginalStartDate")(0), dtBase)          
  20360.      Else
  20361.           Call TIMEGetNotesFromLS(repnote.GetITemValue("StartDateTime")(0), dtBase)          
  20362.      End If
  20363.      x = 0
  20364.      y = 0
  20365.      While Not (child Is Nothing)
  20366.           If (child.Form(0) = "Appointment") Then
  20367.                If ProcessThisDoc(dtBase) Then
  20368.                     Select Case Action
  20369.                     Case "Delete"
  20370.                          Set tmpnote = children.GetNextDocument(child)
  20371.                          Call child.Remove(True)
  20372.                     Case "Cancel"
  20373.                          child.RemoveItem("CalendarDateTime")
  20374.                          Call child.ReplaceItemValue("$BusyPriority","2")     
  20375.                          child.NoticeType = ORS_MSGTYPE_CANCEL    
  20376.                          child.RemoveItem("OrgTable")
  20377.                          child.Save True, True, True
  20378.                          Call TIMEGetNotesFromLS(child.GetItemValue("StartDateTime")(0), dttemp)
  20379.                          RepeatDates(x) = dttemp.lslocaltime
  20380.                          RepeatIds(x) = child.UniversalId
  20381.                          x = x + 1
  20382.                     Case Else
  20383.                          If child.UniversalID <> repnote.UniversalID Then
  20384.                               Call CopyChanges(SaveValueList, False)                             
  20385.                               Call CopyChanges(SaveValueList2, True)
  20386.                               Call TIMEGetNotesFromLS(child.GetITemValue("StartDateTime")(0), date1)          
  20387.                               Call TIMEGetNotesFromLS(child.GetITemValue("EndDateTime")(0), date2)          
  20388.                               Set timerange.StartDateTime = date1
  20389.                               Set timerange.EndDateTime = date2
  20390.                               Set child.TimeRange = timerange
  20391.                               Set child.StartDate = date1
  20392.                               child.Save True, True, True
  20393.                          End If
  20394. 'these are reset so that we can post the new values on the parent (removing the values for deleted instances)                    
  20395.                          Call TIMEGetNotesFromLS(child.GetItemValue("StartDateTime")(0), dttemp)
  20396.                          RepeatDates(x) = dttemp.lslocaltime
  20397.                          RepeatIds(x) = child.UniversalId
  20398. 'tmpRepeatDates are posted to a reschedule notice
  20399.                          Redim Preserve tmpRepeatDates(y)               
  20400.                          Redim Preserve tmpRepeatIds(y)               
  20401.                          tmpRepeatDates(y) = RepeatDates(x)
  20402.                          tmpRepeatIds(y) = RepeatIds(x)
  20403.                          y = y + 1
  20404.                          x = x + 1
  20405.                     End Select
  20406.                Else
  20407. 'we want to rebuild the RepeatDates and RepeatIds lists with only valid ones (if the doc is deleted its date and ID are removed)                                                       
  20408.                     Call TIMEGetNotesFromLS(child.GetItemValue("StartDateTime")(0), dttemp)
  20409.                     RepeatDates(x) = dttemp.lslocaltime
  20410.                     RepeatIds(x) = child.UniversalId
  20411.                     x = x + 1
  20412.                End If
  20413.           End If
  20414. 'child will be nothing if we just removed it          
  20415.           If child Is Nothing Then
  20416.                Set child = tmpnote
  20417.           Else
  20418.                Set child = children.GetNextDocument(child)
  20419.           End If
  20420.      Wend
  20421.      
  20422.      If Action = "Delete" Then
  20423.           If ChangeWhich = "1" Then Call parent.Remove(True)
  20424.      Else
  20425.           repnote.tmpRepeatDates = tmpRepeatDates
  20426.           repnote.tmpRepeatIds = tmpRepeatIds
  20427.      End If
  20428.      
  20429.      If Not(parent Is Nothing) And RepeatDates(0) <> "" Then
  20430.           For r = 0 To Ubound(RepeatDates)
  20431.                If RepeatDates(r) = "" Then Exit For
  20432.           Next
  20433.           Redim Preserve RepeatDates(r-1)          
  20434.           Redim Preserve RepeatIds(r-1)          
  20435.           parent.RepeatDates = RepeatDates
  20436.           parent.RepeatIds = RepeatIds
  20437.           parent.save True, True, True   
  20438.      End If
  20439.      
  20440.      Exit Sub
  20441.      
  20442. ErrorRoutine:
  20443.      Messagebox Error & " (ModifyRecurring)"
  20444.      Exit Sub
  20445.      
  20446. End Sub
  20447. '++LotusScript Development Environment:2:2:CopyChanges:1:8
  20448. Sub CopyChanges(ValueList List As Variant, bNewItems As Integer)
  20449.      Dim rtitem As NotesRichTextItem
  20450.      Dim FieldName As String
  20451.      Dim Newvalue As Variant
  20452.      Dim itemCopy As NotesItem
  20453.      Dim dtAlarmTime As NotesDateTime
  20454.      Dim dt
  20455.      Dim x As Integer
  20456.      Dim lDifference As Long
  20457.      Dim dtREpStart As notesDateTime
  20458.      
  20459.      On Error Goto ErrorRoutine
  20460.      
  20461.      ' Enumerate the original values
  20462.      Forall OldValue In ValueList
  20463.           FieldName = Listtag(OldValue)
  20464.           NewValue = repnote.GetItemValue(FieldName)
  20465.           If Lcase(FieldName) = "body" Then
  20466.                Set rtitem = repnote.GetFirstItem("body")
  20467.                Call child.RemoveItem("body")
  20468.                If Not(rtitem Is Nothing) Then Call rtitem.CopyItemToDocument(child,"body")
  20469.           Elseif Lcase(FieldName) = "statusupdate" Then
  20470. 'we don't want to do anything with this field               
  20471.           Else
  20472.                ' Only perform the comparison for existing items; new items should be appended
  20473.                If Not(bNewItems) Then
  20474.                     If Cstr(NewValue(0)) <> Cstr(OldValue(0)) Then
  20475.                          Select Case Lcase(FieldName)
  20476. 'dates need to be adjusted (other things just get replaced)                        
  20477.                          Case "startdatetime", "calendardatetime", "enddatetime"
  20478.                               Call UpdateDateTimeValue(OldValue(0), NewValue(0), FieldName)
  20479.                          Case "$alarmtime"
  20480.                          ' If the new value is "", then we need to remove the item from the repeat instance
  20481.                               If Len(Newvalue(0)) = 0 Then 
  20482.                                    Call child.RemoveItem("$alarmtime")
  20483.                               Else
  20484.                                    Call UpdateDateTimeValue(OldValue(0), NewValue(0), FieldName)
  20485.                               End If
  20486.                          Case "sendto", "copyto", "resources", "requiredresources","statusupdate"
  20487.                          'we don't want to copy these fields
  20488.                          Case "$alarmoffset"
  20489.                               If Len(NewValue(0)) = 0 Then 
  20490.                                    Call child.RemoveItem(FieldName)
  20491.                               Else
  20492.                                    Set itemCopy = repnote.GetFirstitem(FieldName)
  20493.                                    If Not(itemCopy Is Nothing) Then Call itemCopy.CopyItemToDocument(child, FieldName)
  20494.                               End If
  20495.                          Case Else
  20496. 'The other fields can simply be copied over                    
  20497.                               Set itemCopy = repnote.GetFirstitem(FieldName)
  20498.                               If Not(itemCopy Is Nothing) Then 
  20499.                                    Call child.RemoveItem(FieldName)
  20500.                                    Call itemCopy.CopyItemToDocument(child, FieldName)
  20501.                               End If
  20502.                          End Select
  20503.                     End If
  20504.                Else
  20505.                     If (Lcase(FieldName) = "$alarmtime") Then
  20506.                          Call TIMEGetNotesFromLS(repnote.GetItemValue("StartDateTime")(0), dtRepStart)
  20507.                          Call TIMEGetNotesFromLS(NewValue(0), dtAlarmTime)
  20508.                          lDifference = dtAlarmTime.TimeDifference(dtRepStart)
  20509.                          Call TIMEGetNotesFromLS(child.GetItemValue("StartDateTime")(0), dtRepStart)
  20510.                          Call dtRepStart.AdjustSecond(lDifference, True)
  20511.                          Call child.ReplaceItemValue(FieldName, dtRepStart.LSLocalTime)
  20512.                     Else
  20513.                          Set itemCopy = repnote.GetFirstitem(FieldName)
  20514.                          If Not(itemCopy Is Nothing) Then Call itemCopy.CopyItemToDocument(child, FieldName)                         
  20515.                     End If
  20516.                End If
  20517.           End If
  20518.      End Forall
  20519.      
  20520.      Exit Sub
  20521.      
  20522. ErrorRoutine:
  20523.      Messagebox Error & " (CopyChanges)"
  20524.      Exit Sub
  20525.      
  20526. End Sub
  20527. '++LotusScript Development Environment:2:2:BuildRepeatDates:1:8
  20528. Sub BuildRepeatDates
  20529.      Dim x As Integer
  20530.      Dim TargetWeek As Variant
  20531.      Dim FirstDay As Integer
  20532.      Dim RepeatAdjust As Variant
  20533.      Dim i As Integer
  20534.      Dim t As Integer
  20535.      Dim CurrentMonth As Integer
  20536.      Dim DatePortion As Variant
  20537.      Dim TimePortion As Variant
  20538.      Dim WeekendDay As Integer
  20539.      Dim WeekendAdjust As Integer
  20540.      Dim bAdjustBack As Integer
  20541.      
  20542. 'this only happens on a new doc so note = repnote = parent     
  20543.      
  20544.      On Error Goto ErrorRoutine
  20545.      
  20546. Assumes the following fields exist on the form:
  20547.    RepeatUnit - Daily(D), Weekly(W), MonthlyByDate(MD), MonthlyByDay(MP), Yearly(YD), Custom(C)
  20548.    RepeatInterval - 1, 2, 3.... for every, every other, every 3rd,...
  20549.    RepeatAdjust - if unit = W then 0, 1..6 representing days of the week
  20550.    StartDate
  20551.    RepeatHow - Until (U) or For (F)
  20552.    RepeatFor - a number of units
  20553.    RepeatForUnit - the unit used in RepeatFor (D, W, M, Y)
  20554.    RepeatUntil - a date
  20555.    RepeatWeekends - Don'tMove(D), MoveToFriday(F), MoveToMonday(M), MoveToNearestWeekday(N), Delete(X)
  20556. NOTE:  In some instances, we create an instance for StartDateTime then the number of occurances specified in RepeatFor.
  20557.    For example if StartDateTime is a Monday and you indicated that you wanted to repeat every Thursday for 5 weeks
  20558.    we create an instance for the Monday and 5 Thursdays.  But if you say you want to repeat every Thursday,
  20559.    and StartDateTime is the first of those Thursdays we need to subtract 1 from RepeatFor so we don't create an extra instance.
  20560. %ENDREM
  20561.      
  20562. 'Remove existing dates - replace with new item which we are about to populate
  20563.      If note.HasItem("RepeatDates") Then note.RemoveItem("RepeatDates")
  20564.      Set item = New NotesItem(note, "RepeatDates", Date)
  20565. 'setting RepeatStartDate = StartDateTime ensures that the start time will be accurare
  20566.      note.RepeatStartDate = note.StartDateTime     
  20567. 'date1 refers to RepeatStartDate.  date2 is used to generate the RepeatDates list          
  20568.      Call TIMEGetNotesFromLS(note.GetITemValue("RepeatStartDate")(0), date1)          
  20569. 'This clears out any existing values     
  20570.      x = 1     
  20571.      Redim DateList(x)
  20572.      DateList(0) = date1.LSLocalTime
  20573.      TargetWeek = ""
  20574.      
  20575. 'Get the number of days to adjust by
  20576.      Select Case note.RepeatUnit(0)
  20577.      Case "D" '(Daily)
  20578.           Adjustment = Cint(note.RepeatInterval(0))
  20579.           Call TIMEGetNotesFromLS(note.GetITemValue("RepeatStartDate")(0), date2)          
  20580.           Call date2.AdjustDay(Adjustment,True)
  20581.           bAdjustBack = True          
  20582.           Gosub BuildDateList
  20583.      Case "W" '(Weekly)
  20584. 'Get day of the week of startdate (LotusScript counts the days as 1-7)
  20585.           FirstDay = Weekday(date1.LSLocalTime) - 1
  20586. 'If the start day is after the day we want the event to occur, adjust to next week
  20587.           RepeatAdjust = note.RepeatAdjust
  20588.           Redim DayList(Ubound(RepeatAdjust))
  20589.           Adjustment = Cint(note.RepeatInterval(0)) * 7
  20590.           For i = 0 To Ubound(RepeatAdjust)
  20591.                Call TIMEGetNotesFromLS(note.GetITemValue("RepeatStartDate")(0), date2)          
  20592.                DayList(i) = Cint(RepeatAdjust(i))              
  20593.                Select Case DayList(i)
  20594.                Case FirstDay
  20595.                     Call date2.AdjustDay(Adjustment,True)
  20596.                     bAdjustBack = True                    
  20597.                Case Is < FirstDay
  20598.                     Call date2.AdjustDay(7 - (FirstDay - DayList(i)), True)
  20599.                     bAdjustBack = True
  20600.                Case Is > FirstDay
  20601.                     Call date2.AdjustDay(DayList(i) - FirstDay,True)
  20602.                     bAdjustBack = False
  20603.                End Select
  20604.                Gosub BuildDateList
  20605.           Next
  20606.      Case "MD" '(Monthly by Date)
  20607.           FirstDay = Cint(Day(date1.LSLocalTime))
  20608.           RepeatAdjust = note.RepeatAdjust
  20609.           Redim DayList(Ubound(RepeatAdjust))
  20610.           Adjustment = Cint(note.RepeatInterval(0))
  20611.           For i = 0 To Ubound(DayList)
  20612.                Call TIMEGetNotesFromLS(note.GetITemValue("RepeatStartDate")(0), date2)          
  20613.                DayList(i) = Cint(RepeatAdjust(i))
  20614.                Select Case DayList(i)
  20615.                Case FirstDay
  20616.            '         Call date2.AdjustMonth(Adjustment)
  20617.                     bAdjustBack = True                    
  20618.                Case Is < FirstDay
  20619. 'adjust back to the correct day                    
  20620.                     Call date2.AdjustDay(-1*(FirstDay - DayList(i)),True)
  20621. 'adjust that day to next month
  20622.                     Call date2.AdjustMonth(Adjustment,True)
  20623.                     bAdjustBack = True
  20624.                Case Is > FirstDay
  20625.                     Call date2.AdjustDay(DayList(i) - FirstDay,True)
  20626.                     If Cint(Day(date2.LSLocalTime)) <> FirstDay Then
  20627.                          Call date2.AdjustDay(FirstDay - DayList(i),True)
  20628.                     End If
  20629.                     bAdjustBack = False                    
  20630.                End Select
  20631.                Gosub BuildDateList
  20632.           Next
  20633.      Case "MP" '(Monthly by Day)
  20634. 'Get day of the week of startdate (LotusScript counts the days as 1-7)
  20635.           FirstDay = Cint(Weekday(date1.LSLocalTime) - 1)
  20636. 'RepeatAdjust is stored as Week.Day          
  20637.           RepeatAdjust = note.RepeatAdjust
  20638.           Redim DayList(Ubound(RepeatAdjust))
  20639.           Redim WeekList(Ubound(RepeatAdjust))
  20640. 'Create 2 variant arrays, one for weeks and one for days          
  20641.           For t = 0 To Ubound(DayList)
  20642.                DayList(t) = Cint(Right(RepeatAdjust(t), 1))
  20643.                WeekList(t) = Cint(Left(RepeatAdjust(t), 1))
  20644.           Next
  20645.           Adjustment = Cint(note.RepeatInterval(0))
  20646.           For i = 0 To Ubound(RepeatAdjust)
  20647.                Call TIMEGetNotesFromLS(note.GetITemValue("RepeatStartDate")(0), date2)          
  20648.     'Adjust to the appropriate day
  20649.                Select Case DayList(i)
  20650.                Case Is < FirstDay
  20651.                     Call date2.AdjustDay(7 - (FirstDay - DayList(i)),True)
  20652.                     bAdjustBack = True
  20653.                Case Is > FirstDay
  20654.                     Call date2.AdjustDay(DayList(i) - FirstDay,True)
  20655.                     bAdjustBack = False
  20656.                Case FirstDay
  20657.                     bAdjustBack = True
  20658.                End Select
  20659. 'Get the week number this date is in
  20660.                If Day(date2.LSLocalTime) Mod 7 > 0 Then
  20661.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7) + 1
  20662.                Else
  20663.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7)
  20664.                End If 
  20665.                CurrentMonth = Month(date2.LSLocalTime)
  20666.                Do Until WeekNbr = WeekList(i)
  20667.                     Call date2.AdjustDay(7,True)
  20668.                     If Day(date2.LSLocalTime) Mod 7 > 0 Then
  20669.                          WeekNbr = Int(Day(date2.LSLocalTime) / 7) + 1
  20670.                     Else
  20671.                          WeekNbr = Int(Day(date2.LSLocalTime) / 7)
  20672.                     End If
  20673.                     If WeekList(i) = 5 And CurrentMonth <> Month(date2.LSLocalTime) Then
  20674.                          WeekNbr = 5
  20675.                          Call date2.AdjustDay(-7,True)
  20676.                     End If
  20677.                Loop
  20678.                TargetWeek = WeekList(i)
  20679.                Gosub BuildDateList
  20680.           Next
  20681.      Case "YD" '(Yearly)
  20682.           Adjustment = Cint(note.RepeatInterval(0))
  20683.           Call TIMEGetNotesFromLS(note.GetITemValue("RepeatStartDate")(0), date2)          
  20684.           Call date2.AdjustYear(Adjustment,True)
  20685.           bAdjustBack = True          
  20686.           Gosub BuildDateList
  20687.      Case "C"
  20688.      End Select
  20689.      
  20690.      x = Ubound(DateList)
  20691.      If DateList(x) = "" Then Redim Preserve DateList(x-1)
  20692.      note.RepeatDates = DateList
  20693.      Exit Sub
  20694.      
  20695. BuildDateList:
  20696.      Dim dtDateOnly As NotesDateTime
  20697.      Dim dtTimeOnly As NotesDateTime
  20698. 'Set dateitem = the last repeat date     
  20699.      If note.RepeatHow(0) = "U" Then
  20700.           Call TIMEGetNotesFromLS(note.GetItemValue("RepeatUntil")(0), dtDateOnly)
  20701.           Call TIMEGetNotesFromLS(note.GetITemValue("StartDateTime")(0), dtTimeOnly)          
  20702.           Set dateItem = New NotesDateTime(dtDateOnly.DateOnly & " " & dtTimeonly.Timeonly)
  20703. 'reset the time portion of RepeatUntil          
  20704.           Set note.RepeatUntil = dateItem
  20705.      Else
  20706. 'RepeatHow = "F"          
  20707.           Call TIMEGetNotesFromLS(note.GetITemValue("RepeatStartDate")(0), dateitem)          
  20708.           Select Case note.RepeatForUnit(0)
  20709.           Case "D"
  20710.                Call dateitem.AdjustDay(note.RepeatFor(0),True)
  20711.           Case "W"
  20712.                Call dateitem.AdjustDay(note.RepeatFor(0) * 7,True)
  20713.           Case "M"
  20714.                Call dateitem.AdjustMonth(note.RepeatFor(0),True)
  20715.           Case "Y"
  20716.                Call dateitem.AdjustYear(note.RepeatFor(0),True)
  20717.           End Select
  20718.           If (bAdjustBack) Then
  20719.                Select Case note.RepeatUnit(0)
  20720.                Case "D"
  20721.                     Call dateitem.AdjustDay(-1,True)
  20722.                Case "W"
  20723.                     Call dateitem.AdjustDay(-7,True)
  20724.                Case "MD","MP"
  20725.                     Call dateitem.AdjustMonth(-1,True)
  20726.                Case "YD"
  20727.                     Call dateitem.AdjustYear(-1,True)
  20728.                End Select
  20729.           End If
  20730.      End If
  20731. 'dateitem is the until date and date2 is the date we're comparing it against
  20732. 'Add the correct number of days and add to the array
  20733.      Do While dateItem.TimeDifference(date2) => 0
  20734. 'D means do not move          
  20735.           If note.RepeatWeekends(0) <> "D" Then
  20736.                Do
  20737.                     WeekendDay = Weekday(date2.LSLocalTime)
  20738.                     If WeekendDay = 1 Or WeekendDay = 7 Then
  20739.                          Select Case note.RepeatWeekends(0)
  20740.                          Case "F"   'Move to Friday
  20741.                               If WeekendDay = 1 Then
  20742.                                    WeekendAdjust = 2
  20743.                               Else
  20744.                                    WeekendAdjust = 1
  20745.                               End If
  20746.                               Call date2.AdjustDay(-1*WeekendAdjust,True)
  20747. 'if the Friday is already on the list then add back the days you just subtracted, plus the normal adjustment                                   
  20748.                               If DateList(x-1) <> date2.LSLocalTime Then
  20749.                                    Redim Preserve DateList(x)
  20750.                                    DateList(x) = date2.LSLocalTime
  20751.                                    x = x + 1
  20752.                               End If
  20753.                               Call date2.AdjustDay(WeekendAdjust,True)
  20754.                               Call NextAdjustment(x, TargetWeek)
  20755.                          Case "M"   'Move to Monday
  20756.                               If WeekendDay = 1 Then
  20757.                                    WeekendAdjust = 1
  20758.                               Else
  20759.                                    WeekendAdjust = 2
  20760.                               End If
  20761.                               Call date2.AdjustDay(WeekendAdjust,True)
  20762. 'Add Monday to DateList
  20763.                               Redim Preserve DateList(x)
  20764.                               DateList(x) = date2.LSLocalTime
  20765.                               x = x + 1
  20766. 'Go back to the day you moved to Monday                              
  20767.                               Call date2.AdjustDay(-1 * WeekendAdjust,True)
  20768.                               Call NextAdjustment(x, TargetWeek)
  20769.                          Case "N"   'Move to the nearest weekday
  20770.                               If WeekendDay = 1 Then
  20771.                                    WeekendAdjust = 1
  20772.                               Else
  20773.                                    WeekendAdjust = -1
  20774.                               End If
  20775.                               Call date2.AdjustDay(WeekendAdjust,True)
  20776. 'Add the Friday or Monday to DateList
  20777.                               If DateList(x-1) <> date2.LSLocalTime Then
  20778.                                    Redim Preserve DateList(x)
  20779.                                    DateList(x) = date2.LSLocalTime
  20780.                                    x = x + 1
  20781.                               End If
  20782.                               Call date2.AdjustDay(-1 * WeekendAdjust,True)
  20783.                               Call NextAdjustment(x, TargetWeek)
  20784.                          Case "X"   'Delete (don't create an instance for that one)
  20785.                               Call NextAdjustment(x, TargetWeek)
  20786.                          End Select
  20787.                     End If
  20788.                     WeekendDay = Weekday(date2.LSLocalTime)
  20789.                Loop Until WeekendDay > 1 And WeekendDay < 7
  20790.           End If   'End of Weekend processing
  20791. 'The weekend adjustment might have adjusted us beyond the until date          
  20792.           If dateItem.TimeDifference(date2) => 0 Then
  20793.                Redim Preserve DateList(x)
  20794.                DateList(x) = date2.LSLocalTime
  20795.                If DateList(x) <> DateList(x-1) Then x = x + 1
  20796.                If note.RepeatUnit(0) = "MD" Then
  20797.                     Call NextAdjustment(i, TargetWeek)
  20798.                Else
  20799.                     Call NextAdjustment(x, TargetWeek)
  20800.                End If
  20801.           End If
  20802.           Loop   'this Loops until we've reached the date when we want to stop repeating
  20803.           
  20804.           Return
  20805.           
  20806. ErrorRoutine:
  20807.           Messagebox Error & " (BuildRepeatDates)"
  20808.           Exit Sub
  20809.           
  20810. End Sub
  20811. '++LotusScript Development Environment:2:2:NextAdjustment:1:8
  20812. Sub NextAdjustment(x, TargetWeek)
  20813.      Dim CurrentMonth As Integer
  20814.      Dim nDayOfMonth As Integer
  20815.      Dim vLSDate As Variant
  20816.      
  20817.      On Error Goto ErrorRoutine
  20818.      
  20819.      Select Case note.RepeatUnit(0)
  20820.      Case "D", "W"
  20821.           Call date2.AdjustDay(Adjustment,True)
  20822. 'If you already have one for that day adjust again                                   
  20823.           If DateList(x-1) = date2.LSLocalTime Then Call date2.AdjustDay(Adjustment,True)
  20824.      Case "MD"
  20825.            ' If the current day < the day we want, see if that day exists in this month
  20826.           vLSDate = date2.LSlocalTime
  20827.           
  20828.           If Day(vLSDate) < DayList(x) Then
  20829.                CurrentMonth = Month(vLSDate)
  20830.                nDayOfMonth = Day(vLSDate)
  20831.                Call date2.AdjustDay(DayList(x) - nDayOfMonth, True)
  20832.                ' if the month is not the month we were just in, adjust back
  20833.                If CurrentMonth <> Month(date2.LSLocalTime) Then
  20834.                     Call date2.AdjustDay(nDayOfMonth - DayList(x), True)
  20835.                Else
  20836.                     ' We were successful; return back
  20837.                     Exit Sub
  20838.                End If
  20839.           End If
  20840.           
  20841.           Call date2.AdjustMonth(Adjustment,True)
  20842.           ' Some months do not have the day we are looking for
  20843.           If (DayList(x) > 28) Then
  20844.                CurrentMonth = Month(date2.LSLocalTime)
  20845.                nDayOfMonth = Day(date2.LSLocalTime)
  20846.                While (nDayOfMonth <> DayList(x))
  20847.                     Call date2.AdjustDay(DayList(x) - nDayOfMonth,True)
  20848.                          ' If we crossed over into the next month, adjust back and add 1 month
  20849.                     If (CurrentMonth <> Month(date2.LSLocalTime)) Then
  20850.                          Call date2.AdjustDay(nDayOfMonth - DayList(x),True)
  20851.                          Call date2.AdjustMonth(Adjustment,True)
  20852.                     End If
  20853.                     CurrentMonth = Month(date2.LSLocalTime)
  20854.                     nDayOfMonth = Day(date2.LSLocalTime)                    
  20855.                Wend
  20856.           End If
  20857.      Case "MP"
  20858.           CurrentMonth = Month(date2.LSLocalTime) + 1
  20859.           If (CurrentMonth > 12) Then CurrentMonth = CurrentMonth - 12
  20860.           Do
  20861.                Call date2.AdjustDay(7,True)
  20862.                If Day(date2.LSLocalTime) Mod 7 > 0 Then
  20863.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7) + 1
  20864.                Else
  20865.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7)
  20866.                End If
  20867.                If TargetWeek = 5 And CurrentMonth <> Month(date2.LSLocalTime) Then
  20868.                     WeekNbr = 5
  20869.                     Call date2.AdjustDay(-7,True)
  20870.                End If
  20871.           Loop Until WeekNbr = TargetWeek
  20872.      Case "YD"
  20873.           Call date2.AdjustYear(Adjustment,True)
  20874.      End Select
  20875.      
  20876.      Exit Sub
  20877.      
  20878. ErrorRoutine:
  20879.      Messagebox Error & " (NextAdjustment)"
  20880.      Exit Sub
  20881.      
  20882. End Sub
  20883. '++LotusScript Development Environment:2:1:ProcessThisDoc:1:8
  20884. Function ProcessThisDoc(dtBase As NotesDateTime) As Integer
  20885.      
  20886.      On Error Goto ErrorRoutine
  20887.      
  20888.      Select Case ChangeWhich
  20889.      Case "0"
  20890.           Gosub GetDates
  20891.           If dtBase.TimeDifference(date2) = 0 Then ProcessThisDoc = True
  20892.      Case "1"
  20893.           ProcessThisDoc = True
  20894.      Case "2"
  20895.           Gosub GetDates
  20896.           If dtBase.TimeDifference(date2) >= 0 Then ProcessThisDoc = True
  20897.      Case "3"
  20898.           Gosub GetDates
  20899.           If dtBase.TimeDifference(date2) <= 0 Then ProcessThisDoc = True
  20900.      End Select
  20901.      
  20902.      Exit Function
  20903.      
  20904. GetDates:
  20905. 'we don't want to get the dates unless we need to check them     
  20906.      
  20907.      Call TIMEGetNotesFromLS(child.GetITemValue("StartDateTime")(0), date2)          
  20908.      Return
  20909.      
  20910. ErrorRoutine:
  20911.      ProcessThisDoc = False
  20912.      Exit Function
  20913.      
  20914. End Function
  20915. '++LotusScript Development Environment:2:2:GetModifiedSettings:1:8
  20916. Sub GetModifiedSettings
  20917.      If repnote.HasItem("RescheduleWhich") Then
  20918.           ChangeWhich = repnote.RescheduleWhich(0)
  20919.      Else
  20920.           If (QueriedForChanges) Then Exit Sub
  20921.           CancelChange = False
  20922.           If Not ws.DialogBox("(ChangeRepeating)", True, True, False, False, False, False, "Change Repeating", repnote) Then
  20923.                CancelChange = True     
  20924.                QueriedForChanges = False
  20925.                Exit Sub
  20926.           Else
  20927.                ChangeWhich = repnote.ChangeWhich(0)
  20928.                repnote.tmpRescheduleWhich = ChangeWhich
  20929.                repnote.RemoveItem("ChangeWhich")
  20930.                QueriedForChanges = True
  20931.           End If
  20932.      End If
  20933. End Sub
  20934. '++LotusScript Development Environment:2:2:UpdateDateTimeValue:1:8
  20935. Sub UpdateDateTimeValue(OldValue As Variant, NewValue As Variant, FieldName As String)
  20936.      Dim TotalDif As Long
  20937.      Dim secdif As Long
  20938.      Dim adjustmin As Long
  20939.      
  20940.      'date1 is old date                    
  20941.      Call TIMEGetNotesFromLS(OldValue, date1)          
  20942. 'date2 is new date                    
  20943.      Call TIMEGetNotesFromLS(NewValue, date2)          
  20944.      TotalDif = date2.TimeDifference(date1)
  20945.      AdjustDays = Fix(TotalDif / 86400)
  20946.      SecDif = TotalDif Mod 86400
  20947.      AdjustMin = Fix(SecDif / 60)
  20948.      Set item = child.GetFirstItem(FieldName)
  20949.      If Not(item Is Nothing) Then
  20950.           Set dateItem = item.DateTimeValue
  20951.           Call dateItem.AdjustDay(adjustDays, True)
  20952.           Call dateItem.AdjustMinute(AdjustMin, True)
  20953.           Call child.ReplaceItemValue(FieldName, dateItem)
  20954.      End If
  20955. End Sub
  20956. O=Lotus Notes
  20957. O=Lotus Notes
  20958. PURSAFO
  20959. |.:#U
  20960. O=Lotus Notes
  20961. CN=Lotus Notes Template Development/O=Lotus Notes
  20962. PURSAFO
  20963. $ScriptLib
  20964. $ScriptLib_O
  20965. $TITLE
  20966. $Flags
  20967. $PublicAccess
  20968. '++LotusScript Development Environment:2:5:(Options):0:74
  20969. Option Public 
  20970. Use "SharedWorkflowLibrary"
  20971. Use "RepeatProcessing" 
  20972. '++LotusScript Development Environment:2:5:(Forward):0:1
  20973. Declare Sub Initialize
  20974. Declare Sub RemoveResources(doc As NotesDocument)
  20975. Declare Sub SelectResourcesToRemove
  20976. Declare Sub ProcessRepeatingResources(ChangeWhich As String,NoticeType As String,ResourceType As String)
  20977. Declare Sub InviteResources(doc As NotesDocument)
  20978. Declare Sub InviteRoom(doc As NotesDocument)
  20979. Declare Sub RescheduleResources(ResourceType As String,doc As NotesDocument)
  20980. Declare Sub CancelResources(ResourceType As String,doc As NotesDocument)
  20981. Declare Sub ProcessOneRepeatResource(NoticeType As String,ResourceType As String,doc As NotesDocument)
  20982. '++LotusScript Development Environment:2:5:(Declarations):0:10
  20983. 'ResourceProcessing: 
  20984. 'ResourceProcessing: 
  20985. '++LotusScript Development Environment:2:2:Initialize:1:10
  20986. Sub Initialize
  20987.      
  20988. End Sub
  20989. '++LotusScript Development Environment:2:2:RemoveResources:1:8
  20990. Sub RemoveResources(doc As NotesDocument)
  20991.     *This routine is called when resources need to be removed from a meeting
  20992.     *The doc parameter is the NotesDocument containing the resources that need to be removed
  20993.         - This allows us to pass in repeat instance documents 
  20994.     *This routine is not called for cancelling a meeting
  20995. %END REM
  20996.      
  20997. 'for each resource selected, send a cancel notice
  20998.      tmpResourcesRemoved = doc.tmpPeopleSelected
  20999.      If (tmpResourcesRemoved(0) <> "") Then 
  21000.           Forall Resources In tmpResourcesRemoved
  21001.                If (Cstr(Resources) = doc.Room(0)) Then 
  21002. 'this is a room
  21003.                     doc.Room = ""
  21004.                     doc.RoomRequired = ""
  21005.                     Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_ROOM,Cstr(Resources),doc)
  21006.                Else
  21007. 'this is a resource
  21008.                     Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_RESOURCE,Cstr(Resources),doc)      
  21009.                End If
  21010.                Call notice.Send(False)
  21011.           End Forall
  21012. 'update the resources field
  21013.           tmpUpdatedResources = Evaluate("@Replace(RequiredResources;tmpPeopleSelected;"""")",doc)
  21014.           doc.RequiredResources = tmpUpdatedResources
  21015.           Call MarkTempFields(doc)
  21016.           Call doc.Save(True,True,True)
  21017.      End If          
  21018. End Sub
  21019. '++LotusScript Development Environment:2:2:SelectResourcesToRemove:1:8
  21020. Sub SelectResourcesToRemove
  21021.     *This routine gets called whenever the user wants to remove a room/resource from a meeting
  21022.     *This routine displays a dialog box that allows the user to select which resources they want removed
  21023.     *After the user makes a selection, the RemoveResources routine is called to sent out notices
  21024. %END REM
  21025.      
  21026. 'build the list of resources to display in the dialog boc
  21027.      If(note.RoomRequired(0) = "1") And (note.Room(0) <> "") Then
  21028. 'if a room is required, then include the room
  21029.           tmpResourceList = Evaluate("@Trim(RequiredResources:Room)",note)
  21030.      Else
  21031.           tmpResourceList = Evaluate("@Trim(RequiredResources)",note)
  21032.      End If
  21033.      
  21034.      note.tmpPeopleList = tmpResourceList
  21035.      note.tmpheader = "Select the resources you want to remove:"
  21036.      
  21037.      If(ws.DialogBox("(PeopleListDlg)",True,True,False,False,False,False,"Remove Resources")) Then 
  21038.           If (note.HasItem("OrgRepeat")) Then Messagebox "The resources selected will be removed for the current repeat instance only.",0,"Status"
  21039. 'we can only remove resources from the current repeat instance
  21040.           Call RemoveResources(note)
  21041.           Call uidoc.Save
  21042.           Call MarkTempFields(note)
  21043.           Call note.Save(True,True,True)
  21044.      End If
  21045. End Sub
  21046. '++LotusScript Development Environment:2:2:ProcessRepeatingResources:1:8
  21047. Sub ProcessRepeatingResources(ChangeWhich As String,NoticeType As String,ResourceType As String)
  21048.     *This is the main processing logic for repeating meetings and resources
  21049.     *This routine is called once the user has performed some action (reschedule, cancel, invite)
  21050.      for a repeating meeting and has determined what repeat instances will be affected (Just this one, all, etc.)
  21051.     *This routine calls ProcessOneRepeatResource, which handles one repeat instance at a time, passing it the document
  21052.      object that represents the repeat instance and other parameters as well
  21053.     *Parameters 
  21054.         ChangeWhich is the repeat documents the user wants to modify (Just this one, all, etc.)
  21055.         NoticeType is the type of notice being sent
  21056.         ResourceType to determine if this is a room or a resource            
  21057. %END REM
  21058.      
  21059.      On Error Resume Next
  21060. 'determine which repeat instances to process
  21061.      Select Case ChangeWhich
  21062.      Case "0"
  21063. 'we only want to change this document
  21064.           Call ProcessOneRepeatResource(NoticeType,ResourceType,note)
  21065.      Case "1"
  21066. 'we want to change all instances
  21067.           Forall ids In parentnote.RepeatIds
  21068.                Set child = db.GetDocumentByUNID(Cstr(ids))
  21069.                If Not(child Is Nothing) Then Call ProcessOneRepeatResource(NoticeType,ResourceType,child)
  21070.           End Forall
  21071.      Case "2"
  21072. 'we want to invite all previous instances          
  21073.           Forall ids In parentnote.RepeatIds
  21074.                Set child = db.GetDocumentByUNID(Cstr(ids))               
  21075.                If Not(child Is Nothing) Then 
  21076.                     If (child.StartDateTime(0) <= note.StartDateTime(0)) Then Call ProcessOneRepeatResource(NoticeType,ResourceType,child)
  21077.                End If                    
  21078.           End Forall
  21079.      Case "3"
  21080. 'we want to invite all future instances          
  21081.           Forall ids In parentnote.RepeatIds
  21082.                Set child = db.GetDocumentByUNID(Cstr(ids))               
  21083.                If Not(child Is Nothing) Then 
  21084.                     If (child.StartDateTime(0) >= note.StartDateTime(0)) Then Call ProcessOneRepeatResource(NoticeType,ResourceType,child)
  21085.                End If                    
  21086.           End Forall
  21087.      End Select        
  21088. End Sub
  21089. '++LotusScript Development Environment:2:2:InviteResources:1:8
  21090. Sub InviteResources(doc As NotesDocument)
  21091.     *This routine gets  called whenever the user invites resources to a meeting
  21092.     *This routine is passed a document object for the meeting to be processed
  21093.      This allows us to handle repeating meetings
  21094.     *This function should only be called when the Resources item is not NULL
  21095.     *This function appends values in the Resources item to the RequiredResources item and
  21096.      sets the Resources item to NULL
  21097. %END REM
  21098.      
  21099.      tmpResourcesToInvite = doc.Resources
  21100.      tmpResourcesInvited = Evaluate("@Trim(RequiredResources)",doc)
  21101.      
  21102. 'make sure we have resources to process in case this function was accidentally called
  21103.      If (tmpResourcesToInvite(0) = "") Then Exit Sub
  21104. 'get the starting sequence of resources to be added to the array
  21105.      If (tmpResourcesInvited(0) = "") Then
  21106.           x = Ubound(tmpResourcesInvited)     
  21107.      Else
  21108.           x = Ubound(tmpResourcesInvited)+ 1     
  21109.      End If
  21110.      Redim Preserve tmpResourcesInvited(x + Ubound(tmpResourcesToInvite))
  21111.      
  21112.      Forall Resources In tmpResourcesToInvite
  21113.           Call CreateResourceNotice(ORS_MSGTYPE_INVITE,ORS_STATE_RESOURCE,Cstr(Resources),doc)          
  21114.           Call notice.Send(False)
  21115.           tmpResourcesInvited(x) = Resources
  21116.           x = x+1
  21117.      End Forall
  21118. 'update the required resources items
  21119.      doc.RequiredResources = tmpResourcesInvited     
  21120. 'remove the just invited resources
  21121.      doc.Resources = ""
  21122.      Call MarkTempFields(doc)
  21123.      Call doc.Save(True,True,True)
  21124. End Sub
  21125. '++LotusScript Development Environment:2:2:InviteRoom:1:8
  21126. Sub InviteRoom(doc As NotesDocument)
  21127.     *This routine gets  called whenever the user invites a room to a meeting
  21128.     *This routine is passed a document object for the meeting to be processed
  21129.      This allows us to handle repeating meetings
  21130.     *This function should only be called when the RoomToReserve item is not NULL
  21131.     *This function sets the RoomToReserve item to NULL
  21132. %END REM
  21133.      
  21134. 'make sure we have a room to process
  21135.      If (doc.Room(0) = "") Or Not(note.HasItem("Room")) Then Exit Sub
  21136. 'create the invitation
  21137.      Call CreateResourceNotice(ORS_MSGTYPE_INVITE,ORS_STATE_ROOM,doc.Room(0),doc)     
  21138.      doc.RoomToReserve = ""
  21139.      Call notice.Send(False)
  21140.      Call MarkTempFields(doc)
  21141.      Call doc.Save(True,True,True)
  21142. End Sub
  21143. '++LotusScript Development Environment:2:2:RescheduleResources:1:8
  21144. Sub RescheduleResources(ResourceType As String,doc As NotesDocument)
  21145.     *This routine is called whenever a room/resources need to be rescheduled due to a meeting change
  21146.     *The ResourceType determines whether we are rescheduling a room or a resource
  21147.     *The doc is the document object that is being rescheduled
  21148. %END REM
  21149.      
  21150.      Select Case ResourceType
  21151.      Case ORS_STATE_RESOURCE
  21152.           tmpResourcesInvited = doc.RequiredResources
  21153. 'if there are resources and this is a date change (we don't reschedule resources for room changes)
  21154.           If (tmpResourcesInvited(0) <> "") Then
  21155.                Forall Resources In tmpResourcesInvited
  21156.                     Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_RESOURCE,Cstr(Resources),doc)
  21157.                     Call notice.Send(False)
  21158.                End Forall
  21159.           End If                    
  21160.      Case ORS_STATE_ROOM
  21161.           If (doc.RoomRequired(0) = "1") And (doc.Room(0) <> "") Then
  21162.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM,doc.Room(0),doc)          
  21163.                Call notice.Send(False)     
  21164.           End If               
  21165.      End Select
  21166. End Sub
  21167. '++LotusScript Development Environment:2:2:CancelResources:1:8
  21168. Sub CancelResources(ResourceType As String,doc As NotesDocument)
  21169.     *This routine is called to whenver the user wants to cancel a meeting
  21170.     *The ResourceType determines whether we are rescheduling a room or a resource
  21171.     *The doc is the document object that is being cancelled
  21172. %END REM
  21173.      
  21174.      Select Case ResourceType
  21175.      Case ORS_STATE_RESOURCE
  21176.           tmpResourcesInvited = doc.RequiredResources
  21177.           If (tmpResourcesInvited(0) <> "") Then
  21178.                Forall Resources In tmpResourcesInvited
  21179.                     Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_RESOURCE,Cstr(Resources),doc)
  21180.                     Call notice.Send(False)
  21181.                End Forall
  21182.           End If
  21183.      Case ORS_STATE_ROOM
  21184.           If (doc.RoomRequired(0) = "1") And (doc.Room(0) <> "") Then
  21185.                Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_ROOM,doc.Room(0),doc)          
  21186.                Call notice.Send(False)     
  21187.           End If               
  21188.      End Select
  21189. End Sub
  21190. '++LotusScript Development Environment:2:2:ProcessOneRepeatResource:1:8
  21191. Sub ProcessOneRepeatResource(NoticeType As String,ResourceType As String,doc As NotesDocument)
  21192.     *This routine is called from ProcessRepeatingResources to handle repeating meetings
  21193.     *This routine in turn calls other functions based upon the action the user is taking
  21194.     *Parameters
  21195.                 NoticeType is the type of notice being sent
  21196.                 ResourceType determines if this is a room or resrouce
  21197.                 doc is the document object representing the meeting to process
  21198. %END REM
  21199.      
  21200.      Select Case NoticeType
  21201.      Case ORS_MSGTYPE_INVITE
  21202. 'we are inviting a room/resources
  21203.           If (ResourceType = ORS_STATE_RESOURCE) Then
  21204.                Call InviteResources(doc)
  21205.           Else
  21206.                Call InviteRoom(doc)
  21207.           End If
  21208.      Case ORS_MSGTYPE_RESCHEDULE
  21209. 'the meeting is being rescheduled
  21210.           Call RescheduleResources(ResourceType,doc)
  21211.      Case ORS_MSGTYPE_CANCEL
  21212. 'the meeting is being cancelled
  21213.           Call CancelResources(ResourceType,doc)
  21214.      Case "Remove"
  21215. 'we are removing a room/resources from the meeting
  21216.           Call RemoveResources(doc)
  21217.      End Select
  21218. End Sub
  21219. Q\    JL    
  21220. RequiredResources
  21221. tmpPeopleSelected
  21222.     0S0E
  21223. RequiredResources
  21224.     0S0E
  21225. RequiredResources
  21226.     0S0E
  21227. RequiredResources
  21228.     0S0E
  21229. O=Lotus Notes
  21230. O=Lotus Notes
  21231. PURSAFO
  21232. |.:#U
  21233. O=Lotus Notes
  21234. CN=Lotus Notes Template Development/O=Lotus Notes
  21235. PURSAFO
  21236. $ScriptLib
  21237. $ScriptLib_O
  21238. $TITLE
  21239. $Flags
  21240. $PublicAccess
  21241. '++LotusScript Development Environment:2:5:(Options):0:74
  21242. Option Public
  21243. %INCLUDE "lsconst.lss"
  21244. %INCLUDE "lsxbeerr.lss"
  21245. '++LotusScript Development Environment:2:5:(Forward):0:1
  21246. Declare Sub UpdateTasks
  21247. Declare Sub CheckDueDate
  21248. Declare Sub CheckStartDate
  21249. '++LotusScript Development Environment:2:5:(Declarations):0:10
  21250. Dim s As NotesSession
  21251. Dim db As NotesDatabase
  21252. Dim view As NotesView
  21253. Dim note As NotesDocument
  21254. Dim reply As NotesDocument
  21255. Dim responses As NotesDocumentCollection
  21256. Dim dt As NotesDateTime
  21257. Dim nextnote As NotesDocument
  21258. Dim DueDate As Variant
  21259. Dim StartDate As Variant
  21260. '++LotusScript Development Environment:2:2:UpdateTasks:1:8
  21261. Sub UpdateTasks
  21262.      
  21263.      Set dt = New NotesDateTime(Today)
  21264.      
  21265.      Set s = New NotesSession
  21266.      Set db = s.CurrentDatabase
  21267.      Set view = db.GetView("($ToDo)")
  21268.      
  21269.      On Error Resume Next
  21270.      
  21271.      Set note = view.GetFirstDocument
  21272.      If note Is Nothing Then Exit Sub
  21273.      Set nextnote = view.GetNextDocument(note)
  21274.      If nextnote.Form(0) <> "Task" Then
  21275.           Do
  21276.                Set nextnote = view.GetNextDocument(nextnote)
  21277.           Loop Until (nextnote.Form(0) = "Task") Or (nextnote Is Nothing)     
  21278.      End If
  21279.      
  21280.      Do
  21281.           If note.Form(0) = "Task" Then
  21282.                If note.AssignState(0) = 2 Then
  21283.                     DoneCount = 0         
  21284.                     Set responses = note.Responses
  21285.                     If responses.Count > 0 Then
  21286.                          For r = 1 To responses.Count
  21287.                               Set reply = responses.GetNthDocument(r)
  21288.                               DueState = reply.DueState
  21289.                               If Val(DueState(0)) = 9 Then DoneCount = DoneCount + 1
  21290.                          Next
  21291.                          AssignedTo = note.AssignedTo
  21292.                          If DoneCount = Ubound(AssignedTo)  + 1 Then
  21293.                               note.AssignState = 9
  21294.                               note.DueState = 9
  21295.                               Call note.ReplaceItemValue("_ViewIcon", 82)
  21296.                               note.CompletedDateTime = dt.LSLocalTime
  21297.                          End If
  21298.                     End If
  21299.                End If
  21300.                If note.AssignState(0) < 8 Then
  21301.                     DueDate = note.DueDateTime
  21302.                     StartDate = note.StartDateTime
  21303.                     If StartDate(0) = "" Then
  21304.                          If DueDate(0) = "" Then
  21305.                               note.DueState = 1
  21306.                          Else
  21307.                               CheckDueDate
  21308.                          End If
  21309.                     Else
  21310.                          CheckStartDate
  21311.                          DueState = note.DueState
  21312.                          If DueDate(0) <> "" And DueState(0) <> 2 Then CheckDueDate
  21313.                     End If
  21314.                End If
  21315.                note.Save True, True, True
  21316.           End If
  21317.           Set note = nextnote         
  21318.           Do
  21319.                Set nextnote = view.GetNextDocument(nextnote)
  21320.           Loop Until (nextnote.Form(0) = "Task") Or (nextnote Is Nothing)     
  21321.      Loop Until (Err = lsERR_NOTES_DOC_NOTINVIEW) Or (note Is Nothing)
  21322.      
  21323. End Sub
  21324. '++LotusScript Development Environment:2:2:CheckDueDate:1:8
  21325. Sub CheckDueDate
  21326.      
  21327. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  21328.      Set dt2 = New NotesDateTime(DueDate(0))
  21329.      If dt.TimeDifference(dt2) > 0 Then 
  21330.           note.DueState = 0
  21331.      Else
  21332.           note.DueState = 1
  21333.      End If
  21334.      
  21335. End Sub
  21336. '++LotusScript Development Environment:2:2:CheckStartDate:1:8
  21337. Sub CheckStartDate
  21338.      
  21339. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  21340.      Set dt2 = New NotesDateTime(StartDate(0))
  21341.      If dt.TimeDifference(dt2) < 0 Then 
  21342.           note.DueState = 2
  21343.      Else
  21344.           note.DueState = 1
  21345.      End If
  21346.      
  21347. End Sub
  21348. :`6`6
  21349. "(&04
  21350. "($|5
  21351. (#h%86
  21352. H$H%<8
  21353. h$h&x8
  21354. $H(X9
  21355. &h'`;
  21356. '(.<=
  21357. ('H'x=
  21358. ((h-H?
  21359. (H)@@
  21360. H)H*PA
  21361. )(+4B
  21362. )h+dB
  21363. h*H-@C
  21364. ,h,8F
  21365. (,H/tF
  21366. (.H.<J
  21367. .h/\K
  21368. /(1lM
  21369. H1h1LP
  21370. 2$7XR
  21371. 9x:x:
  21372. $747 S    
  21373. 9}|T#
  21374. [$7KP6,89#
  21375. 8KP6,h9G$7#
  21376. 8KP6,h9G
  21377. 7K$7-
  21378. ^h:4C
  21379. ^L:K47P\:
  21380. ^x:K$7P
  21381. K$7Q\:
  21382. 8K$7P
  21383. 8K$7P
  21384. K$7Q\:
  21385. ^L:K$7P\:
  21386. 8KP6,h9G
  21387. 8,8<J(<
  21388. K$7Q\:
  21389. K$7Q\:
  21390. 8,8<Jh<
  21391. K$7Q\:
  21392. K$7Q\:
  21393. O=Lotus Notes
  21394. O=Lotus Notes
  21395. PURSAFO
  21396. |.:#U
  21397. O=Lotus Notes
  21398. CN=Lotus Notes Template Development/O=Lotus Notes
  21399. PURSAFO
  21400. $ScriptLib
  21401. $ScriptLib_O
  21402. $TITLE
  21403. $Flags
  21404. $PublicAccess
  21405. '++LotusScript Development Environment:2:5:(Options):0:74
  21406. Option Public 
  21407. Use "ObjectVariables"     
  21408. '++LotusScript Development Environment:2:5:(Forward):0:1
  21409. Declare Type NoticeInfo
  21410. Declare Type InviteeTable
  21411. Declare Sub Initialize
  21412. Declare Sub UpdateOriginalInvitation (orgnote As NotesDocument)
  21413. Declare Function CheckIfConflictExists As Integer
  21414. Declare Sub AddInviteeComment
  21415. Declare Sub CreateNoticeDocument(Subject As String,NoticeType As String,ViewIcon As Integer,Mode As Integer)
  21416. Declare Function GetContext As Integer
  21417. Declare Sub ResurrectParentDoc
  21418. Declare Sub CreateResourceNotice(NoticeType As String,ResourceType As String,ResourceName As String,doc As NotesDocument)
  21419. Declare Function IsRemoved(KeyValue As String,UserType As String) As Integer
  21420. Declare Function ProcessConflict(othernote As NotesDocument) As Integer
  21421. Declare Function CheckProfileTimes(doc As NotesDocument) As Integer
  21422. Declare Function GetSubjectText(userDate As Variant) As String
  21423. Declare Function GetContextSub ( targetnote As NotesDocument ) As Integer
  21424. Declare Sub DowngradeV5Invite(doc As NotesDocument)
  21425. '++LotusScript Development Environment:2:5:(Declarations):0:10
  21426. 'SharedWorkflowLibrary: 
  21427. 'SharedWorkflowLibrary: 
  21428. 'SharedWorkflowLibrary: 
  21429. Type NoticeInfo
  21430.      creationdate As Variant
  21431.      apptdate As Variant 'used by confirmation message
  21432.      appttime As Variant 'used by confirmation message
  21433.      sequencenum As Integer
  21434.      misc1 As String            'for invitee responses, this will be their name; for chair updates, this is the status
  21435.      action As String
  21436.      misc2 As String   'for invitee responses, this will be the delegees name; for chair updates, this is the document's unid   
  21437.      state As String     'for invitee responses, this will determine if a response is from a resource or not
  21438. End Type
  21439. Type InviteeTable
  21440.      CreationDate As Variant
  21441.      SequenceNum As Integer
  21442.      KeepPosted As Integer
  21443.      InviteeName As String
  21444.      Domain As String
  21445.      Status As String
  21446.      State As String
  21447.      Delegee As String
  21448. End Type
  21449. Dim OriginalRoom As String
  21450. Dim OriginalStartDate As Variant
  21451. Dim OriginalEndDate As Variant
  21452. Dim OriginalRequired As Variant
  21453. Dim OriginalOptional As Variant
  21454. Dim OriginalTimeRange As Variant
  21455. Dim OriginalType As String
  21456. Dim IsDateChange As Integer
  21457. Dim IsRoomChange As Integer
  21458. Dim OpenReschedule As Integer
  21459. Dim OpenRepeatParent As Integer
  21460. 'used by the noticeresponses and appointmentresponses libraries
  21461. Dim view As NotesView
  21462. Dim response As NotesDocument
  21463. Dim numResponses As Integer
  21464. Dim IsAgentProcessing As Integer
  21465. Const CS_INVITEE_INDEX = 10
  21466. Const ORG_STATUS_WAITING = "W"
  21467. '++LotusScript Development Environment:2:2:Initialize:1:10
  21468. Sub Initialize
  21469.      
  21470. End Sub
  21471. '++LotusScript Development Environment:2:2:UpdateOriginalInvitation:1:8
  21472. Sub UpdateOriginalInvitation (orgnote As NotesDocument)
  21473.     *This routine is called by several other routines to update a particular note (orgnote)
  21474.      whenever the user takes a specific action
  21475.     *Orgnote is the document object to be updated
  21476. %END REM
  21477.      Dim startdt As NotesDateTime
  21478.      Dim enddt As NotesDateTime
  21479.      Dim item As NotesItem
  21480.      
  21481.      On Error Goto ErrorRoutine
  21482.      
  21483.      If (orgnote Is Nothing) Then Exit Sub
  21484.      
  21485. 'the following are some changes we make regardless of the action being performed
  21486.      orgnote.StartDateTime = note.StartDateTime
  21487.      orgnote.EndDateTime = note.EndDateTime
  21488.      orgnote.Room = note.Room
  21489.      orgnote.StartDate = note.StartDate
  21490.      
  21491.      If IsWebClient Then 
  21492.           tmpFrom = notice.From
  21493.      Else
  21494.           tmpFrom = session.Username
  21495.           Call MarkTempFields(orgnote)
  21496.      End If
  21497.      
  21498.      Select Case note.tmpAction(0)
  21499.      Case "Accept","AddCalendar","PencilIn"
  21500. 'we are acceptring an invitation -> mark the document as an appointment
  21501.           orgnote.Form = "Appointment"
  21502.              Set trdr = session.CreateDateRange
  21503.           Call TIMEGetNotesFromLS(note.GetITemValue("StartDateTime")(0), startdt)          
  21504.           Call TIMEGetNotesFromLS(note.GetITemValue("EndDateTime")(0), enddt)          
  21505.              Set trdr.StartDateTime = startdt
  21506.              Set trdr.EndDateTime = enddt
  21507.              Set orgnote.TimeRange = trdr
  21508.           orgnote.CalendarDateTime = note.StartDateTime
  21509.           orgnote.StartDate = note.StartDate
  21510.           If (note.tmpAction(0) = "PencilIn") Then
  21511.                Call orgnote.ReplaceItemValue("$BusyPriority","2")
  21512.                orgnote.BookFreeTime = "1"
  21513.           Else            
  21514.                Call orgnote.ReplaceItemValue("$BusyPriority","1")
  21515.           End If
  21516.           orgnote.OrgTable = ORS_ITEM_CALENDAR
  21517.           orgnote.NoticeType = ORS_MSGTYPE_ACCEPT  
  21518.           If (orgnote.noteid <> note.noteid) Then
  21519.                Call orgnote.removeitem("RequiredAttendees")
  21520.                Call orgnote.removeitem("OptionalAttendees")
  21521.                Set item = note.getfirstitem("RequiredAttendees")
  21522.                If Not(item Is Nothing) Then
  21523.                     Call item.copyitemtodocument(orgnote, "")
  21524.                End If
  21525.                Set item = note.getfirstitem("OptionalAttendees")
  21526.                If Not(item Is Nothing) Then
  21527.                     Call item.copyitemtodocument(orgnote, "")
  21528.                End If
  21529.           End If           
  21530.           Call orgnote.ReplaceItemValue("_ViewIcon",158)
  21531.           If Not(orgnote.HasItem("RepeatDates") And orgnote.HasItem("OrgRepeat")) Then Call orgnote.ReplaceItemValue("$BusyName",Owner)
  21532.           orgnote.Subject = note.Topic
  21533. 'check to see if we should automatically set an alarm
  21534.           If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") And (profile.SetAlarmAppointment(0) = "1") Then
  21535.                Call orgnote.ReplaceItemValue("$Alarm",1)
  21536.                Call orgnote.ReplaceItemValue("$AlarmDescription",note.Topic)
  21537.                Call orgnote.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  21538.                If Not(orgnote.HasItem("RepeatIds")) Then Call orgnote.PutInFolder("$Alarms")
  21539.           Else
  21540.                Call orgnote.RemoveItem("$Alarm")
  21541.                Call orgnote.RemoveItem("$AlarmDescription")
  21542.                Call orgnote.RemoveItem("$AlarmOffset")               
  21543.           End If
  21544. 'if the autoprocessing agent is running, then we need to remove some fields
  21545.           If (IsAgentProcessing) Then
  21546.                Call orgnote.RemoveItem("MailOptions")
  21547.                Call orgnote.RemoveItem("SendTo")
  21548.           End If
  21549. 'if the profile says we shouldn't double book, then update the OrgDontDoubleBook item
  21550.           If (profile.CheckMeeting(0) = "1") Then orgnote.OrgDontDoubleBook = "1"
  21551. 'if the profile says hide new entries from public viewing, then remove the $PublicAccess bit
  21552.           If (profile.CalEntryHide(0) = "1") Then Call orgnote.RemoveItem("$PublicAccess")
  21553.           Call orgnote.ReplaceItemValue("$NoPurge",orgnote.EndDateTime(0))
  21554. 'update the original invitation only if this is a response document
  21555.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  21556.           Call orgnote.Save(True,True,True)
  21557.      Case "Decline"
  21558.           orgnote.Form = "Notice"
  21559.           orgnote.Subject = "Appointment Declined - " & note.Topic(0)          
  21560.           Call orgnote.ReplaceItemValue("_ViewIcon",84)
  21561.           orgnote.NoticeType = ORS_MSGTYPE_REJECT
  21562.           orgnote.From = tmpFrom
  21563.           orgnote.Principal = Owner
  21564.           orgnote.OrgTable = ""
  21565. 'the invitee might have accepted, so remove the calendar and update busy items
  21566.           Call orgnote.RemoveItem("CalendarDateTime")
  21567.           Call orgnote.ReplaceItemValue("$BusyPriority","2")
  21568. 'update the original invitation only if this is a response document
  21569.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  21570.           Call orgnote.Save(True,True,True)        
  21571.      Case "Delegate"
  21572.           orgnote.Form = "Notice"
  21573.           orgnote.Subject = "Appointment Delegated - " & note.Topic(0)
  21574.           Call orgnote.ReplaceItemValue("_ViewIcon",84)
  21575.           orgnote.NoticeType = ORS_MSGTYPE_DELEGATING
  21576.           orgnote.From = tmpFrom
  21577.           orgnote.Principal = Owner
  21578.           orgnote.OrgTable = ""          
  21579.           Call orgnote.RemoveItem("OrgState")
  21580. 'the invitee might have accepted, so remove the calendar and update busy items
  21581.           Call orgnote.RemoveItem("CalendarDateTime")
  21582.           Call orgnote.ReplaceItemValue("$BusyPriority","2")
  21583. 'update the original invitation only if this is a response document
  21584.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  21585.           Call orgnote.Save(True,True,True)       
  21586.      Case "CounterPropose"
  21587.           orgnote.NoticeType = ORS_MSGTYPE_COUNTER
  21588.           orgnote.Subject = "Appointment Change Proposal - " & note.Topic(0)
  21589.           orgnote.From = tmpFrom
  21590.           orgnote.Principal = Owner
  21591.           orgnote.ProposalSent = True
  21592.           Call orgnote.ReplaceItemValue("_ViewIcon",39)
  21593. 'update the original invitation only if this is a response document
  21594.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  21595.           Call orgnote.Save(True,True,True)
  21596.      Case "AcceptCounterProposal"
  21597.           orgnote.StartDate = note.NewDate          
  21598.           Set trdr = session.CreateDateRange
  21599.           trdr.Text = uidoc.FieldGetText("NewTimeRange")
  21600.           
  21601.           Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  21602.           Set enddt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.EndDateTime.TimeOnly)
  21603.           
  21604.           Set orgnote.StartDateTime = startdt
  21605.           Set orgnote.EndDateTime = enddt
  21606.           Set orgnote.TimeRange = trdr
  21607.           If (note.NewRoom(0) <> "") Then orgnote.Room = note.NewRoom          
  21608.           orgnote.CalendarDateTime = orgnote.StartDateTime
  21609.           orgnote.SequenceNum = orgnote.SequenceNum(0) + 1
  21610.           Call orgnote.ReplaceItemValue("$NoPurge",orgnote.EndDateTime(0))
  21611.           Call orgnote.Save(True,True,True)
  21612.      End Select
  21613.      Exit Sub
  21614.      
  21615. ErrorRoutine:
  21616.      Messagebox Error & " (UpdateOriginalInvitation)"
  21617.      Exit Sub
  21618. End Sub
  21619. '++LotusScript Development Environment:2:1:CheckIfConflictExists:1:8
  21620. Function CheckIfConflictExists As Integer
  21621.     *This function is called only if the user specifies conflict warnings in the profile
  21622.     *This function can be called when creation or accepting meeting documents
  21623.     *The AutoProcessNotices agent ALWAYS calls this routine
  21624.     *This routine determines if a meeting time fits within the profile settings and is available 
  21625. %END REM
  21626.      Dim calentries As NotesDocumentCollection
  21627.      Dim localView As NotesView
  21628.      Dim othernote As NotesDocument     
  21629.      Dim tr As NotesDateRange
  21630.      Dim sdt As NotesDateTime
  21631.      Dim edt As NotesDateTime
  21632.      Dim intl As NotesInternational
  21633.      Dim nstartitem As NotesItem     'note startdatetime item
  21634.      Dim nenditem As NotesItem      'note enddatetime item
  21635.      Dim ostartitem As NotesItem      'othernote startdatetime item
  21636.      Dim oenditem As NotesItem      'othernote enddatetime item
  21637.      Dim nstartdt As NotesDateTime
  21638.      Dim nenddt As NotesDateTime
  21639.      Dim ostartdt As NotesDateTime
  21640.      Dim oenddt As NotesDateTime
  21641.      
  21642. 'first, check the profile settings -> if there is a conflict in the profile, then we don't need to check with existing appointments
  21643. 'we only do this check if the autoprocessing agent is running     
  21644.      If (IsAgentProcessing) Then     
  21645.           If(CheckProfileTimes(note)) Then
  21646.                CheckIfConflictExists  = True
  21647.                Exit Function
  21648.           End If
  21649.      End If
  21650.      
  21651.      On Error Goto ErrorRoutine
  21652.      Set localView = db.GetView("Calendar")
  21653.      Set intl = session.International     
  21654.      CheckIfConflictExists = False
  21655. 'get all of the documents that fit under the invited day
  21656. 'othernote refers to existing appointments          
  21657.      Set nstartitem = note.GetFirstItem("StartDateTime")
  21658.      Set nenditem = note.GetFirstItem("EndDateTime")     
  21659.      Set sdt = New NotesDateTime(nstartitem.DateTimeValue.DateOnly & " 00" & intl.TimeSep & "00" & intl.TimeSep & "01")
  21660.    'if this is an event, use the enddatetime date
  21661.      If (note.AppointmentType(0) = "2") Then
  21662.           Set edt = New NotesDateTime(nenditem.DateTimeValue.DateOnly & " 23" & intl.TimeSep & "59" & intl.TimeSep & "59")
  21663.      Else
  21664.           Set edt = New NotesDateTime(nstartitem.DateTimeValue.DateOnly & " 23" & intl.TimeSep & "59" & intl.TimeSep & "59")
  21665.      End If   
  21666.      Set tr = session.CreateDateRange
  21667.      Set tr.StartDateTime = sdt
  21668.      Set tr.EndDateTime = edt
  21669.      Set nstartdt = New NotesDateTime(sdt.DateOnly & " " & nstartitem.DateTimeValue.TimeOnly)
  21670.      Set nenddt = New NotesDateTime(sdt.DateOnly & " " & nenditem.DateTimeValue.TimeOnly)
  21671.      
  21672. 'if the agent is running, we should mark the OrgDontDoubleBook item on the note  
  21673.      If (IsAgentProcessing) Then note.OrgDontDoubleBook = "1"
  21674.      Set calentries = localView.GetAllDocumentsByKey(tr, False)
  21675.      
  21676.      Set othernote = calentries.GetFirstDocument
  21677.      Do While Not(othernote Is Nothing)      
  21678.           If (othernote.Form(0) <> "Task") Then
  21679.                Set ostartitem = othernote.GetFirstItem("StartDateTime")
  21680. check to see if 
  21681.        the invited StartDateTime falls between a scheduled appointment, 
  21682.        the invited EndDateTime falls between a scheduled appointment, 
  21683.        the invitation surrounds an existing appointment
  21684. 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               
  21685. %END REM
  21686.                Set oenditem = othernote.GetFirstItem("EndDateTime")
  21687.                
  21688. 'if the other document is not busy (i.e. is PencilledIn), then we don't need to check it         
  21689.                If (othernote.BookFreeTime(0) <> "1") Then        
  21690.                     If(ProcessConflict(othernote)) Then               
  21691. 'we need to instantiate the date/time objects correctly
  21692. 'othernote could be an event so the date portion of StartDateTime and EndDateTime are incorrect, but NIF return them to us
  21693.                          Set ostartdt = New NotesDateTime(nstartdt.DAteOnly & " " & ostartitem.DateTimeValue.TimeOnly)
  21694.                          Set oenddt = New NotesDateTime(nstartdt.DAteOnly & " " & oenditem.DateTimeValue.TimeOnly)
  21695.                          
  21696.                          If ((nstartdt.TimeDifference(ostartdt) >= 0) And (oenddt.TimeDifference(nstartdt) > 0 )) Or _
  21697.                          ((nenddt.TimeDifference(ostartdt) > 0) And (oenddt.TimeDifference(nenddt) >= 0 )) Or _
  21698.                          ((ostartdt.TimeDifference(nstartdt) >= 0) And (nenddt.TimeDifference(oenddt) > 0 )) Then
  21699. 'if the autoprocessing agent is running, simply return
  21700.                               If (IsAgentProcessing) Then
  21701.                                    CheckIfConflictExists = True
  21702.                                    Exit Do
  21703.                               End If
  21704.                               If (note.Form(0) = "Appointment") Then
  21705.                                    MessageText$ = "Do you want to schedule this appointment anyway?"
  21706.                               Else
  21707.                                    MessageText$ = "Do you want to Accept anyway?"
  21708.                               End If
  21709.                               If Messagebox("There is already an appointment in this time slot. " & MessageText$, _
  21710.                               MB_YESNO, "Conflict") = IDNO Then 
  21711.                                    CheckIfConflictExists = True
  21712.                                    Exit Do                                                           'we exit so that we don't waste time iterating through the view
  21713.                               Else
  21714.                                    Exit Do                                                           'we exit so that we don't waste time iterating through the view
  21715.                               End If
  21716.                          End If
  21717.                     End If
  21718.                End If
  21719.           End If
  21720.           Set othernote = calentries.GetNextDocument(othernote)
  21721.      Loop     
  21722.      Exit Function
  21723.      
  21724. ErrorRoutine:
  21725.      Messagebox Error & " (CheckIfConflictExists)"
  21726.      Exit Function
  21727. End Function
  21728. '++LotusScript Development Environment:2:2:AddInviteeComment:1:8
  21729. Sub AddInviteeComment
  21730.     *This routine is called to include invitee's comments
  21731. %END REM
  21732.      
  21733.      notice.IncludeComment = "1"
  21734.      notice.Comments = note.Comments
  21735. End Sub
  21736. '++LotusScript Development Environment:2:2:CreateNoticeDocument:1:8
  21737. Sub CreateNoticeDocument(Subject As String,NoticeType As String,ViewIcon As Integer,Mode As Integer)
  21738.     *This routine creates the outgoing notice document, either from the chair to the invitee's 
  21739.      or from an invitee to a chair
  21740.     *This routine adds standard fields to the notice regardless of the type of notice
  21741.     *Parameters
  21742.                 Subject -> value of subject item
  21743.                 NoticeType -> type of notice being sent
  21744.                 ViewIcon -> icon to display in view
  21745.                 Mode -> 1 = chair is sending, 2 = invitee is sending
  21746. %END REM
  21747.      
  21748.      Dim ChairItem As NotesItem   
  21749.      Dim dummydoc As NotesDocument
  21750.      
  21751. 'create the notice object     
  21752.      Set notice = New NotesDocument(db)
  21753. 'determine the context of the current note
  21754.      Context = GetContext
  21755.      Select Case Context
  21756.      Case 1,3
  21757. '1 = non-repeat notice, 3 = repeat notice -> make the notice doc a response to the parentnote
  21758.           If(note.HasItem("ApptUNID")) Then
  21759.                If(note.ApptUNID(0) <> parentnote.UniversalID) Then
  21760.                     Set dummydoc = New NotesDocument(db)
  21761.                     dummydoc.UniversalID = note.ApptUNID(0)
  21762.                     Call notice.MakeResponse(dummydoc)
  21763.                     notice.ApptUNID = note.ApptUNID                    
  21764.                Else                    
  21765.                     Call notice.MakeResponse(parentnote)
  21766.                     notice.ApptUNID = parentnote.UniversalID                    
  21767.                End If
  21768.           Else
  21769.                Call notice.MakeResponse(parentnote)    
  21770.                notice.ApptUNID = parentnote.UniversalID                                   
  21771.           End If
  21772.      Case 2,4
  21773. '2 = repeat instance, 4 = non-repeat instance -> make the notice doc a response to the current note
  21774.           If(note.HasItem("ApptUNID")) Then
  21775.                If(note.ApptUNID(0) <> note.UniversalID) Then
  21776.                     Set dummydoc = New NotesDocument(db)
  21777.                     dummydoc.UniversalID = note.ApptUNID(0)
  21778.                     Call notice.MakeResponse(dummydoc)
  21779.                     notice.ApptUNID = note.ApptUNID                    
  21780.                Else                    
  21781.                     Call notice.MakeResponse(note)
  21782.                     notice.ApptUNID = note.UniversalID                    
  21783.                End If
  21784.           Else
  21785.                Call notice.MakeResponse(note)               
  21786.                notice.ApptUNID = note.UniversalID                   
  21787.           End If
  21788.      End Select
  21789.      
  21790.      Call notice.ReplaceItemValue("$RefOptions","1")
  21791. 'add default items regardless of notice type
  21792.      notice.Form = "Notice"
  21793.      notice.StartDate = note.StartDate
  21794.      notice.StartDateTime = note.StartDateTime
  21795.      notice.EndDateTime = note.EndDateTime
  21796.      notice.AppointmentType = "3"
  21797.      notice.SequenceNum = note.SequenceNum(0)
  21798.      notice.ExcludeFromView = "D"
  21799.      notice.Room = note.Room     
  21800.      notice.Principal = Owner
  21801.      notice.NoticeType = NoticeType
  21802.      notice.Broadcast = note.Broadcast
  21803. 'add the required attendees -> we need to know what context the current document is in
  21804. 'this is because non-repeat notices, repeat notices, and non-repeat appointments have this information
  21805. 'repeat instances need to get this info from their parent
  21806.      Select Case Context
  21807.      Case 1,3,4
  21808. '1 = non-repeat notice,3 = repeat notice,4 = non-repeat instance -> get the values from the current note
  21809.           notice.RequiredAttendees = note.RequiredAttendees
  21810.           notice.OptionalAttendees = note.OptionalAttendees
  21811.      Case 2
  21812. 'the repeat instance document does not have this information -> get it from the parent
  21813.           notice.RequiredAttendees = parentnote.RequiredAttendees
  21814.           notice.OptionalAttendees = parentnote.OptionalAttendees
  21815.      End Select
  21816.      Call notice.ReplaceItemValue("_ViewIcon",ViewIcon)
  21817.      If (note.HasItem("$PublicAccess")) Then Call notice.ReplaceItemValue("$PublicAccess","1")
  21818.      If note.HasItem("tmpRescheduleWhich") Then 
  21819.           If (NoticeType = ORS_MSGTYPE_STATUSUPDATE) Then
  21820.                notice.RescheduleWhich = "0" 'just this one
  21821.           Else
  21822.                notice.RescheduleWhich = note.tmpRescheduleWhich
  21823.           End If
  21824.      End If
  21825.      If (note.HasItem("OrgRepeat")) Then 
  21826.           notice.OrgRepeat = True
  21827.           notice.Broadcast = "1"
  21828.           notice.OriginalStartDate = OriginalStartDate
  21829.           notice.RepeatParentUNID = note.ParentDocumentUNID
  21830.      End If
  21831. 'add computed items
  21832.      If (mode = 1) Then
  21833. 'we are the chair sending this out
  21834.           notice.Topic = note.Subject
  21835.           Set startitem = note.GetFirstItem("StartDateTime")
  21836.           If (note.Room(0) <> "") Then               
  21837.                notice.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  21838.           Else
  21839.                notice.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  21840.           End If
  21841.           notice.Chair = Owner
  21842. 'for 4.51+, we only include the body field if the chair is sending the notice          
  21843.           If (note.HasItem("Body")) Then
  21844.                Set ChairItem = note.GetFirstItem("Body")     
  21845.                Call notice.CopyItem(ChairItem,"Body")
  21846.           End If          
  21847. 'we do not add the send to for chairs; this is upto the calling function
  21848.      Else
  21849. 'we are the invitee sending this out
  21850.           notice.Topic = note.Topic
  21851.           notice.Subject = Subject & " " & note.Topic(0)
  21852.           notice.Chair = note.Chair
  21853.           'if this is a delegation notice, include the body
  21854.           If (NoticeType = ORS_MSGTYPE_DELEGATE) Then
  21855.                If (note.HasItem("Body")) Then
  21856.                     Set ChairItem = note.GetFirstItem("Body")     
  21857.                     Call notice.CopyItem(ChairItem,"Body")
  21858.                End If
  21859.           End If          
  21860.      End If
  21861. End Sub
  21862. '++LotusScript Development Environment:2:1:GetContext:1:8
  21863. Function GetContext As Integer
  21864.      GetContext = GetContextSub (note)
  21865. End Function
  21866. '++LotusScript Development Environment:2:2:ResurrectParentDoc:1:8
  21867. Sub ResurrectParentDoc
  21868.     *This routine is called whenever a child document is opened and the parentnote cannot be found
  21869.     *This routine creates a parent document and uses the child document for certain info
  21870. %END REM
  21871.      Dim body As NotesItem
  21872.      Dim edt As NotesDateTime
  21873.      Dim sdt As NotesDateTime
  21874.      
  21875.      Set parentnote = New NotesDocument(db)
  21876.      
  21877.      If (note.HasItem("Body")) Then
  21878.                 Set body = note.GetFirstItem("Body")
  21879.           Call parentnote.CopyItem(body,"Body")
  21880.      End If
  21881. 'add standard fields     
  21882.      parentnote.UniversalID = note.ParentDocumentUNID     
  21883.      parentnote.StartDate = note.StartDate
  21884.      parentnote.StartDateTime = note.StartDateTime
  21885.      parentnote.EndDateTime = note.EndDateTime
  21886.      parentnote.AppointmentType = "3"
  21887.      parentnote.Chair = note.Chair
  21888.      parentnote.RequiredAttendees = note.RequiredAttendees
  21889.      parentnote.OptionalAttendees = note.OptionalAttendees
  21890.      parentnote.Room = note.Room
  21891.      parentnote.ExcludeFromView = "D"
  21892.      parentnote.SequenceNum = note.SequenceNum
  21893.      parentnote.Subject = note.Topic
  21894.      parentnote.Topic = note.Topic
  21895.      parentnote.Principal = note.Chair
  21896.      parentnote.Form = "Appointment"
  21897.      parentnote.From = note.From
  21898.      parentnote.NoticeType = ORS_MSGTYPE_ACCEPT
  21899.      Call parentnote.ReplaceItemValue("$BusyName",Owner)
  21900.      Call parentnote.ReplaceItemValue("$BusyPriority","1")
  21901.      Call parentnote.ReplaceItemValue("$NoPurge",parentnote.EndDateTime(0))
  21902.      Call parentnote.ReplaceItemValue("$ExpandGroups","3")
  21903.      Call parentnote.ReplaceItemValue("$PublicAccess","1")
  21904.      Call parentnote.ReplaceItemValue("_ViewIcon",158)
  21905.      Call TIMEGetNotesFromLS(parentnote.GetITemValue("StartDateTime")(0), sdt)          
  21906.      Call TIMEGetNotesFromLS(parentnote.GetITemValue("EndDateTime")(0), edt)          
  21907.      Set tr = session.CreateDateRange
  21908.      Set tr.StartDateTime = sdt
  21909.      Set tr.EndDateTime = edt
  21910.      Set parentnote.TimeRange = tr
  21911.      parentnote.PostedDate = parentnote.StartDateTime
  21912.      parentnote.CalendarDateTime = parentnote.StartDateTime
  21913.      parentnote.BookFreeTime = "0"
  21914.      parentnote.OrgTable = ORS_ITEM_CALENDAR
  21915.      
  21916.      If (note.HasItem("FromDomain")) Then parentnote.FromDomain = note.FromDomain
  21917.      
  21918.      Call MarkTempFields(parentnote)
  21919.      Call parentnote.Save(True,True,True)
  21920.      Call parentnote.RemoveFromFolder("($Inbox)")
  21921. End Sub
  21922. '++LotusScript Development Environment:2:2:CreateResourceNotice:1:8
  21923. Sub CreateResourceNotice(NoticeType As String,ResourceType As String,ResourceName As String,doc As NotesDocument)
  21924.     *This routine is called to create a notice document for rooms/resources
  21925.     *Paramaters
  21926.                 NoticeType is the type of notice being sent
  21927.                 ResourceType is the type of resource we sending the notice to
  21928.                 ResourceName is the name of the resource we are mailing to (in Abbreviated format)
  21929.                 doc is the document that contains values we want to copy from to include on the notice (useful for repeats!)
  21930. %END REM     
  21931.      
  21932.      Set notice = New NotesDocument(db)
  21933.      
  21934.      notice.Form = "Notice"
  21935.      notice.StartDate = doc.StartDate
  21936.      notice.StartDateTime = doc.StartDateTime
  21937.      notice.EndDateTime = doc.EndDateTime
  21938.      notice.TimeRange = doc.TimeRange
  21939.      notice.Principal = Owner
  21940.      notice.Chair = Owner
  21941. 'get the context of the current note
  21942.      context = GetContext
  21943.      Select Case context
  21944.      Case 1,3:
  21945. '1 = non-repeat notice,3 = repeat notice -> use parentnote values
  21946.           notice.ApptUNID = parentnote.UniversalId
  21947.           notice.SequenceNum = parentnote.SequenceNum(0)
  21948.      Case 2,4
  21949. '2 = repeat instance, 4 = non-repeat instance -> use the document passed in
  21950.           notice.ApptUNID = doc.UniversalID
  21951.           If Not(doc.HasItem("SequenceNum")) Then doc.SequenceNum = 1
  21952.           notice.SequenceNum = doc.SequenceNum(0)               
  21953.      End Select
  21954.      notice.NoticeType = NoticeType
  21955.      notice.OrgState = ResourceType
  21956.      notice.SendTo = ResourceName         
  21957.      notice.ResourceName = ResourceName
  21958.      notice.Topic = doc.Subject
  21959.      If (doc.HasItem("$PublicAccess")) Then Call notice.ReplaceItemValue("$PublicAccess","1")
  21960. 'if this is a room, add the capacity
  21961.      If (ResourceType = ORS_STATE_ROOM) Then 
  21962.           notice.Capacity = Evaluate("@Elements(@Trim(RequiredAttendees:OptionalAttendees:Chair))",doc)
  21963.           If (doc.HasItem("OriginalRoom")) Then notice.OriginalRoom = doc.OriginalRoom
  21964.      End If
  21965. 'if this is a notice for a repeat set, add the necessary items
  21966.      If (doc.HasItem("RepeatDates")) Then
  21967.           notice.RepeatDates = doc.RepeatDates
  21968.           notice.RepeatIds = doc.RepeatIds
  21969.      Else
  21970.           If (doc.HasItem("OrgRepeat")) Then notice.OrgRepeat = True          
  21971.      End If
  21972. End Sub
  21973. '++LotusScript Development Environment:2:1:IsRemoved:1:8
  21974. Function IsRemoved(KeyValue As String,UserType As String) As Integer
  21975.     *This function is used to determine if a user/resource has been uninvited from a meeting
  21976.  *This function is used to determine if a resource/room should not be displayed in the Invitee Responses dialog
  21977. %END REM
  21978.      
  21979.      Dim index As Integer
  21980.      Dim keyname As New NotesName(KeyValue)
  21981.      Dim lookupname As NotesName
  21982.      
  21983.      IsRemoved = False
  21984.      
  21985.      Select Case UserType
  21986.      Case ORS_STATE_RESOURCE
  21987. 'this is a resource, look to see if this resource is in the RequiredResources field; if it isn't, it was uninvited
  21988.           tmpResourcesInvited = note.RequiredResources
  21989.           index = 0
  21990.           Do While (index <= Ubound(tmpResourcesInvited))
  21991.                Set lookupname = New NotesName(tmpResourcesInvited(index)) 
  21992.                If (Lcase(keyname.Canonical) = Lcase(lookupname.Canonical)) Then Exit Function
  21993.                index = index + 1
  21994.           Loop
  21995. 'if we got this far, then we didn't find the resource, it was removed
  21996.           IsRemoved = True
  21997.      Case ORS_STATE_ROOM
  21998. 'this is a room; see if it matches the value in the room field
  21999.           Set lookupname = New NotesName(note.Room(0))
  22000.           
  22001.           If (Lcase(keyname.CAnonical) <> Lcase(lookupname.Canonical)) Then IsRemoved = True
  22002.      Case Else
  22003.           tmpPeopleUninvited = note.Uninvited
  22004.           index = 0
  22005.           Do While (index <= Ubound(tmpPeopleUninvited))
  22006.                Set lookupname = New Notesname(tmpPeopleUninvited(index))               
  22007.                If (Lcase(keyname.Canonical) = Lcase(lookupname.Canonical)) Then 
  22008.                     IsRemoved = True                    
  22009.                     Exit Function
  22010.                End If
  22011.                index = index + 1
  22012.           Loop   
  22013.      End Select
  22014. End Function
  22015. '++LotusScript Development Environment:2:1:ProcessConflict:1:8
  22016. Function ProcessConflict(othernote As NotesDocument) As Integer
  22017.     *This routine is called from CheckIfConflictExists to see if the document
  22018.      we are comparing to can be processed
  22019. %END REM
  22020.      
  22021. 'default the return to False since this is what we are really checking for    
  22022.      ProcessConflict = False
  22023. 'if the two documents we are comparing are the same, then do not check for conflicts     
  22024.      If (note.UniversalID = othernote.UniversalID) Then Exit Function
  22025.      
  22026. 'if this is a reschedule, we need to check a few things     
  22027.      If (note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then
  22028. 'first, if the reschedule notice is being compared to its parent, do not check for conflicts
  22029.           If(note.ParentDocumentUNID = othernote.UniversalID) Then 
  22030.                Exit Function
  22031.           Else               
  22032. 'if we are not comparing ourselves to the parent, then check to see if only the room is changing
  22033. 'if the room is the only thing that is changing, then we don't check for conflicts
  22034.                If ((note.StartDateTime(0) = parentnote.StartDateTime(0)) And (note.EndDateTime(0) = parentnote.EndDateTime(0))) Then Exit Function 
  22035.           End If
  22036.      End If
  22037. 'since we made it this far, we can check for conflicts
  22038.      ProcessConflict = True
  22039. End Function
  22040. '++LotusScript Development Environment:2:1:CheckProfileTimes:1:8
  22041. Function CheckProfileTimes(doc As NotesDocument) As Integer
  22042.     *This function is call by CheckIfConflictExists
  22043.     *It compares the times of doc to the profile to make sure the times are within the profile settings
  22044.     *This function returns true if the time is not within the defined profile times
  22045. %END REM
  22046.      Dim dstartitem As NotesItem
  22047.      Dim denditem As NotesItem
  22048.      
  22049.      CheckProfileTimes = True
  22050.      
  22051.      Set dstartitem = doc.GetFirstItem("StartDateTime")
  22052.      
  22053.      Select Case Weekday(doc.StartDateTime(0))
  22054.      Case 1
  22055. 'sunday
  22056.           If (profile.Sunday(0) <> "1") Then Exit Function                     'this day is not selected in the profile
  22057.           ValidTimes = profile.GetItemValue("$Times1")
  22058.      Case 2
  22059. 'monday
  22060.           If (profile.Monday(0) <> "2") Then Exit Function                'this day is not selected in the profile
  22061.           ValidTimes = profile.GetItemValue("$Times2")
  22062.      Case 3
  22063. 'Tuesday
  22064.           If (profile.Tuesday(0) <> "3") Then  Exit Function            'this day is not selected in the profile
  22065.           ValidTimes = profile.GetItemValue("$Times3")
  22066.      Case 4
  22067. 'wednesday
  22068.           If (profile.Wednesday(0) <> "4") Then Exit Function            'this day is not selected in the profile
  22069.           ValidTimes = profile.GetItemValue("$Times4")
  22070.      Case 5
  22071. 'thursday
  22072.           If (profile.Thursday(0) <> "5") Then Exit Function            'this day is not selected in the profile
  22073.           ValidTimes = profile.GetItemValue("$Times5")
  22074.      Case 6
  22075. 'friday
  22076.           If (profile.Friday(0) <> "6") Then Exit Function                'this day is not selected in the profile
  22077.           ValidTimes = profile.GetItemValue("$Times6")
  22078.      Case 7
  22079. 'saturday
  22080.           If (profile.Saturday(0) <> "7") Then Exit Function            'this day is not selected in the profile
  22081.           ValidTimes = profile.GetItemValue("$Times7")
  22082.      End Select
  22083.      
  22084.      Set denditem= doc.GetFirstItem("EndDateTime")
  22085. 'we must now make sure that the times fall within the profile settings
  22086.      For x = 0 To Ubound(ValidTimes)
  22087. 'if the time falls within a profile range, then there is no conflict and we can exit
  22088.           Set date1 = New NotesDateTime(dstartitem.DateTimeValue.DateOnly & " " & Timevalue(ValidTimes(x)))
  22089.           Set date2 = New NotesDateTime(dstartitem.DateTimeValue.DateOnly & " " & Timevalue(ValidTimes(x+1)))
  22090.           
  22091.           If (dstartitem.DateTimeValue.TimeDifference(date1) >= 0) And (denditem.DateTimeValue.TimeDifference(date2) <= 0) Then          
  22092.                CheckProfileTimes = False
  22093.                Exit Function
  22094.           End If
  22095.           x = x + 1
  22096.      Next
  22097. End Function
  22098. '++LotusScript Development Environment:2:1:GetSubjectText:1:8
  22099. Function GetSubjectText(userDate As Variant) As String
  22100.      Dim selMonth As String
  22101.      Dim selTime As Variant
  22102.      
  22103.      Select Case Month(userDate)
  22104.      Case 1
  22105.           selMonth = CS_MONTH_JAN
  22106.      Case 2
  22107.           selMonth = CS_MONTH_FEB
  22108.      Case 3
  22109.           selMonth = CS_MONTH_MAR
  22110.      Case 4
  22111.           selMonth = CS_MONTH_APR
  22112.      Case 5
  22113.           selMonth = CS_MONTH_MAY
  22114.      Case 6
  22115.           selMonth = CS_MONTH_JUNE
  22116.      Case 7
  22117.           selMonth = CS_MONTH_JULY
  22118.      Case 8
  22119.           selMonth = CS_MONTH_AUG
  22120.      Case 9
  22121.           selMonth = CS_MONTH_SEPT
  22122.      Case 10
  22123.           selMonth = CS_MONTH_OCT
  22124.      Case 11
  22125.           selMonth = CS_MONTH_NOV
  22126.      Case 12
  22127.           selMonth = CS_MONTH_DEC       
  22128.      End Select
  22129.      
  22130.      selTime = Evaluate(|@Text(StartDateTime;"S1T1Z2")|,note)
  22131.      GetSubjectText = Cstr(Day(userDate)) & " " & selMonth & " " & selTime(0)
  22132. End Function
  22133. '++LotusScript Development Environment:2:1:GetContextSub:1:8
  22134. Function GetContextSub ( targetnote As NotesDocument ) As Integer
  22135. returns the context in which the current note exists
  22136. 1 = non repeat notice
  22137. 2 = repeat instance
  22138. 3 = repeat notice
  22139. 4 = original invitation     
  22140. %END REM
  22141.      If (targetnote.IsResponse) Then
  22142. 'the user opened up a response document; see what type of response this is
  22143.           If Not(targetnote.HasItem("OrgRepeat")) Then
  22144. 'this is a non-repeat notice
  22145.                GetContextSub = 1
  22146.           Else
  22147.                If (parentnote.IsResponse) Then
  22148. 'this is a repeat notice
  22149.                     GetContextSub = 3
  22150.                Else
  22151.                     GetContextSub = 2
  22152.                End If
  22153.           End If
  22154.      Else
  22155. 'this is the main invitation
  22156.           GetContextSub = 4
  22157.      End If
  22158. End Function
  22159. '++LotusScript Development Environment:2:2:DowngradeV5Invite:1:8
  22160. Sub DowngradeV5Invite(doc As NotesDocument)
  22161.  ' This is only used for repeating meeting invitations, since v5 uses a slightly different format
  22162.  ' than what previous versions are use to seeing
  22163.  ' Modify some of the items to so that the rest of the code thinks this is from a pre 5.0 user
  22164.      
  22165.      If (doc.HasItem("OrgRepeat") And doc.HasItem("RepeatDates") And Not(doc.isresponse)) Then
  22166.           Call doc.Replaceitemvalue("Broadcast","1")
  22167.           Call doc.RemoveItem("$CSVersion")
  22168.      End If
  22169. End Sub
  22170. `     
  22171.  $!$!
  22172. !t!t!
  22173. X"x"d"
  22174. #K4    -h
  22175. #K4    -h
  22176. ^$!J$!
  22177. ^d!6f
  22178. ^t!},"
  22179. ^t!}X"
  22180. ^t!}@#
  22181. ^t!}l#
  22182. - ##8S
  22183. - ##8
  22184. RequiredAttendees
  22185. OptionalAttendees
  22186. Chair
  22187.     0S0E
  22188. StartDateTime
  22189. S1T1Z2V
  22190.     0S0E
  22191. O=Lotus Notes
  22192. O=Lotus Notes
  22193. PURSAFO
  22194. |.:#U
  22195. O=Lotus Notes
  22196. CN=Lotus Notes Template Development/O=Lotus Notes
  22197. PURSAFO
  22198. $ScriptLib
  22199. $ScriptLib_O
  22200. $TITLE
  22201. $Flags
  22202. $PublicAccess
  22203. '++LotusScript Development Environment:2:5:(Options):0:74
  22204. Option Public
  22205. Use "ObjectVariables"
  22206. '++LotusScript Development Environment:2:5:(Forward):0:1
  22207. Declare Sub Initialize
  22208. Declare Sub CreateNewDoc(nDocType As Integer)
  22209. Declare Sub CreateMailMemo(pNote As NotesDocument)
  22210. Declare Sub CreateCalendarEntry(pNote As NotesDocument)
  22211. Declare Sub CreateTask(pNote As NotesDocument)
  22212. Declare Function GetSendNames(pNote As NotesDocument) As Variant
  22213. Declare Function GetCopyNames(pNote As NotesDocument) As Variant
  22214. Declare Sub AddBodyToNewNote(pNewNote As NotesDocument, pSourceNote As NotesDocument)
  22215. '++LotusScript Development Environment:2:5:(Declarations):0:10
  22216. Const NEW_MEMO = 0
  22217. Const NEW_CALENDAR = 1
  22218. Const NEW_TASK = 2
  22219. Dim bOkToCopy As Integer
  22220. '++LotusScript Development Environment:2:2:Initialize:1:10
  22221. Sub Initialize
  22222.      
  22223. End Sub
  22224. '++LotusScript Development Environment:2:2:CreateNewDoc:1:8
  22225. Sub CreateNewDoc(nDocType As Integer)
  22226.      
  22227.      Set session = New NotesSession
  22228.      Set ws = New NotesUIWorkspace
  22229.      Set db = session.CurrentDatabase
  22230.      
  22231.      bOkToCopy = True
  22232.      
  22233.      'if there is a document currently open, and it is a new document, we cannot proceed
  22234.      Set uidoc = ws.CurrentDocument
  22235.      If Not(uidoc Is Nothing) Then
  22236.           If uidoc.IsNewDoc Then
  22237.                Messagebox "This action cannot be executed on a new document.",16,"Error"
  22238.                Exit Sub
  22239.           End If
  22240.           Set note = uidoc.Document          
  22241.      Else
  22242.           Set selecteddocs = db.UnprocessedDocuments
  22243.           If (selecteddocs.Count = 0) Then 
  22244.                Messagebox "Please select a document before executing this command.",16,"Error"
  22245.                Exit Sub
  22246.           End If
  22247.           Set note = selecteddocs.GetFirstDocument
  22248.      End If
  22249.      
  22250.      ' Make sure this document is not prevented from being copied
  22251.      If (note.~$KeepPrivate(0) = "1") Then
  22252.           Messagebox "This document is prevented from being copied. The body will not be copied into the new document created.",16,"Warning"
  22253.           bOkToCopy = False          
  22254.      End If
  22255.      
  22256.      Select Case nDocType
  22257.      Case NEW_MEMO
  22258.           Call CreateMailMemo(note)
  22259.      Case NEW_CALENDAR
  22260.           Call CreateCalendarEntry(note)
  22261.      Case NEW_TASK
  22262.           Call CreateTask(note)
  22263.      End Select
  22264.      
  22265. End Sub
  22266. '++LotusScript Development Environment:2:2:CreateMailMemo:1:8
  22267. Sub CreateMailMemo(pNote As NotesDocument)
  22268.      
  22269.      Dim mail As NotesDocument
  22270.      Dim rtitem As NotesRichTextItem
  22271.      
  22272.      Set mail = New NotesDocument(db)
  22273.      
  22274. 'set/retrieve standard mail values regardless of pNote type
  22275.      mail.Form = "Memo"
  22276.      mail.Principal = Owner
  22277.      mail.tmpSendTo = GetSendNames(pNote)
  22278.      mail.SendTo = Evaluate("@Trim(@Unique(tmpSendTo))",mail)
  22279.      mail.tmpCopyTo = GetCopyNames(pNote)
  22280.      mail.CopyTo = Evaluate("@Trim(@Unique(tmpCopyTo))",mail)
  22281.      
  22282.      If (pNote.NoticeType(0) <> "J") Then Call AddBodyToNewNote(mail,pNote)
  22283.      
  22284.      Call mail.RemoveItem("tmpSendTo")
  22285.      Call mail.RemoveItem("tmpCopyTo")
  22286.      
  22287.      
  22288. 'set/retrieve mail values depending on pNote type
  22289.      Select Case pNote.Form(0)
  22290.      Case "Memo","Reply","Appointment","Task"
  22291.           mail.Subject = pNote.Subject
  22292.      Case "Notice"
  22293.           mail.Subject = pNote.Topic
  22294.      Case Else
  22295.           mail.Subject = pNote.Subject
  22296.      End Select
  22297.      
  22298.      mail.Logo = session.GetEnvironmentString("DefaultLogo",False)
  22299.      mail.tmpnewdoc = True
  22300.      Call ws.EditDocument(True,mail)
  22301. End Sub
  22302. '++LotusScript Development Environment:2:2:CreateCalendarEntry:1:8
  22303. Sub CreateCalendarEntry(pNote As NotesDocument)
  22304.      
  22305.      Dim entry As NotesDocument
  22306.      Dim rtitem As NotesRichTextItem
  22307.      Dim startdt As New NotesDateTime("")
  22308.      Dim enddt As New NotesDateTime("")
  22309.      Dim trdr As NotesDateRange
  22310.      Dim entryitem As NotesItem
  22311.      
  22312.      Dim sForm As String
  22313.      Dim nMinutes As Integer
  22314.      Dim nSeconds As Integer
  22315.      
  22316.      If (profile Is Nothing) Then Call GetCalendarOwner
  22317.      
  22318.      Set entry = New NotesDocument(db)
  22319.      
  22320. 'add standard entry items
  22321.      entry.AppointmentType = profile.CalEntryType(0)
  22322.      entry.Form = "Appointment"
  22323.      entry.SendTo = GetSendNames(pNote)
  22324.      entry.CopyTo = GetCopyNames(pNote)
  22325.      entry.Chair = Owner
  22326.      entry.Principal = Owner
  22327.      entry.tmpOwner = Owner
  22328.      entry.From = session.UserName
  22329.      
  22330.      
  22331.      
  22332.      If (pNote.NoticeType(0) <> "J") Then Call AddBodyToNewNote(entry,pNote)          
  22333.      
  22334. 'add entry items depending upon pNote type
  22335.      sForm = pNote.Form(0)
  22336.      Select Case sForm
  22337.      Case "Memo","Reply","Task","Personal Stationery"
  22338.           startdt.SetNow          
  22339.           entry.Subject = pNote.Subject
  22340. 'add the startdatetime, enddatetime, timerange, and reminder time
  22341.           If (sForm = "Task") Then
  22342. 'this is a task
  22343. 'first, look for a StartDateTime item
  22344.                If (pNote.StartDateTime(0) <> "") Then
  22345.                     Set startitem = pNote.GetFirstItem("StartDateTime")            
  22346.                     Set startdt = New NotesDateTime(startitem.DateTimeValue.DateOnly & " " & startdt.TimeOnly)                    
  22347. 'if we don't have a startdate item, look for a duedate item                    
  22348.                Elseif (pNote.DueDateTime(0) <> "") Then
  22349.                     Set startitem = pNote.GetFirstItem("DueDateTime")
  22350.                     Set startdt = New NotesDateTime(startitem.DateTimeValue.DateOnly & " " & startdt.TimeOnly)
  22351.                End If
  22352.           End If
  22353. 'set the time component          
  22354.           nMinutes = Minute(startdt.LSLocalTime)
  22355.           nSeconds = 0 - Second(startdt.LSLocalTime)
  22356.           
  22357.           If (nMinutes > 45) Then          
  22358.                startdt.AdjustMinute(60 - nMinutes)
  22359.           Elseif (nMinutes > 30) Then
  22360.                startdt.AdjustMinute(45 - nMinutes)
  22361.           Elseif (nMinutes > 15) Then
  22362.                startdt.AdjustMinute(30 - nMinutes)
  22363.           Else
  22364.                startdt.AdjustMinute(15 - nMinutes)
  22365.           End If               
  22366.           
  22367.           startdt.AdjustSecond(nSeconds)
  22368.           
  22369.           Set entry.StartDate = startdt
  22370.           Set entry.StartDateTime = startdt
  22371.           Set entry.ReminderTime = startdt
  22372.           
  22373.           Set enddt = New NotesDateTime(startdt.LSLocalTime)
  22374.           enddt.AdjustMinute(profile.DefaultDuration(0))
  22375.           
  22376.           Set trdr = session.CreateDateRange
  22377.           Set trdr.StartDateTime = startdt
  22378.           Set trdr.EndDateTime = enddt
  22379.           Set entry.TimeRange = trdr
  22380.      Case "Appointment","Notice"
  22381.           If (sForm = "Appointment") Then
  22382.                entry.Subject = pNote.Subject
  22383.           Else
  22384.                entry.Subject = pNote.Topic
  22385.           End If
  22386.           
  22387. 'copy the startdatetime,enddatetime,timerange, and reminder time
  22388.           Set entryitem = pNote.GetFirstItem("StartDateTime")          
  22389.           If Not(entryitem Is Nothing) Then
  22390.                Call entryitem.CopyitemToDocument(entry,"StartDate")
  22391.                Call entryitem.CopyItemToDocument(entry,"StartDateTime")
  22392.                Call entryitem.CopyItemToDocument(entry,"ReminderTime")
  22393.           End If
  22394.           
  22395.           Set entryitem = pNote.GetFirstItem("EndDateTime")
  22396.           If Not(entryitem Is Nothing) Then Call entryitem.CopyItemToDocument(entry,"EndDateTime")
  22397.           
  22398.           Set entryitem = pNote.GetFirstItem("TimeRange")
  22399.           If Not (entryitem Is Nothing) Then Call entryitem.CopyItemToDocument(entry,"TimeRange")
  22400.      Case Else
  22401.           startdt.SetNow          
  22402.           entry.Subject = pNote.Subject
  22403.           nMinutes = Minute(startdt.LSLocalTime)
  22404.           nSeconds = 0 - Second(startdt.LSLocalTime)
  22405.           
  22406.           If (nMinutes > 45) Then          
  22407.                startdt.AdjustMinute(60 - nMinutes)
  22408.           Elseif (nMinutes > 30) Then
  22409.                startdt.AdjustMinute(45 - nMinutes)
  22410.           Elseif (nMinutes > 15) Then
  22411.                startdt.AdjustMinute(30 - nMinutes)
  22412.           Else
  22413.                startdt.AdjustMinute(15 - nMinutes)
  22414.           End If               
  22415.           
  22416.           startdt.AdjustSecond(nSeconds)
  22417.           
  22418.           Set entry.StartDate = startdt
  22419.           Set entry.StartDateTime = startdt
  22420.           Set entry.ReminderTime = startdt
  22421.           
  22422.           Set enddt = New NotesDateTime(startdt.LSLocalTime)
  22423.           enddt.AdjustMinute(profile.DefaultDuration(0))
  22424.           
  22425.           Set trdr = session.CreateDateRange
  22426.           Set trdr.StartDateTime = startdt
  22427.           Set trdr.EndDateTime = enddt
  22428.           Set entry.TimeRange = trdr
  22429.      End Select
  22430.      entry.ExcludeFromView = "D"
  22431.      entry.tmpNewDoc = True
  22432.      Call ws.EditDocument(True,entry)
  22433. End Sub   
  22434. '++LotusScript Development Environment:2:2:CreateTask:1:8
  22435. Sub CreateTask(pNote As NotesDocument)
  22436.      
  22437.      Dim task As NotesDocument
  22438.      Dim rtitem As NotesRichTextItem
  22439.      Dim sType As String
  22440.      Dim dueitem As NotesItem
  22441.      Dim tmpSendTo As Variant
  22442.      Dim tmpCopyTo As Variant
  22443.      
  22444.      Set task = New NotesDocument(db)
  22445.      
  22446. 'add standard items
  22447.      task.Form = "Task"
  22448.      task.AssignState = 0
  22449.      task.OrgTable = "T0"
  22450.      
  22451.      If (pNote.NoticeType(0) <> "J") Then Call AddBodyToNewNote(task,pNote)
  22452. 'for tasks, the cc = SendTo + CopyTo     
  22453.      tmpSendTo = GetSendNames(pNote)
  22454.      tmpCopyTo = GetCopyNames(pNote)
  22455.      task.tmpCopyTo1 = tmpSendTo
  22456.      task.tmpCopyTo2 = tmpCopyTo
  22457.      task.CopyTo = Evaluate("@Trim(tmpCopyTo1:tmpCopyTo2)",task)
  22458.      task.RemoveItem "tmpCopyTo1"
  22459.      task.RemoveItem "tmpCopyTo2"
  22460.      
  22461.      task.~_ViewIcon = 168
  22462.      
  22463. 'get specific items from pNote type
  22464.      sType = pNote.Form(0)
  22465.      Select Case sType
  22466.      Case "Memo","Reply"
  22467.           task.Subject = pNote.Subject
  22468.      Case "Appointment","Notice"
  22469.           If (sType = "Appointment") Then
  22470.                task.Subject = pNote.Subject
  22471.           Else
  22472.                taskSubject = pNote.Topic(0)
  22473.           End If
  22474.           
  22475.           Set dueitem = pNote.GetFirstItem("StartDateTime")
  22476.           Call dueitem.CopyItemtoDocument(task,"DueDateTime")
  22477.      Case "Task"
  22478.           task.Subject = pNote.Subject
  22479.           If (pNote.StartDateTime(0) <> "") Then
  22480.                Set dueitem = pNote.GetFirstItem("StartDateTime")
  22481.                Call dueitem.CopyItemToDocument(task,"StartDateTime")
  22482.           End If
  22483.           If (pNote.DueDateTime(0) <> "") Then
  22484.                Set dueitem = pNote.GetFirstItem("DueDateTime")
  22485.                Call dueitem.CopyItemToDocument(task,"DueDateTime")
  22486.           End If
  22487.      Case Else
  22488. 'not sure what we have, so assume subject item exists, but don't prefill-in any date info
  22489.           task.Subject = pNote.Subject         
  22490.      End Select
  22491.      task.ExcludeFromView = "D"
  22492.      task.tmpnewdoc = True
  22493.      Call ws.EditDocument(True,task)
  22494. End Sub
  22495. '++LotusScript Development Environment:2:1:GetSendNames:1:8
  22496. Function GetSendNames(pNote As NotesDocument) As Variant
  22497.      Dim sSendItem As String
  22498.      Dim vSendNames As Variant
  22499.      Dim vRetNames() As Variant
  22500.      Dim nItems As Integer
  22501.      Dim x As Integer
  22502.      Dim namUser As New NotesName(session.UserName)
  22503.      Dim nam As NotesName
  22504.      
  22505.      Select Case pNote.Form(0)
  22506.      Case "Memo","Reply"
  22507.           sSendItem = "SendTo"
  22508.      Case "Appointment","Notice"
  22509.           sSendItem = "RequiredAttendees"
  22510.      Case Else
  22511.           sSendItem = "SendTo"
  22512.      End Select
  22513.      
  22514.      vSendNames = pNote.GetItemValue(sSendItem)
  22515.      
  22516.      If (vSendNames(0) = "") And (Ubound(vSendNames) = 0) Then
  22517.           nItems = 1
  22518.      Else
  22519.           nItems = Ubound(vSendNames) + 2
  22520.      End If
  22521.      Redim vRetNames(nItems)
  22522.      
  22523.      Forall names In vSendNames
  22524. 'make sure we don't have a blank value & the name <> current user          
  22525.           If (names <> "") Then
  22526.                Set nam = New NotesName(names)
  22527.                If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  22528.                     vRetNames(x) = names
  22529.                     x = x+1
  22530.                End If
  22531.           End If
  22532.      End Forall
  22533.      
  22534.      If (pNote.HasItem("Principal")) Then
  22535.           Set nam = New NotesName(pNote.Principal(0))
  22536.           If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  22537.                If (pNote.HasItem("FromDomain")) Then          
  22538.                     vRetNames(x) = pNote.Principal(0) & "@" & pNote.FromDomain(0)
  22539.                Else
  22540.                     vRetNames(x) = pNote.Principal(0)
  22541.                End If
  22542.           End If
  22543.      Else
  22544.           Set nam = New NotesName(pNote.From(0))
  22545.           If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  22546.                If (pNote.HasItem("FromDomain")) Then          
  22547.                     vRetnames(x) = pNote.From(0) & "@" & pNote.FromDomain(0)
  22548.                Else
  22549.                     vRetNames(x) = pNote.From(0)
  22550.                End If
  22551.           End If
  22552.      End If
  22553.      
  22554.      GetSendNames = vRetNames
  22555.      
  22556. End Function  
  22557. '++LotusScript Development Environment:2:1:GetCopyNames:1:8
  22558. Function GetCopyNames(pNote As NotesDocument) As Variant
  22559.      Dim sCopyItem As String
  22560.      Dim vCopyNames As Variant
  22561.      Dim vRetnames() As Variant
  22562.      Dim x As Integer
  22563.      Dim nItems As Integer
  22564.      Dim namUser As New NotesName(session.UserName)
  22565.      
  22566.      Select Case pNote.Form(0)
  22567.      Case "Memo","Reply"
  22568.           sCopyItem = "CopyTo"
  22569.      Case "Appointment","Notice"
  22570.           sCopyItem = "OptionalAttendees"
  22571.      Case Else
  22572.           sCopyItem = "CopyTo"
  22573.      End Select
  22574.      
  22575.      vCopyNames = pNote.GetItemValue(sCopyItem)
  22576.      
  22577.      If (vCopyNames(0) = "") And (Ubound(vCopyNames) = 0) Then
  22578.           nItems = 1
  22579.      Else
  22580.           nItems = Ubound(vCopyNames) + 1
  22581.      End If
  22582.      
  22583.      Redim vRetNames(nItems)
  22584.      
  22585.      Forall names In vCopyNames
  22586.           If (names <> "") Then
  22587.                Set nam = New NotesName(names)
  22588.                If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  22589.                     
  22590.                     vRetNames(x) = names
  22591.                     x = x+1
  22592.                End If               
  22593.           End If
  22594.      End Forall
  22595.      
  22596.      GetCopyNames = vRetNames
  22597. End Function  
  22598. '++LotusScript Development Environment:2:2:AddBodyToNewNote:1:8
  22599. Sub AddBodyToNewNote(pNewNote As NotesDocument, pSourceNote As NotesDocument)
  22600.      Dim rtitemSource As NotesRichTextItem
  22601.      Dim rtitemNew As NotesRichTextItem
  22602.      Dim dtitem As NotesItem
  22603.      
  22604.      If Not(bOkToCopy) Then Exit Sub
  22605.      
  22606. 'first, get the body field of the source note
  22607.      Set rtitemSource = pSourceNote.GetFirstItem("Body")
  22608.      
  22609.      
  22610. 'now, create the new Body item
  22611.      Set rtitemNew = New NotesRichTextItem(pNewNote,"Body")
  22612.      rtitemNew.AddNewLine(2)
  22613.      rtitemNew.AppendText "---------------"
  22614.      rtitemNew.AddNewLine(1)
  22615.      
  22616.      
  22617.      Select Case pSourceNote.Form(0)
  22618.      Case "Appointment","Notice"
  22619.           If (pSourceNote.StartDateTime(0) <> "") Then
  22620.                Set dtitem = pSourceNote.GetFirstItem("StartDateTime")          
  22621.                Call rtitemNew.AppendText("Start:")
  22622.                rtitemNew.AddTab(1)
  22623.                rtitemNew.AppendText(dtitem.Values(0))
  22624.                Call rtitemNew.AddNewLine(1)
  22625.           End If
  22626.           If (pSourceNote.EndDateTime(0) <> "") Then
  22627.                Set dtitem = pSourceNote.GetFirstItem("EndDateTime")          
  22628.                Call rtitemNew.AppendText("End:")
  22629.                rtitemNew.AddTab(1)
  22630.                rtitemNew.AppendText(dtitem.Values(0))
  22631.                Call rtitemNew.AddNewLine(1)
  22632.           End If
  22633.           rtitemNew.AddNewLine(2)
  22634.      Case "Task"
  22635.           If (pSourceNote.StartDateTime(0) <> "") Then
  22636.                Set dtitem = pSourceNote.GetFirstItem("StartDateTime")          
  22637.                Call rtitemNew.AppendText("Start date:")
  22638.                rtitemNew.AddTab(1)
  22639.                rtitemNew.AppendText(dtitem.Values(0))
  22640.                Call rtitemNew.AddNewLine(1)
  22641.           End If
  22642.           If (pSourceNote.DueDateTime(0) <> "") Then
  22643.                Set dtitem = pSourceNote.GetFirstItem("DueDateTime")          
  22644.                Call rtitemNew.AppendText("Due date:")
  22645.                rtitemNew.AddTab(1)
  22646.                rtitemNew.AppendText(dtitem.Values(0))
  22647.                Call rtitemNew.AddNewLine(1)
  22648.           End If          
  22649.           rtitemNew.AddNewLine(2)
  22650.      End Select
  22651.      If Not(rtitemSource Is Nothing) Then Call rtitemNew.AppendRTItem(rtitemSource)
  22652. End Sub
  22653. |    |    \
  22654. [|    N`
  22655.     N|    P
  22656.     K@    -
  22657. tmpSendTo
  22658.     0S0E
  22659. tmpCopyTo
  22660.     0S0E
  22661. tmpCopyTo1
  22662. tmpCopyTo2
  22663.     0S0E
  22664. O=Lotus Notes
  22665. O=Lotus Notes
  22666. PURSAFO
  22667. |.:#U
  22668. O=Lotus Notes
  22669. CN=Lotus Notes Template Development/O=Lotus Notes
  22670. PURSAFO
  22671. =mA\{
  22672. $ScriptLib
  22673. $ScriptLib_O
  22674. $TITLE
  22675. $Flags
  22676. $PublicAccess
  22677. *** Message Successfully Delivered ***
  22678.  Delivery Report
  22679. Delivery Confirmation Report
  22680.     Your document:
  22681. Subject
  22682. Subject
  22683.     was delivered to:
  22684. IntendedRecipient
  22685. IntendedRecipient
  22686. DeliveryDate
  22687. BodyBody of memo.
  22688.     Always Hidden:
  22689. Path_Info
  22690. Path_Info
  22691. Categori_ze+
  22692. Close: 
  22693.     0S0E
  22694. _Edit Document
  22695. Send Docu_ment
  22696. _Forward
  22697. _Move to Folder...
  22698. _Remove from Folder...
  22699. Trash
  22700.     1S2S10S14S16S19S21S
  22701. /wCommand?OpenAgent&ToTrash=
  22702. &From="
  22703.     0R1S2S3S4S11S13S15S16S
  22704. Path_Info
  22705. Path_Info
  22706.     0R1S2S6S10S11S15S
  22707. view1
  22708.     0R1S2S3S10S14S18S21S
  22709. view2
  22710. view1
  22711. view1
  22712. view1
  22713.     0R1S2S3S10S14S18S21S
  22714. path"
  22715. view2
  22716.     0RR3S4S5S6S7S8S
  22717. File&
  22718.     1S2S10S14S16S19S21S
  22719. /wFolders?OpenForm&UNID=
  22720. &View="
  22721.     0R1S2S3S4S11S13S15S16S
  22722. Path_Info
  22723. Path_Info
  22724.     0R1S2S6S10S11S15S
  22725. view1
  22726.     0R1S2S3S10S14S18S21S
  22727. view2
  22728. view1
  22729. view1
  22730. view1
  22731.     0R1S2S3S10S14S18S21S
  22732. path"
  22733. view2
  22734.     0RR3S4S5S6S7S8S
  22735. In Box*
  22736. ($Inbox)
  22737. Calendar
  22738.     1S2S10S14S16S19S21S
  22739. path"
  22740. /($Calendar)?OpenView&Grid=
  22741. CalendarProfile
  22742. wCalGridType
  22743.     0R3S4S5S6S7S8S12S.
  22744. tmpAddressIsOn
  22745.     1S2S
  22746. Meetings.
  22747. ($Meetings)
  22748. To Do
  22749. ($ToDo)
  22750. All Viewse"
  22751. O=Lotus Notes
  22752. O=Lotus Notes
  22753. PURSAFO
  22754. |.:#U
  22755. O=Lotus Notes
  22756. CN=Lotus Notes Template Development/O=Lotus Notes
  22757. PURSAFO
  22758. $TITLE
  22759. $INFO
  22760. $WINDOWTITLE
  22761. $$ScriptName
  22762. DeliveryDate
  22763. $BODY
  22764. $ACTIONS
  22765. *** Message Successfully Received ***
  22766.  Return Receipt
  22767. Return Receipt
  22768.         Your document:
  22769. Subject
  22770. Subject
  22771.         was received by:
  22772. IntendedRecipient
  22773. IntendedRecipient
  22774.         at:
  22775. DeliveryDate
  22776.     Always Hidden:
  22777. Path_Info
  22778. Path_Info
  22779. Categori_ze
  22780. Close
  22781.     0S0E
  22782. _Edit Document
  22783. Send Docu_ment
  22784. _Forward
  22785. _Move to Folder...
  22786. _Remove from Folder...
  22787. Trash
  22788.     1S2S10S14S16S19S21S
  22789. /wCommand?OpenAgent&ToTrash=
  22790. &From="
  22791.     0R1S2S3S4S11S13S15S16S
  22792. Path_Info
  22793. Path_Info
  22794.     0R1S2S6S10S11S15S
  22795. view1
  22796.     0R1S2S3S10S14S18S21S
  22797. view2
  22798. view1
  22799. view1
  22800. view1
  22801.     0R1S2S3S10S14S18S21S
  22802. path"
  22803. view2
  22804.     0RR3S4S5S6S7S8S
  22805. File&
  22806.     1S2S10S14S16S19S21S
  22807. /wFolders?OpenForm&UNID=
  22808. &View="
  22809.     0R1S2S3S4S11S13S15S16S
  22810. Path_Info
  22811. Path_Info
  22812.     0R1S2S6S10S11S15S
  22813. view1
  22814.     0R1S2S3S10S14S18S21S
  22815. view2
  22816. view1
  22817. view1
  22818. view1
  22819.     0R1S2S3S10S14S18S21S
  22820. path"
  22821. view2
  22822.     0RR3S4S5S6S7S8S
  22823. In Box*
  22824. ($Inbox)
  22825. Calendar
  22826.     1S2S10S14S16S19S21S
  22827. path"
  22828. /($Calendar)?OpenView&Grid=
  22829. CalendarProfile
  22830. wCalGridType
  22831.     0R3S4S5S6S7S8S12S.
  22832. tmpAddressIsOn
  22833.     1S2S
  22834. Meetings.
  22835. ($Meetings)
  22836. To Do
  22837. ($ToDo)
  22838. All Views
  22839. O=Lotus Notes
  22840. O=Lotus Notes
  22841. PURSAFO
  22842. |.:#U
  22843. O=Lotus Notes
  22844. CN=Lotus Notes Template Development/O=Lotus Notes
  22845. PURSAFO
  22846. >'IV-
  22847. $TITLE
  22848. $INFO
  22849. $WINDOWTITLE
  22850. $$Script_O
  22851. $$ScriptName
  22852. DeliveryDate
  22853. $BODY
  22854. $ACTIONS
  22855. *** Message Not Delivered ***
  22856.  ReturnNonReceipt
  22857. Return Receipt Failure
  22858.     Your document:
  22859. Subject
  22860. OriginalSubject
  22861.     was not received by:
  22862. IntendedRecipient
  22863. IntendedRecipient
  22864.     because:
  22865. FailureReason
  22866. FailureReason
  22867.     Always Hidden:
  22868. Path_Info
  22869. Path_Info
  22870. Categori_ze
  22871. Close
  22872.     0S0E
  22873. Edit Document
  22874. Resend
  22875. Resend>
  22876.     7S12S
  22877. _Forward
  22878. _Move to Folder...
  22879. _Remove from Folder...
  22880. Trash
  22881.     1S2S10S14S16S19S21S
  22882. /wCommand?OpenAgent&ToTrash=
  22883. &From="
  22884.     0R1S2S3S4S11S13S15S16S
  22885. Path_Info
  22886. Path_Info
  22887.     0R1S2S6S10S11S15S
  22888. view1
  22889.     0R1S2S3S10S14S18S21S
  22890. view2
  22891. view1
  22892. view1
  22893. view1
  22894.     0R1S2S3S10S14S18S21S
  22895. path"
  22896. view2
  22897.     0RR3S4S5S6S7S8S
  22898. File&
  22899.     1S2S10S14S16S19S21S
  22900. /wFolders?OpenForm&UNID=
  22901. &View="
  22902.     0R1S2S3S4S11S13S15S16S
  22903. Path_Info
  22904. Path_Info
  22905.     0R1S2S6S10S11S15S
  22906. view1
  22907.     0R1S2S3S10S14S18S21S
  22908. view2
  22909. view1
  22910. view1
  22911. view1
  22912.     0R1S2S3S10S14S18S21S
  22913. path"
  22914. view2
  22915.     0RR3S4S5S6S7S8S
  22916. In Box*
  22917. ($Inbox)
  22918. Calendar
  22919.     1S2S10S14S16S19S21S
  22920. path"
  22921. /($Calendar)?OpenView&Grid=
  22922. CalendarProfile
  22923. wCalGridType
  22924.     0R3S4S5S6S7S8S12S.
  22925. tmpAddressIsOn
  22926.     1S2S
  22927. Meetings.
  22928. ($Meetings)
  22929. To Do@*
  22930. ($ToDo)
  22931. All Views
  22932. O=Lotus Notes
  22933. O=Lotus Notes
  22934. PURSAFO
  22935. |.:#U
  22936. O=Lotus Notes
  22937. CN=Lotus Notes Template Development/O=Lotus Notes
  22938. PURSAFO
  22939. $TITLE
  22940. $INFO
  22941. $WINDOWTITLE
  22942. $$Script_O
  22943. $$ScriptName
  22944. $BODY
  22945. $ACTIONS
  22946. *** Message Successfully Delivered ***
  22947.  Trace Report
  22948. Trace Report
  22949.     Your trace:
  22950. Subject
  22951. Subject
  22952.     has reached:
  22953. IntendedRecipient
  22954. MailServer
  22955. DeliveryDate
  22956. Trace Information
  22957. RouteServers
  22958. RouteServers
  22959. RouteTimes
  22960. RouteTimes
  22961.     Always Hidden:
  22962. Path_Info
  22963. Path_Info
  22964. Categori_zeC
  22965. _Edit Document
  22966. Send Docu_ment
  22967. _Forward
  22968. _Move to Folder...
  22969. _Remove from Folder...
  22970. Trashp*
  22971.     1S2S10S14S16S19S21S
  22972. /wCommand?OpenAgent&ToTrash=
  22973. &From="
  22974.     0R1S2S3S4S11S13S15S16S
  22975. Path_Info
  22976. Path_Info
  22977.     0R1S2S6S10S11S15S
  22978. view1
  22979.     0R1S2S3S10S14S18S21S
  22980. view2
  22981. view1
  22982. view1
  22983. view1
  22984.     0R1S2S3S10S14S18S21S
  22985. path"
  22986. view2
  22987.     0RR3S4S5S6S7S8S
  22988. File&
  22989.     1S2S10S14S16S19S21S
  22990. /wFolders?OpenForm&UNID=
  22991. &View="
  22992.     0R1S2S3S4S11S13S15S16S
  22993. Path_Info
  22994. Path_Info
  22995.     0R1S2S6S10S11S15S
  22996. view1
  22997.     0R1S2S3S10S14S18S21S
  22998. view2
  22999. view1
  23000. view1
  23001. view1
  23002.     0R1S2S3S10S14S18S21S
  23003. path"
  23004. view2
  23005.     0RR3S4S5S6S7S8S
  23006. In Box*
  23007. ($Inbox)
  23008. Calendar
  23009.     1S2S10S14S16S19S21S
  23010. path"
  23011. /($Calendar)?OpenView&Grid=
  23012. CalendarProfile
  23013. wCalGridType
  23014.     0R3S4S5S6S7S8S12S.
  23015. tmpAddressIsOn
  23016.     1S2S
  23017. Meetings.
  23018. ($Meetings)
  23019. To Do
  23020. ($ToDo)
  23021. All Views
  23022. O=Lotus Notes
  23023. O=Lotus Notes
  23024. PURSAFO
  23025. |.:#U
  23026. O=Lotus Notes
  23027. CN=Lotus Notes Template Development/O=Lotus Notes
  23028. PURSAFO
  23029. $TITLE
  23030. $INFO
  23031. $WINDOWTITLE
  23032. $$Script_O
  23033. $$ScriptName
  23034. DeliveryDate
  23035. $BODY
  23036. $ACTIONS
  23037. VersionOpt|
  23038.     6S7S9S14S
  23039. $VersionOpt
  23040.     0R1S2S3S
  23041. SavedOnce
  23042.     0R1S2S3S
  23043. PostedDate(
  23044.     0R1S2S3S
  23045. DeliveredDate
  23046.     0R1S2S3S
  23047. $AutoEditMode
  23048.     0R1S2S3S
  23049. MailSaveOptions
  23050.     0R1S2S3S
  23051. VersionOpt
  23052.     0R4S
  23053. New Bookmark
  23054. Subject
  23055. Subject
  23056. Subject
  23057.     4S6S12S13S14S15S17S21S23S25S26S28S
  23058. Times New Roman
  23059. '++LotusScript Development Environment:2:5:(Options):0:74
  23060. Option Public
  23061. Use "EmailProcessing"
  23062. Use "DocumentConversions"
  23063. '++LotusScript Development Environment:2:5:(Forward):0:1
  23064. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23065.  Bookmark'++LotusScript Development Environment:2:5:(Options):0:66
  23066. '++LotusScript Development Environment:2:5:(Forward):0:1
  23067. Declare Sub Postopen(Source As Notesuidocument)
  23068. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  23069. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  23070. Declare Sub Postmodechange(Source As Notesuidocument)
  23071. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23072. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23073. Private Sub BindEvents(Byval Objectname_ As String)
  23074.      Static Source As NOTESUIDOCUMENT
  23075.      Set Source = Bind(Objectname_)
  23076.      On Event Postopen From Source Call Postopen
  23077.      On Event Querysave From Source Call Querysave
  23078.      On Event Queryclose From Source Call Queryclose
  23079.      On Event Postmodechange From Source Call Postmodechange
  23080. End Sub
  23081. '++LotusScript Development Environment:2:2:Postopen:1:12
  23082. Sub Postopen(Source As Notesuidocument)
  23083.      
  23084.      Set ws = New NotesUIWorkSpace
  23085.      Set uidoc = source
  23086.      
  23087.      Call EmailOpen
  23088.      
  23089. End Sub
  23090. '++LotusScript Development Environment:2:2:Querysave:1:12
  23091. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  23092.      
  23093.      Call EmailSave(Continue)
  23094.      
  23095. End Sub
  23096. '++LotusScript Development Environment:2:2:Queryclose:1:12
  23097. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  23098.      
  23099.      Call EmailClose(Continue)
  23100.      
  23101. End Sub
  23102. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  23103. Sub Postmodechange(Source As Notesuidocument)
  23104.      
  23105.      Call EmailModeChange
  23106.      
  23107. End Sub
  23108.     Always hidden: 
  23109. Principal
  23110. CalendarProfile
  23111. Owner
  23112.     1S2S3S7S
  23113. Principal
  23114. Principal
  23115.     0R3S4S6S8S
  23116. FromPerson memo is from.
  23117.     0S0E
  23118.     0S0E
  23119. Encrypt
  23120.     0S0E
  23121. DefaultMailSaveOptions
  23122. $KeepPrivate
  23123. $KeepPrivate
  23124. $KeepPrivate
  23125.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  23126. Path_Info
  23127. Path_Info
  23128. $HideMailHeader
  23129.     0S0E
  23130. Bookmark
  23131. ?_?__
  23132. `!b`1
  23133. 7`^///?
  23134. ?b___
  23135. `bOOO
  23136. `<b!R
  23137.     0S0E
  23138. Close
  23139. Bookmark
  23140. Bookmark
  23141.     From:    
  23142. Principal
  23143. Principal
  23144. FromDomain
  23145. FromDomain
  23146. FromDomain
  23147. FromDomain
  23148.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  23149. FromName
  23150. Principal
  23151. Principal
  23152.     0RR1S2S9S11S15S
  23153. FromStops
  23154.     0R1S2S6S
  23155. FromName
  23156. FromStops
  23157. FromStops
  23158. FromStops
  23159.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  23160.      on 
  23161. PostedDateh
  23162. PostedDate
  23163.     4S5S10S12S
  23164. tmpDisplayDateTime/date memo was created or mailed.
  23165. ReplyDate
  23166. ReplyTo
  23167. $HideMailHeader
  23168.     2S3S4S5S6S7S9S10S
  23169. Please respond
  23170. ReplyTo
  23171. ReplyTo
  23172. ReplyDate
  23173. ReplyDate
  23174.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  23175. $HideMailHeader
  23176. Principal
  23177. Principal
  23178. Principal
  23179. Principal
  23180. Principal
  23181.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  23182.     Sent by:    
  23183. FromDomain
  23184. FromDomain
  23185. FromDomain
  23186. FromDomain
  23187.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  23188. FromName
  23189.     0RR1S2S6S
  23190. FromStops
  23191.     0R1S2S6S
  23192. FromName
  23193. FromStops
  23194. FromStops
  23195. FromStops
  23196.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  23197. SendTo
  23198. CopyTo
  23199.   cc:  
  23200. CopyTo
  23201.     1S8S13S14S2E17S18S21S28S31S
  23202. MailAddress
  23203. InheritedReplyToh
  23204. InheritedReplyTo
  23205. InheritedReplyTo
  23206. InheritedFrom
  23207.     1S2S8S9S10S11S13S15S
  23208. MailAddress
  23209.     0RR 
  23210. SendTo}
  23211.     0S0E
  23212. SendToList of primary people to send memo.
  23213. CopyTo}
  23214.     0S0E
  23215. CopyToList of people to send a copy of the memo.
  23216. DeliveredDate
  23217. BlindCopyTo
  23218. (bcc: 
  23219. BlindCopyTo
  23220.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpBlindCopyTo
  23221.     bcc:
  23222. BlindCopyTo
  23223.     0S0E
  23224. BlindCopyToList of undisclosed people to send copies of memo.
  23225.     Subject:
  23226. InheritedSubject
  23227. Subject
  23228. Subject
  23229. Topic
  23230. Topic
  23231. Title
  23232. Title
  23233. BriefDescriptionh
  23234. BriefDescription
  23235.     1S2S3S5R10S12R17S19R24S26R31S33R
  23236. Bookmark
  23237. InheritedSubjecth
  23238. InheritedSubject"
  23239.     0RR2S"
  23240. Subject
  23241.     0S0E
  23242. SubjectSubject of memo.
  23243.     Document Link Information:
  23244. InheritedDBTitle
  23245.     1S2S
  23246.     Database:    
  23247. InheritedDBTitle
  23248. InheritedDBTitle
  23249. InheritedSubject
  23250.     1S2S
  23251.     Document:    
  23252. InheritedSubject
  23253. InheritedSubject
  23254. FlowStatus
  23255.     1S2S
  23256.     Workflow status:    
  23257. FlowStatus
  23258. FlowStatus
  23259. DueDateTime
  23260.     1S2S
  23261.     Due date:    
  23262. DueDateTime
  23263. DueDateTime
  23264.       You may open the document by clicking on this link.
  23265. Edit Document
  23266. Forwardi 
  23267.     0S0E
  23268. New Memo.
  23269.     0S0E
  23270. Delete 
  23271.     0S0E
  23272. _Move To Folder...
  23273. Delivery Information...@z
  23274. DeliveryInfo
  23275. Delivery Information
  23276.     4S5S6S7S8S9S10S12S
  23277. _Forward
  23278. Reply
  23279. Reply
  23280.     0S0E
  23281. Reply With History
  23282. Reply with History
  23283. This document is truncated.
  23284.     4S8S10S13S
  23285. Reply with history
  23286. Address... 
  23287.     0S0E
  23288. PostedDateh
  23289.     5S6S7S8S
  23290. CloseI 
  23291.     0S0E
  23292. PostedDateY
  23293.     0S0E
  23294. Save As Draft
  23295. tmpAction
  23296. SaveAsDraft
  23297.     1S2S3S
  23298. PostedDateh
  23299.     0S0E
  23300. PromptValue
  23301. DefaultMailSaveOptions
  23302. Save when sent
  23303. Do you wish to save a copy of this Memo?
  23304. DefaultMailSaveOptions
  23305.     1S2S5S6S8S14S17S
  23306. SaveOptions
  23307. PromptValue
  23308. SaveOptions
  23309. PromptValue
  23310.     0RR1S2S5S6S9S14S
  23311. tmpAction
  23312. DefaultMailSaveOptions
  23313. Mailing
  23314.     0RR1S2S3S6S7S9S11S
  23315. MailOptions
  23316.     0R1S2S3S
  23317.     0R7S9S
  23318. tmpAction
  23319. SaveOptions
  23320. SendAndFile
  23321.     0RR1S2S3S6S7S9S11S
  23322.     0R7S9S
  23323. PostedDateh
  23324.     5S6S7S8S
  23325. Send And File...
  23326.     4S11S13S19S
  23327.     0RR7S9S
  23328. tmpAction
  23329. DefaultMailSaveOptions
  23330. Mailing
  23331.     0RR1S2S3S6S7S9S11S
  23332. MailOptions
  23333.     0R1S2S3S
  23334.     0R7S9S
  23335. tmpAction
  23336. SendAndFile
  23337.     0RR1S2S3S
  23338.     0R7S9S
  23339. PostedDateh
  23340.     5S6S7S8S
  23341. Delivery Options...#
  23342. DeliveryOptions
  23343. Delivery Options
  23344.     4S8S
  23345. _ViewIcon
  23346. SenderTag
  23347. SenderTag
  23348. SenderTag
  23349. SenderTag
  23350. SenderTag
  23351. SenderTag
  23352. SenderTag
  23353. SenderTag
  23354. SenderTag
  23355. SenderTag
  23356. SenderTag
  23357.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  23358. PostedDateh
  23359.     5S6S7S8S
  23360. Special Options...
  23361. ReplyDate
  23362. ReplyDate
  23363.     1S2S3S
  23364. ReplyTo
  23365. ReplyTo
  23366.     0R1S2S3S
  23367. (Advanced Options)
  23368. Special Options
  23369.     0R6S10S13S15S
  23370. tmpDisplayReplyInfo
  23371. Please respond
  23372. ReplyTo
  23373. ReplyTo
  23374. ReplyDate
  23375. ReplyDate
  23376.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  23377. DueDateTime
  23378. ReplyDate
  23379.     0R1S2S3S
  23380. PostedDateh
  23381.     5S6S7S8S
  23382. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  23383. '++LotusScript Development Environment:2:5:(Forward):0:1
  23384. Declare Sub Click(Source As Button)
  23385. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23386. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23387. Private Sub BindEvents(Byval Objectname_ As String)
  23388.      Static Source As BUTTON
  23389.      Set Source = Bind(Objectname_)
  23390.      On Event Click From Source Call Click
  23391. End Sub
  23392. '++LotusScript Development Environment:2:2:Click:1:12
  23393. Sub Click(Source As Button)
  23394.      Call CreateNewDoc(NEW_MEMO)
  23395. End Sub
  23396. tmpnewdoc
  23397.     1S2S
  23398. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  23399. '++LotusScript Development Environment:2:5:(Forward):0:1
  23400. Declare Sub Click(Source As Button)
  23401. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23402. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23403. Private Sub BindEvents(Byval Objectname_ As String)
  23404.      Static Source As BUTTON
  23405.      Set Source = Bind(Objectname_)
  23406.      On Event Click From Source Call Click
  23407. End Sub
  23408. '++LotusScript Development Environment:2:2:Click:1:12
  23409. Sub Click(Source As Button)
  23410.      Call CreateNewDoc(NEW_CALENDAR)
  23411. End Sub
  23412. tmpnewdoc
  23413.     1S2S
  23414. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  23415. '++LotusScript Development Environment:2:5:(Forward):0:1
  23416. Declare Sub Click(Source As Button)
  23417. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23418. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23419. Private Sub BindEvents(Byval Objectname_ As String)
  23420.      Static Source As BUTTON
  23421.      Set Source = Bind(Objectname_)
  23422.      On Event Click From Source Call Click
  23423. End Sub
  23424. '++LotusScript Development Environment:2:2:Click:1:12
  23425. Sub Click(Source As Button)
  23426.      Call CreateNewDoc(NEW_TASK)
  23427. End Sub
  23428. tmpnewdoc
  23429.     1S2S
  23430. Copy into\New Group3,
  23431. NewGroup
  23432.     0S0E
  23433. tmpnewdoc
  23434.     1S2S
  23435. _Remove From Folder...
  23436. Categori_ze
  23437. SSend.
  23438. Memo&
  23439. Reply
  23440. Reply
  23441. Trash@*
  23442.     1S2S10S14S16S19S21S
  23443. /wCommand?OpenAgent&ToTrash=
  23444. &From="
  23445.     0R1S2S3S4S11S13S15S16S
  23446. Path_Info
  23447. Path_Info
  23448.     0R1S2S6S10S11S15S
  23449. view1
  23450.     0R1S2S3S10S14S18S21S
  23451. view2
  23452. view1
  23453. view1
  23454. view1
  23455.     0R1S2S3S10S14S18S21S
  23456. path"
  23457. view2
  23458.     0RR3S4S5S6S7S8S
  23459. File&
  23460.     1S2S10S14S16S19S21S
  23461. /wFolders?OpenForm&UNID=
  23462. &View="
  23463.     0R1S2S3S4S11S13S15S16S
  23464. Path_Info
  23465. Path_Info
  23466.     0R1S2S6S10S11S15S
  23467. view1
  23468.     0R1S2S3S10S14S18S21S
  23469. view2
  23470. view1
  23471. view1
  23472. view1
  23473.     0R1S2S3S10S14S18S21S
  23474. path"
  23475. view2
  23476.     0RR3S4S5S6S7S8S
  23477. In Box*
  23478. ($InBox)
  23479. Calendar
  23480.     1S2S10S14S16S19S21S
  23481. path"
  23482. /($Calendar)?OpenView&Grid=
  23483. CalendarProfile
  23484. wCalGridType
  23485.     0R3S4S5S6S7S8S12S
  23486. Meetings.
  23487. ($Meetings)
  23488. To Doe*
  23489. ($ToDo)
  23490. All Viewso"
  23491. O=Lotus Notes
  23492. O=Lotus Notes
  23493. PURSAFO
  23494. |.:#U
  23495. O=Lotus Notes
  23496. CN=Lotus Notes Template Development/O=Lotus Notes
  23497. PURSAFO
  23498. t7u*-9
  23499. eL/);
  23500. $$FormPostOpenAction
  23501. ExpireDate
  23502. ReplyDate
  23503. $TypeIcon
  23504. ReplyNumber
  23505. ComposedDate
  23506. DueDate
  23507. $TITLE
  23508. $AUTOLAUNCH
  23509. $INFO
  23510. $WINDOWTITLE
  23511. $Script
  23512. $$Script_O
  23513. $$ScriptName
  23514. $$FormScript
  23515. $$$FormScript_O
  23516. DueDateTime
  23517. $BODY
  23518. $ACTIONS
  23519. $SCRIPTOBJ_16
  23520. $SCRIPTOBJ_17
  23521. $SCRIPTOBJ_18
  23522. $UpdatedBy$ACLDigest$Signature$Name$DesignVersion$Version$Formula$FormulaClass$Collation$LeftToDo$TITLE$AssistType$AssistLastRun$AssistDocCount$AssistFlags$AssistTrigger$AssistInfo$AssistQuery$AssistAction$AssistAction_Ex$PublicAccess$Flags$AssistRunInfo$AssistVersion$TYPE$Operation$Scan$DBScript$DBScript_O$INFO$Fonts$BODY$TemplateModTime$TemplateServerName$TemplateFileNameIconBitmap$FlagsNoRefresh$SCRIPTOBJ_11$Index$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_22tmpResourcestmpChairpersontmpSentByImportanceDeliveryReporttmpSenderTagDeliveryPriorityReturnReceiptLogoorigDomainOriginatorOriginalRouteListRemainingRouteListNotifyReplyToSMTPEncodingMailFormatRepeatEndRepeatStartOrgRepeatRepeatAdjust_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$AUTOLAUNCHSaveOptionsLetterHeadChoicesOwnerPublicReadReadCalendarPublicWriteWriteCalendarReadMailWriteMailEditMailDeleteMailDelegateAlertAssigneeAlertSelfAssignedDueDateTimeAssignedTotmpStartDatetmpEndDateNewDateNewTimeRangeReasonNewRoomStatusUpdateFormtmpNewStarttmpNewEnd$SCRIPTOBJ_4$SCRIPTOBJ_5$SCRIPTOBJ_14$SCRIPTOBJ_15AppointmentTypeBookFreeTimeOrgConfidentialBroadcast$ExpandGroups$SCRIPTOBJ_7$SCRIPTOBJ_24$SCRIPTOBJ_25ReplyNumber$SubFormsInheritedSendToInheritedReplyToInheritedFromInheritedFromDomain$$XMB_2$$XMB_3$OLEObjField$OLEObjRichTextFieldOLEBody$Collation1$Collation2$SCRIPTOBJ_12$ViewGlobalScript$TABLEFORMAT$CalendarFormat$ViewScript$ViewScript_O$Author$FolderObject$FolderIDTable$ScriptLib$ScriptLib_ODeliveryDatePath_InfoDueDateInheritedDBTitleInheritedSubjectFlowStatus$SCRIPTOBJ_16$SCRIPTOBJ_17SundayStart_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$AvailableDays$ReplVersion$ReplSrcServers$ReplClassMasks$ReplFormula$ReplView$ReplPrivateFolder$ReplFields
  23523. &Arial
  23524. Owner
  23525. Calendar Profile
  23526. Calendar Profile for 
  23527. Owner
  23528.     3S4S5S6S7S8S9S10S'++LotusScript Development Environment:2:5:(Options):0:74
  23529. Option Public
  23530. '++LotusScript Development Environment:2:5:(Forward):0:1
  23531. Declare Sub Terminate
  23532. Declare Function IsValidDateRange(FieldName As String) As Integer
  23533. '++LotusScript Development Environment:2:5:(Declarations):0:10
  23534. Dim uidoc As NotesUIDocument
  23535. Dim session As NotesSession
  23536. Dim trdr As NotesDateRange
  23537. Dim note As NotesDocument
  23538. Dim db As NotesDatabase
  23539. Dim acl As NotesAcl
  23540. Dim aclentry As NotesAclEntry
  23541. Dim namelookup As NotesName
  23542. Dim DoNotEdit As Integer
  23543. '++LotusScript Development Environment:2:2:Terminate:1:10
  23544. Sub Terminate
  23545.      
  23546. End Sub
  23547. '++LotusScript Development Environment:2:1:IsValidDateRange:1:8
  23548. Function IsValidDateRange(FieldName As String) As Integer
  23549. 'returns true if the given date range is valid, false otherwise
  23550.      Dim datetime As String
  23551.      
  23552.      On Error Goto ErrorRoutine
  23553.      
  23554.      IsValidDateRange = True
  23555.      datetime = uidoc.FieldGetText(FieldName)
  23556.      trdr.Text = datetime
  23557.      Exit Function
  23558.      
  23559. ErrorRoutine:
  23560.      IsValidDateRange = False
  23561.      Exit Function
  23562. End Function
  23563.  CalendarProfile'++LotusScript Development Environment:2:5:(Options):0:66
  23564. '++LotusScript Development Environment:2:5:(Forward):0:1
  23565. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  23566. Declare Sub Postopen(Source As Notesuidocument)
  23567. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  23568. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23569. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23570. Private Sub BindEvents(Byval Objectname_ As String)
  23571.      Static Source As NOTESUIDOCUMENT
  23572.      Set Source = Bind(Objectname_)
  23573.      On Event Querysave From Source Call Querysave
  23574.      On Event Postopen From Source Call Postopen
  23575.      On Event Querymodechange From Source Call Querymodechange
  23576. End Sub
  23577. '++LotusScript Development Environment:2:2:Querysave:1:12
  23578. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  23579.      
  23580.      If (note.Sunday(0) = "1") Then
  23581.           If Not (IsValidDateRange("$Times1")) Then
  23582.                Messagebox "You must enter a valid date-range for Sunday.",0,"Error"
  23583.                continue = False
  23584.                Exit Sub      
  23585.           End If
  23586.      End If
  23587.      
  23588.      If (note.monday(0) = "2") Then
  23589.           If Not (IsValidDateRange("$Times2")) Then
  23590.                Messagebox "You must enter a valid date-range for Monday.",0,"Error"
  23591.                continue = False
  23592.                Exit Sub      
  23593.           End If
  23594.      End If
  23595.      
  23596.      If (note.tuesday(0) = "3") Then
  23597.           If Not (IsValidDateRange("$Times3")) Then
  23598.                Messagebox "You must enter a valid date-range for Tuesday.",0,"Error"
  23599.                continue = False
  23600.                Exit Sub      
  23601.           End If
  23602.      End If
  23603.      
  23604.      If (note.Wednesday(0) = "4") Then
  23605.           If Not (IsValidDateRange("$Times4")) Then
  23606.                Messagebox "You must enter a valid date-range for Wednesday.",0,"Error"
  23607.                continue = False
  23608.                Exit Sub      
  23609.           End If
  23610.      End If
  23611.      
  23612.      If (note.Thursday(0) = "5") Then
  23613.           If Not (IsValidDateRange("$Times5")) Then
  23614.                Messagebox "You must enter a valid date-range for Thursday.",0,"Error"
  23615.                continue = False
  23616.                Exit Sub      
  23617.           End If
  23618.      End If
  23619.      
  23620.      If (note.Friday(0) = "6") Then
  23621.           If Not (IsValidDateRange("$Times6")) Then
  23622.                Messagebox "You must enter a valid date-range for Friday.",0,"Error"
  23623.                continue = False
  23624.                Exit Sub      
  23625.           End If
  23626.      End If
  23627.      
  23628.      If (note.Saturday(0) = "7") Then
  23629.           If Not (IsValidDateRange("$Times7")) Then
  23630.                Messagebox "You must enter a valid date-range for Saturday.",0,"Error"
  23631.                continue = False
  23632.                Exit Sub      
  23633.           End If
  23634.      End If
  23635.      
  23636.      
  23637. End Sub
  23638. '++LotusScript Development Environment:2:2:Postopen:1:12
  23639. Sub Postopen(Source As Notesuidocument)
  23640.      
  23641.      Set note = source.Document
  23642.      Set session = New NotesSession
  23643.      Set trdr  = session.CreateDateRange
  23644.      Set uidoc = source
  23645.      Set db = session.CurrentDatabase
  23646.      
  23647. 'if you are less than an Author you cannot edit
  23648.      If db.CurrentAccessLevel < ACLLEVEL_AUTHOR Then
  23649.           DoNotEdit = True
  23650.           source.EditMode = False
  23651.      End If
  23652.      
  23653.      If source.EditMode Then Call source.Refresh
  23654.      
  23655. End Sub
  23656. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  23657. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  23658.      If DoNotEdit And source.EditMode = False Then continue = False
  23659. End Sub
  23660. UserAccess
  23661.     1S2S11S
  23662. EnableAlarms
  23663.     0R3S4S6S11S
  23664. AutoProcessMeetings
  23665. AutoProcessMeetings
  23666.     0R1S2S3S
  23667. AutoProcessMeetings
  23668. AutoProcessNotices
  23669. UserAccess
  23670. AutoProcessMeetings
  23671. Autoprocess
  23672. You are not authorized to enable the Autoprocessing agent.  Please contact a designer or manager of this database.
  23673. AutoProcessNotices
  23674. AutoProcessMeetings
  23675. AutoProcessMeetings
  23676. AutoProcessNotices
  23677. UserAccess
  23678. AutoProcessMeetings
  23679. Autoprocess
  23680. You are not authorized to disable the Autoprocessing agent.  Please contact a designer or manager of this database.
  23681. AutoProcessNotices
  23682. AutoProcessMeetings
  23683.     0R3S4S5S6S12RS6E15S16S18RS12E20RS21E27RS21E32RS21E38S40S43RS21E45RS6E59RS12E61RS21E68RS21E72RS21E74RS12E78R79S80S81S82S87RS6E90S91S93RS12E95RS21E102RS21E107RS21E113S115S118RS21E120RS6E134RS12E136RS21E143RS21E147RS21E149RS12E153R
  23684. '++LotusScript Development Environment:2:5:(Options):0:66
  23685. '++LotusScript Development Environment:2:5:(Forward):0:1
  23686. Declare Sub Exiting(Source As Field)
  23687. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23688. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23689. Private Sub BindEvents(Byval Objectname_ As String)
  23690.      Static Source As FIELD
  23691.      Set Source = Bind(Objectname_)
  23692.      On Event Exiting From Source Call Exiting
  23693. End Sub
  23694. '++LotusScript Development Environment:2:2:Exiting:1:12
  23695. Sub Exiting(Source As Field)
  23696.      
  23697. End Sub
  23698. *.PCX
  23699. TIFF 5.0 
  23700. .0/6.1
  23701. *.WPD;*.W
  23702. _ITIFF
  23703. Calendar Profile
  23704. Mail File Owner: 
  23705. OwnerEnter the name of the person who owns this mail file.
  23706. Delegation Profile
  23707. You are not authorized to access the Delegation Profile.
  23708. EditDelegationProfile
  23709.     11S14S15S17S23S25S29R33S
  23710.     Allow other users to view your calendar...
  23711. Scheduling Options
  23712.     Default appointment/meeting duration:
  23713. DefaultDuration
  23714. DefaultDuration
  23715. DefaultDuration
  23716.     3S4S5S6S8S9S10S12S14SDefaultDuration
  23717. EnableAlarms
  23718. Enable alarm notifications|1
  23719. EnableAlarms
  23720.     1S2S
  23721. AutoSetAlarms
  23722. Automatically set alarm(s) for:|1
  23723. AutoSetAlarms
  23724. EnableAlarms
  23725.     1S2S3S4S5S6S
  23726. SetAlarmAppointment
  23727. Appointments/Meetings|1
  23728. AppointmentLead
  23729. AppointmentLead
  23730.     3S4S5S6S8S
  23731. AppointmentLead
  23732. AppointmentLead
  23733.     3S4S5S6S8S
  23734. AppointmentLead
  23735.     minute(s) in advance
  23736. SetAlarmReminder
  23737. Reminders|1
  23738. ReminderLead
  23739. ReminderLead
  23740.     3S4S5S6S8S
  23741. ReminderLead
  23742. ReminderLead
  23743.     3S4S5S6S8S
  23744. ReminderLead
  23745.      minute(s) in advance
  23746. SetAlarmEvent
  23747. Events|1
  23748. EventLead
  23749. EventLead
  23750.     3S4S5S6S8S
  23751. EventLead
  23752. EventLead
  23753.     3S4S5S6S8S
  23754. EventLead
  23755.     day(s) in advance
  23756. SetAlarmAnniversary
  23757. Anniversaries|1
  23758. AnniversaryLead
  23759. AnniversaryLead
  23760.     3S4S5S6S8S
  23761. AnniversaryLead
  23762. AnniversaryLead
  23763.     3S4S5S6S8S
  23764. AnniversaryLead
  23765.     day(s) in advance
  23766. Freetime Options
  23767.     Only the following users can
  23768.     read my Freetime Schedule:    
  23769. AllowBusyAccess
  23770. AllowBusyAccess
  23771. Owner
  23772.     6S7S8S9S12S13S16SAllowBusyAccessEnter the names of users who can read your freetime schedule; leave this field blank to give everyone access.
  23773.     Allowable free times:
  23774. Sunday
  23775. Sunday:|1
  23776. Sunday
  23777.     1S2S
  23778.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  23779. $Times1
  23780. $Times1
  23781.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  23782. textdate
  23783. $Times1
  23784.     0S0E
  23785. list1
  23786. textdate
  23787. list2
  23788. textdate
  23789. date1
  23790. list1
  23791. date2
  23792. list2
  23793. result
  23794. date2
  23795. date1
  23796. result
  23797. result
  23798. Invalid time range for Sunday.  Ranges may not span days.
  23799.     0R4S5S7S8S10S11S
  23800. $Times1
  23801. Monday
  23802. Monday:|2
  23803. Monday
  23804.     1S2S
  23805.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  23806. $Times2
  23807. $Times2
  23808.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  23809. textdate
  23810. $Times2
  23811.     0S0E
  23812. list1
  23813. textdate
  23814. list2
  23815. textdate
  23816. date1
  23817. list1
  23818. date2
  23819. list2
  23820. result
  23821. date2
  23822. date1
  23823. result
  23824. result
  23825. Invalid time range for Monday.  Ranges may not span days.
  23826.     0R4S5S7S8S10S11S
  23827. $Times2
  23828. Tuesday
  23829. Tuesday:|3
  23830. Tuesday
  23831.     1S2S
  23832.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  23833. $Times3
  23834. $Times3
  23835.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  23836. textdate
  23837. $Times3
  23838.     0S0E
  23839. list1
  23840. textdate
  23841. list2
  23842. textdate
  23843. date1
  23844. list1
  23845. date2
  23846. list2
  23847. result
  23848. date2
  23849. date1
  23850. result
  23851. result
  23852. Invalid time range for Tuesday.  Ranges may not span days.{
  23853.     0R4S5S7S8S10S11S
  23854. $Times3
  23855. Wednesday
  23856. Wednesday:|4
  23857. Wednesday
  23858.     1S2S
  23859.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  23860. $Times4
  23861. $Times4
  23862.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  23863. textdate
  23864. $Times4
  23865.     0S0E
  23866. list1
  23867. textdate
  23868. list2
  23869. textdate
  23870. date1
  23871. list1
  23872. date2
  23873. list2
  23874. result
  23875. date2
  23876. date1
  23877. result
  23878. result
  23879. Invalid time range for Wednesday.  Ranges may not span days.{
  23880.     0R4S5S7S8S10S11S
  23881. $Times4
  23882. Thursday
  23883. Thursday:|5
  23884. Thursday
  23885.     1S2S
  23886.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  23887. $Times5
  23888. $Times5
  23889.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  23890. textdate
  23891. $Times5
  23892.     0S0E
  23893. list1
  23894. textdate
  23895. list2
  23896. textdate
  23897. date1
  23898. list1
  23899. date2
  23900. list2
  23901. result
  23902. date2
  23903. date1
  23904. result
  23905. result
  23906. Invalid time range for Thursday.  Ranges may not span days.
  23907.     0R4S5S7S8S10S11S
  23908. $Times5
  23909. Friday
  23910. Friday:|6
  23911. Friday
  23912.     1S2E2S
  23913.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  23914. $Times6
  23915. $Times6
  23916.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  23917. textdate
  23918. $Times6
  23919.     0S0E
  23920. list1
  23921. textdate
  23922. list2
  23923. textdate
  23924. date1
  23925. list1
  23926. date2
  23927. list2
  23928. result
  23929. date2
  23930. date1
  23931. result
  23932. result
  23933. Invalid time range for Friday.  Ranges may not span days.
  23934.     0R4S5S7S8S10S11S
  23935. $Times6
  23936. Saturday
  23937. Saturday:|7
  23938. Saturday
  23939.     1S2E2S
  23940.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  23941. $Times7
  23942. $Times7
  23943.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  23944. textdate
  23945. $Times7
  23946.     0S0E
  23947. list1
  23948. textdate
  23949. list2
  23950. textdate
  23951. date1
  23952. list1
  23953. date2
  23954. list2
  23955. result
  23956. date2
  23957. date1
  23958. result
  23959. result
  23960. Invalid time range for Saturday.  Ranges may not span days.
  23961.     0R4S5S7S8S10S11S
  23962. $Times7
  23963. Advanced Calendar Options
  23964. Autoprocessing Options
  23965. AutoProcessMeetings
  23966. Meetings|1
  23967. AutoRemoveFromInbox
  23968. Remove Invitations from my Inbox after I respond to them|1
  23969. AutoProcessMeetings
  23970.     0S0E
  23971.     Autoprocess Meetings only from the following people:
  23972. MeetingsPeople
  23973. Calendar Entry Options
  23974.     Default settings:
  23975.     Calendar entry type:
  23976. CalEntryType
  23977. CalEntryType
  23978.     3S4S5S6S8S
  23979. CalEntryType
  23980. Appointment|0Invitation|3Event|2Reminder|4Anniversary|1
  23981. CalEntryHide
  23982. Hide new Calendar Entries from public viewing|1
  23983.     Enable conflict checking for:
  23984. ConflictMeeting
  23985. Appointments/Meetings|1
  23986. ConflictAnniv
  23987. Anniversaries|1
  23988. ConflictEvent
  23989. Events|1
  23990. Owner
  23991. $BusyName
  23992. $NoPurge
  23993. $NoPurge
  23994. Sunday
  23995. Monday
  23996. Tuesday
  23997. Wednesday
  23998. Thursday
  23999. Friday
  24000. Saturday
  24001.     0S0E
  24002. $AvailableDays
  24003. $PublicAccess
  24004. _Edit Document
  24005. _Forward
  24006.     0S0E
  24007. CancelF
  24008. SaveOptions
  24009.     1S2S3S
  24010. Categori_zeK
  24011. Send Docu_ment
  24012. _Move To Folder...
  24013. _Remove From FolderK
  24014. O=Lotus Notes
  24015. O=Lotus Notes
  24016. PURSAFO
  24017. |.:#U
  24018. O=Lotus Notes
  24019. CN=Lotus Notes Template Development/O=Lotus Notes
  24020. PURSAFO
  24021. 0nIC? C
  24022. SundayStart_1
  24023. SundayEnd_1
  24024. SundayStart_2
  24025. SundayEnd_2
  24026. SundayStart_3
  24027. SundayEnd_3
  24028. SundayStart_4
  24029. SundayEnd_4
  24030. SundayStart_5
  24031. SundayEnd_5
  24032. SundayStart_6
  24033. SundayEnd_6
  24034. TaskLead
  24035. TimeSlotStart
  24036. TimeSlotEnd
  24037. TimeSlotInterval
  24038. SundayStart
  24039. SundayEnd
  24040. MondayStart
  24041. MondayEnd
  24042. TuesdayStart
  24043. TuesdayEnd
  24044. WednesdayStart
  24045. WednesdayEnd
  24046. ThursdayStart
  24047. ThursdayEnd
  24048. FridayStart
  24049. FridayEnd
  24050. SaturdayStart
  24051. SaturdayEnd
  24052. $SundayTimes
  24053. $MondayTimes
  24054. $TuesdayTimes
  24055. $WednesdayTimes
  24056. $ThursdayTimes
  24057. $FridayTimes
  24058. $SaturdayTimes
  24059. $1Times
  24060. $2Times
  24061. $3Times
  24062. $4Times
  24063. $5Times
  24064. $6Times
  24065. $7Times
  24066. $FormPublicAccess
  24067. $TITLE
  24068. $INFO
  24069. $WINDOWTITLE
  24070. $Script
  24071. $$Script_O
  24072. $$ScriptName
  24073. $$FormScript
  24074. $$$FormScript_O
  24075. $$FormAction2
  24076. $$$Times1
  24077. $$Times1_O
  24078. DefaultDuration
  24079. AppointmentLead
  24080. ReminderLead
  24081. EventLead
  24082. AnniversaryLead
  24083. $Times1
  24084. $Times2
  24085. $Times3
  24086. $Times4
  24087. $Times5
  24088. $Times6
  24089. $Times7
  24090. $BODY
  24091. $ACTIONS
  24092. $PublicAccess
  24093.