home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April A / Pcwk4a98.iso / Lotus / Domino46 / LOTUS017.DSK / MAILC46.NTF (.txt) < prev    next >
Lotus Notes Database  |  1997-09-15  |  3MB  |  36,019 lines

  1. Mail - Combined (R4.6)
  2. #1StdR46ComboMail
  3. $FolderInfo
  4. $FolderRefInfo
  5. FOLDER_DIRECTORY_OBJECT
  6. ($Alarms)|$Alarms
  7. ($Inbox)
  8. ($Trash)
  9. CN=Lotus Notes Template Development/O=Lotus Notes
  10. ok 7^
  11. qHmvO
  12. GpZ_QU
  13. !X%`P
  14. P5~K-!W
  15. CN=bogus/O=bogusCN=Lotus Notes Template Development/O=Lotus Notes
  16. CN=Harry Peebles/O=Irisc:\notesdevo\data\xfer.ntfJMail - Combined (R4.6)
  17. #1StdR46ComboMail
  18. CN=Harry Peebles/O=Iris
  19. qWYw{Y
  20. #######################################################
  21. CN=bogus/O=bogusCN=Lotus Notes Template Development/O=Lotus Notes
  22. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  23. (Delivery Report)Delivery Report
  24. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################
  25. (Return Receipt)Return Receipt
  26. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############################
  27. (ReturnNonReceipt)ReturnNonReceipt
  28. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################
  29. (Trace Report)Trace ReportCD
  30. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##############################
  31. _Special\BookmarkBookmark
  32. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########
  33. Discussion Threads|Threads1
  34. $39$13
  35. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########
  36. CN=Ryan Jansen/O=IrisCN=user1 test/O=C&SCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesAppointmentResponsess34Q1###############################################
  37. Times New Roman
  38. Using Mail
  39.     Creating a Mail Message
  40.     There are three simple forms for creating a new mail message:
  41.     Memo 
  42.     - Use this form to create a new message
  43.     Reply 
  44.     - Use this form to reply to a message that you have received. This form will work only when you have selected a document to reply to.
  45.     Reply With History
  46.      - This is
  47.     similar to a Reply, except that a copy of the message being replied to will be automatically copied into your new message.
  48.     Before you send a message you must fill in the following information:
  49.      - The primary recipients of the message. The content of the message is directed to them or they must take action on this message.
  50.      - Recipients who will receive a copy of the message, but are not usually required to take action on it.
  51.     bcc:
  52.      - Recipients who will receive a blind copy of this message.
  53.     You can send a message by choosing the "Send" action.
  54.     Calendaring and Scheduling
  55.     This database can also be used to organize your time, keep a list of tasks and meetings, and create the following kinds of information to share with other Mail users:
  56.     Calendar Entry - 
  57.     Use the Calendar Entry form for both personal appointments and for scheduling meetings with people. Select the Invitation radio-button to schedule a meeting with others.  You can send meeting announcements, select Required and Optional attendees, and find free time slots for the people whom you invite.  
  58.     Bookmark 
  59.     - Use this form to send another Mail user a reference to a document. It is most useful when reading documents in a database that is shared with others on a server. For example, if you are reading a Discussion database and find a document that may be of use to someone else, creating a Bookmark message will allow that person to find the document very easily.
  60.     Phone Message 
  61.     - Use this form to take a message for another Mail user.
  62.     Task 
  63.     - Use this form to remind yourself of something that you need to do, or to ask another person to do something for you. If you send a Task to another Mail user, or to several users, they will be able to notify you when they have completed the Task. 
  64.     A special view (see below) has been provided to help you organize your Tasks and Tasks that you have assigned to other people.
  65.     A Calendar Profile will automatically be created for you with default settings.  The Calendar Profile lets you decide who can view your free time schedule as well as define personal Calendar settings.  Use Actions Calendar Tools Calendar Profile to change your Calendar Profile settings.
  66.     Folders and Views
  67.     The following views and folders are provided for you:
  68. Inbox 
  69.     Messages that have been sent to you by another Mail user will appear here.
  70. Calendar - 
  71.     This view looks like a desktop calendar.  Appointments you have scheduled will be displayed in two day, one week, two week, or one month calendar pages.
  72.     Drafts - 
  73.     Messages that you have created and saved, but have not yet sent, will appear here.
  74.     Sent 
  75.     - Messages will appear here if you after you have sent them. You can decide whether you want messages saved here automatically or whether you should be asked before a message is saved.
  76.     Trash 
  77.     - Messages that you have marked for deletion will appear here.
  78.     Tasks 
  79.     - Tasks that you have created for yourself and Tasks that you have assigned to other people will appear here. This view will also help you keep track of which Tasks have been completed and when.
  80.     Meetings 
  81.     - Invitations to meetings and responses that people have returned to you will appear here.
  82.     In addition, you can create your own folders and views to help organize your Mail database.
  83. O=Lotus Notes
  84. O=Lotus Notes
  85. PURSAFO
  86. |.:#U
  87. O=Lotus Notes
  88. CN=Lotus Notes Template Development/O=Lotus Notes
  89. PURSAFO
  90. Fde!f^^
  91. Om=RK
  92. $INFO
  93. $BODY
  94. Times New Roman
  95. About Mail
  96.     The Mail template is used to create a database to send and receive electronic mail using Notes. The template can be used to create a mail database either on a local workstation or on a server. 
  97.     The Mail template also contains Calendaring and Scheduling features which can be used for personal time management, meeting and appointment scheduling, or to delegate work to other people. The Calendar View provides a desktop calendar for ease in viewing scheduled appointments.
  98.     Please consult Help/Help Topics for more information on how to use the features of the Mail template.
  99. O=Lotus Notes
  100. O=Lotus Notes
  101. PURSAFO
  102. |.:#U
  103. O=Lotus Notes
  104. CN=Lotus Notes Template Development/O=Lotus Notes
  105. PURSAFO
  106. Fde!f^^
  107. $INFO
  108. $BODY
  109. O=Lotus Notes
  110. O=Lotus Notes
  111. PURSAFO
  112. |.:#U
  113. O=Lotus Notes
  114. CN=Lotus Notes Template Development/O=Lotus Notes
  115. PURSAFO
  116. Fde!f^^
  117. $ACLDigest
  118. *** Message Successfully Delivered ***
  119.  Delivery Report
  120. Delivery Confirmation Report
  121.     Your document:
  122. Subject
  123. Subject
  124.     was delivered to:
  125. IntendedRecipient
  126. IntendedRecipient
  127. DeliveryDate
  128. BodyBody of memo.
  129.     Always Hidden:
  130. Path_Info
  131. Path_Info
  132. Categori_ze
  133. Close
  134.     0S0E
  135. _Edit Document
  136. Send Docu_ment
  137. _Forward
  138. _Move to Folder...
  139. _Remove from Folder...
  140. Trash
  141.     1S2S8S12S14S
  142. /wCommand?OpenAgent&ToTrash=
  143. &From="
  144.     0R1S2S3S4S11S13S15S16S
  145. Path_Info
  146. Path_Info
  147.     0R1S2S6S10S11S15S
  148. view1
  149.     0R1S2S3S10S14S18S21S
  150. view2
  151. view1
  152. view1
  153. view1
  154.     0R1S2S3S10S14S18S21S
  155. path"
  156. view2
  157.     0RR3S4S5S6S7S8S
  158.     1S2S8S12S14S
  159. /wFolders?OpenForm&UNID=
  160. &View="
  161.     0R1S2S3S4S11S13S15S16S
  162. Path_Info
  163. Path_Info
  164.     0R1S2S6S10S11S15S
  165. view1
  166.     0R1S2S3S10S14S18S21S
  167. view2
  168. view1
  169. view1
  170. view1
  171.     0R1S2S3S10S14S18S21S
  172. path"
  173. view2
  174.     0RR3S4S5S6S7S8S
  175. In Box*
  176. ($Inbox)
  177. Calendar.
  178. ($Calendar)
  179. Meetings.
  180. ($Meetings)
  181. To Do
  182. ($ToDo)
  183. All Viewsu"
  184. O=Lotus Notes
  185. O=Lotus Notes
  186. PURSAFO
  187. |.:#U
  188. O=Lotus Notes
  189. CN=Lotus Notes Template Development/O=Lotus Notes
  190. PURSAFO
  191. Fde!f^^
  192. $TITLE
  193. $INFO
  194. $WINDOWTITLE
  195. $$ScriptName
  196. DeliveryDate
  197. $BODY
  198. $ACTIONS
  199. *** Message Successfully Received ***
  200.  Return Receipt
  201. Return Receipt
  202.         Your document:
  203. Subject
  204. Subject
  205.         was received by:
  206. IntendedRecipient
  207. IntendedRecipient
  208.         at:
  209. DeliveryDate
  210.     Always Hidden:
  211. Path_Info
  212. Path_Info
  213. Categori_ze
  214. Close" 
  215.     0S0E
  216. _Edit Document
  217. Send Docu_ment
  218. _Forward
  219. _Move to Folder...
  220. _Remove from Folder...
  221. Trash
  222.     1S2S8S12S14S
  223. /wCommand?OpenAgent&ToTrash=
  224. &From="
  225.     0R1S2S3S4S11S13S15S16S
  226. Path_Info
  227. Path_Info
  228.     0R1S2S6S10S11S15S
  229. view1
  230.     0R1S2S3S10S14S18S21S
  231. view2
  232. view1
  233. view1
  234. view1
  235.     0R1S2S3S10S14S18S21S
  236. path"
  237. view2
  238.     0RR3S4S5S6S7S8S
  239.     1S2S8S12S14S
  240. /wFolders?OpenForm&UNID=
  241. &View="
  242.     0R1S2S3S4S11S13S15S16S
  243. Path_Info
  244. Path_Info
  245.     0R1S2S6S10S11S15S
  246. view1
  247.     0R1S2S3S10S14S18S21S
  248. view2
  249. view1
  250. view1
  251. view1
  252.     0R1S2S3S10S14S18S21S
  253. path"
  254. view2
  255.     0RR3S4S5S6S7S8S
  256. In Box*
  257. ($Inbox)
  258. Calendar.
  259. ($Calendar)
  260. Meetings.
  261. ($Meetings)
  262. To Doe*
  263. ($ToDo)
  264. All Viewsu"
  265. O=Lotus Notes
  266. O=Lotus Notes
  267. PURSAFO
  268. |.:#U
  269. O=Lotus Notes
  270. CN=Lotus Notes Template Development/O=Lotus Notes
  271. PURSAFO
  272. Fde!f^^
  273. $TITLE
  274. $INFO
  275. $WINDOWTITLE
  276. $$Script_O
  277. $$ScriptName
  278. DeliveryDate
  279. $BODY
  280. $ACTIONS
  281. *** Message Not Delivered ***
  282.  ReturnNonReceipt
  283. Return Receipt Failure
  284.     Your document:
  285. Subject
  286. OriginalSubject
  287.     was not received by:
  288. IntendedRecipient
  289. IntendedRecipient
  290.     because:
  291. FailureReason
  292. FailureReason
  293.     Always Hidden:
  294. Path_Info
  295. Path_Info
  296. Categori_ze
  297. Close
  298.     0S0E
  299. Edit Documenth
  300. Resend
  301. Resend>
  302.     7S12S
  303. _Forward
  304. _Move to Folder...
  305. _Remove from Folder...
  306. Trashs
  307.     1S2S8S12S14S
  308. /wCommand?OpenAgent&ToTrash=
  309. &From="
  310.     0R1S2S3S4S11S13S15S16S
  311. Path_Info
  312. Path_Info
  313.     0R1S2S6S10S11S15S
  314. view1
  315.     0R1S2S3S10S14S18S21S
  316. view2
  317. view1
  318. view1
  319. view1
  320.     0R1S2S3S10S14S18S21S
  321. path"
  322. view2
  323.     0RR3S4S5S6S7S8S
  324.     1S2S8S12S14S
  325. /wFolders?OpenForm&UNID=
  326. &View="
  327.     0R1S2S3S4S11S13S15S16S
  328. Path_Info
  329. Path_Info
  330.     0R1S2S6S10S11S15S
  331. view1
  332.     0R1S2S3S10S14S18S21S
  333. view2
  334. view1
  335. view1
  336. view1
  337.     0R1S2S3S10S14S18S21S
  338. path"
  339. view2
  340.     0RR3S4S5S6S7S8S
  341. In Box*
  342. ($Inbox)
  343. Calendar.
  344. ($Calendar)
  345. Meetings.
  346. ($Meetings)
  347. To Dos*
  348. ($ToDo)
  349. All Viewsn"
  350. O=Lotus Notes
  351. O=Lotus Notes
  352. PURSAFO
  353. |.:#U
  354. O=Lotus Notes
  355. CN=Lotus Notes Template Development/O=Lotus Notes
  356. PURSAFO
  357. Fde!f^^
  358. T(lu RCt
  359. OjR>CX
  360. $TITLE
  361. $INFO
  362. $WINDOWTITLE
  363. $$Script_O
  364. $$ScriptName
  365. $BODY
  366. $ACTIONS
  367. *** Message Successfully Delivered ***
  368.  Trace Report
  369. Trace Report
  370.     Your trace:
  371. Subject
  372. Subject
  373.     has reached:
  374. IntendedRecipient
  375. MailServer
  376. DeliveryDate
  377. Trace Information
  378. RouteServers
  379. RouteServers
  380. RouteTimes
  381. RouteTimes
  382.     Always Hidden:
  383. Path_Info
  384. Path_Info
  385. Categori_ze_
  386. _Edit Document
  387. Send Docu_ment
  388. _Forward
  389. _Move to Folder...
  390. _Remove from Folder...
  391. Trash
  392.     1S2S8S12S14S
  393. /wCommand?OpenAgent&ToTrash=
  394. &From="
  395.     0R1S2S3S4S11S13S15S16S
  396. Path_Info
  397. Path_Info
  398.     0R1S2S6S10S11S15S
  399. view1
  400.     0R1S2S3S10S14S18S21S
  401. view2
  402. view1
  403. view1
  404. view1
  405.     0R1S2S3S10S14S18S21S
  406. path"
  407. view2
  408.     0RR3S4S5S6S7S8S
  409.     1S2S8S12S14S
  410. /wFolders?OpenForm&UNID=
  411. &View="
  412.     0R1S2S3S4S11S13S15S16S
  413. Path_Info
  414. Path_Info
  415.     0R1S2S6S10S11S15S
  416. view1
  417.     0R1S2S3S10S14S18S21S
  418. view2
  419. view1
  420. view1
  421. view1
  422.     0R1S2S3S10S14S18S21S
  423. path"
  424. view2
  425.     0RR3S4S5S6S7S8S
  426. In Box*
  427. ($Inbox)
  428. Calendar.
  429. ($Calendar)
  430. Meetings.
  431. ($Meetings)
  432. To Dod*
  433. ($ToDo)
  434. All ViewsA"
  435. O=Lotus Notes
  436. O=Lotus Notes
  437. PURSAFO
  438. |.:#U
  439. O=Lotus Notes
  440. CN=Lotus Notes Template Development/O=Lotus Notes
  441. PURSAFO
  442. Fde!f^^
  443. $TITLE
  444. $INFO
  445. $WINDOWTITLE
  446. $$Script_O
  447. $$ScriptName
  448. DeliveryDate
  449. $BODY
  450. $ACTIONS
  451. VersionOpt|
  452.     6S7S9S14S
  453. $VersionOpt
  454.     0R1S2S3S
  455. SavedOnce
  456.     0R1S2S3S
  457. PostedDate(
  458.     0R1S2S3S
  459. DeliveredDate
  460.     0R1S2S3S
  461. $AutoEditMode
  462.     0R1S2S3S
  463. MailSaveOptions
  464.     0R1S2S3S
  465. VersionOpt
  466.     0R4S
  467. New Bookmark
  468. Subject
  469. Subject
  470. Subject
  471.     4S6S12S13S14S15S17S21S23S25S26S28S
  472. Times New Roman
  473. '++LotusScript Development Environment:2:5:(Options):0:74
  474. Option Public
  475. Use "EmailProcessing"
  476. Use "DocumentConversions"
  477. '++LotusScript Development Environment:2:5:(Forward):0:1
  478. '++LotusScript Development Environment:2:5:(Declarations):0:2
  479.  Bookmark'++LotusScript Development Environment:2:5:(Options):0:66
  480. '++LotusScript Development Environment:2:5:(Forward):0:1
  481. Declare Sub Postopen(Source As Notesuidocument)
  482. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  483. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  484. Declare Sub Postmodechange(Source As Notesuidocument)
  485. '++LotusScript Development Environment:2:5:(Declarations):0:2
  486. '++LotusScript Development Environment:2:2:BindEvents:1:129
  487. Private Sub BindEvents(Byval Objectname_ As String)
  488.      Static Source As NOTESUIDOCUMENT
  489.      Set Source = Bind(Objectname_)
  490.      On Event Postopen From Source Call Postopen
  491.      On Event Querysave From Source Call Querysave
  492.      On Event Queryclose From Source Call Queryclose
  493.      On Event Postmodechange From Source Call Postmodechange
  494. End Sub
  495. '++LotusScript Development Environment:2:2:Postopen:1:12
  496. Sub Postopen(Source As Notesuidocument)
  497.      
  498.      Set ws = New NotesUIWorkSpace
  499.      Set uidoc = source
  500.      
  501.      Call EmailOpen
  502.      
  503. End Sub
  504. '++LotusScript Development Environment:2:2:Querysave:1:12
  505. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  506.      
  507.      Call EmailSave(Continue)
  508.      
  509. End Sub
  510. '++LotusScript Development Environment:2:2:Queryclose:1:12
  511. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  512.      
  513.      Call EmailClose(Continue)
  514.      
  515. End Sub
  516. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  517. Sub Postmodechange(Source As Notesuidocument)
  518.      
  519.      Call EmailModeChange
  520.      
  521. End Sub
  522.     Always hidden: 
  523. Principal
  524. CalendarProfile
  525. Owner
  526.     1S2S3S7S
  527. Principal
  528. Principal
  529.     0R3S4S6S8S
  530. FromPerson memo is from.
  531.     0S0E
  532.     0S0E
  533. Encrypt
  534.     0S0E
  535. DefaultMailSaveOptions
  536. $KeepPrivate
  537. $KeepPrivate
  538. $KeepPrivate
  539.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  540. Path_Info
  541. Path_Info
  542. $HideMailHeader
  543.     0S0E
  544. Bookmark
  545. ?_?__
  546. `!b`1
  547. 7`^///?
  548. ?b___
  549. `bOOO
  550. `<b!R
  551. Bookmark
  552. Bookmark
  553.     From:    
  554. Principal
  555. Principal
  556. FromDomain
  557. FromDomain
  558. FromDomain
  559. FromDomain
  560.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  561. FromName
  562. Principal
  563. Principal
  564.     0RR1S2S9S11S15S
  565. FromStops
  566.     0R1S2S6S
  567. FromName
  568. FromStops
  569. FromStops
  570. FromStops
  571.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  572.      on 
  573. PostedDateh
  574. PostedDate
  575.     4S5S10S12S
  576. tmpDisplayDateTime/date memo was created or mailed.
  577. ReplyDate
  578. ReplyTo
  579. $HideMailHeader
  580.     2S3S4S5S6S7S9S10S
  581. Please respond
  582. ReplyTo
  583. ReplyTo
  584. ReplyDate
  585. ReplyDate
  586.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  587. $HideMailHeader
  588. Principal
  589. Principal
  590. Principal
  591. Principal
  592. Principal
  593.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  594.     Sent by:    
  595. FromDomain
  596. FromDomain
  597. FromDomain
  598. FromDomain
  599.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  600. FromName
  601.     0RR1S2S6S
  602. FromStops
  603.     0R1S2S6S
  604. FromName
  605. FromStops
  606. FromStops
  607. FromStops
  608.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  609. SendTo
  610. CopyTo
  611.   cc:  
  612. CopyTo
  613.     1S8S13S14S2E17S18S21S28S31S
  614. MailAddress
  615. InheritedReplyToh
  616. InheritedReplyTo
  617. InheritedReplyTo
  618. InheritedFrom
  619.     1S2S8S9S10S11S13S15S
  620. MailAddress
  621.     0RR 
  622. SendTo}
  623.     0S0E
  624. SendToList of primary people to send memo.
  625. CopyTo}
  626.     0S0E
  627. CopyToList of people to send a copy of the memo.
  628. DeliveredDate
  629. BlindCopyTo
  630. (bcc: 
  631. BlindCopyTo
  632.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpBlindCopyTo
  633.     bcc:
  634. BlindCopyTo
  635.     0S0E
  636. BlindCopyToList of undisclosed people to send copies of memo.
  637.     Subject:
  638. InheritedSubject
  639. Subject
  640. Subject
  641. Topic
  642. Topic
  643. Title
  644. Title
  645. BriefDescriptionh
  646. BriefDescription
  647.     1S2S3S5R10S12R17S19R24S26R31S33R
  648. Bookmark
  649. InheritedSubjecth
  650. InheritedSubject"
  651.     0RR2S"
  652. Subject
  653.     0S0E
  654. SubjectSubject of memo.
  655.     Document Link Information:
  656. InheritedDBTitle
  657.     1S2S
  658.     Database:    
  659. InheritedDBTitle
  660. InheritedDBTitle
  661. InheritedSubject
  662.     1S2S
  663.     Document:    
  664. InheritedSubject
  665. InheritedSubject
  666. FlowStatus
  667.     1S2S
  668.     Workflow status:    
  669. FlowStatus
  670. FlowStatus
  671. DueDateTime
  672.     1S2S
  673.     Due date:    
  674. DueDateTime
  675. DueDateTime
  676.       You may open the document by clicking on this link.
  677. Edit Document
  678. ForwardK 
  679.     0S0E
  680. New Memo.
  681.     0S0E
  682. Delete 
  683.     0S0E
  684. _Move To Folder...
  685. Delivery Information...Kz
  686. DeliveryInfo
  687. Delivery Information
  688.     4S5S6S7S8S9S10S12S
  689. _Forward
  690. Reply
  691. Reply
  692.     0S0E
  693. Reply With History
  694. Reply with History
  695. This document is truncated.
  696.     4S8S10S13S
  697. Reply with history
  698. Address... 
  699.     0S0E
  700. PostedDateh
  701.     5S6S7S8S
  702. Close
  703.     0S0E
  704. PostedDateY
  705.     0S0E
  706. Save As Draft
  707. tmpAction
  708. SaveAsDraft
  709.     1S2S3S
  710. PostedDateh
  711.     0S0E
  712. PromptValue
  713. DefaultMailSaveOptions
  714. Save when sent
  715. Do you wish to save a copy of this Memo?
  716. DefaultMailSaveOptions
  717.     1S2S5S6S8S14S17S
  718. SaveOptions
  719. PromptValue
  720. SaveOptions
  721. PromptValue
  722.     0RR1S2S5S6S9S14S
  723. tmpAction
  724. DefaultMailSaveOptions
  725. Mailing
  726.     0RR1S2S3S6S7S9S11S
  727. MailOptions
  728.     0R1S2S3S
  729.     0R7S9S
  730. tmpAction
  731. SaveOptions
  732. SendAndFile
  733.     0RR1S2S3S6S7S9S11S
  734.     0R7S9S
  735. PostedDateh
  736.     5S6S7S8S
  737. Send And File...
  738.     4S11S13S19S
  739.     0RR7S9S
  740. tmpAction
  741. DefaultMailSaveOptions
  742. Mailing
  743.     0RR1S2S3S6S7S9S11S
  744. MailOptions
  745.     0R1S2S3S
  746.     0R7S9S
  747. tmpAction
  748. SendAndFile
  749.     0RR1S2S3S
  750.     0R7S9S
  751. PostedDateh
  752.     5S6S7S8S
  753. Delivery Options...K
  754. DeliveryOptions
  755. Delivery Options
  756.     4S8S
  757. _ViewIcon
  758. SenderTag
  759. SenderTag
  760. SenderTag
  761. SenderTag
  762. SenderTag
  763. SenderTag
  764. SenderTag
  765. SenderTag
  766. SenderTag
  767. SenderTag
  768. SenderTag
  769.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  770. PostedDateh
  771.     5S6S7S8S
  772. Special Options...
  773. ReplyDate
  774. ReplyDate
  775.     1S2S3S
  776. ReplyTo
  777. ReplyTo
  778.     0R1S2S3S
  779. (Advanced Options)
  780. Special Options
  781.     0R6S10S13S15S
  782. tmpDisplayReplyInfo
  783. Please respond
  784. ReplyTo
  785. ReplyTo
  786. ReplyDate
  787. ReplyDate
  788.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  789. DueDateTime
  790. ReplyDate
  791.     0R1S2S3S
  792. PostedDateh
  793.     5S6S7S8S
  794. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  795. '++LotusScript Development Environment:2:5:(Forward):0:1
  796. Declare Sub Click(Source As Button)
  797. '++LotusScript Development Environment:2:5:(Declarations):0:2
  798. '++LotusScript Development Environment:2:2:BindEvents:1:129
  799. Private Sub BindEvents(Byval Objectname_ As String)
  800.      Static Source As BUTTON
  801.      Set Source = Bind(Objectname_)
  802.      On Event Click From Source Call Click
  803. End Sub
  804. '++LotusScript Development Environment:2:2:Click:1:12
  805. Sub Click(Source As Button)
  806.      Call CreateNewDoc(NEW_MEMO)
  807. End Sub
  808. tmpnewdoc
  809.     1S2S
  810. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  811. '++LotusScript Development Environment:2:5:(Forward):0:1
  812. Declare Sub Click(Source As Button)
  813. '++LotusScript Development Environment:2:5:(Declarations):0:2
  814. '++LotusScript Development Environment:2:2:BindEvents:1:129
  815. Private Sub BindEvents(Byval Objectname_ As String)
  816.      Static Source As BUTTON
  817.      Set Source = Bind(Objectname_)
  818.      On Event Click From Source Call Click
  819. End Sub
  820. '++LotusScript Development Environment:2:2:Click:1:12
  821. Sub Click(Source As Button)
  822.      Call CreateNewDoc(NEW_CALENDAR)
  823. End Sub
  824. tmpnewdoc
  825.     1S2S
  826. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  827. '++LotusScript Development Environment:2:5:(Forward):0:1
  828. Declare Sub Click(Source As Button)
  829. '++LotusScript Development Environment:2:5:(Declarations):0:2
  830. '++LotusScript Development Environment:2:2:BindEvents:1:129
  831. Private Sub BindEvents(Byval Objectname_ As String)
  832.      Static Source As BUTTON
  833.      Set Source = Bind(Objectname_)
  834.      On Event Click From Source Call Click
  835. End Sub
  836. '++LotusScript Development Environment:2:2:Click:1:12
  837. Sub Click(Source As Button)
  838.      Call CreateNewDoc(NEW_TASK)
  839. End Sub
  840. tmpnewdoc
  841.     1S2S
  842. Copy into\New GroupK,
  843. NewGroup
  844.     0S0E
  845. tmpnewdoc
  846.     1S2S
  847. _Remove From Folder...
  848. Categori_zeK
  849. SSend
  850. Memo&
  851. Reply
  852. Reply
  853. Trash
  854.     1S2S8S12S14S
  855. /wCommand?OpenAgent&ToTrash=
  856. &From="
  857.     0R1S2S3S4S11S13S15S16S
  858. Path_Info
  859. Path_Info
  860.     0R1S2S6S10S11S15S
  861. view1
  862.     0R1S2S3S10S14S18S21S
  863. view2
  864. view1
  865. view1
  866. view1
  867.     0R1S2S3S10S14S18S21S
  868. path"
  869. view2
  870.     0RR3S4S5S6S7S8S
  871.     1S2S8S12S14S
  872. /wFolders?OpenForm&UNID=
  873. &View="
  874.     0R1S2S3S4S11S13S15S16S
  875. Path_Info
  876. Path_Info
  877.     0R1S2S6S10S11S15S
  878. view1
  879.     0R1S2S3S10S14S18S21S
  880. view2
  881. view1
  882. view1
  883. view1
  884.     0R1S2S3S10S14S18S21S
  885. path"
  886. view2
  887.     0RR3S4S5S6S7S8S
  888. In Box*
  889. ($InBox)
  890. Calendar
  891.     1S2S8S12S14S
  892. path"
  893. /($Calendar)?OpenView&Grid=
  894. CalendarProfile
  895. wCalGridType
  896.     0R3S4S5S6S7S8S12S
  897. Meetings.
  898. ($Meetings)
  899. To Do
  900. ($ToDo)
  901. All Views
  902. O=Lotus Notes
  903. O=Lotus Notes
  904. PURSAFO
  905. |.:#U
  906. O=Lotus Notes
  907. CN=Lotus Notes Template Development/O=Lotus Notes
  908. PURSAFO
  909. Fde!f^^
  910. $$FormPostOpenAction
  911. ExpireDate
  912. ReplyDate
  913. $TypeIcon
  914. ReplyNumber
  915. ComposedDate
  916. DueDate
  917. $TITLE
  918. $AUTOLAUNCH
  919. $INFO
  920. $WINDOWTITLE
  921. $Script
  922. $$Script_O
  923. $$ScriptName
  924. $$FormScript
  925. $$$FormScript_O
  926. DueDateTime
  927. $BODY
  928. $ACTIONS
  929. $SCRIPTOBJ_16
  930. $SCRIPTOBJ_17
  931. $SCRIPTOBJ_18
  932.  $$ViewTemplate for Discussion Threads
  933. Hidden: 
  934. Discussion Threads
  935. ViewName
  936. (web view template)
  937. Categori_ze
  938. _Edit Document
  939. Send Docu_ment
  940. _Forward
  941. _Move To Folder...
  942. _Remove From Folder
  943. O=Lotus Notes
  944. O=Lotus Notes
  945. PURSAFO
  946. |.:#U
  947. O=Lotus Notes
  948. CN=Lotus Notes Template Development/O=Lotus Notes
  949. PURSAFO
  950. Fde!f^^
  951. $TITLE
  952. $INFO
  953. $SubForms
  954. $WINDOWTITLE
  955. $$ScriptName
  956. $BODY
  957. $ACTIONS
  958. DeliveredDate
  959. PostedDate
  960. PostedDateY
  961. IsMailStationeryh
  962. _ViewIcon
  963. _ViewIcon
  964. Importance
  965. Importance
  966. _ViewIcon
  967. _ViewIcon
  968. $TypeIcon
  969.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  970. SentBy
  971. Principal
  972. Principal
  973.     1S2S5S6S8S10S
  974. Attendees
  975. RequiredAttendees
  976. OptionalAttendees
  977.     0R1S2S5S6S
  978. DeliveredDate
  979. SentBy
  980. Attendees
  981. Attendees
  982. SendTo
  983. SentBy
  984. SendTo
  985.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  986.     0R1S2S8S
  987.     0R1S2S15S16S
  988.     0R1S2S5S6S8S14S18S
  989.     0R1S2S5S6S8S14S18S
  990. Person
  991. X400FreeForm^
  992.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  993. Person2
  994. Person
  995. Person
  996. Person
  997. Person
  998.     0R1S2S12S13S22S34S
  999. Delivery Report
  1000. NonDelivery Report
  1001. Trace Report
  1002. Mail Router
  1003. Person2
  1004.     0R3S4S5S6S7S8S10S12S
  1005. DeliveredDate
  1006. DeliveredDate
  1007. PostedDate
  1008. PostedDate
  1009.     3S4S6S8S9S10S12S14S
  1010. $ContentIconh
  1011. $ContentIcon
  1012. Froma
  1013.  pager 
  1014. SendToa
  1015.  pager 
  1016. message.wav
  1017. vmsg_hdr.wav
  1018. .wavG
  1019. .tifG
  1020. $ContentIconh
  1021. $ContentIcon
  1022.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  1023. NonDelivery Report
  1024. DELIVERY FAILURE: 
  1025. FailureReason
  1026. PhoneCaller
  1027. Phone Call: 
  1028. PhoneCaller
  1029. Delivery Report
  1030. DELIVERED: 
  1031. Subject
  1032. Return Receipt
  1033. RECEIVED: 
  1034. Subject
  1035. Subject
  1036.     3S4S6S7S8S10S15S16S17S19S20S21S23S24S25S27S28S29S31S32S33S35S
  1037. $27$39$13$32Subject$14$Conflict$REF
  1038. HiddenDocument
  1039. $MessageType
  1040. IsMailStationeryY
  1041.     L1S2S3S4S5S8S2E9S
  1042. DeliveredDate
  1043. PostedDate
  1044. PostedDateY
  1045. IsMailStationeryh
  1046. _ViewIcon
  1047. _ViewIcon
  1048. Importance
  1049. Importance
  1050. _ViewIcon
  1051. _ViewIcon
  1052. $TypeIcon
  1053.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  1054. $39Who
  1055. SentBy
  1056. Principal
  1057. Principal
  1058.     1S2S5S6S8S10S
  1059. Attendees
  1060. RequiredAttendees
  1061. OptionalAttendees
  1062.     0R1S2S5S6S
  1063. DeliveredDate
  1064. SentBy
  1065. Attendees
  1066. Attendees
  1067. SendTo
  1068. SentBy
  1069. SendTo
  1070.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  1071.     0R1S2S8S
  1072.     0R1S2S15S16S
  1073.     0R1S2S5S6S8S14S18S
  1074.     0R1S2S5S6S8S14S18S
  1075. Person
  1076. X400FreeForm^
  1077.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  1078. Person2
  1079. Person
  1080. Person
  1081. Person
  1082. Person
  1083.     0R1S2S12S13S22S34S
  1084. Delivery Report
  1085. NonDelivery Report
  1086. Trace Report
  1087. Mail Router
  1088. Person2
  1089.     0R3S4S5S6S7S8S10S12S
  1090. $13Date
  1091. DeliveredDate
  1092. DeliveredDate
  1093. PostedDate
  1094. PostedDate
  1095.     3S4S6S8S9S10S12S14S$32F
  1096. $ContentIconh
  1097. $ContentIcon
  1098. Froma
  1099.  pager 
  1100. SendToa
  1101.  pager 
  1102. message.wav
  1103. vmsg_hdr.wav
  1104. .wavG
  1105. .tifG
  1106. $ContentIconh
  1107. $ContentIcon
  1108.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105SSubject$14Subject~
  1109. NonDelivery Report
  1110. DELIVERY FAILURE: 
  1111. FailureReason
  1112. PhoneCaller
  1113. Phone Call: 
  1114. PhoneCaller
  1115. Delivery Report
  1116. DELIVERED: 
  1117. Subject
  1118. Return Receipt
  1119. RECEIVED: 
  1120. Subject
  1121. Subject
  1122.     3S4S6S7S8S10S15S16S17S19S20S21S23S24S25S27S28S29S31S32S33S35S&
  1123. Categori_ze
  1124. New Memo.
  1125.     0S0E
  1126. Delete 
  1127.     0S0E
  1128. Move to Folder...
  1129.     0S0E
  1130. _Edit Document
  1131. _Forward
  1132. Reply
  1133. Reply
  1134.     0S0E
  1135. Reply With History@
  1136. Reply with history
  1137.     0S0E
  1138. _Move to Folder...
  1139. _Remove from Folder...
  1140. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  1141. '++LotusScript Development Environment:2:5:(Forward):0:1
  1142. Declare Sub Click(Source As Button)
  1143. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1144. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1145. Private Sub BindEvents(Byval Objectname_ As String)
  1146.      Static Source As BUTTON
  1147.      Set Source = Bind(Objectname_)
  1148.      On Event Click From Source Call Click
  1149. End Sub
  1150. '++LotusScript Development Environment:2:2:Click:1:12
  1151. Sub Click(Source As Button)
  1152.      Call CreateNewDoc(NEW_MEMO)
  1153. End Sub
  1154. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  1155. '++LotusScript Development Environment:2:5:(Forward):0:1
  1156. Declare Sub Click(Source As Button)
  1157. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1158. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1159. Private Sub BindEvents(Byval Objectname_ As String)
  1160.      Static Source As BUTTON
  1161.      Set Source = Bind(Objectname_)
  1162.      On Event Click From Source Call Click
  1163. End Sub
  1164. '++LotusScript Development Environment:2:2:Click:1:12
  1165. Sub Click(Source As Button)
  1166.      Call CreateNewDoc(NEW_CALENDAR)
  1167. End Sub
  1168. tmpnewdoc
  1169.     1S2S
  1170. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  1171. '++LotusScript Development Environment:2:5:(Forward):0:1
  1172. Declare Sub Click(Source As Button)
  1173. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1174. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1175. Private Sub BindEvents(Byval Objectname_ As String)
  1176.      Static Source As BUTTON
  1177.      Set Source = Bind(Objectname_)
  1178.      On Event Click From Source Call Click
  1179. End Sub
  1180. '++LotusScript Development Environment:2:2:Click:1:12
  1181. Sub Click(Source As Button)
  1182.      Call CreateNewDoc(NEW_TASK)
  1183. End Sub
  1184. tmpnewdoc
  1185.     1S2S
  1186. Copy into\New GroupS,
  1187. NewGroup
  1188.     0S0E
  1189. tmpnewdoc
  1190.     1S2S
  1191. '++LotusScript Development Environment:2:5:(Options):0:74
  1192. Option Public
  1193. Use "DocumentConversions"
  1194. '++LotusScript Development Environment:2:5:(Forward):0:1
  1195. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1196. O=Lotus Notes
  1197. O=Lotus Notes
  1198. PURSAFO
  1199. |.:#U
  1200. O=Lotus Notes
  1201. CN=Lotus Notes Template Development/O=Lotus Notes
  1202. PURSAFO
  1203. Fde!f^^
  1204. $TITLE
  1205. $Index
  1206. $Formula
  1207. $FormulaClass
  1208. $VIEWFORMAT
  1209. $Comment
  1210. $ACTIONS
  1211. $SCRIPTOBJ_11
  1212. $SCRIPTOBJ_12
  1213. $SCRIPTOBJ_13
  1214. $ViewGlobalScript
  1215. $ViewGlobalScript_O
  1216. $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
  1217. $104$68
  1218. $68Yd
  1219. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  1220. ##########################################################
  1221. ($Calendar)|Calendar11'
  1222. $134$126$143
  1223. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################
  1224. ($Drafts)1$
  1225. $58$59$55
  1226. $65$65
  1227. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############################################
  1228. $FolderInfo($FolderInfo)
  1229. $103Y
  1230. CN=Don Hatch/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes8##########################
  1231. $FolderRefInfo($FolderRefInfo)
  1232. $FolderRefV
  1233.     0S0E
  1234. $105$FolderRefID$FolderRefFlags$Conflict
  1235. $FolderRefh
  1236.     L1S1
  1237. $105$
  1238. $105$FolderRefID
  1239. $105Folder UNID*
  1240. $FolderRefV
  1241.     0S0E
  1242. $FolderRefIDFolder Reference ID$FolderRefFlagsFolder Reference Flags&
  1243. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################
  1244. ($Meetings)|Meetings11
  1245. StartDateTime
  1246. StartDateTimeY
  1247. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################
  1248. ($Profiles)H
  1249. Form$Conflict
  1250. Profile
  1251.     L1S5S1
  1252. FormType&
  1253. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################
  1254. qHmvO
  1255. CN=Stan Getz/O=bogusCN=Lou Reed/O=bogusCN=Ryan Jansen/O=IrisCN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesSharedTaskLibrarys34Q1##########################
  1256. DeliveredDate
  1257. PostedDate
  1258. PostedDateY
  1259. IsMailStationeryh
  1260. _ViewIcon
  1261. _ViewIcon
  1262. Importance
  1263. Importance
  1264. _ViewIcon
  1265. _ViewIcon
  1266. $TypeIcon
  1267.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  1268. SentBy
  1269. Principal
  1270. Principal
  1271.     1S2S5S6S8S10S
  1272. Attendees
  1273. RequiredAttendees
  1274. OptionalAttendees
  1275.     0R1S2S5S6S
  1276. DeliveredDate
  1277. SentBy
  1278. Attendees
  1279. Attendees
  1280. SendTo
  1281. SentBy
  1282. SendTo
  1283.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  1284.     0R1S2S8S
  1285.     0R1S2S15S16S
  1286.     0R1S2S5S6S8S14S18S
  1287.     0R1S2S5S6S8S14S18S
  1288. Person
  1289. X400FreeForm^
  1290.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  1291. Person2
  1292. Person
  1293. Person
  1294. Person
  1295. Person
  1296.     0R1S2S12S13S22S34S
  1297. Delivery Report
  1298. NonDelivery Report
  1299. Trace Report
  1300. Mail Router
  1301. Person2
  1302.     0R3S4S5S6S7S8S10S12S
  1303. DeliveredDate
  1304. DeliveredDate
  1305. PostedDate
  1306. PostedDate
  1307.     3S4S6S8S9S10S12S14S
  1308. $ContentIconh
  1309. $ContentIcon
  1310. Froma
  1311.  pager 
  1312. SendToa
  1313.  pager 
  1314. message.wav
  1315. vmsg_hdr.wav
  1316. .wavG
  1317. .tifG
  1318. $ContentIconh
  1319. $ContentIcon
  1320.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  1321. NonDelivery Report
  1322. DELIVERY FAILURE: 
  1323. FailureReason
  1324. Delivery Report
  1325. DELIVERED: 
  1326. Subject
  1327. Return Receipt
  1328. RECEIVED: 
  1329. Subject
  1330. ReturnNonReceipt
  1331. NOT RECEIVED: 
  1332. Subject
  1333. Subject
  1334.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S
  1335. $93$104$68$92$74$Conflict
  1336. DeliveredDate
  1337. PostedDate
  1338. PostedDateY
  1339. IsMailStationeryh
  1340. _ViewIcon
  1341. _ViewIcon
  1342. Importance
  1343. Importance
  1344. _ViewIcon
  1345. _ViewIcon
  1346. $TypeIcon
  1347.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  1348. $104Who
  1349. SentBy
  1350. Principal
  1351. Principal
  1352.     1S2S5S6S8S10S
  1353. Attendees
  1354. RequiredAttendees
  1355. OptionalAttendees
  1356.     0R1S2S5S6S
  1357. DeliveredDate
  1358. SentBy
  1359. Attendees
  1360. Attendees
  1361. SendTo
  1362. SentBy
  1363. SendTo
  1364.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  1365.     0R1S2S8S
  1366.     0R1S2S15S16S
  1367.     0R1S2S5S6S8S14S18S
  1368.     0R1S2S5S6S8S14S18S
  1369. Person
  1370. X400FreeForm^
  1371.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  1372. Person2
  1373. Person
  1374. Person
  1375. Person
  1376. Person
  1377.     0R1S2S12S13S22S34S
  1378. Delivery Report
  1379. NonDelivery Report
  1380. Trace Report
  1381. Mail Router
  1382. Person2
  1383.     0R3S4S5S6S7S8S10S12S
  1384. $68Date
  1385. DeliveredDate
  1386. DeliveredDate
  1387. PostedDate
  1388. PostedDate
  1389.     3S4S6S8S9S10S12S14S$92F
  1390. $ContentIconh
  1391. $ContentIcon
  1392. Froma
  1393.  pager 
  1394. SendToa
  1395.  pager 
  1396. message.wav
  1397. vmsg_hdr.wav
  1398. .wavG
  1399. .tifG
  1400. $ContentIconh
  1401. $ContentIcon
  1402.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$74Subject
  1403. NonDelivery Report
  1404. DELIVERY FAILURE: 
  1405. FailureReason
  1406. Delivery Report
  1407. DELIVERED: 
  1408. Subject
  1409. Return Receipt
  1410. RECEIVED: 
  1411. Subject
  1412. ReturnNonReceipt
  1413. NOT RECEIVED: 
  1414. Subject
  1415. Subject
  1416.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S&
  1417. New Memo.
  1418.     0S0E
  1419. Delete 
  1420.     0S0E
  1421. Move To Folder...r 
  1422.     0S0E
  1423. _Forward
  1424. Reply
  1425. Reply
  1426.     0S0E
  1427. Reply With History@
  1428. Reply with history
  1429.     0S0E
  1430. Categori_zer
  1431. _Edit Document
  1432. Send    
  1433. Resend
  1434. NonDelivery Report
  1435. Not a Delivery Failure Report
  1436. You cannot Resend a message unless it is a Delivery Failure Report.
  1437.     6S12S17S23S
  1438. _Move To Folder...
  1439. _Remove From Folder...
  1440. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  1441. '++LotusScript Development Environment:2:5:(Forward):0:1
  1442. Declare Sub Click(Source As Button)
  1443. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1444. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1445. Private Sub BindEvents(Byval Objectname_ As String)
  1446.      Static Source As BUTTON
  1447.      Set Source = Bind(Objectname_)
  1448.      On Event Click From Source Call Click
  1449. End Sub
  1450. '++LotusScript Development Environment:2:2:Click:1:12
  1451. Sub Click(Source As Button)
  1452.      Call CreateNewDoc(NEW_MEMO)
  1453. End Sub
  1454. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  1455. '++LotusScript Development Environment:2:5:(Forward):0:1
  1456. Declare Sub Click(Source As Button)
  1457. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1458. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1459. Private Sub BindEvents(Byval Objectname_ As String)
  1460.      Static Source As BUTTON
  1461.      Set Source = Bind(Objectname_)
  1462.      On Event Click From Source Call Click
  1463. End Sub
  1464. '++LotusScript Development Environment:2:2:Click:1:12
  1465. Sub Click(Source As Button)
  1466.      Call CreateNewDoc(NEW_CALENDAR)
  1467. End Sub
  1468. tmpnewdoc
  1469.     1S2S
  1470. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  1471. '++LotusScript Development Environment:2:5:(Forward):0:1
  1472. Declare Sub Click(Source As Button)
  1473. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1474. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1475. Private Sub BindEvents(Byval Objectname_ As String)
  1476.      Static Source As BUTTON
  1477.      Set Source = Bind(Objectname_)
  1478.      On Event Click From Source Call Click
  1479. End Sub
  1480. '++LotusScript Development Environment:2:2:Click:1:12
  1481. Sub Click(Source As Button)
  1482.      Call CreateNewDoc(NEW_TASK)
  1483. End Sub
  1484. tmpnewdoc
  1485.     1S2S
  1486. Copy into\New Group
  1487. NewGroup
  1488.     0S0E
  1489. tmpnewdoc
  1490.     1S2S
  1491. '++LotusScript Development Environment:2:5:(Options):0:74
  1492. Option Public
  1493. Use "DocumentConversions"
  1494. '++LotusScript Development Environment:2:5:(Forward):0:1
  1495. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1496. O=Lotus Notes
  1497. O=Lotus Notes
  1498. PURSAFO
  1499. |.:#U
  1500. O=Lotus Notes
  1501. CN=Lotus Notes Template Development/O=Lotus Notes
  1502. PURSAFO
  1503. Fde!f^^
  1504. $TYPE
  1505. $TABLEFORMAT
  1506. $TITLE
  1507. $Index
  1508. $Formula
  1509. $FormulaClass
  1510. $VIEWFORMAT
  1511. $Comment
  1512. $ACTIONS
  1513. $SCRIPTOBJ_12
  1514. $SCRIPTOBJ_13
  1515. $SCRIPTOBJ_14
  1516. $ViewGlobalScript
  1517. $ViewGlobalScript_O
  1518. StartTime
  1519. CalendarDateTimeL
  1520.     1S2S
  1521. DateList
  1522. CalendarDateTimeV
  1523. EndDateTime
  1524.     0R1S2S10S11S12S13S
  1525. AppointmentType
  1526. CalendarDateTime
  1527. DateList
  1528. StartTime
  1529.     0R3S4S5S6S7S8S9S10S12S14S20S21S22S23S
  1530. AppointmentType
  1531. EndDateTime
  1532. StartDateTime
  1533.     3S4S6S8S10S11S13S14S16S
  1534. section
  1535. OrgTable
  1536.     1S2S6S
  1537. section
  1538. section
  1539. section
  1540.     0R3S4S6RS5E8R9S10S12RS5E14R15S16S18RS5E20R
  1541. AppointmentType
  1542. StartDateTime
  1543. StartDateTime
  1544. StartDateTime
  1545. StartDateTime
  1546. -All Day-
  1547.     3S4S5S6S7S8S10RS4E17RS8E24S29S32RS5E35R
  1548. Subject
  1549. -No Subject-
  1550. Subject
  1551.     3S4S6S
  1552. $134$135$126$143_ViewIcon$141$Conflict
  1553. CalendarDateTimeh
  1554. $134t
  1555. StartTime
  1556. CalendarDateTimeL
  1557.     1S2S
  1558. DateList
  1559. CalendarDateTimeV
  1560. EndDateTime
  1561.     0R1S2S10S11S12S13S
  1562. AppointmentType
  1563. CalendarDateTime
  1564. DateList
  1565. StartTime
  1566.     0R3S4S5S6S7S8S9S10S12S14S20S21S22S23S$135
  1567. AppointmentType
  1568. EndDateTime
  1569. StartDateTime
  1570.     3S4S6S8S10S11S13S14S16S$126
  1571. section
  1572. OrgTable
  1573.     1S2S6S
  1574. section
  1575. section
  1576. section
  1577.     0R3S4S6RS5E8R9S10S12RS5E14R15S16S18RS5E20R
  1578. $143Time
  1579. AppointmentType
  1580. StartDateTime
  1581. StartDateTime
  1582. StartDateTime
  1583. StartDateTime
  1584. -All Day-
  1585.     3S4S5S6S7S8S10RS4E17RS8E24S29S32RS5E35R_ViewIcon$141DescriptionZ
  1586. Subject
  1587. -No Subject-
  1588. Subject
  1589.     3S4S6S
  1590. _Forward
  1591. _Edit Document
  1592. New Entry
  1593. Appointment
  1594.     0S0E
  1595. Go To TodayK$
  1596.     0S0E
  1597. Two Days$
  1598. One Week$
  1599. Two Weeks
  1600. One Month
  1601. _Move to Folder...    
  1602. _Remove from Folder...
  1603. Categori_zeK
  1604. Send Docu_ment
  1605. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  1606. '++LotusScript Development Environment:2:5:(Forward):0:1
  1607. Declare Sub Click(Source As Button)
  1608. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1609. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1610. Private Sub BindEvents(Byval Objectname_ As String)
  1611.      Static Source As BUTTON
  1612.      Set Source = Bind(Objectname_)
  1613.      On Event Click From Source Call Click
  1614. End Sub
  1615. '++LotusScript Development Environment:2:2:Click:1:12
  1616. Sub Click(Source As Button)
  1617.      Call CreateNewDoc(NEW_MEMO)
  1618. End Sub
  1619. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  1620. '++LotusScript Development Environment:2:5:(Forward):0:1
  1621. Declare Sub Click(Source As Button)
  1622. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1623. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1624. Private Sub BindEvents(Byval Objectname_ As String)
  1625.      Static Source As BUTTON
  1626.      Set Source = Bind(Objectname_)
  1627.      On Event Click From Source Call Click
  1628. End Sub
  1629. '++LotusScript Development Environment:2:2:Click:1:12
  1630. Sub Click(Source As Button)
  1631.      Call CreateNewDoc(NEW_CALENDAR)
  1632. End Sub
  1633. tmpnewdoc
  1634.     1S2S
  1635. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  1636. '++LotusScript Development Environment:2:5:(Forward):0:1
  1637. Declare Sub Click(Source As Button)
  1638. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1639. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1640. Private Sub BindEvents(Byval Objectname_ As String)
  1641.      Static Source As BUTTON
  1642.      Set Source = Bind(Objectname_)
  1643.      On Event Click From Source Call Click
  1644. End Sub
  1645. '++LotusScript Development Environment:2:2:Click:1:12
  1646. Sub Click(Source As Button)
  1647.      Call CreateNewDoc(NEW_TASK)
  1648. End Sub
  1649. tmpnewdoc
  1650.     1S2S
  1651. Copy into\New GroupK,
  1652. NewGroup
  1653.     0S0E
  1654. tmpnewdoc
  1655.     1S2S
  1656. '++LotusScript Development Environment:2:5:(Options):0:74
  1657. Option Public
  1658. Use "AppointmentProcessing"
  1659. Use "RepeatProcessing"
  1660. Use "DocumentConversions"
  1661. '++LotusScript Development Environment:2:5:(Forward):0:1
  1662. Declare Sub PutTask
  1663. Declare Sub SetViewObjectVariables(source)
  1664. Declare Sub PutCalendarEntry(Action)
  1665. Declare Sub PutAppointment(Action)
  1666. '++LotusScript Development Environment:2:5:(Declarations):0:10
  1667. Dim uiview As NotesUIView
  1668. Dim startdt As NotesDateTime
  1669. Dim enddt As NotesDateTime
  1670. '++LotusScript Development Environment:2:2:PutTask:1:8
  1671. Sub PutTask
  1672.      
  1673. 'This subroutine is used both for drag/dropping and for pasting
  1674.      Dim timeitem As NotesItem
  1675.      Dim timedt As New NotesDateTime("")
  1676.      
  1677.      On Error Goto ErrorRoutine
  1678.      
  1679.      Set timeitem = note.GetFirstItem("OriginalStartDate")
  1680.      Set datedt = New NotesDateTime(uiview.CalendarDateTime)
  1681.      Set timedt = timeitem.DateTimeValue
  1682.      Set date2 = New NotesDateTime(datedt.DateOnly & " " & timedt.TimeOnly)                         
  1683. 'date1 is the original CalendarDateTime and date2 is the new one     
  1684.      TotalDiff = date2.TimeDifference(date1)
  1685. 'break the difference down to a number that fits in the integer datatype                              
  1686.      DayDiff = Fix(TotalDiff / 86400)
  1687.      SecDiff = TotalDiff Mod 86400
  1688.      MinDiff = Fix(SecDiff / 60)
  1689.      SecDiff = SecDiff Mod 60
  1690. 'If you are changing the date     
  1691.      If (date1.LSLocalTime <> date2.LSLocalTime) Then
  1692.           If note.StartDateTime(0) = "" Then
  1693.                Set note.DueDateTime = date2
  1694.                note.CalendarDateTime = note.DueDateTime
  1695.           Elseif note.DueDateTime(0) = "" Then
  1696.                Set note.StartDateTime = date2
  1697.                note.CalendarDateTime = note.StartDateTime     
  1698.           Else
  1699.                Set note.StartDateTime = date2
  1700.                note.CalendarDateTime = note.StartDateTime
  1701.                Set dateitem = New NotesDateTime(note.DueDateTime(0))
  1702.                dateitem.AdjustDay(DayDiff)
  1703.                dateitem.AdjustMinute(MinDiff)
  1704.                dateitem.AdjustSecond(SecDiff)
  1705.                Set note.DueDateTime = dateitem   
  1706.           End If
  1707.           Call MarkTempFields(note)
  1708.           Call note.Save(True, True, True)
  1709.      End If
  1710.      
  1711.      Exit Sub
  1712.      
  1713. ErrorRoutine:
  1714.      Messagebox Error & " (PutTask)"
  1715.      Exit Sub
  1716. End Sub
  1717. '++LotusScript Development Environment:2:2:SetViewObjectVariables:1:8
  1718. Sub SetViewObjectVariables(source)
  1719.      
  1720.      Set uiview = source
  1721.      Set session = New NotesSession   
  1722.      Set ws = New NotesUIWorkspace
  1723.      Set db = session.CurrentDatabase
  1724.      
  1725. End Sub
  1726. '++LotusScript Development Environment:2:2:PutCalendarEntry:1:8
  1727. Sub PutCalendarEntry(Action)
  1728.      
  1729. 'This subroutine is used both for drag/dropping and for pasting
  1730.      
  1731.      On Error Goto ErrorRoutine
  1732.      
  1733.      CheckAlarms = False
  1734.      Set documents = uiview.documents
  1735.      
  1736.      Set note = documents.GetFirstDocument
  1737.      While Not(note Is Nothing)
  1738.           note.OriginalStartDate = note.CalendarDateTime          
  1739.           Set date1 = New NotesDateTime(note.OriginalStartDate(0))          
  1740.           Select Case note.Form(0)
  1741.           Case "Task"
  1742.                PutTask          
  1743.           Case "Appointment"
  1744.                PutAppointment(Action)
  1745.           Case Else
  1746.                'we only support this for Tasks and Appointments
  1747.           End Select
  1748.           Set note = documents.GetNextDocument(note)
  1749.      Wend
  1750.      
  1751.      If CheckAlarms Then ws.CheckAlarms
  1752.      ws.ViewRefresh
  1753.      
  1754. %REM     
  1755. 'we need to de-reference these object variables, and we don't care if any of the delete's fail     
  1756.      On Error Resume Next
  1757.      Delete documents
  1758.      Delete parent     
  1759.      Delete note
  1760.      Delete notice
  1761.      Delete date1
  1762.      Delete date2
  1763. %END REM
  1764.      
  1765.      Exit Sub
  1766.      
  1767. ErrorRoutine:
  1768.      Messagebox Error & " (PutCalendarEntry)"
  1769.      Exit Sub
  1770.      
  1771. End Sub
  1772. '++LotusScript Development Environment:2:2:PutAppointment:1:8
  1773. Sub PutAppointment(Action)
  1774.      Dim timeitem As NotesItem
  1775.      Dim timedt As New NotesDateTime("")
  1776.      
  1777.      On Error Goto ErrorRoutine
  1778.      
  1779.      Set notice = New NotesDocument(db)          
  1780.      If Action = "Drop" And note.HasItem("OrgRepeat") Then Call SaveOriginalValues
  1781.      If note.HasItem("$Alarm") Then CheckAlarms = True
  1782. 'see if the document was dropped onto a date but no time, or if this is an anniverary/event          
  1783.      If (Hour(uiview.CalendarDateTime) = 0) Or (note.AppointmentType(0) = "1") Or (note.AppointmentType(0) = "2") Then
  1784. 'since this was dropped on a date with no time, keep the same time               
  1785.           Set datedt = New NotesDateTime(uiview.CalendarDateTime)
  1786.           Set timeitem = note.GetFirstItem("OriginalStartDate")
  1787.           Set timedt = timeitem.DateTimeValue             
  1788.           Set date2 = New NotesDateTime(datedt.DateOnly & " " & timedt.TimeOnly)                         
  1789.      Else
  1790.           Set date2 = New NotesDateTime(uiview.CalendarDateTime)               
  1791.      End If
  1792.      TotalDiff = date2.TimeDifference(date1)
  1793. 'break the difference down to a number that fits in the integer datatype                              
  1794.      DayDiff = Fix(TotalDiff / 86400)
  1795.      SecDiff = TotalDiff Mod 86400
  1796.      MinDiff = Fix(SecDiff / 60)
  1797.      SecDiff = SecDiff Mod 60
  1798. 'If you are changing the date     
  1799.      If (date1.LSLocalTime <> date2.LSLocalTime) Then
  1800.           If (note.Chair(0) <> Owner) Then
  1801. 'we are not the creator of this entry -> make sure the user wants to change the date/time of this meeting                    
  1802.                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
  1803.                     Set note.StartDateTime = date2
  1804.                     note.StartDate = Datevalue(note.StartDateTime(0))
  1805.                     note.CalendarDateTime = note.StartDateTime
  1806.                     Set dateitem = New NotesDateTime(note.EndDateTime(0))
  1807.                     dateitem.AdjustDay(DayDiff)
  1808.                     dateitem.AdjustMinute(MinDiff)
  1809.                     dateitem.AdjustSecond(SecDiff)
  1810.                     Set note.EndDateTime = dateitem
  1811.                     If note.HasItem("$AlarmTime") Then
  1812.                          AlarmTime = note.GetItemValue("$AlarmTime")
  1813.                          Set dateitem = New NotesDateTime(AlarmTime(0))
  1814.                          dateitem.AdjustDay(DayDiff)
  1815.                          dateitem.AdjustMinute(MinDiff)
  1816.                          dateitem.AdjustSecond(SecDiff)
  1817.                          Set item = note.GetFirstItem("$AlarmTime")
  1818.                          Set item.DateTimeValue = dateitem
  1819.                     End If
  1820.                     If (note.AppointmentType(0) = "4") Then
  1821.                          note.ReminderTime = note.StartDateTime(0)
  1822.                     Else
  1823.                          Set trdr = session.CreateDateRange
  1824.                          Set startdt = New NotesDateTime(note.StartDateTime(0))
  1825.                          Set enddt = New NotesDateTime(note.EndDateTime(0))
  1826.                          Set trdr.StartDateTime = startdt
  1827.                          Set trdr.EndDateTime = enddt
  1828.                          Set note.TimeRange = trdr                   
  1829.                     End If
  1830.                     If Action = "Drop" Then
  1831.                          If note.HasItem("OrgRepeat") Then Call RepeatSave
  1832.                     Elseif note.HasItem("OrgRepeat") Then
  1833.                          note.RemoveItem("OrgRepeat")
  1834.                          note.RemoveItem("$Ref")
  1835.                          Messagebox "Pasting an instance of a repeating appointment creates a non-repeating appointment.", 64, "Paste"
  1836.                     End If
  1837.                     If CancelChange = True Then Exit Sub                         
  1838.                     Call MarkTempFields(note)
  1839.                     Call note.Save(True, True, True)                         
  1840.                End If
  1841.           Else
  1842. 'we are the originator of this meeting
  1843.                Set note.StartDateTime = date2
  1844.                Set note.StartDate = date2
  1845.                note.CalendarDateTime = note.StartDateTime
  1846.                Set dateitem = New NotesDateTime(note.EndDateTime(0))
  1847.                dateitem.AdjustDay(DayDiff)
  1848.                dateitem.AdjustMinute(MinDiff)
  1849.                dateitem.AdjustSecond(SecDiff)
  1850.                Set note.EndDateTime = dateitem
  1851.                If note.HasItem("$AlarmTime") Then
  1852.                     AlarmTime = note.GetItemValue("$AlarmTime")
  1853.                     Set dateitem = New NotesDateTime(AlarmTime(0))
  1854.                     dateitem.AdjustDay(DayDiff)
  1855.                     dateitem.AdjustMinute(MinDiff)
  1856.                     dateitem.AdjustSecond(SecDiff)
  1857.                     Set item = note.GetFirstItem("$AlarmTime")
  1858.                     Set item.DateTimeValue = dateitem
  1859.                End If
  1860.                If (note.AppointmentType(0) = "4") Then
  1861.                     note.ReminderTime = note.StartDateTime(0)
  1862.                Else
  1863.                     Set trdr = session.CreateDateRange
  1864.                     Set startdt = New NotesDateTime(note.StartDateTime(0))
  1865.                     Set enddt = New NotesDateTime(note.EndDateTime(0))
  1866.                     Set trdr.StartDateTime = date2
  1867.                     Set trdr.EndDateTime = dateitem
  1868.                     Set note.TimeRange = trdr                   
  1869.                End If
  1870. 'see if we need to reschedule the appointment               
  1871.                If (Not(note.IsResponse) And (note.HasItem("PostedDate"))) Or ((note.IsResponse) And (note.AppointmentType(0) = "3")) Then 
  1872.                     
  1873.                     If (note.IsResponse) Then
  1874.                          Set parentnote = db.GetDocumentBYUNID(note.ParentDocumentUNID)
  1875.                          Call CreateInviteeTable(parentnote)                         
  1876.                     Else
  1877.                          Call CreateInviteeTable(note)
  1878.                     End If
  1879.                     NeedsReschedule = True
  1880.                End If        
  1881.                If (NeedsReschedule) Then note.SequenceNum = note.SequenceNum(0) + 1
  1882.                If Action = "Drop" Then
  1883.                     If note.HasItem("OrgRepeat") Then Call RepeatSave
  1884.                Elseif note.HasItem("OrgRepeat") Then
  1885.                     note.RemoveItem("OrgRepeat")
  1886.                     note.RemoveItem("$Ref")
  1887.                     Messagebox "Pasting an instance of a repeating appointment creates a non-repeating appointment.", 64, "Paste"
  1888.                End If
  1889.                If CancelChange = True Then Exit Sub
  1890.                If (NeedsReschedule) Then Call RescheduleAppointment
  1891.                Call MarkTempFields(note)
  1892.                Call note.Save(True, True, True)
  1893.           End If                             
  1894.      End If
  1895.      
  1896.      Exit Sub
  1897.      
  1898. ErrorRoutine:
  1899.      Messagebox Error & " (PutAppointment)"
  1900.      Exit Sub
  1901.      
  1902. End Sub
  1903.     0    0    
  1904. ,`    Jh
  1905. '++LotusScript Development Environment:2:5:(Options):0:66
  1906. '++LotusScript Development Environment:2:5:(Forward):0:1
  1907. Declare Sub Postdragdrop(Source As Notesuiview)
  1908. Declare Sub Regiondoubleclick(Source As Notesuiview)
  1909. Declare Sub Querydragdrop(Source As Notesuiview, Continue As Variant)
  1910. Declare Sub Postpaste(Source As Notesuiview)
  1911. Declare Sub Queryopen(Source As Notesuiview, Continue As Variant)
  1912. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1913. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1914. Private Sub BindEvents(Byval Objectname_ As String)
  1915.      Static Source As NOTESUIVIEW
  1916.      Set Source = Bind(Objectname_)
  1917.      On Event Postdragdrop From Source Call Postdragdrop
  1918.      On Event Regiondoubleclick From Source Call Regiondoubleclick
  1919.      On Event Querydragdrop From Source Call Querydragdrop
  1920.      On Event Postpaste From Source Call Postpaste
  1921.      On Event Queryopen From Source Call Queryopen
  1922. End Sub
  1923. '++LotusScript Development Environment:2:2:Postdragdrop:1:12
  1924. Sub Postdragdrop(Source As Notesuiview)
  1925.      
  1926.      Call SetViewObjectVariables(source)
  1927.      Call GetCalendarOwner
  1928.      Call PutCalendarEntry("Drop")
  1929.      
  1930. End Sub
  1931. '++LotusScript Development Environment:2:2:Regiondoubleclick:1:12
  1932. Sub Regiondoubleclick(Source As Notesuiview)
  1933.      
  1934.      Set ws = New NotesUIWorkspace
  1935.      Set session = New NotesSession
  1936.      
  1937.      If source.CalendarDateTime <> "" Then Call ws.ComposeDocument("", "", "Appointment")
  1938.      
  1939. End Sub
  1940. '++LotusScript Development Environment:2:2:Querydragdrop:1:12
  1941. Sub Querydragdrop(Source As Notesuiview, Continue As Variant)
  1942.      
  1943. End Sub
  1944. '++LotusScript Development Environment:2:2:Postpaste:1:12
  1945. Sub Postpaste(Source As Notesuiview)
  1946.      
  1947.      Call SetViewObjectVariables(source)
  1948.      GetCalendarOwner
  1949.      PutCalendarEntry("Paste")
  1950.      
  1951. End Sub
  1952. '++LotusScript Development Environment:2:2:Queryopen:1:12
  1953. Sub Queryopen(Source As Notesuiview, Continue As Variant)
  1954.      
  1955. End Sub
  1956. O=Lotus Notes
  1957. O=Lotus Notes
  1958. PURSAFO
  1959. |.:#U
  1960. O=Lotus Notes
  1961. CN=Lotus Notes Template Development/O=Lotus Notes
  1962. PURSAFO
  1963. Fde!f^^
  1964. P&q_]
  1965. $TITLE
  1966. $PublicAccess
  1967. $Index
  1968. $Formula
  1969. $FormulaClass
  1970. $VIEWFORMAT
  1971. $CalendarFormat
  1972. $Comment
  1973. $ACTIONS
  1974. $SCRIPTOBJ_12
  1975. $SCRIPTOBJ_13
  1976. $SCRIPTOBJ_14
  1977. $ViewGlobalScript
  1978. $ViewGlobalScript_O
  1979. $ViewScript
  1980. $ViewScript_O
  1981. IsMailStationeryh
  1982. Stationery
  1983. Drafts
  1984.     7S9S
  1985. IsMailStationeryh
  1986.     7S9S
  1987. SendTo
  1988.     1S2S6S
  1989.     0R1S2S8S
  1990.     0R1S2S15S16S17S18S25S
  1991. SendTo
  1992.     0R1S2S5S6S8S12S16S20S
  1993. SendTo
  1994.     0R1S2S5S6S8S12S16S20S
  1995. Person
  1996.     0R1S2S5S6S8S10S11S12S13S14S
  1997. Person
  1998. Person
  1999. Person
  2000. Person
  2001.     0R10S11S20S32S
  2002. $ContentIconh
  2003. $ContentIcon
  2004. Froma
  2005.  pager 
  2006. SendToa
  2007.  pager 
  2008. message.wav
  2009. vmsg_hdr.wav
  2010. .wavG
  2011. .tifG
  2012. $ContentIconh
  2013. $ContentIcon
  2014.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  2015. IsMailStationeryh
  2016. MailStationeryName
  2017. Subject
  2018.     7S9S
  2019. $58$59$65$55$62$60$Conflict
  2020. PostedDate
  2021. $MessageType
  2022. ExcludeFromView
  2023.     L1S2S3S4S5S6S7S8S9S12S13S
  2024. IsMailStationeryh
  2025. Stationery
  2026. Drafts
  2027.     7S9S
  2028. IsMailStationeryh
  2029.     7S9S
  2030. $65Whol
  2031. SendTo
  2032.     1S2S6S
  2033.     0R1S2S8S
  2034.     0R1S2S15S16S17S18S25S
  2035. SendTo
  2036.     0R1S2S5S6S8S12S16S20S
  2037. SendTo
  2038.     0R1S2S5S6S8S12S16S20S
  2039. Person
  2040.     0R1S2S5S6S8S10S11S12S13S14S
  2041. Person
  2042. Person
  2043. Person
  2044. Person
  2045.     0R10S11S20S32S
  2046. $55Date
  2047. $ContentIconh
  2048. $ContentIcon
  2049. Froma
  2050.  pager 
  2051. SendToa
  2052.  pager 
  2053. message.wav
  2054. vmsg_hdr.wav
  2055. .wavG
  2056. .tifG
  2057. $ContentIconh
  2058. $ContentIcon
  2059.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$60Subjectb
  2060. IsMailStationeryh
  2061. MailStationeryName
  2062. Subject
  2063.     7S9S
  2064. New Memo.
  2065.     0S0E
  2066. Delete 
  2067.     0S0E
  2068. _Forward
  2069. Categori_ze
  2070. Edit Document
  2071. IsMailStationeryh
  2072.     7S9S
  2073. MailStEd
  2074. Edit Document
  2075. Which would you like to do?
  2076. Edit this Stationery
  2077. Edit this Stationery
  2078. Create a new message from this Stationery
  2079. Edit this Stationery
  2080.     0RR1S2S3S8S9S11S13S15S17S18S19S21S22S24S26S
  2081. Use Stationery
  2082. IsMailStationeryh
  2083. Not Stationery
  2084. This is a not a Stationery message.
  2085.     7S9S
  2086. Rename Stationery...
  2087. IsMailStationery
  2088. Rename Stationery
  2089. The currently selected document is a Draft.  Only Stationery documents can be renamed.
  2090.     3S4S10RS9E19RS9E
  2091. MailStationeryName
  2092. Rename Stationery
  2093. What would you like to call this Stationery message?
  2094. MailStationeryName
  2095.     0R1S2S3S7S9S11S
  2096. _Move To Folder...
  2097. _Remove From Folder...
  2098. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  2099. '++LotusScript Development Environment:2:5:(Forward):0:1
  2100. Declare Sub Click(Source As Button)
  2101. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2102. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2103. Private Sub BindEvents(Byval Objectname_ As String)
  2104.      Static Source As BUTTON
  2105.      Set Source = Bind(Objectname_)
  2106.      On Event Click From Source Call Click
  2107. End Sub
  2108. '++LotusScript Development Environment:2:2:Click:1:12
  2109. Sub Click(Source As Button)
  2110.      Call CreateNewDoc(NEW_MEMO)
  2111. End Sub
  2112. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  2113. '++LotusScript Development Environment:2:5:(Forward):0:1
  2114. Declare Sub Click(Source As Button)
  2115. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2116. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2117. Private Sub BindEvents(Byval Objectname_ As String)
  2118.      Static Source As BUTTON
  2119.      Set Source = Bind(Objectname_)
  2120.      On Event Click From Source Call Click
  2121. End Sub
  2122. '++LotusScript Development Environment:2:2:Click:1:12
  2123. Sub Click(Source As Button)
  2124.      Call CreateNewDoc(NEW_CALENDAR)
  2125. End Sub
  2126. tmpnewdoc
  2127.     1S2S
  2128. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  2129. '++LotusScript Development Environment:2:5:(Forward):0:1
  2130. Declare Sub Click(Source As Button)
  2131. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2132. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2133. Private Sub BindEvents(Byval Objectname_ As String)
  2134.      Static Source As BUTTON
  2135.      Set Source = Bind(Objectname_)
  2136.      On Event Click From Source Call Click
  2137. End Sub
  2138. '++LotusScript Development Environment:2:2:Click:1:12
  2139. Sub Click(Source As Button)
  2140.      Call CreateNewDoc(NEW_TASK)
  2141. End Sub
  2142. tmpnewdoc
  2143.     1S2S
  2144. Copy into\New Group
  2145. NewGroup
  2146.     0S0E
  2147. tmpnewdoc
  2148.     1S2S
  2149. '++LotusScript Development Environment:2:5:(Options):0:74
  2150. Option Public
  2151. Use "DocumentConversions"
  2152. '++LotusScript Development Environment:2:5:(Forward):0:1
  2153. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2154. O=Lotus Notes
  2155. O=Lotus Notes
  2156. PURSAFO
  2157. |.:#U
  2158. O=Lotus Notes
  2159. CN=Lotus Notes Template Development/O=Lotus Notes
  2160. PURSAFO
  2161. Fde!f^^
  2162. $TITLE
  2163. $Index
  2164. $Formula
  2165. $FormulaClass
  2166. $VIEWFORMAT
  2167. $FormFormula
  2168. $Comment
  2169. $ACTIONS
  2170. $SCRIPTOBJ_11
  2171. $SCRIPTOBJ_12
  2172. $SCRIPTOBJ_13
  2173. $ViewGlobalScript
  2174. $ViewGlobalScript_O
  2175. Strip alternatives, parentheses, and a leading dollar sign from the $Title item
  2176. FolderName1
  2177. $Title
  2178.     0R1S2S10S15S16S18S
  2179. FolderName2
  2180. FolderName1
  2181. $Title
  2182. FolderName1
  2183. FolderName1
  2184. FolderName1
  2185.     0R1S2S6S7S9S10S15S17S18S21S25S28S
  2186. FolderName2
  2187.     0S0E
  2188. Set the folder flags in addition to those that are stored
  2189. FolderFlags1
  2190. $FolderFlagsh
  2191. $FolderFlags
  2192.     0R1S2S9S11S
  2193. Set the FOLDER_FLAG_HIDDEN (32) and FOLDER_FLAG_SYSTEM (16) flags
  2194.     0R1S
  2195. FolderFlags1
  2196. $Name
  2197. $Name
  2198.     0R1S2S8S10S11S13S19S21S22S24S26S29S
  2199. $106$103$107$Conflict
  2200. Select all folders, except shared-on-first-use folders
  2201. $Flags
  2202. $Flags
  2203.     0RL1S5S7S8S13S
  2204. $106Folder Name
  2205. Strip alternatives, parentheses, and a leading dollar sign from the $Title item
  2206. FolderName1
  2207. $Title
  2208.     0R1S2S10S15S16S18S
  2209. FolderName2
  2210. FolderName1
  2211. $Title
  2212. FolderName1
  2213. FolderName1
  2214. FolderName1
  2215.     0R1S2S6S7S9S10S15S17S18S21S25S28S
  2216. FolderName2
  2217. $103Folder UNID
  2218.     0S0E
  2219. $107Folder Flags
  2220. Set the folder flags in addition to those that are stored
  2221. FolderFlags1
  2222. $FolderFlagsh
  2223. $FolderFlags
  2224.     0R1S2S9S11S
  2225. Set the FOLDER_FLAG_HIDDEN (32) and FOLDER_FLAG_SYSTEM (16) flags
  2226.     0R1S
  2227. FolderFlags1
  2228. $Name
  2229. $Name
  2230.     0R1S2S8S10S11S13S19S21S22S24S26S29S&
  2231. New Memo.
  2232.     0S0E
  2233. Delete 
  2234.     0S0E
  2235. Move To Folder...
  2236.     0S0E
  2237. _Forward
  2238. Reply
  2239. Reply
  2240.     0S0E
  2241. Reply With History@
  2242. Reply with history
  2243.     0S0E
  2244. Categori_ze
  2245. _Edit Document
  2246. Send    
  2247. Resend
  2248. NonDelivery Report
  2249. Not a Delivery Failure Report
  2250. You cannot Resend a message unless it is a Delivery Failure Report.
  2251.     6S12S17S23S
  2252. Convert To Task
  2253. ConvertToTask
  2254. _Move To Folder...
  2255. _Remove From Folder...
  2256. O=Lotus Notes
  2257. O=Lotus Notes
  2258. PURSAFO
  2259. |.:#U
  2260. O=Lotus Notes
  2261. CN=Lotus Notes Template Development/O=Lotus Notes
  2262. PURSAFO
  2263. Fde!f^^
  2264.     /jNk
  2265. $Name
  2266. $TITLE
  2267. $Index
  2268. $Formula
  2269. $VIEWFORMAT
  2270. $Comment
  2271. $ACTIONS
  2272. $FormulaClass
  2273. New Memo.
  2274.     0S0E
  2275. Delete 
  2276.     0S0E
  2277. Move To Folder...
  2278.     0S0E
  2279. _Forward
  2280. Reply
  2281. Reply
  2282.     0S0E
  2283. Reply With History@
  2284. Reply with history
  2285.     0S0E
  2286. Categori_zeK
  2287. _Edit Document
  2288. Send    
  2289. Resend
  2290. NonDelivery Report
  2291. Not a Delivery Failure Report
  2292. You cannot Resend a message unless it is a Delivery Failure Report.
  2293.     6S12S17S23S
  2294. Convert To TaskK0
  2295. ConvertToTask
  2296. _Move To Folder...
  2297. _Remove From Folder...
  2298. O=Lotus Notes
  2299. O=Lotus Notes
  2300. PURSAFO
  2301. |.:#U
  2302. O=Lotus Notes
  2303. CN=Lotus Notes Template Development/O=Lotus Notes
  2304. PURSAFO
  2305. Fde!f^^
  2306. &*dz6
  2307. $Name
  2308. $TITLE
  2309. $Index
  2310. $Formula
  2311. $FormulaClass
  2312. $VIEWFORMAT
  2313. $Comment
  2314. $ACTIONS
  2315. Appointment
  2316. _ViewIcon
  2317. _ViewIcon
  2318.     3S4S6S8S13S15S
  2319. Principal
  2320. Principal
  2321.     1S2S
  2322. OrgRepeat
  2323. Notice
  2324. Subject
  2325. Subject
  2326. StartDateTime
  2327. D0S2V
  2328. PostedDateh
  2329. NoticeType
  2330.  can meet at the suggested time
  2331. NoticeType
  2332.  would like to propose a change
  2333. NoticeType
  2334.  will not be attending"
  2335. NoticeType
  2336.  has asked someone else to attend instead
  2337. From 
  2338. Subject
  2339. Subject
  2340.     0R7RS4E10S11S13RS18E15RS13E16S17S18S19S23S25S26S29R34RS4E37S38S40RS13E41S42S44RS8E45S46S48RS14E49S50S52RS8E53S54S56RS14E57S58S60RS8E61S62S64RS14E65S66S68RS7E69S70S71S72S73S74S77R
  2341. $119$122StartDateTimeSubject$Conflict$REF
  2342. Appointment
  2343. Notice
  2344.     L1S2S3S6S7S
  2345.  $119
  2346. Appointment
  2347. _ViewIcon
  2348. _ViewIcon
  2349.     3S4S6S8S13S15S
  2350. $122x
  2351. Principal
  2352. Principal
  2353.     1S2S
  2354. OrgRepeat
  2355. Notice
  2356. Subject
  2357. Subject
  2358. StartDateTime
  2359. D0S2V
  2360. PostedDateh
  2361. NoticeType
  2362.  can meet at the suggested time
  2363. NoticeType
  2364.  would like to propose a change
  2365. NoticeType
  2366.  will not be attending"
  2367. NoticeType
  2368.  has asked someone else to attend instead
  2369. From 
  2370. Subject
  2371. Subject
  2372.     0R7RS4E10S11S13RS18E15RS13E16S17S18S19S23S25S26S29R34RS4E37S38S40RS13E41S42S44RS8E45S46S48RS14E49S50S52RS8E53S54S56RS14E57S58S60RS8E61S62S64RS14E65S66S68RS7E69S70S71S72S73S74S77R
  2373. StartDateTimeMeeting TimeSubjectSubject&
  2374. _Forward
  2375. _Edit Document
  2376. New Entry
  2377. Appointment
  2378.     0S0E
  2379. _Move to Folder...
  2380. _Remove from Folder...
  2381. Categori_zeK
  2382. Send Docu_ment
  2383. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  2384. '++LotusScript Development Environment:2:5:(Forward):0:1
  2385. Declare Sub Click(Source As Button)
  2386. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2387. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2388. Private Sub BindEvents(Byval Objectname_ As String)
  2389.      Static Source As BUTTON
  2390.      Set Source = Bind(Objectname_)
  2391.      On Event Click From Source Call Click
  2392. End Sub
  2393. '++LotusScript Development Environment:2:2:Click:1:12
  2394. Sub Click(Source As Button)
  2395.      Call CreateNewDoc(NEW_MEMO)
  2396. End Sub
  2397. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  2398. '++LotusScript Development Environment:2:5:(Forward):0:1
  2399. Declare Sub Click(Source As Button)
  2400. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2401. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2402. Private Sub BindEvents(Byval Objectname_ As String)
  2403.      Static Source As BUTTON
  2404.      Set Source = Bind(Objectname_)
  2405.      On Event Click From Source Call Click
  2406. End Sub
  2407. '++LotusScript Development Environment:2:2:Click:1:12
  2408. Sub Click(Source As Button)
  2409.      Call CreateNewDoc(NEW_CALENDAR)
  2410. End Sub
  2411. tmpnewdoc
  2412.     1S2S
  2413. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  2414. '++LotusScript Development Environment:2:5:(Forward):0:1
  2415. Declare Sub Click(Source As Button)
  2416. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2417. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2418. Private Sub BindEvents(Byval Objectname_ As String)
  2419.      Static Source As BUTTON
  2420.      Set Source = Bind(Objectname_)
  2421.      On Event Click From Source Call Click
  2422. End Sub
  2423. '++LotusScript Development Environment:2:2:Click:1:12
  2424. Sub Click(Source As Button)
  2425.      Call CreateNewDoc(NEW_TASK)
  2426. End Sub
  2427. tmpnewdoc
  2428.     1S2S
  2429. Copy into\New GroupK,
  2430. NewGroup
  2431.     0S0E
  2432. tmpnewdoc
  2433.     1S2S
  2434. '++LotusScript Development Environment:2:5:(Options):0:74
  2435. Option Public
  2436. Use "DocumentConversions"
  2437. '++LotusScript Development Environment:2:5:(Forward):0:1
  2438. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2439. O=Lotus Notes
  2440. O=Lotus Notes
  2441. PURSAFO
  2442. |.:#U
  2443. O=Lotus Notes
  2444. CN=Lotus Notes Template Development/O=Lotus Notes
  2445. PURSAFO
  2446. Fde!f^^
  2447. $TITLE
  2448. $PublicAccess
  2449. $Index
  2450. $Formula
  2451. $FormulaClass
  2452. $VIEWFORMAT
  2453. $Comment
  2454. $ACTIONS
  2455. $SCRIPTOBJ_7
  2456. $SCRIPTOBJ_8
  2457. $SCRIPTOBJ_9
  2458. $ViewGlobalScript
  2459. $ViewGlobalScript_O
  2460. ($POP3UIDL)|($POP3UIDL)J
  2461. $RFC822MessageSize
  2462.     1S2S3S
  2463. $RFC822MessageSize
  2464. $POP3ExportSize
  2465.     1S2S3S
  2466. $POP3ExportSize
  2467. MailPop3UIDLDeliveredDate$32$30$Conflict
  2468. MailPop3UIDL
  2469.     1S2S3S
  2470. MailPop3UIDL
  2471.     0RL1S2S3S1-
  2472. MailPop3UIDLDeliveredDate
  2473. MailPop3UIDLMailPop3UIDLDeliveredDateDelivered Date$32$RFC822MessageSize`
  2474. $RFC822MessageSize
  2475.     1S2S3S
  2476. $RFC822MessageSize
  2477. $30$POP3ExportSize\
  2478. $POP3ExportSize
  2479.     1S2S3S
  2480. $POP3ExportSize
  2481. 553Courier NewYP
  2482. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################
  2483. ($POP3)@
  2484. $RFC822MessageSize
  2485.     1S2S3S
  2486. $RFC822MessageSize
  2487. $POP3ExportSize
  2488.     1S2S3S
  2489. $POP3ExportSize
  2490. DeliveredDate$32$30$Conflict
  2491. DeliveredDate
  2492.     1S2S3S
  2493. DeliveredDate
  2494.     0RL1S2S3S1
  2495. DeliveredDate
  2496. DeliveredDateDelivered Date$32$RFC822MessageSize`
  2497. $RFC822MessageSize
  2498.     1S2S3S
  2499. $RFC822MessageSize
  2500. $30$POP3ExportSize\
  2501. $POP3ExportSize
  2502.     1S2S3S
  2503. $POP3ExportSize
  2504. 553Courier NewY
  2505. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris######################
  2506. $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
  2507. $82$62
  2508. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  2509. ##########################################################
  2510. $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
  2511. $172$176$186DueDateTime$182#
  2512. $182DueDateTimeY
  2513. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########
  2514. ##########################################################
  2515. ##########################################################
  2516. ##########################################################
  2517. '++LotusScript Development Environment:2:5:(Options):0:74
  2518. Option Public
  2519. '++LotusScript Development Environment:2:5:(Forward):0:1
  2520. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2521. O=Lotus Notes
  2522. O=Lotus Notes
  2523. PURSAFO
  2524. |.:#U
  2525. O=Lotus Notes
  2526. CN=Lotus Notes Template Development/O=Lotus Notes
  2527. PURSAFO
  2528. Fde!f^^
  2529. $TITLE
  2530. $Index
  2531. $Formula
  2532. $FormulaClass
  2533. $VIEWFORMAT
  2534. $Comment
  2535. $ViewGlobalScript
  2536. '++LotusScript Development Environment:2:5:(Options):0:74
  2537. Option Public
  2538. '++LotusScript Development Environment:2:5:(Forward):0:1
  2539. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2540. O=Lotus Notes
  2541. O=Lotus Notes
  2542. PURSAFO
  2543. |.:#U
  2544. O=Lotus Notes
  2545. CN=Lotus Notes Template Development/O=Lotus Notes
  2546. PURSAFO
  2547. Fde!f^^
  2548. 7~ 9my4
  2549. $TITLE
  2550. $Index
  2551. $Formula
  2552. $FormulaClass
  2553. $VIEWFORMAT
  2554. $Comment
  2555. $ViewGlobalScript
  2556. $ViewGlobalScript_O
  2557. _Forward
  2558. Categori_zeK
  2559. Edit Message
  2560. _Move to Folder...
  2561. _Remove from Folder...
  2562. O=Lotus Notes
  2563. O=Lotus Notes
  2564. PURSAFO
  2565. |.:#U
  2566. O=Lotus Notes
  2567. CN=Lotus Notes Template Development/O=Lotus Notes
  2568. PURSAFO
  2569. Fde!f^^
  2570. $TITLE
  2571. $Index
  2572. $Formula
  2573. $FormulaClass
  2574. $VIEWFORMAT
  2575. $Comment
  2576. $ACTIONS
  2577. DeliveredDate
  2578. PostedDate
  2579. PostedDateY
  2580. Importance
  2581.     6S11S12S17S19S31S
  2582. SentBy
  2583. Principal
  2584. Principal
  2585.     1S2S5S6S8S10S
  2586. Attendees
  2587. RequiredAttendees
  2588. OptionalAttendees
  2589.     0R1S2S5S6S
  2590. DeliveredDate
  2591. SentBy
  2592. Attendees
  2593. Attendees
  2594. SendTo
  2595. SentBy
  2596. SendTo
  2597.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  2598.     0R1S2S8S
  2599.     0R1S2S15S16S
  2600.     0R1S2S5S6S8S14S18S
  2601.     0R1S2S5S6S8S14S18S
  2602. Person
  2603. X400FreeForm^
  2604.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  2605. Person2
  2606. Person
  2607. Person
  2608. Person
  2609. Person
  2610.     0R1S2S12S13S22S34S
  2611. Delivery Report
  2612. NonDelivery Report
  2613. Trace Report
  2614. Mail Router
  2615. Person2
  2616.     0R3S4S5S6S7S8S10S12S
  2617. DeliveredDate
  2618. DeliveredDate
  2619. PostedDate
  2620. PostedDate
  2621.     3S4S6S8S9S10S12S14S
  2622. $ContentIconh
  2623. $ContentIcon
  2624. Froma
  2625.  pager 
  2626. SendToa
  2627.  pager 
  2628. message.wav
  2629. vmsg_hdr.wav
  2630. .wavG
  2631. .tifG
  2632. $ContentIconh
  2633. $ContentIcon
  2634.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  2635. NonDelivery Report
  2636. DELIVERY FAILURE: 
  2637. FailureReason
  2638. Delivery Report
  2639. DELIVERED: 
  2640. Subject
  2641. Return Receipt
  2642. RECEIVED: 
  2643. Subject
  2644. ReturnNonReceipt
  2645. NOT RECEIVED: 
  2646. Subject
  2647. Subject
  2648.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S
  2649. $71$82$62$75$65$Conflict
  2650. DeliveredDate
  2651. PostedDate
  2652.     L1S4S5S
  2653. DeliveredDate
  2654. PostedDate
  2655. PostedDateY
  2656. Importance
  2657.     6S11S12S17S19S31S$82Who
  2658. SentBy
  2659. Principal
  2660. Principal
  2661.     1S2S5S6S8S10S
  2662. Attendees
  2663. RequiredAttendees
  2664. OptionalAttendees
  2665.     0R1S2S5S6S
  2666. DeliveredDate
  2667. SentBy
  2668. Attendees
  2669. Attendees
  2670. SendTo
  2671. SentBy
  2672. SendTo
  2673.     0R1S2S5S6S8S10S14S15S17S21S24S25S26S28S30S34S
  2674.     0R1S2S8S
  2675.     0R1S2S15S16S
  2676.     0R1S2S5S6S8S14S18S
  2677.     0R1S2S5S6S8S14S18S
  2678. Person
  2679. X400FreeForm^
  2680.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  2681. Person2
  2682. Person
  2683. Person
  2684. Person
  2685. Person
  2686.     0R1S2S12S13S22S34S
  2687. Delivery Report
  2688. NonDelivery Report
  2689. Trace Report
  2690. Mail Router
  2691. Person2
  2692.     0R3S4S5S6S7S8S10S12S
  2693. $62Date
  2694. DeliveredDate
  2695. DeliveredDate
  2696. PostedDate
  2697. PostedDate
  2698.     3S4S6S8S9S10S12S14S$75F
  2699. $ContentIconh
  2700. $ContentIcon
  2701. Froma
  2702.  pager 
  2703. SendToa
  2704.  pager 
  2705. message.wav
  2706. vmsg_hdr.wav
  2707. .wavG
  2708. .tifG
  2709. $ContentIconh
  2710. $ContentIcon
  2711.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$65Subject
  2712. NonDelivery Report
  2713. DELIVERY FAILURE: 
  2714. FailureReason
  2715. Delivery Report
  2716. DELIVERED: 
  2717. Subject
  2718. Return Receipt
  2719. RECEIVED: 
  2720. Subject
  2721. ReturnNonReceipt
  2722. NOT RECEIVED: 
  2723. Subject
  2724. Subject
  2725.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S&
  2726. New Memo.
  2727.     0S0E
  2728. Delete 
  2729.     0S0E
  2730. Move To Folder...% 
  2731.     0S0E
  2732. _Forward
  2733. Categori_ze
  2734. Edit Document1
  2735. Edit New Copy
  2736. MailStEd
  2737.     1S2S3S
  2738. _Move To Folder...    
  2739. _Remove From Folder...
  2740. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  2741. '++LotusScript Development Environment:2:5:(Forward):0:1
  2742. Declare Sub Click(Source As Button)
  2743. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2744. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2745. Private Sub BindEvents(Byval Objectname_ As String)
  2746.      Static Source As BUTTON
  2747.      Set Source = Bind(Objectname_)
  2748.      On Event Click From Source Call Click
  2749. End Sub
  2750. '++LotusScript Development Environment:2:2:Click:1:12
  2751. Sub Click(Source As Button)
  2752.      Call CreateNewDoc(NEW_MEMO)
  2753. End Sub
  2754. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  2755. '++LotusScript Development Environment:2:5:(Forward):0:1
  2756. Declare Sub Click(Source As Button)
  2757. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2758. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2759. Private Sub BindEvents(Byval Objectname_ As String)
  2760.      Static Source As BUTTON
  2761.      Set Source = Bind(Objectname_)
  2762.      On Event Click From Source Call Click
  2763. End Sub
  2764. '++LotusScript Development Environment:2:2:Click:1:12
  2765. Sub Click(Source As Button)
  2766.      Call CreateNewDoc(NEW_CALENDAR)
  2767. End Sub
  2768. tmpnewdoc
  2769.     1S2S
  2770. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  2771. '++LotusScript Development Environment:2:5:(Forward):0:1
  2772. Declare Sub Click(Source As Button)
  2773. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2774. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2775. Private Sub BindEvents(Byval Objectname_ As String)
  2776.      Static Source As BUTTON
  2777.      Set Source = Bind(Objectname_)
  2778.      On Event Click From Source Call Click
  2779. End Sub
  2780. '++LotusScript Development Environment:2:2:Click:1:12
  2781. Sub Click(Source As Button)
  2782.      Call CreateNewDoc(NEW_TASK)
  2783. End Sub
  2784. tmpnewdoc
  2785.     1S2S
  2786. Copy into\New Groupt,
  2787. NewGroup
  2788.     0S0E
  2789. tmpnewdoc
  2790.     1S2S
  2791. '++LotusScript Development Environment:2:5:(Options):0:74
  2792. Option Public
  2793. Use "DocumentConversions"
  2794. '++LotusScript Development Environment:2:5:(Forward):0:1
  2795. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2796. O=Lotus Notes
  2797. O=Lotus Notes
  2798. PURSAFO
  2799. |.:#U
  2800. O=Lotus Notes
  2801. CN=Lotus Notes Template Development/O=Lotus Notes
  2802. PURSAFO
  2803. Fde!f^^
  2804. ,OqULU
  2805. (!],%
  2806. $TYPE
  2807. $TABLEFORMAT
  2808. $TITLE
  2809. $Index
  2810. $Formula
  2811. $FormulaClass
  2812. $VIEWFORMAT
  2813. $Comment
  2814. $ACTIONS
  2815. $SCRIPTOBJ_10
  2816. $SCRIPTOBJ_11
  2817. $SCRIPTOBJ_12
  2818. $ViewGlobalScript
  2819. $ViewGlobalScript_O
  2820. DueStateh
  2821. DueState
  2822.     7S9S
  2823. DueState
  2824. Overdue
  2825. DueState
  2826. Future
  2827. DueState
  2828. Rejected
  2829. DueState
  2830. Complete
  2831. Current
  2832.     3S4S6S8S9S10S12S14S15S16S18S20S21S22S24S26S
  2833. $186l
  2834. AssignState
  2835. Importance
  2836. Importance
  2837. Importance
  2838.     4S6R7S8S10S12R18R24R30R
  2839. SentBy
  2840. Principal
  2841. Principal
  2842.     1S2S5S6S8S10S
  2843. Subject
  2844. SentBy
  2845.  (Assigned by 
  2846. SentBy
  2847.     0R1S2E2S5S6S8S14S16S17S19S
  2848. AssignedToh
  2849. AssignedTo
  2850. AssignedTo
  2851. AssignState
  2852.  (Not Sent)
  2853. ReplyTo
  2854. ReplyDate
  2855. SendTo
  2856. SendTo
  2857. ReplyTo
  2858.     2R6S7S10S11S15S18S20S24S26S27S30S31S33S35S39R42S43S46S49S50S52S56S59S65S68S72S76S78S82S86R
  2859. $172$176$186Subject$185DueDateTime$182$Conflict$REF
  2860. DueDateTime
  2861. ExcludeFromView
  2862.     L1S3S4S5S6S7S8S9S10S12S13S16S17S
  2863.  $172N
  2864. DueStateh
  2865. DueState
  2866.     7S9S
  2867. DueState
  2868. Overdue
  2869. DueState
  2870. Future
  2871. DueState
  2872. Rejected
  2873. DueState
  2874. Complete
  2875. Current
  2876.     3S4S6S8S9S10S12S14S15S16S18S20S21S22S24S26S$186
  2877. $186l
  2878. AssignState
  2879. Importance
  2880. Importance
  2881. Importance
  2882.     4S6R7S8S10S12R18R24R30RSubject$185Task
  2883. SentBy
  2884. Principal
  2885. Principal
  2886.     1S2S5S6S8S10S
  2887. Subject
  2888. SentBy
  2889.  (Assigned by 
  2890. SentBy
  2891.     0R1S2E2S5S6S8S14S16S17S19S
  2892. DueDateTimeDue$182Assigned To
  2893. AssignedToh
  2894. AssignedTo
  2895. AssignedTo
  2896. AssignState
  2897.  (Not Sent)
  2898. ReplyTo
  2899. ReplyDate
  2900. SendTo
  2901. SendTo
  2902. ReplyTo
  2903.     2R6S7S10S11S15S18S20S24S26S27S30S31S33S35S39R42S43S46S49S50S52S56S59S65S68S72S76S78S82S86R
  2904. Categori_zeK
  2905. _Forward
  2906. _Edit Document
  2907. Send Docu_ment
  2908. New Task.
  2909.     0S0E
  2910. Delete
  2911. DueState
  2912. Task Not Completed
  2913. This Task is not yet completed, are you sure you want to delete it?
  2914.     3S4S5S6S7S8S10R21S23S29S
  2915. Mark Completed'++LotusScript Development Environment:2:5:(Options):0:74
  2916. Use "ObjectVariables"
  2917. '++LotusScript Development Environment:2:5:(Forward):0:1
  2918. Declare Sub Click(Source As Button)
  2919. Declare Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  2920. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2921. Dim maildoc As NotesDocument
  2922. Dim dt As NotesDateTime
  2923. Dim Subject As Variant
  2924. Dim Action As Variant
  2925. Dim NewSubject As String
  2926. Dim ComposeReply As Variant
  2927. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2928. Private Sub BindEvents(Byval Objectname_ As String)
  2929.      Static Source As BUTTON
  2930.      Set Source = Bind(Objectname_)
  2931.      On Event Click From Source Call Click
  2932. End Sub
  2933. '++LotusScript Development Environment:2:2:Click:1:12
  2934. Sub Click(Source As Button)
  2935.      
  2936.      Dim sendToList As Variant
  2937.      Dim cnName As Variant
  2938.      Dim foundName As Integer
  2939.      
  2940.      ComposeReply = False
  2941.      Call InstantiateObjectVariables
  2942.      
  2943.      Set dt = New NotesDateTime("")
  2944.      dt.SetNow
  2945.      
  2946.      Set ws = New NotesUIWorkspace
  2947.      Set documents = db.UnprocessedDocuments
  2948.      
  2949.      If documents.Count = 0 Then Exit Sub
  2950.      
  2951.      For d = 1 To documents.Count
  2952.           Set note = documents.GetNthDocument(d)
  2953.           If note.HasItem(Principal) Then
  2954.                FromName = note.Principal(0)
  2955.           Else
  2956.                FromName = note.From(0)
  2957.           End If
  2958.           If note.Form(0) = "Task" Then
  2959.                oldAssignState = note.AssignState(0)
  2960.           Else
  2961.                oldAssignState = 99
  2962.           End If
  2963.           Subject = note.Subject(0)
  2964.           NewSubject = "Task:  " & Subject & " is complete as of " & dt.LSLocalTime
  2965.           Select Case oldAssignState
  2966.           Case 0, 1 '0=assigned to yourself.  1=assigned to someone else but not sent
  2967.                Gosub CompleteThisTask
  2968.           Case 8, 9 '9=complete
  2969.                Messagebox Subject & " is already closed.", 0, "Task Completion"
  2970.           Case 99 '99=this is not a Task doc
  2971.                Messagebox Subject & " is not a task document and therefore it cannot be completed.", 0, "Task Completion"
  2972.           Case Else ' make sure current user (using common name) is included in the assignTo list
  2973.                sendToList = note.SendTo
  2974.                cnName = Evaluate("@Name([CN]; @Username )")
  2975.                foundName = False
  2976.                Forall a In sendToList
  2977.                     If Instr(Lcase(a), Lcase(cnName(0))) > 0 Then
  2978.                          foundName = True
  2979.                          Exit Forall
  2980.                     End If
  2981.                End Forall
  2982.                
  2983.                If Not foundName Then
  2984.                     Messagebox "Task '" & Subject & "' is not assigned to you. You cannot complete a task that is assigned to someone else.", 0, "Task Completion"
  2985.                Else
  2986.                     Action = "Complete"
  2987.                     If SendNotification("completion", "I have completed task: ", 9, 82) = False Then Exit Sub
  2988.                     Gosub CompleteThisTask
  2989.                End If
  2990.           End Select
  2991.      Next
  2992.      
  2993.      If ComposeReply Then Call ws.ComposeDocument("", "", "Reply") 
  2994.      
  2995.      Delete note
  2996.      ws.ViewRefresh
  2997.      
  2998.      Exit Sub
  2999.      
  3000. CompleteThisTask:
  3001.      note.DueState = 9
  3002.      note.AssignState = 9
  3003.      note.CompletedDateTime = dt.LSLocalTime
  3004.      Call note.ReplaceItemValue("_ViewIcon", 82)
  3005.      Call note.save(True, True, True)
  3006.      Return
  3007.      
  3008. End Sub
  3009. '++LotusScript Development Environment:2:1:SendNotification:1:8
  3010. Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  3011.      
  3012. '(this was copied from the Task form)
  3013.      
  3014.      SendNotification = True
  3015.      
  3016.      FromCommonName = Evaluate("@Name([CN]; Principal)", note)
  3017.      If FromCommonName(0) = "" Then FromCommonName = Evaluate("@Name([CN]; From)", note)
  3018.      
  3019.      CommentQuery = Messagebox("A " & ReplyType & " notice will be sent to " & FromCommonName(0) &_
  3020.      ".  Do you wish to send additional comments?", MB_YESNOCANCEL, "Task " & Action)
  3021.      Select Case CommentQuery
  3022.      Case IDYES
  3023.           Call session.SetEnvironmentVar("MailStEd", Cstr(NewSubject))
  3024.           ComposeReply = True
  3025.      Case IDNO
  3026.           Set maildoc = New NotesDocument(db)
  3027.           Set rtitem = New NotesRichTextItem(maildoc, "Body")
  3028.           If note.HasItem("Principal") Then
  3029.                maildoc.SendTo = note.Principal(0) & " @ " & note.FromDomain(0)
  3030.           Else
  3031.                maildoc.SendTo = note.From(0) & " @ " & note.FromDomain(0)
  3032.           End If
  3033.           maildoc.Subject = NewSubject
  3034.           rtitem.AppendText(MessageText & Subject & ".  ")
  3035.           maildoc.Form = "Reply"
  3036.           maildoc.Principal = Owner
  3037.           maildoc.AssignState = NewState
  3038.           maildoc.DueState = NewState
  3039.           Call maildoc.AppendItemValue("_ViewIcon", ViewIcon)
  3040.           Call maildoc.Save (True, True, True)
  3041.           Call maildoc.MakeResponse(note)
  3042.           On Error Goto SendError
  3043.           Call maildoc.Send (False)
  3044.           Call maildoc.Save (True, True, True)
  3045.           ws.ViewRefresh
  3046.      Case IDCANCEL
  3047.           note.SaveOptions = "0"
  3048.           note.MailOptions = "0"
  3049.           CommentQuery = "Cancel"
  3050.           SendNotification = False
  3051.           Exit Function
  3052.      End Select
  3053.      
  3054.      note.SaveOptions = "1"          
  3055.      note.AssignState = NewState
  3056.      note.DueState = NewState
  3057.      Call note.ReplaceItemValue("_ViewIcon", ViewIcon)
  3058.      
  3059.      Exit Function
  3060.      
  3061. SendError:
  3062.      Messagebox ReplyType & " reply document could not be sent to " & FromCommonName(0) & " at this time.  Please retry", MB_OK, "Task Completion"
  3063.      SendNotification = False
  3064.      maildoc.Remove(True)
  3065.      Exit Function
  3066.      
  3067. End Function
  3068. Unmark Completed
  3069. AssignState
  3070. Unmark Completed Task
  3071. You cannot unmark a task that has not been completed.
  3072.     3S4S6S8S14S16S
  3073. DbOwner
  3074. CalendarProfile
  3075. Owner
  3076.     0R1S2S6S
  3077. 4.0 converted AssignedTo to abbreviated name and 4.5 does not so here we are checking both
  3078.     0RR1S
  3079. Owner1
  3080. DbOwner
  3081. DbOwner
  3082.     0R1S2S6S9S10S12S14S
  3083. Owner2
  3084. DbOwner
  3085. DbOwner
  3086.     0R1S2S6S9S10S12S14S
  3087. AssignedTo1
  3088. AssignedTo
  3089.     0R1S2S6S
  3090. AssignedTo2
  3091. AssignedTo
  3092.     0R1S2S6S
  3093. User1
  3094.     0R1S2S6S
  3095. User2
  3096.     0R1S2S6S
  3097. AssignedTo1
  3098. AssignedTo2
  3099. Owner1
  3100. Owner2
  3101. User1
  3102. User2
  3103. Unmark Completed Task
  3104. You can only unmark a completed task that was assigned to you.
  3105.     0RR3S4S5S6S7S8S9S10S11S12S13S14S16S18S24S26S
  3106. AssignState
  3107.     0R1S2S3S
  3108. DueState
  3109.     0R1S2S3S
  3110. CompletedDateTime
  3111.     0R1S2S3S
  3112. Update Tasks.
  3113. Update Tasks
  3114. _Move to Folder...
  3115. _Remove from Folder...
  3116. Remove from To Do View`
  3117. ExcludeFromView
  3118. ExcludeFromView
  3119.     1S2S3S8S9S
  3120. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  3121. '++LotusScript Development Environment:2:5:(Forward):0:1
  3122. Declare Sub Click(Source As Button)
  3123. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3124. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3125. Private Sub BindEvents(Byval Objectname_ As String)
  3126.      Static Source As BUTTON
  3127.      Set Source = Bind(Objectname_)
  3128.      On Event Click From Source Call Click
  3129. End Sub
  3130. '++LotusScript Development Environment:2:2:Click:1:12
  3131. Sub Click(Source As Button)
  3132.      Call CreateNewDoc(NEW_MEMO)
  3133. End Sub
  3134. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  3135. '++LotusScript Development Environment:2:5:(Forward):0:1
  3136. Declare Sub Click(Source As Button)
  3137. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3138. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3139. Private Sub BindEvents(Byval Objectname_ As String)
  3140.      Static Source As BUTTON
  3141.      Set Source = Bind(Objectname_)
  3142.      On Event Click From Source Call Click
  3143. End Sub
  3144. '++LotusScript Development Environment:2:2:Click:1:12
  3145. Sub Click(Source As Button)
  3146.      Call CreateNewDoc(NEW_CALENDAR)
  3147. End Sub
  3148. tmpnewdoc
  3149.     1S2S
  3150. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  3151. '++LotusScript Development Environment:2:5:(Forward):0:1
  3152. Declare Sub Click(Source As Button)
  3153. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3154. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3155. Private Sub BindEvents(Byval Objectname_ As String)
  3156.      Static Source As BUTTON
  3157.      Set Source = Bind(Objectname_)
  3158.      On Event Click From Source Call Click
  3159. End Sub
  3160. '++LotusScript Development Environment:2:2:Click:1:12
  3161. Sub Click(Source As Button)
  3162.      Call CreateNewDoc(NEW_TASK)
  3163. End Sub
  3164. tmpnewdoc
  3165.     1S2S
  3166. Copy into\New GroupK,
  3167. NewGroup
  3168.     0S0E
  3169. tmpnewdoc
  3170.     1S2S
  3171. ^(    Kt
  3172. Q8    I$
  3173. Q8    I$
  3174.     4S5S
  3175. Principal
  3176. '++LotusScript Development Environment:2:5:(Options):0:74
  3177. Option Public
  3178. Use "DocumentConversions"
  3179. '++LotusScript Development Environment:2:5:(Forward):0:1
  3180. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3181. O=Lotus Notes
  3182. O=Lotus Notes
  3183. PURSAFO
  3184. |.:#U
  3185. O=Lotus Notes
  3186. CN=Lotus Notes Template Development/O=Lotus Notes
  3187. PURSAFO
  3188. Fde!f^^
  3189. $TYPE
  3190. $TABLEFORMAT
  3191. $TITLE
  3192. $Index
  3193. $Formula
  3194. $FormulaClass
  3195. $VIEWFORMAT
  3196. $Comment
  3197. $ACTIONS
  3198. $SCRIPTOBJ_6
  3199. $SCRIPTOBJ_12
  3200. $SCRIPTOBJ_13
  3201. $SCRIPTOBJ_14
  3202. $ViewGlobalScript
  3203. $ViewGlobalScript_O
  3204. $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
  3205. DeliveredDate
  3206. DeliveredDate
  3207. PostedDate
  3208. PostedDatei
  3209. FromDomainh
  3210. FromDomain"
  3211. DeliveryPriority
  3212. DeliveryPriority
  3213. MessageType
  3214. MessageType
  3215. Delivery Report
  3216. VIM_DLR
  3217. NonDelivery Report
  3218. VIM_NDLR
  3219. Return Receipt
  3220. VIM_RTRC
  3221. VIM_MAILJ    
  3222. Subject
  3223. $53$47$48$50$51$52$Conflict
  3224. $MessageType
  3225.     L1S1$
  3226. $53$47$48
  3227. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris############################
  3228. $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
  3229. PostedDateY
  3230. VIMSEL_DRAFT
  3231. DeliveredDate
  3232. DeliveredDate
  3233. PostedDate
  3234. PostedDatei
  3235. FromDomainh
  3236. FromDomain"
  3237. DeliveryPriority
  3238. DeliveryPriority
  3239. MessageType
  3240. MessageType
  3241. Delivery Report
  3242. VIM_DLR
  3243. NonDelivery Report
  3244. VIM_NDLR
  3245. Return Receipt
  3246. VIM_RTRC
  3247. VIM_MAILJ    
  3248. Subject
  3249. $53$47$48$50$51$52$Conflict
  3250. $MessageType
  3251.     L1S1$
  3252. $53$47$48
  3253. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris
  3254. ##########################################################
  3255. $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
  3256. Recipients
  3257. Categories
  3258. Categoriesb
  3259. (No Category)
  3260. DeliveredDate
  3261. DeliveredDate
  3262. PostedDate
  3263. PostedDatei
  3264. FromDomainh
  3265. FromDomain"
  3266. DeliveryPriority
  3267. DeliveryPriority
  3268. MessageType
  3269. MessageType
  3270. Delivery Report
  3271. VIM_DLR
  3272. NonDelivery Report
  3273. VIM_NDLR
  3274. Return Receipt
  3275. VIM_RTRC
  3276. VIM_MAILJ    
  3277. Subject
  3278. $53$47$48$50$51$52$Conflict
  3279. $MessageType
  3280.     L1S1$
  3281. $53$47$48T
  3282. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris###
  3283. ($Inbox)($Inbox)1
  3284. $93$70
  3285. $70Newly received mail messages.FY
  3286. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  3287. ############
  3288.  $53Unique ID
  3289. $47Date^
  3290. DeliveredDate
  3291. DeliveredDate
  3292. PostedDate
  3293. PostedDatei
  3294. $48From`
  3295. FromDomainh
  3296. FromDomain"
  3297. $50PriorityD
  3298. DeliveryPriority
  3299. DeliveryPriority
  3300. $51Type
  3301. MessageType
  3302. MessageType
  3303. Delivery Report
  3304. VIM_DLR
  3305. NonDelivery Report
  3306. VIM_NDLR
  3307. Return Receipt
  3308. VIM_RTRC
  3309. VIM_MAILJ    
  3310. $52Subject
  3311. Subject
  3312. Categori_ze
  3313. _Edit Document
  3314. Send Docu_ment
  3315. _Forward
  3316. O=Lotus Notes
  3317. O=Lotus Notes
  3318. PURSAFO
  3319. |.:#U
  3320. O=Lotus Notes
  3321. CN=Lotus Notes Template Development/O=Lotus Notes
  3322. PURSAFO
  3323. Fde!f^^
  3324. >j\:]?
  3325. $TYPE
  3326. $TABLEFORMAT
  3327. $Author
  3328. $TITLE
  3329. $Index
  3330. $Formula
  3331. $FormulaClass
  3332. $VIEWFORMAT
  3333. $Comment
  3334. $ACTIONS
  3335.  $53Draft4
  3336. PostedDateY
  3337. VIMSEL_DRAFT
  3338. $47Date^
  3339. DeliveredDate
  3340. DeliveredDate
  3341. PostedDate
  3342. PostedDatei
  3343. $48From`
  3344. FromDomainh
  3345. FromDomain"
  3346. $50PriorityD
  3347. DeliveryPriority
  3348. DeliveryPriority
  3349. $51Type
  3350. MessageType
  3351. MessageType
  3352. Delivery Report
  3353. VIM_DLR
  3354. NonDelivery Report
  3355. VIM_NDLR
  3356. Return Receipt
  3357. VIM_RTRC
  3358. VIM_MAILJ    
  3359. $52Subject
  3360. Subject
  3361. Categori_ze
  3362. _Edit Document
  3363. Send Docu_ment
  3364. _Forward
  3365. O=Lotus Notes
  3366. O=Lotus Notes
  3367. PURSAFO
  3368. |.:#U
  3369. O=Lotus Notes
  3370. CN=Lotus Notes Template Development/O=Lotus Notes
  3371. PURSAFO
  3372. Fde!f^^
  3373. UMQ+5a
  3374. $TYPE
  3375. $TABLEFORMAT
  3376. $Author
  3377. $TITLE
  3378. $Index
  3379. $Formula
  3380. $FormulaClass
  3381. $VIEWFORMAT
  3382. $Comment
  3383. $ACTIONS
  3384.  $53Categoryj
  3385. Recipients
  3386. Categories
  3387. Categoriesb
  3388. (No Category)
  3389. $47Date^
  3390. DeliveredDate
  3391. DeliveredDate
  3392. PostedDate
  3393. PostedDatei
  3394. $48From`
  3395. FromDomainh
  3396. FromDomain"
  3397. $50PriorityD
  3398. DeliveryPriority
  3399. DeliveryPriority
  3400. $51Type
  3401. MessageType
  3402. MessageType
  3403. Delivery Report
  3404. VIM_DLR
  3405. NonDelivery Report
  3406. VIM_NDLR
  3407. Return Receipt
  3408. VIM_RTRC
  3409. VIM_MAILJ    
  3410. $52Subject
  3411. Subject
  3412. Categori_ze
  3413. _Edit Document
  3414. Send Docu_ment
  3415. _Forward
  3416. O=Lotus Notes
  3417. O=Lotus Notes
  3418. PURSAFO
  3419. |.:#U
  3420. O=Lotus Notes
  3421. CN=Lotus Notes Template Development/O=Lotus Notes
  3422. PURSAFO
  3423. Fde!f^^
  3424. $TYPE
  3425. $TABLEFORMAT
  3426. $Author
  3427. $TITLE
  3428. $Index
  3429. $Formula
  3430. $FormulaClass
  3431. $VIEWFORMAT
  3432. $Comment
  3433. $ACTIONS
  3434. $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
  3435. Recipients
  3436. SenderCategorized
  3437. SenderCategorized
  3438. (No Category)
  3439. DeliveredDate
  3440. DeliveredDate
  3441. PostedDate
  3442. PostedDatei
  3443. FromDomainh
  3444. FromDomain"
  3445. DeliveryPriority
  3446. DeliveryPriority
  3447. MessageType
  3448. MessageType
  3449. Delivery Report
  3450. VIM_DLR
  3451. NonDelivery Report
  3452. VIM_NDLR
  3453. Return Receipt
  3454. VIM_RTRC
  3455. VIM_MAILJ    
  3456. Subject
  3457. $53$47$48$50$51$52$Conflict
  3458. $MessageType
  3459.     L1S1$
  3460. $53$47$48
  3461. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris#####################################################
  3462. $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
  3463. MessageType
  3464. MessageType
  3465. Delivery Report
  3466. VIM_DLR
  3467. NonDelivery Report
  3468. VIM_NDLR
  3469. Return Receipt
  3470. VIM_RTRC
  3471. VIM_MAILJ    
  3472. DeliveredDate
  3473. DeliveredDate
  3474. PostedDate
  3475. PostedDatei
  3476. FromDomainh
  3477. FromDomain"
  3478. DeliveryPriority
  3479. DeliveryPriority
  3480. MessageType
  3481. MessageType
  3482. Delivery Report
  3483. VIM_DLR
  3484. NonDelivery Report
  3485. VIM_NDLR
  3486. Return Receipt
  3487. VIM_RTRC
  3488. VIM_MAILJ    
  3489. Subject
  3490. $45$47$48$50$51$52$Conflict
  3491. $MessageType
  3492.     L1S1$
  3493. $45$47$48
  3494. Paul DiCristinaCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Iris###############################################
  3495. ($Alarms)|$Alarms1($Alarms)|$Alarms
  3496. $AlarmTimeh
  3497. $AlarmTime
  3498. CalendarDateTime
  3499. $AlarmOffset
  3500.     7S9S13S15S17S19S21S23S
  3501. $92CalendarDateTime$AlarmOffset$AlarmDescription$Conflict
  3502. $92CalendarDateTime
  3503. $92AlarmTime
  3504. $AlarmTimeh
  3505. $AlarmTime
  3506. CalendarDateTime
  3507. $AlarmOffset
  3508.     7S9S13S15S17S19S21S23S
  3509. CalendarDateTimeCalendarDateTime$AlarmOffsetOffset$AlarmDescriptionDescription&
  3510. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  3511. ########################
  3512. ##########################################################
  3513. ##########################################################
  3514.  $53Keywordz
  3515. Recipients
  3516. SenderCategorized
  3517. SenderCategorized
  3518. (No Category)
  3519. $47Date^
  3520. DeliveredDate
  3521. DeliveredDate
  3522. PostedDate
  3523. PostedDatei
  3524. $48From`
  3525. FromDomainh
  3526. FromDomain"
  3527. $50PriorityD
  3528. DeliveryPriority
  3529. DeliveryPriority
  3530. $51Type
  3531. MessageType
  3532. MessageType
  3533. Delivery Report
  3534. VIM_DLR
  3535. NonDelivery Report
  3536. VIM_NDLR
  3537. Return Receipt
  3538. VIM_RTRC
  3539. VIM_MAILJ    
  3540. $52Subject
  3541. Subject
  3542. Categori_ze
  3543. _Edit Document
  3544. Send Docu_ment
  3545. _Forward
  3546. O=Lotus Notes
  3547. O=Lotus Notes
  3548. PURSAFO
  3549. |.:#U
  3550. O=Lotus Notes
  3551. CN=Lotus Notes Template Development/O=Lotus Notes
  3552. PURSAFO
  3553. Fde!f^^
  3554. $TYPE
  3555. $TABLEFORMAT
  3556. $Author
  3557. $TITLE
  3558. $Index
  3559. $Formula
  3560. $FormulaClass
  3561. $VIEWFORMAT
  3562. $Comment
  3563. $ACTIONS
  3564.  $45Type
  3565. MessageType
  3566. MessageType
  3567. Delivery Report
  3568. VIM_DLR
  3569. NonDelivery Report
  3570. VIM_NDLR
  3571. Return Receipt
  3572. VIM_RTRC
  3573. VIM_MAILJ    
  3574. $47Date^
  3575. DeliveredDate
  3576. DeliveredDate
  3577. PostedDate
  3578. PostedDatei
  3579. $48From`
  3580. FromDomainh
  3581. FromDomain"
  3582. $50PriorityD
  3583. DeliveryPriority
  3584. DeliveryPriority
  3585. $51Type
  3586. MessageType
  3587. MessageType
  3588. Delivery Report
  3589. VIM_DLR
  3590. NonDelivery Report
  3591. VIM_NDLR
  3592. Return Receipt
  3593. VIM_RTRC
  3594. VIM_MAILJ    
  3595. $52Subject
  3596. Subject
  3597. Categori_ze
  3598. _Edit Document
  3599. Send Docu_ment
  3600. _Forward
  3601. O=Lotus Notes
  3602. O=Lotus Notes
  3603. PURSAFO
  3604. |.:#U
  3605. O=Lotus Notes
  3606. CN=Lotus Notes Template Development/O=Lotus Notes
  3607. PURSAFO
  3608. Fde!f^^
  3609. $TYPE
  3610. $TABLEFORMAT
  3611. $Author
  3612. $TITLE
  3613. $Index
  3614. $Formula
  3615. $FormulaClass
  3616. $VIEWFORMAT
  3617. $Comment
  3618. $ACTIONS
  3619. New Memo.
  3620.     0S0E
  3621. Delete 
  3622.     0S0E
  3623. Move To Folder...
  3624.     0S0E
  3625. _Forward
  3626. Reply
  3627. Reply
  3628.     0S0E
  3629. Reply With History@
  3630. Reply with history
  3631.     0S0E
  3632. Categori_zeK
  3633. _Edit Document
  3634. Send    
  3635. Resend
  3636. NonDelivery Report
  3637. Not a Delivery Failure Report
  3638. You cannot Resend a message unless it is a Delivery Failure Report.
  3639.     6S12S17S23S
  3640. _Move To Folder...
  3641. _Remove From Folder...
  3642. O=Lotus Notes
  3643. O=Lotus Notes
  3644. PURSAFO
  3645. |.:#U
  3646. O=Lotus Notes
  3647. CN=Lotus Notes Template Development/O=Lotus Notes
  3648. PURSAFO
  3649. Fde!f^^
  3650. $TITLE
  3651. $PublicAccess
  3652. $Name
  3653. $Index
  3654. $Formula
  3655. $FormulaClass
  3656. $VIEWFORMAT
  3657. $Comment
  3658. $ACTIONS
  3659. DeliveredDate
  3660. PostedDate
  3661. PostedDateY
  3662. IsMailStationeryh
  3663. _ViewIcon
  3664. _ViewIcon
  3665. Importance
  3666. Importance
  3667. _ViewIcon
  3668. _ViewIcon
  3669. $TypeIcon
  3670.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  3671. SentBy
  3672. Principal
  3673. Principal
  3674.     1S2S5S6S8S10S
  3675. DeliveredDate
  3676. SendTo
  3677. SentBy
  3678. SendTo
  3679.     0R1S2S5S6S7S8S9S10S12S14S18S
  3680.     0R1S2S8S
  3681.     0R1S2S15S16S
  3682. DeliveredDate
  3683. SendTo
  3684. SentBy
  3685. SendTo
  3686.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  3687. DeliveredDate
  3688. SendTo
  3689. SentBy
  3690. SendTo
  3691.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  3692. Person
  3693. X400FreeForm^
  3694.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  3695. Person2
  3696. Person
  3697. Person
  3698. Person
  3699. Person
  3700.     0R1S2S12S13S22S34S
  3701. Delivery Report
  3702. NonDelivery Report
  3703. Trace Report
  3704. Mail Router
  3705. Person2
  3706.     0R3S4S5S6S7S8S10S12S
  3707. DeliveredDate
  3708. DeliveredDate
  3709. PostedDate
  3710. PostedDate
  3711.     3S4S6S8S9S10S12S14S
  3712. $ContentIconh
  3713. $ContentIcon
  3714. Froma
  3715.  pager 
  3716. SendToa
  3717.  pager 
  3718. message.wav
  3719. vmsg_hdr.wav
  3720. .wavG
  3721. .tifG
  3722. $ContentIconh
  3723. $ContentIcon
  3724.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  3725. NonDelivery Report
  3726. DELIVERY FAILURE: 
  3727. FailureReason
  3728. Delivery Report
  3729. DELIVERED: 
  3730. Subject
  3731. Return Receipt
  3732. RECEIVED: 
  3733. Subject
  3734. ReturnNonReceipt
  3735. NOT RECEIVED: 
  3736. Subject
  3737. Subject
  3738.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S
  3739. $86$93$70$85$73$Conflict
  3740. DeliveredDate
  3741. PostedDate
  3742. PostedDateY
  3743. IsMailStationeryh
  3744. _ViewIcon
  3745. _ViewIcon
  3746. Importance
  3747. Importance
  3748. _ViewIcon
  3749. _ViewIcon
  3750. $TypeIcon
  3751.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  3752. $93Who>
  3753. SentBy
  3754. Principal
  3755. Principal
  3756.     1S2S5S6S8S10S
  3757. DeliveredDate
  3758. SendTo
  3759. SentBy
  3760. SendTo
  3761.     0R1S2S5S6S7S8S9S10S12S14S18S
  3762.     0R1S2S8S
  3763.     0R1S2S15S16S
  3764. DeliveredDate
  3765. SendTo
  3766. SentBy
  3767. SendTo
  3768.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  3769. DeliveredDate
  3770. SendTo
  3771. SentBy
  3772. SendTo
  3773.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  3774. Person
  3775. X400FreeForm^
  3776.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  3777. Person2
  3778. Person
  3779. Person
  3780. Person
  3781. Person
  3782.     0R1S2S12S13S22S34S
  3783. Delivery Report
  3784. NonDelivery Report
  3785. Trace Report
  3786. Mail Router
  3787. Person2
  3788.     0R3S4S5S6S7S8S10S12S
  3789. $70Date
  3790. DeliveredDate
  3791. DeliveredDate
  3792. PostedDate
  3793. PostedDate
  3794.     3S4S6S8S9S10S12S14S$85F
  3795. $ContentIconh
  3796. $ContentIcon
  3797. Froma
  3798.  pager 
  3799. SendToa
  3800.  pager 
  3801. message.wav
  3802. vmsg_hdr.wav
  3803. .wavG
  3804. .tifG
  3805. $ContentIconh
  3806. $ContentIcon
  3807.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$73Subject
  3808. NonDelivery Report
  3809. DELIVERY FAILURE: 
  3810. FailureReason
  3811. Delivery Report
  3812. DELIVERED: 
  3813. Subject
  3814. Return Receipt
  3815. RECEIVED: 
  3816. Subject
  3817. ReturnNonReceipt
  3818. NOT RECEIVED: 
  3819. Subject
  3820. Subject
  3821.     3S4S6S7S8S10S11S12S14S15S16S18S19S20S22S23S24S26S27S28S30S31S32S34S&
  3822. New Memo.
  3823.     0S0E
  3824. Delete 
  3825.     0S0E
  3826. Move To Folder...+ 
  3827.     0S0E
  3828. _Forward
  3829. Reply 4
  3830. Reply
  3831.     0S0E
  3832. Reply With History@
  3833. Reply with history
  3834.     0S0E
  3835. Categori_zer
  3836. _Edit Document
  3837. Send Docu_ment    
  3838. Resend
  3839. NonDelivery Report
  3840. Not a Delivery Failure Report
  3841. You cannot Resend a message unless it is a Delivery Failure Report.
  3842.     6S12S17S23S
  3843. _Move To Folder...
  3844. _Remove From Folder...
  3845. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  3846. '++LotusScript Development Environment:2:5:(Forward):0:1
  3847. Declare Sub Click(Source As Button)
  3848. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3849. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3850. Private Sub BindEvents(Byval Objectname_ As String)
  3851.      Static Source As BUTTON
  3852.      Set Source = Bind(Objectname_)
  3853.      On Event Click From Source Call Click
  3854. End Sub
  3855. '++LotusScript Development Environment:2:2:Click:1:12
  3856. Sub Click(Source As Button)
  3857.      Call CreateNewDoc(NEW_MEMO)
  3858. End Sub
  3859. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  3860. '++LotusScript Development Environment:2:5:(Forward):0:1
  3861. Declare Sub Click(Source As Button)
  3862. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3863. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3864. Private Sub BindEvents(Byval Objectname_ As String)
  3865.      Static Source As BUTTON
  3866.      Set Source = Bind(Objectname_)
  3867.      On Event Click From Source Call Click
  3868. End Sub
  3869. '++LotusScript Development Environment:2:2:Click:1:12
  3870. Sub Click(Source As Button)
  3871.      Call CreateNewDoc(NEW_CALENDAR)
  3872. End Sub
  3873. tmpnewdoc
  3874.     1S2S
  3875. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  3876. '++LotusScript Development Environment:2:5:(Forward):0:1
  3877. Declare Sub Click(Source As Button)
  3878. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3879. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3880. Private Sub BindEvents(Byval Objectname_ As String)
  3881.      Static Source As BUTTON
  3882.      Set Source = Bind(Objectname_)
  3883.      On Event Click From Source Call Click
  3884. End Sub
  3885. '++LotusScript Development Environment:2:2:Click:1:12
  3886. Sub Click(Source As Button)
  3887.      Call CreateNewDoc(NEW_TASK)
  3888. End Sub
  3889. tmpnewdoc
  3890.     1S2S
  3891. Copy into\New Groupe,
  3892. NewGroup
  3893.     0S0E
  3894. tmpnewdoc
  3895.     1S2S
  3896. Retrieve maila
  3897. Database
  3898.     1S2S
  3899. Database
  3900. ($Inbox)
  3901.     0R4S6S
  3902.     4S5S
  3903. '++LotusScript Development Environment:2:5:(Options):0:74
  3904. Option Public
  3905. Use "ObjectVariables"
  3906. Use "DocumentConversions"
  3907. '++LotusScript Development Environment:2:5:(Forward):0:1
  3908. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3909. O=Lotus Notes
  3910. O=Lotus Notes
  3911. PURSAFO
  3912. |.:#U
  3913. O=Lotus Notes
  3914. CN=Lotus Notes Template Development/O=Lotus Notes
  3915. PURSAFO
  3916. Fde!f^^
  3917. $TITLE
  3918. $Name
  3919. $Index
  3920. $Formula
  3921. $FormulaClass
  3922. $VIEWFORMAT
  3923. $Comment
  3924. $ACTIONS
  3925. $SCRIPTOBJ_12
  3926. $SCRIPTOBJ_13
  3927. $SCRIPTOBJ_14
  3928. $ViewGlobalScript
  3929. $ViewGlobalScript_O
  3930. ($Trash)1($Trash)1
  3931. $87$64
  3932. $64FY
  3933. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  3934. ########################################################
  3935. 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################################################
  3936. 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
  3937. ##########################################################
  3938. 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
  3939. ##########################################################
  3940. 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#####################################################
  3941. CN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesObjectVariabless34Q1############################
  3942. 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####
  3943. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesDocumentConversionss34Q1############################
  3944. ##########################################################
  3945. DeliveredDate
  3946. PostedDate
  3947. PostedDateY
  3948. IsMailStationeryh
  3949. _ViewIcon
  3950. _ViewIcon
  3951. Importance
  3952. Importance
  3953. _ViewIcon
  3954. _ViewIcon
  3955. $TypeIcon
  3956.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  3957. SentBy
  3958. Principal
  3959. Principal
  3960.     1S2S5S6S8S10S
  3961. DeliveredDate
  3962. SendTo
  3963. SentBy
  3964. SendTo
  3965.     0R1S2S5S6S7S8S9S10S12S14S18S
  3966.     0R1S2S8S
  3967.     0R1S2S15S16S
  3968. DeliveredDate
  3969. SendTo
  3970. SentBy
  3971. SendTo
  3972.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  3973. DeliveredDate
  3974. SendTo
  3975. SentBy
  3976. SendTo
  3977.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  3978. Person
  3979. X400FreeForm^
  3980.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  3981. Person2
  3982. Person
  3983. Person
  3984. Person
  3985. Person
  3986.     0R1S2S12S13S22S34S
  3987. Delivery Report
  3988. NonDelivery Report
  3989. Trace Report
  3990. Mail Router
  3991. Person2
  3992.     0R3S4S5S6S7S8S10S12S
  3993. DeliveredDate
  3994. DeliveredDate
  3995. PostedDate
  3996. PostedDate
  3997.     3S4S6S8S9S10S12S14S
  3998. $ContentIconh
  3999. $ContentIcon
  4000. Froma
  4001.  pager 
  4002. SendToa
  4003.  pager 
  4004. message.wav
  4005. vmsg_hdr.wav
  4006. .wavG
  4007. .tifG
  4008. $ContentIconh
  4009. $ContentIcon
  4010.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S
  4011. IsMailStationeryh
  4012. MailStationeryName
  4013. NonDelivery Report
  4014. DELIVERY FAILURE: 
  4015. FailureReason
  4016. Delivery Report
  4017. DELIVERED: 
  4018. Subject
  4019. Return Receipt
  4020. RECEIVED: 
  4021. Subject
  4022. ReturnNonReceipt
  4023. NOT RECEIVED: 
  4024. Subject
  4025. Subject
  4026.     7S9S10S11S13S14S15S17S18S19S21S22S23S25S26S27S29S30S31S33S34S35S37S38S39S41S
  4027. $79$87$64$80$69$Conflict
  4028. DeliveredDate
  4029. PostedDate
  4030. PostedDateY
  4031. IsMailStationeryh
  4032. _ViewIcon
  4033. _ViewIcon
  4034. Importance
  4035. Importance
  4036. _ViewIcon
  4037. _ViewIcon
  4038. $TypeIcon
  4039.     3S4S6RS4E11S12S17RS8E24RS12E26RS8E31RS12E33RS9E36RS4E42RS8E44RS4E48R49S50S52RS4E54R59RS5E61R
  4040. $87Who>
  4041. SentBy
  4042. Principal
  4043. Principal
  4044.     1S2S5S6S8S10S
  4045. DeliveredDate
  4046. SendTo
  4047. SentBy
  4048. SendTo
  4049.     0R1S2S5S6S7S8S9S10S12S14S18S
  4050.     0R1S2S8S
  4051.     0R1S2S15S16S
  4052. DeliveredDate
  4053. SendTo
  4054. SentBy
  4055. SendTo
  4056.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  4057. DeliveredDate
  4058. SendTo
  4059. SentBy
  4060. SendTo
  4061.     0R1S2S5S6S8S13S14S15S16S17S18S20S24S27S31S35S41S
  4062. Person
  4063. X400FreeForm^
  4064.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  4065. Person2
  4066. Person
  4067. Person
  4068. Person
  4069. Person
  4070.     0R1S2S12S13S22S34S
  4071. Delivery Report
  4072. NonDelivery Report
  4073. Trace Report
  4074. Mail Router
  4075. Person2
  4076.     0R3S4S5S6S7S8S10S12S
  4077. $64Date
  4078. DeliveredDate
  4079. DeliveredDate
  4080. PostedDate
  4081. PostedDate
  4082.     3S4S6S8S9S10S12S14S$80F
  4083. $ContentIconh
  4084. $ContentIcon
  4085. Froma
  4086.  pager 
  4087. SendToa
  4088.  pager 
  4089. message.wav
  4090. vmsg_hdr.wav
  4091. .wavG
  4092. .tifG
  4093. $ContentIconh
  4094. $ContentIcon
  4095.     6S7S9RS4E13RS8E15RS4E20RS8E22RS4E30S32S33S40S44RS9E46RS4E48RS8E57S58S59S62RS12E64RS8E71S74RS12E76RS8E83S86RS12E88RS9E91RS5E94R99S101S103S105S$69Subject
  4096. IsMailStationeryh
  4097. MailStationeryName
  4098. NonDelivery Report
  4099. DELIVERY FAILURE: 
  4100. FailureReason
  4101. Delivery Report
  4102. DELIVERED: 
  4103. Subject
  4104. Return Receipt
  4105. RECEIVED: 
  4106. Subject
  4107. ReturnNonReceipt
  4108. NOT RECEIVED: 
  4109. Subject
  4110. Subject
  4111.     7S9S10S11S13S14S15S17S18S19S21S22S23S25S26S27S29S30S31S33S34S35S37S38S39S41S
  4112. Categori_ze
  4113. _Edit Document
  4114. Send Docu_ment
  4115. _Forward
  4116. Empty Trash
  4117.     0S0E
  4118. _Move to Folder...
  4119. _Remove From Trash
  4120. >|'++LotusScript Development Environment:2:5:(Options):0:74
  4121. Option Public
  4122. '++LotusScript Development Environment:2:5:(Forward):0:1
  4123. '++LotusScript Development Environment:2:5:(Declarations):0:2
  4124. O=Lotus Notes
  4125. O=Lotus Notes
  4126. PURSAFO
  4127. |.:#U
  4128. O=Lotus Notes
  4129. CN=Lotus Notes Template Development/O=Lotus Notes
  4130. PURSAFO
  4131. Fde!f^^
  4132. $TITLE
  4133. $PublicAccess
  4134. $Name
  4135. $Index
  4136. $Formula
  4137. $FormulaClass
  4138. $VIEWFORMAT
  4139. $Comment
  4140. $ACTIONS
  4141. $ViewGlobalScript
  4142. $ViewGlobalScript_O
  4143. '++LotusScript Development Environment:2:5:(Options):0:74
  4144. Option Public 
  4145. Use "NoticeProcessing"
  4146. Use "ResourceProcessing"    
  4147. '++LotusScript Development Environment:2:5:(Forward):0:1
  4148. Declare Sub Initialize
  4149. Declare Function SendInvitation As Integer
  4150. Declare Sub RescheduleAppointment
  4151. Declare Sub CancelAppointment
  4152. Declare Sub ConfirmAppointment
  4153. Declare Sub RemoveInvitee
  4154. Declare Sub BuildAttendeeLists(mode As Integer)
  4155. Declare Sub SelectUserToRemove
  4156. Declare Sub ChangeStatus
  4157. Declare Sub RollbackAppointment(BusyPriority As String)
  4158. '++LotusScript Development Environment:2:5:(Declarations):0:10
  4159. 'AppointmentProcessing: 
  4160. '++LotusScript Development Environment:2:2:Initialize:1:10
  4161. Sub Initialize
  4162.      
  4163. End Sub
  4164. '++LotusScript Development Environment:2:1:SendInvitation:1:8
  4165. Function SendInvitation As Integer
  4166.     *This routine is called whenever the meeting originator invites users to a meeting
  4167.     *This routine sends out an invitation notice to the people listed in the 
  4168.      SendTo and CopyTo items and adds them to the RequiredAttendees and OptionalAttendees items        
  4169.     *This is the only routine that does not create a separate notice document to mail
  4170.     *The reason is that we need the router to update the SendTo and CopyTo items     
  4171.     Outputs:
  4172.     returns 0 if no errors occur, 1 if an error does occur
  4173. %END REM
  4174.      
  4175.      
  4176.      On Error Goto ErrorRoutine
  4177.      On Error 4412 Goto CleanUp          'this should trap uidoc.Send errors
  4178.      
  4179. 'if we have never invited anyone, add the SequenceNum item
  4180.      If Not note.HasItem("SequenceNum") Then note.SequenceNum = 1
  4181.      
  4182. 'modify the appointment document so it is an invitation
  4183.      note.Form  = "Notice"
  4184.      note.NoticeType = ORS_MSGTYPE_INVITE
  4185.      note.Topic = note.Subject
  4186.      note.apptunid = note.UniversalID
  4187.      If (note.Broadcast(0) = "1") Then
  4188.           MailSubject$ = "Broadcast - "
  4189.      Else
  4190.           MailSubject$ = "Invitation - "
  4191.      End If
  4192.      Set startitem = note.GetFirstItem("StartDateTime")
  4193.      If (note.Room(0) <> "") Then
  4194.           note.Subject = MailSubject$ & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  4195.      Else
  4196.           note.Subject =  MailSubject$ & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  4197.      End If     
  4198.      Call note.ReplaceItemValue("_ViewIcon",133)
  4199.      note.Principal = Owner
  4200.      note.Chair = Owner
  4201. 'remove fields that will need to be added later
  4202.      Call note.RemoveItem("CalendarDateTime")
  4203.      Call note.RemoveItem("OrgTable")
  4204.      BusyPriority = note.GetItemValue("$BusyPriority")
  4205.      Call note.RemoveItem("$BusyName")
  4206.      Call note.RemoveItem("$BusyPriority")
  4207.      Call note.RemoveItem("tmpOwner")
  4208.      
  4209. 'build the attendee lists so that the invitees have them
  4210.      Call BuildAttendeeLists(1)
  4211.      Call note.RemoveItem("tmpRequiredAttendees")
  4212.      Call note.RemoveItem("tmpOptionalAttendees")
  4213.      
  4214. 'this supresses the sign/encrypt dialog
  4215.      note.MailOptions = "1"
  4216.      Call uidoc.reload
  4217.      
  4218. 'we call the send from the NotesUIDocument object so that the Ambiguous Names dialog is invoked if needed    
  4219.      Call uidoc.Send
  4220.      
  4221. 'reset the fields on the note to make it an appointment
  4222.      Call RollbackAppointment(BusyPriority(0))
  4223.      
  4224. 'rebuild the attendees lists with the updated values from the router
  4225.      Call BuildAttendeeLists(2)
  4226.      
  4227. 'remove fields from the note
  4228.      note.SendTo =""
  4229.      note.CopyTo = ""
  4230.      SendInvitation = 0
  4231.      Exit Function
  4232.      
  4233. Cleanup:
  4234. 'reset the fields on the note to make it an appointment
  4235.      Call RollbackAppointment(BusyPriority(0))
  4236.      SendInvitation = 1
  4237.      Call uidoc.Reload
  4238.      Exit Function
  4239.      
  4240. ErrorRoutine:
  4241.      Call RollbackAppointment(BusyPriority(0))
  4242.      Messagebox Error & " (SendInvitation)"
  4243.      SendInvitation = 1     
  4244.      Exit Function
  4245. End Function
  4246. '++LotusScript Development Environment:2:2:RescheduleAppointment:1:8
  4247. Sub RescheduleAppointment
  4248.     *This routine is called whenever the user changes the room and/or the date/time of the meeting
  4249.     *This routine increments the SequenceNum item by 1 and notifies the room, resources, and invitees
  4250.      of the change by sending Reschedule notices out
  4251.     *This is routine is called from the uidocument or the calendar view (for drag/drop)
  4252. %END REM
  4253.      
  4254.      On Error Resume Next
  4255.      
  4256. 'see if this document belongs to a repeat set
  4257.      If (note.hasitem("tmpRescheduleWhich")) Then
  4258.           Call ProcessRepeatingResources(note.tmprescheduleWhich(0),ORS_MSGTYPE_RESCHEDULE,ORS_STATE_RESOURCE)
  4259.           Call ProcessRepeatingResources(note.tmprescheduleWhich(0),ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM)
  4260.      Else
  4261. 'this is not a repeating meeting          
  4262. 'reschedule the resources if need be
  4263.           If (note.RequiredResources(0) <> "") Then Call RescheduleResources(ORS_STATE_RESOURCE,note)
  4264.  'reschedule the room if need be
  4265.           If (note.RoomRequired(0) = "1") And (note.Room(0) <> "") Then Call RescheduleResources(ORS_STATE_ROOM,note)         
  4266.      End If
  4267.      
  4268.      On Error Goto ErrorRoutine
  4269.      
  4270. 'we need to add the correct attendees to the sendto item
  4271.      Call GetMailingList
  4272.      
  4273. 'make sure we have people to notify
  4274.      If (MailingList(0) = "") Then Exit Sub
  4275.      
  4276. 'create the notice document
  4277.      Call CreateNoticeDocument("Reschedule -",ORS_MSGTYPE_RESCHEDULE,33,1)
  4278.      
  4279.      notice.SendTo = MailingList
  4280.      Call notice.Send(False)
  4281.      Messagebox "The invitees have been notified that the appointment has changed.",0,"Status"
  4282.      
  4283.      Exit Sub
  4284. ErrorRoutine:
  4285.      Messagebox Error & " (RescheduleAppointment)"
  4286.      Exit Sub
  4287. End Sub
  4288. '++LotusScript Development Environment:2:2:CancelAppointment:1:8
  4289. Sub CancelAppointment
  4290.     *This routine is called whenever the Chair manually cancels an appointment
  4291.     *A Cancellation notice is sent to the room, resources, and invitees
  4292.     *The $BusyPriority item is modified to tell the FreeTime system we are no longer busy
  4293.      1 = Busy, 2 = Not busy
  4294. %END REM
  4295.      
  4296.      On Error Resume Next
  4297.      
  4298. 'First, take care of cancelling any rooms/resrouces the user may have invited
  4299. 'if this is a repeating meeting, process every instance that we should
  4300.      If (note.HasItem("tmpRescheduleWhich")) Then
  4301.           Call ProcessRepeatingResources(note.tmpRescheduleWhich(0),ORS_MSGTYPE_CANCEL,ORS_STATE_RESOURCE)
  4302.           Call ProcessRepeatingResources(note.tmpRescheduleWhich(0),ORS_MSGTYPE_CANCEL,ORS_STATE_ROOM)
  4303.      Else
  4304. 'cancel the room and resource if need be
  4305.           If (note.RequiredResources(0) <> "") Then Call CancelResources(ORS_STATE_RESOURCE,note)
  4306.           If (note.RoomRequired(0) = "1") And (note.Room(0) <> "") Then Call CancelResources(ORS_STATE_ROOM,note)
  4307.      End If
  4308.      
  4309.      On Error Goto ErrorRoutine
  4310. 'we need to get the attendees who should be notified of the cancellation
  4311.      Call GetMailingList
  4312.      
  4313. 'make sure we have people to notify
  4314.      If (MailingList(0) <> "") Then
  4315. 'we don't exit since we need to remove items from the note          
  4316. 'create the notice
  4317.           Call CreateNoticeDocument("Cancelled -",ORS_MSGTYPE_CANCEL,81,1)
  4318.           
  4319.           notice.SendTo = MailingList
  4320.           Call notice.Send(False)
  4321.           Messagebox "The invitees have been notified that this appointment has been cancelled.",0,"Status"
  4322.      End If
  4323. 'update the appointment document
  4324.      note.RemoveItem("CalendarDateTime")
  4325.      Call note.ReplaceItemValue("$BusyPriority","2")     
  4326.      note.NoticeType = ORS_MSGTYPE_CANCEL
  4327.      Call note.RemoveItem("OrgTable")
  4328. 'if this document had an alarm, remove it from the alarms folder
  4329.      If (note.HasItem("$Alarm")) Then Call note.RemoveFromFolder("$Alarms")
  4330.      
  4331.      Exit Sub
  4332. ErrorRoutine:
  4333.      Messagebox Error & " (CancelAppointment)"
  4334.      Exit Sub
  4335. End Sub
  4336. '++LotusScript Development Environment:2:2:ConfirmAppointment:1:8
  4337. Sub ConfirmAppointment
  4338.     *This routine sends out a confirmation notice to all invitees
  4339.     *If this is a repeating meeting, then the people invited to that instance of the
  4340.      meeting being confirmed is included in the confirmation
  4341.     *If this is not a repeating meeting, then that status of all invitees is included
  4342.      in the confirmation notice
  4343. %END REM
  4344.      
  4345.      On Error Goto ErrorRoutine
  4346.      
  4347. 'we need to get a list of attendees to send this to   
  4348.      Call GetMailingList
  4349.      
  4350. 'make sure we have people to notify
  4351.      If (MailingList(0) = "") Then Exit Sub
  4352.      
  4353.      Call CreateNoticeDocument("Confirmed -",ORS_MSGTYPE_CONFIRMATION,10,1)
  4354.      
  4355. 'if we are confirming a NON-repeating meeting, do the following
  4356.      If Not(note.HasItem("OrgRepeat")) Then
  4357.           Dim rtitem  As New NotesRichTextItem(notice,"StatusUpdate")
  4358.           
  4359. 'add all of the invitee status's to the rich text item   
  4360.           For i = 0 To InviteeCounter-1
  4361.                Set nam = New NotesName(InviteeList(i).InviteeName)
  4362.                Select Case InviteeList(i).Status
  4363.                Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  4364.                     Call rtitem.AppendText(nam.Common & " -> Accepted")
  4365.                Case ORS_MSGTYPE_REJECT
  4366.                     Call rtitem.AppendText(nam.Common & " -> Declined")
  4367.                Case ORS_MSGTYPE_COUNTER
  4368.                     Call rtitem.AppendText(nam.Common & " -> Counter Proposed")
  4369.                Case ORS_MSGTYPE_DELEGATING
  4370.                     Call rtitem.AppendText(nam.Common & " -> Delegated to " & InviteeList(i).Delegee)               
  4371.                Case ORG_STATUS_WAITING
  4372.                     Call rtitem.AppendText(nam.Common & " -> No Response")
  4373.                End Select
  4374.                Call rtitem.AddNewLine(1)          
  4375.           Next
  4376. 'include the people who were uninvited
  4377.           If (note.Uninvited(0) <> "") Then
  4378.                Call rtitem.AddNewLine(1)
  4379.                Call rtitem.AppendText("Uninvited:")          
  4380.                Call rtitem.AddNewLine(1)
  4381.                Uninvited = note.Uninvited
  4382.                For x = 0 To Ubound(Uninvited)
  4383.                     Call rtitem.AppendText(Uninvited(x))
  4384.                     Call rtitem.AddNewLine(1)
  4385.                Next          
  4386.           End If
  4387.      End If
  4388.      notice.SendTo = MailingList
  4389.      Call notice.Send(False)
  4390.      Messagebox "A confirmation notice has been sent to the invitees.",0,"Status"
  4391.      Exit Sub
  4392.      
  4393. ErrorRoutine:
  4394.      Messagebox Error & " (ConfirmAppointment)"
  4395.      Exit Sub
  4396. End Sub
  4397. '++LotusScript Development Environment:2:2:RemoveInvitee:1:8
  4398. Sub RemoveInvitee
  4399.     *This routine is called from SelectUserToRemove
  4400.     *This routine sends out a StatusUpdate message to the specified invitees
  4401.         with the OrgStatus item set to ORS_STATUS_REMOVED
  4402.     *The specified invitees are then appended to an item called Uninvited
  4403. %END REM
  4404.      Dim FullUserNames() As String
  4405.      Dim nIndex As Integer
  4406.      
  4407.      On Error Goto ErrorRoutine
  4408.      
  4409.      Call CreateNoticeDocument("You are no longer required to attend this appointment -",ORS_MSGTYPE_STATUSUPDATE,157,1)
  4410.      
  4411.      notice.OrgStatus = ORS_STATUS_REMOVED
  4412. 'for each person in the tmpUninvited field, get their full mail address
  4413.      PeopleToSend = note.tmpPeopleSelected
  4414.      Redim FullUserNames(Ubound(PeopleToSend))
  4415.      For i = 0 To Ubound(PeopleToSend)
  4416.           nIndex = FindInvitee(PeopleToSend(i))
  4417.           If (nIndex = -1) Then
  4418.                FullUserNames(i) = PeopleToSend(i)
  4419.           Else
  4420.                If (InviteeList(nIndex).Domain <> "") Then
  4421.                     FullUserNames(i) = InviteeList(nIndex).InviteeName & "@" & InviteeList(nIndex).Domain
  4422.                Else
  4423.                     FullUserNames(i) = InviteeList(nIndex).InviteeName    
  4424.                End If
  4425.                InviteeList(nIndex).Status = ORS_STATUS_REMOVED
  4426.                InviteeList(nIndex).KeepPosted = ""
  4427.           End If
  4428.      Next
  4429.      
  4430.      notice.SendTo = FullUserNames
  4431.      Call notice.Send(False)
  4432.      Messagebox "An Uninvite notice has been sent to the people selected.",0,"Status"
  4433.      Exit Sub
  4434.      
  4435. ErrorRoutine:
  4436.      Messagebox Error & " (RemoveInvitee)"
  4437.      Exit Sub
  4438. End Sub
  4439. '++LotusScript Development Environment:2:2:BuildAttendeeLists:1:8
  4440. Sub BuildAttendeeLists(mode As Integer)
  4441.  *This routine is called from SendInvitation ONLY!
  4442.  *It is called twice
  4443.   First time - remove duplicate entries
  4444.   Second time - update names
  4445. %END REM
  4446.      
  4447.      Dim vSendToNames As Variant
  4448.      Dim vCopyToNames As Variant
  4449.      Dim vNewRequiredNames() As Variant
  4450.      Dim vNewOptionalNames() As Variant 
  4451.      Dim bInviteeExists As Integer
  4452.      Dim counter As Integer
  4453.      Dim newcounter As Integer
  4454.      Dim sCanonicalName As String
  4455.      Dim sDomainName As String
  4456.      Dim sNewNames() As String
  4457.      
  4458.      On Error Goto ErrorRoutine
  4459.      
  4460. 'get the sendto and copyto field values
  4461.      vSendToNames = note.SendTo
  4462.      vCopyToNames = note.CopyTo
  4463.      
  4464. 'determine why we are being called
  4465.      Select Case mode
  4466.      Case 1    'first time
  4467. 'we need to look for duplicate entries only if people have been invited
  4468. 'check RequiredAttendees
  4469.           If (vSendToNames(0) <> "") Then
  4470. 'initialize some variables
  4471.                Redim sNewNames(Ubound(vSendToNames))
  4472.                newcounter = 0               
  4473.                If (Isarray(OriginalRequired)) Then
  4474. 'required invitees already exist; copy them into a local variable                    
  4475.                     Redim vNewRequiredNames(Ubound(OriginalRequired) + Ubound(vSendToNames)+1)
  4476.                     Forall names In OriginalRequired
  4477.                          vNewRequiredNames(newcounter) = names
  4478.                          newcounter = newcounter+1
  4479.                     End Forall
  4480.                Else
  4481.                     Redim vNewRequiredNames(Ubound(vSendToNames))
  4482.                End If
  4483.                counter = 0
  4484.                Forall names In vSendToNames
  4485.                     Call GetNameComponents(Cstr(names),sCanonicalName,sDomainName)
  4486.                     bInviteeExists = FindInvitee(sCanonicalName)
  4487. 'if the invitee wasn't found, then add them keep them in the list and add them to the table
  4488.                     If (bInviteeExists = -1) Then
  4489.                          sNewNames(counter) = names
  4490.                          vNewRequiredNames(newcounter) = names                         
  4491.                          Call AddInviteeToInviteeTable(Cstr(names),"")
  4492.                          counter = counter + 1
  4493.                          newcounter = newcounter + 1
  4494.                     End If
  4495.                End Forall
  4496.                note.SendTo = sNewNames
  4497. 'we have to update the RequiredAttendees item so invitees can see who else has been invited               
  4498.                note.RequiredAttendees = vNewRequiredNames               
  4499.           End If
  4500. 'check OptionalAttendees
  4501.           If (vCopyToNames(0) <> "") Then
  4502. 'initialize some variables
  4503.                newcounter = 0               
  4504.                Redim sNewNames(Ubound(vCopyToNames))
  4505.                If (Isarray(OriginalOptional)) Then
  4506. 'optional invitees already exist; copy them into a local variable                    
  4507.                     Redim vNewOptionalNames(Ubound(OriginalOptional) + Ubound(vCopyToNames)+1)
  4508.                     Forall names In OriginalOptional
  4509.                          vNewOptionalNames(newcounter) = names
  4510.                          newcounter = newcounter+1
  4511.                     End Forall
  4512.                Else
  4513.                     Redim vNewOptionalNames(Ubound(vCopyToNames))
  4514.                End If
  4515.                counter = 0
  4516.                Forall names In vCopyToNames
  4517.                     Call GetNameComponents(Cstr(names),sCanonicalName,sDomainName)
  4518.                     bInviteeExists = FindInvitee(sCanonicalName)
  4519. 'if the invitee wasn't found, then add them keep them in the list and add them to the table
  4520.                     If (bInviteeExists = -1) Then
  4521.                          sNewNames(counter) = names
  4522.                          vNewOptionalNames(newcounter) = names                         
  4523.                          Call AddInviteeToInviteeTable(Cstr(names),"")
  4524.                          counter = counter + 1
  4525.                          newcounter = newcounter + 1
  4526.                     End If
  4527.                End Forall
  4528.                note.CopyTo = sNewNames
  4529.                note.OptionalAttendees = vNewOptionalNames
  4530.           End If
  4531.      Case 2     'second & final time being called
  4532. 'we need to update the RequiredAttendees and OptionalAttendees fields
  4533. 'first, update the RequiredAttendees item only if there are values in the SendTo item
  4534.           If (vSendToNames(0) <> "") Then
  4535. 'intialize variables
  4536.                newcounter = 0               
  4537.                If (Isarray(OriginalRequired)) Then
  4538. 'required invitees already exist; copy them into a local variable      
  4539.                     If (OriginalRequired(0) = "") And (Ubound(OriginalRequired) = 0) Then
  4540.                          Redim vNewRequiredNames(Ubound(vSendToNames))
  4541.                     Else                         
  4542.                          Redim vNewRequiredNames(Ubound(OriginalRequired) + Ubound(vSendToNames)+1)
  4543.                          Forall names In OriginalRequired
  4544.                               If (names <> "") Then
  4545.                                    vNewRequiredNames(newcounter) = names
  4546.                                    newcounter = newcounter+1
  4547.                               End If                         
  4548.                          End Forall
  4549.                     End If                    
  4550.                Else
  4551.                     Redim vNewRequiredNames(Ubound(vSendToNames))
  4552.                End If
  4553. 'add the sendto names
  4554.                Forall names In vSendToNames
  4555.                     If (names <> "") Then                    
  4556.                          vNewRequiredNames(newcounter) = names
  4557.                          newcounter = newcounter + 1
  4558.                     End If                    
  4559.                End Forall
  4560.                note.RequiredAttendees = vNewRequiredNames
  4561.           End If
  4562. 'update the OptionalAttendees item only if there are values in the CopyTo item
  4563.           If (vCopyToNames(0) <> "") Then
  4564. 'intialize variables
  4565.                newcounter = 0               
  4566.                If (Isarray(OriginalOptional)) Then
  4567. 'optional invitees already exist; copy them into a local variable                    
  4568.                     If (OriginalOptional(0) = "") And (Ubound(OriginalOptional) = 0) Then                    
  4569.                          Redim vNewOptionalNames(Ubound(vCopyToNames))
  4570.                     Else                         
  4571.                          Redim vNewOptionalNames(Ubound(OriginalOptional) + Ubound(vCopyToNames)+1)
  4572.                          Forall names In OriginalOptional
  4573.                               If (names <> "") Then                         
  4574.                                    vNewOptionalNames(newcounter) = names
  4575.                                    newcounter = newcounter+1
  4576.                               End If                         
  4577.                          End Forall
  4578.                     End If                    
  4579.                Else
  4580.                     Redim vNewOptionalNames(Ubound(vCopyToNames))
  4581.                End If
  4582. 'add the copyto names
  4583.                Forall names In vCopyToNames
  4584.                     If (names <> "") Then                    
  4585.                          vNewOptionalNames(newcounter) = names
  4586.                          newcounter = newcounter + 1
  4587.                     End If                    
  4588.                End Forall
  4589.                note.OptionalAttendees = vNewOptionalNames 
  4590.           End If   
  4591.      Case Else
  4592.      End Select
  4593.      Exit Sub
  4594.      
  4595. ErrorRoutine:
  4596.      Messagebox Error & " (BuildAttendeeList)"
  4597.      Exit Sub
  4598.      
  4599. End Sub
  4600. '++LotusScript Development Environment:2:2:SelectUserToRemove:1:8
  4601. Sub SelectUserToRemove
  4602.     *This routine is called whenever the user selects to remove people from a meeting
  4603.     *This routine displays a dialog box that allows the user to select those people 
  4604.      that should be removed
  4605.     *If people were selected, this routine calls RemoveInvitee to send out StatusUpdate notices
  4606. %END REM
  4607.      
  4608.      On Error Goto ErrorRoutine
  4609.      
  4610. 'first, get the status of the attendees
  4611.      If Not(HasInviteeInfo) Then Call GetInviteeStatus(note,False)
  4612.      If Not(HasBeenProcessed) Then Call ProcessInviteeTable(note)
  4613.      
  4614. 'get the list of people who can be uninvited 
  4615.      note.tmpAccepted = UsersAccepted
  4616.      note.tmpDeclined = UsersDeclined
  4617.      note.tmpDelegated = UsersDelegated
  4618.      note.tmpCountered = UsersCountered
  4619.      note.tmpWaiting = UsersWaiting
  4620.      note.tmpHeader = "Select the people you want to remove:"
  4621.      tmpPeopleList = Evaluate("@Trim(@Replace(tmpAccepted:tmpDeclined:tmpDelegated:tmpCountered:tmpWaiting;Uninvited;""""))",note)
  4622.      note.tmpPeopleList = tmpPeopleList
  4623.      
  4624. 'display the dialog so the user can select people
  4625.      If (ws.DialogBox("(PeopleListDlg)",True,True,False,False,False,False,"Remove Invitees") = True) Then
  4626. 'the user has uninvited people from the meeting
  4627.           If (note.HasItem("OrgRepeat")) Then
  4628.                Messagebox "The invitees selected will be removed for the current repeat instance only.",0,"Status"
  4629.                note.tmpRescheduleWhich = "0"
  4630.                note.RescheduleWhich = "0"
  4631.           End If
  4632. 'we can only remove people from the current repeat instance          
  4633. 'append the latest uninvited people to the uninvited field
  4634.           tmpUninvitedList = Evaluate("@Trim(@Unique(Uninvited : tmpPeopleSelected))",note)
  4635.           note.Uninvited = tmpUninvitedList
  4636.           If(note.tmpPeopleSelected(0) <> "") Then Call RemoveInvitee
  4637.           Call uidoc.Save
  4638.           note.removeitem("tmpRescheduleWhich")
  4639.           note.RemoveItem("RescheduleWhich")
  4640.           Call MarkTempFields(note)
  4641.           Call note.Save(True,True,True)
  4642.      End If
  4643.      Exit Sub
  4644.      
  4645. ErrorRoutine:
  4646.      Messagebox Error & " (SelectUserToRemove)"
  4647.      Exit Sub
  4648. End Sub
  4649. '++LotusScript Development Environment:2:2:ChangeStatus:1:8
  4650. Sub ChangeStatus
  4651.     *This routine is called whenever the user wants to require that an invitee attend a meeting
  4652.     *This routine displays a dialog box that allows the user to select those people 
  4653.      that should be required to attend
  4654.     *This routine sends a StatusUpdate notice to the specified user with the OrgStatus item
  4655.        set to ORS_STATUS_ACCEPTED
  4656. %END REM
  4657.      Dim nIndex As Integer
  4658.      
  4659.      On Error Goto ErrorRoutine
  4660. 'first, get the status of the attendees
  4661.      If Not(HasInviteeInfo) Then Call GetInviteeStatus(note,False)
  4662.      If Not(HasBeenProcessed) Then Call ProcessInviteeTable(note)
  4663.      
  4664.      note.tmpHeader = "Select the people you want to Accept:"
  4665.      
  4666.      note.tmpAccepted = UsersAccepted
  4667.      note.tmpDeclined = UsersDeclined
  4668.      note.tmpDelegated = UsersDelegated
  4669.      note.tmpCountered = UsersCountered
  4670.      note.tmpWaiting = UsersWaiting
  4671.      
  4672.      tmpPeopleList = Evaluate("@Trim(@Replace(tmpDeclined:tmpDelegated:tmpCountered:tmpWaiting;tmpAccepted:Uninvited;""""))",note)
  4673.      note.tmpPeopleList = tmpPeopleList    
  4674. 'clear out the tmpAction item
  4675.      note.tmpAction = ""
  4676. 'display the dialog so the user can select people
  4677.      If (ws.DialogBox("(PeopleListDlg)",True,True,False,False,False,False,"Change Status") = True) Then
  4678. 'the user has selected people 
  4679.           tmpChangeList = note.tmpPeopleSelected
  4680. 'for everyone selected, do the following          
  4681.              If (tmpChangeList(0) <> "") Then
  4682.                   Forall cs In tmpChangeList
  4683. 'create the change status notice and send it out               
  4684.                           Call CreateNoticeDocument("You are required to attend this appointment - ",ORS_MSGTYPE_STATUSUPDATE,36,1)
  4685.                           notice.OrgStatus = ORS_STATUS_ACCEPTED
  4686.                     nIndex = FindInvitee(Cstr(cs))
  4687.                     If (nIndex = -1) Then
  4688.                          notice.SendTo = Cstr(cs)
  4689.                     Else
  4690.                          If (InviteeList(nIndex).Domain <> "") Then
  4691.                               notice.SendTo = InviteeList(nIndex).InviteeName & "@" & InviteeList(nIndex).Domain
  4692.                          Else
  4693.                               notice.SendTo = InviteeList(nIndex).InviteeName                        
  4694.                          End If
  4695.                          InviteeList(nIndex).Status = ORS_MSGTYPE_ACCEPT
  4696.                          InviteeList(nIndex).KeepPosted = "1"
  4697.                     End If
  4698.                     Call notice.Send(False)
  4699. 'create the acceptance notice (as if it had come from the invitee)
  4700.                           Call CreateNoticeDocument("Accepted - ",ORS_MSGTYPE_ACCEPT,83,1)
  4701. 'update specific fields
  4702.                           notice.Subject = "Accepted - " & notice.Topic(0)
  4703.                           notice.Principal = cs
  4704.                           notice.InviteeName = cs
  4705.                     If (nIndex > -1) Then
  4706.                          If (InviteeList(nIndex).Domain <> "") Then note.FromDomain = InviteeList(nIndex).Domain
  4707.                     End If
  4708.                     notice.Chair = Owner
  4709.                     notice.PostedDate = Now()
  4710.                           Call notice.Save(True,True,True)
  4711.                   End Forall
  4712.                   Messagebox "A Change Status notice has been sent to the people selected.",0,"Status"
  4713.              End If       
  4714.      End If
  4715.      
  4716.      Exit Sub
  4717.      
  4718. ErrorRoutine:
  4719.      Messagebox Error & " (ChangeStatus)"
  4720.      Exit Sub     
  4721. End Sub
  4722. '++LotusScript Development Environment:2:2:RollbackAppointment:1:8
  4723. Sub RollbackAppointment(BusyPriority As String)
  4724.     *This routine is called from SendInvitation for one of two reasons
  4725.      Either the uidoc.Send failed and we need to get the original values
  4726.      Or the uidoc.Send was successful and we are modifying the note/uidoc to be a meeting
  4727.     *This routine changes a meeting invitation notice back into an appointment document
  4728. %END REM
  4729.      
  4730.      note.Form = "Appointment"
  4731.      note.Subject = note.Topic
  4732.      note.CalendarDateTime = note.StartDateTime
  4733.      note.tmpOwner = Owner
  4734.      note.OrgTable = ORS_ITEM_CALENDAR
  4735.      tmpRequiredAttendees = Evaluate("@Trim(@Replace(RequiredAttendees;SendTo;""""))",note)
  4736.      tmpOptionalAttendees = Evaluate("@Trim(@Replace(OptionalAttendees;CopyTo;""""))",note)
  4737.      note.RequiredAttendees = tmpRequiredAttendees
  4738.      note.OptionalAttendees = tmpOptionalAttendees
  4739.      Call note.RemoveItem("MailOptions")
  4740. 'we only add the $BusyName if this is not the repeat parent
  4741.      If Not(note.HasItem("RepeatIds")) Then Call note.ReplaceItemValue("$BusyName",Owner)
  4742.      Call note.ReplaceItemValue("$BusyPriority",BusyPriority)
  4743.      Call note.ReplaceItemValue("_ViewIcon",158)
  4744.      Call note.RemoveItem("Topic")
  4745.      Call note.RemoveItem("NoticeType")
  4746.      note.tmpAction = ""
  4747. End Sub
  4748. tmpAccepted
  4749. tmpDeclined
  4750. tmpDelegated
  4751. tmpCountered
  4752. tmpWaiting
  4753. Uninvited
  4754.     0S0E
  4755. Uninvited
  4756. tmpPeopleSelected
  4757.     5S6S
  4758. tmpDeclined
  4759. tmpDelegated
  4760. tmpCountered
  4761. tmpWaiting
  4762. tmpAccepted
  4763. Uninvited
  4764.     0S0E
  4765. RequiredAttendees
  4766. SendTo
  4767.     0S0E
  4768. OptionalAttendees
  4769. CopyTo
  4770.     0S0E
  4771. O=Lotus Notes
  4772. O=Lotus Notes
  4773. PURSAFO
  4774. |.:#U
  4775. O=Lotus Notes
  4776. CN=Lotus Notes Template Development/O=Lotus Notes
  4777. PURSAFO
  4778. Fde!f^^
  4779. $ScriptLib
  4780. $ScriptLib_O
  4781. $TITLE
  4782. $Flags
  4783. $PublicAccess
  4784. '++LotusScript Development Environment:2:5:(Options):0:74
  4785. Option Public
  4786. Use "SharedWorkflowLibrary"
  4787. '++LotusScript Development Environment:2:5:(Forward):0:1
  4788. Declare Sub Initialize
  4789. Declare Sub CreateInviteeTable(pNote As NotesDocument)
  4790. Declare Sub IncreaseInviteeTable()
  4791. Declare Sub DecreaseInviteeTable()
  4792. Declare Sub GetNameComponents(pInviteeName As String,pRetCanonicalName As String,pRetDomain As String)
  4793. Declare Function FindInvitee(pInviteeName As String) As Integer
  4794. Declare Sub AddInviteeToInviteeTable(pInviteeName As String,pState As String)
  4795. Declare Sub GetInviteeResponseInfo(pNote As NotesDocument)
  4796. Declare Function CanUpdateInviteeInfo(Byval nIndex As Integer) As Integer
  4797. Declare Sub AddDelegeeToInviteeTable()
  4798. Declare Sub UpdateInviteeInfo(Byval nIndex As Integer)
  4799. Declare Sub AddInviteeResponseToInviteeTable()
  4800. Declare Sub BuildInviteeResponsesList(pNote As NotesDocument)
  4801. Declare Sub GetInviteeStatus(pNote As NotesDocument,Byval nForce As Integer)
  4802. Declare Sub ProcessInviteeTable(pNote As NotesDocument)
  4803. Declare Sub GetMailingList()
  4804. Declare Sub AcceptCounterProposal 
  4805. Declare Sub DeclineCounterProposal
  4806. Declare Sub AddUninvitedToInviteeList()
  4807. Declare Function GetInviteeMailAddress(pName As String) As String
  4808. '++LotusScript Development Environment:2:5:(Declarations):0:10
  4809. Dim InviteeList() As InviteeTable
  4810. Dim InviteeResponseInfo As InviteeTable
  4811. Dim HasBeenProcessed As Integer
  4812. Dim HasInviteeInfo As Integer
  4813. Dim InviteeCounter As Integer
  4814. Dim InviteeMaxEntries As Integer
  4815. Dim UsersAccepted() As String
  4816. Dim UsersDeclined() As String
  4817. Dim UsersDelegated() As String
  4818. Dim UsersCountered() As String
  4819. Dim UsersWaiting() As String
  4820. Dim ResourcesReserved() As String
  4821. Dim ResourcesDeclined() As String
  4822. Dim ResourcesWaiting() As String
  4823. Dim Delegees() As String
  4824. Dim MailingList() As String
  4825. Dim NumKeepPosted As Integer
  4826. Dim UpdatedInvitees As Variant
  4827. Dim numAccepted As Integer
  4828. Dim numDeclined As Integer
  4829. Dim numDelegated As Integer
  4830. Dim numCountered As Integer
  4831. Dim numWaiting As Integer
  4832. Dim numResAccepted As Integer
  4833. Dim numResDeclined As Integer
  4834. Dim numResWaiting As Integer 
  4835. '++LotusScript Development Environment:2:2:Initialize:1:10
  4836. Sub Initialize
  4837.      
  4838. End Sub
  4839. '++LotusScript Development Environment:2:2:CreateInviteeTable:1:8
  4840. Sub CreateInviteeTable(pNote As NotesDocument)
  4841.      Dim RequiredAttendees As Variant
  4842.      Dim OptionalAttendees As Variant
  4843.      Dim Resources As Variant
  4844.      Dim Room As String
  4845.      
  4846.         InviteeMaxEntries = CS_INVITEE_INDEX
  4847.         InviteeCounter = 0
  4848.         HasInviteeInfo = False
  4849.         HasBeenProcessed = False
  4850.      
  4851.      Redim InviteeList(InviteeMaxEntries)
  4852.      
  4853.      RequiredAttendees = pNote.RequiredAttendees
  4854.      OptionalAttendees = pNote.OptionalAttendees
  4855.      Resources = pNote.RequiredResources
  4856.      Room = pNote.Room(0)
  4857.      
  4858. 'initialize the invitee table to values that exist on the passed in note
  4859.      If (RequiredAttendees(0) <> "") Then
  4860.           Forall names In RequiredAttendees
  4861.                Call AddInviteeToInviteeTable(Cstr(names),"")
  4862.           End Forall
  4863.      End If
  4864.      If (OptionalAttendees(0) <> "") Then
  4865.           Forall names In OptionalAttendees
  4866.                Call AddInviteeToInviteeTable(Cstr(names),"")
  4867.           End Forall          
  4868.      End If
  4869.      
  4870.      If (pNote.Uninvited(0) <> "") Then Call AddUninvitedToInviteeList
  4871.      
  4872.      If (Room <> "") Then Call AddInviteeToInviteeTable(Room,ORS_STATE_ROOM)
  4873.      
  4874.      If (Resources(0) <> "") Then
  4875.           Forall names In Resources
  4876.                Call AddInviteeToInviteeTable(Cstr(names),ORS_STATE_RESOURCE)
  4877.           End Forall
  4878.      End If
  4879. End Sub
  4880. '++LotusScript Development Environment:2:2:IncreaseInviteeTable:1:8
  4881. Sub IncreaseInviteeTable()
  4882.      
  4883.         InviteeMaxEntries = InviteeMaxEntries + CS_INVITEE_INDEX
  4884.      Redim Preserve InviteeList(InviteeMaxEntries)
  4885. End Sub
  4886. '++LotusScript Development Environment:2:2:DecreaseInviteeTable:1:8
  4887. Sub DecreaseInviteeTable()
  4888.         InviteeMaxEntries = InviteeCounter
  4889.      Redim Preserve InviteeList(InviteeMaxEntries)
  4890. End Sub
  4891. '++LotusScript Development Environment:2:2:GetNameComponents:1:8
  4892. Sub GetNameComponents(pInviteeName As String,pRetCanonicalName As String,pRetDomain As String)
  4893.      
  4894.      Dim pos As Integer
  4895.      
  4896.      
  4897.      pos = Instr(pInviteeName,"@")
  4898.      
  4899.      If(pos > 0) Then
  4900.           Set nam = New NotesName(Left$(pInviteeName,pos-1))     
  4901.           pRetCanonicalName = nam.Canonical
  4902.           pRetDomain = Right$(pInviteeName,Len(pInviteeName)-pos)
  4903.      Else
  4904.           Set nam = New NotesName(pInviteeName)     
  4905.           pRetCanonicalName = nam.Canonical
  4906.           pRetDomain = ""
  4907.      End If
  4908. End Sub
  4909. '++LotusScript Development Environment:2:1:FindInvitee:1:8
  4910. Function FindInvitee(pInviteeName As String) As Integer
  4911.     *Given an InviteeTable and an invitee name find the index position
  4912.     *Returns -1 if the user cannot be found
  4913. %END REM
  4914.      Dim key As New NotesName(pInviteeName)
  4915.         Dim x As Integer
  4916.      
  4917.         For x = 0 To (InviteeCounter - 1)
  4918.           Set findname = New NotesName(InviteeList(x).InviteeName)
  4919. 'do a canonical name comparison
  4920.           If Lcase(key.Canonical) = Lcase(findname.Canonical) Then
  4921.                         FindInvitee = x    
  4922.                Exit Function
  4923. 'do a common name comparison               
  4924.           Elseif Lcase(key.Common) = Lcase(findname.Common) Then
  4925.                FindInvitee = x 
  4926.                Exit Function               
  4927.                 End If
  4928.         Next
  4929.      
  4930.         FindInvitee = -1
  4931. End Function
  4932. '++LotusScript Development Environment:2:2:AddInviteeToInviteeTable:1:8
  4933. Sub AddInviteeToInviteeTable(pInviteeName As String,pState As String)
  4934.     *Adds an existing invitee to the invitee table
  4935. %END REM
  4936.      Dim CanonicalName As String
  4937.      Dim domain As String
  4938.      
  4939.      
  4940.     'see if we need to increase the invitee table
  4941.         If(InviteeCounter = InviteeMaxEntries) Then Call IncreaseInviteeTable()
  4942.      
  4943.     'get the canonical and domain name from the inviteename
  4944.         Call GetNameComponents(pInviteeName,CanonicalName,Domain)
  4945.      
  4946.      InviteeList(InviteeCounter).InviteeName = CanonicalName
  4947.      InviteeList(InviteeCounter).Status = ORG_STATUS_WAITING
  4948.      InviteeList(InviteeCounter).State = pState
  4949.      InviteeList(InviteeCounter).KeepPosted = "1"
  4950.      
  4951.      If(Domain <> "") Then InviteeList(InviteeCounter).Domain = Domain
  4952.      
  4953.      NumKeepPosted = NumKeepPosted + 1
  4954.      InviteeCounter = InviteeCounter + 1
  4955.      If (pState <> "") Then
  4956.           numResWaiting = numResWaiting + 1
  4957.      Else
  4958.           numWaiting = numWaiting + 1
  4959.      End If
  4960. End Sub
  4961. '++LotusScript Development Environment:2:2:GetInviteeResponseInfo:1:8
  4962. Sub GetInviteeResponseInfo(pNote As NotesDocument)
  4963.      
  4964.         InviteeResponseInfo.CreationDate = pNote.Created
  4965.         InviteeResponseInfo.SequenceNum = pNote.SequenceNum(0)
  4966.         InviteeResponseInfo.InviteeName = pNote.Principal(0)
  4967.         If pNote.HasItem("FromDomain") Then
  4968.                 InviteeResponseInfo.Domain = pNote.FromDomain(0)
  4969.         Else
  4970.                 InviteeResponseInfo.Domain = ""
  4971.         End If
  4972.         
  4973.         If pNote.HasItem("OrgState") Then 
  4974.                 InviteeResponseInfo.State = pNote.OrgState(0)
  4975.         Else
  4976.                 InviteeResponseInfo.State = ""
  4977.         End If
  4978.      
  4979.      InviteeResponseInfo.Status = pNote.NoticeType(0)
  4980.      
  4981.      Select Case InviteeResponseInfo.Status
  4982.      Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  4983.           InviteeResponseInfo.KeepPosted = "1"
  4984.      Case ORS_MSGTYPE_REJECT
  4985.           InviteeResponseInfo.KeepPosted = ""
  4986.      Case ORS_MSGTYPE_COUNTER
  4987.           InviteeResponseInfo.KeepPosted = "1"
  4988.      Case ORS_MSGTYPE_DELEGATING
  4989.           InviteeResponseInfo.KeepPosted = ""
  4990.           InviteeResponseInfo.Delegee = pNote.Delegee(0)
  4991.           Call AddDelegeeToInviteeTable
  4992.      End Select
  4993. End Sub 
  4994. '++LotusScript Development Environment:2:1:CanUpdateInviteeInfo:1:8
  4995. Function CanUpdateInviteeInfo(Byval nIndex As Integer) As Integer
  4996.     *Determines if InviteeRepsonseInfo should be updated in InviteeTable
  4997. %END REM
  4998.      
  4999. 'if the sequencenum is greater than the existing one, we can add them
  5000.      If (InviteeList(nIndex).Status = ORS_STATUS_REMOVED) Then
  5001.           CanUpdateInviteeInfo = False
  5002.           Exit Function
  5003.      End If
  5004.      If (InviteeResponseInfo.SequenceNum > InviteeList(nIndex).SequenceNum) Then
  5005.                 CanUpdateInviteeInfo = True
  5006.                 Exit Function
  5007.      Elseif (InviteeResponseInfo.SequenceNum = InviteeList(nIndex).SequenceNum) Then
  5008. 'the SequeceNum items are equal; compare creation date
  5009.           If (InviteeResponseInfo.CreationDate > InviteeList(nIndex).CreationDate.LSLocalTime) Then
  5010.                         CanUpdateInviteeInfo = True
  5011.                         Exit Function
  5012.                 Else
  5013.                         CanUpdateInviteeInfo = False
  5014.                         Exit Function
  5015.                 End If
  5016.         End If
  5017.      
  5018. 'if we made it this far, then we can't update the inviteetable
  5019.         CanUpdateInviteeInfo = False
  5020. End Function
  5021. '++LotusScript Development Environment:2:2:AddDelegeeToInviteeTable:1:8
  5022. Sub AddDelegeeToInviteeTable()
  5023.      
  5024.      Dim CanonicalName As String
  5025.      Dim Domain As String
  5026.         Dim nIndex As Integer
  5027.      
  5028. 'get the name components
  5029.         Call GetNameComponents(InviteeResponseInfo.Delegee,CanonicalName,Domain)
  5030.      
  5031. 'set the domain
  5032.         If (Domain = "") Then
  5033.                 If(InviteeResponseInfo.Domain <> "") Then Domain = InviteeResponseInfo.Domain
  5034.         End If
  5035.         
  5036.      nIndex = FindInvitee(CanonicalName)
  5037.      
  5038.         If (nIndex = -1) Then
  5039. 'we didn't find the delegee -> this is the more likely case since we would only find the delegee
  5040. 'if they had replied before we had received the delegation notice
  5041.              
  5042. 'make sure we can add the delegee
  5043.                 If (InviteeCounter = InviteeMaxEntries) Then Call IncreaseInviteeTable()
  5044.           Set InviteeList(InviteeCounter).CreationDate = New NotesDateTime(InviteeResponseInfo.CreationDate)
  5045.           InviteeList(InviteeCounter).SequenceNum = InviteeResponseInfo.SequenceNum
  5046.           InviteeList(InviteeCounter).InviteeName = CanonicalName
  5047.           InviteeList(InviteeCounter).Domain = Domain
  5048.           InviteeList(InviteeCounter).Status = ORG_STATUS_WAITING
  5049.           InviteeList(InviteeCounter).State = ""
  5050.           InviteeList(InviteeCounter).Delegee = ""
  5051.           InviteeList(InviteeCounter).KeepPosted = "1"
  5052.           InviteeCounter = InviteeCounter + 1
  5053.      Else
  5054. 'the delegee already exists in the table
  5055. 'make sure we can update their info
  5056.                 If (CanUpdateInviteeInfo(nIndex)) Then
  5057.                Set InviteeTable.CreationDate(nIndex) = New NotesDateTime(InviteeResponseInfo.CreationDate)
  5058.                InviteeList(nIndex).SequenceNum = InviteeResponseInfo.SequenceNum
  5059.                InviteeList(nIndex).InviteeName = CanonicalName
  5060.                InviteeList(nIndex).Domain = Domain
  5061.                InviteeList(nIndex).Status = InviteeResponseInfo.Status
  5062.                InviteeList(nIndex).State = ""
  5063.                InviteeList(nIndex).Delegee = ""
  5064.                InviteeList(nIndex).KeepPosted = "1"
  5065.           End If 
  5066.      End If
  5067. End Sub
  5068. '++LotusScript Development Environment:2:2:UpdateInviteeInfo:1:8
  5069. Sub UpdateInviteeInfo(Byval nIndex As Integer)
  5070.      Dim IsPerson As Integer
  5071.      
  5072.      Set InviteeList(nINdex).CreationDate = New NotesDateTime(InviteeResponseInfo.CreationDate)
  5073.      InviteeList(nIndex).SequenceNum = InviteeResponseInfo.SequenceNum
  5074.      InviteeList(nIndex).InviteeName = InviteeResponseInfo.InviteeName
  5075.      InviteeList(nIndex).Domain = InviteeResponseInfo.Domain
  5076.      InviteeList(nIndex).Status = InviteeResponseInfo.Status
  5077.      InviteeList(nIndex).State = InviteeResponseInfo.State
  5078.      InviteeList(nIndex).Delegee = InviteeResponseInfo.Delegee
  5079.      InviteeList(nIndex).KeepPosted = InviteeResponseInfo.KeepPosted
  5080.      If (InviteeResponseInfo.KeepPosted = "1") Then NumKeepPosted = NumKeepPosted + 1
  5081.      
  5082.      If (InviteeResponseInfo.State <> "") Then
  5083.           IsPerson  = False
  5084.      Else
  5085.           IsPerson = True
  5086.      End If
  5087.      
  5088.      Select Case InviteeResponseInfo.Status
  5089.      Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  5090.           If (IsPerson) Then          
  5091.                numAccepted = numAccepted+1
  5092.           Else
  5093.                numResAccepted = numResAccepted + 1
  5094.           End If
  5095.      Case ORS_MSGTYPE_REJECT
  5096.           If (IsPerson) Then          
  5097.                numDeclined = numDeclined+1
  5098.           Else
  5099.                numResDeclined = numResDeclined + 1
  5100.           End If
  5101.      Case ORS_MSGTYPE_COUNTER
  5102.           numCountered = numCountered+1
  5103.      Case ORS_MSGTYPE_DELEGATING
  5104.           numDelegated = numDelegated+1
  5105.      Case ORG_STATUS_WAITING
  5106.           If (IsPerson) Then          
  5107.                numWaiting = numWaiting + 1
  5108.           Else
  5109.                numResWaiting = numResWaiting + 1
  5110.           End If
  5111.      End Select
  5112. End Sub
  5113. '++LotusScript Development Environment:2:2:AddInviteeResponseToInviteeTable:1:8
  5114. Sub AddInviteeResponseToInviteeTable()
  5115.      
  5116.      If (InviteeCounter = InviteeMaxEntries) Then Call IncreaseInviteeTable()
  5117.            Call UpdateInviteeInfo(InviteeCounter)        
  5118.            InviteeCounter = InviteeCounter + 1
  5119. End Sub
  5120. '++LotusScript Development Environment:2:2:BuildInviteeResponsesList:1:8
  5121. Sub BuildInviteeResponsesList(pNote As NotesDocument)
  5122.     *Gets the most recent reply from an invitee
  5123. %END REM
  5124.      
  5125.         Dim responses As NotesDocumentCollection
  5126.         Dim nIndex As Integer
  5127.         Dim reply As NotesDocument
  5128.      
  5129. 'first, get a collection of responses to process
  5130.         Set responses = pNote.Responses
  5131.      
  5132.         If(responses.Count = 0) Then Exit Sub
  5133.      
  5134.         Set reply = responses.GetFirstDocument()
  5135.      
  5136.         While Not(reply Is Nothing)    
  5137.                 If(reply.Form(0) = "Notice") Then
  5138. 'get the response items
  5139.                Call GetInviteeResponseInfo(reply)
  5140. 'see if the invitee exists or not
  5141.                nIndex = FindInvitee(InviteeResponseInfo.InviteeName)
  5142.                      
  5143.                         If(nIndex = -1) Then
  5144. 'the user was not found, so we need to add them
  5145.                                 Call AddInviteeResponseToInviteeTable()
  5146.                         Else
  5147. 'the user was found; update their info if we can
  5148.                     If (CanUpdateInviteeInfo(nIndex)) Then Call UpdateInviteeInfo(nIndex)
  5149.                         End If
  5150.                 End If
  5151. 'get the next reply
  5152.                 Set reply = responses.GetNextDocument(reply)
  5153.         Wend        
  5154. End Sub
  5155. '++LotusScript Development Environment:2:2:GetInviteeStatus:1:8
  5156. Sub GetInviteeStatus(pNote As NotesDocument,Byval nForce As Integer)
  5157.     *This routine will build the invitee response table, and then fill global array values
  5158.         with the result
  5159.     *If the table has already been built by a different function and nForce is not True
  5160.         then the cached table will be returned
  5161. %END REM
  5162.      
  5163.         If (nForce) Then
  5164. 'we want to update the table regardless of the state
  5165.           Call BuildInviteeResponsesList(pNote)
  5166.                 HasInviteeInfo = True
  5167. 'only build the table if it isn't cached
  5168. 'it would be cached if a different calling function already built the table
  5169.         Elseif Not(HasInviteeInfo) Then
  5170.           Call BuildInviteeResponsesList(pNote)
  5171.                 HasInviteeInfo = True
  5172.         Else
  5173. 'the table is already uptodate; exit this function
  5174.                 Exit Sub
  5175.         End If
  5176.      
  5177. End Sub
  5178. '++LotusScript Development Environment:2:2:ProcessInviteeTable:1:8
  5179. Sub ProcessInviteeTable(pNote As NotesDocument)
  5180.      
  5181. 'now that we've built the table, iterate through it and fill in the various items
  5182.         Redim UsersAccepted(numAccepted)
  5183.         Redim UsersDeclined(numDeclined)
  5184.         Redim UsersDelegated(numDelegated)
  5185.      Redim Delegees(numDelegated)     
  5186.      Redim UsersCountered(numCountered)
  5187.         Redim UsersWaiting(numWaiting)
  5188.      Redim ResourcesReserved(numResAccepted)
  5189.         Redim ResourcesDeclined(numResDeclined)
  5190.         Redim ResourcesWaiting(numResWaiting)
  5191.      
  5192.         numAccepted = 0
  5193.         numDeclined = 0
  5194.         numDelegated = 0
  5195.         numCountered = 0
  5196.         numWaiting = 0
  5197.      numResAccepted = 0
  5198.         numResDeclined = 0
  5199.         numResWaiting = 0
  5200.      
  5201.         Dim x As Integer
  5202.      
  5203.         For x = 0 To (InviteeCounter - 1)
  5204.                 
  5205.           Select Case InviteeList(x).Status
  5206.           Case ORS_MSGTYPE_ACCEPT,ORS_MSGTYPE_PENCILIN
  5207.                If (InviteeList(x).SequenceNum < pNote.SequenceNum(0)) Then
  5208. 'if this is a person, then we are still waiting to here back from them                    
  5209.                     If(InviteeList(x).State = "") Then
  5210.                          UsersWaiting(numWaiting) = InviteeList(x).InviteeName
  5211.                          numWaiting = numWaiting + 1
  5212.                     Else
  5213. 'this is a room/resource; we are still waiting to here back from them
  5214.                          ResourcesWaiting(numResWaiting) = InviteeList(x).InviteeName
  5215.                          numResWaiting = numResWaiting + 1
  5216.                                 End If
  5217.                         Else
  5218.                     If(InviteeList(x).State <> "") Then
  5219. 'this is a room or resource; see if it has been removed
  5220.                          If Not(IsRemoved(InviteeList(x).InviteeName,InviteeList(x).State)) Then
  5221.                               ResourcesReserved(numResAccepted) = InviteeList(x).InviteeName
  5222.                               numResAccepted = numResAccepted + 1
  5223.                                         End If
  5224.                                 Else
  5225. 'this is a person
  5226.                          UsersAccepted(numAccepted) = InviteeList(x).InviteeName
  5227.                                         numAccepted = numAccepted+1
  5228.                                 End If
  5229.                         End If
  5230.                 Case ORS_MSGTYPE_REJECT
  5231.                If(InviteeList(x).State <> "") Then
  5232. 'if this is a room or resource, see if it has been removed           
  5233.                     If Not(IsRemoved(InviteeList(x).InviteeName,InviteeList(x).State)) Then
  5234. 'if the sequencenum of the response is < pNote, then the resource has not responded
  5235.                          If (InviteeList(x).SequenceNum < pNote.SequenceNum(0)) Then
  5236.                               ResourcesWaiting(numResWaiting) = InviteeList(x).InviteeName                         
  5237.                               numResWaiting = numResWaiting + 1
  5238.                          Else                         
  5239.                               ResourcesDeclined(numResDeclined) = InviteeList(x).InviteeName
  5240.                                              numResDeclined = numResDeclined + 1
  5241.                          End If                         
  5242.                     End If
  5243.                         Else
  5244. 'this is a person
  5245.                     UsersDeclined(numDeclined) = InviteeList(x).InviteeName
  5246.                     numDeclined = numDeclined+1
  5247.                         End If
  5248.           Case ORS_MSGTYPE_COUNTER
  5249.                If (InviteeList(x).SequenceNum < pNote.SequenceNum(0)) Then
  5250.                     UsersWaiting(numWaiting) = InviteeList(x).InviteeName
  5251.                                    numWaiting = numWaiting + 1
  5252.                Else
  5253. 'this is a person -> Resources cannot CounterPropose!!!
  5254.                     UsersCountered(numCountered) = InviteeList(x).InviteeName
  5255.                                 numCountered = numCountered+1
  5256.                         End If
  5257.                 Case ORS_MSGTYPE_DELEGATING
  5258. 'this is a person -> Resources cannot Delegate!!!
  5259.                UsersDelegated(numDelegated) = InviteeList(x).InviteeName
  5260.                Delegees(numDelegated) = InviteeList(x).Delegee
  5261.                numDelegated = numDelegated+1
  5262.           Case ORG_STATUS_WAITING
  5263. 'we didn't get any reply from this invitee
  5264.                If(InviteeList(x).State <> "") Then
  5265. 'this is a resource
  5266.                     ResourcesWaiting(numResWaiting) = InviteeList(x).InviteeName
  5267.                                 numResWaiting = numResWaiting + 1
  5268.                         Else
  5269. 'this is a person
  5270.                     UsersWaiting(numWaiting) = InviteeList(x).InviteeName
  5271.                                 numWaiting = numWaiting + 1
  5272.                End If
  5273.           End Select
  5274.         Next    
  5275.         HasBeenProcessed = True
  5276. End Sub
  5277. '++LotusScript Development Environment:2:2:GetMailingList:1:8
  5278. Sub GetMailingList()
  5279.     *Gets the latest list of people who should receive an update
  5280.         Reschedule,Cancel,Confirmation
  5281. %END REM
  5282.         Dim x,counter As Integer
  5283.      
  5284. 'if this is a Repeating Meeting, we only need to get the invitees of the parent document
  5285.         If (note.HasItem("OrgRepeat")) Then
  5286. 'if this hasn't been cached, then we need to get both the parent and this instance's responses
  5287.           If Not(HasInviteeInfo) Then
  5288.                         Call GetInviteeStatus(ParentNote,False)
  5289.                         Call GetInviteeStatus(Note,True)
  5290.                 End If
  5291.      Else
  5292.                 Call GetInviteeStatus(note,False)
  5293.      End If
  5294.      
  5295. 'anyone who has accepted, countered, or is waiting, we need to send them the notice
  5296.      If (numKeepPosted = 0) Then 
  5297.           Redim MailingList(0)
  5298.           MailingList(0) = ""
  5299.           Exit Sub
  5300.      End If 
  5301.      
  5302.      Redim MailingList(numKeepPosted-1)
  5303.      
  5304.      For x = 0 To (InviteeCounter-1)
  5305. 'make sure we have a person; rooms and resources are handled separately
  5306.           If (InviteeList(x).State = "") Then
  5307.                If (InviteeList(x).KeepPosted = "1") Then               
  5308.                     If(InviteeList(x).Domain <> "") Then
  5309.                          MailingList(counter) = InviteeList(x).InviteeName & "@" & InviteeList(x).Domain
  5310.                                 Else
  5311.                          MailingList(counter) = InviteeList(x).InviteeName
  5312.                                 End If
  5313.                                 counter = counter + 1
  5314.                End If                    
  5315.           End If
  5316.      Next
  5317. End Sub
  5318. '++LotusScript Development Environment:2:2:AcceptCounterProposal:1:8
  5319. Sub AcceptCounterProposal 
  5320.  *This routine is called whenever the chair accepts a counter proposal
  5321.  *This routine increments the SequenceNum item and sends Reschedule notices
  5322.   to all people, room, and resources
  5323.  *The parentnote is updated to reflect the changes, since the current note object is the 
  5324.   notice document and not the chair's meeting document
  5325. %END REM
  5326.      
  5327.      Dim StartDateTime As Variant
  5328.      Dim EndDateTime As Variant
  5329.      Dim NewRoom As String
  5330.      Dim OldRoom As String
  5331.      
  5332.      
  5333.      On Error Resume Next
  5334.      
  5335.      Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  5336. 'make sure we have a parentnote object; if we don't, then exit this routine
  5337.      If (parentnote Is Nothing) Then Exit Sub
  5338.      
  5339.      Set trdr = session.CreateDateRange
  5340.      
  5341.      trdr.Text = uidoc.FieldGetText("NewTimeRange")
  5342.      
  5343.      Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  5344.      Set enddt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.EndDateTime.TimeOnly)
  5345.      
  5346.      Call CreateNoticeDocument("",ORS_MSGTYPE_RESCHEDULE,33,1)
  5347.      
  5348. 'add the items specific to the reschedule; this will overwrite items already set be the CreateNoticeDocument routine
  5349.      Set notice.StartDateTime = startdt
  5350.      Set notice.EndDateTime = enddt
  5351.      Set notice.StartDate =startdt
  5352.      
  5353.      NewRoom = note.NewRoom(0)
  5354.      OldRoom = parentnote.Room(0)
  5355.      
  5356. 'if the new room has a value, use it     
  5357.      If (NewRoom <> "") Then
  5358.           notice.Subject = "Reschedule- " & note.Topic(0) & " (" & GetSubjectText(startdt.LSLocalTime) & " in " & NewRoom & ")"
  5359.           parentnote.OriginalRoom = OldRoom
  5360.           notice.Room = NewRoom
  5361. 'if the old room has a value, use it
  5362.      Elseif (OldRoom <> "") Then
  5363.           notice.Subject = "Reschedule- "& note.Topic(0) & " (" & GetSubjectText(startdt.LSLocalTime) & " in " & OldRoom & ")"
  5364.           notice.Room = OldRoom
  5365.      Else
  5366.           notice.Subject = "Reschedule- " & note.Topic(0) & " (" & GetSubjectText(startdt.LSLocalTime) & ")"
  5367.      End If
  5368.      
  5369.      notice.Topic = note.Topic
  5370.      notice.Chair = Owner
  5371.      
  5372. 'we need to add the correct attendees to the sendto item
  5373.      
  5374.      Call CreateInviteeTable(parentnote)
  5375.      
  5376.      Call GetInviteeStatus(parentnote,False)
  5377.      Call ProcessInviteeTable(parentnote)
  5378.      Call GetMailingList
  5379.      
  5380. 'make sure we have a valid mailing list -> we should but we need to make sure just in case
  5381.      If (MailingList(0) = "") Then Exit Sub     
  5382.      notice.SendTo = MailingList
  5383.      
  5384. 'call the routine that updates the parentnote with the appropriate values
  5385.      Call UpdateOriginalInvitation(parentnote)
  5386.      
  5387.      notice.SequenceNum = parentnote.SequenceNum(0)
  5388.      Call notice.Send(False)
  5389.      Messagebox "The invitees have been notified of the change.",0,"Status"
  5390.      
  5391. 'see if the time is changing; if the time is changing, then we need to reschedule resources
  5392.      tmpResourcesInvited = parentnote.RequiredResources
  5393.      If (tmpResourcesInvited(0) <> "") Then
  5394.           Forall Resources In tmpResourcesInvited
  5395.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_RESOURCE,Cstr(Resources),parentnote)
  5396.                notice.StartDateTime = parentnote.StartDateTime
  5397.                notice.EndDateTime = parentnote.EndDateTime
  5398.                notice.StartDate = parentnote.StartDate
  5399.                notice.TimeRange = parentnote.TimeRange
  5400.                Call notice.Send(False)
  5401.           End Forall
  5402.      End If     
  5403.      
  5404. 'reschedule the room if need be
  5405.      If (parentnote.RoomRequired(0) = "1") Then
  5406.           If (NewRoom <> "") Then
  5407.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM,NewRoom,parentnote)       
  5408.           Else
  5409.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM,OldRoom,parentnote)
  5410.           End If
  5411.           notice.StartDateTime = parentnote.StartDateTime
  5412.           notice.EndDateTime = parentnote.EndDateTime
  5413.           notice.StartDate = parentnote.StartDate
  5414.           notice.TimeRange = parentnote.TimeRange
  5415.           Call notice.Send(False)     
  5416.      End If
  5417.      
  5418.      Exit Sub
  5419.      
  5420. ErrorRoutine:
  5421.      Messagebox Error & " (AcceptCounterProposal)"
  5422.      Exit Sub
  5423. End Sub
  5424. '++LotusScript Development Environment:2:2:DeclineCounterProposal:1:8
  5425. Sub DeclineCounterProposal
  5426.  *This routine is called when the Chair declines a counter proposal
  5427.  *A notice is sent back to the invitee informing them of the chair's decline
  5428. %END REM
  5429.      
  5430.      On Error Goto ErrorRoutine
  5431.      
  5432.      Call CreateNoticeDocument("",ORS_MSGTYPE_COUNTERREJECT,38,1)
  5433. 'we need to overwrite some items     
  5434.      notice.Subject = "Proposed Change Declined - " & note.Topic(0)
  5435.      notice.Topic = note.Topic
  5436.      notice.Chair = Owner
  5437.      
  5438.      If (note.HasItem("FromDomain")) Then     
  5439.           notice.sendTo= note.InviteeName(0) & " @ " & note.FromDomain(0)
  5440.      Else
  5441.           FromDomain = Evaluate("@Domain")
  5442.           notice.SendTo = note.InviteeName(0) & " @ " & FromDomain(0)
  5443.      End If       
  5444.      Set nam = New NotesName(note.Inviteename(0))
  5445.      
  5446.      Call notice.Send(False)
  5447.      Messagebox "A notice has been sent informing " & nam.Common & " that the proposal for a time/location change has been declined.",0,"Status"
  5448.      Exit Sub
  5449.      
  5450. ErrorRoutine:
  5451.      Messagebox Error & " (DeclineCounterProposal)"
  5452.      Exit Sub
  5453. End Sub
  5454. '++LotusScript Development Environment:2:2:AddUninvitedToInviteeList:1:8
  5455. Sub AddUninvitedToInviteeList()
  5456.      Dim nIndex As Integer
  5457.      Dim UninvitedList As Variant
  5458.      
  5459. 'find this person in the InviteeTable
  5460.      UninvitedList = note.Uninvited
  5461.      
  5462.      Forall names In UninvitedList
  5463.           nIndex = FindInvitee(Cstr(names))
  5464.           InviteeList(nIndex).Status = ORS_STATUS_REMOVED
  5465.           InviteeList(nIndex).KeepPosted = ""          
  5466.      End Forall
  5467. End Sub
  5468. '++LotusScript Development Environment:2:1:GetInviteeMailAddress:1:8
  5469. Function GetInviteeMailAddress(pName As String) As String
  5470.      
  5471.      Dim nIndex As Integer
  5472.      
  5473.      nIndex = FindInvitee(pName)
  5474.      
  5475.      If (nIndex = -1) Then
  5476. 'the invitee was not found          
  5477.           GetInviteeMailAddress = pName
  5478.           Exit Function          
  5479.      End If
  5480.      
  5481. 'see if there is a domain associated with this user
  5482.      If(InviteeList(nIndex).Domain <> "") Then
  5483.           GetInviteeMailAddress = InviteeList(nIndex).InviteeName & "@" & InviteeList(nIndex).Domain
  5484.      Else
  5485.           GetInviteeMailAddress = InviteeList(nIndex).InviteeName
  5486.      End If
  5487.      
  5488.      
  5489. End Function
  5490. O=Lotus Notes
  5491. O=Lotus Notes
  5492. PURSAFO
  5493. |.:#U
  5494. O=Lotus Notes
  5495. CN=Lotus Notes Template Development/O=Lotus Notes
  5496. PURSAFO
  5497. Fde!f^^
  5498. $ScriptLib
  5499. $ScriptLib_O
  5500. $TITLE
  5501. $Flags
  5502. $PublicAccess
  5503. '++LotusScript Development Environment:2:5:(Options):0:74
  5504. Option Public
  5505. Use "ObjectVariables"
  5506. '++LotusScript Development Environment:2:5:(Forward):0:1
  5507. Declare Sub EmailOpen
  5508. Declare Sub EmailModeChange
  5509. Declare Sub EmailSave(Continue)
  5510. Declare Sub EmailClose(Continue)
  5511. Declare Sub SaveDialog(SavedDoc)
  5512. Declare Sub CheckSecureMail
  5513. Declare Sub CreateOLEObject
  5514. '++LotusScript Development Environment:2:5:(Declarations):0:10
  5515. Dim newnote As NotesDocument
  5516. Dim DoNotClose As Variant
  5517. Dim ContinueSave As Variant
  5518. Dim TaskReply As Variant
  5519. Dim OLEObject As Variant
  5520. '++LotusScript Development Environment:2:2:EmailOpen:1:8
  5521. Sub EmailOpen
  5522.      
  5523.      If uidoc.InPreviewPane Then Exit Sub
  5524.      If note Is Nothing Then Call InstantiateObjectVariables
  5525.      
  5526.      If (note.HasItem("PostedDate") Or note.HasItem("DeliveredDate")) Then
  5527.           If uidoc.EditMode = False Then
  5528.                Exit Sub
  5529.           Else
  5530. 'If this is a message that was written by you or your mail file, we need to remove any options fields
  5531.                If note.From(0) = Owner Or note.From(0) = session.UserName Or _
  5532.                note.Principal(0) = Owner Or note.Principal(0) = session.UserName Then
  5533.                     note.RemoveItem("MailOptions")
  5534.                     note.RemoveItem("SaveOptions")
  5535.                     If Not(note.HasItem("SecureMail")) Then CheckSecureMail
  5536. 'If this is a message that was not written by you we do not present the mail dialog
  5537. 'but we do want to force processing into QuerySave               
  5538.                Else
  5539.                     note.MailOptions = "0"
  5540.                     note.SaveOptions = "1"
  5541.                End If
  5542.           End If
  5543.      Else
  5544.           uidoc.EditMode = True
  5545.      End If
  5546.      
  5547.      If uidoc.IsNewDoc Then
  5548.           NewDocument = True
  5549.           note.Principal = Owner
  5550.           CheckSecureMail
  5551.           EditType = session.GetEnvironmentString("MailStEd")
  5552. 'EditType 1 = CreateStationery          
  5553.           If EditType = "1" Then
  5554.                note.tmpAction = "SaveAsStationery"
  5555.                note.IsMailStationery = 1
  5556.                Call session.SetEnvironmentVar("MailStEd", "0")
  5557.                note.MailOptions = "0"
  5558.                note.SaveOptions = "1"
  5559.           Else
  5560.                If Len(EditType) > 1 Then
  5561.                     TaskReply = True
  5562.                     Call session.SetEnvironmentVar("MailStEd", "0")
  5563.                     note.SaveOptions = "1"
  5564.                     note.MailOptions = "1"
  5565.                     note.AssignState = 9
  5566.                     note.DueState = 9
  5567.                     Call note.ReplaceItemValue("_ViewIcon", 82)
  5568.                End If
  5569.           End If
  5570.      Else
  5571.           NewDocument = False
  5572.           If note.HasItem("IsMailStationery") Then
  5573.                EditType = session.GetEnvironmentString("MailStEd")
  5574. 'EditType 2 = EditStationery
  5575.                If EditType = "2" Then 
  5576.                     Call session.SetEnvironmentVar("MailStEd", "0")
  5577.                     note.MailOptions = "0"
  5578.                     note.SaveOptions = "1"
  5579.                Else
  5580. 'Create a doc from Stationery
  5581.                     note.RemoveItem("IsMailStationery")
  5582.                     note.RemoveItem("MailStationeryName")
  5583.                     Call note.ReplaceItemValue("$VersionOpt", "6")
  5584.                     uidoc.GoToField("SendTo")
  5585.                End If
  5586.           Else
  5587.                EditType = session.GetEnvironmentString("MailStEd")
  5588. 'EditType 5 = EditNewCopy               
  5589.                If EditType = "5" Then 
  5590.                     Call note.ReplaceItemValue("$VersionOpt", "6")
  5591.                     note.tmpAction = "ConvertNewDoc"
  5592.                     note.RemoveItem("PostedDate")
  5593.                     Call session.SetEnvironmentVar("MailStEd", "0")
  5594.                     uidoc.Reload
  5595.                     uidoc.Save
  5596.                     uidoc.Refresh
  5597.                     uidoc.RefreshHideFormulas
  5598.                     Exit Sub
  5599.                End If
  5600.           End If
  5601.      End If 
  5602.      
  5603.      uidoc.Reload
  5604.      uidoc.RefreshHideFormulas
  5605.      
  5606. End Sub
  5607. '++LotusScript Development Environment:2:2:EmailModeChange:1:8
  5608. Sub EmailModeChange
  5609.      
  5610.      If note Is Nothing Then Call InstantiateObjectVariables
  5611.      
  5612. 'If this is a message that was written by you or your mail file, we need to remove any options fields
  5613.      If note.From(0) = Owner Or note.From(0) = session.UserName Or _
  5614.      note.Principal(0) = Owner Or note.Principal(0) = session.UserName Then
  5615.           note.RemoveItem("MailOptions")
  5616.           note.RemoveItem("SaveOptions")
  5617.           If Not(note.HasItem("SecureMail")) Then CheckSecureMail
  5618. 'If this is a message that was not written by you we do not present the mail dialog
  5619. 'but we do want to force processing into QuerySave               
  5620.      Else
  5621.           note.MailOptions = "0"
  5622.           note.RemoveItem("SaveOptions")
  5623.      End If
  5624.      
  5625.      If uidoc.EditMode Then uidoc.Reload
  5626.      
  5627. End Sub
  5628. '++LotusScript Development Environment:2:2:EmailSave:1:8
  5629. Sub EmailSave(Continue)
  5630.      
  5631.      DoNotClose = False
  5632.      
  5633.      If note Is Nothing Then Call InstantiateObjectVariables
  5634.      
  5635.      note.RemoveItem("MailOptions")
  5636.      note.RemoveItem("SaveOptions")
  5637.      
  5638.      Action = note.tmpAction(0)
  5639.      
  5640.      If note.HasItem("IsMailStationery") Then
  5641.           If Action <> "RenameStationery" Then
  5642.                Call SaveDialog("Stationery")
  5643.                If ContinueSave = IDCANCEL Then continue = False
  5644.                If ContinueSave <> IDYES Then 
  5645.                     uidoc.reload
  5646.                     Exit Sub
  5647.                End If
  5648.           End If
  5649.      End If
  5650.      
  5651.      Select Case Action
  5652.      Case "SaveAsStationery"
  5653.           sName = Inputbox$("What would you like to call this Stationery?", "Save as Stationery", "-Untitled-")
  5654.           If sName = "" Then
  5655.                Continue = False
  5656.                note.RemoveItem("tmpAction")
  5657.                Exit Sub
  5658.           End If
  5659.           If NewDocument Then
  5660.                note.IsMailStationery = 1
  5661.                note.MailStationeryName = sName
  5662.                note.MailOptions = "0"
  5663.                note.SaveOptions = "1"
  5664.           Else
  5665.                note.SaveOptions = "0"
  5666.                Set newnote = New NotesDocument(db)
  5667.                Call note.CopyAllItems(newnote)
  5668.                ItemList = newnote.Items
  5669.                Forall i In ItemList
  5670.                     If Lcase(Left(i.Name, 3)) = "tmp" Then i.Remove
  5671.                End Forall
  5672.                newnote.IsMailStationery = 1
  5673.                newnote.MailStationeryName = sName              
  5674.                newnote.Form = "Memo"
  5675.                newnote.RemoveItem("PostedDate")
  5676.                newnote.RemoveItem("DeliveredDate")
  5677.                newnote.Save True, True
  5678.                ws.ViewRefresh
  5679.           End If
  5680.           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"
  5681.           note.RemoveItem("tmpAction")
  5682.           Call uidoc.close
  5683.      Case "RenameStationery"
  5684.           MailStationeryName = note.MailStationeryName
  5685.           sName = Inputbox$("What would you like to call this Stationery?", "Save as Stationery", MailStationeryName(0))
  5686.           If sName = "" Then
  5687.                note.MailOptions = "0"
  5688.                note.RemoveItem("tmpAction")
  5689.                DoNotClose = True
  5690.                Continue = False
  5691.                Exit Sub
  5692.           End If
  5693.           note.MailStationeryName = sName
  5694.           note.MailOptions = "0"
  5695.           note.SaveOptions = "1"
  5696.      Case "SaveAsDraft", "SaveAndFile", "SendAndFile", "ConvertNewDoc"
  5697.           note.MailOptions = "0"
  5698.           note.SaveOptions = "1"
  5699.      Case "Send"
  5700.           note.MailOptions = "0"
  5701.           note.SaveOptions = "0"
  5702.      Case "Mailing"
  5703. 'We do not want to do anything if mailing is in process (like from the Send button)
  5704.      Case "ConvertToTask"
  5705.           note.RemoveItem("DeliveredDate")
  5706.           note.RemoveItem("PostedDate")
  5707.           note.SendTo = ""
  5708.           note.CopyTo = ""
  5709.           note.SaveOptions ="1"
  5710.           note.MailOptions = "0"
  5711.           note.Form = "Task"
  5712.           note.AssignState = 0
  5713.           note.ExcludeFromView = "D"
  5714.           Call note.ReplaceItemValue("_ViewIcon", 168)
  5715.      Case Else
  5716. '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          
  5717.           If note.HasItem("DeliveredDate") Then
  5718.                note.MailOptions = "0"
  5719.                note.SaveOptions = "1"
  5720.                Call SaveDialog("Document")
  5721.                If ContinueSave = IDCANCEL Then continue = False
  5722.                If ContinueSave <> IDYES Then 
  5723.                     uidoc.reload
  5724.                     Exit Sub
  5725.                End If
  5726.           End If
  5727.      End Select
  5728.      
  5729.      note.RemoveItem("tmpAction")
  5730.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  5731.      
  5732.      'If Not(note.HasItem("AuthorList")) Then Set item = New NotesItem(note, "AuthorList", note.From, AUTHORS)
  5733.      
  5734.      uidoc.Reload
  5735.      
  5736. End Sub
  5737. '++LotusScript Development Environment:2:2:EmailClose:1:8
  5738. Sub EmailClose(Continue)
  5739.      
  5740.      If DoNotClose Then
  5741.           DoNotClose = False
  5742.           Continue = False
  5743. 'This backs out anything you did previously to MailOptions and SaveOptions and will force you back into QuerySave next time you try to exit          
  5744.           note.RemoveItem("MailOptions")
  5745.           note.RemoveItem("SaveOptions")
  5746.           uidoc.reload
  5747.      End If
  5748.      
  5749.      If TaskReply Then
  5750.           Set namelookup = New NotesName(note.SendTo(0))
  5751.           Messagebox "Notification has been sent to " & namelookup.Common & ".", 0, "Task Message"
  5752.      End If
  5753.      
  5754. End Sub
  5755. '++LotusScript Development Environment:2:2:SaveDialog:1:8
  5756. Sub SaveDialog(SavedDoc)
  5757.      
  5758.      ContinueSave = Messagebox("Do you wish to save this " & SavedDoc & "?", MB_YESNOCANCEL, "Save " & SavedDoc) 
  5759.      Select Case ContinueSave
  5760.      Case IDCANCEL
  5761.           note.MailOptions = "0"
  5762. 'This will force us into querysave next time - this time it will set continue = false so no save will occur          
  5763.           note.SaveOptions = "1"
  5764.      Case IDNO
  5765.           note.SaveOptions = "0"
  5766.      Case IDYES
  5767.           note.SaveOptions = "1"
  5768.      End Select
  5769.      
  5770. End Sub
  5771. '++LotusScript Development Environment:2:2:CheckSecureMail:1:8
  5772. Sub CheckSecureMail
  5773.      
  5774. 'If SecureMail = 1 in notes.ini all mail gets Signed and Encrypted and the user is unable to override it
  5775.      note.SecureMail = Cstr(session.GetEnvironmentString("SecureMail", True))
  5776.      If note.SecureMail(0) = "1" Then
  5777.           Call note.ReplaceItemValue("Sign", "1")
  5778.           Call note.ReplaceItemValue("Encrypt", "1")
  5779.      End If     
  5780.      
  5781. End Sub
  5782. '++LotusScript Development Environment:2:2:CreateOLEObject:1:8
  5783. Sub CreateOLEObject
  5784.      Dim sProgid As String
  5785.      
  5786.      On Error Resume Next
  5787.      
  5788.      sProgid = note.~$OLEObjProgId(0)
  5789.      
  5790. 'if this is a new document, then we need to create the ole object     
  5791.      If (NewDocument) Then     
  5792.           note.OriginalEditor = sProgid
  5793.           uidoc.GotoField(note.~$OLEObjField(0))
  5794.           
  5795.           Call uidoc.CreateObject("OLEObject", sProgId ,"")
  5796.           If (Err = 0) Then 
  5797.                Call ws.DialogBox("(OLEMailFields)",True,True)
  5798.           Else
  5799.                note.tmpuseOLE = ""
  5800.                uidoc.RefreshHideFormulas
  5801.           End If
  5802.      Else
  5803. 'the user is reading/editing an existing document
  5804. 'if the OriginalEditor = MailEditor, display the document using that Editor
  5805. 'otherwise, let Notes display the document
  5806.           If Lcase(note.OriginalEditor(0)) = Lcase(sProgId) Then
  5807.                uidoc.editmode = True
  5808.                Set OLEObject = uidoc.GetObject("OLEObject")
  5809.                If Not(Isobject(OLEObject)) Then
  5810. 'there is no object for some reason -this should be rare!!       
  5811.                     uidoc.EditMode = True
  5812.                     note.OriginalEditor = sProgid
  5813.                     uidoc.GotoField(note.~$OLEObjField(0))
  5814.                     Call uidoc.CreateObject("OLEObject",sProgId,"")      
  5815.                     Exit Sub    
  5816.                End If
  5817.           Else
  5818. 'the user has a different editor
  5819.                note.tmpUseOLE = ""
  5820.                uidoc.RefreshHideFormulas               
  5821.           End If
  5822.      End If     
  5823. End Sub
  5824. ,T    }d
  5825. ,T    }d
  5826. O=Lotus Notes
  5827. O=Lotus Notes
  5828. PURSAFO
  5829. |.:#U
  5830. O=Lotus Notes
  5831. CN=Lotus Notes Template Development/O=Lotus Notes
  5832. PURSAFO
  5833. Fde!f^^
  5834. HH9Kiy
  5835. -?U9*
  5836. $ScriptLib
  5837. $ScriptLib_O
  5838. $TITLE
  5839. $Flags
  5840. $PublicAccess
  5841. '++LotusScript Development Environment:2:5:(Options):0:74
  5842. Option Public
  5843. Use "AppointmentResponses"   
  5844. '++LotusScript Development Environment:2:5:(Forward):0:1
  5845. Declare Sub Initialize
  5846. Declare Sub AcceptInvitation
  5847. Declare Sub DeclineInvitation
  5848. Declare Function DelegateInvitation As Integer
  5849. Declare Sub CounterPropose
  5850. '++LotusScript Development Environment:2:5:(Declarations):0:10
  5851. 'NoticeProcessing: 
  5852. '++LotusScript Development Environment:2:2:Initialize:1:10
  5853. Sub Initialize
  5854.      
  5855. End Sub
  5856. '++LotusScript Development Environment:2:2:AcceptInvitation:1:8
  5857. Sub AcceptInvitation
  5858.     *This routine is called whenever the user accepts a meeting invitation
  5859.     *A notice document is sent to the chair informing them of our intent to attend
  5860.     *The main invitation document is updated to reflect our acceptance     
  5861. %END REM
  5862.      
  5863.      On Error Goto ErrorRoutine
  5864.      On Error 4005 Resume Next 'handle a delegee 
  5865.      
  5866. 'first, make sure a conflict doesn't exist 
  5867. 'we don't check repeating appointments or appointments being auto-processed (auto-process does it itself)
  5868.      If Not((note.HasItem("RepeatFor")) Or (IsAgentProcessing)) Then          
  5869.           If (profile.ConflictMeeting(0) = "1") Then
  5870.                If (CheckIfConflictExists) Then Exit Sub
  5871.           End If
  5872.      End If
  5873.      
  5874. 'create the notice document
  5875.      If (note.tmpAction(0) = "PencilIn") Then
  5876.           Call CreateNoticeDocument("Penciled In -",ORS_MSGTYPE_ACCEPT,83,2)
  5877.      Else
  5878.           Call CreateNoticeDocument("Accepted -",ORS_MSGTYPE_ACCEPT,83,2)
  5879.      End If
  5880.      
  5881. 'add the comment if necessary
  5882.      If (note.HasItem("IncludeComment")) Then AddInviteeComment
  5883.      
  5884.      If (note.HasItem("FromDomain")) Then     
  5885.           notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  5886.      Else
  5887.           FromDomain = Evaluate("@Domain")
  5888.           notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  5889.      End If          
  5890.      
  5891. 'we use the profile document in case this is being processed by the agent     
  5892.      InviteeUserName = Evaluate("@Name([Abbreviate];owner)",profile)
  5893.      ChairName = Evaluate("@Name([cn];chair)",note)
  5894.      notice.InviteeName = InviteeUserName
  5895.      Call notice.Send(False)
  5896. 'now we need to update the original invitation document
  5897.      Context = GetContext
  5898.      Select Case Context
  5899.      Case 1,3
  5900. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  5901.           Call UpdateOriginalInvitation(parentnote)
  5902.      Case 2,4
  5903. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  5904.           Call UpdateOriginalInvitation(note)
  5905.      End Select
  5906.      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"
  5907.      
  5908. 'see if we should remove this from the inbox
  5909.      If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  5910.      Exit Sub
  5911.      
  5912. ErrorRoutine:
  5913.      Messagebox Error & " (AcceptInvitation)"
  5914.      Exit Sub
  5915. End Sub
  5916. '++LotusScript Development Environment:2:2:DeclineInvitation:1:8
  5917. Sub DeclineInvitation
  5918.     *This routine is called whenever the user declines an invitation or
  5919.      changes their mind after accepting an invitation
  5920.     *A notice document is sent to the chair informing them of our decline
  5921.     *The main invitation document is updated to reflect our decline    
  5922. %END REM
  5923.      Dim MessageText As String
  5924.      
  5925.      On Error Goto ErrorRoutine
  5926.      On Error 4005 Resume Next 'handle a delegee 
  5927.      
  5928.      Call CreateNoticeDocument("Declined -",ORS_MSGTYPE_REJECT,84,2)
  5929.      
  5930. 'add the comment if necessary
  5931.      If (note.HasItem("IncludeComment")) Then AddInviteeComment
  5932.      
  5933.      If (note.HasItem("FromDomain")) Then     
  5934.           notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  5935.      Else
  5936.           FromDomain = Evaluate("@Domain")
  5937.           notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  5938.      End If   
  5939.      
  5940.      InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  5941.      ChairName = Evaluate("@Name([cn];chair)",note)
  5942.      notice.InviteeName = InviteeUserName
  5943.      
  5944.      Call notice.Send(False)
  5945. 'now we need to update the original invitation document
  5946.      Context = GetContext
  5947.      Select Case Context
  5948.      Case 1,3
  5949. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  5950.           If (parentnote.Form(0) = "Appointment") Then
  5951.                MessageText  = "The calendar entry has been removed from your calendar."
  5952.           Else
  5953.                MessageText = "A meeting document has not been added to your Calendar."
  5954.           End If
  5955.           Call UpdateOriginalInvitation(parentnote)
  5956.      Case 2,4
  5957. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  5958.           If (note.Form(0) = "Appointment") Then
  5959.                MessageText  = "The calendar entry has been removed from your calendar."
  5960.           Else
  5961.                MessageText = "A meeting document has not been added to your Calendar."
  5962.           End If
  5963.           Call UpdateOriginalInvitation(note)
  5964.      End Select
  5965.      
  5966.      Messagebox "A notice has been sent informing " & ChairName(0) & " that you will not be attending. " & MessageText,0,"Status"
  5967. 'see if we should remove this from the inbox
  5968.      If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  5969.      Exit Sub
  5970.      
  5971. ErrorRoutine:
  5972.      Messagebox Error & " (DeclineInvitation)"
  5973.      Exit Sub
  5974. End Sub
  5975. '++LotusScript Development Environment:2:1:DelegateInvitation:1:8
  5976. Function DelegateInvitation As Integer
  5977.     *This routine is called whenever the user wants to delegate a meeting invitation
  5978.     *This routine provides a dialogbox to select the delegatee
  5979.     *This routine sends an invitation to the delegatee and a delegation notice back to the chair
  5980.     *The main appointment document is updated to reflect the change
  5981.     *This function returns 0 if no errors occurred, or 1 if errors did occur
  5982. %END REM
  5983.      
  5984.      On Error Goto ErrorRoutine
  5985.      On Error 4005 Resume Next 'handle a delegee 
  5986.      
  5987.      DelegateInvitation = 0
  5988. 'invoke the dialog box to get the name
  5989.      If (ws.Dialogbox("(NamesPrompt)", True, True, False, False, False, False, "Delegate To") = True) Then
  5990. 'if this person has been invited by the chair, they should not be able to be a delegee
  5991.           localHasBeenInvited = Evaluate("@IsMember(@Lowercase(@Name([cn];SendTo));@Lowercase(@Name([cn];RequiredAttendees:OptionalAttendees:Chair)))",note)
  5992.           If (localHasBeenInvited(0) <> False) Then
  5993.                Messagebox "You have selected a person that has already been invited to this meeting. Please choose someone else.",0,"Invalid Selection"
  5994.                DelegateInvitation = DelegateInvitation()
  5995.                Exit Function
  5996.           End If          
  5997. 'create the notice and send it to the delegee          
  5998.           Call CreateNoticeDocument("Invitation -",ORS_MSGTYPE_DELEGATE,133,2)
  5999.           notice.OrgState = ORS_STATE_DELEGATE
  6000. 'remove the items that make this a response
  6001.           Call notice.RemoveItem("$Ref")
  6002.           Call notice.RemoveItem("$RefOptions")
  6003. 'add the comment if necessary
  6004.           If (note.HasItem("IncludeComment")) Then AddInviteeComment          
  6005. 'set the UniversalID of the notice          
  6006.           If (parentnote Is Nothing) Then
  6007.                notice.UniversalID = note.UniversalID
  6008.           Else
  6009.                notice.UniversalID = parentnote.UniversalID
  6010.           End If
  6011.           notice.SendTo = note.SendTo
  6012.           Call notice.Send(False)
  6013. 'create the notice and send it to the chair
  6014.           Call CreateNoticeDocument("Delegated -",ORS_MSGTYPE_DELEGATING,84,2)
  6015. 'add the comment if necessary
  6016.           If (note.HasItem("IncludeComment")) Then AddInviteeComment          
  6017.           
  6018.           If (note.HasItem("FromDomain")) Then     
  6019.                notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  6020.           Else
  6021.                FromDomain = Evaluate("@Domain")
  6022.                notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  6023.           End If
  6024.           note.Delegee = note.SendTo(0)
  6025.           notice.Delegee = Evaluate("@Name([Abbreviate];SendTo)",note)
  6026.           InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  6027.           ChairName = Evaluate("@Name([cn];chair)",note)
  6028.           DelegeeName = Evaluate("@Name([cn];sendto)",note)
  6029.           notice.InviteeName = InviteeUserName
  6030.           Call notice.Send(False)
  6031. 'call the function to update our invitation 
  6032.           Context = GetContext
  6033.           Select Case Context
  6034.           Case 1,3
  6035. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  6036.                Call UpdateOriginalInvitation(parentnote)
  6037.                parentnote.Delegee = DelegeeName(0)
  6038.                parentnote.save True,False,True
  6039.           Case 2,4
  6040. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  6041.                Call UpdateOriginalInvitation(note)
  6042.           End Select
  6043.           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"
  6044. 'remove the sendto on the note
  6045.           note.SendTo = ""
  6046. 'see if we should remove this from the inbox
  6047.           If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  6048.           DelegateInvitation = 0          
  6049.      Else
  6050.           DelegateInvitation = 1
  6051.      End If
  6052.      
  6053.      Exit Function
  6054.      
  6055. ErrorRoutine:
  6056.      Messagebox Error & " (DelegateInvitation)"
  6057.      Call MarkTempFields(note)
  6058.      Call note.RemoveItem("tmpUserActions")
  6059.      DelegateInvitation = 1     
  6060.      Exit Function
  6061. End Function
  6062. '++LotusScript Development Environment:2:2:CounterPropose:1:8
  6063. Sub CounterPropose
  6064.     *This routine is called whenever the user wants to send a counter propose notice
  6065.     *This routine sends a counter propose notice to the chair and updates the main
  6066.      appointment document
  6067. %END REM
  6068.      
  6069.      On Error Goto ErrorRoutine
  6070.      On Error 4005 Resume Next 'handle a delegee 
  6071.      
  6072.      Call CreateNoticeDocument("Change Proposal -",ORS_MSGTYPE_COUNTER,39,2)
  6073.      
  6074. 'add the comment if necessary
  6075.      If (note.HasItem("IncludeComment")) Then AddInviteeComment     
  6076.      
  6077. 'add the remaining items     
  6078.      notice.Reason = note.Reason
  6079.      
  6080.      Set trdr = session.CreateDateRange
  6081.      trdr.Text = uidoc.FieldGetText("NewTimeRange")
  6082.      Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  6083.      
  6084.      Set notice.NewDate = startdt
  6085.      Set notice.NewTimeRange = trdr
  6086.      notice.NewRoom = note.NewRoom
  6087.      InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  6088.      ChairName = Evaluate("@Name([cn];chair)",note)
  6089.      notice.InviteeName = InviteeUserName
  6090.      
  6091.      If (note.HasItem("FromDomain")) Then     
  6092.           notice.sendTo= note.Chair(0) & " @ " & note.FromDomain(0)
  6093.      Else
  6094.           FromDomain = Evaluate("@Domain")
  6095.           notice.SendTo = note.Chair(0) & " @ " & FromDomain(0)
  6096.      End If        
  6097.      
  6098.      notice.Send False
  6099.      
  6100.      Messagebox "A notice has been sent to " & ChairName(0) & " requesting a change to the Time/Location of this meeting.",0,"Status"
  6101.      
  6102.      Call UpdateOriginalInvitation(note)
  6103. 'see if we should remove this from the inbox
  6104.      If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  6105.      Exit Sub
  6106.      
  6107. ErrorRoutine:
  6108.      Messagebox Error & " (CounterPropose)"
  6109.      Exit Sub
  6110. End Sub
  6111. owner
  6112.     0S0E
  6113. chair
  6114.     0S0E
  6115. tmpOwner
  6116.     0S0E
  6117. chair
  6118.     0S0E
  6119. SendTo
  6120. RequiredAttendees
  6121. OptionalAttendees
  6122. Chair
  6123.     0S0E
  6124. SendTo
  6125.     0S0E
  6126. tmpOwner
  6127.     0S0E
  6128. chair
  6129.     0S0E
  6130. sendto
  6131.     0S0E
  6132. tmpOwner
  6133.     0S0E
  6134. chair
  6135.     0S0E
  6136. O=Lotus Notes
  6137. O=Lotus Notes
  6138. PURSAFO
  6139. |.:#U
  6140. O=Lotus Notes
  6141. CN=Lotus Notes Template Development/O=Lotus Notes
  6142. PURSAFO
  6143. Fde!f^^
  6144. $ScriptLib
  6145. $ScriptLib_O
  6146. $TITLE
  6147. $Flags
  6148. $PublicAccess
  6149. '++LotusScript Development Environment:2:5:(Options):0:74
  6150. Option Public
  6151. Use "SharedWorkflowLibrary"     
  6152. Use "RepeatProcessing" 
  6153. '++LotusScript Development Environment:2:5:(Forward):0:1
  6154. Declare Sub Initialize
  6155. Declare Sub GetUpdateResponseItems(Byval context As Integer)
  6156. Declare Sub SetUpdateAsMostRecent(MainSequence As Integer)
  6157. Declare Sub GetMostRecentUpdateNotice(Context As Integer)
  6158. Declare Sub CheckForNoticeUpdates
  6159. Declare Sub DeCommitAppointment(apptdoc As NotesDocument)
  6160. Declare Sub CommitAppointment(apptdoc As NotesDocument)
  6161. Declare Function GetParentDocument() As Integer
  6162. '++LotusScript Development Environment:2:5:(Declarations):0:10
  6163. 'NoticeResponses: 
  6164. Dim UpdateResponses() As NoticeInfo
  6165. Dim UpdateSequence As Integer
  6166. Dim UpdateCreation As Variant
  6167. Dim UpdateAction As String
  6168. Dim UpdateStatus As String
  6169. Dim UpdateUNID As String
  6170. Dim UpdateDate As Variant
  6171. Dim UpdateTime As Variant
  6172. '++LotusScript Development Environment:2:2:Initialize:1:10
  6173. Sub Initialize
  6174.      
  6175. End Sub
  6176. '++LotusScript Development Environment:2:2:GetUpdateResponseItems:1:8
  6177. Sub GetUpdateResponseItems(Byval context As Integer)
  6178.     *This gets specific items from any update notices from the chair
  6179.  *Update notices are responses documents to the current invitation
  6180. %END REM
  6181.      Dim itemSDT As NotesItem
  6182.      
  6183.      On Error Goto ErrorRoutine
  6184.      
  6185.      UpdateSequence = response.SequenceNum(0)
  6186.      UpdateCreation = response.Created
  6187.      UpdateAction = response.NoticeType(0)
  6188.      UpdateUNID = response.UniversalID
  6189. 'if this update is a status update, get the status update type
  6190.      If (UpdateAction = ORS_MSGTYPE_STATUSUPDATE) Then 
  6191.           UpdateStatus = response.OrgStatus(0)               
  6192.      Else
  6193.           UpdateStatus = ""
  6194.      End If 
  6195.      If (UpdateAction = ORS_MSGTYPE_CONFIRMATION) Then
  6196.           Set itemSDT = note.GetFirstItem("StartDateTime")
  6197.           UpdateDate = itemSDT.DateTimeValue.DateOnly
  6198.           UpdateTime = itemSDT.DateTimeValue.TimeOnly
  6199.      End If
  6200. 'if the user opened up the main parent document and this is a repeat response, we need to add certain items to the parent
  6201.      Select Case context
  6202. '1 means the current note is a non-repeat notice, 3 = repeat notice
  6203.      Case 1,3
  6204.           If(response.HasItem("RescheduleWhich")) Then parentnote.RescheduleWhich = response.RescheduleWhich
  6205.           If(response.HasItem("OriginalStartDate")) Then parentnote.OriginalStartDate = response.OriginalStartDate
  6206.      Case 2,4
  6207. '2 means repeat instance, 4 means non-repeat instance
  6208.           If(response.HasItem("RescheduleWhich")) Then note.RescheduleWhich = response.RescheduleWhich
  6209.           If(response.HasItem("OriginalStartDate")) Then note.OriginalStartDate = response.OriginalStartDate
  6210.      End Select
  6211.      
  6212.      Exit Sub
  6213.      
  6214. ErrorRoutine:
  6215.      Messagebox Error & " (GetUpdateResponseItems)"
  6216.      Exit Sub
  6217. End Sub
  6218. '++LotusScript Development Environment:2:2:SetUpdateAsMostRecent:1:8
  6219. Sub SetUpdateAsMostRecent(MainSequence As Integer)
  6220.     *This routine sets the current response as the most recent
  6221.     *We need to do this in case multiple update notices have been
  6222.      received from the chair and we want to process the most recent one
  6223.     *The MainSequence parameter is the SequenceNum item of the main inviation document
  6224. %END REM
  6225.      
  6226.      On Error Goto ErrorRoutine
  6227.      
  6228. 'if this is a confirmation, then add it's items to the 1 index, otherwise add it to the 0 index
  6229.      Dim index As Integer
  6230.      
  6231.      If (UpdateAction = ORS_MSGTYPE_CONFIRMATION) Then
  6232.           index = 1
  6233.           UpdateResponses(index).apptdate = UpdateDate
  6234.           UpdateResponses(index).appttime = UpdateTime
  6235.      Else
  6236.           index = 0
  6237.      End If
  6238.      
  6239.      UpdateResponses(index).sequencenum = UpdateSequence
  6240.      UpdateResponses(index).creationdate = UpdateCreation
  6241.      UpdateResponses(index).action = UpdateAction
  6242.      UpdateResponses(index).misc1 = UpdateStatus
  6243.      UpdateResponses(index).misc2 = UpdateUNID
  6244.      numResponses = numResponses + 1
  6245.      Exit Sub
  6246.      
  6247. ErrorRoutine:
  6248.      Messagebox Error & " (SetUpdateAsMostRecent)"
  6249.      Exit Sub
  6250. End Sub
  6251. '++LotusScript Development Environment:2:2:GetMostRecentUpdateNotice:1:8
  6252. Sub GetMostRecentUpdateNotice(Context As Integer)
  6253.     *This is the bulk of the processing for notice responses
  6254.     *This routine iterates through the responses of a particular meeting invitation
  6255.      and gets the most recent notice sent by the chair
  6256. %END REM
  6257.      Dim index As Integer     
  6258.      Dim MainSequence As Integer
  6259.      
  6260.      If (note.IsResponse) And (parentnote Is Nothing) Then Exit Sub
  6261.      On Error Goto ErrorRoutine
  6262.      
  6263.      Redim UpdateResponses(2)
  6264.      numResponses = 0
  6265.      
  6266. 'get the context that this document was opened in
  6267.      Context = GetContext
  6268.      Select Case context
  6269.      Case 1,3
  6270. '1 means the current note is a non-repeat notice, 3 = repeat notice
  6271.           Set documents  = parentnote.Responses          
  6272.           MainSequence = parentnote.SequenceNum(0)
  6273.      Case 2,4
  6274. '2 means repeat instance, 4 means non-repeat instance
  6275.           Set documents  = note.Responses          
  6276.           MainSequence = note.SequenceNum(0)          
  6277.      End Select
  6278.      
  6279.      If (documents.Count = 0) Then Exit Sub
  6280.      
  6281.      Set response = documents.GetFirstDocument
  6282.      While Not(response Is Nothing)
  6283. 'make sure we have a valid document
  6284.           If (response.Form(0) = "Notice") Then
  6285. 'get the necessary values for this update
  6286.                GetUpdateResponseItems(Context)
  6287. 'if the sequence is >= the original invitation sequence, we can process it
  6288.                If (UpdateSequence >= MainSequence) Then
  6289. 'if we haven't added anything to the array, add this one
  6290.                     If (numResponses = 0) Then 
  6291.                          Call SetUpdateAsMostRecent(MainSequence)
  6292.                     Else
  6293.                          If (UpdateAction = ORS_MSGTYPE_CONFIRMATION) Then 
  6294.                               index =1 
  6295.                          Else
  6296.                               index = 0
  6297.                          End If
  6298. 'if the UpdateSequence value is greater than the existing value, add this response
  6299.                          If (UpdateSequence > UpdateResponses(index).sequencenum) Then 
  6300.                               Call SetUpdateAsMostRecent(MainSequence)
  6301.                          Else
  6302. 'if the UpdateSequence = the existing value, compare creation dates
  6303.                               If (UpdateSequence = UpdateResponses(index).sequencenum) And (UpdateCreation > UpdateResponses(index).creationdate) Then Call SetUpdateAsMostRecent(MainSequence)
  6304.                          End If               
  6305.                     End If
  6306.                End If     
  6307.           End If
  6308.           Set response = documents.GetNextDocument(response)          
  6309.      Wend
  6310.      Exit Sub
  6311.      
  6312. ErrorRoutine:
  6313.      Messagebox Error & " (GetMostRecentUpdateNotice)"
  6314.      Exit Sub
  6315. End Sub
  6316. '++LotusScript Development Environment:2:2:CheckForNoticeUpdates:1:8
  6317. Sub CheckForNoticeUpdates
  6318.     *This routine is called from the QueryOpen event on notice and appointment forms
  6319.     *It is only called if the mail owner != the meeting chair (i.e. we are an invitee)
  6320.     *This routine calls GetMostRecentResponseNotice and performs an action based upon the notice
  6321. %END REM
  6322.      
  6323.      Dim Context As Integer
  6324.      Dim lDoc As NotesDocument
  6325.      
  6326.      Call GetMostRecentUpdateNotice(Context)
  6327.      
  6328.      If (documents.Count = 0) Then Exit Sub 'there are no responses
  6329.      
  6330.      Select Case Context
  6331. '1 means the current note is a non-repeat notice, 3 = repeat notice 
  6332.      Case 1,3
  6333.           Set lDoc = parentnote
  6334.      Case 2,4
  6335. '2 means repeat instance, 4 means non-repeat instance
  6336.           Set lDoc = note
  6337.      End Select
  6338.      
  6339.      On Error Goto ErrorRoutine
  6340. 'if there are any responses waiting, see what the most recent one is; 
  6341.      Select Case UpdateResponses(0).action
  6342.      Case ORS_MSGTYPE_RESCHEDULE
  6343. 'if the user is not reading the most upto date notice, see if we should open the reschedule notice or not
  6344.           If  (UpdateResponses(0).misc2 <> note.UniversalID) Then
  6345.                If (UpdateResponses(0).sequencenum > lDoc.SequenceNum(0)) Then
  6346.                     If IsWebClient Then
  6347.                          note.tmpConfirmMsg = "This meeting has been rescheduled. Check you In Box or Meetings view for the latest notice."
  6348.                     Else
  6349.                          If (Messagebox("This meeting has been rescheduled. Do you want to open the Reschedule notice now?.",33,"Open Reschedule") = 1) Then
  6350. 'the user wants us to open the reschedule notice
  6351.                               OpenReschedule = True
  6352.                          Else
  6353.                               OpenReschedule = False
  6354.                               note.DoNotProcess = True
  6355.                          End If
  6356.                     End If
  6357.                End If
  6358.           Else
  6359. 'the user is reading the most upto date reschedule notice -> make sure we can process this document
  6360.                If (UpdateResponses(0).sequencenum <= parentnote.SequenceNum(0)) Then note.DoNotProcess = True
  6361.           End If
  6362.      Case ORS_MSGTYPE_CANCEL 
  6363.           staticstring = "This meeting has been cancelled."
  6364.           If IsWebClient Then
  6365.                note.tmpConfirmMsg = staticstring
  6366.           Else
  6367.                If (lDoc.NoticeType(0) = ORS_MSGTYPE_ACCEPT) Then
  6368.                     Messagebox staticstring & " The calendar entry will be updated to reflect this change",0,"Status"
  6369.                     Call DeCommitAppointment(lDoc)
  6370.                Else
  6371.                     Messagebox staticstring, 0, "Status"
  6372.                End If
  6373.           End If
  6374.           note.DoNotProcess = True
  6375. 'we need to do this here since this is not handled in QuerySave          
  6376.           If Not IsWebClient And note.HasItem("OrgRepeat") Then
  6377.                Action = "Cancel"
  6378.                Call RepeatSave
  6379.           End If
  6380.      Case ORS_MSGTYPE_STATUSUPDATE
  6381.           If (UpdateResponses(0).misc1 = ORS_STATUS_REMOVED) Then
  6382. 'this user was uninvited
  6383.                staticstring = "You are no longer required to attend this meeting."
  6384.                If IsWebClient Then
  6385.                     note.tmpConfirmMsg = staticstring
  6386.                Else
  6387.                     If (lDoc.NoticeType(0) = ORS_MSGTYPE_ACCEPT) Then
  6388.                          Messagebox staticstring & " The calendar entry will be updated to reflect this change",0,"Status"
  6389.                          Call DeCommitAppointment(lDoc)
  6390.                     Else
  6391.                          Messagebox staticstring,0,"Status"
  6392.                     End If
  6393.                'we need to do this here since this is not handled in QuerySave          
  6394.                     If note.HasItem("OrgRepeat") Then
  6395.                          Action = "Cancel"
  6396.                          Call RepeatSave
  6397.                     End If
  6398.                End If
  6399.           Else                    
  6400. 'the user is being required to attend
  6401.                If (lDoc.NoticeType(0) <> ORS_MSGTYPE_ACCEPT) Then
  6402.                     staticstring = "You are required to attend this meeting."
  6403.                     If IsWebClient Then
  6404.                          note.tmpConfirmMsg = staticstring
  6405.                     Else
  6406.                          Messagebox  staticstring & " The calendar entry will be created to reflect this change",0,"Status"
  6407.                          Call CommitAppointment(lDoc)                        
  6408.                     End If
  6409.                End If
  6410.           End If
  6411.           note.DoNotProcess = True                       
  6412.      End Select
  6413. 'see if there are any confirmation notice          
  6414.      If (UpdateResponses(1).Action = ORS_MSGTYPE_CONFIRMATION) Then          
  6415. '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
  6416.           If  (UpdateResponses(1).misc2 <> note.UniversalID) And _
  6417.           ((UpdateResponses(1).sequencenum > UpdateResponses(0).SequenceNum) Or _
  6418.           (UpdateResponses(1).creationdate > UpdateResponses(0).creationdate)) Then 
  6419.                note.tmpRealDate = UpdateResponses(1).apptdate
  6420.                note.tmpRealTime = UpdateResponses(1).appttime
  6421.                If IsWebClient Then
  6422.                     RealDate = Evaluate({@Text(tmpRealDate;"S0D0")},note)
  6423.                     RealTime = Evaluate({@Text(tmpRealTime;"S1T1")},note)
  6424.                     Dim nName As New NotesName(note.Chair(0))
  6425.                     note.tmpConfirmMsg = "The invitation from " & nName.Common & " for " & _
  6426.                     RealDate(0) & " " & RealTime(0) & " has been confirmed."
  6427.                End If
  6428.           End If
  6429.      End If
  6430.      Exit Sub
  6431.      
  6432. ErrorRoutine:
  6433.      Messagebox Error & " (CheckForNoticeUpdates)"
  6434.      Exit Sub
  6435. End Sub
  6436. '++LotusScript Development Environment:2:2:DeCommitAppointment:1:8
  6437. Sub DeCommitAppointment(apptdoc As NotesDocument)
  6438.     *This routine is called if a user is uninvited from a meeting or
  6439.      if the meeting is cancelled
  6440.     *This routine modifies the passed in apptdoc to make it a non-calendar item
  6441. %END REM
  6442.      
  6443.      apptdoc.NoticeType = UpdateResponses(0).action
  6444.      apptdoc.OrgStatus = UpdateResponses(0).misc1
  6445.      Call apptdoc.ReplaceItemValue("$BusyPriority","2")
  6446.      Call apptdoc.RemoveItem("CalendarDateTime")
  6447.      Call apptdoc.ReplaceItemValue("_ViewIcon",0)
  6448.      apptdoc.SequenceNum = UpdateResponses(0).SequenceNum
  6449.      Call apptdoc.RemoveItem("OrgTable")
  6450. 'if this document has an alarm, remove it from the alarms folder
  6451.      If (apptdoc.HasItem("$Alarm")) Then Call apptdoc.RemoveFromFolder("$Alarms")
  6452.      Call MarkTempFields(apptdoc)
  6453.      Call apptdoc.Save(True,True,True)
  6454. End Sub
  6455. '++LotusScript Development Environment:2:2:CommitAppointment:1:8
  6456. Sub CommitAppointment(apptdoc As NotesDocument)
  6457.     *This routine is called ONLY when the user is being required to attend a meeting
  6458.         - THIS MEANS THE INVITEE RECEIVED A STATUSUPDATE NOTICE FROM THE CHAIR
  6459.         - WITH AN ORGSTATUS ITEM SET TO ORS_STATUS_ACCEPTED
  6460.     *This routine is not the same as an acceptance and should not be treated as such,
  6461.      since we don't mail anything back to the chair
  6462. %END REM
  6463.      Dim chairnote As NotesDocument
  6464.      
  6465.      If (UpdateResponses(0).misc2 <> "") Then
  6466.           Set chairnote = db.GetDocumentbyUNID(UpdateResponses(0).misc2)
  6467.      Else
  6468.              Set chairnote = note
  6469.      End If
  6470.      
  6471.      apptdoc.Form = "Appointment"
  6472.      
  6473.      Set trdr = session.CreateDateRange
  6474.      Set startdt = New NotesDateTime(chairnote.StartDateTime(0))
  6475.      Set enddt = New NotesDateTime(chairnote.EndDateTime(0))
  6476.      
  6477.      Set trdr.StartDateTime = startdt
  6478.      Set trdr.EndDateTime = enddt
  6479.      Set apptdoc.TimeRange = trdr
  6480.      Set apptdoc.StartDateTime = startdt
  6481.      Set apptdoc.EndDateTime = enddt
  6482.      apptdoc.CalendarDateTime = chairnote.StartDateTime
  6483.      apptdoc.StartDate = chairnote.StartDate
  6484.      apptdoc.Principal = chairnote.chair
  6485.      apptdoc.NoticeType = ORS_MSGTYPE_ACCEPT  
  6486.      Call apptdoc.ReplaceItemValue("_ViewIcon",158)
  6487.      Call apptdoc.ReplaceItemValue("$BusyName",Owner)
  6488.      Call apptdoc.ReplaceItemValue("$BusyPriority","1")
  6489.      Call apptdoc.ReplaceItemValue("_ViewIcon",158)
  6490.      apptdoc.Subject = chairnote.Topic
  6491. 'check to see if we should automatically set an alarm
  6492.      If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") And (profile.SetAlarmAppointment(0) = "1") Then
  6493.           Call apptdoc.ReplaceItemValue("$Alarm",1)
  6494.           Call apptdoc.ReplaceItemValue("$AlarmDescription",note.Topic)
  6495.           Call apptdoc.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  6496.           Call apptdoc.PutInFolder("$Alarms")
  6497.      Else
  6498.           Call apptdoc.RemoveItem("$Alarm")
  6499.           Call apptdoc.RemoveItem("$AlarmDescription")
  6500.           Call apptdoc.RemoveItem("$AlarmOffset")               
  6501.      End If
  6502.      Call apptdoc.ReplaceItemValue("$NoPurge",apptdoc.EndDateTime(0))
  6503.      apptdoc.SequenceNum = UpdateResponses(0).SequenceNum     
  6504.      apptdoc.OrgTable =  ORS_ITEM_CALENDAR
  6505.      Call MarkTempFields(apptdoc)
  6506.      Call apptdoc.Save(True,True,True)  
  6507. End Sub
  6508. '++LotusScript Development Environment:2:1:GetParentDocument:1:8
  6509. Function GetParentDocument() As Integer
  6510.      *this routine gets the parent document for a given note     
  6511. %END REM
  6512.      On Error Resume Next
  6513.      GetParentDocument = False
  6514.      
  6515.      Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  6516.      If (parentnote Is Nothing) Then
  6517. 'if this is a non-repeating note, see if we should re-create the document
  6518.           If Not(note.hasitem("OrgRepeat")) Then
  6519.                If (Msgbox("The appointment document has been deleted from your calendar, do you want to re-create it?",52) = 6) Then 
  6520.                     Call ResurrectParentDoc        
  6521.                     GetParentDocument =True
  6522.                     Exit Function
  6523.                Else
  6524.                     note.tmpNoParent = True
  6525.                     note.DoNotProcess = True
  6526.                     Exit Function
  6527.                End If                         
  6528.           Else
  6529. 'this is a repeating notice; see if the user is trying to process a response without processing the repeat parent
  6530.                If (note.HasItem("RepeatParentUNID")) Then 
  6531.                     Set parentnote = db.GetDocumentByUNID(note.RepeatParentUNID(0))
  6532.                     If (parentnote Is Nothing) Then
  6533. 'the repeat set has been deleted; see if the user wants to continue on by creating a non-repeat instance
  6534.                          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 
  6535.                               Call ResurrectParentDoc
  6536.                               GetParentDocument =True
  6537.                               Exit Function                            
  6538.                          Else
  6539.                               note.tmpNoParent = True
  6540.                               note.DoNotProcess = True
  6541.                               Exit Function
  6542.                          End If       
  6543.                     Else
  6544. 'the parent repeat set has not been deleted; see if it is an invitation
  6545.                          If (parentnote.NoticeType(0) = ORS_MSGTYPE_INVITE) Then
  6546.                               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"
  6547.                               OpenRepeatParent = True
  6548.                               Exit Function
  6549.                          Else
  6550. 'the parent repeat set has been processed; see if the user wants to recreate this as a non-repeating instance                                   
  6551.                               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 
  6552.                                    Call ResurrectParentDoc
  6553.                                    GetParentDocument =True
  6554.                                    Exit Function
  6555.                               Else
  6556.                                    note.tmpNoParent = True
  6557.                                    note.DoNotProcess = True
  6558.                                    Exit Function                                   
  6559.                               End If                                  
  6560.                          End If
  6561.                     End If
  6562.                End If                         
  6563.           End If 
  6564.      Else
  6565. 'we found the parent          
  6566.           GetParentDocument = True
  6567.      End If
  6568. End Function
  6569. 8    h     
  6570. O=Lotus Notes
  6571. O=Lotus Notes
  6572. PURSAFO
  6573. |.:#U
  6574. O=Lotus Notes
  6575. CN=Lotus Notes Template Development/O=Lotus Notes
  6576. PURSAFO
  6577. Fde!f^^
  6578. $ScriptLib
  6579. $ScriptLib_O
  6580. $TITLE
  6581. $Flags
  6582. $PublicAccess
  6583. '++LotusScript Development Environment:2:5:(Options):0:74
  6584. Option Public   
  6585. '++LotusScript Development Environment:2:5:(Forward):0:1
  6586. Declare Sub Initialize
  6587. Declare Sub InstantiateObjectVariables
  6588. Declare Sub GetCalendarOwner
  6589. Declare Sub MarkTempFields(doc As NotesDocument)
  6590. Declare Sub CreateDefaultCalendarProfile
  6591. Declare Sub wInitDefaultSettings
  6592. '++LotusScript Development Environment:2:5:(Declarations):0:10
  6593. 'Front end classes -> we declare these as variant so that backend server tasks will operate correctly
  6594. Dim ws As Variant
  6595. Dim uidoc As Variant
  6596. 'Back end classes
  6597. Dim session As NotesSession
  6598. Dim db As NotesDatabase
  6599. Dim note As NotesDocument
  6600. Dim profile As NotesDocument
  6601. Dim notice As NotesDocument
  6602. Dim parentnote As NotesDocument
  6603. Dim parent As NotesDocument
  6604. Dim child As NotesDocument
  6605. Dim documents As NotesDocumentCollection
  6606. Dim children As NotesDocumentCollection
  6607. Dim date1 As NotesDateTime
  6608. Dim date2 As NotesDateTime
  6609. Dim dateItem As NotesDateTime
  6610. Dim item As NotesItem
  6611. Dim NameLookup As NotesName
  6612. 'General Purpose classes
  6613. Dim Owner As String
  6614. Dim NewDocument As Integer
  6615. 'Client Differenciation
  6616. Dim IsWebClient As Variant
  6617. %INCLUDE "orgconst.lss"
  6618. %INCLUDE "lsconst.lss"
  6619. '++LotusScript Development Environment:2:2:Initialize:1:10
  6620. Sub Initialize
  6621.      
  6622. End Sub
  6623. '++LotusScript Development Environment:2:2:InstantiateObjectVariables:1:8
  6624. Sub InstantiateObjectVariables
  6625.      Set session = New NotesSession
  6626.      Set db = session.CurrentDatabase
  6627.      
  6628.      GetCalendarOwner
  6629.      
  6630.      If Typename(uidoc) <> "EMPTY" Then
  6631.           Set note = uidoc.Document
  6632.           uidoc.AutoReload  = False
  6633.      End If
  6634. End Sub
  6635. '++LotusScript Development Environment:2:2:GetCalendarOwner:1:8
  6636. Sub GetCalendarOwner
  6637.      
  6638.      On Error Resume Next
  6639.      
  6640.      If (profile Is Nothing) Then Set profile = db.GetProfileDocument("CalendarProfile")     
  6641.      If Err > 0 Then
  6642.           Err = 0     
  6643.           Call CreateDefaultCalendarProfile
  6644.      End If
  6645.      
  6646.      On Error Goto ErrorRoutine
  6647.      If profile.Owner(0) = "" Then Call CreateDefaultCalendarProfile
  6648.      
  6649.      Owner = profile.Owner(0)
  6650.      
  6651.      Exit Sub
  6652.      
  6653. ErrorRoutine:
  6654.      Messagebox Error & " (creating Calendar Profile)"
  6655.      Exit Sub
  6656. End Sub
  6657. '++LotusScript Development Environment:2:2:MarkTempFields:1:8
  6658. Sub MarkTempFields(doc As NotesDocument)
  6659. 'Mark all temporary and compute for display fields such that they will not be saved to disk     
  6660.      On Error Resume Next
  6661.      itemlist = doc.Items
  6662.      Forall n In itemlist
  6663.           If Lcase(Left(n.Name, 3)) = "tmp" Or Lcase(Left(n.Name, 4)) = "disp" Then n.SaveToDisk = False
  6664.      End Forall     
  6665.      
  6666.      If Not IsWebClient Then Exit Sub
  6667.      
  6668.      'remove web CGI variable so that they will get updated on the next doc read
  6669.      Call doc.RemoveItem("$$QueryOpenAgent")
  6670.      Call doc.RemoveItem("$$QuerySaveAgent")
  6671.      Call doc.RemoveItem("Path_Info")
  6672.      Call doc.RemoveItem("Query_String")
  6673.      
  6674.      'if the mail option fields are all default values, remove them
  6675.      If (doc.Importance(0) = "2" And doc.DeliveryPriority(0) = "N" And doc.DeliveryReport(0) = "B" And _
  6676.      doc.Form(0) <> "Task") Then
  6677.           Call doc.RemoveItem("Importance")
  6678.           Call doc.RemoveItem("DeliveryPriority")
  6679.           Call doc.RemoveItem("DeliveryReport")
  6680.      End If
  6681. End Sub
  6682. '++LotusScript Development Environment:2:2:CreateDefaultCalendarProfile:1:8
  6683. Sub CreateDefaultCalendarProfile
  6684.  *This routine creates a calendar profile document
  6685.   containg default values for required fields
  6686. %END REM
  6687.      
  6688. 'the global variable "profile" is a profile document already
  6689. 'we need to add the fields to it
  6690.      profile.Form = "CalendarProfile"
  6691.      Call profile.ComputeWithForm(False, False)
  6692.      
  6693.      If IsWebClient Then
  6694.           Call wInitDefaultSettings()
  6695.      Else
  6696.           Call profile.Save(True,True,True)
  6697.      End If
  6698. End Sub
  6699. '++LotusScript Development Environment:2:2:wInitDefaultSettings:1:8
  6700. Sub wInitDefaultSettings
  6701.      profile.wDefaultMailOpt = "2"
  6702.      profile.wEnableTrashIcon = "1"
  6703.      profile.wCalGridType = "3"
  6704.      
  6705.      profile.wEnableNABs = "0"
  6706.      profile.wEnableFavorites = "0"
  6707.      
  6708.      profile.wIsFolder1 = "1"
  6709.      profile.wIsFolder2 = "1"
  6710.      profile.wIsFolder3 = "1"
  6711.      profile.wIsFolder4 = "1"
  6712.      profile.wIsFolder5 = "1"
  6713.      profile.wIsFolder6 = "1"
  6714.      
  6715.      profile.NotesNab1 = "names.nsf"
  6716.      
  6717.      Call profile.Save(True,True,True)
  6718. End Sub
  6719. O=Lotus Notes
  6720. O=Lotus Notes
  6721. PURSAFO
  6722. |.:#U
  6723. O=Lotus Notes
  6724. CN=Lotus Notes Template Development/O=Lotus Notes
  6725. PURSAFO
  6726. Fde!f^^
  6727. $ScriptLib
  6728. $ScriptLib_O
  6729. $TITLE
  6730. $Flags
  6731. $PublicAccess
  6732. '++LotusScript Development Environment:2:5:(Options):0:74
  6733. Option Public
  6734. Use "ObjectVariables"
  6735. '++LotusScript Development Environment:2:5:(Forward):0:1
  6736. Declare Sub RepeatSave
  6737. Declare Sub RepeatClose
  6738. Declare Sub SaveOriginalValues
  6739. Declare Sub ModifyRecurring
  6740. Declare Sub CopyChanges
  6741. Declare Sub BuildRepeatDates
  6742. Declare Sub NextAdjustment(x, TargetWeek)
  6743. Declare Function ProcessThisDoc As Integer
  6744. Declare Sub GetModifiedSettings
  6745. '++LotusScript Development Environment:2:5:(Declarations):0:10
  6746. '------PROCESSING VARIABLES------
  6747. Dim tmpnote As NotesDocument
  6748. Dim repnote As NotesDocument
  6749. Dim timerange As NotesDateRange
  6750. Dim Action As String
  6751. Dim AdjustDays As Integer
  6752. Dim Adjustment As Integer
  6753. Dim ChangeWhich As String
  6754. Dim DateList() As Variant
  6755. Dim DayList() As Integer
  6756. Dim SaveValueList List As Variant
  6757. Dim tmpRepeatDates() As Variant
  6758. Dim tmpRepeatIds() As Variant
  6759. Dim WeekList() As Integer
  6760. Dim WeekNbr As Integer
  6761. Dim CancelChange As Integer
  6762. Dim InstancesCreated As Integer
  6763. Dim QueriedForChanges As Integer
  6764. '++LotusScript Development Environment:2:2:RepeatSave:1:8
  6765. Sub RepeatSave
  6766.      
  6767.      On Error Goto ErrorRoutine
  6768.      
  6769. 'note IS THE CURRENT DOCUMENT
  6770. 'repnote IS THE REPEAT INSTANCE
  6771. 'parent IS THE ULTIMATE PARENT     
  6772.      
  6773. 'if note is a response, check to see if it is a notice
  6774. 'if it is a notice then we need to find the parent     
  6775.      If note.IsResponse Then
  6776.           If note.Form(0) = "Notice" Then
  6777.                Set repnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  6778.           Else
  6779.                Set repnote = note
  6780.           End If
  6781.           If repnote Is Nothing Then Exit Sub
  6782.           Err = 0          
  6783.           On Error Resume Next
  6784.           Set parent = db.GetDocumentByUNID(repnote.ParentDocumentUNID)
  6785.           If Err = 0 Then
  6786.                On Error Goto ErrorRoutine
  6787.           Else
  6788.                Err = 0
  6789.                If parent Is Nothing Then Messagebox "This document's repeat parent has been deleted, "&_
  6790.                "therefore this calendar entry can no longer be processed as a repeating entry.", 0, "Repeat Parent Not Found"
  6791.                Exit Sub
  6792.           End If
  6793.      Else
  6794.           Set parent = note
  6795.      End If    
  6796.      
  6797.      If parent Is Nothing Then Exit Sub
  6798.      
  6799.      If (NewDocument Or Action = "Accept") And Not(InstancesCreated) Then
  6800. 'Build a list of all the dates this appointment will recur on (Accept already has the RepeatDates)               
  6801.           If NewDocument And note.RepeatUnit(0) <> "C" Then Call BuildRepeatDates
  6802. 'This doc becomes the parent of all of the repeat instances               
  6803. 'Mark all temporary and compute for display fields such that they will not be saved to disk     
  6804.           On Error Resume Next
  6805.           itemlist = parent.Items
  6806.           Forall n In itemlist
  6807.                If Lcase(Left(n.Name, 3)) = "tmp" Or Lcase(Left(n.Name, 4)) = "disp" Then n.SaveToDisk = False
  6808.           End Forall
  6809.           On Error Goto ErrorRoutine
  6810.           Set timerange = session.CreateDateRange
  6811. 'Get the duration
  6812.           Set date1 = New NotesDateTime(parent.StartDateTime(0))
  6813.           Set date2 = New NotesDateTime(parent.EndDateTime(0))
  6814.           Duration =date2.TimeDifference(date1) / 60
  6815. 'Get the original start time and use it to set the time
  6816.           Set date2 = New NotesDateTime(parent.StartDateTime(0))
  6817.           date2.SetAnyDate
  6818. 'If there is a $AlarmTime we need to create the correct alarm times for each instsance
  6819.           If parent.HasItem("$AlarmTime") Then
  6820.                AlarmTime = parent.GetItemValue("$AlarmTime")
  6821.                Dim alarmdate As New NotesDateTime(AlarmTime(0))
  6822.                AlarmDiff = alarmdate.TimeDifference(date1) / 60
  6823.           End If
  6824. 'Create a copy of this meeting for each of the repeatDates, these are all children of parent which we just created
  6825.           RepeatDates = parent.RepeatDates
  6826.           RepeatIds = parent.RepeatIds
  6827.           BusyName = Owner
  6828.           IdList = parent.RepeatIds
  6829.           If Ubound(RepeatDates) > Ubound(IdList) Then Redim Preserve IdList(Ubound(RepeatDates))
  6830.           x = 0
  6831.           Forall d In RepeatDates
  6832.                Print "Creating repeating appointments... (" & (x+1) & " out of " & (Ubound(RepeatDates)+1) & ")"
  6833.                Set repnote = New NotesDocument(db)
  6834.                Call parent.CopyAllItems(repnote)
  6835.                repnote.Form = "Appointment"
  6836.                If NewDocument Then
  6837.                     repnote.Chair = Owner
  6838.                Else
  6839.                     repnote.Chair = note.Chair 'in this case we are accepting an invite
  6840.                End If
  6841.                repnote.SequenceNum = 1
  6842. 'Store new date with original time (date2)
  6843.                Set date1 = New NotesDateTime(d & " " & date2.LocalTime)
  6844.                Call repnote.ReplaceItemValue("StartDateTime", date1)
  6845.                Call repnote.ReplaceItemValue("StartDate", date1)
  6846.                Call repnote.ReplaceItemValue("CalendarDateTime", date1)
  6847.                Call date1.AdjustMinute(Duration, True)
  6848.                Call repnote.ReplaceItemValue("EndDateTime", date1)
  6849.                Call repnote.ReplaceItemValue("$NoPurge", date1)
  6850.                Set timerange.StartDateTime = New NotesDateTime(d & " " & date2.LocalTime)               
  6851.                Set timerange.EndDateTime = date1
  6852.                Set repnote.TimeRange = timerange
  6853.                If repnote.HasItem("$AlarmTime") Then
  6854.                     Call date1.AdjustMinute(AlarmDiff, True)
  6855.                     Call repnote.ReplaceItemValue("$AlarmTime", date1)
  6856.                End If
  6857.                If repnote.HasItem("Invite") Or repnote.SendTo(0) <> "" Or repnote.CopyTo(0) <> "" Or Action = "Accept" Or NewDocument Then
  6858.                     repnote.RemoveItem("Invite") 
  6859.                     repnote.RemoveItem("SendTo") 
  6860.                     repnote.RemoveItem("CopyTo") 
  6861.                     If (repnote.Resources(0) <> "") Then repnote.RequiredResources = repnote.Resources
  6862.                     repnote.RemoveItem("Resources")
  6863.                     repnote.RemoveItem("RoomToReserve")
  6864.                     repnote.RemoveItem("$Signature")
  6865.                End If 
  6866. 'Remove all of the Repeat parameters - these are saved in the parent document               
  6867.                repnote.RemoveItem("RepeatUnit")               
  6868.                repnote.RemoveItem("RepeatDates")
  6869.                repnote.RemoveItem("RepeatIds")
  6870.                repnote.RemoveItem("RepeatAdjust")
  6871.                repnote.RemoveItem("RepeatFor")
  6872.                repnote.RemoveItem("RepeatForUnit")
  6873.                repnote.RemoveItem("RepeatHow")
  6874.                repnote.RemoveItem("RepeatInterval")
  6875.                repnote.RemoveItem("RepeatUntil")
  6876.                repnote.RemoveItem("RepeatWeekends")
  6877.                Call repnote.ReplaceItemValue("$BusyName", BusyName)
  6878.                Call repnote.MakeResponse(parent)
  6879.                Call repnote.ReplaceItemValue("$RefOptions", "1")
  6880.                If Action = "Accept" Then
  6881.                     repnote.UniversalId = RepeatIds(x)
  6882.                Else
  6883.                     IdList(x) = repnote.UniversalId
  6884.                End If
  6885.                repnote.save True, True, True
  6886.                If repnote.HasItem("$Alarm") Then Call repnote.PutInFolder("$Alarms")
  6887.                x = x + 1
  6888.           End Forall
  6889.           parent.RepeatIds = IdList
  6890.           parent.RemoveItem("CalendarDateTime")
  6891.           parent.RemoveItem("$BusyName")
  6892.           parent.RemoveItem("$BusyPriority")
  6893.           parent.Save True, True, True
  6894.           InstancesCreated = True          
  6895.      Else
  6896.           If note.IsResponse Then Call ModifyRecurring
  6897.      End If
  6898.      
  6899.      If Typename(uidoc) = "EMPTY" Then
  6900.           If Not(note Is Nothing) And Not(CancelChange) Then note.save True, True, True
  6901.      Elseif uidoc Is Nothing Then
  6902.           If Not(note Is Nothing) And Not(CancelChange) Then note.save True, True, True
  6903.      End If
  6904.      
  6905.      Exit Sub
  6906.      
  6907. ErrorRoutine:
  6908.      Messagebox Error & " (RepeatSave)"
  6909.      Exit Sub
  6910.      
  6911. End Sub
  6912. '++LotusScript Development Environment:2:2:RepeatClose:1:8
  6913. Sub RepeatClose
  6914.      
  6915.      On Error Goto ErrorRoutine
  6916.      
  6917.      If Action = "SaveBody" Then
  6918.           uidoc.Save
  6919.      Else
  6920.           ws.ViewRefresh
  6921.      End If
  6922.      
  6923.      Exit Sub
  6924.      
  6925. ErrorRoutine:
  6926.      Messagebox Error & " (RepeatQueryClose)"
  6927.      Exit Sub
  6928.      
  6929. End Sub
  6930. '++LotusScript Development Environment:2:2:SaveOriginalValues:1:8
  6931. Sub SaveOriginalValues
  6932.      On Error Goto ErrorRoutine
  6933. 'Save the current value of all fields in the repeat instance
  6934.      
  6935.      If note.Form(0) = "Notice" And note.IsResponse Then
  6936.           Set repnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  6937.      Else
  6938.           Set repnote = note
  6939.      End If
  6940.      
  6941.      If repnote Is Nothing Then Exit Sub
  6942.      
  6943.      Forall i In repnote.Items
  6944.           If (Left(i.name, 1) <> "$" And Lcase(Left(i.name, 3)) <> "tmp" And Lcase(Left(i.name, 3)) <> "disp") Or _
  6945.           (Mid(i.name, 2, 5) = "Alarm")  Then
  6946.                SaveValueList(i.Name) = i.Values
  6947.           End If
  6948.      End Forall
  6949.      
  6950.      Exit Sub
  6951.      
  6952. ErrorRoutine:
  6953.      Messagebox Error & " (SaveOriginalValues)"
  6954.      Exit Sub
  6955.      
  6956. End Sub
  6957. '++LotusScript Development Environment:2:2:ModifyRecurring:1:8
  6958. Sub ModifyRecurring
  6959.      
  6960.      On Error Goto ErrorRoutine
  6961.      
  6962.      If parent Is Nothing Then Exit Sub
  6963.      
  6964.      RepeatDates = parent.RepeatDates
  6965.      RepeatIds = parent.RepeatIds
  6966.      If RepeatDates(0) = "" Or RepeatIds(0) = "" Then Exit Sub
  6967.      
  6968. 'clear out these arrays because we'll be rebuilding them with only the remaining dates     
  6969.      If Action = "Delete" Then
  6970.           For d = 0 To Ubound(RepeatDates)
  6971.                RepeatDates(d) = ""
  6972.                RepeatIds(d) = ""
  6973.           Next
  6974.      End If
  6975.      
  6976.      Call GetModifiedSettings
  6977.      
  6978.      If ChangeWhich = "0" And Action <> "Delete" Then Exit Sub
  6979.      
  6980. 'Add any new items and their values.
  6981.      Forall i In repnote.Items
  6982.           If (Left(i.name, 1) <> "$" And Lcase(Left(i.name, 3)) <> "tmp" And Lcase(Left(i.name, 3)) <> "disp") Or _
  6983.           (Mid(i.name, 2, 5) = "Alarm")  Then
  6984.                ItemFound = False
  6985.                Forall s In SaveValueList
  6986.                     If i.Name = Listtag(s) Then
  6987.                          ItemFound = True
  6988.                          Exit Forall
  6989.                     End If
  6990.                End Forall
  6991.                If Not(ItemFound) Then SaveValueList(i.Name) = i.Values
  6992.           End If
  6993.      End Forall
  6994.      
  6995.      Set children = parent.Responses
  6996.      If children Is Nothing Then Exit Sub
  6997.      Set child = children.GetFirstDocument
  6998.      Set timerange = session.CreateDateRange
  6999.      x = 0
  7000.      y = 0
  7001.      While Not (child Is Nothing)
  7002.           If (child.Form(0) = "Appointment") Then
  7003.                If ProcessThisDoc Then
  7004.                     Select Case Action
  7005.                     Case "Delete"
  7006.                          Set tmpnote = children.GetNextDocument(child)
  7007.                          Call child.Remove(True)
  7008.                     Case "Cancel"
  7009.                          child.RemoveItem("CalendarDateTime")
  7010.                          Call child.ReplaceItemValue("$BusyPriority","2")     
  7011.                          child.NoticeType = ORS_MSGTYPE_CANCEL     
  7012.                          child.RemoveItem("OrgTable")
  7013.                          child.Save True, True, True
  7014.                     Case Else
  7015.                          If child.UniversalID <> repnote.UniversalID Then
  7016.                               Call CopyChanges
  7017.                               Set date1 = New NotesDateTime(child.StartDateTime(0))
  7018.                               Set date2 = New NotesDateTime(child.EndDateTime(0))
  7019.                               Set timerange.StartDateTime = date1
  7020.                               Set timerange.EndDateTime = date2
  7021.                               Set child.TimeRange = timerange
  7022.                               child.Save True, True, True
  7023.                          End If
  7024. 'these are reset so that we can post the new values on the parent (removing the values for deleted instances)                    
  7025.                          RepeatDates(x) = Datevalue(child.StartDateTime(0))
  7026.                          RepeatIds(x) = child.UniversalId
  7027. 'tmpRepeatDates are posted to a reschedule notice
  7028.                          Redim Preserve tmpRepeatDates(y)               
  7029.                          Redim Preserve tmpRepeatIds(y)               
  7030.                          tmpRepeatDates(y) = RepeatDates(x)
  7031.                          tmpRepeatIds(y) = RepeatIds(x)
  7032.                          y = y + 1
  7033.                          x = x + 1
  7034.                     End Select
  7035.                Else
  7036. 'we want to rebuild the RepeatDates and RepeatIds lists with only valid ones (if the doc is deleted its date and ID are removed)                                                       
  7037.                     RepeatDates(x) = Datevalue(child.StartDateTime(0))
  7038.                     RepeatIds(x) = child.UniversalId
  7039.                     x = x + 1
  7040.                End If
  7041.           End If
  7042. 'child will be nothing if we just removed it          
  7043.           If child Is Nothing Then
  7044.                Set child = tmpnote
  7045.           Else
  7046.                Set child = children.GetNextDocument(child)
  7047.           End If
  7048.      Wend
  7049.      
  7050.      If Action = "Delete" Then
  7051.           If ChangeWhich = "1" Then Call parent.Remove(True)
  7052.      Else
  7053.           repnote.tmpRepeatDates = tmpRepeatDates
  7054.           repnote.tmpRepeatIds = tmpRepeatIds
  7055.      End If
  7056.      
  7057.      If Not(parent Is Nothing) And RepeatDates(0) <> "" Then
  7058.           For r = 0 To Ubound(RepeatDates)
  7059.                If RepeatDates(r) = "" Then Exit For
  7060.           Next
  7061.           Redim Preserve RepeatDates(r-1)          
  7062.           Redim Preserve RepeatIds(r-1)          
  7063.           parent.RepeatDates = RepeatDates
  7064.           parent.RepeatIds = RepeatIds
  7065.           parent.save True, True, True   
  7066.      End If
  7067.      
  7068.      Exit Sub
  7069.      
  7070. ErrorRoutine:
  7071.      Messagebox Error & " (ModifyRecurring)"
  7072.      Exit Sub
  7073.      
  7074. End Sub
  7075. '++LotusScript Development Environment:2:2:CopyChanges:1:8
  7076. Sub CopyChanges
  7077.      Dim rtitem As NotesRichTextItem
  7078.      
  7079.      On Error Goto ErrorRoutine
  7080.      
  7081.      Forall OldValue In SaveValueList
  7082.           FieldName = Listtag(OldValue)
  7083.           NewValue = repnote.GetItemValue(FieldName)
  7084.           If FieldName = "Body" Then
  7085.                Set rtitem = repnote.GetFirstItem("body")
  7086.                Call child.RemoveItem("body")
  7087.                If Not(rtitem Is Nothing) Then Call rtitem.CopyItemToDocument(child,"body")
  7088.           Elseif Lcase(FieldName) = "statusupdate" Then
  7089. 'we don't want to do anything with this field                  
  7090.           Else
  7091.                If Cstr(NewValue(0)) <> Cstr(OldValue(0)) Then
  7092.                     Select Case Lcase(FieldName)
  7093. 'dates need to be adjusted (other things just get replaced)                        
  7094.                     Case "startdatetime", "calendardatetime", "enddatetime", "$alarmtime", "startdate"
  7095. 'date1 is old date                    
  7096.                          Set date1 = New NotesDateTime(Cstr(OldValue(0)))
  7097. 'date2 is new date                    
  7098.                          Set date2 = New NotesDateTime(Cstr(NewValue(0)))
  7099.                          TotalDif = date2.TimeDifference(date1)
  7100.                          AdjustDays = Fix(TotalDif / 86400)
  7101.                          SecDif = TotalDif Mod 86400
  7102.                          AdjustMin = Fix(SecDif / 60)
  7103.                          Set item = child.GetFirstItem(FieldName)
  7104.                          If Not(item Is Nothing) Then
  7105.                               Set dateItem = item.DateTimeValue
  7106.                               Call dateItem.AdjustDay(adjustDays, True)
  7107.                               Call dateItem.AdjustMinute(AdjustMin, True)
  7108.                               Call child.ReplaceItemValue(FieldName, dateItem)
  7109.                          End If
  7110.                     Case "sendto", "copyto", "resources", "requiredresources","statusupdate"
  7111.                          'we don't want to copy these fields
  7112.                     Case Else
  7113. 'The other fields can simply be copied over                    
  7114.                          Call child.ReplaceItemValue(FieldName, repnote.GetItemValue(FieldName))
  7115.                     End Select
  7116.                End If
  7117.           End If
  7118.      End Forall
  7119.      
  7120.      Exit Sub
  7121.      
  7122. ErrorRoutine:
  7123.      Messagebox Error & " (CopyChanges)"
  7124.      Exit Sub
  7125.      
  7126. End Sub
  7127. '++LotusScript Development Environment:2:2:BuildRepeatDates:1:8
  7128. Sub BuildRepeatDates
  7129.      
  7130. 'this only happens on a new doc so note = repnote = parent     
  7131.      
  7132.      On Error Goto ErrorRoutine
  7133.      
  7134. Assumes the following fields exist on the form:
  7135.    RepeatUnit - Daily(D), Weekly(W), MonthlyByDate(MD), MonthlyByDay(MP), Yearly(YD), Custom(C)
  7136.    RepeatInterval - 1, 2, 3.... for every, every other, every 3rd,...
  7137.    RepeatAdjust - if unit = W then 0, 1..6 representing days of the week
  7138.    StartDate
  7139.    RepeatHow - Until (U) or For (F)
  7140.    RepeatFor - a number of units
  7141.    RepeatForUnit - the unit used in RepeatFor (D, W, M, Y)
  7142.    RepeatUntil - a date
  7143.    RepeatWeekends - Don'tMove(D), MoveToFriday(F), MoveToMonday(M), MoveToNearestWeekday(N), Delete(X)
  7144. NOTE:  In some instances, we create an instance for StartDateTime then the number of occurances specified in RepeatFor.
  7145.    For example if StartDateTime is a Monday and you indicated that you wanted to repeat every Thursday for 5 weeks
  7146.    we create an instance for the Monday and 5 Thursdays.  But if you say you want to repeat every Thursday,
  7147.    and StartDateTime is the first of those Thursdays we need to subtract 1 from RepeatFor so we don't create an extra instance.
  7148. %ENDREM
  7149.      
  7150. 'Remove existing dates - replace with new item which we are about to populate
  7151.      If note.HasItem("RepeatDates") Then note.RemoveItem("RepeatDates")
  7152.      Set item = New NotesItem(note, "RepeatDates", Date)
  7153. 'setting RepeatStartDate = StartDateTime ensures that the start time will be accurare
  7154.      note.RepeatStartDate = note.StartDateTime     
  7155. 'date1 refers to RepeatStartDate.  date2 is used to generate the RepeatDates list          
  7156.      Set date1 = New NotesDateTime(note.RepeatStartDate(0))
  7157. 'This clears out any existing values     
  7158.      x = 1     
  7159.      Redim DateList(x)
  7160.      DateList(0) = date1.LSLocalTime
  7161.      TargetWeek = ""
  7162.      
  7163. 'Get the number of days to adjust by
  7164.      Select Case note.RepeatUnit(0)
  7165.      Case "D" '(Daily)
  7166.           Adjustment = Cint(note.RepeatInterval(0))
  7167.           Set date2 = New NotesDateTime(note.RepeatStartDate(0))
  7168.           Call date2.AdjustDay(Adjustment, True)
  7169.           If note.RepeatHow(0) = "F" Then note.RepeatFor = note.RepeatFor(0) - 1
  7170.           Gosub BuildDateList
  7171.      Case "W" '(Weekly)
  7172. 'Get day of the week of startdate (LotusScript counts the days as 1-7)
  7173.           FirstDay = Weekday(date1.LSLocalTime) - 1
  7174. 'If the start day is after the day we want the event to occur, adjust to next week
  7175.           RepeatAdjust = note.RepeatAdjust
  7176.           Redim DayList(Ubound(RepeatAdjust))
  7177.           Adjustment = Cint(note.RepeatInterval(0)) * 7
  7178.           For i = 0 To Ubound(RepeatAdjust)
  7179.                Set date2 = New NotesDateTime(note.RepeatStartDate(0))              
  7180.                DayList(i) = Cint(RepeatAdjust(i))              
  7181.                Select Case DayList(i)
  7182.                Case FirstDay
  7183.                     Call date2.AdjustDay(Adjustment, True)
  7184.                     If note.RepeatHow(0) = "F" Then note.RepeatFor = note.RepeatFor(0) - 1
  7185.                Case Is < FirstDay
  7186.                     Call date2.AdjustDay(7 - (FirstDay - DayList(i)), True)
  7187.                Case Is > FirstDay
  7188.                     Call date2.AdjustDay(DayList(i) - FirstDay, True)
  7189.                End Select
  7190.                Gosub BuildDateList
  7191.           Next
  7192.      Case "MD" '(Monthly by Date)
  7193.           FirstDay = Cint(Day(date1.LSLocalTime))
  7194.           RepeatAdjust = note.RepeatAdjust
  7195.           Redim DayList(Ubound(RepeatAdjust))
  7196.           Adjustment = Cint(note.RepeatInterval(0))
  7197.           For i = 0 To Ubound(DayList)
  7198.                Set date2 = New NotesDateTime(note.RepeatStartDate(0))
  7199.                DayList(i) = Cint(RepeatAdjust(i))
  7200.                Select Case DayList(i)
  7201.                Case FirstDay
  7202.                     Call date2.AdjustMonth(Adjustment, True)
  7203.                     If note.RepeatHow(0) = "F" Then note.RepeatFor = note.RepeatFor(0) - 1
  7204.                Case Is < FirstDay
  7205. 'adjust back to the correct day                    
  7206.                     Call date2.AdjustDay(-1*(FirstDay - DayList(i)), True)
  7207. 'adjust that day to next month
  7208.                     Call date2.AdjustMonth(Adjustment, True)
  7209.                Case Is > FirstDay
  7210.                     Call date2.AdjustDay(DayList(i) - FirstDay, True)
  7211.                End Select
  7212.                Gosub BuildDateList
  7213.           Next
  7214.      Case "MP" '(Monthly by Day)
  7215. 'Get day of the week of startdate (LotusScript counts the days as 1-7)
  7216.           FirstDay = Cint(Weekday(date1.LSLocalTime) - 1)
  7217. 'RepeatAdjust is stored as Week.Day          
  7218.           RepeatAdjust = note.RepeatAdjust
  7219.           Redim DayList(Ubound(RepeatAdjust))
  7220.           Redim WeekList(Ubound(RepeatAdjust))
  7221. 'Create 2 variant arrays, one for weeks and one for days          
  7222.           For t = 0 To Ubound(DayList)
  7223.                DayList(t) = Cint(Right(RepeatAdjust(t), 1))
  7224.                WeekList(t) = Cint(Left(RepeatAdjust(t), 1))
  7225.           Next
  7226.           Adjustment = Cint(note.RepeatInterval(0))
  7227.           For i = 0 To Ubound(RepeatAdjust)
  7228.                Set date2 = New NotesDateTime(note.RepeatStartDate(0))
  7229. 'Adjust to the appropriate day
  7230.                Select Case DayList(i)
  7231.                Case Is < FirstDay
  7232.                     Call date2.AdjustDay(7 - (FirstDay - DayList(i)), True)
  7233.                Case Is > FirstDay
  7234.                     Call date2.AdjustDay(DayList(i) - FirstDay, True)
  7235.                End Select
  7236. 'Get the week number this date is in
  7237.                If Day(date2.LSLocalTime) Mod 7 > 0 Then
  7238.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7) + 1
  7239.                Else
  7240.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7)
  7241.                End If 
  7242.                CurrentMonth = Month(date2.LSLocalTime)
  7243.                Do Until WeekNbr = WeekList(i)
  7244.                     Call date2.AdjustDay(7, True)
  7245.                     If Day(date2.LSLocalTime) Mod 7 > 0 Then
  7246.                          WeekNbr = Int(Day(date2.LSLocalTime) / 7) + 1
  7247.                     Else
  7248.                          WeekNbr = Int(Day(date2.LSLocalTime) / 7)
  7249.                     End If
  7250.                     If WeekList(i) = 5 And CurrentMonth <> Month(date2.LSLocalTime) Then
  7251.                          WeekNbr = 5
  7252.                          Call date2.AdjustDay(-7, True)
  7253.                     End If
  7254.                Loop
  7255.                TargetWeek = WeekList(i)
  7256.                Gosub BuildDateList
  7257.           Next
  7258.      Case "YD" '(Yearly)
  7259.           Adjustment = Cint(note.RepeatInterval(0))
  7260.           Set date2 = New NotesDateTime(note.RepeatStartDate(0))
  7261.           Call date2.AdjustYear(Adjustment, True)
  7262.           If note.RepeatHow(0) = "F" Then note.RepeatFor = note.RepeatFor(0) - 1
  7263.           Gosub BuildDateList
  7264.      Case "C"
  7265.      End Select
  7266.      
  7267.      x = Ubound(DateList)
  7268.      If DateList(x) = "" Then Redim Preserve DateList(x-1)
  7269.      note.RepeatDates = DateList
  7270.      Exit Sub
  7271.      
  7272. BuildDateList:
  7273.      
  7274. 'Set dateitem = the last repeat date     
  7275.      If note.RepeatHow(0) = "U" Then
  7276.           DatePortion = Evaluate("@Date(RepeatUntil)", note)
  7277.           TimePortion = Evaluate("@Time(StartDateTime)", note)
  7278.           Set dateItem = New NotesDateTime(DatePortion(0) & " " & TimePortion(0))
  7279. 'reset the time portion of RepeatUntil          
  7280.           Set note.RepeatUntil = dateItem
  7281.      Else
  7282.           Set dateitem = New NotesDateTime(note.RepeatStartDate(0))
  7283.           Select Case note.RepeatForUnit(0)
  7284.           Case "D"
  7285.                Call dateitem.AdjustDay(note.RepeatFor(0), True)
  7286.           Case "W"
  7287.                Call dateitem.AdjustDay(note.RepeatFor(0) * 7, True)
  7288.           Case "M"
  7289.                Call dateitem.AdjustMonth(note.RepeatFor(0), True)
  7290.           Case "Y"
  7291.                Call dateitem.AdjustYear(note.RepeatFor(0), True)
  7292.           End Select
  7293.      End If
  7294. 'dateitem is the until date and date2 is the date we're comparing it against
  7295. 'Add the correct number of days and add to the array
  7296.      Do While dateItem.TimeDifference(date2) => 0
  7297. 'D means do not move          
  7298.           If note.RepeatWeekends(0) <> "D" Then
  7299.                Do
  7300.                     WeekendDay = Weekday(date2.LSLocalTime)
  7301.                     If WeekendDay = 1 Or WeekendDay = 7 Then
  7302.                          Select Case note.RepeatWeekends(0)
  7303.                          Case "F"   'Move to Friday
  7304.                               If WeekendDay = 1 Then
  7305.                                    WeekendAdjust = 2
  7306.                               Else
  7307.                                    WeekendAdjust = 1
  7308.                               End If
  7309.                               Call date2.AdjustDay(-1*WeekendAdjust, True)
  7310. 'if the Friday is already on the list then add back the days you just subtracted, plus the normal adjustment                                   
  7311.                               If DateList(x-1) <> date2.LSLocalTime Then
  7312.                                    Redim Preserve DateList(x)
  7313.                                    DateList(x) = date2.LSLocalTime
  7314.                                    x = x + 1
  7315.                               End If
  7316.                               Call date2.AdjustDay(WeekendAdjust, True)
  7317.                               Call NextAdjustment(x, TargetWeek)
  7318.                          Case "M"   'Move to Monday
  7319.                               If WeekendDay = 1 Then
  7320.                                    WeekendAdjust = 1
  7321.                               Else
  7322.                                    WeekendAdjust = 2
  7323.                               End If
  7324.                               Call date2.AdjustDay(WeekendAdjust, True)
  7325. 'Add Monday to DateList
  7326.                               Redim Preserve DateList(x)
  7327.                               DateList(x) = date2.LSLocalTime
  7328.                               x = x + 1
  7329. 'Go back to the day you moved to Monday                              
  7330.                               Call date2.AdjustDay(-1 * WeekendAdjust, True)
  7331.                               Call NextAdjustment(x, TargetWeek)
  7332.                          Case "N"   'Move to the nearest weekday
  7333.                               If WeekendDay = 1 Then
  7334.                                    WeekendAdjust = 1
  7335.                               Else
  7336.                                    WeekendAdjust = -1
  7337.                               End If
  7338.                               Call date2.AdjustDay(WeekendAdjust, True)
  7339. 'Add the Friday or Monday to DateList
  7340.                               If DateList(x-1) <> date2.LSLocalTime Then
  7341.                                    Redim Preserve DateList(x)
  7342.                                    DateList(x) = date2.LSLocalTime
  7343.                                    x = x + 1
  7344.                               End If
  7345.                               Call date2.AdjustDay(-1 * WeekendAdjust, True)
  7346.                               Call NextAdjustment(x, TargetWeek)
  7347.                          Case "X"   'Delete (don't create an instance for that one)
  7348.                               Call NextAdjustment(x, TargetWeek)
  7349.                          End Select
  7350.                     End If
  7351.                     WeekendDay = Weekday(date2.LSLocalTime)
  7352.                Loop Until WeekendDay > 1 And WeekendDay < 7
  7353.           End If   'End of Weekend processing
  7354. 'The weekend adjustment might have adjusted us beyond the until date          
  7355.           If dateItem.TimeDifference(date2) => 0 Then
  7356.                Redim Preserve DateList(x)
  7357.                DateList(x) = date2.LSLocalTime
  7358.                If DateList(x) <> DateList(x-1) Then x = x + 1
  7359.                Call NextAdjustment(x, TargetWeek)
  7360.           End If
  7361.           Loop   'this Loops until we've reached the date when we want to stop repeating
  7362.           
  7363.           Return
  7364.           
  7365. ErrorRoutine:
  7366.           Messagebox Error & " (BuildRepeatDates)"
  7367.           Exit Sub
  7368.           
  7369. End Sub
  7370. '++LotusScript Development Environment:2:2:NextAdjustment:1:8
  7371. Sub NextAdjustment(x, TargetWeek)
  7372.      
  7373.      On Error Goto ErrorRoutine
  7374.      
  7375.      Select Case note.RepeatUnit(0)
  7376.      Case "D", "W"
  7377.           Call date2.AdjustDay(Adjustment, True)
  7378. 'If you already have one for that day adjust again                                   
  7379.           If DateList(x-1) = date2.LSLocalTime Then Call date2.AdjustDay(Adjustment, True)
  7380.      Case "MD"
  7381.           Call date2.AdjustMonth(Adjustment, True)
  7382.      Case "MP"
  7383.           CurrentMonth = Month(date2.LSLocalTime) + 1
  7384.           Do
  7385.                Call date2.AdjustDay(7, True)
  7386.                If Day(date2.LSLocalTime) Mod 7 > 0 Then
  7387.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7) + 1
  7388.                Else
  7389.                     WeekNbr = Int(Day(date2.LSLocalTime) / 7)
  7390.                End If
  7391.                If TargetWeek = 5 And CurrentMonth <> Month(date2.LSLocalTime) Then
  7392.                     WeekNbr = 5
  7393.                     Call date2.AdjustDay(-7, True)
  7394.                End If
  7395.           Loop Until WeekNbr = TargetWeek
  7396.      Case "YD"
  7397.           Call date2.AdjustYear(Adjustment, True)
  7398.      End Select
  7399.      
  7400.      Exit Sub
  7401.      
  7402. ErrorRoutine:
  7403.      Messagebox Error & " (NextAdjustment)"
  7404.      Exit Sub
  7405.      
  7406. End Sub
  7407. '++LotusScript Development Environment:2:1:ProcessThisDoc:1:8
  7408. Function ProcessThisDoc As Integer
  7409.      
  7410.      On Error Goto ErrorRoutine
  7411.      
  7412.      Select Case ChangeWhich
  7413.      Case "0"
  7414.           Gosub GetDates
  7415.           If date1.TimeDifference(date2) = 0 Then ProcessThisDoc = True
  7416.      Case "1"
  7417.           ProcessThisDoc = True
  7418.      Case "2"
  7419.           Gosub GetDates
  7420.           If date1.TimeDifference(date2) > 0 Then ProcessThisDoc = True
  7421.      Case "3"
  7422.           Gosub GetDates
  7423.           If date1.TimeDifference(date2) < 0 Then ProcessThisDoc = True
  7424.      End Select
  7425.      
  7426.      Exit Function
  7427.      
  7428. GetDates:
  7429. 'we don't want to get the dates unless we need to check them     
  7430.      If repnote.HasItem("OriginalStartDate") Then
  7431.           Set date1 = New NotesDateTime(repnote.OriginalStartDate(0))
  7432.      Else
  7433.           Set date1 = New NotesDateTime(repnote.StartDateTime(0))
  7434.      End If
  7435.      Set date2 = New NotesDateTime(child.StartDateTime(0))
  7436.      Return
  7437.      
  7438. ErrorRoutine:
  7439.      ProcessThisDoc = False
  7440.      Exit Function
  7441.      
  7442. End Function
  7443. '++LotusScript Development Environment:2:2:GetModifiedSettings:1:8
  7444. Sub GetModifiedSettings
  7445.      If repnote.HasItem("RescheduleWhich") Then
  7446.           ChangeWhich = repnote.RescheduleWhich(0)
  7447.      Else
  7448.           If (QueriedForChanges) Then Exit Sub
  7449.           CancelChange = False
  7450.           If Not ws.DialogBox("(ChangeRepeating)", True, True, False, False, False, False, "Change Repeating", repnote) Then
  7451.                CancelChange = True     
  7452.                QueriedForChanges = False
  7453.                Exit Sub
  7454.           Else
  7455.                ChangeWhich = repnote.ChangeWhich(0)
  7456.                repnote.tmpRescheduleWhich = ChangeWhich
  7457.                repnote.RemoveItem("ChangeWhich")
  7458.                QueriedForChanges = True
  7459.           End If
  7460.      End If
  7461. End Sub
  7462. ,    <    <    
  7463. Kd    -t    #8
  7464.     Kd    -
  7465. Kd    S<
  7466. Kd    Pp
  7467. Kd    -t    #8
  7468. Kd    -t    #
  7469.     Kd    -
  7470. Kd    , 
  7471. Kd    ,D
  7472. Kd    S<
  7473. Kd    PT
  7474. Kd    PT
  7475. Kd    PT
  7476. Kd    QP
  7477. Kd    S\
  7478. Kd    Sx
  7479. Kd    Sx
  7480. Kd    S<
  7481. O=Lotus Notes
  7482. O=Lotus Notes
  7483. PURSAFO
  7484. |.:#U
  7485. O=Lotus Notes
  7486. CN=Lotus Notes Template Development/O=Lotus Notes
  7487. PURSAFO
  7488. Fde!f^^
  7489. $ScriptLib
  7490. $ScriptLib_O
  7491. $TITLE
  7492. $Flags
  7493. $PublicAccess
  7494. 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#########
  7495. 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######################################################
  7496. 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 NotesDatabase Scriptt34Qt34Q
  7497. (web wFreeTime)wFreeTimeDC1
  7498. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################################
  7499. (web vt All)$$ViewTemplate for ($All)(web view template)CDn
  7500. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###############
  7501. (web vt Discussion Threads)$$ViewTemplate for Discussion Threads(web view template)CDn
  7502. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####
  7503. GpZ_QU
  7504. (web vt Drafts)$$ViewTemplate for ($Drafts)(web view template)CDn
  7505. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################
  7506. (web vt InBox)$$ViewTemplate for ($InBox)(web view template)CDn
  7507. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########################
  7508. (web vt Meetings)$$ViewTemplate for ($Meetings)(web view template)CDn
  7509. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################
  7510. ##########################################################
  7511. '++LotusScript Development Environment:2:5:(Options):0:74
  7512. Option Public 
  7513. Use "SharedWorkflowLibrary"
  7514. Use "RepeatProcessing" 
  7515. '++LotusScript Development Environment:2:5:(Forward):0:1
  7516. Declare Sub Initialize
  7517. Declare Sub RemoveResources(doc As NotesDocument)
  7518. Declare Sub SelectResourcesToRemove
  7519. Declare Sub ProcessRepeatingResources(ChangeWhich As String,NoticeType As String,ResourceType As String)
  7520. Declare Sub InviteResources(doc As NotesDocument)
  7521. Declare Sub InviteRoom(doc As NotesDocument)
  7522. Declare Sub RescheduleResources(ResourceType As String,doc As NotesDocument)
  7523. Declare Sub CancelResources(ResourceType As String,doc As NotesDocument)
  7524. Declare Sub ProcessOneRepeatResource(NoticeType As String,ResourceType As String,doc As NotesDocument)
  7525. '++LotusScript Development Environment:2:5:(Declarations):0:10
  7526. 'ResourceProcessing: 
  7527. '++LotusScript Development Environment:2:2:Initialize:1:10
  7528. Sub Initialize
  7529.      
  7530. End Sub
  7531. '++LotusScript Development Environment:2:2:RemoveResources:1:8
  7532. Sub RemoveResources(doc As NotesDocument)
  7533.     *This routine is called when resources need to be removed from a meeting
  7534.     *The doc parameter is the NotesDocument containing the resources that need to be removed
  7535.         - This allows us to pass in repeat instance documents 
  7536.     *This routine is not called for cancelling a meeting
  7537. %END REM
  7538.      
  7539. 'for each resource selected, send a cancel notice
  7540.      tmpResourcesRemoved = doc.tmpPeopleSelected
  7541.      If (tmpResourcesRemoved(0) <> "") Then 
  7542.           Forall Resources In tmpResourcesRemoved
  7543.                If (Cstr(Resources) = doc.Room(0)) Then 
  7544. 'this is a room
  7545.                     doc.Room = ""
  7546.                     doc.RoomRequired = ""
  7547.                     Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_ROOM,Cstr(Resources),doc)
  7548.                Else
  7549. 'this is a resource
  7550.                     Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_RESOURCE,Cstr(Resources),doc)      
  7551.                End If
  7552.                Call notice.Send(False)
  7553.           End Forall
  7554. 'update the resources field
  7555.           tmpUpdatedResources = Evaluate("@Replace(RequiredResources;tmpPeopleSelected;"""")",doc)
  7556.           doc.RequiredResources = tmpUpdatedResources
  7557.           Call MarkTempFields(doc)
  7558.           Call doc.Save(True,True,True)
  7559.      End If          
  7560. End Sub
  7561. '++LotusScript Development Environment:2:2:SelectResourcesToRemove:1:8
  7562. Sub SelectResourcesToRemove
  7563.     *This routine gets called whenever the user wants to remove a room/resource from a meeting
  7564.     *This routine displays a dialog box that allows the user to select which resources they want removed
  7565.     *After the user makes a selection, the RemoveResources routine is called to sent out notices
  7566. %END REM
  7567.      
  7568. 'build the list of resources to display in the dialog boc
  7569.      If(note.RoomRequired(0) = "1") And (note.Room(0) <> "") Then
  7570. 'if a room is required, then include the room
  7571.           tmpResourceList = Evaluate("@Trim(RequiredResources:Room)",note)
  7572.      Else
  7573.           tmpResourceList = Evaluate("@Trim(RequiredResources)",note)
  7574.      End If
  7575.      
  7576.      note.tmpPeopleList = tmpResourceList
  7577.      note.tmpheader = "Select the resources you want to remove:"
  7578.      
  7579.      If(ws.DialogBox("(PeopleListDlg)",True,True,False,False,False,False,"Remove Resources")) Then 
  7580.           If (note.HasItem("OrgRepeat")) Then Messagebox "The resources selected will be removed for the current repeat instance only.",0,"Status"
  7581. 'we can only remove resources from the current repeat instance
  7582.           Call RemoveResources(note)
  7583.           Call uidoc.Save
  7584.           Call MarkTempFields(note)
  7585.           Call note.Save(True,True,True)
  7586.      End If
  7587. End Sub
  7588. '++LotusScript Development Environment:2:2:ProcessRepeatingResources:1:8
  7589. Sub ProcessRepeatingResources(ChangeWhich As String,NoticeType As String,ResourceType As String)
  7590.     *This is the main processing logic for repeating meetings and resources
  7591.     *This routine is called once the user has performed some action (reschedule, cancel, invite)
  7592.      for a repeating meeting and has determined what repeat instances will be affected (Just this one, all, etc.)
  7593.     *This routine calls ProcessOneRepeatResource, which handles one repeat instance at a time, passing it the document
  7594.      object that represents the repeat instance and other parameters as well
  7595.     *Parameters 
  7596.         ChangeWhich is the repeat documents the user wants to modify (Just this one, all, etc.)
  7597.         NoticeType is the type of notice being sent
  7598.         ResourceType to determine if this is a room or a resource            
  7599. %END REM
  7600.      
  7601.      On Error Resume Next
  7602. 'determine which repeat instances to process
  7603.      Select Case ChangeWhich
  7604.      Case "0"
  7605. 'we only want to change this document
  7606.           Call ProcessOneRepeatResource(NoticeType,ResourceType,note)
  7607.      Case "1"
  7608. 'we want to change all instances
  7609.           Forall ids In parentnote.RepeatIds
  7610.                Set child = db.GetDocumentByUNID(Cstr(ids))
  7611.                If Not(child Is Nothing) Then Call ProcessOneRepeatResource(NoticeType,ResourceType,child)
  7612.           End Forall
  7613.      Case "2"
  7614. 'we want to invite all previous instances          
  7615.           Forall ids In parentnote.RepeatIds
  7616.                Set child = db.GetDocumentByUNID(Cstr(ids))               
  7617.                If Not(child Is Nothing) Then 
  7618.                     If (child.StartDateTime(0) <= note.StartDateTime(0)) Then Call ProcessOneRepeatResource(NoticeType,ResourceType,child)
  7619.                End If                    
  7620.           End Forall
  7621.      Case "3"
  7622. 'we want to invite all future instances          
  7623.           Forall ids In parentnote.RepeatIds
  7624.                Set child = db.GetDocumentByUNID(Cstr(ids))               
  7625.                If Not(child Is Nothing) Then 
  7626.                     If (child.StartDateTime(0) >= note.StartDateTime(0)) Then Call ProcessOneRepeatResource(NoticeType,ResourceType,child)
  7627.                End If                    
  7628.           End Forall
  7629.      End Select        
  7630. End Sub
  7631. '++LotusScript Development Environment:2:2:InviteResources:1:8
  7632. Sub InviteResources(doc As NotesDocument)
  7633.     *This routine gets  called whenever the user invites resources to a meeting
  7634.     *This routine is passed a document object for the meeting to be processed
  7635.      This allows us to handle repeating meetings
  7636.     *This function should only be called when the Resources item is not NULL
  7637.     *This function appends values in the Resources item to the RequiredResources item and
  7638.      sets the Resources item to NULL
  7639. %END REM
  7640.      
  7641.      tmpResourcesToInvite = doc.Resources
  7642.      tmpResourcesInvited = Evaluate("@Trim(RequiredResources)",doc)
  7643.      
  7644. 'make sure we have resources to process in case this function was accidentally called
  7645.      If (tmpResourcesToInvite(0) = "") Then Exit Sub
  7646. 'get the starting sequence of resources to be added to the array
  7647.      If (tmpResourcesInvited(0) = "") Then
  7648.           x = Ubound(tmpResourcesInvited)     
  7649.      Else
  7650.           x = Ubound(tmpResourcesInvited)+ 1     
  7651.      End If
  7652.      Redim Preserve tmpResourcesInvited(x + Ubound(tmpResourcesToInvite))
  7653.      
  7654.      Forall Resources In tmpResourcesToInvite
  7655.           Call CreateResourceNotice(ORS_MSGTYPE_INVITE,ORS_STATE_RESOURCE,Cstr(Resources),doc)          
  7656.           Call notice.Send(False)
  7657.           tmpResourcesInvited(x) = Resources
  7658.           x = x+1
  7659.      End Forall
  7660. 'update the required resources items
  7661.      doc.RequiredResources = tmpResourcesInvited     
  7662. 'remove the just invited resources
  7663.      doc.Resources = ""
  7664.      Call MarkTempFields(doc)
  7665.      Call doc.Save(True,True,True)
  7666. End Sub
  7667. '++LotusScript Development Environment:2:2:InviteRoom:1:8
  7668. Sub InviteRoom(doc As NotesDocument)
  7669.     *This routine gets  called whenever the user invites a room to a meeting
  7670.     *This routine is passed a document object for the meeting to be processed
  7671.      This allows us to handle repeating meetings
  7672.     *This function should only be called when the RoomToReserve item is not NULL
  7673.     *This function sets the RoomToReserve item to NULL
  7674. %END REM
  7675.      
  7676. 'make sure we have a room to process
  7677.      If (doc.Room(0) = "") Or Not(note.HasItem("Room")) Then Exit Sub
  7678. 'create the invitation
  7679.      Call CreateResourceNotice(ORS_MSGTYPE_INVITE,ORS_STATE_ROOM,doc.Room(0),doc)     
  7680.      doc.RoomToReserve = ""
  7681.      Call notice.Send(False)
  7682.      Call MarkTempFields(doc)
  7683.      Call doc.Save(True,True,True)
  7684. End Sub
  7685. '++LotusScript Development Environment:2:2:RescheduleResources:1:8
  7686. Sub RescheduleResources(ResourceType As String,doc As NotesDocument)
  7687.     *This routine is called whenever a room/resources need to be rescheduled due to a meeting change
  7688.     *The ResourceType determines whether we are rescheduling a room or a resource
  7689.     *The doc is the document object that is being rescheduled
  7690. %END REM
  7691.      
  7692.      Select Case ResourceType
  7693.      Case ORS_STATE_RESOURCE
  7694.           tmpResourcesInvited = doc.RequiredResources
  7695. 'if there are resources and this is a date change (we don't reschedule resources for room changes)
  7696.           If (tmpResourcesInvited(0) <> "") Then
  7697.                Forall Resources In tmpResourcesInvited
  7698.                     Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_RESOURCE,Cstr(Resources),doc)
  7699.                     Call notice.Send(False)
  7700.                End Forall
  7701.           End If                    
  7702.      Case ORS_STATE_ROOM
  7703.           If (doc.RoomRequired(0) = "1") And (doc.Room(0) <> "") Then
  7704.                Call CreateResourceNotice(ORS_MSGTYPE_RESCHEDULE,ORS_STATE_ROOM,doc.Room(0),doc)          
  7705.                Call notice.Send(False)     
  7706.           End If               
  7707.      End Select
  7708. End Sub
  7709. '++LotusScript Development Environment:2:2:CancelResources:1:8
  7710. Sub CancelResources(ResourceType As String,doc As NotesDocument)
  7711.     *This routine is called to whenver the user wants to cancel a meeting
  7712.     *The ResourceType determines whether we are rescheduling a room or a resource
  7713.     *The doc is the document object that is being cancelled
  7714. %END REM
  7715.      
  7716.      Select Case ResourceType
  7717.      Case ORS_STATE_RESOURCE
  7718.           tmpResourcesInvited = doc.RequiredResources
  7719.           If (tmpResourcesInvited(0) <> "") Then
  7720.                Forall Resources In tmpResourcesInvited
  7721.                     Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_RESOURCE,Cstr(Resources),doc)
  7722.                     Call notice.Send(False)
  7723.                End Forall
  7724.           End If
  7725.      Case ORS_STATE_ROOM
  7726.           If (doc.RoomRequired(0) = "1") And (doc.Room(0) <> "") Then
  7727.                Call CreateResourceNotice(ORS_MSGTYPE_CANCEL,ORS_STATE_ROOM,doc.Room(0),doc)          
  7728.                Call notice.Send(False)     
  7729.           End If               
  7730.      End Select
  7731. End Sub
  7732. '++LotusScript Development Environment:2:2:ProcessOneRepeatResource:1:8
  7733. Sub ProcessOneRepeatResource(NoticeType As String,ResourceType As String,doc As NotesDocument)
  7734.     *This routine is called from ProcessRepeatingResources to handle repeating meetings
  7735.     *This routine in turn calls other functions based upon the action the user is taking
  7736.     *Parameters
  7737.                 NoticeType is the type of notice being sent
  7738.                 ResourceType determines if this is a room or resrouce
  7739.                 doc is the document object representing the meeting to process
  7740. %END REM
  7741.      
  7742.      Select Case NoticeType
  7743.      Case ORS_MSGTYPE_INVITE
  7744. 'we are inviting a room/resources
  7745.           If (ResourceType = ORS_STATE_RESOURCE) Then
  7746.                Call InviteResources(doc)
  7747.           Else
  7748.                Call InviteRoom(doc)
  7749.           End If
  7750.      Case ORS_MSGTYPE_RESCHEDULE
  7751. 'the meeting is being rescheduled
  7752.           Call RescheduleResources(ResourceType,doc)
  7753.      Case ORS_MSGTYPE_CANCEL
  7754. 'the meeting is being cancelled
  7755.           Call CancelResources(ResourceType,doc)
  7756.      Case "Remove"
  7757. 'we are removing a room/resources from the meeting
  7758.           Call RemoveResources(doc)
  7759.      End Select
  7760. End Sub
  7761. Q\    JL    
  7762. RequiredResources
  7763. tmpPeopleSelected
  7764.     0S0E
  7765. RequiredResources
  7766.     0S0E
  7767. RequiredResources
  7768.     0S0E
  7769. RequiredResources
  7770.     0S0E
  7771. O=Lotus Notes
  7772. O=Lotus Notes
  7773. PURSAFO
  7774. |.:#U
  7775. O=Lotus Notes
  7776. CN=Lotus Notes Template Development/O=Lotus Notes
  7777. PURSAFO
  7778. Fde!f^^
  7779. 8kg2x
  7780. $ScriptLib
  7781. $ScriptLib_O
  7782. $TITLE
  7783. $Flags
  7784. $PublicAccess
  7785. '++LotusScript Development Environment:2:5:(Options):0:74
  7786. Option Public
  7787. %INCLUDE "lsconst.lss"
  7788. %INCLUDE "lsxbeerr.lss"
  7789. '++LotusScript Development Environment:2:5:(Forward):0:1
  7790. Declare Sub UpdateTasks
  7791. Declare Sub CheckDueDate
  7792. Declare Sub CheckStartDate
  7793. '++LotusScript Development Environment:2:5:(Declarations):0:10
  7794. Dim s As NotesSession
  7795. Dim db As NotesDatabase
  7796. Dim view As NotesView
  7797. Dim note As NotesDocument
  7798. Dim reply As NotesDocument
  7799. Dim responses As NotesDocumentCollection
  7800. Dim dt As NotesDateTime
  7801. Dim nextnote As NotesDocument
  7802. Dim DueDate As Variant
  7803. Dim StartDate As Variant
  7804. '++LotusScript Development Environment:2:2:UpdateTasks:1:8
  7805. Sub UpdateTasks
  7806.      
  7807.      Set dt = New NotesDateTime(Today)
  7808.      
  7809.      Set s = New NotesSession
  7810.      Set db = s.CurrentDatabase
  7811.      Set view = db.GetView("($ToDo)")
  7812.      
  7813.      On Error Resume Next
  7814.      
  7815.      Set note = view.GetFirstDocument
  7816.      If note Is Nothing Then Exit Sub
  7817.      Set nextnote = view.GetNextDocument(note)
  7818.      If nextnote.Form(0) <> "Task" Then
  7819.           Do
  7820.                Set nextnote = view.GetNextDocument(nextnote)
  7821.           Loop Until (nextnote.Form(0) = "Task") Or (nextnote Is Nothing)     
  7822.      End If
  7823.      
  7824.      Do
  7825.           If note.Form(0) = "Task" Then
  7826.                If note.AssignState(0) = 2 Then
  7827.                     DoneCount = 0         
  7828.                     Set responses = note.Responses
  7829.                     If responses.Count > 0 Then
  7830.                          For r = 1 To responses.Count
  7831.                               Set reply = responses.GetNthDocument(r)
  7832.                               DueState = reply.DueState
  7833.                               If Val(DueState(0)) = 9 Then DoneCount = DoneCount + 1
  7834.                          Next
  7835.                          AssignedTo = note.AssignedTo
  7836.                          If DoneCount = Ubound(AssignedTo)  + 1 Then
  7837.                               note.AssignState = 9
  7838.                               note.DueState = 9
  7839.                               Call note.ReplaceItemValue("_ViewIcon", 82)
  7840.                               note.CompletedDateTime = dt.LSLocalTime
  7841.                          End If
  7842.                     End If
  7843.                End If
  7844.                If note.AssignState(0) < 8 Then
  7845.                     DueDate = note.DueDateTime
  7846.                     StartDate = note.StartDateTime
  7847.                     If StartDate(0) = "" Then
  7848.                          If DueDate(0) = "" Then
  7849.                               note.DueState = 1
  7850.                          Else
  7851.                               CheckDueDate
  7852.                          End If
  7853.                     Else
  7854.                          CheckStartDate
  7855.                          DueState = note.DueState
  7856.                          If DueDate(0) <> "" And DueState(0) <> 2 Then CheckDueDate
  7857.                     End If
  7858.                End If
  7859.                note.Save True, True, True
  7860.           End If
  7861.           Set note = nextnote         
  7862.           Do
  7863.                Set nextnote = view.GetNextDocument(nextnote)
  7864.           Loop Until (nextnote.Form(0) = "Task") Or (nextnote Is Nothing)     
  7865.      Loop Until (Err = lsERR_NOTES_DOC_NOTINVIEW) Or (note Is Nothing)
  7866.      
  7867. End Sub
  7868. '++LotusScript Development Environment:2:2:CheckDueDate:1:8
  7869. Sub CheckDueDate
  7870.      
  7871. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  7872.      Set dt2 = New NotesDateTime(DueDate(0))
  7873.      If dt.TimeDifference(dt2) > 0 Then 
  7874.           note.DueState = 0
  7875.      Else
  7876.           note.DueState = 1
  7877.      End If
  7878.      
  7879. End Sub
  7880. '++LotusScript Development Environment:2:2:CheckStartDate:1:8
  7881. Sub CheckStartDate
  7882.      
  7883. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  7884.      Set dt2 = New NotesDateTime(StartDate(0))
  7885.      If dt.TimeDifference(dt2) < 0 Then 
  7886.           note.DueState = 2
  7887.      Else
  7888.           note.DueState = 1
  7889.      End If
  7890.      
  7891. End Sub
  7892. :`6`6
  7893. "(&04
  7894. "($|5
  7895. (#h%86
  7896. H$H%<8
  7897. h$h&x8
  7898. $H(X9
  7899. &h'`;
  7900. '(.<=
  7901. ('H'x=
  7902. ((h-H?
  7903. (H)@@
  7904. H)H*PA
  7905. )(+4B
  7906. )h+dB
  7907. h*H-@C
  7908. ,h,8F
  7909. (,H/tF
  7910. (.H.<J
  7911. .h/\K
  7912. /(1lM
  7913. H1h1LP
  7914. 2$7XR
  7915. 9x:x:
  7916. $747 S    
  7917. 9}|T#
  7918. [$7KP6,89#
  7919. 8KP6,h9G$7#
  7920. 8KP6,h9G
  7921. 7K$7-
  7922. ^h:4C
  7923. ^L:K47P\:
  7924. ^x:K$7P
  7925. K$7Q\:
  7926. 8K$7P
  7927. 8K$7P
  7928. K$7Q\:
  7929. ^L:K$7P\:
  7930. 8KP6,h9G
  7931. 8,8<J(<
  7932. K$7Q\:
  7933. K$7Q\:
  7934. 8,8<Jh<
  7935. K$7Q\:
  7936. K$7Q\:
  7937. O=Lotus Notes
  7938. O=Lotus Notes
  7939. PURSAFO
  7940. |.:#U
  7941. O=Lotus Notes
  7942. CN=Lotus Notes Template Development/O=Lotus Notes
  7943. PURSAFO
  7944. Fde!f^^
  7945. $ScriptLib
  7946. $ScriptLib_O
  7947. $TITLE
  7948. $Flags
  7949. $PublicAccess
  7950. '++LotusScript Development Environment:2:5:(Options):0:74
  7951. Option Public 
  7952. Use "ObjectVariables"     
  7953. '++LotusScript Development Environment:2:5:(Forward):0:1
  7954. Declare Type NoticeInfo
  7955. Declare Type InviteeTable
  7956. Declare Sub Initialize
  7957. Declare Sub UpdateOriginalInvitation (orgnote As NotesDocument)
  7958. Declare Function CheckIfConflictExists As Integer
  7959. Declare Sub AddInviteeComment
  7960. Declare Sub CreateNoticeDocument(Subject As String,NoticeType As String,ViewIcon As Integer,Mode As Integer)
  7961. Declare Function GetContext As Integer
  7962. Declare Sub ResurrectParentDoc
  7963. Declare Sub CreateResourceNotice(NoticeType As String,ResourceType As String,ResourceName As String,doc As NotesDocument)
  7964. Declare Function IsRemoved(KeyValue As String,UserType As String) As Integer
  7965. Declare Function ProcessConflict(othernote As NotesDocument) As Integer
  7966. Declare Function CheckProfileTimes(doc As NotesDocument) As Integer
  7967. Declare Function GetSubjectText(userDate As Variant) As String
  7968. Declare Function GetContextSub ( targetnote As NotesDocument ) As Integer
  7969. '++LotusScript Development Environment:2:5:(Declarations):0:10
  7970. Type NoticeInfo
  7971.      creationdate As Variant
  7972.      apptdate As Variant 'used by confirmation message
  7973.      appttime As Variant 'used by confirmation message
  7974.      sequencenum As Integer
  7975.      misc1 As String            'for invitee responses, this will be their name; for chair updates, this is the status
  7976.      action As String
  7977.      misc2 As String   'for invitee responses, this will be the delegees name; for chair updates, this is the document's unid   
  7978.      state As String     'for invitee responses, this will determine if a response is from a resource or not
  7979. End Type
  7980. Type InviteeTable
  7981.      CreationDate As Variant
  7982.      SequenceNum As Integer
  7983.      InviteeName As String
  7984.      Domain As String
  7985.      Status As String
  7986.      State As String
  7987.      Delegee As String
  7988.      KeepPosted As String
  7989. End Type
  7990. Dim OriginalRoom As String
  7991. Dim OriginalStartDate As Variant
  7992. Dim OriginalEndDate As Variant
  7993. Dim OriginalRequired As Variant
  7994. Dim OriginalOptional As Variant
  7995. Dim OriginalTimeRange As Variant
  7996. Dim OriginalType As String
  7997. Dim IsDateChange As Integer
  7998. Dim IsRoomChange As Integer
  7999. Dim OpenReschedule As Integer
  8000. Dim OpenRepeatParent As Integer
  8001. 'used by the noticeresponses and appointmentresponses libraries
  8002. Dim view As NotesView
  8003. Dim response As NotesDocument
  8004. Dim numResponses As Integer
  8005. Dim IsAgentProcessing As Integer
  8006. Const CS_INVITEE_INDEX = 10
  8007. Const ORG_STATUS_WAITING = "W"
  8008. '++LotusScript Development Environment:2:2:Initialize:1:10
  8009. Sub Initialize
  8010.      
  8011. End Sub
  8012. '++LotusScript Development Environment:2:2:UpdateOriginalInvitation:1:8
  8013. Sub UpdateOriginalInvitation (orgnote As NotesDocument)
  8014.     *This routine is called by several other routines to update a particular note (orgnote)
  8015.      whenever the user takes a specific action
  8016.     *Orgnote is the document object to be updated
  8017. %END REM
  8018.      
  8019.      On Error Goto ErrorRoutine
  8020.      
  8021.      If (orgnote Is Nothing) Then Exit Sub
  8022.      
  8023. 'the following are some changes we make regardless of the action being performed
  8024.      orgnote.StartDateTime = note.StartDateTime
  8025.      orgnote.EndDateTime = note.EndDateTime
  8026.      orgnote.Room = note.Room
  8027.      orgnote.StartDate = note.StartDate
  8028.      
  8029.      If IsWebClient Then 
  8030.           tmpFrom = notice.From
  8031.      Else
  8032.           tmpFrom = session.Username
  8033.           Call MarkTempFields(orgnote)
  8034.      End If
  8035.      
  8036.      Select Case note.tmpAction(0)
  8037.      Case "Accept","AddCalendar","PencilIn"
  8038. 'we are acceptring an invitation -> mark the document as an appointment
  8039.           orgnote.Form = "Appointment"
  8040.              Set trdr = session.CreateDateRange
  8041.              Set startdt = New NotesDateTime(note.StartDateTime(0))
  8042.              Set enddt = New NotesDateTime(note.EndDateTime(0))
  8043.              Set trdr.StartDateTime = startdt
  8044.              Set trdr.EndDateTime = enddt
  8045.              Set orgnote.TimeRange = trdr
  8046.           orgnote.CalendarDateTime = note.StartDateTime
  8047.           orgnote.StartDate = note.StartDate
  8048.           If (note.tmpAction(0) = "PencilIn") Then
  8049.                Call orgnote.ReplaceItemValue("$BusyPriority","2")
  8050.                orgnote.BookFreeTime = "1"
  8051.           Else            
  8052.                Call orgnote.ReplaceItemValue("$BusyPriority","1")
  8053.           End If
  8054.           orgnote.OrgTable = ORS_ITEM_CALENDAR
  8055.           orgnote.NoticeType = ORS_MSGTYPE_ACCEPT  
  8056.           Call orgnote.ReplaceItemValue("_ViewIcon",158)
  8057.           If Not(orgnote.HasItem("RepeatDates") And orgnote.HasItem("OrgRepeat")) Then Call orgnote.ReplaceItemValue("$BusyName",Owner)
  8058.           orgnote.Subject = note.Topic
  8059. 'check to see if we should automatically set an alarm
  8060.           If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") And (profile.SetAlarmAppointment(0) = "1") Then
  8061.                Call orgnote.ReplaceItemValue("$Alarm",1)
  8062.                Call orgnote.ReplaceItemValue("$AlarmDescription",note.Topic)
  8063.                Call orgnote.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  8064.                If Not(orgnote.HasItem("RepeatIds")) Then Call orgnote.PutInFolder("$Alarms")
  8065.           Else
  8066.                Call orgnote.RemoveItem("$Alarm")
  8067.                Call orgnote.RemoveItem("$AlarmDescription")
  8068.                Call orgnote.RemoveItem("$AlarmOffset")               
  8069.           End If
  8070. 'if the autoprocessing agent is running, then we need to remove some fields
  8071.           If (IsAgentProcessing) Then
  8072.                Call orgnote.RemoveItem("MailOptions")
  8073.                Call orgnote.RemoveItem("SendTo")
  8074.           End If
  8075. 'if the profile says we shouldn't double book, then update the OrgDontDoubleBook item
  8076.           If (profile.CheckMeeting(0) = "1") Then orgnote.OrgDontDoubleBook = "1"
  8077. 'if the profile says hide new entries from public viewing, then remove the $PublicAccess bit
  8078.           If (profile.CalEntryHide(0) = "1") Then Call orgnote.RemoveItem("$PublicAccess")
  8079.           Call orgnote.ReplaceItemValue("$NoPurge",orgnote.EndDateTime(0))
  8080. 'update the original invitation only if this is a response document
  8081.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  8082.           Call orgnote.Save(True,True,True)
  8083.      Case "Decline"
  8084.           orgnote.Form = "Notice"
  8085.           orgnote.Subject = "Appointment Declined - " & note.Topic(0)          
  8086.           Call orgnote.ReplaceItemValue("_ViewIcon",84)
  8087.           orgnote.NoticeType = ORS_MSGTYPE_REJECT
  8088.           orgnote.From = tmpFrom
  8089.           orgnote.Principal = Owner
  8090.           orgnote.OrgTable = ""
  8091. 'the invitee might have accepted, so remove the calendar and update busy items
  8092.           Call orgnote.RemoveItem("CalendarDateTime")
  8093.           Call orgnote.ReplaceItemValue("$BusyPriority","2")
  8094. 'update the original invitation only if this is a response document
  8095.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  8096.           Call orgnote.Save(True,True,True)        
  8097.      Case "Delegate"
  8098.           orgnote.Form = "Notice"
  8099.           orgnote.Subject = "Appointment Delegated - " & note.Topic(0)
  8100.           Call orgnote.ReplaceItemValue("_ViewIcon",84)
  8101.           orgnote.NoticeType = ORS_MSGTYPE_DELEGATING
  8102.           orgnote.From = tmpFrom
  8103.           orgnote.Principal = Owner
  8104.           orgnote.OrgTable = ""          
  8105.           Call orgnote.RemoveItem("OrgState")
  8106. 'the invitee might have accepted, so remove the calendar and update busy items
  8107.           Call orgnote.RemoveItem("CalendarDateTime")
  8108.           Call orgnote.ReplaceItemValue("$BusyPriority","2")
  8109. 'update the original invitation only if this is a response document
  8110.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  8111.           Call orgnote.Save(True,True,True)       
  8112.      Case "CounterPropose"
  8113.           orgnote.NoticeType = ORS_MSGTYPE_COUNTER
  8114.           orgnote.Subject = "Appointment Change Proposal - " & note.Topic(0)
  8115.           orgnote.From = tmpFrom
  8116.           orgnote.Principal = Owner
  8117.           orgnote.ProposalSent = True
  8118.           Call orgnote.ReplaceItemValue("_ViewIcon",39)
  8119. 'update the original invitation only if this is a response document
  8120.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  8121.           Call orgnote.Save(True,True,True)
  8122.      Case "AcceptCounterProposal"
  8123.           orgnote.StartDate = note.NewDate          
  8124.           Set trdr = session.CreateDateRange
  8125.           trdr.Text = uidoc.FieldGetText("NewTimeRange")
  8126.           
  8127.           Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  8128.           Set enddt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.EndDateTime.TimeOnly)
  8129.           
  8130.           Set orgnote.StartDateTime = startdt
  8131.           Set orgnote.EndDateTime = enddt
  8132.           Set orgnote.TimeRange = trdr
  8133.           If (note.NewRoom(0) <> "") Then orgnote.Room = note.NewRoom          
  8134.           orgnote.CalendarDateTime = orgnote.StartDateTime
  8135.           orgnote.SequenceNum = orgnote.SequenceNum(0) + 1
  8136.           Call orgnote.ReplaceItemValue("$NoPurge",orgnote.EndDateTime(0))
  8137.           Call orgnote.Save(True,True,True)
  8138.      End Select
  8139.      Exit Sub
  8140.      
  8141. ErrorRoutine:
  8142.      Messagebox Error & " (UpdateOriginalInvitation)"
  8143.      Exit Sub
  8144. End Sub
  8145. '++LotusScript Development Environment:2:1:CheckIfConflictExists:1:8
  8146. Function CheckIfConflictExists As Integer
  8147.     *This function is called only if the user specifies conflict warnings in the profile
  8148.     *This function can be called when creation or accepting meeting documents
  8149.     *The AutoProcessNotices agent ALWAYS calls this routine
  8150.     *This routine determines if a meeting time fits within the profile settings and is available 
  8151. %END REM
  8152.      Dim calentries As NotesDocumentCollection
  8153.      Dim localView As NotesView
  8154.      Dim othernote As NotesDocument     
  8155.      Dim tr As NotesDateRange
  8156.      Dim sdt As NotesDateTime
  8157.      Dim edt As NotesDateTime
  8158.      Dim intl As NotesInternational
  8159.      Dim nstartitem As NotesItem     'note startdatetime item
  8160.      Dim nenditem As NotesItem      'note enddatetime item
  8161.      Dim ostartitem As NotesItem      'othernote startdatetime item
  8162.      Dim oenditem As NotesItem      'othernote enddatetime item
  8163.      Dim nstartdt As NotesDateTime
  8164.      Dim nenddt As NotesDateTime
  8165.      Dim ostartdt As NotesDateTime
  8166.      Dim oenddt As NotesDateTime
  8167.      
  8168. 'first, check the profile settings -> if there is a conflict in the profile, then we don't need to check with existing appointments
  8169. 'we only do this check if the autoprocessing agent is running     
  8170.      If (IsAgentProcessing) Then     
  8171.           If(CheckProfileTimes(note)) Then
  8172.                CheckIfConflictExists  = True
  8173.                Exit Function
  8174.           End If
  8175.      End If
  8176.      
  8177.      On Error Goto ErrorRoutine
  8178.      Set localView = db.GetView("Calendar")
  8179.      Set intl = session.International     
  8180.      CheckIfConflictExists = False
  8181. 'get all of the documents that fit under the invited day
  8182. 'othernote refers to existing appointments          
  8183.      Set nstartitem = note.GetFirstItem("StartDateTime")
  8184.      Set nenditem = note.GetFirstItem("EndDateTime")     
  8185.      Set sdt = New NotesDateTime(nstartitem.DateTimeValue.DateOnly & " 00" & intl.TimeSep & "00" & intl.TimeSep & "01")
  8186.    'if this is an event, use the enddatetime date
  8187.      If (note.AppointmentType(0) = "2") Then
  8188.           Set edt = New NotesDateTime(nenditem.DateTimeValue.DateOnly & " 23" & intl.TimeSep & "59" & intl.TimeSep & "59")
  8189.      Else
  8190.           Set edt = New NotesDateTime(nstartitem.DateTimeValue.DateOnly & " 23" & intl.TimeSep & "59" & intl.TimeSep & "59")
  8191.      End If   
  8192.      Set tr = session.CreateDateRange
  8193.      Set tr.StartDateTime = sdt
  8194.      Set tr.EndDateTime = edt
  8195.      Set nstartdt = New NotesDateTime(sdt.DateOnly & " " & nstartitem.DateTimeValue.TimeOnly)
  8196.      Set nenddt = New NotesDateTime(sdt.DateOnly & " " & nenditem.DateTimeValue.TimeOnly)
  8197.      
  8198. 'if the agent is running, we should mark the OrgDontDoubleBook item on the note  
  8199.      If (IsAgentProcessing) Then note.OrgDontDoubleBook = "1"
  8200.      Set calentries = localView.GetAllDocumentsByKey(tr, False)
  8201.      
  8202.      Set othernote = calentries.GetFirstDocument
  8203.      Do While Not(othernote Is Nothing)      
  8204.           If (othernote.Form(0) <> "Task") Then
  8205.                Set ostartitem = othernote.GetFirstItem("StartDateTime")
  8206. check to see if 
  8207.        the invited StartDateTime falls between a scheduled appointment, 
  8208.        the invited EndDateTime falls between a scheduled appointment, 
  8209.        the invitation surrounds an existing appointment
  8210. 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               
  8211. %END REM
  8212.                Set oenditem = othernote.GetFirstItem("EndDateTime")
  8213.                
  8214. 'if the other document is not busy (i.e. is PencilledIn), then we don't need to check it         
  8215.                If (othernote.BookFreeTime(0) <> "1") Then        
  8216.                     If(ProcessConflict(othernote)) Then               
  8217. 'we need to instantiate the date/time objects correctly
  8218. 'othernote could be an event so the date portion of StartDateTime and EndDateTime are incorrect, but NIF return them to us
  8219.                          Set ostartdt = New NotesDateTime(nstartdt.DAteOnly & " " & ostartitem.DateTimeValue.TimeOnly)
  8220.                          Set oenddt = New NotesDateTime(nstartdt.DAteOnly & " " & oenditem.DateTimeValue.TimeOnly)
  8221.                          
  8222.                          If ((nstartdt.TimeDifference(ostartdt) >= 0) And (oenddt.TimeDifference(nstartdt) > 0 )) Or _
  8223.                          ((nenddt.TimeDifference(ostartdt) > 0) And (oenddt.TimeDifference(nenddt) >= 0 )) Or _
  8224.                          ((ostartdt.TimeDifference(nstartdt) >= 0) And (nenddt.TimeDifference(oenddt) > 0 )) Then
  8225. 'if the autoprocessing agent is running, simply return
  8226.                               If (IsAgentProcessing) Then
  8227.                                    CheckIfConflictExists = True
  8228.                                    Exit Do
  8229.                               End If
  8230.                               If (note.Form(0) = "Appointment") Then
  8231.                                    MessageText$ = "Do you want to schedule this appointment anyway?"
  8232.                               Else
  8233.                                    MessageText$ = "Do you want to Accept anyway?"
  8234.                               End If
  8235.                               If Messagebox("There is already an appointment in this time slot. " & MessageText$, _
  8236.                               MB_YESNO, "Conflict") = IDNO Then 
  8237.                                    CheckIfConflictExists = True
  8238.                                    Exit Do                                                           'we exit so that we don't waste time iterating through the view
  8239.                               Else
  8240.                                    Exit Do                                                           'we exit so that we don't waste time iterating through the view
  8241.                               End If
  8242.                          End If
  8243.                     End If
  8244.                End If
  8245.           End If
  8246.           Set othernote = calentries.GetNextDocument(othernote)
  8247.      Loop     
  8248.      Exit Function
  8249.      
  8250. ErrorRoutine:
  8251.      Messagebox Error & " (CheckIfConflictExists)"
  8252.      Exit Function
  8253. End Function
  8254. '++LotusScript Development Environment:2:2:AddInviteeComment:1:8
  8255. Sub AddInviteeComment
  8256.     *This routine is called to include invitee's comments
  8257. %END REM
  8258.      
  8259.      notice.IncludeComment = "1"
  8260.      notice.Comments = note.Comments
  8261. End Sub
  8262. '++LotusScript Development Environment:2:2:CreateNoticeDocument:1:8
  8263. Sub CreateNoticeDocument(Subject As String,NoticeType As String,ViewIcon As Integer,Mode As Integer)
  8264.     *This routine creates the outgoing notice document, either from the chair to the invitee's 
  8265.      or from an invitee to a chair
  8266.     *This routine adds standard fields to the notice regardless of the type of notice
  8267.     *Parameters
  8268.                 Subject -> value of subject item
  8269.                 NoticeType -> type of notice being sent
  8270.                 ViewIcon -> icon to display in view
  8271.                 Mode -> 1 = chair is sending, 2 = invitee is sending
  8272. %END REM
  8273.      
  8274.      Dim ChairItem As NotesItem   
  8275.      Dim dummydoc As NotesDocument
  8276.      
  8277. 'create the notice object     
  8278.      Set notice = New NotesDocument(db)
  8279. 'determine the context of the current note
  8280.      Context = GetContext
  8281.      Select Case Context
  8282.      Case 1,3
  8283. '1 = non-repeat notice, 3 = repeat notice -> make the notice doc a response to the parentnote
  8284.           If(note.HasItem("ApptUNID")) Then
  8285.                If(note.ApptUNID(0) <> parentnote.UniversalID) Then
  8286.                     Set dummydoc = New NotesDocument(db)
  8287.                     dummydoc.UniversalID = note.ApptUNID(0)
  8288.                     Call notice.MakeResponse(dummydoc)
  8289.                     notice.ApptUNID = note.ApptUNID                    
  8290.                Else                    
  8291.                     Call notice.MakeResponse(parentnote)
  8292.                     notice.ApptUNID = parentnote.UniversalID                    
  8293.                End If
  8294.           Else
  8295.                Call notice.MakeResponse(parentnote)    
  8296.                notice.ApptUNID = parentnote.UniversalID                                   
  8297.           End If
  8298.      Case 2,4
  8299. '2 = repeat instance, 4 = non-repeat instance -> make the notice doc a response to the current note
  8300.           If(note.HasItem("ApptUNID")) Then
  8301.                If(note.ApptUNID(0) <> note.UniversalID) Then
  8302.                     Set dummydoc = New NotesDocument(db)
  8303.                     dummydoc.UniversalID = note.ApptUNID(0)
  8304.                     Call notice.MakeResponse(dummydoc)
  8305.                     notice.ApptUNID = note.ApptUNID                    
  8306.                Else                    
  8307.                     Call notice.MakeResponse(note)
  8308.                     notice.ApptUNID = note.UniversalID                    
  8309.                End If
  8310.           Else
  8311.                Call notice.MakeResponse(note)               
  8312.                notice.ApptUNID = note.UniversalID                   
  8313.           End If
  8314.      End Select
  8315.      
  8316.      Call notice.ReplaceItemValue("$RefOptions","1")
  8317. 'add default items regardless of notice type
  8318.      notice.Form = "Notice"
  8319.      notice.StartDate = note.StartDate
  8320.      notice.StartDateTime = note.StartDateTime
  8321.      notice.EndDateTime = note.EndDateTime
  8322.      notice.AppointmentType = "3"
  8323.      notice.SequenceNum = note.SequenceNum(0)
  8324.      notice.ExcludeFromView = "D"
  8325.      notice.Room = note.Room     
  8326.      notice.Principal = Owner
  8327.      notice.NoticeType = NoticeType
  8328.      notice.Broadcast = note.Broadcast
  8329. 'add the required attendees -> we need to know what context the current document is in
  8330. 'this is because non-repeat notices, repeat notices, and non-repeat appointments have this information
  8331. 'repeat instances need to get this info from their parent
  8332.      Select Case Context
  8333.      Case 1,3,4
  8334. '1 = non-repeat notice,3 = repeat notice,4 = non-repeat instance -> get the values from the current note
  8335.           notice.RequiredAttendees = note.RequiredAttendees
  8336.           notice.OptionalAttendees = note.OptionalAttendees
  8337.      Case 2
  8338. 'the repeat instance document does not have this information -> get it from the parent
  8339.           notice.RequiredAttendees = parentnote.RequiredAttendees
  8340.           notice.OptionalAttendees = parentnote.OptionalAttendees
  8341.      End Select
  8342.      Call notice.ReplaceItemValue("_ViewIcon",ViewIcon)
  8343.      If (note.HasItem("$PublicAccess")) Then Call notice.ReplaceItemValue("$PublicAccess","1")
  8344.      If note.HasItem("tmpRescheduleWhich") Then 
  8345.           If (NoticeType = ORS_MSGTYPE_STATUSUPDATE) Then
  8346.                notice.RescheduleWhich = "0" 'just this one
  8347.           Else
  8348.                notice.RescheduleWhich = note.tmpRescheduleWhich
  8349.           End If
  8350.      End If
  8351.      If (note.HasItem("OrgRepeat")) Then 
  8352.           notice.OrgRepeat = True
  8353.           notice.Broadcast = "1"
  8354.           notice.OriginalStartDate = OriginalStartDate
  8355.           notice.RepeatParentUNID = note.ParentDocumentUNID
  8356.      End If
  8357. 'add computed items
  8358.      If (mode = 1) Then
  8359. 'we are the chair sending this out
  8360.           notice.Topic = note.Subject
  8361.           Set startitem = note.GetFirstItem("StartDateTime")
  8362.           If (note.Room(0) <> "") Then               
  8363.                notice.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  8364.           Else
  8365.                notice.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  8366.           End If
  8367.           notice.Chair = Owner
  8368. 'for 4.51+, we only include the body field if the chair is sending the notice          
  8369.           If (note.HasItem("Body")) Then
  8370.                Set ChairItem = note.GetFirstItem("Body")     
  8371.                Call notice.CopyItem(ChairItem,"Body")
  8372.           End If          
  8373. 'we do not add the send to for chairs; this is upto the calling function
  8374.      Else
  8375. 'we are the invitee sending this out
  8376.           notice.Topic = note.Topic
  8377.           notice.Subject = Subject & " " & note.Topic(0)
  8378.           notice.Chair = note.Chair
  8379.           'if this is a delegation notice, include the body
  8380.           If (NoticeType = ORS_MSGTYPE_DELEGATE) Then
  8381.                If (note.HasItem("Body")) Then
  8382.                     Set ChairItem = note.GetFirstItem("Body")     
  8383.                     Call notice.CopyItem(ChairItem,"Body")
  8384.                End If
  8385.           End If          
  8386.      End If
  8387. End Sub
  8388. '++LotusScript Development Environment:2:1:GetContext:1:8
  8389. Function GetContext As Integer
  8390.      GetContext = GetContextSub (note)
  8391. End Function
  8392. '++LotusScript Development Environment:2:2:ResurrectParentDoc:1:8
  8393. Sub ResurrectParentDoc
  8394.     *This routine is called whenever a child document is opened and the parentnote cannot be found
  8395.     *This routine creates a parent document and uses the child document for certain info
  8396. %END REM
  8397.      Dim body As NotesItem
  8398.      
  8399.      Set parentnote = New NotesDocument(db)
  8400.      
  8401.      If (note.HasItem("Body")) Then
  8402.                 Set body = note.GetFirstItem("Body")
  8403.           Call parentnote.CopyItem(body,"Body")
  8404.      End If
  8405. 'add standard fields     
  8406.      parentnote.UniversalID = note.ParentDocumentUNID     
  8407.      parentnote.StartDate = note.StartDate
  8408.      parentnote.StartDateTime = note.StartDateTime
  8409.      parentnote.EndDateTime = note.EndDateTime
  8410.      parentnote.AppointmentType = "3"
  8411.      parentnote.Chair = note.Chair
  8412.      parentnote.RequiredAttendees = note.RequiredAttendees
  8413.      parentnote.OptionalAttendees = note.OptionalAttendees
  8414.      parentnote.Room = note.Room
  8415.      parentnote.ExcludeFromView = "D"
  8416.      parentnote.SequenceNum = note.SequenceNum
  8417.      parentnote.Subject = note.Topic
  8418.      parentnote.Topic = note.Topic
  8419.      parentnote.Principal = note.Chair
  8420.      parentnote.Form = "Appointment"
  8421.      parentnote.From = note.From
  8422.      parentnote.NoticeType = ORS_MSGTYPE_ACCEPT
  8423.      Call parentnote.ReplaceItemValue("$BusyName",Owner)
  8424.      Call parentnote.ReplaceItemValue("$BusyPriority","1")
  8425.      Call parentnote.ReplaceItemValue("$NoPurge",parentnote.EndDateTime(0))
  8426.      Call parentnote.ReplaceItemValue("$ExpandGroups","3")
  8427.      Call parentnote.ReplaceItemValue("$PublicAccess","1")
  8428.      Call parentnote.ReplaceItemValue("_ViewIcon",158)
  8429.      Set sdt = New NotesDateTime(parentnote.StartDateTime(0))
  8430.      Set edt = New NotesDateTime(parentnote.EndDateTime(0))
  8431.      Set tr = session.CreateDateRange
  8432.      Set tr.StartDateTime = sdt
  8433.      Set tr.EndDateTime = edt
  8434.      Set parentnote.TimeRange = tr
  8435.      parentnote.PostedDate = parentnote.StartDateTime
  8436.      parentnote.CalendarDateTime = parentnote.StartDateTime
  8437.      parentnote.BookFreeTime = "0"
  8438.      parentnote.OrgTable = ORS_ITEM_CALENDAR
  8439.      
  8440.      If (note.HasItem("FromDomain")) Then parentnote.FromDomain = note.FromDomain
  8441.      
  8442.      Call MarkTempFields(parentnote)
  8443.      Call parentnote.Save(True,True,True)
  8444.      Call parentnote.RemoveFromFolder("($Inbox)")
  8445. End Sub
  8446. '++LotusScript Development Environment:2:2:CreateResourceNotice:1:8
  8447. Sub CreateResourceNotice(NoticeType As String,ResourceType As String,ResourceName As String,doc As NotesDocument)
  8448.     *This routine is called to create a notice document for rooms/resources
  8449.     *Paramaters
  8450.                 NoticeType is the type of notice being sent
  8451.                 ResourceType is the type of resource we sending the notice to
  8452.                 ResourceName is the name of the resource we are mailing to (in Abbreviated format)
  8453.                 doc is the document that contains values we want to copy from to include on the notice (useful for repeats!)
  8454. %END REM     
  8455.      
  8456.      Set notice = New NotesDocument(db)
  8457.      
  8458.      notice.Form = "Notice"
  8459.      notice.StartDate = doc.StartDate
  8460.      notice.StartDateTime = doc.StartDateTime
  8461.      notice.EndDateTime = doc.EndDateTime
  8462.      notice.TimeRange = doc.TimeRange
  8463.      notice.Principal = Owner
  8464.      notice.Chair = Owner
  8465. 'get the context of the current note
  8466.      context = GetContext
  8467.      Select Case context
  8468.      Case 1,3:
  8469. '1 = non-repeat notice,3 = repeat notice -> use parentnote values
  8470.           notice.ApptUNID = parentnote.UniversalId
  8471.           notice.SequenceNum = parentnote.SequenceNum(0)
  8472.      Case 2,4
  8473. '2 = repeat instance, 4 = non-repeat instance -> use the document passed in
  8474.           notice.ApptUNID = doc.UniversalID
  8475.           If Not(doc.HasItem("SequenceNum")) Then doc.SequenceNum = 1
  8476.           notice.SequenceNum = doc.SequenceNum(0)               
  8477.      End Select
  8478.      notice.NoticeType = NoticeType
  8479.      notice.OrgState = ResourceType
  8480.      notice.SendTo = ResourceName         
  8481.      notice.ResourceName = ResourceName
  8482.      notice.Topic = doc.Subject
  8483.      If (doc.HasItem("$PublicAccess")) Then Call notice.ReplaceItemValue("$PublicAccess","1")
  8484. 'if this is a room, add the capacity
  8485.      If (ResourceType = ORS_STATE_ROOM) Then 
  8486.           notice.Capacity = Evaluate("@Elements(@Trim(RequiredAttendees:OptionalAttendees:Chair))",doc)
  8487.           If (doc.HasItem("OriginalRoom")) Then notice.OriginalRoom = doc.OriginalRoom
  8488.      End If
  8489. 'if this is a notice for a repeat set, add the necessary items
  8490.      If (doc.HasItem("RepeatDates")) Then
  8491.           notice.RepeatDates = doc.RepeatDates
  8492.           notice.RepeatIds = doc.RepeatIds
  8493.      Else
  8494.           If (doc.HasItem("OrgRepeat")) Then notice.OrgRepeat = True          
  8495.      End If
  8496. End Sub
  8497. '++LotusScript Development Environment:2:1:IsRemoved:1:8
  8498. Function IsRemoved(KeyValue As String,UserType As String) As Integer
  8499.     *This function is used to determine if a user/resource has been uninvited from a meeting
  8500.  *This function is used to determine if a resource/room should not be displayed in the Invitee Responses dialog
  8501. %END REM
  8502.      
  8503.      Dim index As Integer
  8504.      Dim keyname As New NotesName(KeyValue)
  8505.      Dim lookupname As NotesName
  8506.      
  8507.      IsRemoved = False
  8508.      
  8509.      Select Case UserType
  8510.      Case ORS_STATE_RESOURCE
  8511. 'this is a resource, look to see if this resource is in the RequiredResources field; if it isn't, it was uninvited
  8512.           tmpResourcesInvited = note.RequiredResources
  8513.           index = 0
  8514.           Do While (index <= Ubound(tmpResourcesInvited))
  8515.                Set lookupname = New NotesName(tmpResourcesInvited(index)) 
  8516.                If (Lcase(keyname.Canonical) = Lcase(lookupname.Canonical)) Then Exit Function
  8517.                index = index + 1
  8518.           Loop
  8519. 'if we got this far, then we didn't find the resource, it was removed
  8520.           IsRemoved = True
  8521.      Case ORS_STATE_ROOM
  8522. 'this is a room; see if it matches the value in the room field
  8523.           Set lookupname = New NotesName(note.Room(0))
  8524.           
  8525.           If (Lcase(keyname.CAnonical) <> Lcase(lookupname.Canonical)) Then IsRemoved = True
  8526.      Case Else
  8527.           tmpPeopleUninvited = note.Uninvited
  8528.           index = 0
  8529.           Do While (index <= Ubound(tmpPeopleUninvited))
  8530.                Set lookupname = New Notesname(tmpPeopleUninvited(index))               
  8531.                If (Lcase(keyname.Canonical) = Lcase(lookupname.Canonical)) Then 
  8532.                     IsRemoved = True                    
  8533.                     Exit Function
  8534.                End If
  8535.                index = index + 1
  8536.           Loop   
  8537.      End Select
  8538. End Function
  8539. '++LotusScript Development Environment:2:1:ProcessConflict:1:8
  8540. Function ProcessConflict(othernote As NotesDocument) As Integer
  8541.     *This routine is called from CheckIfConflictExists to see if the document
  8542.      we are comparing to can be processed
  8543. %END REM
  8544.      
  8545. 'default the return to False since this is what we are really checking for    
  8546.      ProcessConflict = False
  8547. 'if the two documents we are comparing are the same, then do not check for conflicts     
  8548.      If (note.UniversalID = othernote.UniversalID) Then Exit Function
  8549.      
  8550. 'if this is a reschedule, we need to check a few things     
  8551.      If (note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then
  8552. 'first, if the reschedule notice is being compared to its parent, do not check for conflicts
  8553.           If(note.ParentDocumentUNID = othernote.UniversalID) Then 
  8554.                Exit Function
  8555.           Else               
  8556. 'if we are not comparing ourselves to the parent, then check to see if only the room is changing
  8557. 'if the room is the only thing that is changing, then we don't check for conflicts
  8558.                If ((note.StartDateTime(0) = parentnote.StartDateTime(0)) And (note.EndDateTime(0) = parentnote.EndDateTime(0))) Then Exit Function 
  8559.           End If
  8560.      End If
  8561. 'since we made it this far, we can check for conflicts
  8562.      ProcessConflict = True
  8563. End Function
  8564. '++LotusScript Development Environment:2:1:CheckProfileTimes:1:8
  8565. Function CheckProfileTimes(doc As NotesDocument) As Integer
  8566.     *This function is call by CheckIfConflictExists
  8567.     *It compares the times of doc to the profile to make sure the times are within the profile settings
  8568.     *This function returns true if the time is not within the defined profile times
  8569. %END REM
  8570.      Dim dstartitem As NotesItem
  8571.      Dim denditem As NotesItem
  8572.      
  8573.      CheckProfileTimes = True
  8574.      
  8575.      Set dstartitem = doc.GetFirstItem("StartDateTime")
  8576.      
  8577.      Select Case Weekday(doc.StartDateTime(0))
  8578.      Case 1
  8579. 'sunday
  8580.           If (profile.Sunday(0) <> "1") Then Exit Function                     'this day is not selected in the profile
  8581.           ValidTimes = profile.GetItemValue("$Times1")
  8582.      Case 2
  8583. 'monday
  8584.           If (profile.Monday(0) <> "2") Then Exit Function                'this day is not selected in the profile
  8585.           ValidTimes = profile.GetItemValue("$Times2")
  8586.      Case 3
  8587. 'Tuesday
  8588.           If (profile.Tuesday(0) <> "3") Then  Exit Function            'this day is not selected in the profile
  8589.           ValidTimes = profile.GetItemValue("$Times3")
  8590.      Case 4
  8591. 'wednesday
  8592.           If (profile.Wednesday(0) <> "4") Then Exit Function            'this day is not selected in the profile
  8593.           ValidTimes = profile.GetItemValue("$Times4")
  8594.      Case 5
  8595. 'thursday
  8596.           If (profile.Thursday(0) <> "5") Then Exit Function            'this day is not selected in the profile
  8597.           ValidTimes = profile.GetItemValue("$Times5")
  8598.      Case 6
  8599. 'friday
  8600.           If (profile.Friday(0) <> "6") Then Exit Function                'this day is not selected in the profile
  8601.           ValidTimes = profile.GetItemValue("$Times6")
  8602.      Case 7
  8603. 'saturday
  8604.           If (profile.Saturday(0) <> "7") Then Exit Function            'this day is not selected in the profile
  8605.           ValidTimes = profile.GetItemValue("$Times7")
  8606.      End Select
  8607.      
  8608.      Set denditem= doc.GetFirstItem("EndDateTime")
  8609. 'we must now make sure that the times fall within the profile settings
  8610.      For x = 0 To Ubound(ValidTimes)
  8611. 'if the time falls within a profile range, then there is no conflict and we can exit
  8612.           Set date1 = New NotesDateTime(dstartitem.DateTimeValue.DateOnly & " " & Timevalue(ValidTimes(x)))
  8613.           Set date2 = New NotesDateTime(dstartitem.DateTimeValue.DateOnly & " " & Timevalue(ValidTimes(x+1)))
  8614.           
  8615.           If (dstartitem.DateTimeValue.TimeDifference(date1) >= 0) And (denditem.DateTimeValue.TimeDifference(date2) <= 0) Then          
  8616.                CheckProfileTimes = False
  8617.                Exit Function
  8618.           End If
  8619.           x = x + 1
  8620.      Next
  8621. End Function
  8622. '++LotusScript Development Environment:2:1:GetSubjectText:1:8
  8623. Function GetSubjectText(userDate As Variant) As String
  8624.      Dim selMonth As String
  8625.      Dim selTime As Variant
  8626.      
  8627.      Select Case Month(userDate)
  8628.      Case 1
  8629.           selMonth = CS_MONTH_JAN
  8630.      Case 2
  8631.           selMonth = CS_MONTH_FEB
  8632.      Case 3
  8633.           selMonth = CS_MONTH_MAR
  8634.      Case 4
  8635.           selMonth = CS_MONTH_APR
  8636.      Case 5
  8637.           selMonth = CS_MONTH_MAY
  8638.      Case 6
  8639.           selMonth = CS_MONTH_JUNE
  8640.      Case 7
  8641.           selMonth = CS_MONTH_JULY
  8642.      Case 8
  8643.           selMonth = CS_MONTH_AUG
  8644.      Case 9
  8645.           selMonth = CS_MONTH_SEPT
  8646.      Case 10
  8647.           selMonth = CS_MONTH_OCT
  8648.      Case 11
  8649.           selMonth = CS_MONTH_NOV
  8650.      Case 12
  8651.           selMonth = CS_MONTH_DEC       
  8652.      End Select
  8653.      
  8654.      selTime = Evaluate(|@Text(StartDateTime;"S1T1Z2")|,note)
  8655.      GetSubjectText = Cstr(Day(userDate)) & " " & selMonth & " " & selTime(0)
  8656. End Function
  8657. '++LotusScript Development Environment:2:1:GetContextSub:1:8
  8658. Function GetContextSub ( targetnote As NotesDocument ) As Integer
  8659. returns the context in which the current note exists
  8660. 1 = non repeat notice
  8661. 2 = repeat instance
  8662. 3 = repeat notice
  8663. 4 = original invitation     
  8664. %END REM
  8665.      If (targetnote.IsResponse) Then
  8666. 'the user opened up a response document; see what type of response this is
  8667.           If Not(targetnote.HasItem("OrgRepeat")) Then
  8668. 'this is a non-repeat notice
  8669.                GetContextSub = 1
  8670.           Else
  8671.                If (parentnote.IsResponse) Then
  8672. 'this is a repeat notice
  8673.                     GetContextSub = 3
  8674.                Else
  8675.                     GetContextSub = 2
  8676.                End If
  8677.           End If
  8678.      Else
  8679. 'this is the main invitation
  8680.           GetContextSub = 4
  8681.      End If
  8682. End Function
  8683. ( H `
  8684. )D    [T
  8685. #K4    -
  8686. #K4    -
  8687. O=Lotus Notes
  8688. O=Lotus Notes
  8689. PURSAFO
  8690. |.:#U
  8691. O=Lotus Notes
  8692. CN=Lotus Notes Template Development/O=Lotus Notes
  8693. PURSAFO
  8694. Fde!f^^
  8695. $ScriptLib
  8696. $ScriptLib_O
  8697. $TITLE
  8698. $Flags
  8699. $PublicAccess
  8700. '++LotusScript Development Environment:2:5:(Options):0:74
  8701. Option Public
  8702. Use "ObjectVariables"
  8703. '++LotusScript Development Environment:2:5:(Forward):0:1
  8704. Declare Sub Initialize
  8705. Declare Sub CreateNewDoc(nDocType As Integer)
  8706. Declare Sub CreateMailMemo(pNote As NotesDocument)
  8707. Declare Sub CreateCalendarEntry(pNote As NotesDocument)
  8708. Declare Sub CreateTask(pNote As NotesDocument)
  8709. Declare Function GetSendNames(pNote As NotesDocument) As Variant
  8710. Declare Function GetCopyNames(pNote As NotesDocument) As Variant
  8711. Declare Sub AddBodyToNewNote(pNewNote As NotesDocument, pSourceNote As NotesDocument)
  8712. '++LotusScript Development Environment:2:5:(Declarations):0:10
  8713. Const NEW_MEMO = 0
  8714. Const NEW_CALENDAR = 1
  8715. Const NEW_TASK = 2
  8716. Dim bOkToCopy As Integer
  8717. '++LotusScript Development Environment:2:2:Initialize:1:10
  8718. Sub Initialize
  8719.      
  8720. End Sub
  8721. '++LotusScript Development Environment:2:2:CreateNewDoc:1:8
  8722. Sub CreateNewDoc(nDocType As Integer)
  8723.      
  8724.      Set session = New NotesSession
  8725.      Set ws = New NotesUIWorkspace
  8726.      Set db = session.CurrentDatabase
  8727.      
  8728.      bOkToCopy = True
  8729.      
  8730.      'if there is a document currently open, and it is a new document, we cannot proceed
  8731.      Set uidoc = ws.CurrentDocument
  8732.      If Not(uidoc Is Nothing) Then
  8733.           If uidoc.IsNewDoc Then
  8734.                Messagebox "This action cannot be executed on a new document.",16,"Error"
  8735.                Exit Sub
  8736.           End If
  8737.           Set note = uidoc.Document          
  8738.      Else
  8739.           Set selecteddocs = db.UnprocessedDocuments
  8740.           If (selecteddocs.Count = 0) Then 
  8741.                Messagebox "Please select a document before executing this command.",16,"Error"
  8742.                Exit Sub
  8743.           End If
  8744.           Set note = selecteddocs.GetFirstDocument
  8745.      End If
  8746.      
  8747.      ' Make sure this document is not prevented from being copied
  8748.      If (note.~$KeepPrivate(0) = "1") Then
  8749.           Messagebox "This document is prevented from being copied. The body will not be copied into the new document created.",16,"Warning"
  8750.           bOkToCopy = False          
  8751.      End If
  8752.      
  8753.      Select Case nDocType
  8754.      Case NEW_MEMO
  8755.           Call CreateMailMemo(note)
  8756.      Case NEW_CALENDAR
  8757.           Call CreateCalendarEntry(note)
  8758.      Case NEW_TASK
  8759.           Call CreateTask(note)
  8760.      End Select
  8761.      
  8762. End Sub
  8763. '++LotusScript Development Environment:2:2:CreateMailMemo:1:8
  8764. Sub CreateMailMemo(pNote As NotesDocument)
  8765.      
  8766.      Dim mail As NotesDocument
  8767.      Dim rtitem As NotesRichTextItem
  8768.      
  8769.      Set mail = New NotesDocument(db)
  8770.      
  8771. 'set/retrieve standard mail values regardless of pNote type
  8772.      mail.Form = "Memo"
  8773.      mail.Principal = Owner
  8774.      mail.tmpSendTo = GetSendNames(pNote)
  8775.      mail.SendTo = Evaluate("@Trim(@Unique(tmpSendTo))",mail)
  8776.      mail.tmpCopyTo = GetCopyNames(pNote)
  8777.      mail.CopyTo = Evaluate("@Trim(@Unique(tmpCopyTo))",mail)
  8778.      
  8779.      If (pNote.NoticeType(0) <> "J") Then Call AddBodyToNewNote(mail,pNote)
  8780.      
  8781.      Call mail.RemoveItem("tmpSendTo")
  8782.      Call mail.RemoveItem("tmpCopyTo")
  8783.      
  8784.      
  8785. 'set/retrieve mail values depending on pNote type
  8786.      Select Case pNote.Form(0)
  8787.      Case "Memo","Reply","Appointment","Task"
  8788.           mail.Subject = pNote.Subject
  8789.      Case "Notice"
  8790.           mail.Subject = pNote.Topic
  8791.      Case Else
  8792.           mail.Subject = pNote.Subject
  8793.      End Select
  8794.      
  8795.      mail.Logo = session.GetEnvironmentString("DefaultLogo",False)
  8796.      mail.tmpnewdoc = True
  8797.      Call ws.EditDocument(True,mail)
  8798. End Sub
  8799. '++LotusScript Development Environment:2:2:CreateCalendarEntry:1:8
  8800. Sub CreateCalendarEntry(pNote As NotesDocument)
  8801.      
  8802.      Dim entry As NotesDocument
  8803.      Dim rtitem As NotesRichTextItem
  8804.      Dim startdt As New NotesDateTime("")
  8805.      Dim enddt As New NotesDateTime("")
  8806.      Dim trdr As NotesDateRange
  8807.      Dim entryitem As NotesItem
  8808.      
  8809.      Dim sForm As String
  8810.      Dim nMinutes As Integer
  8811.      Dim nSeconds As Integer
  8812.      
  8813.      If (profile Is Nothing) Then Call GetCalendarOwner
  8814.      
  8815.      Set entry = New NotesDocument(db)
  8816.      
  8817. 'add standard entry items
  8818.      entry.AppointmentType = profile.CalEntryType(0)
  8819.      entry.Form = "Appointment"
  8820.      entry.SendTo = GetSendNames(pNote)
  8821.      entry.CopyTo = GetCopyNames(pNote)
  8822.      entry.Chair = Owner
  8823.      entry.Principal = Owner
  8824.      entry.tmpOwner = Owner
  8825.      entry.From = session.UserName
  8826.      
  8827.      
  8828.      
  8829.      If (pNote.NoticeType(0) <> "J") Then Call AddBodyToNewNote(entry,pNote)          
  8830.      
  8831. 'add entry items depending upon pNote type
  8832.      sForm = pNote.Form(0)
  8833.      Select Case sForm
  8834.      Case "Memo","Reply","Task","Personal Stationery"
  8835.           startdt.SetNow          
  8836.           entry.Subject = pNote.Subject
  8837. 'add the startdatetime, enddatetime, timerange, and reminder time
  8838.           If (sForm = "Task") Then
  8839. 'this is a task
  8840. 'first, look for a StartDateTime item
  8841.                If (pNote.StartDateTime(0) <> "") Then
  8842.                     Set startitem = pNote.GetFirstItem("StartDateTime")            
  8843.                     Set startdt = New NotesDateTime(startitem.DateTimeValue.DateOnly & " " & startdt.TimeOnly)                    
  8844. 'if we don't have a startdate item, look for a duedate item                    
  8845.                Elseif (pNote.DueDateTime(0) <> "") Then
  8846.                     Set startitem = pNote.GetFirstItem("DueDateTime")
  8847.                     Set startdt = New NotesDateTime(startitem.DateTimeValue.DateOnly & " " & startdt.TimeOnly)
  8848.                End If
  8849.           End If
  8850. 'set the time component          
  8851.           nMinutes = Minute(startdt.LSLocalTime)
  8852.           nSeconds = 0 - Second(startdt.LSLocalTime)
  8853.           
  8854.           If (nMinutes > 45) Then          
  8855.                startdt.AdjustMinute(60 - nMinutes)
  8856.           Elseif (nMinutes > 30) Then
  8857.                startdt.AdjustMinute(45 - nMinutes)
  8858.           Elseif (nMinutes > 15) Then
  8859.                startdt.AdjustMinute(30 - nMinutes)
  8860.           Else
  8861.                startdt.AdjustMinute(15 - nMinutes)
  8862.           End If               
  8863.           
  8864.           startdt.AdjustSecond(nSeconds)
  8865.           
  8866.           Set entry.StartDate = startdt
  8867.           Set entry.StartDateTime = startdt
  8868.           Set entry.ReminderTime = startdt
  8869.           
  8870.           Set enddt = New NotesDateTime(startdt.LSLocalTime)
  8871.           enddt.AdjustMinute(profile.DefaultDuration(0))
  8872.           
  8873.           Set trdr = session.CreateDateRange
  8874.           Set trdr.StartDateTime = startdt
  8875.           Set trdr.EndDateTime = enddt
  8876.           Set entry.TimeRange = trdr
  8877.      Case "Appointment","Notice"
  8878.           If (sForm = "Appointment") Then
  8879.                entry.Subject = pNote.Subject
  8880.           Else
  8881.                entry.Subject = pNote.Topic
  8882.           End If
  8883.           
  8884. 'copy the startdatetime,enddatetime,timerange, and reminder time
  8885.           Set entryitem = pNote.GetFirstItem("StartDateTime")          
  8886.           If Not(entryitem Is Nothing) Then
  8887.                Call entryitem.CopyitemToDocument(entry,"StartDate")
  8888.                Call entryitem.CopyItemToDocument(entry,"StartDateTime")
  8889.                Call entryitem.CopyItemToDocument(entry,"ReminderTime")
  8890.           End If
  8891.           
  8892.           Set entryitem = pNote.GetFirstItem("EndDateTime")
  8893.           If Not(entryitem Is Nothing) Then Call entryitem.CopyItemToDocument(entry,"EndDateTime")
  8894.           
  8895.           Set entryitem = pNote.GetFirstItem("TimeRange")
  8896.           If Not (entryitem Is Nothing) Then Call entryitem.CopyItemToDocument(entry,"TimeRange")
  8897.      Case Else
  8898.           startdt.SetNow          
  8899.           entry.Subject = pNote.Subject
  8900.           nMinutes = Minute(startdt.LSLocalTime)
  8901.           nSeconds = 0 - Second(startdt.LSLocalTime)
  8902.           
  8903.           If (nMinutes > 45) Then          
  8904.                startdt.AdjustMinute(60 - nMinutes)
  8905.           Elseif (nMinutes > 30) Then
  8906.                startdt.AdjustMinute(45 - nMinutes)
  8907.           Elseif (nMinutes > 15) Then
  8908.                startdt.AdjustMinute(30 - nMinutes)
  8909.           Else
  8910.                startdt.AdjustMinute(15 - nMinutes)
  8911.           End If               
  8912.           
  8913.           startdt.AdjustSecond(nSeconds)
  8914.           
  8915.           Set entry.StartDate = startdt
  8916.           Set entry.StartDateTime = startdt
  8917.           Set entry.ReminderTime = startdt
  8918.           
  8919.           Set enddt = New NotesDateTime(startdt.LSLocalTime)
  8920.           enddt.AdjustMinute(profile.DefaultDuration(0))
  8921.           
  8922.           Set trdr = session.CreateDateRange
  8923.           Set trdr.StartDateTime = startdt
  8924.           Set trdr.EndDateTime = enddt
  8925.           Set entry.TimeRange = trdr
  8926.      End Select
  8927.      entry.ExcludeFromView = "D"
  8928.      entry.tmpNewDoc = True
  8929.      Call ws.EditDocument(True,entry)
  8930. End Sub   
  8931. '++LotusScript Development Environment:2:2:CreateTask:1:8
  8932. Sub CreateTask(pNote As NotesDocument)
  8933.      
  8934.      Dim task As NotesDocument
  8935.      Dim rtitem As NotesRichTextItem
  8936.      Dim sType As String
  8937.      Dim dueitem As NotesItem
  8938.      Dim tmpSendTo As Variant
  8939.      Dim tmpCopyTo As Variant
  8940.      
  8941.      Set task = New NotesDocument(db)
  8942.      
  8943. 'add standard items
  8944.      task.Form = "Task"
  8945.      task.AssignState = 0
  8946.      task.OrgTable = "T0"
  8947.      
  8948.      If (pNote.NoticeType(0) <> "J") Then Call AddBodyToNewNote(task,pNote)
  8949. 'for tasks, the cc = SendTo + CopyTo     
  8950.      tmpSendTo = GetSendNames(pNote)
  8951.      tmpCopyTo = GetCopyNames(pNote)
  8952.      task.tmpCopyTo1 = tmpSendTo
  8953.      task.tmpCopyTo2 = tmpCopyTo
  8954.      task.CopyTo = Evaluate("@Trim(tmpCopyTo1:tmpCopyTo2)",task)
  8955.      task.RemoveItem "tmpCopyTo1"
  8956.      task.RemoveItem "tmpCopyTo2"
  8957.      
  8958.      task.~_ViewIcon = 168
  8959.      
  8960. 'get specific items from pNote type
  8961.      sType = pNote.Form(0)
  8962.      Select Case sType
  8963.      Case "Memo","Reply"
  8964.           task.Subject = pNote.Subject
  8965.      Case "Appointment","Notice"
  8966.           If (sType = "Appointment") Then
  8967.                task.Subject = pNote.Subject
  8968.           Else
  8969.                taskSubject = pNote.Topic(0)
  8970.           End If
  8971.           
  8972.           Set dueitem = pNote.GetFirstItem("StartDateTime")
  8973.           Call dueitem.CopyItemtoDocument(task,"DueDateTime")
  8974.      Case "Task"
  8975.           task.Subject = pNote.Subject
  8976.           If (pNote.StartDateTime(0) <> "") Then
  8977.                Set dueitem = pNote.GetFirstItem("StartDateTime")
  8978.                Call dueitem.CopyItemToDocument(task,"StartDateTime")
  8979.           End If
  8980.           If (pNote.DueDateTime(0) <> "") Then
  8981.                Set dueitem = pNote.GetFirstItem("DueDateTime")
  8982.                Call dueitem.CopyItemToDocument(task,"DueDateTime")
  8983.           End If
  8984.      Case Else
  8985. 'not sure what we have, so assume subject item exists, but don't prefill-in any date info
  8986.           task.Subject = pNote.Subject         
  8987.      End Select
  8988.      task.ExcludeFromView = "D"
  8989.      task.tmpnewdoc = True
  8990.      Call ws.EditDocument(True,task)
  8991. End Sub
  8992. '++LotusScript Development Environment:2:1:GetSendNames:1:8
  8993. Function GetSendNames(pNote As NotesDocument) As Variant
  8994.      Dim sSendItem As String
  8995.      Dim vSendNames As Variant
  8996.      Dim vRetNames() As Variant
  8997.      Dim nItems As Integer
  8998.      Dim x As Integer
  8999.      Dim namUser As New NotesName(session.UserName)
  9000.      Dim nam As NotesName
  9001.      
  9002.      Select Case pNote.Form(0)
  9003.      Case "Memo","Reply"
  9004.           sSendItem = "SendTo"
  9005.      Case "Appointment","Notice"
  9006.           sSendItem = "RequiredAttendees"
  9007.      Case Else
  9008.           sSendItem = "SendTo"
  9009.      End Select
  9010.      
  9011.      vSendNames = pNote.GetItemValue(sSendItem)
  9012.      
  9013.      If (vSendNames(0) = "") And (Ubound(vSendNames) = 0) Then
  9014.           nItems = 1
  9015.      Else
  9016.           nItems = Ubound(vSendNames) + 2
  9017.      End If
  9018.      Redim vRetNames(nItems)
  9019.      
  9020.      Forall names In vSendNames
  9021. 'make sure we don't have a blank value & the name <> current user          
  9022.           If (names <> "") Then
  9023.                Set nam = New NotesName(names)
  9024.                If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  9025.                     vRetNames(x) = names
  9026.                     x = x+1
  9027.                End If
  9028.           End If
  9029.      End Forall
  9030.      
  9031.      If (pNote.HasItem("Principal")) Then
  9032.           Set nam = New NotesName(pNote.Principal(0))
  9033.           If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  9034.                If (pNote.HasItem("FromDomain")) Then          
  9035.                     vRetNames(x) = pNote.Principal(0) & "@" & pNote.FromDomain(0)
  9036.                Else
  9037.                     vRetNames(x) = pNote.Principal(0)
  9038.                End If
  9039.           End If
  9040.      Else
  9041.           Set nam = New NotesName(pNote.From(0))
  9042.           If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  9043.                If (pNote.HasItem("FromDomain")) Then          
  9044.                     vRetnames(x) = pNote.From(0) & "@" & pNote.FromDomain(0)
  9045.                Else
  9046.                     vRetNames(x) = pNote.From(0)
  9047.                End If
  9048.           End If
  9049.      End If
  9050.      
  9051.      GetSendNames = vRetNames
  9052.      
  9053. End Function  
  9054. '++LotusScript Development Environment:2:1:GetCopyNames:1:8
  9055. Function GetCopyNames(pNote As NotesDocument) As Variant
  9056.      Dim sCopyItem As String
  9057.      Dim vCopyNames As Variant
  9058.      Dim vRetnames() As Variant
  9059.      Dim x As Integer
  9060.      Dim nItems As Integer
  9061.      Dim namUser As New NotesName(session.UserName)
  9062.      
  9063.      Select Case pNote.Form(0)
  9064.      Case "Memo","Reply"
  9065.           sCopyItem = "CopyTo"
  9066.      Case "Appointment","Notice"
  9067.           sCopyItem = "OptionalAttendees"
  9068.      Case Else
  9069.           sCopyItem = "CopyTo"
  9070.      End Select
  9071.      
  9072.      vCopyNames = pNote.GetItemValue(sCopyItem)
  9073.      
  9074.      If (vCopyNames(0) = "") And (Ubound(vCopyNames) = 0) Then
  9075.           nItems = 1
  9076.      Else
  9077.           nItems = Ubound(vCopyNames) + 1
  9078.      End If
  9079.      
  9080.      Redim vRetNames(nItems)
  9081.      
  9082.      Forall names In vCopyNames
  9083.           If (names <> "") Then
  9084.                Set nam = New NotesName(names)
  9085.                If Lcase(nam.Common) <> Lcase(namUser.Common) Then
  9086.                     
  9087.                     vRetNames(x) = names
  9088.                     x = x+1
  9089.                End If               
  9090.           End If
  9091.      End Forall
  9092.      
  9093.      GetCopyNames = vRetNames
  9094. End Function  
  9095. '++LotusScript Development Environment:2:2:AddBodyToNewNote:1:8
  9096. Sub AddBodyToNewNote(pNewNote As NotesDocument, pSourceNote As NotesDocument)
  9097.      Dim rtitemSource As NotesRichTextItem
  9098.      Dim rtitemNew As NotesRichTextItem
  9099.      Dim dtitem As NotesItem
  9100.      
  9101.      If Not(bOkToCopy) Then Exit Sub
  9102.      
  9103. 'first, get the body field of the source note
  9104.      Set rtitemSource = pSourceNote.GetFirstItem("Body")
  9105.      
  9106.      
  9107. 'now, create the new Body item
  9108.      Set rtitemNew = New NotesRichTextItem(pNewNote,"Body")
  9109.      rtitemNew.AddNewLine(2)
  9110.      rtitemNew.AppendText "---------------"
  9111.      rtitemNew.AddNewLine(1)
  9112.      
  9113.      
  9114.      Select Case pSourceNote.Form(0)
  9115.      Case "Appointment","Notice"
  9116.           If (pSourceNote.StartDateTime(0) <> "") Then
  9117.                Set dtitem = pSourceNote.GetFirstItem("StartDateTime")          
  9118.                Call rtitemNew.AppendText("Start:")
  9119.                rtitemNew.AddTab(1)
  9120.                rtitemNew.AppendText(dtitem.Values(0))
  9121.                Call rtitemNew.AddNewLine(1)
  9122.           End If
  9123.           If (pSourceNote.EndDateTime(0) <> "") Then
  9124.                Set dtitem = pSourceNote.GetFirstItem("EndDateTime")          
  9125.                Call rtitemNew.AppendText("End:")
  9126.                rtitemNew.AddTab(1)
  9127.                rtitemNew.AppendText(dtitem.Values(0))
  9128.                Call rtitemNew.AddNewLine(1)
  9129.           End If
  9130.           rtitemNew.AddNewLine(2)
  9131.      Case "Task"
  9132.           If (pSourceNote.StartDateTime(0) <> "") Then
  9133.                Set dtitem = pSourceNote.GetFirstItem("StartDateTime")          
  9134.                Call rtitemNew.AppendText("Start date:")
  9135.                rtitemNew.AddTab(1)
  9136.                rtitemNew.AppendText(dtitem.Values(0))
  9137.                Call rtitemNew.AddNewLine(1)
  9138.           End If
  9139.           If (pSourceNote.DueDateTime(0) <> "") Then
  9140.                Set dtitem = pSourceNote.GetFirstItem("DueDateTime")          
  9141.                Call rtitemNew.AppendText("Due date:")
  9142.                rtitemNew.AddTab(1)
  9143.                rtitemNew.AppendText(dtitem.Values(0))
  9144.                Call rtitemNew.AddNewLine(1)
  9145.           End If          
  9146.           rtitemNew.AddNewLine(2)
  9147.      End Select
  9148.      If Not(rtitemSource Is Nothing) Then Call rtitemNew.AppendRTItem(rtitemSource)
  9149. End Sub
  9150. |    |    \
  9151. [|    N`
  9152.     N|    P
  9153.     K@    -
  9154. tmpSendTo
  9155.     0S0E
  9156. tmpCopyTo
  9157.     0S0E
  9158. tmpCopyTo1
  9159. tmpCopyTo2
  9160.     0S0E
  9161. O=Lotus Notes
  9162. O=Lotus Notes
  9163. PURSAFO
  9164. |.:#U
  9165. O=Lotus Notes
  9166. CN=Lotus Notes Template Development/O=Lotus Notes
  9167. PURSAFO
  9168. Fde!f^^
  9169. jIDLP
  9170. gY7-<:32$2f
  9171. $ScriptLib
  9172. $ScriptLib_O
  9173. $TITLE
  9174. $Flags
  9175. $PublicAccess
  9176. '++LotusScript Development Environment:2:5:(Options):0:66
  9177. '++LotusScript Development Environment:2:5:(Forward):0:1
  9178. Declare Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
  9179. Declare Sub Postdocumentdelete(Source As Notesuidatabase)
  9180. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9181. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9182. Private Sub BindEvents(Byval Objectname_ As String)
  9183.      Static Source As NOTESUIDATABASE
  9184.      Set Source = Bind(Objectname_)
  9185.      On Event Querydocumentdelete From Source Call Querydocumentdelete
  9186.      On Event Postdocumentdelete From Source Call Postdocumentdelete
  9187. End Sub
  9188. '++LotusScript Development Environment:2:2:Querydocumentdelete:1:12
  9189. Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
  9190.      
  9191. End Sub
  9192. '++LotusScript Development Environment:2:2:Postdocumentdelete:1:12
  9193. Sub Postdocumentdelete(Source As Notesuidatabase)
  9194.      
  9195. End Sub
  9196. O=Lotus Notes
  9197. O=Lotus Notes
  9198. PURSAFO
  9199. |.:#U
  9200. O=Lotus Notes
  9201. CN=Lotus Notes Template Development/O=Lotus Notes
  9202. PURSAFO
  9203. Fde!f^^
  9204. JQ~=6
  9205. $DBScript
  9206. $DBScript_O
  9207. $TITLE
  9208. $Flags
  9209. $PublicAccess
  9210. Started running agent 'wUpdateTasks' on 07/27/97 10:41:08 PM
  9211. Ran LotusScript code
  9212. Done running agent 'wUpdateTasks' on 07/27/97 10:41:13 PM
  9213. '++LotusScript Development Environment:2:5:(Options):0:74
  9214. Option Public
  9215. Use "SharedTaskLibrary"
  9216. '++LotusScript Development Environment:2:5:(Forward):0:1
  9217. Declare Sub Initialize
  9218. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9219. '++LotusScript Development Environment:2:2:Initialize:1:10
  9220. Sub Initialize
  9221.      IsWebClient = True
  9222.      Call UpdateTasks
  9223.      Set note = s.DocumentContext
  9224.      pos% = Instr (note.Path_Info(0), db.FileName)
  9225.      If pos% = 0 Then 
  9226.           Print "The Tasks have been updated.<BR>Refresh the Task view to see the results."
  9227.      Else
  9228.           Print "[" & Left$(note.Path_Info(0), pos% + Len (db.FileName)) & "($ToDo)]"
  9229.      End If
  9230. End Sub
  9231. O=Lotus Notes
  9232. O=Lotus Notes
  9233. PURSAFO
  9234. |.:#U
  9235. O=Lotus Notes
  9236. CN=Lotus Notes Template Development/O=Lotus Notes
  9237. PURSAFO
  9238. Fde!f^^
  9239. $TITLE
  9240. $AssistType
  9241. $AssistLastRun
  9242. $AssistDocCount
  9243. $AssistFlags
  9244. $AssistTrigger
  9245. $AssistInfo
  9246. $AssistQuery
  9247. $AssistAction
  9248. $AssistAction_Ex
  9249. "Small Fonts
  9250. New Calendar Entry
  9251. Subject
  9252. '++LotusScript Development Environment:2:5:(Options):0:74
  9253. '++LotusScript Development Environment:2:5:(Forward):0:1
  9254. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9255.  wFreeTime'++LotusScript Development Environment:2:5:(Options):0:66
  9256. '++LotusScript Development Environment:2:5:(Forward):0:1
  9257. Declare Sub Postopen(Source As Notesuidocument)
  9258. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9259. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  9260. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  9261. Declare Sub Postrecalc(Source As Notesuidocument)
  9262. Declare Sub Postmodechange(Source As Notesuidocument)
  9263. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  9264. Declare Sub Initialize
  9265. Declare Sub Terminate
  9266. '++LotusScript Development Environment:2:5:(Declarations):0:2
  9267. '++LotusScript Development Environment:2:2:BindEvents:1:129
  9268. Private Sub BindEvents(Byval Objectname_ As String)
  9269.      Static Source As NOTESUIDOCUMENT
  9270.      Set Source = Bind(Objectname_)
  9271.      On Event Postopen From Source Call Postopen
  9272.      On Event Querysave From Source Call Querysave
  9273.      On Event Queryopen From Source Call Queryopen
  9274.      On Event Queryclose From Source Call Queryclose
  9275.      On Event Postrecalc From Source Call Postrecalc
  9276.      On Event Postmodechange From Source Call Postmodechange
  9277.      On Event Querymodechange From Source Call Querymodechange
  9278. End Sub
  9279. '++LotusScript Development Environment:2:2:Postopen:1:12
  9280. Sub Postopen(Source As Notesuidocument)
  9281.      
  9282. End Sub
  9283. '++LotusScript Development Environment:2:2:Querysave:1:12
  9284. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  9285.      
  9286. End Sub
  9287. '++LotusScript Development Environment:2:2:Queryopen:1:12
  9288. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  9289.      
  9290. End Sub
  9291. '++LotusScript Development Environment:2:2:Queryclose:1:12
  9292. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  9293.      
  9294. End Sub
  9295. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  9296. Sub Postrecalc(Source As Notesuidocument)
  9297.      
  9298. End Sub
  9299. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  9300. Sub Postmodechange(Source As Notesuidocument)
  9301.      
  9302. End Sub
  9303. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  9304. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  9305.      
  9306. End Sub
  9307. '++LotusScript Development Environment:2:2:Initialize:1:10
  9308. Sub Initialize
  9309.      
  9310. End Sub
  9311. '++LotusScript Development Environment:2:2:Terminate:1:10
  9312. Sub Terminate
  9313.      
  9314. End Sub
  9315.     Hidden Fields: 
  9316. tmpFrom
  9317. Appointment
  9318. $ExpandGroups
  9319. _ViewIcon
  9320. Query_StringCGI variable for LS
  9321. Path_Info
  9322. appType
  9323. [<b>  </b>]Free Time Finder
  9324. GridField
  9325. tmpGridField
  9326. Domino
  9327. RefreshFreeTimeGrid
  9328. tmpGridField
  9329. tmpMeetingTimesCtrl
  9330. 12:01 am 97/05/20 - 11:59 pm 97/05/20
  9331. 05/20/97
  9332. 13:00
  9333. Lou Reed
  9334. Stan Getz
  9335.     4S6S8S10S12S14S16S18S20S
  9336. tmpGridFormula[<TYPE=hidden >]
  9337. Recommended Meeting Times:
  9338. MeetingTimesCtrl
  9339. tmpMeetingTimesCtrl[<SIZE=14>]
  9340.     [<BR><BR>]
  9341.     [<BR><input TYPE=submit VALUE="Refresh FreeTime grid"><BR>]
  9342. GridFormat
  9343. by day|0by person|1
  9344.     [<BR>]
  9345. DatePicker
  9346. 3/25/973/26/973/27/973/28/973/29/973/30/973/31/97
  9347.      Date
  9348. TimePicker,
  9349. 09:00 am09:15 am09:30 am09:45 am10:00 am10:15 am10:30 am10:45 am11:00 am11:15 am11:30 am11:45 am12:00 pm12:15 pm12:30 pm12:45 pm01:00 pm01:15 pm01:30 pm01:45 pm02:00 pm02:15 pm02:30 pm02:45 pm03:00 pm03:15 pm03:30 pm03:45 pm04:00 pm04:15 pm04:30 pm04:45 pm05:00 pm05:15 pm05:30 pm05:45 pm06:00 pm06:15 pm06:30 pm06:45 pm07:00 pm07:15 pm07:30 pm07:45 pm
  9350.      Time
  9351. DurationPicker
  9352. 0:15|150:30|300:45|451:00|601:15|751:30|901:45|1052:00|1202:15|1352:30|1502:45|1653:00|1803:15|1953:30|2103:45|2254:00|2404:30|2705:00|3005:30|3306:00|360
  9353.      Duration (hours:minutes)[<BR>]
  9354.     [<BR><input TYPE=submit VALUE="Use selected date and time"><BR>]
  9355. [<b> </b>]
  9356. = Busy
  9357. [<b> </b>]
  9358. = Free
  9359. = Conflict
  9360.     Hidden w/ HTML tag in help description field:
  9361. tmpAssign
  9362. &Assign
  9363.     1S2S
  9364. Path_Info
  9365. tmpAssign
  9366. tmpAssign
  9367.     0R1S6S11S12S14S16S
  9368. ViewArguments[<TYPE=hidden >]
  9369. _Forward
  9370. _Move to Folder...
  9371. _Edit Document
  9372. Attendees
  9373. Principal
  9374. RepeatIds
  9375.     4S5S6S7R11S12S13S14S15S17S18S
  9376. Categori_ze1
  9377. Send Docu_ment
  9378. _Remove from Folder...
  9379. O=Lotus Notes
  9380. O=Lotus Notes
  9381. PURSAFO
  9382. |.:#U
  9383. O=Lotus Notes
  9384. CN=Lotus Notes Template Development/O=Lotus Notes
  9385. PURSAFO
  9386. Fde!f^^
  9387. CompletedOn
  9388. EndDate
  9389. CalendarDate_Time___Start
  9390. CalendarDate_Time___End
  9391. CalendarDates
  9392. CalendarDate
  9393. RepeatDates
  9394. CalendarDateTime
  9395. EndDateTime
  9396. $NoPurge
  9397. StartTime
  9398. EndTime
  9399. StartEndTime
  9400. StartDateTime
  9401. $FormPublicAccess
  9402. TimeRange
  9403. WebCalEntryTypeChanged
  9404. ReminderTime
  9405. MaxListed
  9406. StartDate
  9407. Duration
  9408. $TITLE
  9409. $INFO
  9410. $WINDOWTITLE
  9411. $Script
  9412. $$Script_O
  9413. $$ScriptName
  9414. $$FormScript
  9415. $$$FormScript_O
  9416. _ViewIcon
  9417. $BODY
  9418. $ACTIONS
  9419. $PublicAccess
  9420.  $$ViewTemplate for ($All)
  9421. Hidden: 
  9422. ($All)
  9423. ViewName[<TYPE=hidden >]
  9424. (web view template)
  9425. Categori_ze
  9426. _Edit Document
  9427. Send Docu_ment
  9428. _Forward
  9429. _Move To Folder...
  9430. _Remove From Folder
  9431. O=Lotus Notes
  9432. O=Lotus Notes
  9433. PURSAFO
  9434. |.:#U
  9435. O=Lotus Notes
  9436. CN=Lotus Notes Template Development/O=Lotus Notes
  9437. PURSAFO
  9438. Fde!f^^
  9439. $TITLE
  9440. $INFO
  9441. $SubForms
  9442. $WINDOWTITLE
  9443. $$Script_O
  9444. $$ScriptName
  9445. $BODY
  9446. $ACTIONS
  9447.  $$ViewTemplate for ($Drafts)
  9448. Hidden: 
  9449. ($Drafts)
  9450. ViewName
  9451. (web view template)
  9452. Categori_ze
  9453. _Edit Document
  9454. Send Docu_ment
  9455. _Forward
  9456. _Move To Folder...
  9457. _Remove From Folder_
  9458. O=Lotus Notes
  9459. O=Lotus Notes
  9460. PURSAFO
  9461. |.:#U
  9462. O=Lotus Notes
  9463. CN=Lotus Notes Template Development/O=Lotus Notes
  9464. PURSAFO
  9465. Fde!f^^
  9466. $TITLE
  9467. $INFO
  9468. $SubForms
  9469. $WINDOWTITLE
  9470. $$ScriptName
  9471. $BODY
  9472. $ACTIONS
  9473.  $$ViewTemplate for ($InBox)
  9474. Hidden: 
  9475. ($InBox)
  9476. ViewName
  9477. (web view template)
  9478. Categori_ze
  9479. _Edit Document
  9480. Send Docu_ment
  9481. _Forward
  9482. _Move To Folder...
  9483. _Remove From Folder
  9484. O=Lotus Notes
  9485. O=Lotus Notes
  9486. PURSAFO
  9487. |.:#U
  9488. O=Lotus Notes
  9489. CN=Lotus Notes Template Development/O=Lotus Notes
  9490. PURSAFO
  9491. Fde!f^^
  9492. $TITLE
  9493. $INFO
  9494. $SubForms
  9495. $WINDOWTITLE
  9496. $$ScriptName
  9497. $BODY
  9498. $ACTIONS
  9499.  $$ViewTemplate for ($Meetings)
  9500. Hidden: 
  9501. ($Meetings)
  9502. ViewName
  9503. (web view template)
  9504. Categori_ze
  9505. _Edit Document
  9506. Send Docu_ment
  9507. _Forward
  9508. _Move To Folder...
  9509. _Remove From Folder
  9510. O=Lotus Notes
  9511. O=Lotus Notes
  9512. PURSAFO
  9513. |.:#U
  9514. O=Lotus Notes
  9515. CN=Lotus Notes Template Development/O=Lotus Notes
  9516. PURSAFO
  9517. Fde!f^^
  9518. $TITLE
  9519. $INFO
  9520. $SubForms
  9521. $WINDOWTITLE
  9522. $$ScriptName
  9523. $BODY
  9524. $ACTIONS
  9525. (web vt Sent)$$ViewTemplate for ($Sent)(web view template)CDn
  9526. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############################
  9527. (web vt Trash)$$ViewTemplate for ($Trash)(web view template)CDn
  9528. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########################
  9529. (web wFolders)wFoldersCDn
  9530. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#
  9531. (web NonDelivery Report)NonDelivery ReportCDn
  9532. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes    
  9533. ##########################################################
  9534. (web ret Authenticate)$$ReturnAuthenticationFailureCD1
  9535. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############################
  9536. (web ret Authorize)$$ReturnAuthorizationFailureCD1
  9537. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################
  9538. (web ret Error)$$ReturnGeneralErrorCD1
  9539. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################
  9540. (web vt Calendar)$$ViewTemplate for ($Calendar)CDn
  9541. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  9542. CN=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=bogus/O=bogusCN=Harry Peebles/O=IrisCN=Stan Getz/O=bogusCN=Harry Peebles/O=IrisCN=Ryan Jansen/O=IrisCN=Teresa Deane/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesWebLibs34Q1########################################
  9543. (wUpdateTasks)
  9544. CN=Harry Peebles/O=IrisCN=Lou Reed/O=bogusCN=Harry Peebles/O=IrisCN=Ryan Jansen/O=IrisCN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesfL3u3
  9545. ########################
  9546. ##########################################################
  9547.  $$ViewTemplate for ($Sent)
  9548. Hidden: 
  9549. ($Sent)
  9550. ViewName
  9551. (web view template)
  9552. Categori_ze
  9553. _Edit Document
  9554. Send Docu_ment
  9555. _Forward
  9556. _Move To Folder...
  9557. _Remove From Folder
  9558. O=Lotus Notes
  9559. O=Lotus Notes
  9560. PURSAFO
  9561. |.:#U
  9562. O=Lotus Notes
  9563. CN=Lotus Notes Template Development/O=Lotus Notes
  9564. PURSAFO
  9565. Fde!f^^
  9566. Z+-\9
  9567. $TITLE
  9568. $INFO
  9569. $SubForms
  9570. $WINDOWTITLE
  9571. $$ScriptName
  9572. $BODY
  9573. $ACTIONS
  9574.  $$ViewTemplate for ($Trash)
  9575. Hidden: 
  9576. ($Trash)
  9577. ViewName
  9578. (web view template)
  9579. Categori_ze
  9580. _Edit Document
  9581. Send Docu_ment
  9582. _Forward
  9583. _Move To Folder...
  9584. _Remove From Folder_
  9585. O=Lotus Notes
  9586. O=Lotus Notes
  9587. PURSAFO
  9588. |.:#U
  9589. O=Lotus Notes
  9590. CN=Lotus Notes Template Development/O=Lotus Notes
  9591. PURSAFO
  9592. Fde!f^^
  9593. $TITLE
  9594. $INFO
  9595. $SubForms
  9596. $WINDOWTITLE
  9597. $$ScriptName
  9598. $BODY
  9599. $ACTIONS
  9600.  wFolders
  9601.     Hidden:
  9602. SaveOptions
  9603. wFoldersOpen
  9604. $$QueryOpenAgent
  9605. wFoldersSave
  9606. $$QuerySaveAgent
  9607. Query_String
  9608. Query_String
  9609. Path_Info
  9610. Path_Info
  9611. tmpFolder
  9612. [<b> </b>]
  9613. SaveOption
  9614.  
  9615.  
  9616.  
  9617. </b>]
  9618. Folder Utilities
  9619.     Selected Document:
  9620. tmpSelectedDocument
  9621. tmpSelectedDocument
  9622. dispSelectedFolder
  9623. dispSelectedFolder
  9624. tmpSelectedFolder
  9625. tmpSelectedFolder
  9626. tmpRemFromFolder
  9627.     [<BR>]
  9628.     Name of new folder:
  9629. tmpNewFolder[<size=50>]
  9630. tmpCurFolderIsView
  9631.     1S2S
  9632.     New folder options:
  9633.     The source View cannot have documents moved out of it. This d
  9634.     ocument will be copied into the new Folder.
  9635.     [<BR><BR>]
  9636. tmpCurFolderIsView
  9637.     1S2S
  9638.     New folder options:
  9639. tmpNewFolderOptions
  9640. Move document to new folder|1Copy document to new folder|2
  9641.     0S0E
  9642.     Create Folder
  9643. List of folders:
  9644. dispFolderList
  9645. dispFolderList
  9646. [<b> </b>]
  9647. [<b>   </b>]
  9648.     The current document can be moved or copied into and out of any folder.
  9649.     The current document can only be copied out of a view.
  9650.     Create a folder by entering a name and pressing the button. Only users with at least "Designer" access rights can create new folders. The "Maximum Internet browser access" setting for the mail file must also be set to "Designer" or above. The system administrator must set these values for you.
  9651.     Click a link to the left of a folder's name to move or copy the current document into that folder.
  9652.     Navigate to a folder by clicking it's name.
  9653.     Remove a folder by clicking on the link to the right of that folder's name.
  9654.     Documents that had been in a deleted folder remain unharmed in all their other folders and views.
  9655.     All 
  9656.     of the 
  9657.     documents in the mail file are listed in the All Documents view.
  9658.     Documents moved or copied into the Trash folder can be deleted by pressing the Empty Trash link.
  9659.     Documents that are in the Trash will continue to be listed in views until the Trash is emptied.
  9660.     To remove a document from the Trash, select the document while in the Trash view, click the File button, then click the Remove From Trash link.
  9661.     Hidden w/ HTML tag in help description field:
  9662. tmpUNIDnote[<TYPE=hidden >]
  9663. tmpViewName[<TYPE=hidden >]
  9664. tmpCurFolderIsView[<TYPE=hidden >]
  9665. Categori_ze$
  9666. _Edit Document
  9667. Send Docu_ment
  9668. _Forward
  9669. _Move To Folder...
  9670. _Remove From Folder
  9671. In Box*
  9672. ($InBox)
  9673. Calendar
  9674.     1S2S8S12S14S
  9675. path"
  9676. /($Calendar)?OpenView&Grid=
  9677. CalendarProfile
  9678. wCalGridType
  9679.     0R3S4S5S6S7S8S12S
  9680. Meetings.
  9681. ($Meetings)
  9682. To Do
  9683. ($ToDo)
  9684. All Views
  9685. O=Lotus Notes
  9686. O=Lotus Notes
  9687. PURSAFO
  9688. |.:#U
  9689. O=Lotus Notes
  9690. CN=Lotus Notes Template Development/O=Lotus Notes
  9691. PURSAFO
  9692. Fde!f^^
  9693. $TITLE
  9694. $INFO
  9695. $$Script_O
  9696. $$ScriptName
  9697. $BODY
  9698. $ACTIONS
  9699. *** Message Not Delivered ***
  9700.  NonDelivery Report
  9701. $HideMailHeader
  9702.     0S0E
  9703. Delivery Failure Report
  9704.     Your document:
  9705. Subject
  9706. OriginalSubject
  9707.     was not delivered to
  9708. IntendedRecipient
  9709. IntendedRecipient
  9710.     0S0E
  9711. IntendedRecipient
  9712.     because:
  9713. FailureReason
  9714. FailureReason
  9715.     What should you do?
  9716.     You can resend the undeliverable document to the recipients listed above by choosing the Resend button. 
  9717.     Once you have resent the document you may delete this Delivery Failure Report.
  9718.     If resending the document is not successful you will receive a new failure report
  9719.     Unless you receive other Delivery Failure Reports, the document was successfully delivered to all other recipients.
  9720.     Routing Path:
  9721. RouteServers
  9722. RouteServersServers along route.
  9723. [<b>  </b>]
  9724. From:[<b> </b>]
  9725. tmpDisplayFrom_NoLogo
  9726. PostedDateh
  9727. PostedDate
  9728.     7S9S
  9729. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  9730.     0S0E
  9731.     Resend
  9732. $HideMailHeader
  9733. Principal
  9734. Principal
  9735. Principal
  9736. Principal
  9737. Principal
  9738. <>$$Web
  9739.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S55S56S61S62S64S
  9740. CalendarProfile
  9741. wEnableNABs
  9742.     4S6S7S
  9743. CalendarProfile
  9744. wEnableNABs
  9745.     1S6S8S9S11S16S
  9746. CalendarProfile
  9747. wNAB1
  9748.     0RR1S2S6S
  9749. CalendarProfile
  9750. wNAB2
  9751.     0R1S2S6S
  9752. CalendarProfile
  9753. wNAB3
  9754.     0R1S2S6S
  9755. CalendarProfile
  9756. wNAB4
  9757.     0R1S2S6S
  9758. NABurl1
  9759. CalendarProfile
  9760. wNABurl1
  9761.     0R1S2S6S
  9762. NABurl2
  9763. CalendarProfile
  9764. wNABurl2
  9765.     0R1S2S6S
  9766. NABurl3
  9767. CalendarProfile
  9768. wNABurl3
  9769.     0R1S2S6S
  9770. NABurl4
  9771. CalendarProfile
  9772. wNABurl4
  9773.     0R1S2S6S
  9774. anchorHead
  9775. <a href="
  9776.     0RR1S2S
  9777. anchorMid
  9778. "><font size=2><b>
  9779.     0R1S2S
  9780. anchorTail
  9781. </b></font></a>
  9782.     0R1S2S
  9783. spaces
  9784.     
  9785.     0R1S2S
  9786. Link1
  9787. anchorHead
  9788. NABurl1
  9789. anchorMid
  9790. NAB1"
  9791. anchorTail"
  9792. spaces"
  9793.     0RR1S2S3S4S5S6S7S8S9S10S11S12S
  9794. Link2
  9795. anchorHead
  9796. NABurl2
  9797. anchorMid
  9798. NAB2"
  9799. anchorTail"
  9800. spaces"
  9801.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  9802. Link3
  9803. anchorHead
  9804. NABurl3
  9805. anchorMid
  9806. NAB3"
  9807. anchorTail"
  9808. spaces"
  9809.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  9810. Link4
  9811. anchorHead
  9812. NABurl4
  9813. anchorMid
  9814. NAB4"
  9815. anchorTail"
  9816.     0R1S2S3S4S5S6S7S8S9S10S
  9817. Link1
  9818. Link2
  9819. Link3
  9820. Link4
  9821.     0RR1S2S3S4S5S6S7S8S9S10S
  9822. tmpCustomAddressLinks
  9823. SendTo[<size=58>]
  9824. CopyTo[<size=58>]
  9825.     Subject:
  9826. Subject
  9827. dispSubject[<size=58>]
  9828. dispBody[<ROWS="10" COLS="60"  WRAP=VIRTUAL>]
  9829.     [<BR>]
  9830. [<b>  </b>]Mail Options[<BR>]
  9831. Importance
  9832. High|1Normal|2Low|3
  9833.      Importance
  9834. DeliveryReport
  9835. On failure|BConfirm delivery|CTrace entire path|TNone|N
  9836.      DeliveryReport
  9837. DeliveryPriority
  9838. High|HNormal|NLow|L
  9839.      Delivery Priority
  9840.     0S0E
  9841.     Resend
  9842.     Hidden: 
  9843. wMemo
  9844. $$QuerySaveAgent
  9845. Path_Info
  9846. Path_Info
  9847. MailOptions
  9848. SaveOptions
  9849. tmpFrom
  9850. Categori_ze
  9851. Edit Document
  9852. Resend
  9853. _Forward
  9854. _Move to Folder...
  9855. _Remove from Folder...
  9856. Resend 
  9857.     0S0E
  9858. Trashc
  9859.     1S2S8S12S14S
  9860. /wCommand?OpenAgent&ToTrash=
  9861. &From="
  9862.     0R1S2S3S4S11S13S15S16S
  9863. Path_Info
  9864. Path_Info
  9865.     0R1S2S6S10S11S15S
  9866. view1
  9867.     0R1S2S3S10S14S18S21S
  9868. view2
  9869. view1
  9870. view1
  9871. view1
  9872.     0R1S2S3S10S14S18S21S
  9873. path"
  9874. view2
  9875.     0RR3S4S5S6S7S8S
  9876.     1S2S8S12S14S
  9877. /wFolders?OpenForm&UNID=
  9878. &View="
  9879.     0R1S2S3S4S11S13S15S16S
  9880. Path_Info
  9881. Path_Info
  9882.     0R1S2S6S10S11S15S
  9883. view1
  9884.     0R1S2S3S10S14S18S21S
  9885. view2
  9886. view1
  9887. view1
  9888. view1
  9889.     0R1S2S3S10S14S18S21S
  9890. path"
  9891. view2
  9892.     0RR3S4S5S6S7S8S
  9893. In Box*
  9894. ($Inbox)
  9895. Calendar
  9896.     1S2S8S12S14S
  9897. path"
  9898. /($Calendar)?OpenView&Grid=
  9899. CalendarProfile
  9900. wCalGridType
  9901.     0R3S4S5S6S7S8S12S
  9902. Meetings.
  9903. ($Meetings)
  9904. To Do
  9905. ($ToDo)
  9906. All Views
  9907. O=Lotus Notes
  9908. O=Lotus Notes
  9909. PURSAFO
  9910. |.:#U
  9911. O=Lotus Notes
  9912. CN=Lotus Notes Template Development/O=Lotus Notes
  9913. PURSAFO
  9914. Fde!f^^
  9915. $TITLE
  9916. $INFO
  9917. $WINDOWTITLE
  9918. $$ScriptName
  9919. $BODY
  9920. $ACTIONS
  9921. &Arial
  9922.  $$ReturnAuthenticationFailure
  9923.     0S0E
  9924. Authentication Failure
  9925.     0S0E
  9926. [<BR><BR>]The name and password cannot be authenticated.
  9927. Categori_ze
  9928. _Edit Document
  9929. Send Docu_ment
  9930. _Forward
  9931. _Move To Folder...
  9932. _Remove From Folder_
  9933. Calendar.
  9934. ($Calendar)
  9935. Meetings.
  9936. ($Meetings)
  9937. All Views
  9938. O=Lotus Notes
  9939. O=Lotus Notes
  9940. PURSAFO
  9941. |.:#U
  9942. O=Lotus Notes
  9943. CN=Lotus Notes Template Development/O=Lotus Notes
  9944. PURSAFO
  9945. Fde!f^^
  9946. $TITLE
  9947. $INFO
  9948. $$ScriptName
  9949. $BODY
  9950. $ACTIONS
  9951. $PublicAccess
  9952. &Arial
  9953.  $$ReturnAuthorizationFailure
  9954. Authorization Failure
  9955. [<BR><BR>]You are not authorized to perform that operation.
  9956. Categori_ze
  9957. _Edit Document
  9958. Send Docu_ment
  9959. _Forward
  9960. _Move To Folder...
  9961. _Remove From Folder_
  9962. Calendar.
  9963. ($Calendar)
  9964. Meetings.
  9965. ($Meetings)
  9966. All Views
  9967. O=Lotus Notes
  9968. O=Lotus Notes
  9969. PURSAFO
  9970. |.:#U
  9971. O=Lotus Notes
  9972. CN=Lotus Notes Template Development/O=Lotus Notes
  9973. PURSAFO
  9974. Fde!f^^
  9975.     pyVk"
  9976. $TITLE
  9977. $INFO
  9978. $$ScriptName
  9979. $BODY
  9980. $ACTIONS
  9981. $PublicAccess
  9982. &Arial
  9983.  $$ReturnGeneralError
  9984.     0S0E
  9985.     0S0E
  9986. Response Message
  9987. [<BR><BR>]
  9988. MessageString
  9989. MessageString
  9990. Categori_ze
  9991. _Edit Document
  9992. Send Docu_ment
  9993. _Forward
  9994. _Move To Folder...
  9995. _Remove From Folder_
  9996. Calendar.
  9997. ($Calendar)
  9998. Meetings.
  9999. ($Meetings)
  10000. All Views
  10001. O=Lotus Notes
  10002. O=Lotus Notes
  10003. PURSAFO
  10004. |.:#U
  10005. O=Lotus Notes
  10006. CN=Lotus Notes Template Development/O=Lotus Notes
  10007. PURSAFO
  10008. Fde!f^^
  10009. $TITLE
  10010. $INFO
  10011. $$ScriptName
  10012. $BODY
  10013. $ACTIONS
  10014. $PublicAccess
  10015.  $$ViewTemplate for ($Calendar)
  10016. Hidden
  10017. [<TABLE BORDER CELLSPACING=2 CELLPADDING=2><TR VALIGN=middle BGCOLOR="#C0C0C0"><TD>]
  10018.     1S2S8S12S14S
  10019. ViewArguments
  10020. &Grid=
  10021. CalendarProfile
  10022. wCalGridType
  10023. ViewArguments
  10024.     0R1S2S3S8S9S11S12S13S17S20S
  10025. path"
  10026. /Appointment?OpenForm
  10027. args"
  10028.     0R3S4S5S6S7S8S
  10029.  Meeting
  10030. [</TD><TD>]
  10031.     0S0E
  10032.  Go To Today
  10033. [</TD><TD>]
  10034.                                 
  10035.  Two Days
  10036. [</TD><TD>]
  10037. .                                
  10038. _IRTF
  10039.  One Week
  10040. [</TD><TD>]
  10041. Microso                                
  10042.  Two Weeks
  10043. [</TD><TD>]
  10044.                                 *.CGM
  10045. Excel 4.0/
  10046.  One Month
  10047. [</TD></TR></TABLE><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="50%" ALIGN=left>]
  10048. Domino
  10049. ViewPreviousPage
  10050. Previous
  10051. [</TD><TD WIDTH="50%" ALIGN=right>]
  10052. Domino
  10053. ViewNextPage
  10054. [</TD></TR></TABLE>]
  10055. $$ViewBody
  10056. [<BR><TABLE WIDTH="100%"><TR VALIGN=middle><TD WIDTH="20%">]
  10057. ($InBox)
  10058.  In Box
  10059. [</TD><TD WIDTH="20%">]
  10060. ($Meetings)
  10061. 1; "?"); view1);
  10062.  Meetings
  10063. [</TD><TD WIDTH="20%">]
  10064. ($ToDo)
  10065. 1; "?"); view1);
  10066.  To Do
  10067. [</TD><TD WIDTH="20%">]
  10068. *.JPG
  10069. Lotus 1-2
  10070. rd RTF
  10071. *.DOC;*.R
  10072.  All Views
  10073. [</TD><TD WIDTH="20%">]
  10074.     1S2S8S12S14S
  10075. path"
  10076. /wCommand?OpenAgent&EmptyTrash=($Calendar)"
  10077.     0R3S4S5S6S
  10078.  Empty Trash
  10079. [</TD></TR></TABLE>]
  10080. Hidden: 
  10081. Query_String
  10082. Query_String
  10083. tmpOpenView
  10084. OpenView
  10085.     1S2S
  10086. tmpOpenViewLen
  10087. tmpOpenView
  10088.     0R1S2S3S
  10089. tmpQuery_StringLen
  10090. Query_String
  10091.     0R1S2S
  10092. tmpArgs
  10093. tmpQuery_StringLen
  10094. tmpOpenViewLen
  10095. tmpOpenView
  10096. Query_String
  10097. tmpOpenViewLen_
  10098. Query_String
  10099. tmpQuery_StringLen
  10100. tmpOpenViewLen#
  10101.     0RR1S2S3S5S6S8S10RS9E11S13S14S15S18S21S23RS18E27S28S29S31RS9E32S8E
  10102. tmpArgs
  10103. &Click_
  10104. tmpArgs
  10105. &Click_
  10106. tmpArgs
  10107.     0RR1S8S12S16S19S
  10108. ViewArguments
  10109. Discussion Threads
  10110. ViewName
  10111. ViewName
  10112.     4S6S
  10113. URLViewName
  10114. Categori_zem
  10115. _Edit Document
  10116. Send Docu_ment
  10117. _Forward
  10118. _Move To Folder...
  10119. _Remove From Folderh
  10120. O=Lotus Notes
  10121. O=Lotus Notes
  10122. PURSAFO
  10123. |.:#U
  10124. O=Lotus Notes
  10125. CN=Lotus Notes Template Development/O=Lotus Notes
  10126. PURSAFO
  10127. Fde!f^^
  10128. $TITLE
  10129. $INFO
  10130. $WINDOWTITLE
  10131. $$ScriptName
  10132. $BODY
  10133. $ACTIONS
  10134. '++LotusScript Development Environment:2:5:(Options):0:74
  10135. Option Public
  10136. Use "ObjectVariables"
  10137. '++LotusScript Development Environment:2:5:(Forward):0:1
  10138. Declare Sub wNotifyUser(msg As String)
  10139. Declare Function wGetCalendarProfile
  10140. Declare Sub wGetOrMakeCalendarProfile
  10141. Declare Sub wInstantiateObjectVariables
  10142. Declare Sub wMessagePageHeader
  10143. Declare Sub CopyProfileValues(noteSrc As NotesDocument, noteDest As NotesDocument)
  10144. Declare Function GetDBPath
  10145. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10146. '++LotusScript Development Environment:2:2:wNotifyUser:1:8
  10147. Sub wNotifyUser(msg As String)
  10148.      note.WebMessageString = note.WebMessageString(0) & msg & "<BR><BR>"
  10149. End Sub
  10150. '++LotusScript Development Environment:2:1:wGetCalendarProfile:1:8
  10151. Function wGetCalendarProfile
  10152.      On Error Resume Next
  10153.      Set profile = db.GetProfileDocument("CalendarProfile")
  10154.      If profile Is Nothing Then Goto ErrorRoutine
  10155.      
  10156.      On Error Goto ErrorRoutine
  10157.      If profile.Owner(0) = "" Then Goto ErrorRoutine
  10158.      Owner = profile.Owner(0)
  10159.      wGetCalendarProfile = True
  10160.      Exit Function
  10161.      
  10162. ErrorRoutine:
  10163.      wGetCalendarProfile = False
  10164. End Function
  10165. '++LotusScript Development Environment:2:2:wGetOrMakeCalendarProfile:1:8
  10166. Sub wGetOrMakeCalendarProfile
  10167.      Call GetCalendarOwner()
  10168.      If Not (profile.HasItem("wEnableNABs")) Then Call wInitDefaultSettings()
  10169. End Sub
  10170. '++LotusScript Development Environment:2:2:wInstantiateObjectVariables:1:8
  10171. Sub wInstantiateObjectVariables
  10172.      Set session = New NotesSession
  10173.      Set db = session.CurrentDatabase
  10174.      Set note = session.DocumentContext
  10175. End Sub
  10176. '++LotusScript Development Environment:2:2:wMessagePageHeader:1:8
  10177. Sub wMessagePageHeader
  10178.      'Create the action bar
  10179.      Print |<TABLE BORDER CELLSPACING=2 CELLPADDING=2>| 
  10180.      Print |<TR VALIGN=middle BGCOLOR="C0C0C0">| 
  10181.      Print |<TD><A HREF="| & PathAndName$ & |($InBox)"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn110.gif"> In Box</A></TD>| 
  10182.      Print |<TD><A HREF="| & PathAndName$ & |($Calendar)?OpenView&Grid=| & profile.wCalGridType(0) & |"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn133.gif"> Calendar</A></TD>| 
  10183.      Print |<TD><A HREF="| & PathAndName$ & |($Meetings)"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn126.gif"> Meetings</A></TD>| 
  10184.      Print |<TD><A HREF="| & PathAndName$ & |($ToDo)"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn127.gif"> To Do</A></TD>| 
  10185.      Print |<TD><A HREF="| & PathAndName$ & |"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn120.gif"> All Views</A></TD>| 
  10186.      Print |</TR></TABLE><HR>|
  10187. End Sub
  10188. '++LotusScript Development Environment:2:2:CopyProfileValues:1:8
  10189. Sub CopyProfileValues(noteSrc As NotesDocument, noteDest As NotesDocument)
  10190.      Dim x As Integer
  10191.      Dim item As NotesItem
  10192.      
  10193.      
  10194.      noteDest.Owner = noteSrc.Owner(0)
  10195.      noteDest.DefaultDuration = noteSrc.DefaultDuration(0)
  10196.      noteDest.CalEntryType = noteSrc.CalEntryType(0)
  10197.      
  10198.      If (noteSrc.HasItem("AutoRemoveFromInbox")) Then 
  10199.           noteDest.AutoRemoveFromInbox = noteSrc.AutoRemoveFromInbox(0)
  10200.      Else
  10201.           noteDest.AutoRemoveFromInbox = "0"
  10202.      End If
  10203.      
  10204.      If (noteSrc.HasItem("CalEntryHide")) Then 
  10205.           noteDest.CalEntryHide = noteSrc.CalEntryHide(0)
  10206.      Else
  10207.           noteDest.CalEntryHide = "0"
  10208.      End If
  10209.      
  10210.      noteDest.NotesNab1 = noteSrc.NotesNab1(0)
  10211.      noteDest.NotesNab2 = noteSrc.NotesNab2(0)
  10212.      noteDest.NotesNab3 = noteSrc.NotesNab3(0)
  10213.      noteDest.NotesNab4 = noteSrc.NotesNab4(0)
  10214. %REM     
  10215.      Msgbox notesrc.AutoRemoveFrominbox(0)
  10216.      Msgbox noteSrc.CalEntryHide(0)
  10217.      
  10218.      Msgbox notesrc.Sunday(0)
  10219.      Msgbox notesrc.Monday(0)
  10220.      Msgbox notesrc.Tuesday(0)
  10221.      Msgbox notesrc.Wednesday(0)
  10222.      Msgbox notesrc.Thursday(0)
  10223.      Msgbox notesrc.Friday(0)
  10224.      Msgbox notesrc.Saturday(0)
  10225. %END REM
  10226.      noteDest.Sunday = noteSrc.sunday(0)
  10227.      noteDest.Monday = noteSrc.monday(0)
  10228.      noteDest.tuesday = noteSrc.Tuesday(0)
  10229.      noteDest.Wednesday = noteSrc.Wednesday(0)
  10230.      noteDest.Thursday = noteSrc.Thursday(0)
  10231.      noteDest.Friday = noteSrc.Friday(0)
  10232.      noteDest.Saturday = noteSrc.Saturday(0)
  10233.      
  10234.      For x = 1 To 7
  10235.           Set item = noteSrc.GetFirstItem("$Times" & x)
  10236.           If Not(item Is Nothing) Then 
  10237.                Call noteDest.RemoveItem(item.name)
  10238.                Call item.copyitemtodocument(noteDest,"")
  10239.           End If               
  10240.      Next
  10241.      
  10242. End Sub
  10243. '++LotusScript Development Environment:2:1:GetDBPath:1:8
  10244. Function GetDBPath
  10245.         'check to see if the database is in a directory
  10246.      If Instr(db.filepath,"\") Then
  10247.           getdbpath = Left$(db.filepath, Instr(db.filepath,"\")-1) + "/" + Right$(db.filepath,Len(db.filepath)-Instr(db.filepath,"\"))
  10248.      Elseif Instr(db.filepath, " ") Then
  10249.           tmpstring$ = db.filepath
  10250.           pos% = 1
  10251.           While Instr(pos%, tmpstring$, " ") > 0 
  10252.                'extract to the space
  10253.                posofspace% = Instr(pos%, tmpstring$, " ")
  10254.                'replace the space with a + sign
  10255.                tmpstring$ = Left$(tmpstring$, posofspace% -1 )+"+"+Right$(tmpstring$, (Len(tmpstring$)-posofspace%))
  10256.                pos% = posofspace%+1
  10257.           Wend
  10258.           getdbpath = tmpstring$
  10259.      Else
  10260.           getdbpath = db.filepath
  10261.      End If
  10262.      
  10263. End Function
  10264. O=Lotus Notes
  10265. O=Lotus Notes
  10266. PURSAFO
  10267. |.:#U
  10268. O=Lotus Notes
  10269. CN=Lotus Notes Template Development/O=Lotus Notes
  10270. PURSAFO
  10271. Fde!f^^
  10272. {>(S*?
  10273. $ScriptLib
  10274. $ScriptLib_O
  10275. $TITLE
  10276. $Flags
  10277. $PublicAccess
  10278. Started running agent 'wAppointmentOpen' on 08/03/97 06:58:01 PM
  10279. Ran LotusScript code
  10280. Done running agent 'wAppointmentOpen' on 08/03/97 06:58:02 PM
  10281. Started running agent 'wAppointmentSave' on 08/03/97 06:44:29 PM
  10282. Ran LotusScript code
  10283. Done running agent 'wAppointmentSave' on 08/03/97 06:44:31 PM
  10284. Started running agent 'wNoticeOpen' on 08/03/97 06:39:58 PM
  10285. Ran LotusScript code
  10286. Done running agent 'wNoticeOpen' on 08/03/97 06:39:59 PM
  10287. (web wInviteeResponses)wInviteeResponsesCDn
  10288. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###############################
  10289. (wTask)
  10290. fL3u>
  10291. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  10292. ##########################################################
  10293. (wPreferencesSave)
  10294. fL3u\
  10295. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################################
  10296. (wPreferencesOpen)
  10297. fL3ut
  10298. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################################
  10299. (wMemo)
  10300. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  10301. ##########################################################
  10302. (wInviteeResponsesSave)
  10303. CN=Harry Peebles/O=IrisCN=Lou Reed/O=bogusCN=Harry Peebles/O=IrisCN=Ryan Jansen/O=IrisCN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesfL3u
  10304. ##############
  10305. (wInviteeResponsesOpen)
  10306. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############################################
  10307. (wFoldersSave)
  10308. CN=Harry Peebles/O=IrisCN=Lou Reed/O=bogusCN=Harry Peebles/O=IrisCN=Ryan Jansen/O=IrisCN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesfL3u
  10309. #######################
  10310. (wFoldersOpen)
  10311. CN=Harry Peebles/O=IrisCN=Lou Reed/O=bogusCN=Harry Peebles/O=IrisCN=Ryan Jansen/O=IrisCN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesfL3u
  10312. #######################
  10313. ##########################################################
  10314. ##########################################################
  10315. ##########################################################
  10316.  wInviteeResponses
  10317. Hidden: 
  10318. wInviteeResponsesOpen
  10319. $$QueryOpenAgent
  10320. wInviteeResponsesSave
  10321. $$QuerySaveAgent
  10322. Path_Info
  10323. Path_Info
  10324. Query_String
  10325. Query_String
  10326. MailOptions
  10327. SaveOptions
  10328.     Hidden w/ HTML tag in help description field:
  10329. SequenceNum[<TYPE=hidden >]
  10330. Subject[<TYPE=hidden >]
  10331. Room[<TYPE=hidden >]
  10332. Broadcast[<TYPE=hidden >]
  10333. StartDate[<TYPE=hidden >]
  10334. StartDateTime[<TYPE=hidden >]
  10335. EndDateTime[<TYPE=hidden >]
  10336. RequiredAttendees[<TYPE=hidden >]
  10337. OptionalAttendees[<TYPE=hidden >]
  10338. tmpDocUNID[<TYPE=hidden >]
  10339. Body[<TYPE=hidden >]
  10340. tmpAccepted[<TYPE=hidden >]
  10341. tmpCounter[<TYPE=hidden >]
  10342. tmpDelegated[<TYPE=hidden >]
  10343. tmpDelegee[<TYPE=hidden >]
  10344. tmpDeclined[<TYPE=hidden >]
  10345. tmpWaiting[<TYPE=hidden >]
  10346. tmpUnivited[<TYPE=hidden >]
  10347.     0S0E
  10348.     Send Notification
  10349.     [<b>  </b>]
  10350. tmpNoticeType
  10351. Confirm Meeting|1Cancel Meeting|0
  10352.     [<BR>]Subject: 
  10353. dispSubject
  10354. dispSubject
  10355.     [<BR>
  10356.  
  10357.     <BR>]
  10358. [<b>  </b>]
  10359. Accepted
  10360. [<b>  </b>]
  10361. Counter proposed
  10362. dispAccepted
  10363. dispAccepted
  10364. [<BR>]
  10365. dispCounter
  10366. dispCounter
  10367. [<b>  </b>]
  10368. Delegated
  10369. [<b>  </b>]
  10370. Declined
  10371. dispDelegated
  10372. dispDelegated
  10373. [<BR>]
  10374. dispDeclined
  10375. dispDeclined
  10376. [<b>  </b>]
  10377. No response
  10378. [<b>  </b>]
  10379. Removed
  10380. dispWaiting
  10381. dispWaiting
  10382. [<BR>]
  10383. dispUnivited
  10384. dispUnivited
  10385. tmpResAccepted
  10386. tmpResDeclined
  10387. tmpResWaiting
  10388.     1S2S3S4S5S6S7S8S9S10S
  10389. dispResAccepted
  10390. dispResDeclined
  10391. dispResWaiting
  10392.     1S2S3S4S5S6S7S8S9S10S
  10393.     Rooms/Resources
  10394. Reserved
  10395. Unavailable
  10396. dispResAccepted
  10397. dispResAccepted
  10398. [<BR>]
  10399. dispResDeclined
  10400. dispResDeclined
  10401. No response
  10402. dispResWaiting
  10403. dispResWaiting
  10404. [<BR>]
  10405. Categori_zeK
  10406. _Edit Document
  10407. Send Docu_ment
  10408. _Forward
  10409. _Move To Folder...
  10410. _Remove From FolderK
  10411. In Box*
  10412. ($InBox)
  10413. Calendar
  10414.     1S2S8S12S14S
  10415. path"
  10416. /($Calendar)?OpenView&Grid=
  10417. CalendarProfile
  10418. wCalGridType
  10419.     0R3S4S5S6S7S8S12S
  10420. Meetings.
  10421. ($Meetings)
  10422. To Do
  10423. ($ToDo)
  10424. All Views
  10425. O=Lotus Notes
  10426. O=Lotus Notes
  10427. PURSAFO
  10428. |.:#U
  10429. O=Lotus Notes
  10430. CN=Lotus Notes Template Development/O=Lotus Notes
  10431. PURSAFO
  10432. Fde!f^^
  10433. $TITLE
  10434. $INFO
  10435. $$ScriptName
  10436. StartDate
  10437. StartDateTime
  10438. EndDateTime
  10439. $BODY
  10440. $ACTIONS
  10441. Started running agent 'wTask' on 07/27/97 10:42:02 PM
  10442. Ran LotusScript code
  10443. Done running agent 'wTask' on 07/27/97 10:42:03 PM
  10444. '++LotusScript Development Environment:2:5:(Options):0:74
  10445. Option Public
  10446. Use "WebLib"
  10447. '++LotusScript Development Environment:2:5:(Forward):0:1
  10448. Declare Sub Postopen(IsNewDoc As Variant) 
  10449. Declare Sub Querysave(Continue As Variant)
  10450. Declare Sub Queryclose(Continue As Variant)
  10451. Declare Sub CheckDueDate
  10452. Declare Sub CheckStartDate
  10453. Declare Sub SaveNotification(ReplyType, MessageText, NewState, ViewIcon)
  10454. Declare Sub Initialize
  10455. Declare Sub Postrecalc(Continue As Variant)
  10456. '++LotusScript Development Environment:2:5:(Declarations):0:10
  10457. Dim newnote As NotesDocument
  10458. Dim DoNotClose As Variant
  10459. Dim ContinueSave As Variant
  10460. Dim TaskReply As Variant
  10461. Dim maildoc As NotesDocument
  10462. Dim rtitem As NotesRichTextItem
  10463. Dim dt As NotesDateTime
  10464. Dim dt2 As NotesDateTime
  10465. Dim Action As Variant
  10466. Dim CommentQuery As Variant
  10467. Dim StartDate As Variant
  10468. Dim DueDate As Variant
  10469. Dim Subject As Variant
  10470. Dim NewSubject As String
  10471. Dim ComposeReply As Variant
  10472. Dim ConvertedTask As Variant
  10473. Dim NotifyAssignee As Variant
  10474. '++LotusScript Development Environment:2:2:Postopen:1:8
  10475. Sub Postopen(IsNewDoc As Variant) 
  10476.      If IsNewDoc Then
  10477.           Call note.ReplaceItemValue("_ViewIcon", 168)
  10478.           note.AssignState = 0
  10479.           note.ExcludeFromView = "D"
  10480.           note.OrgTable = "T0"
  10481.      End If
  10482.      
  10483.      If note.ReassignTask(0) = "1" Then
  10484.           'this mean that it is now assigned to myself
  10485.           note.AssignState = 0
  10486.           note.RemoveItem("AssignedTo")
  10487.           note.RemoveItem("SendTo")
  10488.           note.RemoveItem("CopyTo")
  10489.      End If
  10490.      
  10491.      If Not(note.HasItem("DueState")) Then note.DueState = 1
  10492. End Sub
  10493. '++LotusScript Development Environment:2:2:Querysave:1:8
  10494. Sub Querysave(Continue As Variant)
  10495.      Set dt = New NotesDateTime("")
  10496.      dt.SetNow         
  10497.      
  10498.      Action = note.tmpAction(0)
  10499.      Select Case Action
  10500.      Case "Complete"
  10501. 'AssignState = 0 if assigned to self, 1 if assigned to others but not sent, 2 if assigned and sent, and 9 if complete.
  10502.           If note.HasItem(Principal) Then
  10503.                FromName = note.Principal(0)
  10504.           Else
  10505.                FromName = note.From(0)
  10506.           End If          
  10507.           oldAssignState = note.AssignState(0)
  10508.           Subject = note.Subject(0)
  10509.           NewSubject = "Task:  " & Subject & " is complete as of " & dt.LSLocalTime
  10510.           
  10511.           Select Case oldAssignState
  10512.           Case 0, 1 '0=assigned to yourself.  1=assigned to someone else but not sent
  10513.                Gosub CompleteThisTask
  10514.           Case 8, 9 '9=complete
  10515.                wNotifyUser Subject & " is already closed."
  10516.           Case Else 'it was assigned to someone other that the originator
  10517.                If (NotifyAssignee ) Then
  10518.                     Call SaveNotification("completion", "I have completed task: ", 9, 82)
  10519.                Else
  10520.                     note.AssignState = 9
  10521.                     note.DueState = 9
  10522.                     Call note.ReplaceItemValue("_ViewIcon", 82)
  10523.                End If
  10524.                continue = False
  10525.                Exit Sub
  10526.           End Select
  10527.           CloseDoc = True
  10528.      Case "Reassign"
  10529.           Subject = note.Subject(0)
  10530.           NewSubject = "Please reassign Task:  " & Subject
  10531.           Call SaveNotification("reassignment", "Please reassign this task: ", 8, 81)
  10532.           continue = False
  10533.           Exit Sub
  10534.      Case Else
  10535.           If Action = "Send" Then
  10536.                note.MailOptions = "1"
  10537.           End If
  10538. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future, 8=Rejected, 9=Complete
  10539. 'If it is complete we do not want to change it's DueState          
  10540.           If note.DueState(0) <> 9 Then
  10541.                DueDate = note.DueDateTime
  10542.                StartDate = note.StartDateTime
  10543.                If StartDate(0) = "" Then
  10544.                     If DueDate(0) = "" Then
  10545.                          note.DueState = 1
  10546.                     Else
  10547.                          CheckDueDate
  10548.                     End If
  10549.                Else
  10550.                     CheckStartDate
  10551.                     DueState = note.DueState
  10552.                     If DueDate(0) <> "" And DueState(0) <> 2 Then CheckDueDate
  10553.                End If
  10554.           End If
  10555.      End Select
  10556.      
  10557.      AssignState = note.AssignState
  10558.      SendTo = note.SendTo
  10559.      If AssignState(0) = 1 And SendTo(0) = "" Then note.AssignState = 0
  10560.      
  10561. '     note.RemoveItem("tmpAction")
  10562. '     note.RemoveItem("tmpSenderTag")
  10563.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  10564.      
  10565.      Exit Sub
  10566.      
  10567. CompleteThisTask:
  10568.      note.DueState = 9
  10569.      note.AssignState = 9
  10570.      note.CompletedDateTime = dt.LSLocalTime
  10571.      Call note.ReplaceItemValue("_ViewIcon", 82)
  10572.      Return
  10573.      
  10574. End Sub
  10575. '++LotusScript Development Environment:2:2:Queryclose:1:8
  10576. Sub Queryclose(Continue As Variant)
  10577.      AssignState = note.AssignState
  10578.      If AssignState(0) = 1 Then
  10579.           note.AssignState = 2
  10580.           note.MailOptions = "1"
  10581.           note.AssignedTo = note.SendTo
  10582.      End If
  10583. End Sub
  10584. '++LotusScript Development Environment:2:2:CheckDueDate:1:8
  10585. Sub CheckDueDate
  10586. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  10587.      Set dt2 = New NotesDateTime(DueDate(0))
  10588.      If dt.TimeDifference(dt2) > 0 Then 
  10589.           note.DueState = 0
  10590.      Else
  10591.           note.DueState = 1
  10592.      End If
  10593. End Sub
  10594. '++LotusScript Development Environment:2:2:CheckStartDate:1:8
  10595. Sub CheckStartDate
  10596. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  10597.      Set dt2 = New NotesDateTime(StartDate(0))
  10598.      If dt.TimeDifference(dt2) < 0 Then 
  10599.           note.DueState = 2
  10600.      Else
  10601.           note.DueState = 1
  10602.      End If
  10603. End Sub
  10604. '++LotusScript Development Environment:2:2:SaveNotification:1:8
  10605. Sub SaveNotification(ReplyType, MessageText, NewState, ViewIcon)
  10606.      FromCommonName = Evaluate("@Name([CN]; Principal)", note)
  10607.      If FromCommonName(0) = "" Then FromCommonName = Evaluate("@Name([CN]; From)", note)
  10608.      
  10609.      Set maildoc = New NotesDocument(db)
  10610.      Set rtitem = New NotesRichTextItem(maildoc, "Body")
  10611.      
  10612.      Dim fromname As NotesName
  10613.      If note.HasItem("Principal") Then
  10614.           Set fromname = New NotesName( note.Principal(0) )
  10615.      Else
  10616.           Set fromname = New NotesName( note.From(0) )
  10617.      End If
  10618.      
  10619.      If note.HasItem("FromDomain") Then
  10620.           maildoc.SendTo = fromname.Abbreviated & " @ " & note.FromDomain(0)
  10621.      Else
  10622.           maildoc.SendTo = fromname.Abbreviated
  10623.      End If
  10624.      
  10625.      maildoc.Subject = NewSubject
  10626.      rtitem.AppendText(MessageText & Subject & ".  ")
  10627.      maildoc.Form = "Reply"
  10628.      maildoc.Principal = Owner
  10629.      maildoc.AssignState = NewState
  10630.      maildoc.DueState = NewState
  10631.      Call maildoc.AppendItemValue("_ViewIcon", ViewIcon)
  10632.      Call maildoc.MakeResponse(note)
  10633.      Call maildoc.Save (True, True, True)
  10634.      
  10635.      note.AssignState = NewState
  10636.      note.DueState = NewState
  10637.      Call note.ReplaceItemValue("_ViewIcon", ViewIcon)
  10638.      Exit Sub
  10639. End Sub
  10640. '++LotusScript Development Environment:2:2:Initialize:1:10
  10641. Sub Initialize
  10642. 'DueState: 0=Overdue, 1=Current, 2=Future, 8=Rejected, 9=Complete
  10643. 'AssignState: 0=not assigned, 1=assigned but not sent, 2=assigned and sent, 9=complete.
  10644.      IsWebClient = True
  10645.      On Error Goto ErrorRoutine
  10646.      
  10647.      Dim IsNewDoc As Variant
  10648.      Dim Continue As Variant
  10649.      Continue = True
  10650.      
  10651.      Call wInstantiateObjectVariables
  10652.      note.MailOptions = "0"
  10653.      
  10654.      If note.Query_String(0) = "EditDocument" Then
  10655.           IsNewDoc = False
  10656.      Else
  10657.           IsNewDoc = True
  10658.      End If
  10659.      
  10660.      note.WebMessageString = ""
  10661.      Call Postopen(IsNewDoc)
  10662.      Call Postrecalc(Continue)
  10663.      
  10664.      NotifyAssignee = False
  10665.      
  10666.      If note.AssignState(0) = 0 Then
  10667.           If note.SoloTaskAction(0) = "1" Then
  10668.                note.tmpAction = "Complete"
  10669.           Else
  10670.                If (note.SendTo(0) <> "") Then
  10671.                     note.tmpAction = "Send"
  10672.                     note.AssignState = 1
  10673.                     Dim datetime As New NotesDateTime( "Today" )
  10674.                     note.PostedDate = datetime.LocalTime
  10675.                Else
  10676.                     note.tmpAction = ""
  10677.                End If
  10678.           End If
  10679.      Else
  10680.           If (note.AssignedTaskAction(0) = "1") Then
  10681.                note.tmpAction = "Complete"
  10682.           Else
  10683.                If (note.AssignedTaskAction(0) = "2") Then 
  10684.                     note.tmpAction = "Complete"
  10685.                     NotifyAssignee = True
  10686.                Else
  10687.                     If (note.AssignedTaskAction(0) = "3") Then 
  10688.                          note.tmpAction = "Reassign"
  10689.                          NotifyAssignee = True
  10690.                     Else
  10691.                          note.tmpAction = ""
  10692.                     End If
  10693.                End If
  10694.           End If
  10695.           If (note.tmpOutOfInBox(0) = "1") Then
  10696.                note.RemoveFromFolder("($InBox)")
  10697.           End If
  10698.      End If
  10699.      
  10700.      If Continue = True Then Call Querysave(Continue)
  10701.      If Continue = True Then Call Queryclose(Continue) 
  10702.      
  10703.      pos% = Instr (note.Path_Info(0), db.FileName)
  10704.      If pos% <> 0 Then 
  10705.           FilePathName$ = Left$(note.Path_Info(0), pos% + Len (db.FileName))
  10706.           If (note.WebMessageString(0) <> "") Then
  10707.                Call wGetOrMakeCalendarProfile
  10708.                'Create the action bar
  10709.                Print |<BODY TEXT="000000" BGCOLOR="ffffff">| 
  10710.                Print |<TABLE BORDER CELLSPACING=2 CELLPADDING=2>| 
  10711.                Print |<TR VALIGN=middle BGCOLOR="C0C0C0">| 
  10712.                Print |<TD><A HREF="| & FilePathName$ & |($InBox)"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn110.gif"> In Box</A></TD>| 
  10713.                Print |<TD><A HREF="| & FilePathName$ & |($Calendar)?OpenView&Grid=| & profile.wCalGridType(0) & |"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn133.gif"> Calendar</A></TD>| 
  10714.                Print |<TD><A HREF="| & FilePathName$ & |($Meetings)"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn126.gif"> Meetings</A></TD>| 
  10715.                Print |<TD><A HREF="| & FilePathName$ & |($ToDo)"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn127.gif"> To Do</A></TD>| 
  10716.                Print |<TD><A HREF="| & FilePathName$ & |"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn120.gif"> All Views</A></TD></TR>| 
  10717.                Print |</TABLE><HR><P><B>| & note.WebMessageString(0) 
  10718.           Else 
  10719.                If NotifyAssignee Then
  10720.                     Print "[" & FilePathName$ & "($All)/" & maildoc.UniversalID &  "?EditDocument&Task]"
  10721.                Else
  10722.                     Print "[" & FilePathName$ & "($ToDo)?OpenView]"
  10723.                End If
  10724.           End If
  10725.      Else
  10726.           'Should never get here ...
  10727.           If (note.WebMessageString(0) <> "") Then
  10728.                Print note.WebMessageString(0)
  10729.           Else 
  10730.                Print "The document has been saved."
  10731.           End If
  10732.      End If
  10733.      
  10734.      note.Form = "Task"
  10735.      Call MarkTempFields( note )
  10736.      If (note.AssignedTaskAction(0) = "") Then
  10737.           note.RemoveItem("AssignedTaskAction")
  10738.      End If
  10739.      note.RemoveItem("WebMessageString")
  10740.      Exit Sub
  10741.      
  10742. ErrorRoutine:
  10743.      Print  Error & " (wTask)"
  10744.      Exit Sub
  10745. End Sub
  10746. '++LotusScript Development Environment:2:2:Postrecalc:1:8
  10747. Sub Postrecalc(Continue As Variant)
  10748.      If note.StartDateTime(0) = "" Or note.DueDateTime(0) = "" Then Exit Sub
  10749.      
  10750.      Set dt = New NotesDateTime(note.StartDateTime(0))
  10751.      Set dt2 = New NotesDateTime(note.DueDateTime(0))
  10752.      
  10753.      If dt.TimeDifference(dt2) > 0 Then 
  10754.           wNotifyUser "The Due Date must be greater than the Start Date. Please re-edit this document."
  10755.           Continue = False
  10756.      End If
  10757. End Sub
  10758. `    `    @
  10759. G0    }`
  10760.     }4    #1
  10761. Gp    8"
  10762. Principal
  10763. O=Lotus Notes
  10764. O=Lotus Notes
  10765. PURSAFO
  10766. |.:#U
  10767. O=Lotus Notes
  10768. CN=Lotus Notes Template Development/O=Lotus Notes
  10769. PURSAFO
  10770. Fde!f^^
  10771. $TITLE
  10772. $AssistType
  10773. $AssistLastRun
  10774. $AssistDocCount
  10775. $AssistFlags
  10776. $AssistTrigger
  10777. $AssistInfo
  10778. $AssistQuery
  10779. $AssistAction
  10780. $AssistAction_Ex
  10781. Started running agent 'wPreferencesSave' on 07/13/97 12:29:29 PM
  10782. Ran LotusScript code
  10783. Done running agent 'wPreferencesSave' on 07/13/97 12:29:30 PM
  10784. '++LotusScript Development Environment:2:5:(Options):0:74
  10785. Option Public 
  10786. Use "WebLib" 
  10787. '++LotusScript Development Environment:2:5:(Forward):0:1
  10788. Declare Sub Initialize
  10789. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10790. '++LotusScript Development Environment:2:2:Initialize:1:10
  10791. Sub Initialize
  10792.      IsWebClient = True
  10793.      Call wInstantiateObjectVariables
  10794.      Call wGetOrMakeCalendarProfile
  10795.      
  10796.      On Error Goto ErrorRoutine
  10797.      
  10798.      Call CopyProfileValues(note, profile)
  10799.      profile.wDefaultMailOpt = note.DefaultMailOpt
  10800.      profile.wEnableTrashIcon = note.EnableTrashIcon
  10801.      profile.wCalGridType = note.CalGridType
  10802.      
  10803.      profile.wEnableNABs = note.EnableNABLinks 
  10804.      profile.wNAB1 = note.LinkName1 
  10805.      profile.wNAB2 = note.LinkName2     
  10806.      profile.wNAB3 = note.LinkName3 
  10807.      profile.wNAB4 = note.LinkName4 
  10808.      profile.wNABurl1 = note.URL1    
  10809.      profile.wNABurl2 = note.URL2 
  10810.      profile.wNABurl3 = note.URL3 
  10811.      profile.wNABurl4 = note.URL4  
  10812.      
  10813.      profile.wEnableFavorites = note.EnableFavoriteLinks  
  10814.      profile.wFavorite1 = note.FolderName1  
  10815.      profile.wFavorite2 = note.FolderName2 
  10816.      profile.wFavorite3= note.FolderName3 
  10817.      profile.wFavorite4 = note.FolderName4
  10818.      profile.wFavorite5= note.FolderName5 
  10819.      profile.wFavorite6 = note.FolderName6
  10820.      profile.wFavoriteURL1 = note.fURL1
  10821.      profile.wFavoriteURL2 = note.fURL2
  10822.      profile.wFavoriteURL3 = note.fURL3 
  10823.      profile.wFavoriteURL4 = note.fURL4
  10824.      profile.wFavoriteURL5 = note.fURL5
  10825.      profile.wFavoriteURL6 = note.fURL6
  10826.      profile.wIsFolder1 = note.IsFolder1
  10827.      profile.wIsFolder2 = note.IsFolder2 
  10828.      profile.wIsFolder3 = note.IsFolder3
  10829.      profile.wIsFolder4 = note.IsFolder4
  10830.      profile.wIsFolder5 = note.IsFolder5
  10831.      profile.wIsFolder6 = note.IsFolder6
  10832.      
  10833.      Call profile.Save(True,True,True)
  10834.      
  10835.      pos% = Instr (note.Path_Info(0), db.FileName)
  10836.      If pos% = 0 Then 
  10837.           Print "The preference settings have been saved."
  10838.      Else
  10839.           Print "[" & Left$(note.Path_Info(0), pos% + Len (db.FileName)) & "($Inbox)]"
  10840.      End If
  10841.      Exit Sub
  10842.      
  10843. ErrorRoutine:
  10844.      Print Error & " (wPreferences)" 
  10845.      Exit Sub
  10846. End Sub
  10847. }<    Kd
  10848. O=Lotus Notes
  10849. O=Lotus Notes
  10850. PURSAFO
  10851. |.:#U
  10852. O=Lotus Notes
  10853. CN=Lotus Notes Template Development/O=Lotus Notes
  10854. PURSAFO
  10855. Fde!f^^
  10856. $TITLE
  10857. $AssistType
  10858. $AssistLastRun
  10859. $AssistDocCount
  10860. $AssistFlags
  10861. $AssistTrigger
  10862. $AssistInfo
  10863. $AssistQuery
  10864. $AssistAction
  10865. $AssistAction_Ex
  10866. Started running agent 'wPreferencesOpen' on 07/14/97 05:54:26 PM
  10867. Ran LotusScript code
  10868. Done running agent 'wPreferencesOpen' on 07/14/97 05:54:27 PM
  10869. '++LotusScript Development Environment:2:5:(Options):0:74
  10870. Option Public 
  10871. Use "WebLib"
  10872. '++LotusScript Development Environment:2:5:(Forward):0:1
  10873. Declare Sub Initialize
  10874. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10875. '++LotusScript Development Environment:2:2:Initialize:1:10
  10876. Sub Initialize
  10877.      IsWebClient = True
  10878.      Call wInstantiateObjectVariables
  10879.      Call wGetOrMakeCalendarProfile
  10880.      
  10881.      On Error Goto ErrorRoutine
  10882.      
  10883.      Call CopyProfileValues(profile, note)    
  10884.      note.DefaultMailOpt = profile.wDefaultMailOpt
  10885.      note.EnableTrashIcon = profile.wEnableTrashIcon
  10886.      note.CalGridType = profile.wCalGridType
  10887.      
  10888.      note.EnableNABLinks = profile.wEnableNABs
  10889.      note.LinkName1 = profile.wNAB1
  10890.      note.LinkName2 = profile.wNAB2     
  10891.      note.LinkName3 = profile.wNAB3
  10892.      note.LinkName4 = profile.wNAB4
  10893.      note.URL1 = profile.wNABurl1
  10894.      note.URL2 = profile.wNABurl2
  10895.      note.URL3 = profile.wNABurl3
  10896.      note.URL4 = profile.wNABurl4
  10897.      
  10898.      note.EnableFavoriteLinks = profile.wEnableFavorites
  10899.      note.FolderName1 = profile.wFavorite1
  10900.      note.FolderName2 = profile.wFavorite2
  10901.      note.FolderName3 = profile.wFavorite3
  10902.      note.FolderName4 = profile.wFavorite4
  10903.      note.FolderName5 = profile.wFavorite5
  10904.      note.FolderName6 = profile.wFavorite6
  10905.      note.fURL1 = profile.wFavoriteURL1
  10906.      note.fURL2 = profile.wFavoriteURL2
  10907.      note.fURL3 = profile.wFavoriteURL3
  10908.      note.fURL4 = profile.wFavoriteURL4
  10909.      note.fURL5 = profile.wFavoriteURL5
  10910.      note.fURL6 = profile.wFavoriteURL6
  10911.      note.IsFolder1 = profile.wIsFolder1
  10912.      note.IsFolder2 = profile.wIsFolder2
  10913.      note.IsFolder3 = profile.wIsFolder3
  10914.      note.IsFolder4 = profile.wIsFolder4
  10915.      note.IsFolder5 = profile.wIsFolder5
  10916.      note.IsFolder6 = profile.wIsFolder6
  10917.      Exit Sub
  10918.      
  10919. ErrorRoutine:
  10920.      Messagebox Error & " (wPreferences)" 
  10921.      Exit Sub
  10922. End Sub
  10923. O=Lotus Notes
  10924. O=Lotus Notes
  10925. PURSAFO
  10926. |.:#U
  10927. O=Lotus Notes
  10928. CN=Lotus Notes Template Development/O=Lotus Notes
  10929. PURSAFO
  10930. Fde!f^^
  10931. $TITLE
  10932. $AssistType
  10933. $AssistLastRun
  10934. $AssistDocCount
  10935. $AssistFlags
  10936. $AssistTrigger
  10937. $AssistInfo
  10938. $AssistQuery
  10939. $AssistAction
  10940. $AssistAction_Ex
  10941. Started running agent 'wMemo' on 07/27/97 09:40:58 PM
  10942. Ran LotusScript code
  10943. Done running agent 'wMemo' on 07/27/97 09:40:59 PM
  10944. '++LotusScript Development Environment:2:5:(Options):0:74
  10945. Option Public
  10946. Use "WebLib"
  10947. '++LotusScript Development Environment:2:5:(Forward):0:1
  10948. Declare Sub Initialize
  10949. '++LotusScript Development Environment:2:5:(Declarations):0:2
  10950. '++LotusScript Development Environment:2:2:Initialize:1:10
  10951. Sub Initialize
  10952.      
  10953.      IsWebClient = True
  10954.      Call wInstantiateObjectVariables
  10955.      
  10956.      If False = wGetCalendarProfile Then Goto MustSetCalendarProfile
  10957.      
  10958.      On Error Goto ErrorRoutine
  10959.      
  10960.      If (note.HasItem("MailSavedForm")) Then
  10961.           'we're doing a resend, which could be any kind of form
  10962.           optionValue$ = "1"
  10963.           note.Form = note.MailSavedForm
  10964.           note.RemoveItem("MailSavedForm")
  10965.           note.From = note.tmpFrom
  10966.      Else
  10967.           optionValue$ = note.tmpSendOptions(0)
  10968.           Select Case note.Form(0)
  10969.           Case "Memo"
  10970.                'cool
  10971.           Case "Reply"
  10972.                'cool
  10973.           Case "Phone Message"
  10974.                'cool
  10975.           Case Else
  10976.                'we don't know what kind of form this is
  10977.                optionValue$ = "2"
  10978.           End Select
  10979.      End If
  10980.      
  10981.      Dim datetime As New NotesDateTime( "Today" )
  10982.      Call datetime.SetNow
  10983.      
  10984.      Select Case optionValue$
  10985.      Case "1"
  10986.      'Send Only
  10987.           Call note.RemoveItem("$AutoEditMode")
  10988.           note.PostedDate = datetime.LSLocalTime
  10989.           note.SaveOptions = "0"
  10990.           note.MailOptions = "1"
  10991.           note.From = note.tmpFrom
  10992.      Case "2"
  10993.      'Send & Save
  10994.           Call note.RemoveItem("$AutoEditMode")
  10995.           note.PostedDate = datetime.LSLocalTime
  10996.           note.SaveOptions = "1"
  10997.           note.MailOptions = "1"
  10998.           note.From = note.tmpFrom
  10999.      Case "3"
  11000.      'Save as draft
  11001.           Call note.AppendItemValue( "$AutoEditMode", "1" )
  11002.           Call note.RemoveItem("PostedDate")
  11003.           note.SaveOptions = "1"
  11004.           note.MailOptions = "0"
  11005.      End Select
  11006.      
  11007.      pathinfo$ = note.Path_Info(0)
  11008.      InfoPathPos% = Instr (pathinfo$, db.FileName)
  11009.      
  11010.      Dim view As NotesView
  11011.      targetview$ = ""
  11012.      targetviewargs$ = ""
  11013.      tmppathinfo$ = note.tmpPath_Info(0)
  11014.      fromstr$ = "&From="
  11015.      pos%  = Instr (tmppathinfo$, fromstr$)
  11016.      
  11017.      If pos% <> 0 Then
  11018.           'locate the view to return to, which was passed in as a URL argument 
  11019.           targetview$ = Right$ ( tmppathinfo$, Len( tmppathinfo$) - pos% - Len(fromstr$) + 1)
  11020.           pos%  = Instr (targetview$, "&")
  11021.           If (pos% <> 0) Then
  11022.                'locate any arguments to pass to that view
  11023.                targetviewargs$ = Right$ (targetview$, Len (targetview$) - pos% + 1)
  11024.                targetview$ = Left$ (targetview$, pos% - 1)
  11025.           End If
  11026.      Else
  11027.           'the view name was not passed as an argument, so pull it out of the URL if possible
  11028.           workstr$ = Right$ (pathinfo$, Len (pathinfo$) - (InfoPathPos% + Len (db.FileName)))
  11029.           pos%  = Instr (workstr$, "/")
  11030.           If (pos% <> 0 ) Then
  11031.                targetview$ = Left$ (workstr$, pos% - 1)
  11032.           Else
  11033.                pos%  = Instr (workstr$, "?")
  11034.                If (pos% <> 0 ) Then
  11035.                     targetview$ = Left$ (workstr$, pos% - 1)
  11036.                Else
  11037.                     targetview$ = workstr$
  11038.                End If
  11039.                'is it a view name?
  11040.                On Error Resume Next
  11041.                Set view  = notesDatabase.GetView( viewName$ )
  11042.                On Error Goto ErrorRoutine
  11043.                If (view Is Nothing) Then 
  11044.                     'or is it a unid?
  11045.                     ViewList = db.Views
  11046.                     found = False
  11047.                     Forall tView In ViewList
  11048.                          If (tView.UniversalID = targetview$) Then
  11049.                               found = True
  11050.                               Exit Forall
  11051.                          End If
  11052.                     End Forall
  11053.                     If Not found Then targetview$ = ""     'no
  11054.                End If
  11055.           End If
  11056.      End If
  11057.      
  11058.      If InfoPathPos% <> 0 Then 
  11059.           FileAndPath$ = Left$(pathinfo$, InfoPathPos% + Len (db.FileName))
  11060.           If note.tmpBackToTask(0) = "1" Then
  11061.                Print "[" & FileAndPath$ & "($ToDo)?OpenView]"
  11062.           Else
  11063.                If targetview$ <> "" Then
  11064.                     Print "[" & FileAndPath$ & targetview$ & "?OpenView" & targetviewargs$ & "]"
  11065.                Else
  11066.                     Print "[" & FileAndPath$ & "($All)?OpenView]"
  11067.                End If
  11068.           End If
  11069.      Else
  11070.           Print "The document has been processed."
  11071.      End If
  11072.      
  11073.      Call MarkTempFields( note )
  11074.      Exit Sub
  11075.      
  11076. MustSetCalendarProfile:
  11077.      Print "You must set your user preferences before you can mail documents."
  11078.      Print "Select your Preferences options from the bottom left corner of the In Box view."
  11079.      note.SaveOptions = "0"
  11080.      note.MailOptions = "0"
  11081.      Exit Sub
  11082.      
  11083. ErrorRoutine:
  11084.      Print Error & " (wMemo)"
  11085.      note.SaveOptions = "0"
  11086.      note.MailOptions = "0"
  11087.      Exit Sub
  11088. End Sub
  11089. O=Lotus Notes
  11090. O=Lotus Notes
  11091. PURSAFO
  11092. |.:#U
  11093. O=Lotus Notes
  11094. CN=Lotus Notes Template Development/O=Lotus Notes
  11095. PURSAFO
  11096. Fde!f^^
  11097. $TITLE
  11098. $AssistType
  11099. $AssistLastRun
  11100. $AssistDocCount
  11101. $AssistFlags
  11102. $AssistTrigger
  11103. $AssistInfo
  11104. $AssistQuery
  11105. $AssistAction
  11106. $AssistAction_Ex
  11107. '++LotusScript Development Environment:2:5:(Options):0:74
  11108. Option Public
  11109. Use "WebLib"
  11110. Use "SharedWorkflowLibrary"
  11111. Use "AppointmentResponses"
  11112. '++LotusScript Development Environment:2:5:(Forward):0:1
  11113. Declare Sub Initialize
  11114. Declare Sub ConvertToNotice(Subject As String, NoticeType As String, ViewIcon As Integer, replaceNote As NotesDocument)
  11115. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11116. '++LotusScript Development Environment:2:2:Initialize:1:10
  11117. Sub Initialize
  11118.      
  11119.      IsWebClient = True
  11120.      Dim sendto() As Variant
  11121.      Dim names() As Variant   
  11122.      Dim CanMail As Integer
  11123.      
  11124.      Call wInstantiateObjectVariables
  11125.      Set profile = db.GetProfileDocument("CalendarProfile")     
  11126.      If profile.Owner(0) = "" Then 
  11127.           note.MailOptions = "0"
  11128.           note.SaveOptions = "0"
  11129.           Print "Document not processed. Set the mail file owner from the preferences page."
  11130.           Exit Sub
  11131.      End If
  11132.      Owner = profile.Owner(0)
  11133.      
  11134.      Dim targetNote As NotesDocument
  11135.      Set targetNote = db.GetDocumentByUNID( note.tmpDocUNID(0) )
  11136.      Call CreateInviteeTable(targetNote)
  11137.      
  11138. 'next, add the invitee responses
  11139.      Dim rtitem  As New NotesRichTextItem(note, "StatusUpdate")
  11140.      
  11141. 'The data is no longer in arrays due to the round trip thru HTML.
  11142. 'Therefore, we need to rebuild the "tmp" values.     
  11143.      Dim tempAccepted() As Variant
  11144.      Redim tempAccepted(1)
  11145.      tempAccepted(0) = ""
  11146.      note.tmpAccepted = Trim(note.tmpAccepted(0))
  11147.      If (note.tmpAccepted(0) <> "") Then
  11148.           i = 0
  11149.           workstr$ = note.tmpAccepted(0)
  11150.           pos% = Instr (workstr$, ";")
  11151.           While pos% <> 0 
  11152.                Redim Preserve tempAccepted(i + 1)
  11153.                tempAccepted(i) = Left$(workstr$, pos%-1)
  11154.                workstr$ = Right$(workstr$, Len (workstr$) - pos%)
  11155.                pos% = Instr (workstr$, ";")
  11156.                i = i + 1               
  11157.           Wend
  11158.           Redim Preserve tempAccepted(i + 1)
  11159.           tempAccepted(i) = workstr$
  11160.           note.tmpAccepted = tempAccepted
  11161.      End If
  11162.      
  11163.      Dim tempDeclined() As Variant
  11164.      Redim tempDeclined(1)
  11165.      tempDeclined(0) = ""
  11166.      note.tmpDeclined = Trim(note.tmpDeclined(0))
  11167.      If (note.tmpDeclined(0) <> "") Then
  11168.           i = 0
  11169.           workstr$ = note.tmpDeclined(0)
  11170.           pos% = Instr (workstr$, ";")
  11171.           While pos% <> 0 
  11172.                Redim Preserve tempDeclined(i + 1)
  11173.                tempDeclined(i) = Left$(workstr$, pos%-1)
  11174.                workstr$ = Right$(workstr$, Len (workstr$) - pos%)
  11175.                pos% = Instr (workstr$, ";")
  11176.                i = i + 1               
  11177.           Wend
  11178.           Redim Preserve tempDeclined(i + 1)
  11179.           tempDeclined(i) = workstr$
  11180.           note.tmpDeclined = tempDeclined
  11181.      End If
  11182.      
  11183.      Dim tempCounter() As Variant
  11184.      Redim tempCounter(1)
  11185.      tempCounter(0) = ""
  11186.      note.tmpCounter = Trim(note.tmpCounter(0))
  11187.      If (note.tmpCounter(0) <> "") Then
  11188.           i = 0
  11189.           workstr$ = note.tmpCounter(0)
  11190.           pos% = Instr (workstr$, ";")
  11191.           While pos% <> 0 
  11192.                Redim Preserve tempCounter(i + 1)
  11193.                tempCounter(i) = Left$(workstr$, pos%-1)
  11194.                workstr$ = Right$(workstr$, Len (workstr$) - pos%)
  11195.                pos% = Instr (workstr$, ";")
  11196.                i = i + 1               
  11197.           Wend
  11198.           Redim Preserve tempCounter(i + 1)
  11199.           tempCounter(i) = workstr$
  11200.           note.tmpCounter = tempCounter
  11201.      End If
  11202.      
  11203.      Dim tempDelegated() As Variant
  11204.      Dim tempDelegee() As Variant
  11205.      Redim tempDelegated(1)
  11206.      Redim tempDelegee(1)
  11207.      tempDelegated(0) = ""
  11208.      tempDelegee(0) = ""
  11209.      note.tmpDelegated = Trim(note.tmpDelegated(0))
  11210.      If (note.tmpDelegated(0) <> "") Then
  11211.           note.tmpDelegee = Trim(note.tmpDelegee(0))
  11212.           i = 0
  11213.           workstr$ = note.tmpDelegated(0)
  11214.           workstr2$ = note.tmpDelegee(0)
  11215.           pos% = Instr (workstr$, ";")
  11216.           pos2% = Instr (workstr2$, ";")
  11217.           While pos% <> 0 
  11218.                Redim Preserve tempDelegated(i + 1)
  11219.                Redim Preserve tempDelegee(i + 1)
  11220.                tempDelegated(i) = Left$(workstr$, pos%-1)
  11221.                tempDelegee(i) = Left$(workstr2$, pos2%-1)
  11222.                workstr$ = Right$(workstr$, Len (workstr$) - pos%)
  11223.                workstr2$ = Right$(workstr2$, Len (workstr2$) - pos2%)
  11224.                pos% = Instr (workstr$, ";")
  11225.                pos2% = Instr (workstr2$, ";")
  11226.                i = i + 1               
  11227.           Wend
  11228.           Redim Preserve tempDelegated(i + 1)
  11229.           Redim Preserve tempDelegee(i + 1)
  11230.           tempDelegated(i) = workstr$
  11231.           tempDelegee(i) = workstr2$
  11232.           note.tmpDelegated = tempDelegated
  11233.      End If
  11234.      note.tmpDelegee = tempDelegee
  11235.      
  11236.      Dim tempWaiting() As Variant
  11237.      Redim tempWaiting(1)
  11238.      tempWaiting(0) = ""
  11239.      note.tmpWaiting = Trim(note.tmpWaiting(0))
  11240.      If (note.tmpWaiting(0) <> "") Then
  11241.           i = 0
  11242.           workstr$ = note.tmpWaiting(0)
  11243.           pos% = Instr (workstr$, ";")
  11244.           While pos% <> 0 
  11245.                Redim Preserve tempWaiting(i + 1)
  11246.                tempWaiting(i) = Left$(workstr$, pos%-1)
  11247.                workstr$ = Right$(workstr$, Len (workstr$) - pos%)
  11248.                pos% = Instr (workstr$, ";")
  11249.                i = i + 1               
  11250.           Wend
  11251.           Redim Preserve tempWaiting(i + 1)
  11252.           tempWaiting(i) = workstr$
  11253.           note.tmpWaiting = tempWaiting
  11254.      End If
  11255.      
  11256.      Dim tempUninvited() As Variant
  11257.      Redim tempUninvited(1)
  11258.      tempUninvited(0) = ""
  11259.      note.tmpUninvited = Trim(note.tmpUninvited(0))
  11260.      If (note.tmpUninvited(0) <> "") Then
  11261.           i = 0
  11262.           workstr$ = note.tmpUninvited(0)
  11263.           pos% = Instr (workstr$, ";")
  11264.           While pos% <> 0 
  11265.                Redim Preserve tempUninvited(i + 1)
  11266.                tempUninvited(i) = Left$(workstr$, pos%-1)
  11267.                workstr$ = Right$(workstr$, Len (workstr$) - pos%)
  11268.                pos% = Instr (workstr$, ";")
  11269.                i = i + 1               
  11270.           Wend
  11271.           Redim Preserve tempUninvited(i + 1)
  11272.           tempUninvited(i) = workstr$
  11273.           note.tmpUninvited = tempUninvited
  11274.      End If
  11275.      
  11276. 'add all of the invitee status's to the rich text item     
  11277.      If (tempAccepted(0) <> "") Then
  11278.           Forall people In tempAccepted
  11279.                If people = "" Then Exit Forall
  11280.                Call rtitem.AppendText(Cstr(people) & " -> Accepted")
  11281.                Call rtitem.AddNewLine(1)          
  11282.           End Forall  
  11283.      End If
  11284.      If (tempDeclined(0) <> "") Then
  11285.           Forall people In tempDeclined
  11286.                If people = "" Then Exit Forall
  11287.                Call rtitem.AppendText(Cstr(people) & " -> Declined")
  11288.                Call rtitem.AddNewLine(1)          
  11289.           End Forall               
  11290.      End If
  11291.      If (tempCounter(0) <> "") Then
  11292.           Forall people In tempCounter
  11293.                If people = "" Then Exit Forall
  11294.                Call rtitem.AppendText(Cstr(people) & " -> Counter Proposed")
  11295.                Call rtitem.AddNewLine(1)          
  11296.           End Forall               
  11297.      End If
  11298.      If (tempDelegated(0) <> "") Then
  11299.           x = 0
  11300.           Forall people In tempDelegated
  11301.                If people = "" Then Exit Forall
  11302.                Call rtitem.AppendText(Cstr(people) & " -> Delegated to " & tempDelegee(x))
  11303.                x= x+1
  11304.                Call rtitem.AddNewLine(1)          
  11305.           End Forall               
  11306.      End If
  11307.      Call rtitem.AddNewLine(1)               
  11308. 'now, include the people who did not respond
  11309.      If (tempWaiting(0) <> "") Then          
  11310.           Call rtitem.AppendText("Waiting for reply:")
  11311.           Call rtitem.AddNewLine(1)
  11312.           Forall people In tempWaiting
  11313.                If people = "" Then Exit Forall
  11314.                Call rtitem.AppendText(Cstr(people))
  11315.                Call rtitem.AddNewLine(1)
  11316.           End Forall
  11317.      End If
  11318. 'include the people who were uninvited
  11319.      If (tempUninvited(0) <> "") Then
  11320.           Call rtitem.AppendText("Uninvited:")          
  11321.           Call rtitem.AddNewLine(1)
  11322.           Forall  people In tempUninvited
  11323.                If people = "" Then Exit Forall
  11324.                Call rtitem.AppendText(Cstr(people))
  11325.                Call rtitem.AddNewLine(1)
  11326.           End Forall          
  11327.      End If
  11328.      
  11329.      NamesToSend = Evaluate("@Trim(tmpAccepted:tmpWaiting)", note)
  11330.      If (NamesToSend(0) <> "") Then          
  11331.           CanMail = True
  11332.           Redim sendto(Ubound(NamesToSend))
  11333.           For i = 0 To Ubound(NamesToSend)
  11334.                sendto(i) = NamesToSend(i)
  11335.           Next
  11336.           i = i + 1          
  11337.      End If
  11338.      
  11339.      DelegeesToSend = Evaluate("@Trim(@Replace(tmpDelegee;tmpDeclined:tmpDelegated;""""))",note)
  11340.      If (DelegeesToSend(0) <> "") Then    
  11341.           CanMail = True          
  11342.           Redim Preserve sendto(i + Ubound(DelegeesToSend))
  11343.           For x = 0 To Ubound(DelegeesToSend)
  11344.                sendto(i) = DelegeesToSend(x)
  11345.                i = i + 1
  11346.           Next
  11347.      End If
  11348.      
  11349.      If CanMail Then
  11350.           'Prep the target addresses
  11351.           Redim names(Ubound(sendto))
  11352.           For i = 0 To Ubound(sendto)
  11353.                names(i) = GetInviteeMailAddress(Cstr(sendto(i)))
  11354.           Next
  11355.           
  11356.           If (note.tmpNoticeType(0) = "1") Then
  11357.                Call ConvertToNotice ("Confirmed -", ORS_MSGTYPE_CONFIRMATION, 10, targetNote)
  11358.                messagestring$ = "A confirmation notice has been sent to the invitees."
  11359.           Else
  11360.                Call ConvertToNotice ("Cancelled -", ORS_MSGTYPE_CANCEL, 81, targetNote)
  11361.                messagestring$ = "The invitees have been notified that this appointment has been cancelled."
  11362.                
  11363. 'if this document had an alarm, remove it from the alarms folder
  11364.                If (targetNote.HasItem("$Alarm")) Then Call targetNote.RemoveFromFolder("$Alarms")
  11365.                
  11366. 'update the appointment document
  11367.                targetNote.RemoveItem("CalendarDateTime")
  11368.                targetNote.NoticeType = ORS_MSGTYPE_CANCEL
  11369.                targetNote.Subject = "Cancelled - " & targetNote.Subject(0)
  11370.                Call targetNote.ReplaceItemValue("$BusyPriority","2")     
  11371.                Call targetNote.Save(True, True, True)
  11372.           End If
  11373.           Call note.MakeResponse(targetNote)
  11374.           note.SendTo = names
  11375.      Else
  11376.           note.MailOptions = "0"
  11377.           note.SaveOptions = "0"
  11378.           messagestring$ = "No attendees are expected to attend this meeting. Therefore, no notification has been sent."
  11379.      End If
  11380.      
  11381.      Print |<BODY TEXT="000000" BGCOLOR="ffffff">| 
  11382.      pos% = Instr (note.Path_Info(0), db.FileName)
  11383.      PathAndName$ = Left$(note.Path_Info(0), pos% + Len (db.FileName))
  11384.      If pos% <> 0 Then 
  11385.           Call wMessagePageHeader
  11386.      'Else
  11387.           'For some reason we cannot build the ref string
  11388.      End If
  11389.      Call MarkTempFields(note)
  11390.      
  11391. PrintTheMessage:
  11392.      Print "<P><B>" & messagestring$
  11393. End Sub
  11394. '++LotusScript Development Environment:2:2:ConvertToNotice:1:8
  11395. Sub ConvertToNotice(Subject As String, NoticeType As String, ViewIcon As Integer, replaceNote As NotesDocument)
  11396.  *Parameters
  11397.     Subject -> value of subject item
  11398.     NoticeType -> type of notice being sent
  11399.     ViewIcon -> icon to display in view
  11400. %END REM
  11401.      
  11402.      Dim ChairItem As NotesItem   
  11403.      On Error Goto ErrorRoutine
  11404.      
  11405. 'determine the context of the current note
  11406.      Context = GetContextSub ( replaceNote )
  11407.      Select Case Context
  11408.      Case 1,3
  11409. '1 = non-repeat notice, 3 = repeat notice -> make the notice doc a response to the parentnote
  11410.           If(note.HasItem("ApptUNID")) Then
  11411.                If(note.ApptUNID(0) <> parentnote.UniversalID) Then
  11412.                     Call note.MakeResponse(replaceNote)
  11413.                     note.ApptUNID = replaceNote.UniversalID
  11414.                Else
  11415.                     Call note.MakeResponse(parentnote)
  11416.                     note.ApptUNID = parentnote.UniversalID
  11417.                End If
  11418.           Else
  11419.                Call note.MakeResponse(parentnote)    
  11420.                note.ApptUNID = parentnote.UniversalID
  11421.           End If
  11422.      Case 2,4
  11423. '2 = repeat instance, 4 = non-repeat instance -> make the notice doc a response to the current note
  11424.           If(note.HasItem("ApptUNID")) Then
  11425.                If(note.ApptUNID(0) <> note.UniversalID) Then
  11426.                     Call note.MakeResponse(replaceNote)
  11427.                     note.ApptUNID = replaceNote.UniversalID      
  11428.                Else                    
  11429.                     Call note.MakeResponse(replaceNote)
  11430.                     note.ApptUNID = replaceNote.UniversalID
  11431.                End If
  11432.           Else
  11433.                Call note.MakeResponse(replaceNote)              
  11434.                note.ApptUNID = replaceNote.UniversalID           
  11435.           End If
  11436.      End Select
  11437.      
  11438.      Call note.ReplaceItemValue("$RefOptions","1")
  11439.      
  11440.      note.Form = "Notice"
  11441.      note.AppointmentType = "3"
  11442.      note.ExcludeFromView = "D" 
  11443.      note.Principal = Owner
  11444.      note.From = replaceNote.From
  11445.      note.Chair = Owner
  11446.      note.NoticeType = NoticeType
  11447.      num# = replaceNote.SequenceNum(0)
  11448.      note.SequenceNum = num#
  11449.      
  11450. 'add the required attendees -> we need to know what context the current document is in
  11451. 'this is because non-repeat notices, repeat notices, and non-repeat appointments have this information
  11452. 'repeat instances need to get this info from their parent
  11453.      Select Case Context
  11454.      Case 1,3,4
  11455. '1 = non-repeat notice,3 = repeat notice,4 = non-repeat instance -> get the values from the current note
  11456.           'note.RequiredAttendees = note.RequiredAttendees
  11457.           'note.OptionalAttendees = note.OptionalAttendees
  11458.      Case 2
  11459. 'the repeat instance document does not have this information -> get it from the parent
  11460.           note.RequiredAttendees = parentnote.RequiredAttendees
  11461.           note.OptionalAttendees = parentnote.OptionalAttendees
  11462.      End Select
  11463.      
  11464.      Call note.ReplaceItemValue("_ViewIcon", ViewIcon)
  11465.      'If (note.HasItem("$PublicAccess")) Then Call notice.ReplaceItemValue("$PublicAccess","1")
  11466.      If note.HasItem("tmpRescheduleWhich") Then 
  11467.           If (NoticeType = ORS_MSGTYPE_STATUSUPDATE) Then
  11468.                note.RescheduleWhich = "0" 'just this one
  11469.           Else
  11470.                note.RescheduleWhich = note.tmpRescheduleWhich
  11471.           End If
  11472.      End If
  11473.      
  11474.      note.Topic = note.Subject
  11475.      Set startitem = note.GetFirstItem("StartDateTime")
  11476.      If (note.Room(0) <> "") Then
  11477.           note.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  11478.      Else
  11479.           note.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  11480.      End If
  11481.      
  11482.      Exit Sub
  11483.      
  11484. ErrorRoutine:
  11485.      wNotifyUser Error & " (ConvertToNotice)"
  11486.      Exit Sub
  11487. End Sub
  11488. ^L    4 
  11489. tmpAccepted
  11490. tmpWaiting
  11491.     0S0E
  11492. tmpDelegee
  11493. tmpDeclined
  11494. tmpDelegated
  11495.     0S0E
  11496. O=Lotus Notes
  11497. O=Lotus Notes
  11498. PURSAFO
  11499. |.:#U
  11500. O=Lotus Notes
  11501. CN=Lotus Notes Template Development/O=Lotus Notes
  11502. PURSAFO
  11503. Fde!f^^
  11504. SzaI    
  11505. $TITLE
  11506. $AssistType
  11507. $AssistLastRun
  11508. $AssistDocCount
  11509. $AssistFlags
  11510. $AssistTrigger
  11511. $AssistInfo
  11512. $AssistQuery
  11513. $AssistAction
  11514. $AssistAction_Ex
  11515. Started running agent 'wInviteeResponsesOpen' on 07/26/97 12:38:48 PM
  11516. Ran LotusScript code
  11517. Done running agent 'wInviteeResponsesOpen' on 07/26/97 12:38:49 PM
  11518. '++LotusScript Development Environment:2:5:(Options):0:74
  11519. Option Public
  11520. Use "WebLib"
  11521. Use "SharedWorkflowLibrary"
  11522. Use "AppointmentResponses"
  11523. '++LotusScript Development Environment:2:5:(Forward):0:1
  11524. Declare Sub Initialize
  11525. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11526. '++LotusScript Development Environment:2:2:Initialize:1:10
  11527. Sub Initialize
  11528.      IsWebClient = True
  11529.      On Error Goto ErrorRoutine
  11530.      
  11531.      Dim targetNote As NotesDocument
  11532.      Dim nName As NotesName
  11533.      Dim nName2 As NotesName
  11534.      Dim names() As String
  11535.      Dim names2() As String
  11536.      
  11537.      Call wInstantiateObjectVariables
  11538.      
  11539.      'Get the target note UNID off the URL
  11540.      QueryString$ = note.Query_String(0)
  11541.      
  11542.      'locate the URL argument
  11543.      unid$ = "&UNID="
  11544.      pos% = Instr (QueryString$, unid$)
  11545.      If (pos% = 0) Then Exit Sub
  11546.      
  11547.      'fetch the remainder of the string, which should be the UNID
  11548.      workstr$ = Right$(QueryString$, Len (QueryString$) - (Len (unid$) + pos%) + 1)
  11549.      
  11550.      'is this a valid UNID?
  11551.      Set targetNote = db.GetDocumentByUNID( workstr$ )
  11552.      If targetNote Is Nothing Then Exit Sub
  11553.      
  11554.      Call CreateInviteeTable(targetNote)
  11555.      Call GetInviteeStatus(targetNote, False)
  11556.      Call ProcessInviteeTable(targetNote)
  11557.      
  11558.      'Accepted
  11559.      note.dispAccepted = ""
  11560.      note.tmpAccepted = ""
  11561.      index% = 0
  11562.      Forall uname In UsersAccepted
  11563.           If uname <> "" Then
  11564.                Set nName = New NotesName( uname )
  11565.                If ("" = nName.Abbreviated) Then 
  11566.                     nm$ = uname
  11567.                Else
  11568.                     nm$ = nName.Abbreviated
  11569.                End If
  11570.                note.dispAccepted = note.dispAccepted(0) & nm$ & "[<BR>]"
  11571.                index% = index% + 1
  11572.                Redim Preserve names (index%)
  11573.                names(index% - 1) = nm$
  11574.           End If
  11575.      End Forall
  11576.      If index% <> 0 Then note.tmpAccepted = names
  11577.      
  11578.      'Counter Proposed
  11579.      note.dispCounter = ""
  11580.      note.tmpCounter = ""
  11581.      index% = 0
  11582.      Forall uname In UsersCountered
  11583.           If uname <> "" Then
  11584.                Set nName = New NotesName( uname )
  11585.                If ("" = nName.Abbreviated) Then 
  11586.                     nm$ = uname
  11587.                Else
  11588.                     nm$ = nName.Abbreviated
  11589.                End If
  11590.                note.dispCounter = note.dispCounter(0) & nm$ & "[<BR>]"
  11591.                index% = index% + 1
  11592.                Redim Preserve names (index%)
  11593.                names(index% - 1) = nm$
  11594.           End If
  11595.      End Forall
  11596.      If index% <> 0 Then note.tmpCounter = names
  11597.      
  11598.      'Delegated
  11599.      targetcount% = 0
  11600.      Forall uname In UsersDelegated
  11601.           If uname <> "" Then
  11602.                targetcount% = targetcount% + 1
  11603.           End If
  11604.      End Forall
  11605.      note.dispDelegated = ""
  11606.      note.tmpDelegated = ""
  11607.      note.tmpDelegee = ""
  11608.      index% = 0
  11609.      If targetcount% <> 0 Then
  11610.           For idx% = 0 To (targetcount% - 1)
  11611.                Set nName = New NotesName( UsersDelegated(idx%))
  11612.                Set nName2 = New NotesName( Delegees(idx%))
  11613.                note.dispDelegated = note.dispDelegated(0) & nName.Common & " -> " _
  11614.                & nName2.Common & "[<BR>]"
  11615.                index% = index% + 1
  11616.                Redim Preserve names (index%)
  11617.                Redim Preserve names2 (index%)
  11618.                If ("" = nName.Abbreviated) Then 
  11619.                     nm$ = UsersDelegated(idx%)
  11620.                Else
  11621.                     nm$ = nName.Abbreviated
  11622.                End If
  11623.                If ("" = nName2.Abbreviated) Then 
  11624.                     nm2$ = Delegees(idx%)
  11625.                Else
  11626.                     nm2$ = nName.Abbreviated
  11627.                End If
  11628.                names(index% - 1) = nm$
  11629.                names2(index% - 1) = nm2$
  11630.           Next idx%
  11631.           note.tmpDelegated = names
  11632.           note.tmpDelegee = names2
  11633.      End If
  11634.      
  11635.      'Declined
  11636.      note.dispDeclined = ""
  11637.      note.tmpDeclined = ""
  11638.      index% = 0
  11639.      Forall uname In UsersDeclined
  11640.           If uname <> "" Then
  11641.                Set nName = New NotesName( uname )
  11642.                If ("" = nName.Abbreviated) Then 
  11643.                     nm$ = uname
  11644.                Else
  11645.                     nm$ = nName.Abbreviated
  11646.                End If
  11647.                note.dispDeclined = note.dispDeclined(0) & nm$ & "[<BR>]"
  11648.                index% = index% + 1
  11649.                Redim Preserve names (index%)
  11650.                names(index% - 1) = nm$
  11651.           End If
  11652.      End Forall
  11653.      If index% <> 0 Then note.tmpDeclined = names
  11654.      
  11655.      'No Response
  11656.      note.dispWaiting = ""
  11657.      note.tmpWaiting = ""
  11658.      index% = 0
  11659.      Forall uname In UsersWaiting
  11660.           If uname <> "" Then
  11661.                Set nName = New NotesName( uname )
  11662.                note.dispWaiting = note.dispWaiting(0) & nName.Common & "[<BR>]"
  11663.                index% = index% + 1
  11664.                Redim Preserve names (index%)
  11665.                If nName.Abbreviated = "" Then
  11666.                     names(index% - 1) = nName.Common
  11667.                Else                    
  11668.                     names(index% - 1) = nName.Abbreviated
  11669.                End If
  11670.           End If
  11671.      End Forall
  11672.      If index% <> 0 Then note.tmpWaiting = names
  11673.      
  11674.      'Removed
  11675.      note.dispUnivited = ""
  11676.      note.tmpUnivited = ""
  11677.      index% = 0
  11678.      While targetnote.Uninvited(index%) <> ""
  11679.           Set nName = New NotesName( targetnote.Uninvited(index%))
  11680.           If ("" = nName.Abbreviated) Then 
  11681.                nm$ = targetnote.Uninvited(index%)
  11682.           Else
  11683.                nm$ = nName.Abbreviated
  11684.           End If
  11685.           note.dispUnivited = note.dispUnivited(0) & nm$ & "[<BR>]"
  11686.           index% = index% + 1
  11687.           Redim Preserve names (index%)
  11688.           names(index% - 1) = nm$
  11689.      Wend
  11690.      If index% <> 0 Then note.tmpUnivited = names
  11691.      
  11692.      'Resource Reserved
  11693.      note.dispResAccepted = ""
  11694.      Forall uname In ResourcesReserved
  11695.           If uname <> "" Then
  11696.                Set nName = New NotesName( uname )
  11697.                If ("" = nName.Abbreviated) Then 
  11698.                     nm$ = uname
  11699.                Else
  11700.                     nm$ = nName.Abbreviated
  11701.                End If
  11702.                note.dispResAccepted = note.dispResAccepted(0) & nm$ & "[<BR>]"
  11703.           End If
  11704.      End Forall
  11705.      
  11706.      'Resource Unavailable
  11707.      note.dispResDeclined = ""
  11708.      Forall uname In ResourcesDeclined
  11709.           If uname <> "" Then
  11710.                Set nName = New NotesName( uname )
  11711.                If ("" = nName.Abbreviated) Then 
  11712.                     nm$ = uname
  11713.                Else
  11714.                     nm$ = nName.Abbreviated
  11715.                End If
  11716.                note.dispResDeclined = note.dispResDeclined(0) & nm$ & "[<BR>]"
  11717.           End If
  11718.      End Forall
  11719.      
  11720.      'No Resource Response
  11721.      note.dispResWaiting = ""
  11722.      Forall uname In ResourcesWaiting
  11723.           If uname <> "" Then
  11724.                Set nName = New NotesName( uname )
  11725.                If ("" = nName.Abbreviated) Then 
  11726.                     nm$ = uname
  11727.                Else
  11728.                     nm$ = nName.Abbreviated
  11729.                End If
  11730.                note.dispResWaiting = note.dispResWaiting(0) & nm$ & "[<BR>]"
  11731.           End If
  11732.      End Forall
  11733.      
  11734.      'squirrel this stuff away for use with the QuerySaveAgent
  11735.      num# = Cdbl( targetNote.SequenceNum(0) )
  11736.      note.SequenceNum = num#
  11737.      note.Subject = targetNote.Subject
  11738.      note.dispSubject = targetNote.Subject
  11739.      note.Room = targetNote.Room
  11740.      note.Broadcast = targetNote.Broadcast
  11741.      note.StartDate = targetNote.StartDate
  11742.      note.StartDateTime = targetNote.StartDateTime
  11743.      note.EndDateTime = targetNote.EndDateTime
  11744.      note.requiredattendees = targetNote.requiredattendees
  11745.      note.optionalattendees = targetNote.optionalattendees
  11746.      note.tmpDocUNID = targetNote.UniversalID
  11747.      note.Body = targetNote.Body
  11748.      
  11749.      Exit Sub
  11750.      
  11751. ErrorRoutine:
  11752.      Messagebox Error & " (wFoldersQuerySave)"
  11753.      Exit Sub
  11754. End Sub
  11755. O=Lotus Notes
  11756. O=Lotus Notes
  11757. PURSAFO
  11758. |.:#U
  11759. O=Lotus Notes
  11760. CN=Lotus Notes Template Development/O=Lotus Notes
  11761. PURSAFO
  11762. Fde!f^^
  11763. mgg B
  11764. $TITLE
  11765. $AssistType
  11766. $AssistLastRun
  11767. $AssistDocCount
  11768. $AssistFlags
  11769. $AssistTrigger
  11770. $AssistInfo
  11771. $AssistQuery
  11772. $AssistAction
  11773. $AssistAction_Ex
  11774. '++LotusScript Development Environment:2:5:(Options):0:74
  11775. Option Public 
  11776. '++LotusScript Development Environment:2:5:(Forward):0:1
  11777. Declare Sub Initialize
  11778. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11779. '++LotusScript Development Environment:2:2:Initialize:1:10
  11780. Sub Initialize
  11781.      IsWebClient = True
  11782.      On Error Goto ErrorRoutine
  11783.      
  11784.      Set session = New NotesSession
  11785.      Set db = session.CurrentDatabase
  11786.      Set note = session.DocumentContext
  11787.      
  11788.      'is this a valid document UNID?
  11789.      Dim curNote As NotesDocument
  11790.      Set curNote = db.GetDocumentByUNID( note.tmpUNIDnote(0) )
  11791.      If curNote Is Nothing Then Goto ArgumentsNotFound
  11792.      
  11793.      If (note.tmpNewFolder(0) <> "") Then
  11794.           Call curNote.PutInFolder( note.tmpNewFolder(0) )
  11795.           If (note.tmpNewFolderOptions(0) = "1") And (note.tmpCurFolderIsView(0) = "0") Then
  11796.                Call curNote.RemoveFromFolder( note.tmpViewName(0) )
  11797.           End If
  11798.      End If
  11799.      
  11800.      pos% = Instr (note.Path_Info(0), db.FileName)
  11801.      If pos% = 0 Then 
  11802.           Print "The document has been moved/copied."
  11803.      Else
  11804.           FilePathAndName$ = Left$(note.Path_Info(0), pos% + Len (db.FileName))
  11805.           tmpViewName = Evaluate("@ReplaceSubstring(tmpViewName;"" ""; ""+"")", note)
  11806.           Print "[" & FilePathAndName$ & tmpViewName(0) & "?OpenView]"
  11807.      End If
  11808.      Exit Sub
  11809.      
  11810. ArgumentsNotFound:
  11811.      Print "Invalid note UNID passed to wFoldersSave"
  11812.      Exit Sub
  11813.      
  11814. ErrorRoutine:
  11815.      Print Error & " (wFoldersSave)"
  11816. End Sub
  11817. tmpViewName
  11818. O=Lotus Notes
  11819. O=Lotus Notes
  11820. PURSAFO
  11821. |.:#U
  11822. O=Lotus Notes
  11823. CN=Lotus Notes Template Development/O=Lotus Notes
  11824. PURSAFO
  11825. Fde!f^^
  11826. $TITLE
  11827. $AssistType
  11828. $AssistLastRun
  11829. $AssistDocCount
  11830. $AssistFlags
  11831. $AssistTrigger
  11832. $AssistInfo
  11833. $AssistQuery
  11834. $AssistAction
  11835. $AssistAction_Ex
  11836. Started running agent 'wFoldersOpen' on 07/27/97 11:17:01 PM
  11837. Ran LotusScript code
  11838. Done running agent 'wFoldersOpen' on 07/27/97 11:17:03 PM
  11839. '++LotusScript Development Environment:2:5:(Options):0:74
  11840. Option Public
  11841. Use "WebLib"
  11842. '++LotusScript Development Environment:2:5:(Forward):0:1
  11843. Declare Sub Initialize
  11844. '++LotusScript Development Environment:2:5:(Declarations):0:2
  11845. '++LotusScript Development Environment:2:2:Initialize:1:10
  11846. Sub Initialize
  11847. Expected Syntax:
  11848. ...?OpenForm&UNID=doc&View=view
  11849. %ENDREM
  11850.      
  11851.      IsWebClient = True
  11852.      Dim curNote As NotesDocument
  11853.      Dim curFolder As NotesView
  11854.      Dim AlarmsFolder As NotesView
  11855.      Dim InBoxFolder As NotesView
  11856.      Dim TrashFolder As NotesView
  11857.      
  11858.      Call wInstantiateObjectVariables
  11859.      On Error Goto ErrorRoutine
  11860.      
  11861.      'Get the target note UNID off the URL
  11862.      QueryString$ = note.Query_String(0)
  11863.      
  11864.      'locate the first URL argument
  11865.      unid$ = "&UNID="
  11866.      pos% = Instr (QueryString$, unid$)
  11867.      If (pos% = 0) Then Goto ArgumentsNotFound
  11868.      
  11869.      'fetch the remainder of the string
  11870.      workstr$ = Right$(QueryString$, Len (QueryString$) - (Len (unid$) + pos%) + 1)
  11871.      
  11872.      'locate the second URL argument
  11873.      view$ = "&View="
  11874.      pos% = Instr (workstr$, view$)
  11875.      If (pos% = 0) Then Goto ArgumentsNotFound
  11876.      
  11877.      'fetch the document UNID string
  11878.      UNIDnote$ = Left$(workstr$, pos% - 1)
  11879.      note.tmpUNIDnote = UNIDnote$
  11880.      
  11881.      'fetch the remainder of the string, which should be the view UNID
  11882.      UNIDview$ = Strconv ( Right$(workstr$, Len (workstr$) - (Len (view$) + pos%) + 1) , SC_UpperCase )
  11883.      
  11884.      'is this a valid document UNID?
  11885.      Set curNote = db.GetDocumentByUNID( UNIDnote$ )
  11886.      If curNote Is Nothing Then Goto ArgumentsNotFound
  11887.      
  11888.      'is this a valid view UNID?
  11889.      ViewList = db.Views
  11890.      found = False
  11891.      Forall tView In ViewList
  11892.           If (tView.UniversalID = UNIDview$) Then
  11893.                found = True
  11894.                Set curFolder = tView
  11895.                
  11896.                'Exclude MoveTo if current view is not a folder
  11897.                curFolderIsView = Not (curFolder.IsFolder )
  11898.                If (curFolderIsView) Then
  11899.                     note.tmpCurFolderIsView = "1"
  11900.                Else
  11901.                     note.tmpCurFolderIsView = "0"
  11902.                End If
  11903.                Exit Forall
  11904.           End If
  11905.      End Forall
  11906.      If Not( found ) Then Goto ArgumentsNotFound
  11907.      
  11908.      'Set the note values ...
  11909.      note.tmpSelectedDocument = curNote.Subject(0)
  11910.      note.tmpViewName = curFolder.Name
  11911.      curFolderName$ = curFolder.Name
  11912.      Select Case curFolderName$
  11913.      Case "($Inbox)"
  11914.           note.tmpSelectedFolder = "In Box"
  11915.      Case "($Sent)"
  11916.           note.tmpSelectedFolder = "Sent"
  11917.      Case "($Drafts)"
  11918.           note.tmpSelectedFolder = "Drafts"
  11919.      Case "($Trash)"
  11920.           note.tmpSelectedFolder = "Trash"
  11921.      Case "($All)"
  11922.           note.tmpSelectedFolder = "All Documents"
  11923.      Case "($Meetings)"
  11924.           note.tmpSelectedFolder = curFolder.Aliases
  11925.      Case "($Calendar)"
  11926.           note.tmpSelectedFolder = curFolder.Aliases
  11927.      Case "($ToDo)"
  11928.           note.tmpSelectedFolder = "To Do"
  11929.      Case "_Archiving"
  11930.           note.tmpSelectedFolder = curFolder.Aliases
  11931.      Case Else
  11932.           note.tmpSelectedFolder = curFolderName$
  11933.           cFolderName = Evaluate("@ReplaceSubstring(tmpSelectedFolder;"" ""; ""+"")", note)
  11934.           curFolderName$ = cFolderName(0)
  11935.      End Select
  11936.      
  11937.      'Prep strings
  11938.      pos% = Instr (note.Path_Info(0), db.FileName)
  11939.      If pos% = 0 Then Goto ArgumentsNotFound
  11940.      FileAndPathName$ = Left$(note.Path_Info(0), pos% + Len (db.FileName) )
  11941.      anchorHead$ = |<A HREF="| & FileAndPathName$ & "wCommand?OpenAgent"
  11942.      anchorMid$ = |">|
  11943.      anchorTail$ = |</A><BR>|
  11944.      
  11945.      moveHead$ =  anchorHead$ & "&Move=" & UNIDnote$ & "&To="
  11946.      moveTail$ = "&From=" & curFolderName$ & anchorMid$ & "Move To" & anchorTail$
  11947.      
  11948.      copyHead$ = anchorHead$ & "&Copy=" & UNIDnote$ & "&To="
  11949.      copyTail$ = "&From=" & curFolderName$ & anchorMid$ & "Copy To" & anchorTail$
  11950.      
  11951.      folderHead$ = |<A HREF="| & FileAndPathName$
  11952.      
  11953.      distroyHead$ = anchorHead$ & "&Destroy="
  11954.      distroyMid$ = anchorMid$ & "Destroy "
  11955.      
  11956.      FolderList$= "[<TABLE>"
  11957.      beginrow$ = "<TR><TD><FONT SIZE=2>"
  11958.      endrow$ = "</FONT></TD></TR>"
  11959.      anothercell$ = "</FONT></TD><TD><FONT SIZE=2>"
  11960.      
  11961.      If (curFolderIsView) Then
  11962.           note.dispSelectedFolder = "Selected View:"
  11963.      Else
  11964.           note.dispSelectedFolder = "Selected Folder:"
  11965.           note.tmpRemFromFolder = "[" & anchorHead$ & "&UnFile=" & UNIDnote$ & "&From=" & _
  11966.           curFolderName$ & anchorMid$ & "Remove document from folder" & anchorTail$ & "]"
  11967.      End If
  11968.      
  11969.      'Always exclude the In Box, Alarm & Trash folders from the body of the list ...
  11970.      Set InBoxFolder = db.GetView( "($Inbox)" )
  11971.      Set AlarmsFolder = db.GetView( "($Alarms)" )
  11972.      
  11973.      '... but include the Trash folder explicitly at the top of the list.
  11974.      anyrows = False
  11975.      Set TrashFolder = db.GetView( "($Trash)" )
  11976.      If (TrashFolder.UniversalID <> curFolder.UniversalID) Then
  11977.           anyrows = True
  11978.           If (curFolderIsView) Then
  11979.                FolderList$ = FolderList$ & beginrow$ & anothercell$ & copyHead$ & "($Trash)" & copyTail$
  11980.           Else
  11981.                FolderList$ = FolderList$ & beginrow$ & moveHead$ & "($Trash)" & moveTail$ & anothercell$ & "Copy To"
  11982.           End If
  11983.           FolderList$ = FolderList$ & anothercell$ & folderHead$ & "($Trash)"  & anchorMid$ & _
  11984.           "Trash" & anchorTail$ & anothercell$ & endrow$
  11985.      End If
  11986.      
  11987.      'Build the display folder lists ...
  11988.      Forall targetView In ViewList
  11989.           If targetView.IsFolder Then 
  11990.                If (targetView.UniversalID <> AlarmsFolder.UniversalID) And _
  11991.                (targetView.UniversalID <> InBoxFolder.UniversalID) And _
  11992.                (targetView.UniversalID <> TrashFolder.UniversalID) Then
  11993.                     anyrows = True                    
  11994.                     note.tmpFolder = targetView.Name
  11995.                     tmpFolderName = Evaluate("@ReplaceSubstring(tmpFolder;"" ""; ""+"")", note)
  11996.                     If (curFolderIsView) Then
  11997.                          FolderList$ = FolderList$ & beginrow$
  11998.                     Else
  11999.                          FolderList$ = FolderList$ & beginrow$ & moveHead$ & tmpFolderName(0) & moveTail$
  12000.                     End If
  12001.                     FolderList$ = FolderList$ & anothercell$ & copyHead$ & tmpFolderName(0) & copyTail$
  12002.                     FolderList$ = FolderList$ & anothercell$ & folderHead$ & tmpFolderName(0) & anchorMid$ & targetView.Name & anchorTail$
  12003.                     FolderList$ = FolderList$ & anothercell$ & distroyHead$ & tmpFolderName(0) & distroyMid$ & targetView.Name & anchorTail$ & endrow$ 
  12004.                End If
  12005.           End If
  12006.      End Forall
  12007.      If Not (anyrows) Then FolderList$ = FolderList$ & beginrow$ & "empty list" & endrow$
  12008.      note.dispFolderList = FolderList$ & "</TABLE><BR><BR>]"
  12009.      Exit Sub
  12010.      
  12011. ArgumentsNotFound:
  12012.      Messagebox "Arguments Not Found (wFoldersOpen)"
  12013.      Exit Sub
  12014.      
  12015. ErrorRoutine:
  12016.      Messagebox Error & " (wFoldersOpen)"
  12017.      Exit Sub
  12018. End Sub
  12019. tmpSelectedFolder
  12020. tmpFolder
  12021. O=Lotus Notes
  12022. O=Lotus Notes
  12023. PURSAFO
  12024. |.:#U
  12025. O=Lotus Notes
  12026. CN=Lotus Notes Template Development/O=Lotus Notes
  12027. PURSAFO
  12028. Fde!f^^
  12029. +)KuuT
  12030. $TITLE
  12031. $AssistType
  12032. $AssistLastRun
  12033. $AssistDocCount
  12034. $AssistFlags
  12035. $AssistTrigger
  12036. $AssistInfo
  12037. $AssistQuery
  12038. $AssistAction
  12039. $AssistAction_Ex
  12040. Started running agent 'wCommand' on 07/28/97 12:17:26 AM
  12041. Ran LotusScript code
  12042. Done running agent 'wCommand' on 07/28/97 12:17:32 AM
  12043. (wCommand)
  12044. EH4fL3u
  12045. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################################################
  12046. (wAddressSave)
  12047. fL3u*
  12048. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################
  12049. (wAddressOpen)
  12050. f3Lu7
  12051. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################################
  12052. (web Notice)NoticeCDn1
  12053. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########################################
  12054. (web Task)TaskDCn
  12055. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################
  12056. (web vt Default)$$ViewTemplateDefaultCDn
  12057. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################################################
  12058. (web vt ToDo)$$ViewTemplate for ($ToDo)CDn
  12059. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################################
  12060. (web view template)1PCUANx3
  12061. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################
  12062. (wAppointmentOpen)
  12063. EH4fL3u
  12064. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################################
  12065. ##########################################################
  12066. ##########################################################
  12067. ##########################################################
  12068. '++LotusScript Development Environment:2:5:(Options):0:74
  12069. Option Public 
  12070. Use "WebLib"
  12071. '++LotusScript Development Environment:2:5:(Forward):0:1
  12072. Declare Sub Initialize
  12073. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12074. '++LotusScript Development Environment:2:2:Initialize:1:10
  12075. Sub Initialize
  12076. 'Expected URL syntax ...
  12077. 'Delete all documents in the trash folder
  12078. '?OpenAgent&EmptyTrash
  12079. '?OpenAgent&EmptyTrash=viewname
  12080.      
  12081. 'Move/copy document to trash folder
  12082. '?OpenAgent&ToTrash=unid&From=viewunid
  12083.      
  12084. 'Delete a folder
  12085. '?OpenAgent&Destroy=viewname
  12086.      
  12087. 'Copy a document to a folder
  12088. '?OpenAgent&Copy=unid&To=viewname&From=viewname
  12089.      
  12090. 'Move a document from one folder to another folder
  12091. '?OpenAgent&Move=unid&To=viewname&From=viewname
  12092.      
  12093. 'Remove a document from a folder
  12094. '?OpenAgent&UnFile=unid&From=viewname
  12095.      
  12096. 'Scroll to the end of a view
  12097. '?OpenAgent&ViewEnd=viewname
  12098.      
  12099. 'Replace one document with another.
  12100. '?OpenAgent&FixUp=unid
  12101.      
  12102. 'Remove the RSVP document
  12103. '?OpenAgent&Remove=unid
  12104.      IsWebClient = True
  12105.      On Error Goto ErrorRoutine
  12106.      
  12107.      Dim arg0name, arg0, arg1name, arg1, arg2name, arg2 As String
  12108.      Dim arg0found, arg1found, arg2found As Variant
  12109.      Dim MessageString As String
  12110.      MessageString = ""
  12111.      viewarguments$ = " "
  12112.      fromstr$ = "From"
  12113.      tostr$ = "To"
  12114.      intrash$ = "IN TRASH - "
  12115.      
  12116.      Dim srcFolder As NotesView
  12117.      Dim destFolder As NotesView
  12118.      Dim curNote As NotesDocument
  12119.      Dim nextNote As NotesDocument
  12120.      Dim CGINote As NotesDocument
  12121.      
  12122.      Set session = New NotesSession
  12123.      Set db = session.CurrentDatabase
  12124.      Set CGInote = session.DocumentContext
  12125.      
  12126.      Call wGetOrMakeCalendarProfile
  12127.      
  12128.      'prep for response page
  12129.      InfoPathPos% = Instr (CGInote.Path_Info(0), db.FileName)
  12130.      If InfoPathPos% <> 0 Then 
  12131.           FileAndPath$ = Left$(CGInote.Path_Info(0), InfoPathPos% + Len (db.FileName))
  12132.      End If
  12133.      
  12134.      'fetch query string & strip off "OpenAgent"
  12135.      QueryString$ = CGInote.Query_String(0)
  12136.      openagent$ = "OpenAgent&"
  12137.      pos% = Instr (QueryString$, openagent$)
  12138.      If (pos% = 0) Then Goto ArgumentError
  12139.      workstr$ = Right$(QueryString$, Len (QueryString$) - Len(openagent$))
  12140.      
  12141. 'fetch all arguments before processing
  12142.      arg0found = False
  12143.      arg1found = False
  12144.      arg2found = False
  12145.      
  12146.      'fetch arg0 name
  12147.      pos% = Instr (workstr$, "=")
  12148.      If (pos% = 0) Then 
  12149.           'no value, just arg name
  12150.           If (Len(workstr$) = 0) Then Goto ArgumentError
  12151.           arg0name = workstr$
  12152.           Goto AllArgsCollected
  12153.      End If
  12154.      arg0name = Left$ (workstr$, pos% - 1)
  12155.      workstr$ = Right$ (workstr$, Len (workstr$) - pos%)
  12156.      
  12157.      'fetch arg0 value
  12158.      pos% = Instr (workstr$, "&")
  12159.      If (pos% = 0) Then 
  12160.           'last arg in list
  12161.           If (Len(workstr$) = 0) Then Goto ArgumentError
  12162.           arg0found = True
  12163.           arg0 = workstr$
  12164.           Goto AllArgsCollected
  12165.      End If
  12166.      arg0found = True
  12167.      arg0 = Left$ (workstr$, pos% - 1)
  12168.      workstr$ = Right$ (workstr$, Len (workstr$) - pos%)
  12169.      
  12170.      'fetch arg1 name
  12171.      pos% = Instr (workstr$, "=")
  12172.      If (pos% = 0) Then Goto ArgumentError
  12173.      arg1name = Left$ (workstr$, pos% - 1)
  12174.      workstr$ = Right$ (workstr$, Len (workstr$) - pos%)
  12175.      
  12176.      'fetch arg1 value
  12177.      pos% = Instr (workstr$, "&")
  12178.      If (pos% = 0) Then 
  12179.           'last arg in list
  12180.           If (Len(workstr$) = 0) Then Goto ArgumentError
  12181.           arg1found = True
  12182.           arg1 = workstr$
  12183.           Goto AllArgsCollected
  12184.      End If
  12185.      arg1found = True
  12186.      arg1 = Left$ (workstr$, pos% - 1)
  12187.      workstr$ = Right$ (workstr$, Len (workstr$) - pos%)
  12188.      
  12189.      'fetch arg2 name
  12190.      pos% = Instr (workstr$, "=")
  12191.      If (pos% = 0) Then Goto ArgumentError
  12192.      arg2name = Left$ (workstr$, pos% - 1)
  12193.      workstr$ = Right$ (workstr$, Len (workstr$) - pos%)
  12194.      
  12195.      'fetch arg2 value
  12196.      pos% = Instr (workstr$, "&")
  12197.      If (pos% = 0) Then 
  12198.           'last arg in list
  12199.           If (Len(workstr$) = 0) Then Goto ArgumentError
  12200.           arg2found = True
  12201.           arg2 = workstr$
  12202.           Goto AllArgsCollected
  12203.      End If
  12204.      arg2found = True
  12205.      arg2 = Left$ (workstr$, pos% - 1)
  12206.      workstr$ = Right$ (workstr$, Len (workstr$) - pos%)
  12207.      
  12208. AllArgsCollected:
  12209.      
  12210. 'What command are we being issued?
  12211.      Select Case arg0name
  12212.      Case "EmptyTrash"
  12213.      '?OpenAgent&EmptyTrash
  12214.      '?OpenAgent&EmptyTrash=viewname
  12215.           'Delete all documents in the trash folder
  12216.           Set destFolder = db.GetView( "($Trash)" )
  12217.           Set curNote = destFolder.GetFirstDocument
  12218.           While Not (curNote Is Nothing)
  12219.                Set nextNote = destFolder.GetNextDocument( curNote )
  12220.                curNote.Remove( True )
  12221.                Set curNote = nextNote
  12222.           Wend
  12223.           
  12224.           If arg0found Then
  12225.                srcFolderStr$ = arg0
  12226.                CGInote.tmpFolderName = arg0
  12227.                sFolder = Evaluate("@ReplaceSubstring(tmpFolderName;""+""; "" "")", CGInote) 
  12228.                Set srcFolder = db.GetView( sFolder(0) )
  12229.                If srcFolder Is Nothing Then srcFolderStr$ = "($Trash)"
  12230.           Else
  12231.                srcFolderStr$ = "($Trash)"
  12232.           End If
  12233.           Goto ReturnToFolder
  12234.           
  12235.      Case "ToTrash"
  12236.      '?OpenAgent&ToTrash=unid&From=viewunid
  12237.           'Move/copy document to trash folder
  12238.           If Not (arg0found And arg1found) Goto ArgumentError
  12239.           
  12240.           'is this a valid document UNID?          
  12241.           On Error Resume Next
  12242.           Set curNote = db.GetDocumentByUNID( arg0 )
  12243.           On Error Goto ErrorRoutine
  12244.           If curNote Is Nothing Then Goto ReturnToInBox
  12245.           
  12246.           Call curNote.PutInFolder( "($Trash)" )
  12247.           
  12248.           'is this a valid view UNID?
  12249.           Dim uview As Variant
  12250.           uview = Strconv ( arg1, 1 )
  12251.           UNIDview$ = uview
  12252.           ViewList = db.Views
  12253.           found = False
  12254.           Forall tView In ViewList
  12255.                If (tView.UniversalID = UNIDview$) Then
  12256.                     found = True
  12257.                     Set srcFolder = tView
  12258.                     Exit Forall
  12259.                End If
  12260.           End Forall
  12261.           If Not( found ) Then Goto ArgumentError
  12262.           
  12263.           CGInote.tmpFolderName = srcFolder.Name
  12264.           sFolder = Evaluate("@ReplaceSubstring(tmpFolderName;"" ""; ""+"")", CGInote)
  12265.           srcFolderStr$ = sFolder(0)
  12266.           
  12267.           Set destFolder = db.GetView( "($Trash)" )
  12268.           If (srcFolder.IsFolder And srcFolder.UniversalID <> destFolder.UniversalID) Then 
  12269.                Call curNote.RemoveFromFolder( srcFolder.Name )
  12270.           End If
  12271.           
  12272.           If (curNote.HasItem( "Subject" ) And profile.wEnableTrashIcon(0) = "1") Then
  12273.                If ( Left$( curNote.Subject(0), Len( intrash$ ) ) <> intrash$ ) Then
  12274.                     curNote.Subject = intrash$ & curNote.Subject(0)
  12275.                     Call curNote.Save(True, True, True)
  12276.                End If
  12277.           End If
  12278.           Goto ReturnToFolder
  12279.           
  12280.      Case "Destroy"
  12281.      '?OpenAgent&Destroy=viewname
  12282.           'Delete a folder
  12283.           If Not (arg0found) Goto ArgumentError
  12284.           CGInote.tmpFolderName = arg0
  12285.           sFolder = Evaluate("@ReplaceSubstring(tmpFolderName;""+""; "" "")", CGInote)
  12286.           Set srcFolder = db.GetView( sFolder(0) )
  12287.           If srcFolder Is Nothing Then Goto ArgumentError
  12288.           If Not ( srcFolder.IsFolder ) Then Goto ArgumentError
  12289.           Call srcFolder.Remove
  12290.           Goto ListAllViews
  12291.           
  12292.      Case "ViewEnd"
  12293.      '?OpenAgent&ViewEnd=viewname
  12294.           'Scroll to the end of a view
  12295.           If Not (arg0found) Goto ArgumentError
  12296.           If InfoPathPos% = 0 Then Goto InfoPathError
  12297.           
  12298.           srcFolderStr$ = arg0
  12299.           CGInote.tmpFolderName = arg0
  12300.           sFolder = Evaluate("@ReplaceSubstring(tmpFolderName;""+""; "" "")", CGInote)
  12301.           Set srcFolder = db.GetView( sFolder(0) )
  12302.           If srcFolder Is Nothing Then Goto ArgumentError
  12303.           
  12304.           'count the documents in this view
  12305.           NumDocs% = 0
  12306.           Set curNote = srcFolder.GetFirstDocument
  12307.           While Not curNote Is Nothing
  12308.                NumDocs% = NumDocs% + 1
  12309.                Set curNote = srcFolder.GetNextDocument(curNote)
  12310.           Wend
  12311.           
  12312.           'count number of top level the documents in this view
  12313.           NumTopDocs% = 0
  12314.           Set curNote = srcFolder.GetFirstDocument
  12315.           Dim lastTopNote As NotesDocument
  12316.           While Not curNote Is Nothing
  12317.                NumTopDocs% = NumTopDocs% + 1
  12318.                Set lastTopNote = curNote
  12319.                Set curNote = srcFolder.GetNextSibling(curNote)
  12320.           Wend
  12321.           
  12322.           num_to_list% = 15
  12323.           If (NumDocs% < num_to_list% And NumTopDocs% < num_to_list%) Then
  12324.                'end of view is already displayed
  12325.                Goto ReturnToFolder
  12326.           End If
  12327.           
  12328.           'if all documents in this view are NOT top level documents, then it's a hierarchical view
  12329.           If (NumDocs% = NumTopDocs%) Then
  12330.                'flat views need no further calcs.
  12331.                targetIndex% = (NumDocs% - num_to_list%) + 1
  12332.           Else
  12333.                'this is a hierarchical view, so we need to skip the responce docs when calcing the index
  12334.                'find a top level doc close to the end
  12335.                NumEndDocs% = 1
  12336.                LastTopDocNum% = NumTopDocs%
  12337.                targetIndex% = LastTopDocNum%
  12338.                Set curNote = srcFolder.GetLastDocument
  12339.                While Not curNote Is Nothing
  12340.                     If (NumEndDocs% > num_to_list%) Then 
  12341.                          'we've counted enough
  12342.                          targetIndex% = LastTopDocNum% + 1
  12343.                          Set curNote = Nothing
  12344.                     Else
  12345.                          'did we find a top doc?
  12346.                          If (curNote.UniversalID = lastTopNote.UniversalID) Then
  12347.                               'yes, then try to find the next one
  12348.                               Set lastTopNote = srcFolder.GetPrevSibling(lastTopNote)
  12349.                               LastTopDocNum% = LastTopDocNum% - 1
  12350.                          End If
  12351.                          NumEndDocs% = NumEndDocs% + 1
  12352.                          Set curNote = srcFolder.GetPrevDocument(curNote)
  12353.                     End If
  12354.                Wend
  12355.           End If
  12356.           
  12357.           Print "[" & FileAndPath$ & arg0 & "?OpenView&Start=" & Format$(targetIndex%) & "]"
  12358.           Exit Sub
  12359.           
  12360.      Case "UnFile"
  12361.      '?OpenAgent&UnFile=unid&From=viewname
  12362.           If Not (arg0found) Goto ArgumentError
  12363.           Set curNote = db.GetDocumentByUNID( arg0 )
  12364.           If curNote Is Nothing Then Goto ArgumentError
  12365.           
  12366.           srcFolderStr$ = arg1
  12367.           CGInote.tmpFolderName = arg1
  12368.           sFolder = Evaluate("@ReplaceSubstring(tmpFolderName;""+""; "" "")", CGInote)
  12369.           Set srcFolder = db.GetView( sFolder(0) )
  12370.           If srcFolder Is Nothing Then Goto ArgumentError
  12371.           
  12372.           Call curNote.RemoveFromFolder( srcFolder.Name )
  12373.           
  12374.           If (srcFolder.Name = "($Trash)") Then
  12375.                If (curNote.HasItem( "Subject" ) And profile.wEnableTrashIcon(0) = "1") Then
  12376.                     If ( Left$( curNote.Subject(0), Len( intrash$ ) ) = intrash$ ) Then
  12377.                          curNote.Subject = Right$( curNote.Subject(0), Len( curNote.Subject(0) ) - Len( intrash$ ) )
  12378.                          Call curNote.Save(True, True, True)
  12379.                     End If
  12380.                End If
  12381.           End If
  12382.           Goto ReturnToFolder
  12383.           
  12384.      Case "FixUp"
  12385.      '?OpenAgent&FixUp=unid
  12386.           On Error Resume Next
  12387.           Set curNote = db.GetDocumentByUNID( arg0 )
  12388.           On Error Goto ErrorRoutine
  12389.           If curNote Is Nothing Then Goto ReturnToInBox
  12390.           
  12391.           origNoteUNID = curNote.GetItemValue("$$OrigNoteUNID")
  12392.           On Error Resume Next
  12393.           Set nextNote = db.GetDocumentByUNID( origNoteUNID(0) )
  12394.           On Error Goto ErrorRoutine
  12395.           
  12396.           'make sure the target appointment document shows up in all the correct folders
  12397.           If Not (nextNote Is Nothing)  Then
  12398.                ViewList = db.Views
  12399.                Dim n As NotesDocument
  12400.                Forall tView In ViewList     'look thru all the folders
  12401.                     If (tView.IsFolder) Then
  12402.                          Set n = tView.GetFirstDocument
  12403.                          While Not ( n Is Nothing )     'look thru all the documents
  12404.                               If n.UniversalID = origNoteUNID(0) Then
  12405.                                    Call replaceNote.PutInFolder( fView.Name )
  12406.                               End If
  12407.                               Set n = tView.GetNextDocument( n )
  12408.                          Wend
  12409.                     End If
  12410.                End Forall
  12411.           End If
  12412.           
  12413.           'fetch the list of children, if it exists
  12414.           haschildren = False
  12415.           Dim collection As NotesDocumentCollection
  12416.           If Not (nextNote Is Nothing) Then 
  12417.                Set collection = nextNote.Responses
  12418.                If collection.Count <> 0 Then haschildren = True
  12419.                Call nextNote.Remove(False)     'destroy the original document
  12420.           End If 
  12421.           
  12422.           'save new values to target doc
  12423.           curNote.UniversalID = origNoteUNID(0)
  12424.           MessageString$ = curNote.WebMessageString(0)
  12425.           viewarguments$ = curNote.ViewArguments(0)
  12426.           Call curNote.RemoveItem("WebMessageString")
  12427.           Call curNote.RemoveItem( "ViewArguments" )
  12428.           Call curNote.Save(True, True, True)
  12429.           
  12430.           'remove temp note
  12431.           Set nextNote = db.GetDocumentByUNID( arg0 )
  12432.           Call nextNote.Remove(True)
  12433.           
  12434.           'associate all children with target doc
  12435.           If haschildren Then
  12436.                Set nextNote = collection.GetFirstDocument
  12437.                While Not nextNote Is Nothing
  12438.                     Call nextNote.MakeResponse( curNote )
  12439.                     Call nextNote.Save(True, True, True)
  12440.                     Set nextNote = collection.GetNextDocument( nextNote )
  12441.                Wend
  12442.           End If
  12443.           
  12444.           'determine return state
  12445.           If (MessageString$ = "") Then
  12446.                srcFolderStr$ = "($Calendar)"
  12447.                Goto ReturnToFolder
  12448.           End If
  12449.           Goto DisplayMessage
  12450.           
  12451.      Case "Remove"
  12452.      '?OpenAgent&Remove=unid
  12453.           On Error Resume Next
  12454.           Set curNote = db.GetDocumentByUNID( arg0 )
  12455.           On Error Goto ErrorRoutine
  12456.           If curNote Is Nothing Then Goto ReturnToInBox
  12457.           
  12458.           MessageString$ = curNote.WebMessageString(0)
  12459.           Call curNote.Remove(False)     'destroy the RSVP document
  12460.           
  12461.           'determine return state
  12462.           If (MessageString$ = "") Then
  12463.                srcFolderStr$ = "($InBox)"
  12464.                Goto ReturnToFolder
  12465.           End If
  12466.           Goto DisplayMessage
  12467.           
  12468.      Case Else
  12469.           '?OpenAgent&Copy=unid&To=viewname&From=viewname
  12470.           '?OpenAgent&Move=unid&To=viewname&From=viewname
  12471.           
  12472.           If Not (arg0name = "Copy" Or arg0name = "Move") Then Goto ArgumentError
  12473.           If Not (arg0found And arg1found And arg2found) Then Goto ArgumentError
  12474.           
  12475.           Set curNote = db.GetDocumentByUNID( arg0 )
  12476.           If curNote Is Nothing Then Goto ArgumentError
  12477.           
  12478.           CGInote.tmpFolderName = arg1
  12479.           sFolder = Evaluate("@ReplaceSubstring(tmpFolderName;""+""; "" "")", CGInote)
  12480.           Set destFolder = db.GetView( sFolder(0) )
  12481.           If destFolder Is Nothing Then Goto ArgumentError
  12482.           If Not ( destFolder.IsFolder ) Then Goto ArgumentError
  12483.           
  12484.           srcFolderStr$ = arg2
  12485.           CGInote.tmpFolderName = arg2
  12486.           sFolder = Evaluate("@ReplaceSubstring(tmpFolderName;""+""; "" "")", CGInote)
  12487.           Set srcFolder = db.GetView( sFolder(0) )
  12488.           If srcFolder Is Nothing Then Goto ArgumentError
  12489.           
  12490.           If (arg0name = "Move") Then
  12491.                'Move a doc from a folder to a folder.
  12492.                If Not ( srcFolder.IsFolder ) Then Goto ArgumentError
  12493.                Call curNote.PutInFolder( destFolder.Name )
  12494.                Call curNote.RemoveFromFolder( srcFolder.Name )
  12495.           Else
  12496.                'Copy a doc from a view or folder to a folder
  12497.                Call curNote.PutInFolder( destFolder.Name )
  12498.           End If
  12499.           
  12500.           If (srcFolder.Name = "($Trash)" Or destFolder.Name = "($Trash)") Then
  12501.                If (curNote.HasItem( "Subject" ) And profile.wEnableTrashIcon(0) = "1") Then
  12502.                     If (srcFolder.Name = "($Trash)") Then
  12503.                          'coming out of trash
  12504.                          If ( Left$( curNote.Subject(0), Len( intrash$ ) ) = intrash$ ) Then
  12505.                               curNote.Subject = Right$( curNote.Subject(0), Len( curNote.Subject(0) ) - Len( intrash$ ) )
  12506.                               Call curNote.Save(True, True, True)
  12507.                          End If        
  12508.                     Else
  12509.                          'going into trash
  12510.                          If ( Left$( curNote.Subject(0), Len( intrash$ ) ) <> intrash$ ) Then
  12511.                               curNote.Subject = intrash$ & curNote.Subject(0)
  12512.                               Call curNote.Save(True, True, True)
  12513.                          End If
  12514.                     End If
  12515.                End If
  12516.           End If
  12517.           
  12518.           Goto ReturnToFolder
  12519.      End Select
  12520.      
  12521. DisplayMessage:
  12522.      If viewarguments$ = " " Or viewarguments$ = "" Then
  12523.           viewarguments$ = "&Grid=" & profile.wCalGridType(0)
  12524.      End If
  12525.      If InfoPathPos% = 0 Then Goto InfoPathError
  12526.      Print |<BODY TEXT="000000" BGCOLOR="ffffff">| 
  12527.      Print |<TABLE BORDER CELLSPACING=2 CELLPADDING=2>| 
  12528.      Print |<TR VALIGN=middle BGCOLOR="C0C0C0">| 
  12529.      Print |<TD><A HREF="| & FileAndPath$ & |($InBox)"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn110.gif"> In Box</A></TD>| 
  12530.      Print |<TD><A HREF="| & FileAndPath$ & |($Calendar)?OpenView| & viewarguments$ & |"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn133.gif"> Calendar</A></TD>| 
  12531.      Print |<TD><A HREF="| & FileAndPath$ & |($Meetings)"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn126.gif"> Meetings</A></TD>| 
  12532.      Print |<TD><A HREF="| & FileAndPath$ & |($ToDo)"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn127.gif"> To Do</A></TD>| 
  12533.      Print |<TD><A HREF="| & FileAndPath$ & |"><IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn120.gif"> All Views</A></TD></TR>| 
  12534.      Print |</TABLE><HR><P><B>| & MessageString$
  12535.      Exit Sub
  12536.      
  12537. ListAllViews:
  12538.      If InfoPathPos% = 0 Then Goto InfoPathError
  12539.      Print "[" & FileAndPath$ & "]"
  12540.      Exit Sub
  12541.      
  12542. ReturnToInBox:
  12543.      If InfoPathPos% = 0 Then Goto InfoPathError
  12544.      Print "[" & FileAndPath$ & "($InBox)?OpenView" & viewarguments$ & "]"
  12545.      Exit Sub
  12546.      
  12547. ReturnToFolder:
  12548.      If viewarguments$ = " " And srcFolderStr$ = "($Calendar)" Then
  12549.           viewarguments$ = "&Grid=" & profile.wCalGridType(0)
  12550.      End If
  12551.      If InfoPathPos% = 0 Then Goto InfoPathError
  12552.      Print "[" & FileAndPath$ & srcFolderStr$ & "?OpenView" & viewarguments$ & "]"
  12553.      Exit Sub
  12554.      
  12555. ErrorRoutine:
  12556.      Print Error & " (wCommand)"
  12557.      Exit Sub
  12558.      
  12559. ArgumentError:
  12560.      If Len(QueryString$) < 1 Then QueryString$ = " "
  12561.      Print "Invalid arguments were supplied to wCommand (" & QueryString$ & ")"
  12562.      Exit Sub
  12563.      
  12564. InfoPathError:
  12565.      Print "Info_Path error from wCommand"
  12566. End Sub
  12567. #KL    S\    
  12568. #KL    S\    
  12569. #KL    S\    
  12570. tmpFolderName
  12571. tmpFolderName
  12572. tmpFolderName
  12573. tmpFolderName
  12574. tmpFolderName
  12575. tmpFolderName
  12576. tmpFolderName
  12577. O=Lotus Notes
  12578. O=Lotus Notes
  12579. PURSAFO
  12580. |.:#U
  12581. O=Lotus Notes
  12582. CN=Lotus Notes Template Development/O=Lotus Notes
  12583. PURSAFO
  12584. Fde!f^^
  12585. $TITLE
  12586. $AssistType
  12587. $AssistLastRun
  12588. $AssistDocCount
  12589. $AssistFlags
  12590. $AssistTrigger
  12591. $AssistInfo
  12592. $AssistQuery
  12593. $AssistAction
  12594. $AssistAction_Ex
  12595. Started running agent 'wAddressSave' on 07/27/97 10:49:45 PM
  12596. Ran LotusScript code
  12597. Done running agent 'wAddressSave' on 07/27/97 10:49:47 PM
  12598. '++LotusScript Development Environment:2:5:(Options):0:74
  12599. Option Public
  12600. Use "WebLib" 
  12601. '++LotusScript Development Environment:2:5:(Forward):0:1
  12602. Declare Sub Initialize
  12603. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12604. '++LotusScript Development Environment:2:2:Initialize:1:10
  12605. Sub Initialize
  12606.      Dim OriginalMemoNote As NotesDocument
  12607.      Dim originalUNID As String
  12608.      Dim sendto As Variant
  12609.      Dim copyto As Variant
  12610.      Dim blindcopyto As Variant
  12611.      InstantiateObjectVariables
  12612.      Set note = session.documentcontext
  12613.      dbpath = getdbpath
  12614.      
  12615.        'Get the UNID of the memo off the URL
  12616.      UNID$ = note.memounid(0)
  12617.      Set OriginalMemoNote = db.getdocumentbyUNID(Lcase(UNID$))
  12618.      
  12619.      'Get original values of fields from address lookup form
  12620.      sendto = note.tmpsendto
  12621.      copyto = note.tmpcopyto
  12622.      blindcopyto = note.tmpblindcopyto
  12623.      
  12624.      'Check to see if the original memo was newly created and is in the trash folder
  12625.      If Instr(1, OriginalMemoNote.subject(0), "IN TRASH", 0)>0 Then
  12626.           'Remove original memo from the trash folder and change subject back to orginal subject
  12627.           OriginalMemoNote.subject=OriginalMemoNote.OldSubject(0)
  12628.           OriginalMemoNote.removefromfolder("($Trash)")
  12629.      End If
  12630.      
  12631.      'Put new addressing values on original memo and open it up to the user in edit mode
  12632.      'Don't save empty address fields.
  12633.      If(Not "" = Trim$(sendto(0))) Then
  12634.           OriginalMemoNote.sendto = sendto
  12635.      End If
  12636.      If(Not "" = Trim$(copyto(0))) Then
  12637.           OriginalMemoNote.copyto = copyto
  12638.      End If
  12639.      If (Not "" = Trim$(blindcopyto(0)) And _
  12640.      Not OriginalMemoNote.Form(0) = "Appointment" And Not OriginalMemoNote.Form(0) = "Task") Then
  12641.           OriginalMemoNote.blindcopyto = blindcopyto
  12642.      End If
  12643.      OriginalMemoNote.IsAddressing = "0"
  12644.      OriginalMemoNote.save True, False
  12645.      
  12646.      'Make sure that the address finder form does not get saved
  12647.      If ( OriginalMemoNote.Form(0) = "Task") Then
  12648.           Print "[/"+dbpath+"/($All)/"+Lcase(OriginalMemoNote.universalid)+"?EditDocument&Assign]"
  12649.      Else          
  12650.           Print "[/"+dbpath+"/($All)/"+Lcase(OriginalMemoNote.universalid)+"?EditDocument]"
  12651.      End If
  12652.      Exit Sub
  12653.      
  12654. ErrorRoutine:
  12655.      Print Error & " (wAddressSave)"
  12656.      note.SaveOptions = "0"
  12657.      note.MailOptions = "0"
  12658.      Exit Sub
  12659. End Sub
  12660. O=Lotus Notes
  12661. O=Lotus Notes
  12662. PURSAFO
  12663. |.:#U
  12664. O=Lotus Notes
  12665. CN=Lotus Notes Template Development/O=Lotus Notes
  12666. PURSAFO
  12667. Fde!f^^
  12668. 3VSJ3Ac
  12669. $TITLE
  12670. $AssistType
  12671. $AssistLastRun
  12672. $AssistDocCount
  12673. $AssistFlags
  12674. $AssistTrigger
  12675. $AssistInfo
  12676. $AssistQuery
  12677. $AssistAction
  12678. $AssistAction_Ex
  12679. Started running agent 'wAddressOpen' on 07/27/97 10:49:33 PM
  12680. Ran LotusScript code
  12681. Done running agent 'wAddressOpen' on 07/27/97 10:49:35 PM
  12682. '++LotusScript Development Environment:2:5:(Options):0:74
  12683. Option Public 
  12684. Use "WebLib" 
  12685. '++LotusScript Development Environment:2:5:(Forward):0:1
  12686. Declare Sub Initialize
  12687. Declare Sub Terminate
  12688. Declare Function NABEntry(NABFilename As String) As String
  12689. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12690. '++LotusScript Development Environment:2:2:Initialize:1:10
  12691. Sub Initialize
  12692.      IsWebClient = True 
  12693.      Call wInstantiateObjectVariables
  12694.      Call wGetOrMakeCalendarProfile
  12695.      
  12696.      On Error Goto ErrorRoutine
  12697.      
  12698.      'Just need to move the existing sendto, copyto and blindcopyto field values into this temporary address form
  12699.      'Get existing memo which we just came from
  12700.      Dim currentmemo As notesdocument
  12701.      Dim item As notesitem
  12702.      
  12703.      UNID$ = Mid(note.Query_String(0), Instr(note.Query_String(0), "&")+1, 32)
  12704.      
  12705.      'if the UNID is missing or invalid, exit gracefully
  12706.      On Error Resume Next
  12707.      Dim memoNote As NotesDocument
  12708.      Set memoNote = db.GetDocumentByUNID( UNID$ )
  12709.      On Error Goto ErrorRoutine
  12710.      If memoNote Is Nothing Then 
  12711.           note.AbortGracefully = "1"
  12712.           Exit Sub
  12713.      End If
  12714.      note.AbortGracefully = "0"
  12715.      
  12716.      note.memounid = Lcase(UNID$)
  12717.      Set currentmemo = db.getdocumentbyunid(Lcase(UNID$))               
  12718.      note.tmpsendto = currentmemo.sendto
  12719.      note.tmpcopyto = currentmemo.copyto
  12720.      note.tmpblindcopyto = currentmemo.blindcopyto
  12721.      note.dispsendto = currentmemo.sendto
  12722.      note.dispcopyto = currentmemo.copyto
  12723.      note.dispblindcopyto = currentmemo.blindcopyto
  12724.      note.origsendto = currentmemo.sendto
  12725.      note.origcopyto = currentmemo.copyto
  12726.      note.origblindcopyto = currentmemo.blindcopyto
  12727.      
  12728.      'Need to fill in the list of directory lookup address books from the calendar profile
  12729.      Set item = note.getfirstitem("addressbooks")
  12730.      If profile.hasitem("NotesNAB1") Then
  12731.           item.appendtotextlist(NABEntry(profile.NotesNAB1(0)))          
  12732.           If profile.hasitem("NotesNAB2") Then
  12733.                item.appendtotextlist(NABEntry(profile.NotesNAB2(0)))               
  12734.                If profile.hasitem("NotesNAB3") Then
  12735.                     item.appendtotextlist(NABEntry(profile.NotesNAB3(0)))
  12736.                     If profile.hasitem("NotesNAB4") Then
  12737.                          item.appendtotextlist(NABEntry(profile.NotesNAB4(0)))
  12738.                     End If
  12739.                End If
  12740.           End If
  12741.      End If
  12742.      
  12743.      'There has to be something in the address lookup field so if the preferences doesn't have anything, we'll default to names.nsf
  12744.      If note.addressbooks(0) = "" Then
  12745.           note.addressbooks = NABEntry("names.nsf")
  12746.      End If
  12747.      
  12748.      'If this is a new temporary document, move it to the trash folder
  12749.      If Instr(currentmemo.subject(0), "IN TRASH")>0 Then currentmemo.putinfolder("($Trash)")
  12750.      Exit Sub
  12751.      
  12752. ErrorRoutine:
  12753.      Messagebox Error & " (wAddressOpen)"
  12754.      Exit Sub
  12755. End Sub
  12756. '++LotusScript Development Environment:2:2:Terminate:1:10
  12757. Sub Terminate
  12758.      
  12759. End Sub
  12760. '++LotusScript Development Environment:2:1:NABEntry:1:8
  12761. Function NABEntry(NABFilename As String) As String
  12762.        'pull the title of the address book and put it as the display string in the field     
  12763.      Dim newnab As notesdatabase
  12764.      If NABFilename <> "" Then
  12765.           Set newnab = New notesdatabase("", NABFilename)
  12766.           If newnab.isopen Then
  12767.                NABEntry = newnab.title + "|" + NABFilename
  12768.           Else
  12769.                NABEntry = NABFilename
  12770.           End If
  12771.      End If
  12772. End Function
  12773. O=Lotus Notes
  12774. O=Lotus Notes
  12775. PURSAFO
  12776. |.:#U
  12777. O=Lotus Notes
  12778. CN=Lotus Notes Template Development/O=Lotus Notes
  12779. PURSAFO
  12780. Fde!f^^
  12781. $TITLE
  12782. $AssistType
  12783. $AssistLastRun
  12784. $AssistDocCount
  12785. $AssistFlags
  12786. $AssistTrigger
  12787. $AssistInfo
  12788. $AssistQuery
  12789. $AssistAction
  12790. $AssistAction_Ex
  12791. Invitation from 
  12792. Principal
  12793.     1S2S6S
  12794. "Small Fonts
  12795. '++LotusScript Development Environment:2:5:(Options):0:74
  12796. '++LotusScript Development Environment:2:5:(Forward):0:1
  12797. Declare Sub Postopen(Source As Notesuidocument)
  12798. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  12799. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  12800. Declare Sub Postmodechange(Source As Notesuidocument)
  12801. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  12802. Declare Sub Click(Source As Button)
  12803. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12804. '++LotusScript Development Environment:2:2:Postopen:1:8
  12805. Sub Postopen(Source As Notesuidocument)
  12806.      
  12807. End Sub
  12808. '++LotusScript Development Environment:2:2:Querysave:1:8
  12809. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  12810.      
  12811. End Sub
  12812. '++LotusScript Development Environment:2:2:Queryopen:1:8
  12813. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  12814.      
  12815. End Sub
  12816. '++LotusScript Development Environment:2:2:Postmodechange:1:8
  12817. Sub Postmodechange(Source As Notesuidocument)
  12818.      
  12819. End Sub
  12820. '++LotusScript Development Environment:2:2:Queryclose:1:8
  12821. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  12822.      
  12823.      Messagebox "(Globals) Notice Queryclose"
  12824.      
  12825.      If (ErrorStatus > 0) Then 
  12826.           continue = False
  12827.           ErrorStatus = 0
  12828.      End If
  12829.      If ((Action = "Accept") Or (Action = "AddCalendar")) And note.HasItem("RepeatFor") Then note.Subject = "Repeat parent for " & note.Subject(0) & " - do not delete"
  12830.      ws.ViewRefresh
  12831. End Sub
  12832. '++LotusScript Development Environment:2:2:Click:1:8
  12833. Sub Click(Source As Button)
  12834.      
  12835. End Sub
  12836.  Notice'++LotusScript Development Environment:2:5:(Options):0:66
  12837. '++LotusScript Development Environment:2:5:(Forward):0:1
  12838. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  12839. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  12840. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  12841. Declare Sub Postopen(Source As Notesuidocument)
  12842. Declare Sub Postrecalc(Source As Notesuidocument)
  12843. Declare Sub Initialize
  12844. '++LotusScript Development Environment:2:5:(Declarations):0:2
  12845. '++LotusScript Development Environment:2:2:BindEvents:1:129
  12846. Private Sub BindEvents(Byval Objectname_ As String)
  12847.      Static Source As NOTESUIDOCUMENT
  12848.      Set Source = Bind(Objectname_)
  12849.      On Event Queryopen From Source Call Queryopen
  12850.      On Event Querysave From Source Call Querysave
  12851.      On Event Queryclose From Source Call Queryclose
  12852.      On Event Postopen From Source Call Postopen
  12853.      On Event Postrecalc From Source Call Postrecalc
  12854. End Sub
  12855. '++LotusScript Development Environment:2:2:Queryopen:1:12
  12856. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  12857.      
  12858. End Sub
  12859. '++LotusScript Development Environment:2:2:Querysave:1:12
  12860. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  12861.      
  12862. End Sub
  12863. '++LotusScript Development Environment:2:2:Queryclose:1:12
  12864. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  12865.      
  12866. End Sub
  12867. '++LotusScript Development Environment:2:2:Postopen:1:12
  12868. Sub Postopen(Source As Notesuidocument)
  12869.      
  12870. End Sub
  12871. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  12872. Sub Postrecalc(Source As Notesuidocument)
  12873.      
  12874. End Sub
  12875. '++LotusScript Development Environment:2:2:Initialize:1:10
  12876. Sub Initialize
  12877.      
  12878. End Sub
  12879. tmpConfirmMsg
  12880.     1S2S
  12881. [<b>  <b>]
  12882. tmpConfirmMsg
  12883. Comments
  12884.     1S2S
  12885. [<b>  </b>]
  12886. NoticeType
  12887. Invitation
  12888. NoticeType
  12889. Reschedule
  12890. NoticeType
  12891. Cancelled
  12892. NoticeType
  12893. Delegated Invitation
  12894. NoticeType
  12895. Status Update
  12896. NoticeType
  12897. Confirmation
  12898. NoticeType
  12899. Counter Proposal Declined
  12900. NoticeType
  12901. Acceptance
  12902. NoticeType
  12903. Declined
  12904. NoticeType
  12905. Delegation
  12906. NoticeType
  12907. Original Meeting
  12908. NoticeType
  12909. Pencilled In
  12910. Notice
  12911.     3S4S6S8RS8E9S10S12S14RS8E15S16S18S20RS8E21S22S24S26RS8E27S28S30S32RS8E33S34S36S38RS8E39S40S42S44RS8E45S46S48S50RS8E51S52S54S56RS8E57S58S60S62RS8E63S64S66S68RS8E69S70S72S74R
  12912. tmpLabel
  12913. CalendarProfile
  12914. Owner
  12915.     6S9S10S
  12916.     The owner of this mail file is "
  12917. CalendarProfile
  12918. Owner
  12919. tmpCurrentOwner
  12920.     You are logged in as "
  12921. tmpCurrentUser
  12922. $HideMailHeader
  12923. Principal
  12924. Principal
  12925. Principal
  12926. Principal
  12927. Principal
  12928.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  12929.     Sent by:    
  12930. FromDomain
  12931. FromDomain
  12932. FromDomain
  12933. FromDomain
  12934.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  12935. FromName
  12936.     0RR1S2S6S
  12937. FromStops
  12938.     0R1S2S6S
  12939. FromName
  12940. FromStops
  12941. FromStops
  12942. FromStops
  12943.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  12944. Broadcast
  12945.     1S2S
  12946.     0S0E
  12947.     Send RSVP
  12948. [<b>     </b>]
  12949. tmpRSVPAction
  12950. Accept|1Decline|0
  12951. [<b>   </b>]
  12952. CalendarProfile
  12953. AutoRemoveFromInbox
  12954. tmpOutOfInBox
  12955. Move out of the In Box|1
  12956. Broadcast
  12957.     1S2S
  12958.     0S0E
  12959.     Add to Calendar
  12960. [<b>     </b>]
  12961. CalendarProfile
  12962. AutoRemoveFromInbox
  12963. tmpOutOfInBox_1
  12964. Move out of the In Box|1
  12965. NoticeType
  12966.     1S2S3S4S5S6S
  12967. NoticeType
  12968. Accepted by:
  12969. NoticeType
  12970. Declined by:
  12971. NoticeType
  12972. tmpOwner
  12973. chair
  12974. Delegated to:
  12975. Delegated by:
  12976. NoticeType
  12977. Delegated by:
  12978. NoticeType
  12979. Counter proposal by:
  12980. tmpWhoLabel
  12981.     4RS8E7S8S10S12RS16E13S14S16S18RS16E19S20S25S26S28S30S33RS16E34S35S36S37S39RS16E40S41S43S45RS10E48R
  12982. tmpWhoLabel
  12983. NoticeType
  12984. Principal
  12985. Principal
  12986. NoticeType
  12987. tmpOwner
  12988. chair
  12989. Delegee
  12990. Principal
  12991.  (to 
  12992. Delegee
  12993. NoticeType
  12994. Principal
  12995. tmpWho
  12996.     4RS16E7S8S9S10S12S14RS34E21RS52E28RS34E32S36RS21E37S38S44S47S48S50S52S58S59S60S61S67S68S72RS21E73S74S75S76S83RS21E86RS9E
  12997. tmpWho
  12998.     Chairperson:
  12999. Chair
  13000.     0S0E
  13001. tmpOriginator
  13002.     Start:
  13003. StartDateTime
  13004. tmpStartDate
  13005.     End:
  13006. EndDateTime
  13007. tmpEndDate
  13008.     1S2S
  13009.     Room:
  13010. tmpRoom
  13011.     Description:
  13012. topic
  13013. tmpTopic[<size=58>]
  13014. NoticeType
  13015.     1S2S
  13016. [<b>  </b>]
  13017. Proposed Change
  13018.     Proposed date:
  13019. StartDate
  13020. StartDate
  13021. StartDateTime
  13022.     0S0E
  13023. NewDate
  13024. NoticeType
  13025. AppointmentType
  13026.     1S2S3S4S5S6S7S8S
  13027.     Proposed time:
  13028. NoticeType
  13029. AppointmentType
  13030.     1S2S3S4S5S6S7S8S9S
  13031. StartDateTime
  13032. EndDateTime
  13033.     6S7S8S9S
  13034. NewTimeRange
  13035.     Reason for change:
  13036. Reason[<size=58>]
  13037. RepeatDates
  13038.     0S0E
  13039.     Proposed location:
  13040. NoticeType
  13041. chair
  13042. tmpOwner
  13043.     1S2S3S4S5S6S
  13044. NewRoom
  13045. NoticeType
  13046. chair
  13047. tmpOwner
  13048.     1S2S3S4S5S6S
  13049. CurrentServer
  13050.     1S2S
  13051. CurrentServer
  13052. Error
  13053. This operation cannot be performed locally.
  13054.     0R3S4S5S6S14S15S
  13055. Sites
  13056. CurrentServer
  13057. names.nsf
  13058. ($Rooms)
  13059.     0R1S2S
  13060. Select the site to search for a room.
  13061. Sites
  13062.     0R1S2S7S8S
  13063. SiteKey
  13064. CN=*/O=
  13065. Site"
  13066.     0R1S2S3S4S
  13067. Capacity
  13068. RequiredAttendees
  13069. OptionalAttendees
  13070.     0R1S2S
  13071. RoomAvailable
  13072. SiteKey
  13073. tmpNewStart
  13074. tmpNewEnd
  13075. Capacity
  13076.     0R1S2S
  13077. RoomAvailable
  13078. No Room Found
  13079. No room was found during the specified time.
  13080.     0R3S4S5S6S11S12S14S15S
  13081. NewRoom
  13082. RoomAvailable
  13083.     0R1S2S3S
  13084. ProposeRoom
  13085.     0R1S2S3S
  13086. SelectRoom
  13087.     0R1S2S3S
  13088. NewRoom
  13089. tmpNewRoom
  13090. RepeatIDs
  13091. NoticeType
  13092.     4S5S6S7S
  13093. NoticeType
  13094.     3S4S5S6S7S8S
  13095.     Invitees:
  13096. RequiredAttendees
  13097. OptionalAttendees
  13098.     1S2S4S6S8S10S12S17S19S22S29S30S39S40S
  13099.     0R1S6S8S9S11S15S19S23S
  13100. tmpAttendeeList
  13101.     [<BR><BR>]
  13102.     Detailed description:
  13103. NoticeType
  13104.     1S2S
  13105.     Status update:
  13106. StatusUpdate
  13107.     Comments:
  13108. Comments
  13109. Broadcast
  13110.     1S2S3S4S5S6S
  13111.     Comments sent:
  13112. Comments[<size=73>]
  13113. [<b>  </b>]Mail Options[<BR>]
  13114. Importance
  13115. High|1Normal|2Low|3
  13116.      Importance
  13117. DeliveryReport
  13118. On failure|BConfirm delivery|CTrace entire path|TNone|N
  13119.      DeliveryReport
  13120. DeliveryPriority
  13121. High|HNormal|NLow|L
  13122.      Delivery Priority
  13123.     0S0E
  13124.     Send RSVP
  13125.     Hidden Fields: 
  13126. tmpNewStart
  13127. tmpNewEnd
  13128. MailOptions
  13129. wNoticeOpen
  13130. $$QueryOpenAgent
  13131. wNoticeSave
  13132. $$QuerySaveAgent
  13133. Path_Info
  13134. Query_String
  13135. tmpFrom
  13136.     Hidden w/ HTML tag in help description field:
  13137. tmpUNIDnote[<TYPE=hidden >]
  13138. _Edit Document
  13139. _Forward
  13140. _Move To Folder...
  13141. Categori_zeK
  13142. Send Docu_ment
  13143. _Remove From FolderK
  13144. RSVP ActionK8
  13145.     1S2S8S12S14S
  13146. /Notice?OpenForm&UNID=
  13147.     0R1S2S3S4S11S13S
  13148. path"
  13149.     0R1S2S3S4S5S6S
  13150. tmpConfirmMsg
  13151. &Check"
  13152.     0R1S3S4S6S11S14S15Sb
  13153. Chair
  13154. Broadcast
  13155. DoNotProcessh
  13156.     4S5S9S10S11S12S13S14S
  13157. Accept 
  13158.     0S0E
  13159. Chair
  13160. Broadcast
  13161. DoNotProcessh
  13162.     4S5S9S10S11S12S13S14S
  13163. Trash
  13164.     1S2S8S12S14S
  13165. /wCommand?OpenAgent&ToTrash=
  13166. &From="
  13167.     0R1S2S3S4S11S13S15S16S
  13168. Path_Info
  13169. Path_Info
  13170.     0R1S2S6S10S11S15S
  13171. view1
  13172.     0R1S2S3S10S14S18S21S
  13173. view2
  13174. view1
  13175. view1
  13176. view1
  13177.     0R1S2S3S10S14S18S21S
  13178. path"
  13179. view2
  13180.     0RR3S4S5S6S7S8S
  13181.     1S2S8S12S14S
  13182. /wFolders?OpenForm&UNID=
  13183. &View="
  13184.     0R1S2S3S4S11S13S15S16S
  13185. Path_Info
  13186. Path_Info
  13187.     0R1S2S6S10S11S15S
  13188. view1
  13189.     0R1S2S3S10S14S18S21S
  13190. view2
  13191. view1
  13192. view1
  13193. view1
  13194.     0R1S2S3S10S14S18S21S
  13195. path"
  13196. view2
  13197.     0RR3S4S5S6S7S8S
  13198. In Box*
  13199. ($Inbox)
  13200. Calendar
  13201.     1S2S8S12S14S
  13202. path"
  13203. /($Calendar)?OpenView&Grid=
  13204. CalendarProfile
  13205. wCalGridType
  13206.     0R3S4S5S6S7S8S12S
  13207. Meetings.
  13208. ($Meetings)
  13209. To Do
  13210. ($ToDo)
  13211. All Views
  13212. O=Lotus Notes
  13213. O=Lotus Notes
  13214. PURSAFO
  13215. |.:#U
  13216. O=Lotus Notes
  13217. CN=Lotus Notes Template Development/O=Lotus Notes
  13218. PURSAFO
  13219. Fde!f^^
  13220. StartDate
  13221. TimeRange
  13222. $FormPublicAccess
  13223. $TITLE
  13224. $INFO
  13225. $WINDOWTITLE
  13226. $Script
  13227. $$Script_O
  13228. $$ScriptName
  13229. $$FormScript
  13230. $$$FormScript_O
  13231. NewDate
  13232. NewTimeRange
  13233. tmpNewStart
  13234. tmpNewEnd
  13235. $BODY
  13236. $ACTIONS
  13237. $PublicAccess
  13238. (web Reply)ReplyCDn
  13239. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################
  13240. (web wGuide)wGuideCDn
  13241. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################################
  13242. (web wPreferences)wPreferencesCDn1
  13243. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###############
  13244. 240EF0A853564D840009D6BA233719491EA45AEDDCEA2E8B54BB76CCC29BC123
  13245. (web wAddressInvite)wAddressInviteCDn
  13246. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############################
  13247. 240EF0A853564D840009D6BA233719491EA45AEDDCEA2E8B54BB76CCC29BC123
  13248. (web wAddressTask)wAddressTaskCDn
  13249. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################
  13250. ##########################################################
  13251. ##########################################################
  13252. ##########################################################
  13253. VersionOpt|
  13254.     6S7S9S14S
  13255. $VersionOpt
  13256.     0R1S2S3S
  13257. SavedOnce
  13258.     0R1S2S3S
  13259. PostedDate(
  13260.     0R1S2S3S
  13261. DeliveredDate
  13262.     0R1S2S3S
  13263. $AutoEditMode
  13264.     0R1S2S3S
  13265. MailSaveOptions
  13266.     0R1S2S3S
  13267. VersionOpt
  13268.     0R4S
  13269. "Small Fonts
  13270. New Task
  13271. Subject
  13272. Subject
  13273. Subject
  13274.     4S6S12S13S14S15S17S21S23S25S26S28S
  13275. '++LotusScript Development Environment:2:5:(Options):0:74
  13276. Option Public
  13277. '++LotusScript Development Environment:2:5:(Forward):0:1
  13278. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13279.  Task'++LotusScript Development Environment:2:5:(Options):0:66
  13280. '++LotusScript Development Environment:2:5:(Forward):0:1
  13281. Declare Sub Postopen(Source As Notesuidocument)
  13282. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  13283. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  13284. '++LotusScript Development Environment:2:5:(Declarations):0:2
  13285. '++LotusScript Development Environment:2:2:BindEvents:1:129
  13286. Private Sub BindEvents(Byval Objectname_ As String)
  13287.      Static Source As NOTESUIDOCUMENT
  13288.      Set Source = Bind(Objectname_)
  13289.      On Event Postopen From Source Call Postopen
  13290.      On Event Queryclose From Source Call Queryclose
  13291.      On Event Querymodechange From Source Call Querymodechange
  13292. End Sub
  13293. '++LotusScript Development Environment:2:2:Postopen:1:12
  13294. Sub Postopen(Source As Notesuidocument)
  13295.      
  13296. End Sub
  13297. '++LotusScript Development Environment:2:2:Queryclose:1:12
  13298. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  13299.      
  13300. End Sub
  13301. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  13302. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  13303.      
  13304. End Sub
  13305.     Always Hidden: 
  13306. FromPerson memo is from.
  13307. tmpFrom
  13308. CalendarProfile
  13309. Owner
  13310. Principal
  13311.     0S0E
  13312.     0S0E
  13313. Encrypt
  13314.     0S0E
  13315. DefaultMailSaveOptions
  13316. $KeepPrivate
  13317. $KeepPrivate
  13318. $KeepPrivate
  13319.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  13320. MailOptions
  13321. wTask
  13322. $$QuerySaveAgent
  13323. Query_String
  13324. Query_StringCGI variable for LS
  13325. Path_Info
  13326. Path_Info
  13327. OldSubject
  13328. [<b>  </b>]
  13329. [<b>  </b>]-
  13330. [<b>  </b>]
  13331. title
  13332. DueState
  13333. Overdue
  13334. DueState
  13335. Current
  13336. DueState
  13337. Future
  13338. DueState
  13339. Rejected
  13340. Completed
  13341.     1S2S3S6S8R9S11S12S14S16R17S19S20S22S24R25S27S28S30S32R33S35S36S38S40S42S
  13342. Importance
  13343. title
  13344. , Priority = High (1)
  13345. title
  13346.     0RR1S3S4S6S7S8S10S
  13347. dispStatus
  13348. CalendarProfile
  13349. Owner
  13350.     6S9S10S
  13351.     The owner of this mail file is "
  13352. tmpCurOwner
  13353. CalendarProfile
  13354. Owner
  13355.     1S2S6S
  13356. tmpCurOwner
  13357. (set this value from the Preferences page)
  13358. tmpCurOwner
  13359.     0R1S3S4S6S8S
  13360. tmpCurrentOwner
  13361.     You are logged in as "
  13362. tmpCurrentUser
  13363. DueState
  13364.     1S2S3S4S5S6S7S8S
  13365.     0S0E
  13366.     Submit
  13367. DueState
  13368. AssignState
  13369. AssignState
  13370. tmpAssignTask
  13371.     1S2S3S4S5S6S7S8S9S10S15S16S17S18S20S21S22S23S
  13372. SoloTaskAction
  13373. Complete|1
  13374. DueState
  13375. AssignState
  13376. AssignState
  13377. tmpAssignTask
  13378.     1S2S3S4S5S6S7S8S9S10S14S15S16S17S18S19S20S2E21S22S23S
  13379. ReassignTask
  13380. Cancel the assignment to|1
  13381. SendTo"
  13382.     1S2S
  13383. dispAssignedTo
  13384. DueState
  13385.     1S2S3S4S5S6S7S8S
  13386.     0S0E
  13387.     Submit
  13388. AssignedTaskAction
  13389. Accept|0Decline - Notify Assignee|3Complete - Notify Assignee|2Complete|1
  13390. CalendarProfile
  13391. AutoRemoveFromInbox
  13392. tmpOutOfInBox
  13393. Move out of the In Box|1
  13394.     1S2S
  13395.     From:
  13396. Principal
  13397. Principal
  13398. FromDomain
  13399. FromDomain
  13400. FromDomain
  13401. FromDomain
  13402.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  13403. FromName
  13404. Principal
  13405. Principal
  13406.     0RR1S2S9S11S15S
  13407. FromStops
  13408.     0R1S2S6S
  13409. FromName
  13410. FromStops
  13411. FromStops
  13412. FromStops
  13413.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  13414.      on 
  13415. PostedDateh
  13416. PostedDate
  13417.     7S9S
  13418. tmpDisplayDateTime/date memo was created or mailed.
  13419. $HideMailHeader
  13420. Principal
  13421. Principal
  13422. Principal
  13423. Principal
  13424. Principal
  13425.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  13426.     Sent by:
  13427. FromDomain
  13428. FromDomain
  13429. FromDomain
  13430. FromDomain
  13431.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  13432. FromName
  13433.     0RR1S2S6S
  13434. FromStops
  13435.     0R1S2S6S
  13436. FromName
  13437. FromStops
  13438. FromStops
  13439. FromStops
  13440.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  13441. ReplyTo
  13442.     1S2S
  13443.     Reply to:
  13444. ReplyTo
  13445. tmpDisplayReplyTo
  13446.     Subject
  13447. Subject[<size=58>]
  13448.     Priority:
  13449. Importance
  13450. None|99High (1)|1Medium (2)|2Low (3)|3
  13451.     Due Date:
  13452. DueDateTime
  13453. Invalid Due Date.
  13454. DueDateTime
  13455. DueDateTime
  13456. Invalid Due Date.
  13457.     7S12S17S19S20S21S23S25SDueDateTime
  13458.     Start Date:
  13459. StartDateTime
  13460. Invalid Start Date.
  13461. StartDateTime
  13462. StartDateTime
  13463. Invalid Start Date.
  13464.     7S12S17S19S20S21S23S25SStartDateTime
  13465. tmpAssignTask
  13466. SendTo
  13467.     1S2S3S4S5S6S
  13468.     Assign to:
  13469. SendTo[<size=58>]
  13470.     Assigned to:
  13471. AssignState
  13472. Principal
  13473. Principal
  13474. AssignState
  13475. SendTo
  13476. AssignedTo
  13477.     3S4S6S9S10S12S14S17S18S19S20S21S23S25S
  13478. AssignedTo[<size=58>]
  13479. tmpAssignTask
  13480. SendTo
  13481. CopyTo
  13482.     1S2S3S4S5S6S7S8S9S10S
  13483. CopyTo[<size=58>]
  13484.     [<BR>]
  13485. CopyTo
  13486.     1S2S
  13487. CopyTo
  13488. dispCopyTo[<size=58>]
  13489.     [<BR>]
  13490.     Additional Information:
  13491. Body[<ROWS="10" COLS="60"  WRAP=VIRTUAL>]
  13492.     [<BR>]File Attachments:
  13493. AssignState
  13494. AssignState
  13495. tmpAssignTask
  13496.     5S6S7S8S10S11S12S13S
  13497. [<b>  </b>]Mail Options[<BR>]
  13498. DeliveryReport
  13499. On failure|BConfirm delivery|CTrace entire path|TNone|N
  13500.     DeliveryReport
  13501. DeliveryPriority
  13502. High|HNormal|NLow|L
  13503.     Delivery Priority
  13504.     0S0E
  13505.     Submit
  13506.     Hidden w/ HTML tag in help description field:
  13507. tmpAssign
  13508. &Assign
  13509.     1S2S
  13510. Path_Info
  13511. tmpAssign
  13512. tmpAssign
  13513.     0R1S6S11S12S14S16S
  13514. tmpAssignTask[<TYPE=hidden >]
  13515. remember the original value ...
  13516. Query_String
  13517. tmpQuery_String[<TYPE=hidden >]
  13518. Edit Task
  13519. Principal
  13520. AssignState
  13521.     3S4S5S6S8S9S10S11S
  13522. _Forward
  13523. _Move To Folder...
  13524. Categori_zeK
  13525. SSend
  13526. _Remove From Folder...
  13527. Assign To OthersT
  13528.     1S2S8S12S14S
  13529. First arg could be a doc or view ref
  13530.     0RR1S
  13531. Path_Info
  13532. Path_Info
  13533.     0R1S2S6S10S11S15S16S
  13534. arg1a
  13535.     0R1S2S3S10S14S18S21S
  13536. arg1b
  13537. arg1a
  13538. arg1a
  13539. arg1a
  13540.     0R1S2S3S10S14S18S21S
  13541. If second arg exists, it's the doc ref
  13542.     0RR1S
  13543. arg1b
  13544.     0R1S2S3S10S14S18S22S23S27S28S31S
  13545. arg2a
  13546.     0R1S2S3S10S14S18S21S
  13547. openForm
  13548. OpenForm
  13549.     0RR1S2S
  13550. editDoc
  13551. EditDocument
  13552.     0R1S2S
  13553. Determine the command that was issued
  13554.     0RR1S
  13555. isOpenForm
  13556. tmpQuery_String
  13557. openForm
  13558. openForma
  13559.     0R1S2S8S14S15S
  13560. isEditDoc
  13561. tmpQuery_String
  13562. editDoc
  13563. editDoc
  13564.     0R1S2E2S5E8S14S15S
  13565. newCmd
  13566. isOpenForm
  13567. openForm
  13568. isEditDoc
  13569. editDoc
  13570.     0R1S2S3S6S8S12S14S
  13571. path"
  13572. arg1b
  13573. isEditDoc
  13574. arg2a
  13575. newCmd"
  13576. &Assign
  13577.     0R3S4S5S6S7S8S9S10S14S15S16S18S20S21S22S23S24S25Sr
  13578. AssignState
  13579. AssignState
  13580. tmpAssignTask
  13581.     5S6S7S8S10S11S12S13S
  13582. Edit 
  13583.     0S0E
  13584. DueState
  13585. AssignState
  13586.     1S2S3S4S5S6S
  13587. Reply
  13588. Reply
  13589. AssignState
  13590. AssignState
  13591. Principal
  13592.     4S5S6S7S8S9S13S14S
  13593. AddressK
  13594. OldSubject
  13595. Subject
  13596. Subject
  13597. IN TRASH - TEMPORARY DOCUMENT
  13598. Subject
  13599.     0R1S2S3S
  13600. tmpSendOptions
  13601.     0R1S
  13602.     0R1S10S14S16S23S
  13603.     0R4S
  13604. path"
  13605. /wAddressTask?OpenForm&
  13606.     0R3S4S5S6S7S8S15S17S18S.
  13607. tmpAssignTask
  13608.     1S2S
  13609. Trash
  13610.     1S2S8S12S14S
  13611. /wCommand?OpenAgent&ToTrash=
  13612. &From="
  13613.     0R1S2S3S4S11S13S15S16S
  13614. Path_Info
  13615. Path_Info
  13616.     0R1S2S6S10S11S15S
  13617. view1
  13618.     0R1S2S3S10S14S18S21S
  13619. view2
  13620. view1
  13621. view1
  13622. view1
  13623.     0R1S2S3S10S14S18S21S
  13624. path"
  13625. view2
  13626.     0RR3S4S5S6S7S8S
  13627.     1S2S8S12S14S
  13628. /wFolders?OpenForm&UNID=
  13629. &View="
  13630.     0R1S2S3S4S11S13S15S16S
  13631. Path_Info
  13632. Path_Info
  13633.     0R1S2S6S10S11S15S
  13634. view1
  13635.     0R1S2S3S10S14S18S21S
  13636. view2
  13637. view1
  13638. view1
  13639. view1
  13640.     0R1S2S3S10S14S18S21S
  13641. path"
  13642. view2
  13643.     0RR3S4S5S6S7S8S
  13644. In Box*
  13645. ($InBox)
  13646. Calendar
  13647.     1S2S8S12S14S
  13648. path"
  13649. /($Calendar)?OpenView&Grid=
  13650. CalendarProfile
  13651. wCalGridType
  13652.     0R3S4S5S6S7S8S12S
  13653. Meetings.
  13654. ($Meetings)
  13655. To Do
  13656. ($ToDo)
  13657. All Views
  13658. O=Lotus Notes
  13659. O=Lotus Notes
  13660. PURSAFO
  13661. |.:#U
  13662. O=Lotus Notes
  13663. CN=Lotus Notes Template Development/O=Lotus Notes
  13664. PURSAFO
  13665. Fde!f^^
  13666. DelegateAlert
  13667. AssigneeAlert
  13668. $$FormPostOpenAction
  13669. ExpireDate
  13670. ReplyDate
  13671. CompletedOn
  13672. ComposedDate
  13673. SelfAssigned
  13674. $TypeIcon
  13675. ASSIGNSTATE
  13676. $TITLE
  13677. $INFO
  13678. $WINDOWTITLE
  13679. $Script
  13680. $$Script_O
  13681. $$ScriptName
  13682. $$FormScript
  13683. $$$FormScript_O
  13684. DueDateTime
  13685. StartDateTime
  13686. $BODY
  13687. $ACTIONS
  13688.  $$ViewTemplateDefault
  13689. Hidden
  13690. Hidden: 
  13691. Path_Info
  13692. Query_String
  13693. Query_String
  13694. tmpOpenView
  13695. OpenView
  13696.     1S2S
  13697. tmpOpenViewLen
  13698. tmpOpenView
  13699.     0R1S2S3S
  13700. tmpQuery_StringLen
  13701. Query_String
  13702.     0R1S2S
  13703. tmpQuery_StringLen
  13704. tmpOpenViewLen
  13705. tmpOpenView
  13706. Query_String
  13707. tmpOpenViewLen_
  13708. Query_String
  13709. tmpQuery_StringLen
  13710. tmpOpenViewLen#
  13711.     0R1S3S4S6S8RS9E9S11S12S13S16S19S21RS18E25S26S27S29RS9E30S8E
  13712. tmpArgs
  13713. &Click_
  13714. tmpArgs
  13715. &Click_
  13716. tmpArgs
  13717.     0RR1S8S12S16S19S
  13718. ViewArguments
  13719.     4S6S
  13720. URLViewName
  13721. Domino
  13722. ViewPreviousPage
  13723. *.GIF
  13724. JPEG I
  13725. Previous
  13726. Domino
  13727. ViewNextPage
  13728.     0S0E
  13729. Expand
  13730.     0S0E
  13731. Collapse
  13732. ViewName
  13733. Begin
  13734.     1S2S8S12S14S
  13735. path"
  13736. /wCommand?OpenAgent&ViewEnd="
  13737. urlViewName
  13738.     0R3S4S5S6S7S8S
  13739. !!!)))111999BBBJJJRRRZZZccckkksss
  13740. ssc11
  13741. B9{1)
  13742. cR1skZ
  13743. {sc11)
  13744. {sBsk9cZ!
  13745. 11)ccR
  13746. kskZcZ
  13747. !1k)B
  13748. 99RZZ
  13749. 91kB1
  13750. RJsB9k
  13751. CGM Imag
  13752.     1S2S8S12S14S
  13753. path"
  13754. /Memo?OpenForm&From="
  13755. URLViewName
  13756. ViewArguments
  13757.     0R3S4S5S6S7S8S9S10S
  13758.  Memo
  13759. Appointment
  13760.  Meeting
  13761.  Task
  13762.     0S0E
  13763.     1S2S8S12S14S
  13764. path"
  13765. /Phone+Message?OpenForm&From=
  13766. URLViewName
  13767. ViewArguments
  13768.     0R3S4S5S6S7S8S9S10S
  13769.  Message
  13770. All Views:
  13771. $$ViewList
  13772. $$ViewList
  13773. Favorites:
  13774. CalendarProfile
  13775. wEnableFavorites
  13776.     4S6S7S
  13777. CalendarProfile
  13778. wEnableFavorites
  13779.     1S6S8S9S11S16S
  13780. CalendarProfile
  13781. wFavorite1
  13782.     0RR1S2S6S
  13783. CalendarProfile
  13784. wFavorite2
  13785.     0R1S2S6S
  13786. CalendarProfile
  13787. wFavorite3
  13788.     0R1S2S6S
  13789. CalendarProfile
  13790. wFavorite4
  13791.     0R1S2S6S
  13792. CalendarProfile
  13793. wFavorite5
  13794.     0R1S2S6S
  13795. CalendarProfile
  13796. wFavorite6
  13797.     0R1S2S6S
  13798. CalendarProfile
  13799. wIsFolder1
  13800. CalendarProfile
  13801. wFavoriteURL1
  13802.     0RR1S2S3S8S10S11S13RS17S19S22RS26S
  13803. CalendarProfile
  13804. wIsFolder2
  13805. CalendarProfile
  13806. wFavoriteURL2
  13807.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  13808. CalendarProfile
  13809. wIsFolder3
  13810. CalendarProfile
  13811. wFavoriteURL3
  13812.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  13813. CalendarProfile
  13814. wIsFolder4
  13815. CalendarProfile
  13816. wFavoriteURL4
  13817.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  13818. CalendarProfile
  13819. wIsFolder5
  13820. CalendarProfile
  13821. wFavoriteURL5
  13822.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  13823. CalendarProfile
  13824. wIsFolder6
  13825. CalendarProfile
  13826. wFavoriteURL6
  13827.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  13828. anchorHead
  13829.   <a href="
  13830.     0RR1S2S
  13831. anchorMid
  13832.     0R1S2S
  13833. anchorTail
  13834.     0R1S2S
  13835. Link1
  13836. anchorHead
  13837. url1"
  13838. anchorMid
  13839. fav1"
  13840. anchorTail"
  13841. <BR>"
  13842.     0RR1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  13843. Link2
  13844. anchorHead
  13845. url2"
  13846. anchorMid
  13847. fav2"
  13848. anchorTail"
  13849. <BR>"
  13850.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  13851. Link3
  13852. anchorHead
  13853. url3"
  13854. anchorMid
  13855. fav3"
  13856. anchorTail"
  13857. <BR>"
  13858.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  13859. Link4
  13860. anchorHead
  13861. url4"
  13862. anchorMid
  13863. fav4"
  13864. anchorTail"
  13865. <BR>"
  13866.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  13867. Link5
  13868. anchorHead
  13869. url5"
  13870. anchorMid
  13871. fav5"
  13872. anchorTail"
  13873. <BR>"
  13874.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  13875. Link6
  13876. anchorHead
  13877. url6"
  13878. anchorMid
  13879. fav6"
  13880. anchorTail"
  13881. <BR>"
  13882.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  13883. [</b>
  13884. Link1
  13885. Link2
  13886. Link3
  13887. Link4
  13888. Link5
  13889. Link6
  13890.     0RR1S2S3S4S5S6S7S8S9S10S11S12S13S14S
  13891. Favorites
  13892.     0S0E
  13893. Lotus 
  13894. *.CGM
  13895. Excel 4.0/
  13896.  Search
  13897.     1S2S8S12S14S
  13898. path"
  13899. /wCommand?OpenAgent&EmptyTrash=
  13900. URLViewName
  13901.     0R3S4S5S6S7S8S
  13902.  Empty Trash
  13903. wPreferences
  13904.  Preferences
  13905. wGuide
  13906.  Guide
  13907. $$ViewBody
  13908. Domino
  13909. ViewPreviousPage
  13910. *.GIF
  13911. JPEG I
  13912. Previous
  13913. Domino
  13914. ViewNextPage
  13915.     0S0E
  13916. Expand
  13917.     0S0E
  13918. Collapse
  13919. ViewName
  13920. Begin
  13921.     1S2S8S12S14S
  13922. path"
  13923. /wCommand?OpenAgent&ViewEnd="
  13924. urlViewName
  13925.     0R3S4S5S6S7S8S
  13926. Categori_zeK
  13927. _Edit Document
  13928. Send Docu_ment
  13929. _Forward
  13930. _Move To Folder...
  13931. _Remove From FolderK
  13932. O=Lotus Notes
  13933. O=Lotus Notes
  13934. PURSAFO
  13935. |.:#U
  13936. O=Lotus Notes
  13937. CN=Lotus Notes Template Development/O=Lotus Notes
  13938. PURSAFO
  13939. Fde!f^^
  13940. $TITLE
  13941. $INFO
  13942. $WINDOWTITLE
  13943. $$Script_O
  13944. $$ScriptName
  13945. $BODY
  13946. $ACTIONS
  13947.  $$ViewTemplate for ($ToDo)
  13948. Hidden: 
  13949. In Box
  13950. Drafts
  13951. Calendar
  13952. To Do
  13953. Meetings
  13954. Trash
  13955. Threads
  13956.     2R4R6R8R10R12R14R16R
  13957. ViewsToList
  13958. ($InBox)
  13959. ($Drafts)
  13960. ($Sent)
  13961. ($All)
  13962. ($Calendar)
  13963. ($ToDo)
  13964. ($Meetings)
  13965. ($Trash)
  13966. Discussion Threads
  13967.     2R4R6R8R10R12R14R16R
  13968. ViewsToAccess
  13969. In Box
  13970. Drafts
  13971. All Documents
  13972. Calendar
  13973. To Do
  13974. Meetings
  13975. Trash
  13976. Discussion Threads
  13977.     2R4R6R8R10R12R14R16R
  13978. ViewsToCompare
  13979. Path_Info
  13980. Path_Info
  13981. Query_String
  13982. Query_String
  13983. tmpOpenView
  13984. OpenView
  13985.     1S2S
  13986. tmpOpenViewLen
  13987. tmpOpenView
  13988.     0R1S2S3S
  13989. tmpQuery_StringLen
  13990. Query_String
  13991.     0R1S2S
  13992. tmpQuery_StringLen
  13993. tmpOpenViewLen
  13994. tmpOpenView
  13995. Query_String
  13996. tmpOpenViewLen_
  13997. Query_String
  13998. tmpQuery_StringLen
  13999. tmpOpenViewLen#
  14000.     0R1S3S4S6S8RS9E9S11S12S13S16S19S21RS18E25S26S27S29RS9E30S8E
  14001. tmpArgs
  14002. &Click_
  14003. tmpArgs
  14004. &Click_
  14005. tmpArgs
  14006.     0RR1S8S12S16S19S
  14007. ViewArguments
  14008. ($ToDo)
  14009. ViewName
  14010. ViewName
  14011. URLViewName
  14012.     1S2S8S12S14S
  14013. /wUpdateTasks?OpenAgent
  14014.     0R1S2S
  14015. path"
  14016.     0R3S4S5S6S
  14017. Image
  14018. *.GMF;*.CG
  14019. Update
  14020. Domino
  14021. ViewPreviousPage
  14022. *.GIF
  14023. JPEG I
  14024. Previous
  14025. Domino
  14026. ViewNextPage
  14027.     0S0E
  14028. Expand
  14029.     0S0E
  14030. Collapse
  14031. !!!)))111999BBBJJJRRRZZZccckkksss
  14032. ssc11
  14033. B9{1)
  14034. cR1skZ
  14035. {sc11)
  14036. {sBsk9cZ!
  14037. 11)ccR
  14038. kskZcZ
  14039. !1k)B
  14040. 99RZZ
  14041. 91kB1
  14042. RJsB9k
  14043. 1.26    0.22    Ella
  14044.     1S2S8S12S14S
  14045. path"
  14046. /Memo?OpenForm&From="
  14047. URLViewName
  14048. ViewArguments
  14049.     0R3S4S5S6S7S8S9S10S
  14050.  Memo
  14051. Appointment
  14052.  Meeting
  14053.  Task
  14054.     1S2S8S12S14S
  14055. path"
  14056. /Phone+Message?OpenForm&From=
  14057. URLViewName
  14058. ViewArguments
  14059.     0R3S4S5S6S7S8S9S10S
  14060.  Message
  14061. Main Views:
  14062. views
  14063. ViewsToList
  14064.     1S2S
  14065. viewsalias
  14066. ViewsToAccess
  14067.     0R1S2S
  14068. viewscomp
  14069. ViewsToCompare
  14070.     0R1S2S
  14071.     0RR1S2S
  14072. ncurr
  14073. viewscomp
  14074.     0R1S2S9S
  14075. vmask
  14076. ncurr
  14077. views
  14078. ncurr
  14079. ncurr
  14080. ncurr
  14081. views
  14082. views
  14083. ncurr
  14084.     0R1S2S8RS26E9S10S12S3E16S22RS34E24S25S26S28S32S37S39S40RS34E42RS34E44S45S46S51S55S59S60S63S
  14085. anchor
  14086.  <a href="/
  14087.     0RR1S2S3S4S10S14S16S
  14088. anchors
  14089. anchor
  14090. viewsalias
  14091. views
  14092. </a> "
  14093.     0R1S2S3S4S5S6S10S12S14S15S16S17S18S19S
  14094. <tr><td></td><td>
  14095.     0RR1S2S
  14096. <tr><td><img src="/icons/vwicn118"></td><td bgcolor="c0c0c0">
  14097.     0R1S2S
  14098. rows1
  14099. vmask
  14100. anchors
  14101. </td></tr>"
  14102.     0RR1S2S6S10S14S15S16S17S
  14103. rows1
  14104. Calendar)
  14105. Calendar)?OpenView&Grid=
  14106. CalendarProfile
  14107. wCalGridType
  14108.     0R1S2S6S8S9S10S14S
  14109. others
  14110. anchor"
  14111. ">All Views</a> </td><td>"
  14112.     0RR1S2S3S4S5S6S
  14113. [<table>
  14114. others"
  14115. </table>]
  14116.     0R1S2S6S8S9S10S11S
  14117. Views
  14118. CalendarProfile
  14119. wEnableFavorites
  14120.     4S6S7S
  14121. Favorites:
  14122. CalendarProfile
  14123. wEnableFavorites
  14124.     1S6S8S9S11S16S
  14125. CalendarProfile
  14126. wFavorite1
  14127.     0RR1S2S6S
  14128. CalendarProfile
  14129. wFavorite2
  14130.     0R1S2S6S
  14131. CalendarProfile
  14132. wFavorite3
  14133.     0R1S2S6S
  14134. CalendarProfile
  14135. wFavorite4
  14136.     0R1S2S6S
  14137. CalendarProfile
  14138. wFavorite5
  14139.     0R1S2S6S
  14140. CalendarProfile
  14141. wFavorite6
  14142.     0R1S2S6S
  14143. CalendarProfile
  14144. wIsFolder1
  14145. CalendarProfile
  14146. wFavoriteURL1
  14147.     0RR1S2S3S8S10S11S13RS17S19S22RS26S
  14148. CalendarProfile
  14149. wIsFolder2
  14150. CalendarProfile
  14151. wFavoriteURL2
  14152.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14153. CalendarProfile
  14154. wIsFolder3
  14155. CalendarProfile
  14156. wFavoriteURL3
  14157.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14158. CalendarProfile
  14159. wIsFolder4
  14160. CalendarProfile
  14161. wFavoriteURL4
  14162.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14163. CalendarProfile
  14164. wIsFolder5
  14165. CalendarProfile
  14166. wFavoriteURL5
  14167.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14168. CalendarProfile
  14169. wIsFolder6
  14170. CalendarProfile
  14171. wFavoriteURL6
  14172.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14173. anchorHead
  14174.   <a href="
  14175.     0RR1S2S
  14176. anchorMid
  14177.     0R1S2S
  14178. anchorTail
  14179.     0R1S2S
  14180. Link1
  14181. anchorHead
  14182. url1"
  14183. anchorMid
  14184. fav1"
  14185. anchorTail"
  14186. <BR>"
  14187.     0RR1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14188. Link2
  14189. anchorHead
  14190. url2"
  14191. anchorMid
  14192. fav2"
  14193. anchorTail"
  14194. <BR>"
  14195.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14196. Link3
  14197. anchorHead
  14198. url3"
  14199. anchorMid
  14200. fav3"
  14201. anchorTail"
  14202. <BR>"
  14203.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14204. Link4
  14205. anchorHead
  14206. url4"
  14207. anchorMid
  14208. fav4"
  14209. anchorTail"
  14210. <BR>"
  14211.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14212. Link5
  14213. anchorHead
  14214. url5"
  14215. anchorMid
  14216. fav5"
  14217. anchorTail"
  14218. <BR>"
  14219.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14220. Link6
  14221. anchorHead
  14222. url6"
  14223. anchorMid
  14224. fav6"
  14225. anchorTail"
  14226. <BR>"
  14227.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14228. [</b>
  14229. Link1
  14230. Link2
  14231. Link3
  14232. Link4
  14233. Link5
  14234. Link6
  14235.     0RR1S2S3S4S5S6S7S8S9S10S11S12S13S14S
  14236. Favorites
  14237.     0S0E
  14238. Lotus 
  14239. *.CGM
  14240. Excel 4.0/
  14241.  Search
  14242.     1S2S8S12S14S
  14243. path"
  14244. /wCommand?OpenAgent&EmptyTrash=
  14245. URLViewName
  14246.     0R3S4S5S6S7S8S
  14247.  Empty Trash
  14248. wPreferences
  14249.  Preferences
  14250. wGuide
  14251.  Guide
  14252. $$ViewBody
  14253. Domino
  14254. ViewPreviousPage
  14255. *.GIF
  14256. JPEG I
  14257. Previous
  14258. Domino
  14259. ViewNextPage
  14260.     0S0E
  14261. Expand
  14262.     0S0E
  14263. Collapse
  14264. Categori_zeK
  14265. _Edit Document
  14266. Send Docu_ment
  14267. _Forward
  14268. _Move To Folder...
  14269. _Remove From FolderK
  14270. O=Lotus Notes
  14271. O=Lotus Notes
  14272. PURSAFO
  14273. |.:#U
  14274. O=Lotus Notes
  14275. CN=Lotus Notes Template Development/O=Lotus Notes
  14276. PURSAFO
  14277. Fde!f^^
  14278. $TITLE
  14279. $INFO
  14280. $WINDOWTITLE
  14281. $$ScriptName
  14282. $BODY
  14283. $ACTIONS
  14284. (web view template)
  14285. Hidden: 
  14286. In Box
  14287. Drafts
  14288. Calendar
  14289. To Do
  14290. Meetings
  14291. Trash
  14292. Threads
  14293.     2R4R6R8R10R12R14R16R
  14294. ViewsToList
  14295. ($InBox)
  14296. ($Drafts)
  14297. ($Sent)
  14298. ($All)
  14299. ($Calendar)
  14300. ($ToDo)
  14301. ($Meetings)
  14302. ($Trash)
  14303. Discussion Threads
  14304.     2R4R6R8R10R12R14R16R
  14305. ViewsToAccess
  14306. In Box
  14307. Drafts
  14308. All Documents
  14309. Calendar
  14310. To Do
  14311. Meetings
  14312. Trash
  14313. Discussion Threads
  14314.     2R4R6R8R10R12R14R16R
  14315. ViewsToCompare
  14316. Path_Info
  14317. Path_Info
  14318. Query_String
  14319. Query_String
  14320. tmpOpenView
  14321. OpenView
  14322.     1S2S
  14323. tmpOpenViewLen
  14324. tmpOpenView
  14325.     0R1S2S3S
  14326. tmpQuery_StringLen
  14327. Query_String
  14328.     0R1S2S
  14329. tmpQuery_StringLen
  14330. tmpOpenViewLen
  14331. tmpOpenView
  14332. Query_String
  14333. tmpOpenViewLen_
  14334. Query_String
  14335. tmpQuery_StringLen
  14336. tmpOpenViewLen#
  14337.     0R1S3S4S6S8RS9E9S11S12S13S16S19S21RS18E25S26S27S29RS9E30S8E
  14338. tmpArgs
  14339. &Click_
  14340. tmpArgs
  14341. &Click_
  14342. tmpArgs
  14343.     0RR1S8S12S16S19S
  14344. ViewArguments
  14345. ViewName
  14346.     4S6S
  14347. URLViewName[<TYPE=hidden >]
  14348. ViewName
  14349. ($Drafts)
  14350.     1S2S
  14351. Domino
  14352. ViewPreviousPage
  14353. *.GIF
  14354. JPEG I
  14355. Previous
  14356. Domino
  14357. ViewNextPage
  14358.     0S0E
  14359. Expand
  14360.     0S0E
  14361. Collapse
  14362. ViewName
  14363. ($Drafts)
  14364.     1S2S
  14365. Domino
  14366. ViewPreviousPage
  14367. *.GIF
  14368. JPEG I
  14369. Previous
  14370. Domino
  14371. ViewNextPage
  14372.     0S0E
  14373. Expand
  14374.     0S0E
  14375. Collapse
  14376. ViewName
  14377. Begin
  14378.     1S2S8S12S14S
  14379. path"
  14380. /wCommand?OpenAgent&ViewEnd="
  14381. urlViewName
  14382.     0R3S4S5S6S7S8S
  14383. !!!)))111999BBBJJJRRRZZZccckkksss
  14384. ssc11
  14385. B9{1)
  14386. cR1skZ
  14387. {sc11)
  14388. {sBsk9cZ!
  14389. 11)ccR
  14390. kskZcZ
  14391. !1k)B
  14392. 99RZZ
  14393. 91kB1
  14394. RJsB9k
  14395. 1.26    0.22    Ella
  14396.     1S2S8S12S14S
  14397. path"
  14398. /Memo?OpenForm&From="
  14399. URLViewName
  14400. ViewArguments
  14401.     0R3S4S5S6S7S8S9S10S
  14402.  Memo
  14403. Appointment
  14404.  Meeting
  14405.  Task
  14406.     1S2S8S12S14S
  14407. path"
  14408. /Phone+Message?OpenForm&From=
  14409. URLViewName
  14410. ViewArguments
  14411.     0R3S4S5S6S7S8S9S10S
  14412.  Message
  14413. Main Views:
  14414. views
  14415. ViewsToList
  14416.     1S2S
  14417. viewsalias
  14418. ViewsToAccess
  14419.     0R1S2S
  14420. viewscomp
  14421. ViewsToCompare
  14422.     0R1S2S
  14423.     0RR1S2S
  14424. ncurr
  14425. viewscomp
  14426.     0R1S2S9S
  14427. vmask
  14428. ncurr
  14429. views
  14430. ncurr
  14431. ncurr
  14432. ncurr
  14433. views
  14434. views
  14435. ncurr
  14436.     0R1S2S8RS26E9S10S12S3E16S22RS34E24S25S26S28S32S37S39S40RS34E42RS34E44S45S46S51S55S59S60S63S
  14437. anchor
  14438.  <a href="/
  14439.     0RR1S2S3S4S10S14S16S
  14440. anchors
  14441. anchor
  14442. viewsalias
  14443. views
  14444. </a> "
  14445.     0R1S2S3S4S5S6S10S12S14S15S16S17S18S19S
  14446. <tr><td></td><td>
  14447.     0RR1S2S
  14448. <tr><td><img src="/icons/vwicn118"></td><td bgcolor="c0c0c0">
  14449.     0R1S2S
  14450. rows1
  14451. vmask
  14452. anchors
  14453. </td></tr>"
  14454.     0RR1S2S6S10S14S15S16S17S
  14455. rows1
  14456. Calendar)
  14457. Calendar)?OpenView&Grid=
  14458. CalendarProfile
  14459. wCalGridType
  14460.     0R1S2S6S8S9S10S14S
  14461. others
  14462. anchor"
  14463. ">All Views</a> </td><td>"
  14464.     0RR1S2S3S4S5S6S
  14465. [<table>
  14466. others"
  14467. </table>]
  14468.     0R1S2S6S8S9S10S11S
  14469. Views
  14470. CalendarProfile
  14471. wEnableFavorites
  14472.     4S6S7S
  14473. Favorites:
  14474. CalendarProfile
  14475. wEnableFavorites
  14476.     1S6S8S9S11S16S
  14477. CalendarProfile
  14478. wFavorite1
  14479.     0RR1S2S6S
  14480. CalendarProfile
  14481. wFavorite2
  14482.     0R1S2S6S
  14483. CalendarProfile
  14484. wFavorite3
  14485.     0R1S2S6S
  14486. CalendarProfile
  14487. wFavorite4
  14488.     0R1S2S6S
  14489. CalendarProfile
  14490. wFavorite5
  14491.     0R1S2S6S
  14492. CalendarProfile
  14493. wFavorite6
  14494.     0R1S2S6S
  14495. CalendarProfile
  14496. wIsFolder1
  14497. CalendarProfile
  14498. wFavoriteURL1
  14499.     0RR1S2S3S8S10S11S13RS17S19S22RS26S
  14500. CalendarProfile
  14501. wIsFolder2
  14502. CalendarProfile
  14503. wFavoriteURL2
  14504.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14505. CalendarProfile
  14506. wIsFolder3
  14507. CalendarProfile
  14508. wFavoriteURL3
  14509.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14510. CalendarProfile
  14511. wIsFolder4
  14512. CalendarProfile
  14513. wFavoriteURL4
  14514.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14515. CalendarProfile
  14516. wIsFolder5
  14517. CalendarProfile
  14518. wFavoriteURL5
  14519.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14520. CalendarProfile
  14521. wIsFolder6
  14522. CalendarProfile
  14523. wFavoriteURL6
  14524.     0R1S2S3S8S10S11S13RS17S19S22RS26S
  14525. anchorHead
  14526.   <a href="
  14527.     0RR1S2S
  14528. anchorMid
  14529.     0R1S2S
  14530. anchorTail
  14531.     0R1S2S
  14532. Link1
  14533. anchorHead
  14534. url1"
  14535. anchorMid
  14536. fav1"
  14537. anchorTail"
  14538. <BR>"
  14539.     0RR1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14540. Link2
  14541. anchorHead
  14542. url2"
  14543. anchorMid
  14544. fav2"
  14545. anchorTail"
  14546. <BR>"
  14547.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14548. Link3
  14549. anchorHead
  14550. url3"
  14551. anchorMid
  14552. fav3"
  14553. anchorTail"
  14554. <BR>"
  14555.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14556. Link4
  14557. anchorHead
  14558. url4"
  14559. anchorMid
  14560. fav4"
  14561. anchorTail"
  14562. <BR>"
  14563.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14564. Link5
  14565. anchorHead
  14566. url5"
  14567. anchorMid
  14568. fav5"
  14569. anchorTail"
  14570. <BR>"
  14571.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14572. Link6
  14573. anchorHead
  14574. url6"
  14575. anchorMid
  14576. fav6"
  14577. anchorTail"
  14578. <BR>"
  14579.     0R1S2S4S5S8S10S11S12S13S14S15S16S17S18S19S20S
  14580. [</b>
  14581. Link1
  14582. Link2
  14583. Link3
  14584. Link4
  14585. Link5
  14586. Link6
  14587.     0RR1S2S3S4S5S6S7S8S9S10S11S12S13S14S
  14588. Favorites
  14589.     0S0E
  14590. Lotus 
  14591. *.CGM
  14592. Excel 4.0/
  14593.  Search
  14594.     1S2S8S12S14S
  14595. path"
  14596. /wCommand?OpenAgent&EmptyTrash=
  14597. URLViewName
  14598.     0R3S4S5S6S7S8S
  14599.  Empty Trash
  14600. wPreferences
  14601.  Preferences
  14602. wGuide
  14603.  Guide
  14604. $$ViewBody
  14605. Domino
  14606. ViewPreviousPage
  14607. *.GIF
  14608. JPEG I
  14609. Previous
  14610. Domino
  14611. ViewNextPage
  14612.     0S0E
  14613. Expand
  14614.     0S0E
  14615. Collapse
  14616. Domino
  14617. ViewPreviousPage
  14618. *.GIF
  14619. JPEG I
  14620. Previous
  14621. Domino
  14622. ViewNextPage
  14623.     0S0E
  14624. Expand
  14625.     0S0E
  14626. Collapse
  14627. ViewName
  14628. Begin
  14629.     1S2S8S12S14S
  14630. path"
  14631. /wCommand?OpenAgent&ViewEnd="
  14632. urlViewName
  14633.     0R3S4S5S6S7S8S
  14634. O=Lotus Notes
  14635. O=Lotus Notes
  14636. PURSAFO
  14637. |.:#U
  14638. O=Lotus Notes
  14639. CN=Lotus Notes Template Development/O=Lotus Notes
  14640. PURSAFO
  14641. Fde!f^^
  14642. $TITLE
  14643. $NoBackgroundOverride
  14644. $INFO
  14645. $$Script_O
  14646. $$ScriptName
  14647. $BODY
  14648. '++LotusScript Development Environment:2:5:(Options):0:74
  14649. Option Public 
  14650. Use "WebLib"
  14651. Use "SharedWorkflowLibrary"
  14652. Use "NoticeResponses"
  14653. '++LotusScript Development Environment:2:5:(Forward):0:1
  14654. Declare Sub Initialize
  14655. '++LotusScript Development Environment:2:5:(Declarations):0:2
  14656. '++LotusScript Development Environment:2:2:Initialize:1:10
  14657. Sub Initialize
  14658. Expected Usage:
  14659. This agent is called as a $$QueryOpenAgent, the Query_String field is examined. 
  14660. There may be an "&EntryType=value" argument passed in.
  14661. %ENDREM     
  14662.      
  14663.      IsWebClient = True
  14664.      Call wInstantiateObjectVariables
  14665.      Call wGetOrMakeCalendarProfile
  14666.      
  14667. 'Parse command arguments
  14668.      openform$ = "OpenForm"
  14669.      entrytype$ = "&EntryType="
  14670.      
  14671.      QueryString$ = note.Query_String(0)
  14672.      
  14673.      If ( 0 <> Instr(1, QueryString$, openform$, 1) ) Then
  14674.           'new document
  14675.           note.IsNewDoc = "1"
  14676.           note.Chair = Owner
  14677.      Else
  14678.           note.IsNewDoc = "0"
  14679.           If (note.IsResponse) Then 
  14680.                Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  14681.           End If
  14682.           Call CheckForNoticeUpdates()
  14683.           
  14684.           'Make sure the DurationMin item is set correctly
  14685.           '(DurationMin is unique to web mail, but the document could have been created by the Notes Client.)
  14686.           Dim startstring As String
  14687.           Dim endstring As String
  14688.           startstring = note.StartDateTime(0)
  14689.           endstring = note.EndDateTime(0)
  14690.           Dim startDT As New NotesDateTime( startstring )
  14691.           Dim endDT As New NotesDateTime( endstring )
  14692.           duration = endDT.TimeDifference(startDT) / 60     ' truncate to minutes
  14693.           If( duration Mod 15 ) Then
  14694.                duration = ((duration \ 15 ) + 1 ) * 15                  'round up to quarter hour
  14695.           End If
  14696.           note.DurationMin = Format$(duration)
  14697.           
  14698.           'Make sure the Broadcast item is set correctly.
  14699.           '(This is a work around for the "checkbox is hidden and enabled" bug.)
  14700.           If (note.HasItem("PreserveBroadcast")) Then note.Broadcast = "1"
  14701.      End If
  14702.      note.tmpOwner = Owner
  14703.      
  14704.      'do we have any arguments?
  14705.      pos% = Instr (QueryString$, "&")
  14706.      If (pos% <> 0) Then 
  14707.           argstr$ = Right$ (QueryString$, Len (QueryString$) - pos% + 1)
  14708.      Else 
  14709.           argstr$ = " "
  14710.      End If
  14711.      
  14712.      Dim cmdFound As Variant
  14713.      cmdFound = False
  14714.      pos% = Instr (1, argstr$, entrytype$, 1)
  14715.      If (pos% <> 0) Then 
  14716.                'fetch the remainder of the string
  14717.           workstr$ = Right$(argstr$, Len (argstr$) - (Len (entrytype$) + pos%) + 1)
  14718.           workstr2$ = Left$(workstr$, 1)
  14719.           If Len (workstr$) > 1 Then
  14720.                argstr$ = Right$(workstr$, Len (workstr$) - 1)
  14721.           Else
  14722.                argstr$ = " "
  14723.           End If
  14724.           If (workstr2$ = "0" Or workstr2$ = "1" Or workstr2$ = "2" Or workstr2$ = "3" Or workstr2$ = "4") Then
  14725.                     'Use the appointment type passed into this agent
  14726.                note.AppointmentType = workstr2$
  14727.                cmdFound = True
  14728.           End If
  14729.      End If     
  14730.      
  14731.      If Not (cmdFound) Then
  14732.           If note.AppointmentType(0) = "" Then
  14733.                'Use the default appointment type
  14734.                note.AppointmentType = profile.CalEntryType
  14735.           'Else
  14736.                'The note's AppointmentType is already set.
  14737.           End If
  14738.      End If
  14739.      
  14740.      'Compute for display ...
  14741.      Select Case note.AppointmentType(0)
  14742.      Case "0"
  14743.           appTypeName = "Appointment"
  14744.      Case "1"
  14745.           appTypeName = "Anniversary"
  14746.      Case "2"
  14747.           appTypeName = "Event"
  14748.      Case "3"
  14749.           appTypeName = "Invitation"
  14750.      Case "4"
  14751.           appTypeName = "Reminder"
  14752.      Case Else
  14753.           appTypeName = "Calendar Entry"
  14754.      End Select
  14755.      
  14756.      note.dispAppType = appTypeName
  14757.      note.tmpDispAppType = appTypeName
  14758.      
  14759.      note.ViewArguments = argstr$
  14760.      Exit Sub
  14761. End Sub
  14762. O=Lotus Notes
  14763. O=Lotus Notes
  14764. PURSAFO
  14765. |.:#U
  14766. O=Lotus Notes
  14767. CN=Lotus Notes Template Development/O=Lotus Notes
  14768. PURSAFO
  14769. Fde!f^^
  14770. $TITLE
  14771. $AssistType
  14772. $AssistLastRun
  14773. $AssistDocCount
  14774. $AssistFlags
  14775. $AssistTrigger
  14776. $AssistInfo
  14777. $AssistQuery
  14778. $AssistAction
  14779. $AssistAction_Ex
  14780. (wAppointmentSave)
  14781. EH4fL3u
  14782. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################################
  14783. (wNoticeOpen)
  14784. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################################
  14785. (wNoticeSave)
  14786. EH4fL3u
  14787. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################################
  14788. (web Calendar Entry)AppointmentDCn1
  14789. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  14790. ##########################################################
  14791. 240EF0A853564D840009D6BA233719491EA45AEDDCEA2E8B54BB76CCC29BC123
  14792. (web Memo)MemoCDn
  14793. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################
  14794. ok 7^
  14795. D3F729BC2029D7188AE991E3D4201966CN=Michael Clark/O=Iris
  14796. (web Phone Message)Phone MessageCDn
  14797. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  14798. _Calendar Tools\Calendar Profile... | Calendar Profile
  14799. E41f3
  14800. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  14801. #####################################################
  14802. ##########################################################
  14803. '++LotusScript Development Environment:2:5:(Options):0:74
  14804. Option Public 
  14805. Use "WebLib"
  14806. Use "SharedWorkflowLibrary" 
  14807. Use "AppointmentResponses"
  14808. '++LotusScript Development Environment:2:5:(Forward):0:1
  14809. Declare Sub Initialize
  14810. Declare Sub Queryopen
  14811. Declare Sub Postopen(Isnewdoc As Variant)
  14812. Declare Sub Postrecalc
  14813. Declare Sub Querysave(NewDocument As Variant, Continue As Variant)
  14814. Declare Sub Queryclose
  14815. Declare Sub BuildAttendeeLists(mode As Integer, n As NotesDocument)
  14816. Declare Sub ConvertToInvitation( unidstr As String )
  14817. Declare Sub ConvertToNotice (Subject As String, NoticeType As String, ViewIcon As Integer, Mode As Integer, newunid As String)
  14818. '++LotusScript Development Environment:2:5:(Declarations):0:10
  14819. Dim startdt As NotesDateTime
  14820. Dim enddt As NotesDateTime
  14821. Dim trdr As NotesDateRange
  14822. Dim Intl As NotesInternational
  14823. Dim tmpList() As Variant
  14824. Dim SelectedDate As Variant
  14825. Dim AppointmentAlarms As Integer
  14826. Dim AnniversaryAlarms As Integer
  14827. Dim EventAlarms As Integer
  14828. Dim AlarmSet As Integer
  14829. Dim InAlarmFolder As Integer 
  14830. '++LotusScript Development Environment:2:2:Initialize:1:10
  14831. Sub Initialize
  14832.      IsWebClient = True
  14833.      Dim Isnewdoc As Variant
  14834.      Dim Continue As Variant
  14835.      Continue = True
  14836.      
  14837.      Call wInstantiateObjectVariables
  14838.      
  14839.      If note.isaddressing(0) = "1" Then 
  14840.           note.mailoptions = "0"
  14841.           note.saveoptions = "1"
  14842.           Exit Sub
  14843.      End If
  14844.      
  14845.      pathinfo$ = note.Path_Info(0)
  14846.      Set profile = db.GetProfileDocument("CalendarProfile")     
  14847.      If profile.Owner(0) = "" Then 
  14848.           note.MailOptions = "0"
  14849.           note.SaveOptions = "0"
  14850.           Print "Document not processed. Set the mail file owner from the preferences page."
  14851.           Exit Sub
  14852.      End If
  14853.      Owner = profile.Owner(0)
  14854.      
  14855.      On Error Goto ErrorRoutine
  14856.      On Error 4005 Resume Next   'this will handle the parentnote not being found
  14857.      
  14858.      note.WebMessageString = ""
  14859.      note.transTargetAction = 0
  14860.      
  14861.      If note.Query_String(0) = "OpenForm" Or note.IsNewDoc(0) = "1" Then
  14862.           Isnewdoc = True
  14863.      Else
  14864.           'The javascript button behavior can have the querystring be edit instead of save
  14865.           isnewdoc = False
  14866.           Call Queryopen
  14867.      End If
  14868.      
  14869.      Call Postopen(Isnewdoc)
  14870.      Call Postrecalc
  14871.      Call QuerySave(Isnewdoc, Continue)
  14872.      If Continue = True Then Call QueryClose
  14873.      
  14874.      note.WebPrevCalEntryType = note.AppointmentType
  14875.      note.OriginalStartDate = note.StartDateTime
  14876.      note.OriginalEndDate = note.EndDateTime
  14877.      note.OriginalRoom = note.Room
  14878.      
  14879.      Dim canRedirect As Variant
  14880.      canRedirect = SetWebFilePathAndName
  14881.      
  14882.      Call note.RemoveItem( "docUNID" )
  14883.      taction% = note.transTargetAction(0)
  14884.      Call note.RemoveItem( "transTargetAction" )
  14885.      note.Form = "Appointment"
  14886.      
  14887.      If (taction% = 0) Then
  14888.           'Save this document as is
  14889.           note.SaveOptions = "1"
  14890.           note.MailOptions = "0"
  14891.      Else
  14892.           'The saved document must be the mail message. 
  14893.           'Therefore, save the Appointment document seperately.
  14894.           Dim replaceNote As NotesDocument
  14895.           Set replaceNote = New NotesDocument(db)
  14896.           newunid$ = replaceNote.UniversalID
  14897.           unid$ = note.UniversalID
  14898.           If taction% And 1 Then
  14899.                'send
  14900.                Call BuildAttendeeLists(1, note)
  14901.                
  14902.                Call note.CopyAllItems( replaceNote, True )
  14903.                replaceNote.UniversalID = newunid$
  14904.                Call BuildAttendeeLists(2, replaceNote)
  14905.                
  14906.                Call ConvertToInvitation( unid$ )
  14907.           Else
  14908.                'reschedule
  14909.                GetMailingList
  14910.                
  14911.                Call note.CopyAllItems( replaceNote, True )
  14912.                replaceNote.UniversalID = newunid$
  14913.                
  14914.                Call ConvertToNotice( "Reschedule -", ORS_MSGTYPE_RESCHEDULE, 33, 1, unid$ )
  14915.                note.SendTo = MailingList
  14916.                wNotifyUser "The invitees have been notified that the appointment has changed."
  14917.                
  14918.                'Make sure the Broadcast item is set correctly.
  14919.                '(This is a work around for the "checkbox is hidden and enabled" bug.)
  14920.                If (note.HasItem("PreserveBroadcast")) Then note.Broadcast = "1"
  14921.           End If
  14922.           Gosub SaveTheReplaceNote
  14923.           
  14924.           note.SaveOptions = "0"
  14925.           note.MailOptions = "1"
  14926.           note.From = note.tmpFrom
  14927.      End If
  14928.      
  14929.      If Not Continue Then
  14930.           note.SaveOptions = "0"
  14931.           note.MailOptions = "0"
  14932.      End If
  14933.      
  14934.      pos% = Instr (pathinfo$, db.FileName)
  14935.      If pos% <> 0 Then 
  14936.           FilePathName$ = Left$(pathinfo$, pos% + Len (db.FileName))
  14937.           If (taction%  = 0) Then
  14938.                If (note.ViewArguments(0) <> " ") Then
  14939.                     argstr$ = note.ViewArguments(0)
  14940.                Else
  14941.                     argstr$ = "&Grid=" & profile.wCalGridType(0)
  14942.                End If
  14943.                
  14944.                If (note.WebMessageString(0) = "") Then 
  14945.                     Print "[" & FilePathName$ & "($Calendar)?OpenView" & argstr$ & "]"
  14946.                Else 
  14947.                     Call wMessagePageHeader
  14948.                     Print |<P><B>| & note.WebMessageString(0) 
  14949.                End If 
  14950.                Call note.RemoveItem( "ViewArguments" )
  14951.           Else
  14952.                Call note.RemoveItem( "docUNID" )
  14953.                Print "[" & FilePathName$ & "wCommand?OpenAgent&FixUp=" & newunid$ & "]"
  14954.                Call MarkTempFields( note )
  14955.                Exit Sub
  14956.           End If
  14957.      Else
  14958.           If (note.transTargetAction(0) = 0) Then
  14959.                If (note.WebMessageString(0) = "") Then 
  14960.                     Print "The document was saved."
  14961.                Else
  14962.                     Print note.WebMessageString(0) 
  14963.                End If 
  14964.           Else
  14965.                Print "Error: Could not find Path_Info for Target Action."
  14966.           End If
  14967.           Call note.RemoveItem( "ViewArguments" )
  14968.      End If
  14969.      
  14970.      Call MarkTempFields( note )
  14971.      Call note.RemoveItem( "WebMessageString" )
  14972.      Exit Sub
  14973.      
  14974. SaveTheReplaceNote:
  14975.      replaceNote.WebMessageString = note.WebMessageString(0)
  14976.      replaceNote.MailOptions = "0"
  14977.      replaceNote.SaveOptions = "1"
  14978.      Dim nItem As NotesItem
  14979.      Set nItem = replaceNote.AppendItemValue("$$OrigNoteUNID", unid$)
  14980.      
  14981.      Call MarkTempFields( replaceNote )
  14982.      Call replaceNote.RemoveItem( "SendTo" )
  14983.      Call replaceNote.RemoveItem( "CopyTo" )
  14984.      If (replaceNote.Broadcast(0) = "1") Then replaceNote.PreserveBroadcast = "1"
  14985.      Call replaceNote.Save(True, True, True)
  14986.      Return
  14987.      
  14988. ErrorRoutine:
  14989.      Print Error & " (wAppointmentSave)"
  14990.      Exit Sub
  14991. End Sub
  14992. '++LotusScript Development Environment:2:2:Queryopen:1:8
  14993. Sub Queryopen
  14994.      note.tmpOwner = Owner
  14995.      If (note.IsResponse) Then 
  14996.           Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  14997.           If (parentnote Is Nothing) Then
  14998. '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
  14999. 'we do not need to create the parent document since this was part of a repeat set                
  15000.                If (note.HasItem("OrgRepeat")) Then
  15001.                     wNotifyUser "This calendar entry belonged to a repeat set." & _
  15002.                     "The parent document cannot be found so this entry was converted to a non-repeating entry. "
  15003.                     note.RemoveItem("$REF")
  15004.                     note.RemoveItem("$REFOPTIONS")
  15005.                     note.RemoveItem("OrgRepeat")
  15006.                End If
  15007.           End If
  15008.      End If
  15009.      
  15010. 'we need to get the original start and end date times
  15011.      OriginalStartDate = note.StartDateTime
  15012.      OriginalEndDate = note.EndDateTime
  15013.      OriginalType = note.AppointmentType(0)
  15014.      
  15015.      If (note.AppointmentType(0) <> "3") Then 
  15016.           If (note.HasItem("WebPrevCalEntryType")) Then
  15017.                If (note.WebPrevCalEntryType(0) <> "3") Then
  15018.                     Exit Sub
  15019.                End If
  15020.           Else
  15021.                Exit Sub
  15022.           End If
  15023.      End If
  15024.      
  15025.      If Not (note.tmpOwner(0) = Owner) Then 
  15026.           Call note.RemoveItem("MailOptions")
  15027.           note.SendTo = ""
  15028.           note.CopyTo = ""
  15029.      Else
  15030. 'we are the chair
  15031.           If (note.IsResponse) Then
  15032. 'this is a repeat instance; we need to add our parent's required & optional attendees               
  15033.                OriginalRequired = parentnote.RequiredAttendees
  15034.                OriginalOptional = parentnote.OptionalAttendees
  15035.                OriginalRoom = parentnote.Room(0)
  15036.                Call CreateInviteeTable(parentnote)
  15037.           Else
  15038.                OriginalRequired = note.RequiredAttendees
  15039.                OriginalOptional = note.OptionalAttendees
  15040.                OriginalRoom = note.Room(0)
  15041.                Call CreateInviteeTable(note)
  15042.           End If
  15043.      End If
  15044.      Exit Sub
  15045.      
  15046. ErrorRoutine:
  15047.      wNotifyUser Error & " (QueryOpen)"
  15048.      Exit Sub
  15049. End Sub
  15050. '++LotusScript Development Environment:2:2:Postopen:1:8
  15051. Sub Postopen(Isnewdoc As Variant)
  15052.      On Error Goto ErrorRoutine
  15053.      
  15054. 'if this is a new document we need to set up some defaults
  15055.      If IsNewDoc Then
  15056.           Set trdr = session.CreateDateRange
  15057.           note.Principal = Owner
  15058.           note.ExcludeFromView = "D"
  15059.           note.Chair = Owner
  15060.           If (profile.CalEntryType(0) = "1") Then note.BookFreeTime = "1"
  15061.           NewDocument = True
  15062.      End If
  15063.      
  15064.      note.tmpApptFlags = note.AppointmentType
  15065.      note.tmpOwner = Owner
  15066.      Exit Sub
  15067.      
  15068. ErrorRoutine:
  15069.      wNotifyUser Error & " (Postopen)"
  15070.      Exit Sub
  15071. End Sub
  15072. '++LotusScript Development Environment:2:2:Postrecalc:1:8
  15073. Sub Postrecalc
  15074.      Dim startitem As NotesItem
  15075.      Dim enditem As NotesItem
  15076.      
  15077.      On Error Goto ErrorRoutine
  15078.      
  15079. 'if there is no chair item and there should be, add it
  15080.      If Not(note.HasItem("Chair")) Then note.Chair = Owner
  15081.      
  15082.      'if the user is attempting to change the appointment type of a repeating meeting, don't let them
  15083.      If Not(NewDocument) And (note.HasItem("OrgRepeat")) And _ 
  15084.      (note.IsResponse) And note.HasItem("WebPrevCalEntryType") Then
  15085.           If (note.WebPrevCalEntryType(0) <> note.AppointmentType(0)) Then 
  15086.                note.AppointmentType = note.WebPrevCalEntryType
  15087.                wNotifyUser "Warning: You are not allowed to change the appointment type of a repeating meeting."
  15088.           End If
  15089.      End If
  15090.      
  15091.      Dim dateitem As NotesItem
  15092.      Dim timeitem As NotesItem
  15093.      Dim duritem As NotesItem
  15094.      
  15095.      Dim datestring As String
  15096.      Dim timestring As String
  15097.      Set trdr = session.CreateDateRange
  15098.      
  15099.      If (note.AppointmentType(0) = "0") Or (note.AppointmentType(0) = "3") Then
  15100. 'this is a personal appointment or a meeting
  15101.           Set dateitem = note.GetFirstItem("StartDate")
  15102.           datestring = Datevalue(dateitem.DateTimeValue.LSLocalTime)
  15103.           
  15104.           Set timeitem = note.GetFirstItem("StartTime")
  15105.           timestring = Timevalue(timeitem.DateTimeValue.LSLocalTime)
  15106.           
  15107.           Set startdt = New NotesDateTime(datestring & " " & timestring)
  15108.           
  15109.           Set duritem = note.GetFirstItem("DurationMin")
  15110.           Set enddt = New NotesDateTime(startdt.LocalTime) 
  15111.           Call enddt.AdjustMinute( Cint ( duritem.Text ) )
  15112.           
  15113.           trdr.Text = startdt.LocalTime & " - " & enddt.LocalTime
  15114.           
  15115.           Set note.StartDateTime = startdt
  15116.           Set note.EndDateTime = enddt
  15117.           Set note.StartDate = startdt               
  15118.           Set trdr.StartDateTime = startdt
  15119.           Set trdr.EndDateTime = enddt
  15120.           Set note.TimeRange = trdr
  15121.           
  15122.           Call note.ReplaceItemValue("$NoPurge", note.EndDateTime(0))
  15123.      Elseif (note.AppointmentType(0) = "4") Then
  15124. 'this is a reminder               
  15125.           Set dateitem = note.GetFirstItem("StartDate")
  15126.           datestring = Datevalue(dateitem.DateTimeValue.LSLocalTime)
  15127.           Set timeitem = note.GetFirstItem("StartTime")
  15128.           timestring = Timevalue(timeitem.DateTimeValue.LSLocalTime)
  15129.           Set remdt = New NotesDateTime(datestring & " " & timestring)
  15130.           Set note.StartDateTime = remdt
  15131.           note.ReminderTime = note.StartDateTime
  15132.           note.StartDate = note.StartDateTime
  15133.           Call note.RemoveItem("EndDateTime")
  15134.           Call note.RemoveItem("TimeRange")
  15135.           Call note.ReplaceItemValue("$NoPurge",note.StartDateTime(0))
  15136.      Else
  15137. '1 or 2, this is an aniversary or event
  15138.           Set Intl = session.INternational
  15139.           Set dateitem = note.GetFirstItem("StartDate")
  15140.           datestring = Datevalue(dateitem.DateTimeValue.LSLocalTime)
  15141.           Set startdt = New NotesDateTime(datestring & " 00" & Intl.Timesep & "00" & Intl.Timesep & "01")
  15142.           Set note.StartDateTime = startdt
  15143.           Set enddt = New NotesDateTime(note.StartDateTime(0))
  15144.           enddt.AdjustDay(note.Duration(0) - 1)
  15145.           enddt.AdjustHour(23)
  15146.           enddt.AdjustMinute(59)
  15147.           Set note.EndDateTime = enddt
  15148.           Call note.ReplaceItemValue("$NoPurge", note.EndDateTime(0))
  15149.      End If
  15150.      
  15151. 'Reminder's should always have a $BusyPriority of 2
  15152.      If (note.AppointmentType(0) = "4") Or (note.BookFreeTime(0) = "1") Then
  15153.           Call note.ReplaceItemValue("$BusyPriority","2")
  15154.      Else
  15155.           Call note.ReplaceItemValue("$BusyPriority","1")               
  15156.      End If
  15157. 'if this is a reminder, remove the $BusyName
  15158.      If (note.AppointmentType(0) = "4") Or (note.HasItem("RepeatFor"))Then
  15159.           Call note.removeItem("$BusyName")          
  15160.      Else 
  15161.           Call note.replaceItemValue("$BusyName",Owner)
  15162.      End If
  15163.      note.CalendarDateTime = note.StartDateTime     
  15164. 'add the correct icon to the view, as well as the conflict checking value
  15165.      Select Case note.AppointmentType(0)
  15166.      Case "0" 
  15167.           Call note.ReplaceItemValue("_ViewIcon",160)
  15168.           note.OrgDontDoubleBook = profile.ConflictMeeting(0)
  15169.           note.OrgTable = ORS_ITEM_CALENDAR
  15170.      Case "1" 
  15171.           Call note.ReplaceItemValue("_ViewIcon",63)
  15172.           note.OrgDontDoubleBook = profile.ConflictAnniv(0)
  15173.           note.OrgTable = ORS_ITEM_ANNIVERSARY
  15174.      Case "2" 
  15175.           Call note.ReplaceItemValue("_ViewIcon",9)
  15176.           note.OrgDontDoubleBook = profile.ConflictEvent(0)
  15177.           note.OrgTable = ORS_ITEM_PLANNER          
  15178.      Case "3" 
  15179.           Call note.ReplaceItemValue("_ViewIcon",158)
  15180.           note.OrgDontDoubleBook = profile.ConflictMeeting(0)
  15181.           note.OrgTable = ORS_ITEM_CALENDAR
  15182.           num# = 1
  15183.           If Not(note.HasItem("SequenceNum")) Then note.SequenceNum = num#
  15184.      Case "4" 
  15185.           Call note.ReplaceItemValue("_ViewIcon",10)          
  15186.           note.OrgDontDoubleBook = ""
  15187.           note.OrgTable = ORS_ITEM_CALENDAR
  15188.           note.BookFreeTime = "1"
  15189.      End Select
  15190.      
  15191. 'if this is a meeting and the owner != chair, ensure that this is a meeting
  15192.      If (note.HasItem("Chair")) Then
  15193.           If (note.chair(0) <> Owner) Then note.AppointmentType = "3"
  15194.      End If
  15195.      
  15196.      'add the $PublicAccess item if this is a public document
  15197.      If (note.OrgConfidential(0) <> "1") Then 
  15198.           If Not (note.HasItem("$PublicAccess")) Then Call note.ReplaceItemValue("$PublicAccess","1")
  15199.      Else
  15200.           If (note.HasItem("$PublicAccess")) Then Call note.RemoveItem("$PublicAccess")
  15201.      End If
  15202.      
  15203. 'see if we are creating (or editting) a document in the past
  15204.      If (Owner = note.Chair(0)) And ((note.AppointmentType(0) <> "1") And (note.AppointmentType(0) <> "2")) And _
  15205.      Not(note.HasItem("RepeatFor")) Then
  15206.           Dim nowdt As NotesDateTime
  15207.           Dim apptdt As NotesDateTime
  15208.           Set nowdt = New NotesDateTime("")
  15209.           Call nowdt.SetNow
  15210.           Set apptdt = New NotesDateTime(note.StartDateTime(0))
  15211.           If nowdt.TimeDifference(apptdt) > 0 Then
  15212.                wNotifyUser "Warning: This appointment is being created in the past. "
  15213.           End If
  15214.      End If
  15215.      
  15216. 'if the invitee is modifying the date/time, see if they want to proceed
  15217.      If (Owner <> note.Chair(0) And note.HasItem("OriginalStartDate")) Then
  15218.           If (note.OriginalStartDate(0) <> note.StartDateTime(0)) Or (note.OriginalEndDate(0) <> note.EndDateTime(0))  Then
  15219.                wNotifyUser "Warning: You are not the originator of this entry and have changed the date/time. "
  15220.           End If 
  15221.      End If
  15222.      Exit Sub
  15223.      
  15224. ErrorRoutine:
  15225.      wNotifyUser Error & " (PostRecalc)"
  15226.      Exit Sub
  15227. End Sub
  15228. '++LotusScript Development Environment:2:2:Querysave:1:8
  15229. Sub Querysave(NewDocument As Variant, Continue As Variant)
  15230.      On Error Goto ErrorRoutine
  15231.      
  15232.      Dim NeedsReschedule As Variant
  15233.      
  15234. 'the first thing we do is make sure the document can be saved
  15235. 'if the current user is not the owner, and the HideEntries is set, warn the user     
  15236.      If (db.CurrentAccessLevel < ACLLEVEL_AUTHOR) And (note.OrgConfidential(0) = "1") Then
  15237.           wNotifyUser "You have indicated that you want this document hidden from public viewing, " & _
  15238.           "but you are considered a public viewer, and would no longer be able to see this document. " & _
  15239.           "This option was de-selected."
  15240.           note.OrgConfidential = ""
  15241.      End If
  15242.      
  15243. 'if this is not a new document, and the originaltype was an invitation but no longer is, make sure they want to proceed
  15244.      If Not(NewDocument) Then
  15245.           If (Owner = note.Chair(0))Then
  15246.                If ((note.WebPrevCalEntryType(0) = "3") And (note.AppointmentType(0) <> "3")) Then
  15247.                     wNotifyUser "Invitation documents cannot be changed to another type of calendar entry. " & _
  15248.                     "The changes made to this document have not been saved."
  15249.                     note.AppointmentType = "3"
  15250.                     Continue = False
  15251.                End If
  15252.           Else
  15253.                If (OriginalStartDate(0) <> note.StartDateTime(0)) Or (OriginalEndDate(0) <> note.EndDateTime(0)) Then
  15254.                     wNotifyUser "You are not the originator of this entry and you have changed the date/time of the meeting."
  15255.                End If
  15256.           End If    
  15257.      End If
  15258.      
  15259.      If (NewDocument) And (note.hasitem("RepeatFor")) And (note.AppointmentType(0) = "3") Then note.Broadcast = "1"
  15260.      
  15261.      On Error Goto ErrorRoutine
  15262.      
  15263.      If Not(note.HasItem("DocAuthors")) Then Set item = New NotesItem(note, "DocAuthors", note.From, AUTHORS)
  15264.      
  15265.      Exit Sub
  15266.      
  15267. ErrorRoutine:
  15268.      wNotifyUser Error & " (QuerySave)"
  15269.      Exit Sub
  15270. End Sub
  15271. '++LotusScript Development Environment:2:2:Queryclose:1:8
  15272. Sub Queryclose
  15273.      Dim InstanceWarned As Integer
  15274.      On Error Goto ErrorRoutine
  15275.      
  15276. 'if this is a parent document, check for PostedDate  
  15277.      If Not(NewDocument) Then
  15278.           If (note.AppointmentType(0) = "3") Then
  15279.                If note.HasItem("OriginalStartDate") Then
  15280.                     If (note.OriginalStartDate(0) <> note.StartDateTime(0)) Or _
  15281.                     (note.OriginalEndDate(0) <> note.EndDateTime(0)) Then 
  15282.                          IsDateChange = True
  15283.                     Else
  15284.                          IsDateChange = False
  15285.                     End If
  15286.                     IsRoomChange = False
  15287.                End If
  15288.                If (IsDateChange Or IsRoomChange) And (note.chair(0) = owner) Then
  15289.                     If (note.IsResponse) Then
  15290.                          If (parentnote.HasItem("PostedDate") Or (note.RequiredResources(0) <> "") Or _ 
  15291.                          (note.RoomRequired(0) = "1" And note.Room(0) <> "")) Then NeedsReschedule = True
  15292.                     Else
  15293.                          If (note.HasItem("PostedDate")) Or (note.RequiredResources(0) <> "") Or _
  15294.                          (note.RoomRequired(0) = "1" And note.Room(0) <> "") Then NeedsReschedule = True
  15295.                     End If
  15296.                End If
  15297.           End If    
  15298.      End If     
  15299.      
  15300.      If (NeedsReschedule) Then 
  15301.           num# = Cdbl( note.SequenceNum(0) + 1 )
  15302.           note.SequenceNum = num#
  15303.           note.transTargetAction = 2
  15304.      End If
  15305.      
  15306.      
  15307. 'see if we should invite the users/resources to this meeting
  15308.      If (note.AppointmentType(0) = "3") And (note.Chair(0) = Owner) Then     
  15309.           If (note.SendTo(0) <> "") Or (note.CopyTo(0) <> "") Then
  15310.                If (note.transTargetAction(0) = 2) Then
  15311.                     wNotifyUser "Additional invitations cannot been sent when rescheduling a meeting. " & _
  15312.                     "Please edit this document and invite those people again."
  15313.                     'note.transTargetAction = 3     'SendInvitation
  15314.                Else
  15315.                     wNotifyUser "This invitation was sent to the people you invited."
  15316.                     note.transTargetAction = 1     'SendInvitation
  15317.                End If
  15318.                
  15319.                If Not(note.hasitem("PostedDate")) Then
  15320.                     Dim posteddate As New NotesDateTime( "" )
  15321.                     Call posteddate.SetNow
  15322.                     Set note.PostedDate = posteddate
  15323.                End If                  
  15324.           End If                    
  15325.      End If        
  15326.      Exit Sub
  15327.      
  15328. ErrorRoutine:
  15329.      wNotifyUser Error & " (QueryClose)"
  15330.      Exit Sub
  15331. End Sub
  15332. '++LotusScript Development Environment:2:2:BuildAttendeeLists:1:8
  15333. Sub BuildAttendeeLists(mode As Integer, n As NotesDocument)
  15334.      Dim vSendToNames As Variant
  15335.      Dim vCopyToNames As Variant
  15336.      Dim vNewRequiredNames() As Variant
  15337.      Dim vNewOptionalNames() As Variant 
  15338.      Dim bInviteeExists As Integer
  15339.      Dim counter As Integer
  15340.      Dim newcounter As Integer
  15341.      Dim sCanonicalName As String
  15342.      Dim sDomainName As String
  15343.      Dim sNewNames() As String
  15344.      
  15345.      On Error Goto ErrorRoutine
  15346.      
  15347. 'get the sendto and copyto field values
  15348.      vSendToNames = n.SendTo
  15349.      vCopyToNames = n.CopyTo
  15350.      
  15351. 'determine why we are being called
  15352.      Select Case mode
  15353.      Case 1    'first time
  15354. 'we need to look for duplicate entries only if people have been invited
  15355. 'check RequiredAttendees
  15356.           If (vSendToNames(0) <> "") Then
  15357. 'initialize some variables
  15358.                Redim sNewNames(Ubound(vSendToNames))
  15359.                newcounter = 0               
  15360.                If (Isarray(OriginalRequired)) Then
  15361. 'required invitees already exist; copy them into a local variable                    
  15362.                     Redim vNewRequiredNames(Ubound(OriginalRequired) + Ubound(vSendToNames)+1)
  15363.                     Forall names In OriginalRequired
  15364.                          vNewRequiredNames(newcounter) = names
  15365.                          newcounter = newcounter+1
  15366.                     End Forall
  15367.                Else
  15368.                     Redim vNewRequiredNames(Ubound(vSendToNames))
  15369.                End If
  15370.                counter = 0
  15371.                Forall names In vSendToNames
  15372.                     Call GetNameComponents(Cstr(names),sCanonicalName,sDomainName)
  15373.                     bInviteeExists = FindInvitee(sCanonicalName)
  15374. 'if the invitee wasn't found, then add them keep them in the list and add them to the table
  15375.                     If (bInviteeExists = -1) Then
  15376.                          sNewNames(counter) = names
  15377.                          vNewRequiredNames(newcounter) = names                         
  15378.                          Call AddInviteeToInviteeTable(Cstr(names),"")
  15379.                          counter = counter + 1
  15380.                          newcounter = newcounter + 1
  15381.                     End If
  15382.                End Forall
  15383.                n.SendTo = sNewNames
  15384. 'we have to update the RequiredAttendees item so invitees can see who else has been invited               
  15385.                n.RequiredAttendees = vNewRequiredNames               
  15386.           End If
  15387. 'check OptionalAttendees
  15388.           If (vCopyToNames(0) <> "") Then
  15389. 'initialize some variables
  15390.                newcounter = 0               
  15391.                Redim sNewNames(Ubound(vCopyToNames))
  15392.                If (Isarray(OriginalOptional)) Then
  15393. 'optional invitees already exist; copy them into a local variable                    
  15394.                     Redim vNewOptionalNames(Ubound(OriginalOptional) + Ubound(vCopyToNames)+1)
  15395.                     Forall names In OriginalOptional
  15396.                          vNewOptionalNames(newcounter) = names
  15397.                          newcounter = newcounter+1
  15398.                     End Forall
  15399.                Else
  15400.                     Redim vNewOptionalNames(Ubound(vCopyToNames))
  15401.                End If
  15402.                counter = 0
  15403.                Forall names In vCopyToNames
  15404.                     Call GetNameComponents(Cstr(names), sCanonicalName, sDomainName)
  15405.                     bInviteeExists = FindInvitee(sCanonicalName)
  15406. 'if the invitee wasn't found, then add them keep them in the list and add them to the table
  15407.                     If (bInviteeExists = -1) Then
  15408.                          sNewNames(counter) = names
  15409.                          vNewOptionalNames(newcounter) = names                         
  15410.                          Call AddInviteeToInviteeTable(Cstr(names), "")
  15411.                          counter = counter + 1
  15412.                          newcounter = newcounter + 1
  15413.                     End If
  15414.                End Forall
  15415.                n.CopyTo = sNewNames
  15416.                n.OptionalAttendees = vNewOptionalNames
  15417.           End If
  15418.      Case 2     'second & final time being called
  15419. 'we need to update the RequiredAttendees and OptionalAttendees fields
  15420. 'first, update the RequiredAttendees item only if there are values in the SendTo item
  15421.           If (vSendToNames(0) <> "") Then
  15422. 'intialize variables
  15423.                newcounter = 0               
  15424.                If (Isarray(OriginalRequired)) Then
  15425. 'required invitees already exist; copy them into a local variable                    
  15426.                     Redim vNewRequiredNames(Ubound(OriginalRequired) + Ubound(vSendToNames)+1)
  15427.                     Forall names In OriginalRequired
  15428.                          vNewRequiredNames(newcounter) = names
  15429.                          newcounter = newcounter+1
  15430.                     End Forall
  15431.                Else
  15432.                     Redim vNewRequiredNames(Ubound(vSendToNames))
  15433.                End If
  15434. 'add the sendto names
  15435.                Forall names In vSendToNames
  15436.                     vNewRequiredNames(newcounter) = names
  15437.                     newcounter = newcounter + 1
  15438.                End Forall
  15439.                n.RequiredAttendees = vNewRequiredNames
  15440.           End If
  15441. 'update the OptionalAttendees item only if there are values in the CopyTo item
  15442.           If (vCopyToNames(0) <> "") Then
  15443. 'intialize variables
  15444.                newcounter = 0               
  15445.                If (Isarray(OriginalOptional)) Then
  15446. 'optional invitees already exist; copy them into a local variable                    
  15447.                     Redim vNewOptionalNames(Ubound(OriginalOptional) + Ubound(vCopyToNames)+1)
  15448.                     Forall names In OriginalOptional
  15449.                          vNewOptionalNames(newcounter) = names
  15450.                          newcounter = newcounter+1
  15451.                     End Forall
  15452.                Else
  15453.                     Redim vNewOptionalNames(Ubound(vCopyToNames))
  15454.                End If
  15455. 'add the copyto names
  15456.                Forall names In vCopyToNames
  15457.                     vNewOptionalNames(newcounter) = names
  15458.                     newcounter = newcounter + 1
  15459.                End Forall
  15460.                n.OptionalAttendees = vNewOptionalNames 
  15461.           End If   
  15462.      Case Else
  15463.      End Select
  15464.      Exit Sub
  15465.      
  15466. ErrorRoutine:
  15467.      wNotifyUser Error & " (BuildAttendeeList)"
  15468.      Exit Sub
  15469. End Sub
  15470. '++LotusScript Development Environment:2:2:ConvertToInvitation:1:8
  15471. Sub ConvertToInvitation( unidstr As String )
  15472.      On Error Goto ErrorRoutine
  15473.      
  15474. 'if we have never invited anyone, add the SequenceNum item
  15475.      If Not note.HasItem(SequenceNum) Then note.SequenceNum = 1
  15476.      
  15477. 'modify the appointment document so it is an invitation
  15478.      note.Form  = "Notice"
  15479.      note.NoticeType = ORS_MSGTYPE_INVITE
  15480.      note.Topic = note.Subject
  15481.      note.apptunid = unidstr
  15482.      If (note.Broadcast(0) = "1") Then
  15483.           MailSubject$ = "Broadcast - "
  15484.      Else
  15485.           MailSubject$ = "Invitation - "
  15486.      End If
  15487.      Set startitem = note.GetFirstItem("StartDateTime")
  15488.      If (note.Room(0) <> "") Then
  15489.           note.Subject = MailSubject$ & note.Subject(0) & _
  15490.           " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  15491.      Else
  15492.           note.Subject =  MailSubject$ & note.Subject(0) & _
  15493.           " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  15494.      End If
  15495.      
  15496.      Call note.ReplaceItemValue("_ViewIcon",133)
  15497.      note.Principal = Owner
  15498.      note.Chair = Owner
  15499.      
  15500. 'remove fields that will need to be added later
  15501.      Call note.RemoveItem("CalendarDateTime")
  15502.      Call note.RemoveItem("OrgTable")
  15503.      Call note.RemoveItem("$BusyName")
  15504.      Call note.RemoveItem("$BusyPriority")
  15505.      Call note.RemoveItem("tmpOwner")
  15506.      
  15507.      Exit Sub
  15508.      
  15509. ErrorRoutine:
  15510.      wNotifyUser Error & " (ConvertToInvitation)"
  15511.      Exit Sub
  15512. End Sub
  15513. '++LotusScript Development Environment:2:2:ConvertToNotice:1:8
  15514. Sub ConvertToNotice (Subject As String, NoticeType As String, ViewIcon As Integer, Mode As Integer, newunid As String)
  15515.  *Parameters
  15516.     Subject -> value of subject item
  15517.     NoticeType -> type of notice being sent
  15518.     ViewIcon -> icon to display in view
  15519.     Mode -> 1 = chair is sending, 2 = invitee is sending
  15520. %END REM
  15521.      
  15522.      Dim ChairItem As NotesItem
  15523.      Dim dummydoc As NotesDocument
  15524.      Dim replaceNote As NotesDocument
  15525.      On Error Resume Next
  15526.      Set replaceNote = db.GetDocumentByUNID(newunid)
  15527.      If replaceNote Is Nothing Then wNotifyUser "Error in ConvertToNotice"
  15528.      On Error Goto ErrorRoutine
  15529.      
  15530.      Set dummydoc = New NotesDocument(db)
  15531.      unid$ = dummydoc.UniversalID
  15532.      dummydoc.UniversalID = newunid
  15533.      Call note.MakeResponse(dummydoc)
  15534.      note.ApptUNID = newunid
  15535.      note.UniversalID = unid$
  15536.      
  15537.      Call note.ReplaceItemValue("$RefOptions","1")
  15538.      
  15539.      note.Form = "Notice"
  15540.      note.Principal = Owner
  15541.      note.NoticeType = NoticeType
  15542.      
  15543. 'add the required attendees -> we need to know what context the current document is in
  15544. 'this is because non-repeat notices, repeat notices, and non-repeat appointments have this information
  15545. 'repeat instances need to get this info from their parent
  15546.      Select Case Context
  15547.      Case 1,3,4
  15548. '1 = non-repeat notice,3 = repeat notice,4 = non-repeat instance -> get the values from the current note
  15549.           'note.RequiredAttendees = note.RequiredAttendees
  15550.           'note.OptionalAttendees = note.OptionalAttendees
  15551.      Case 2
  15552. 'the repeat instance document does not have this information -> get it from the parent
  15553.           note.RequiredAttendees = parentnote.RequiredAttendees
  15554.           note.OptionalAttendees = parentnote.OptionalAttendees
  15555.      End Select
  15556.      Call note.ReplaceItemValue("_ViewIcon", ViewIcon)
  15557.      'If (note.HasItem("$PublicAccess")) Then Call notice.ReplaceItemValue("$PublicAccess","1")
  15558.      If note.HasItem("tmpRescheduleWhich") Then 
  15559.           If (NoticeType = ORS_MSGTYPE_STATUSUPDATE) Then
  15560.                note.RescheduleWhich = "0" 'just this one
  15561.           Else
  15562.                note.RescheduleWhich = note.tmpRescheduleWhich
  15563.           End If
  15564.      End If
  15565.      
  15566. 'add computed items
  15567.      If (mode = 1) Then
  15568. 'we are the chair sending this out
  15569.           note.Topic = note.Subject
  15570.           Set startitem = note.GetFirstItem("StartDateTime")
  15571.           If (note.Room(0) <> "") Then               
  15572.                note.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  15573.           Else
  15574.                note.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  15575.           End If
  15576.           note.Chair = Owner
  15577. 'we do not add the send to for chairs; this is upto the calling function
  15578.      Else
  15579. 'we are the invitee sending this out
  15580.           note.Subject = Subject & " " & note.Topic(0)
  15581.      End If
  15582.      
  15583.      Call note.RemoveItem("CalendarDateTime")
  15584.      Call note.RemoveItem("OrgTable")
  15585.      Call note.RemoveItem("$BusyName")
  15586.      Call note.RemoveItem("$BusyPriority")
  15587.      Call note.RemoveItem("appType")
  15588.      Call note.RemoveItem("ReminderTime")
  15589.      Call note.RemoveItem("Duration")
  15590.      Call note.RemoveItem("$ExpandGroups")
  15591.      Call note.RemoveItem("TimeRange")
  15592.      Call note.RemoveItem("$NoPurge")
  15593.      Call note.RemoveItem("OrgDontDoubleBook")
  15594.      Call note.RemoveItem("DocAuthors")
  15595.      Call note.RemoveItem("WebPrevCalEntryType")
  15596.      Call note.RemoveItem("OriginalStartDate")
  15597.      Call note.RemoveItem("OriginalEndDate")
  15598.      Call note.RemoveItem("OriginalRoom")
  15599.      Call note.RemoveItem("TimeRangeText")
  15600.      Call note.RemoveItem("BookFreeTime")
  15601.      Call note.RemoveItem("OrgConfidential")
  15602.      Exit Sub
  15603.      
  15604. ErrorRoutine:
  15605.      wNotifyUser Error & " (ConvertToNotice)"
  15606.      Exit Sub
  15607. End Sub
  15608. [L    KH
  15609. [L    KH
  15610. KL    .D
  15611. KL    .h
  15612. }D%K,
  15613. O=Lotus Notes
  15614. O=Lotus Notes
  15615. PURSAFO
  15616. |.:#U
  15617. O=Lotus Notes
  15618. CN=Lotus Notes Template Development/O=Lotus Notes
  15619. PURSAFO
  15620. Fde!f^^
  15621. UiA%$
  15622. $TITLE
  15623. $AssistType
  15624. $AssistLastRun
  15625. $AssistDocCount
  15626. $AssistFlags
  15627. $AssistTrigger
  15628. $AssistInfo
  15629. $AssistQuery
  15630. $AssistAction
  15631. $AssistAction_Ex
  15632. '++LotusScript Development Environment:2:5:(Options):0:74
  15633. Option Public
  15634. Use "WebLib"
  15635. Use "SharedWorkflowLibrary"
  15636. Use "NoticeResponses"
  15637. '++LotusScript Development Environment:2:5:(Forward):0:1
  15638. Declare Sub Initialize
  15639. '++LotusScript Development Environment:2:5:(Declarations):0:10
  15640. Dim startdt As NotesDateTime
  15641. Dim enddt As NotesDateTime
  15642. Dim trdr As NotesDateRange
  15643. Dim Intl As NotesInternational
  15644. Dim tmpList() As Variant
  15645. Dim SelectedDate As Variant
  15646. Dim AppointmentAlarms As Integer
  15647. Dim AnniversaryAlarms As Integer
  15648. Dim EventAlarms As Integer
  15649. Dim DocWasSaved As Integer
  15650. Dim ErrorStatus As Integer
  15651. Dim AlarmSet As Integer
  15652. Dim InAlarmFolder As Integer 
  15653. 'For Notice form processing
  15654. Dim collection As NotesDocumentCollection
  15655. Dim nam As NotesName
  15656. Dim NewForm As String
  15657. '++LotusScript Development Environment:2:2:Initialize:1:10
  15658. Sub Initialize
  15659.      IsWebClient = True
  15660.      On Error Goto ErrorRoutine
  15661.      
  15662.      Call wInstantiateObjectVariables
  15663.      Call wGetOrMakeCalendarProfile
  15664.      note.tmpOwner = Owner
  15665.      
  15666.      Dim check As Variant
  15667.      
  15668.      QueryString$ = note.Query_String(0)
  15669.      openform$ = "OpenForm"
  15670.      If (0 <> Instr(1, QueryString$, openform$, 1)) Then
  15671.           'new document, therefore, we're generating an RSVP to an invitation
  15672.           unid$ = "&UNID="
  15673.           pos% = Instr (QueryString$, unid$)
  15674.           If (pos% = 0) Then Goto ArgumentsNotFound
  15675.           
  15676.           'fetch the remainder of the string
  15677.           UNIDnote$ = Right$(QueryString$, Len (QueryString$) - (Len (unid$) + pos%) + 1)
  15678.           
  15679.           'check for the "check" argument
  15680.           pos% = Instr (QueryString$, "&Check")
  15681.           If (pos% <> 0) Then
  15682.                UNIDnote$ = Left$(UNIDnote$, pos% - 1)
  15683.                check = True
  15684.           Else
  15685.                check = False
  15686.           End If
  15687.           
  15688.           'grab the actual invitation notice
  15689.           On Error Resume Next
  15690.           Set notice = db.GetDocumentByUNID( UNIDnote$ )
  15691.           On Error Goto ErrorRoutine
  15692.           If notice Is Nothing Then Goto ArgumentsNotFound
  15693.           
  15694.           newunid$ = note.UniversalID
  15695.           Call notice.CopyAllItems( note, True )
  15696.           note.UniversalID = newunid$
  15697.           note.tmpUNIDnote = UNIDnote$
  15698.           
  15699.           Dim BodyItem As NotesItem
  15700.           If (notice.HasItem("Body")) Then
  15701.                Set BodyItem = notice.GetFirstItem("Body")     
  15702.                Call note.CopyItem(BodyItem,"WebInvitationBody")
  15703.           End If
  15704.           
  15705. 'populate the new notice with the contents of the actual notice
  15706.           ChairCN = Evaluate("@Name([CN];Chair)", note)
  15707.           PrincipalCN = Evaluate("@Name([CN];Principal)", note)
  15708.           'FromCN = Evaluate("@Name([CN];From)", note)
  15709.           DelegeeCN = Evaluate("@Name([CN];Delegee)", note)
  15710.           
  15711.           note.tmpWhoLabel = ""
  15712.           note.tmpWho = ""
  15713.           Select Case notice.NoticeType(0)
  15714.           Case "I"
  15715.                note.tmpLabel = "Invitation"
  15716.           Case "U"
  15717.                note.tmpLabel = "Reschedule"
  15718.           Case "C"
  15719.                note.tmpLabel = "Cancelled"
  15720.           Case "D"
  15721.                note.tmpLabel = "Delegated Invitation"
  15722.                If (note.tmpOwner(0) <> notice.Chair(0)) Then
  15723.                     note.tmpWhoLabel = "Delegated to:"
  15724.                     note.tmpWho = DelegeeCN(0)
  15725.                Else
  15726.                     note.tmpWhoLabel = "Delegated by:"
  15727.                     note.tmpWho = PrincipalCN(0) & " (to " & DelegeeCN(0) & ")"
  15728.                End If
  15729.           Case "S"
  15730.                note.tmpLabel = "Status Update"
  15731.           Case "N"
  15732.                note.tmpLabel = "Confirmation"
  15733.           Case "J"
  15734.                note.tmpLabel = "Counter Proposal Declined"
  15735.           Case "A"
  15736.                note.tmpLabel = "Acceptance"
  15737.                note.tmpWhoLabel = "Accepted by:"
  15738.                note.tmpWho = PrincipalCN(0)
  15739.           Case "R"
  15740.                note.tmpLabel = "Declined"
  15741.                note.tmpWhoLabel = "Declined by:"
  15742.                note.tmpWho = PrincipalCN(0)
  15743.           Case "L"
  15744.                note.tmpLabel = "Delegation"
  15745.                note.tmpWhoLabel = "Delegated by:"
  15746.                note.tmpWho = PrincipalCN(0)
  15747.           Case "T"
  15748.                note.tmpLabel = "Original Meeting"
  15749.                note.tmpWhoLabel = "Counter proposal by:"
  15750.                note.tmpWho = PrincipalCN(0)
  15751.           Case "P"
  15752.                note.tmpLabel = "Pencilled In"
  15753.           Case Else 
  15754.                note.tmpLabel = "Notice"
  15755.           End Select
  15756.           
  15757.           note.tmpOriginator = ChairCN(0)
  15758.           note.tmpStartDate = note.StartDateTime
  15759.           note.tmpEndDate = note.EndDateTime
  15760.           note.tmpRoom = note.Room
  15761.           note.tmpTopic = note.Topic
  15762.           
  15763.           AttendeeList = Evaluate(|@Trim( @Implode( @ReplaceSubstring( @Explode( RequiredAttendees; ";"):@Explode( OptionalAttendees; ";"); "CN=":"OU=":"O=":"C=" ; "":"":"":""); ", " ))|, note)
  15764.           note.tmpAttendeeList = Left$ ( AttendeeList(0), Len(AttendeeList(0))  - 1 )
  15765.           
  15766.      Else
  15767.           'existing document, therefore, we're opening an invitation for display, or
  15768.           'editting a broadcast notice to add to calendar w/out sending RSVP
  15769.           check = True
  15770.           
  15771.           'make the CheckForNoticeUpdates work correctly ...
  15772.           Set notice = note
  15773.      End If
  15774.      
  15775.      If (note.IsResponse) Then 
  15776.           Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  15777.      End If
  15778.      If Not (note.tmpOwner(0) = note.Chair(0)) And check Then CheckForNoticeUpdates
  15779.      
  15780.      Exit Sub
  15781.      
  15782. MissingParent:
  15783.      Messagebox "Parent document not found (wNoticeOpen)"
  15784.      Exit Sub
  15785.      
  15786. ArgumentsNotFound:
  15787.      Messagebox "Arguments Not Found (" & QueryString$ & ") (wNoticeOpen)"
  15788.      Exit Sub
  15789.      
  15790. ErrorRoutine:
  15791.      Messagebox Error & " (wNoticeOpen)"
  15792.      Exit Sub
  15793. End Sub
  15794. Chair
  15795.     0S0E
  15796. Principal
  15797.     0S0E
  15798. Delegee
  15799.     0S0E
  15800. RequiredAttendees
  15801. OptionalAttendees
  15802.     2S4S6S8S10S15S17S20S27S28S37S38S
  15803. O=Lotus Notes
  15804. O=Lotus Notes
  15805. PURSAFO
  15806. |.:#U
  15807. O=Lotus Notes
  15808. CN=Lotus Notes Template Development/O=Lotus Notes
  15809. PURSAFO
  15810. Fde!f^^
  15811. $TITLE
  15812. $AssistType
  15813. $AssistLastRun
  15814. $AssistDocCount
  15815. $AssistFlags
  15816. $AssistTrigger
  15817. $AssistInfo
  15818. $AssistQuery
  15819. $AssistAction
  15820. $AssistAction_Ex
  15821. Started running agent 'wNoticeSave' on 08/03/97 06:40:03 PM
  15822. Ran LotusScript code
  15823. Done running agent 'wNoticeSave' on 08/03/97 06:40:06 PM
  15824. '++LotusScript Development Environment:2:5:(Options):0:74
  15825. Option Public
  15826. Use "WebLib"
  15827. Use "SharedWorkflowLibrary"
  15828. Use "NoticeResponses"
  15829. '++LotusScript Development Environment:2:5:(Forward):0:1
  15830. Declare Sub Initialize
  15831. Declare Sub Queryopen
  15832. Declare Sub Querysave(Continue As Variant)
  15833. Declare Sub Queryclose
  15834. Declare Sub wwGetCalendarProfile
  15835. Declare Sub AcceptInvitation
  15836. Declare Sub DeclineInvitation
  15837. Declare Sub ConvertToNotice(Subject As String, NoticeType As String, ViewIcon As Integer, Mode As Integer)
  15838. Declare Function wGetParentDocument() As Integer
  15839. Declare Sub UpdateOriginalNote
  15840. Declare Sub RemoveFields
  15841. Declare Sub wUpdateOriginalInvitation (orgnote As NotesDocument)
  15842. Declare Sub xUpdateOriginalInvitation (orgnote As NotesDocument)
  15843. '++LotusScript Development Environment:2:5:(Declarations):0:10
  15844. Dim startdt As NotesDateTime
  15845. Dim enddt As NotesDateTime
  15846. Dim trdr As NotesDateRange
  15847. Dim Intl As NotesInternational
  15848. Dim tmpList() As Variant
  15849. Dim SelectedDate As Variant
  15850. Dim AppointmentAlarms As Integer
  15851. Dim AnniversaryAlarms As Integer
  15852. Dim EventAlarms As Integer
  15853. Dim ErrorStatus As Integer
  15854. Dim AlarmSet As Integer
  15855. Dim InAlarmFolder As Integer 
  15856. 'For Notice form processing
  15857. Dim collection As NotesDocumentCollection
  15858. Dim nam As NotesName
  15859. Dim NewForm As String
  15860. '++LotusScript Development Environment:2:2:Initialize:1:10
  15861. Sub Initialize
  15862.      IsWebClient = True
  15863.      Dim Isnewdoc As Variant
  15864.      Dim Continue As Variant
  15865.      Continue = True
  15866.      
  15867.      Call wInstantiateObjectVariables
  15868.      Call wwGetCalendarProfile
  15869.      
  15870.      On Error Goto ErrorRoutine
  15871.      On Error 4005 Resume Next   'this will handle the parentnote not being found
  15872.      
  15873.      QueryString$ = note.Query_String(0)
  15874.      If (0 <> Instr(1, QueryString$, "EditDocument", 1)) Then
  15875.           'we are saving a broadcasted Notice
  15876.           note.tmpAction = "AddCalendar"
  15877.           Set notice = note
  15878.           tmpOutOfInBox$ = note.tmpOutOfInBox_1(0)
  15879.      Else
  15880.           'we are RSVPing to a non-broadcasted Notice
  15881.           
  15882.           'grab the actual invitation notice
  15883.           On Error Resume Next
  15884.           Set notice = db.GetDocumentByUNID( note.tmpUNIDnote(0) )
  15885.           On Error Goto ErrorRoutine
  15886.           If notice Is Nothing Then Goto MissingOrigDoc
  15887.           
  15888.           tmpRSVPAction$ = note.tmpRSVPAction(0)
  15889.           
  15890.          'save user input
  15891.           tmpOutOfInBox$ = note.tmpOutOfInBox(0)
  15892.           Comments$ = note.Comments(0)
  15893.           Importance$ = note.Importance(0)
  15894.           DeliveryPriority$ = note.DeliveryPriority(0)
  15895.           DeliveryReport$ = note.DeliveryReport(0)
  15896.           
  15897.           'populate with original notice
  15898.           newunid$ = note.UniversalID
  15899.           Call notice.CopyAllItems( note, True )
  15900.           note.UniversalID = newunid$
  15901.           
  15902.           'restore user input
  15903.           note.Comments = Comments$
  15904.           note.Importance = Importance$
  15905.           note.DeliveryPriority = DeliveryPriority$
  15906.           note.DeliveryReport = DeliveryReport$
  15907.           
  15908.           'save stuff to our calendar entry, too
  15909.           notice.Comments = Comments$
  15910.           
  15911.           On Error 4412 Goto ErrNoAccess
  15912.           On Error Goto ErrorRoutine
  15913.           
  15914.           If (tmpRSVPAction$ = "1") Then
  15915.                note.tmpAction = "Accept"
  15916.           Else
  15917.                note.tmpAction = "Decline"
  15918.           End If  
  15919.      End If
  15920.      
  15921.      If (tmpOutOfInBox$ = "1") Then
  15922.           notice.RemoveFromFolder("($InBox)")
  15923.           If Not (note.IsNewNote) Then note.RemoveFromFolder("($InBox)")
  15924.      End If
  15925.      
  15926.      note.WebMessageString = ""
  15927.      Call Queryopen
  15928.      Call QuerySave(Continue)
  15929.      If Continue = True Then Call QueryClose
  15930.      
  15931.      pathinfo$ = note.Path_Info(0)
  15932.      pos% = Instr (pathinfo$, db.FileName)
  15933.      If pos% <> 0 Then 
  15934.           FilePathName$ = Left$(pathinfo$, pos% + Len (db.FileName))
  15935.      Else
  15936.           Print "Info_Path error in wNoticeSave.[<BR><BR>]" & note.WebMessageString(0)
  15937.           Exit Sub
  15938.      End If
  15939.      
  15940.      If note.tmpAction(0) = "Accept" Or note.tmpAction(0) = "Decline" And _
  15941.      (Not note.tmpAction(0) = "AddCalendar") Then
  15942.           Print "[" & FilePathName$ & "wCommand?OpenAgent&Remove=" & note.UniversalID & "]"
  15943.      Else
  15944.           If (note.WebMessageString(0) = "") Then 
  15945.                'Attempt to locate the source view in the url
  15946.                Dim view As NotesView
  15947.                found = False
  15948.                workstr$ = Right$ (pathinfo$, Len (pathinfo$) - (InfoPathPos% + Len (db.FileName)))
  15949.                pos%  = Instr (workstr$, "/")
  15950.                If (pos% <> 0 ) Then
  15951.                     targetview$ = Left$ (workstr$, pos% - 1)
  15952.                Else
  15953.                     pos%  = Instr (workstr$, "?")
  15954.                     If (pos% <> 0 ) Then
  15955.                          targetview$ = Left$ (workstr$, pos% - 1)
  15956.                     Else
  15957.                          targetview$ = workstr$
  15958.                     End If
  15959.                'is it a view name?
  15960.                     On Error Resume Next
  15961.                     Set view  = notesDatabase.GetView( viewName$ )
  15962.                     On Error Goto ErrorRoutine
  15963.                     If (view Is Nothing) Then 
  15964.                     'or is it a unid?
  15965.                          ViewList = db.Views
  15966.                          Forall tView In ViewList
  15967.                               If (tView.UniversalID = targetview$) Then
  15968.                                    found = True
  15969.                                    Exit Forall
  15970.                               End If
  15971.                          End Forall
  15972.                     End If
  15973.                End If
  15974.                If found Then
  15975.                     Print "[" & FilePathName$ & targetview$ & "]"
  15976.                Else
  15977.                     Print "[" & FilePathName$ & "($InBox)]"
  15978.                End If
  15979.           Else
  15980.                Call wMessagePageHeader
  15981.                Print |<P><B>| & note.WebMessageString(0)
  15982.           End If
  15983.           Call note.RemoveItem("WebMessageString")
  15984.      End If
  15985.      
  15986.      Call MarkTempFields( note )
  15987.      Exit Sub
  15988.      
  15989. ErrNoAccess:
  15990. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  15991. 'if ErrorStatus > 0, then the Save failed     
  15992.      If (ErrorStatus = 0) Then 
  15993.           wNotifyUser "You are not an allowable editor of this invitation."
  15994.      Else
  15995.           wNotifyUser "An error was generated while attempting to send the RSVP."
  15996.      End If
  15997.      Print note.WebMessageString(0)
  15998.      Exit Sub
  15999.      
  16000. MissingOrigDoc:
  16001.      Print "Original invitation document not found (wNoticeOpen)"
  16002.      Exit Sub
  16003.      
  16004. ErrorRoutine:
  16005.      Print Error & " (wNoticeSave)"
  16006.      Exit Sub
  16007. End Sub
  16008. '++LotusScript Development Environment:2:2:Queryopen:1:8
  16009. Sub Queryopen
  16010.      On Error 4005 Resume Next   'we want to trap whenever the parentnote is nothing
  16011.      
  16012. 'if this is a response document, get the parent
  16013. 'we do this for both the chair and the invitee so we can detect missing parent documents    
  16014.      If (notice.IsResponse) Then 
  16015.           Call wGetParentDocument
  16016.           Call note.MakeResponse( parentnote )
  16017.      End If
  16018.      
  16019.      note.tmpOwner = Owner    
  16020. End Sub
  16021. '++LotusScript Development Environment:2:2:Querysave:1:8
  16022. Sub Querysave(Continue As Variant)
  16023.      ErrorStatus = 0
  16024.      
  16025. 'if the user had delegated the meeting invitation and is now trying to take a different action ,warn them
  16026. 'DOUBLE CHECK this behavior
  16027.      If (note.NoticeType(0) = ORS_MSGTYPE_DELEGATING) Or (note.HasItem("tmpDidDelegate")) Then
  16028.           Select Case note.tmpAction(0)
  16029.           Case "Accept","PencilIn","Decline","CounterPropose"
  16030.                Set nam = New NotesName(note.Delegee(0))
  16031.                
  16032.                wNotifyUser "You previously delegated this invitation to "& nam.Common & _
  16033.                ". By taking a different action now, the delegee will no longer receive any notifications " & _
  16034.                "relevant to this meeting. " & _
  16035.                "You may also have missed important change notifications (reschedule, cancellation) that " & _
  16036.                "were sent to the delegee by the Chairperson."
  16037.                
  16038.                note.NoticeType = ORS_MSGTYPE_DELEGATING
  16039.                note.RemoveItem("tmpDidDelegate") 
  16040.                note.RemoveItem("tmpUserActions") 
  16041.                ErrorStatus = 1
  16042.                continue = False
  16043.                Exit Sub
  16044.           End Select 
  16045.      End If
  16046.      
  16047.      If(note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then
  16048.           If (note.SequenceNum(0) <= parentnote.sequencenum(0)) Then
  16049.                wNotifyUser "This reschedule notice could not be processed correctly since it has a lower " & _
  16050.                "sequence than the parent document."
  16051.                continue = False
  16052.                ErrorStatus = 1
  16053.                Exit Sub
  16054.           End If
  16055.      End If
  16056. End Sub
  16057. '++LotusScript Development Environment:2:2:Queryclose:1:8
  16058. Sub Queryclose
  16059.      Call note.RemoveItem("SaveOptions")
  16060.      
  16061.      Select Case note.tmpAction(0)
  16062.      Case "Accept","PencilIn"
  16063.           Call UpdateOriginalNote
  16064.           Call AcceptInvitation
  16065.           note.MailOptions = "1"
  16066.           note.From = note.tmpFrom
  16067.           Call RemoveFields
  16068.           
  16069.      Case "Decline"
  16070.           Call UpdateOriginalNote
  16071.           Call DeclineInvitation
  16072.           note.MailOptions = "1"
  16073.           note.From = note.tmpFrom
  16074.           Call RemoveFields
  16075.           
  16076.      Case "AddCalendar"
  16077. 'in this case, we treat this as an accept, but we do not return anything back to the Chair
  16078.           Context = GetContext
  16079.           Select Case Context
  16080.           Case 1,3
  16081.                Call wUpdateOriginalInvitation(parentnote)
  16082.           Case 2,4
  16083.                Call xUpdateOriginalInvitation(note)
  16084.           End Select
  16085.           Call note.RemoveItem("MailOptions")
  16086.           Call note.RemoveItem( "SendTo" )
  16087.           Call note.RemoveItem( "CopyTo" )
  16088.      End Select
  16089.      
  16090.      If (ErrorStatus > 0) Then 
  16091.           ErrorStatus = 0
  16092.           Exit Sub
  16093.      End If
  16094. End Sub
  16095. '++LotusScript Development Environment:2:2:wwGetCalendarProfile:1:8
  16096. Sub wwGetCalendarProfile
  16097.      On Error Goto ErrorRoutine
  16098.      Set profile = db.GetProfileDocument("CalendarProfile")
  16099.      If profile.Owner(0) = "" Then Goto ErrorRoutine
  16100.      Owner = profile.Owner(0)
  16101.      Exit Sub
  16102.      
  16103. ErrorRoutine:
  16104.      wNotifyUser Error & " (GetCalendarProfile)"
  16105.      Exit Sub
  16106. End Sub
  16107. '++LotusScript Development Environment:2:2:AcceptInvitation:1:8
  16108. Sub AcceptInvitation
  16109.  *This routine is called whenever the user accepts a meeting invitation
  16110.  *A notice document is sent to the chair informing them of our intent to attend
  16111.  *The main invitation document is updated to reflect our acceptance     
  16112. %END REM
  16113.      
  16114.      On Error Goto ErrorRoutine
  16115.      On Error 4005 Resume Next 'handle a delegee 
  16116.      
  16117. 'create the notice document
  16118.      If (note.tmpAction(0) = "PencilIn") Then
  16119.           Call ConvertToNotice("Penciled In -",ORS_MSGTYPE_ACCEPT,83,2)
  16120.      Else
  16121.           Call ConvertToNotice("Accepted -",ORS_MSGTYPE_ACCEPT,83,2)
  16122.      End If
  16123.      
  16124.      On Error Goto ErrorRoutine
  16125.      
  16126. 'add the comment if necessary
  16127.      If (note.Comments(0) <> "") Then 
  16128.           note.IncludeComment = "1"
  16129.           notice.IncludeComment = "1"
  16130.      End If
  16131.      
  16132.      Dim sendto (1) As String
  16133.      If (note.HasItem("FromDomain")) Then
  16134.           sendto(0) = note.Chair(0) & " @ " & note.FromDomain(0)
  16135.      Else
  16136.           FromDomain = Evaluate("@Domain")
  16137.           sendto(0) = note.Chair(0) & " @ " & FromDomain(0)
  16138.      End If          
  16139.      Set notesItem = note.ReplaceItemValue( "SendTo", sendto )
  16140.      Call note.RemoveItem( "CopyTo" )
  16141.      
  16142. 'we use the profile document in case this is being processed by the agent     
  16143.      InviteeUserName = Evaluate("@Name([Abbreviate];owner)", profile)
  16144.      ChairName = Evaluate("@Name([cn];chair)", note)
  16145.      note.InviteeName = InviteeUserName
  16146.      
  16147. 'now we need to update the original invitation document
  16148.      Context = GetContextSub(notice)
  16149.      Select Case Context
  16150.      Case 1,3
  16151. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  16152.           Call wUpdateOriginalInvitation(parentnote)
  16153.      Case 2,4
  16154. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  16155.           Call xUpdateOriginalInvitation(notice)
  16156.      End Select
  16157.      wNotifyUser "A notice has been sent informing " & ChairName(0) & " that you will be attending. A meeting document has been added to your Calendar."
  16158.      
  16159.      Exit Sub
  16160.      
  16161. ErrorRoutine:
  16162.      wNotifyUser Error & " (AcceptInvitation)"
  16163.      Exit Sub
  16164. End Sub
  16165. '++LotusScript Development Environment:2:2:DeclineInvitation:1:8
  16166. Sub DeclineInvitation
  16167.  *This routine is called whenever the user declines an invitation or
  16168.   changes their mind after accepting an invitation
  16169.  *A notice document is sent to the chair informing them of our decline
  16170.  *The main invitation document is updated to reflect our decline    
  16171. %END REM
  16172.      Dim MessageText As String
  16173.      
  16174.      On Error Goto ErrorRoutine
  16175.      On Error 4005 Resume Next 'handle a delegee 
  16176.      
  16177.      Call ConvertToNotice("Declined -", ORS_MSGTYPE_REJECT, 84, 2)
  16178.      
  16179. 'add the comment if necessary
  16180.      If (note.Comments(0) <> "") Then note.IncludeComment = "1"
  16181.      
  16182.      Dim sendto (1) As String
  16183.      If (note.HasItem("FromDomain")) Then     
  16184.           sendto(0) = note.Chair(0) & " @ " & note.FromDomain(0)
  16185.      Else
  16186.           FromDomain = Evaluate("@Domain")
  16187.           sendto(0) = note.Chair(0) & " @ " & FromDomain(0)
  16188.      End If   
  16189.      Set notesItem = note.ReplaceItemValue( "SendTo", sendto )
  16190.      Call note.RemoveItem( "CopyTo" )
  16191.      
  16192.      InviteeUserName = Evaluate("@Name([Abbreviate];tmpOwner)",note)
  16193.      ChairName = Evaluate("@Name([cn];chair)",note)
  16194.      note.InviteeName = InviteeUserName
  16195.      
  16196. 'now we need to update the original invitation document
  16197.      Context = GetContextSub(notice)
  16198.      Select Case Context
  16199.      Case 1,3
  16200. '1 = non-repeat notice; 3 = repeat notice; in either case, update the parent note
  16201.           If (parentnote.Form(0) = "Appointment") Then
  16202.                MessageText  = "The calendar entry has been removed from your calendar."
  16203.           Else
  16204.                MessageText = "A meeting document has not been added to your calendar."
  16205.           End If
  16206.           Call wUpdateOriginalInvitation(parentnote)
  16207.      Case 2,4
  16208. '2 = repeat instance; 4 = non-repeat instance; in either case, update the current note
  16209.           If (note.Form(0) = "Appointment") Then
  16210.                MessageText  = "The calendar entry has been removed from your calendar."
  16211.           Else
  16212.                MessageText = "A meeting document has not been added to your calendar."
  16213.           End If
  16214.           Call xUpdateOriginalInvitation(notice)
  16215.      End Select
  16216.      
  16217.      wNotifyUser "A notice has been sent informing " & ChairName(0) & _
  16218.      " that you will not be attending. " & MessageText
  16219.      
  16220.      Exit Sub
  16221.      
  16222. ErrorRoutine:
  16223.      wNotifyUser Error & " (DeclineInvitation)"
  16224.      Exit Sub
  16225. End Sub
  16226. '++LotusScript Development Environment:2:2:ConvertToNotice:1:8
  16227. Sub ConvertToNotice(Subject As String, NoticeType As String, ViewIcon As Integer, Mode As Integer)
  16228.  *Parameters
  16229.     Subject -> value of subject item
  16230.     NoticeType -> type of notice being sent
  16231.     ViewIcon -> icon to display in view
  16232.     Mode -> 1 = chair is sending, 2 = invitee is sending
  16233. %END REM
  16234.      
  16235.      Dim ChairItem As NotesItem
  16236.      Dim dummydoc As NotesDocument
  16237.      On Error Goto ErrorRoutine
  16238.      
  16239. 'determine the context of the current note
  16240.      Context = GetContextSub(notice)
  16241.      Select Case Context
  16242.      Case 1,3
  16243. '1 = non-repeat notice, 3 = repeat notice -> make the notice doc a response to the parentnote
  16244.           If(note.HasItem("ApptUNID")) Then
  16245.                If(note.ApptUNID(0) <> parentnote.UniversalID) Then
  16246.                     Set dummydoc = New NotesDocument(db)
  16247.                     dummydoc.UniversalID = note.ApptUNID(0)
  16248.                     Call note.MakeResponse(dummydoc)
  16249.                Else
  16250.                     Call note.MakeResponse(parentnote)
  16251.                     note.ApptUNID = parentnote.UniversalID
  16252.                End If
  16253.           Else
  16254.                Call note.MakeResponse(parentnote)    
  16255.                note.ApptUNID = parentnote.UniversalID
  16256.           End If
  16257.      Case 2,4
  16258. '2 = repeat instance, 4 = non-repeat instance -> make the notice doc a response to the current note
  16259.           If(note.HasItem("ApptUNID")) Then
  16260.                If(note.ApptUNID(0) <> notice.UniversalID) Then
  16261.                     Set dummydoc = New NotesDocument(db)
  16262.                     dummydoc.UniversalID = note.ApptUNID(0)
  16263.                     Call note.MakeResponse(dummydoc)
  16264.                Else
  16265.                     Call note.MakeResponse(notice)
  16266.                     note.ApptUNID = notice.UniversalID
  16267.                End If
  16268.           Else
  16269.                Call note.MakeResponse(notice)
  16270.                note.ApptUNID = notice.UniversalID
  16271.           End If
  16272.      End Select
  16273.      
  16274. '     Call note.save(True, True, True)
  16275.      Call note.ReplaceItemValue("$RefOptions","1")
  16276.      
  16277.      note.Form = "Notice"
  16278.      note.Principal = Owner
  16279.      note.From = notice.From
  16280.      note.NoticeType = NoticeType
  16281.      
  16282. 'add the required attendees -> we need to know what context the current document is in
  16283. 'this is because non-repeat notices, repeat notices, and non-repeat appointments have this information
  16284. 'repeat instances need to get this info from their parent
  16285.      Select Case Context
  16286.      Case 1,3,4
  16287. '1 = non-repeat notice,3 = repeat notice,4 = non-repeat instance -> get the values from the current note
  16288.           'note.RequiredAttendees = note.RequiredAttendees
  16289.           'note.OptionalAttendees = note.OptionalAttendees
  16290.      Case 2
  16291. 'the repeat instance document does not have this information -> get it from the parent
  16292.           note.RequiredAttendees = parentnote.RequiredAttendees
  16293.           note.OptionalAttendees = parentnote.OptionalAttendees
  16294.      End Select
  16295.      
  16296.      Call note.ReplaceItemValue("_ViewIcon",ViewIcon)
  16297.      'If (note.HasItem("$PublicAccess")) Then Call notice.ReplaceItemValue("$PublicAccess","1")
  16298.      If note.HasItem("tmpRescheduleWhich") Then 
  16299.           If (NoticeType = ORS_MSGTYPE_STATUSUPDATE) Then
  16300.                note.RescheduleWhich = "0" 'just this one
  16301.           Else
  16302.                note.RescheduleWhich = note.tmpRescheduleWhich
  16303.           End If
  16304.      End If
  16305.      
  16306. 'add computed items
  16307.      If (mode = 1) Then
  16308. 'we are the chair sending this out
  16309.           note.Topic = note.Subject
  16310.           Set startitem = note.GetFirstItem("StartDateTime")
  16311.           If (note.Room(0) <> "") Then               
  16312.                note.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & " in " & note.Room(0) & ")"
  16313.           Else
  16314.                note.Subject = Subject & " " & note.Subject(0) & " (" & GetSubjectText(startitem.DateTimeValue.LSLocalTime) & ")"
  16315.           End If
  16316.           note.Chair = Owner
  16317. 'we do not add the send to for chairs; this is upto the calling function
  16318.      Else
  16319. 'we are the invitee sending this out
  16320.           note.Subject = Subject & " " & note.Topic(0)
  16321.      End If
  16322.      Exit Sub
  16323.      
  16324. ErrorRoutine:
  16325.      wNotifyUser Error & " (ConvertToNotice)"
  16326.      Exit Sub
  16327. End Sub
  16328. '++LotusScript Development Environment:2:1:wGetParentDocument:1:8
  16329. Function wGetParentDocument() As Integer
  16330.      On Error Resume Next
  16331.      wGetParentDocument = False
  16332.      
  16333.      Set parentnote = db.GetDocumentByUNID(notice.ParentDocumentUNID)
  16334.      If (parentnote Is Nothing) Then
  16335. 'if this is a non-repeating note, see if we should re-create the document
  16336.           If Not(note.hasitem("OrgRepeat")) Then
  16337.                wNotifyUser "The appointment document had been deleted from your calendar, so it has been re-created."
  16338.                Call ResurrectParentDoc        
  16339.                wGetParentDocument =True
  16340.                Call notice.MakeResponse( parentnote )
  16341.           Else
  16342.                wNotifyUser "Unfortunately, you are attempting to process a repeating notice, which is not supported for Web Mail users."
  16343.           End If
  16344.      Else
  16345. 'we found the parent          
  16346.           wGetParentDocument = True
  16347.      End If
  16348. End Function
  16349. '++LotusScript Development Environment:2:2:UpdateOriginalNote:1:8
  16350. Sub UpdateOriginalNote
  16351.      Call notice.RemoveItem("MailOptions")
  16352.      Call notice.RemoveItem("SaveOptions")
  16353.      Call notice.RemoveItem( "SendTo" )
  16354.      Call notice.RemoveItem( "CopyTo" )
  16355. End Sub
  16356. '++LotusScript Development Environment:2:2:RemoveFields:1:8
  16357. Sub RemoveFields
  16358.      Call note.RemoveItem("PostedDate")
  16359.      Call note.RemoveItem("appType")
  16360.      Call note.RemoveItem("ReminderTime")
  16361.      Call note.RemoveItem("Duration")
  16362.      Call note.RemoveItem("$ExpandGroups")
  16363.      Call note.RemoveItem("TimeRange")
  16364.      Call note.RemoveItem("$NoPurge")
  16365.      Call note.RemoveItem("OrgDontDoubleBook")
  16366.      Call note.RemoveItem("DocAuthors")
  16367.      Call note.RemoveItem("WebPrevCalEntryType")
  16368.      Call note.RemoveItem("OriginalStartDate")
  16369.      Call note.RemoveItem("OriginalEndDate")
  16370.      Call note.RemoveItem("OriginalRoom")
  16371.      Call note.RemoveItem("TimeRangeText")
  16372.      Call note.RemoveItem("BookFreeTime")
  16373.      Call note.RemoveItem("OrgConfidential")
  16374.      Call note.RemoveItem("RouteServers")
  16375.      Call note.RemoveItem("RouteTimes")
  16376.      Call note.RemoveItem("DeliveredDate")
  16377.      Call note.RemoveItem("NewDate")
  16378.      Call note.RemoveItem("NewTimeRange")
  16379.      Call note.RemoveItem("Categories")
  16380.      Call note.RemoveItem("$Revisions")
  16381.      
  16382. '     Call note.RemoveItem("Broadcast")     
  16383. '     Call note.RemoveItem("INVITEENAME")
  16384. '     Call note.RemoveItem("REQUIREDATTENDEES")
  16385. '     Call note.RemoveItem("$PublicAccess")
  16386.      
  16387.      Call note.RemoveItem("Reason")
  16388.      Call note.RemoveItem("NewRoom")
  16389.      Call note.RemoveItem("StatusUpdate")
  16390.      Call note.RemoveItem("Boby")
  16391.      Call note.RemoveItem("OrgState")
  16392.      
  16393. '     note.MailSaveOptions = "1"
  16394. '     note.DefaultMailSaveOptions = "1"
  16395. End Sub
  16396. '++LotusScript Development Environment:2:2:wUpdateOriginalInvitation:1:8
  16397. Sub wUpdateOriginalInvitation (orgnote As NotesDocument)
  16398.      Call xUpdateOriginalInvitation (orgnote)
  16399.      Call orgnote.Save(True,True,True)
  16400.      Call MarkTempFields(orgnote)
  16401. End Sub
  16402. '++LotusScript Development Environment:2:2:xUpdateOriginalInvitation:1:8
  16403. Sub xUpdateOriginalInvitation (orgnote As NotesDocument)
  16404.  *This routine is called by several other routines to update a particular note (orgnote)
  16405.   whenever the user takes a specific action
  16406.  *Orgnote is the document object to be updated
  16407. %END REM
  16408.      
  16409.      On Error Goto ErrorRoutine
  16410.      
  16411.      If (orgnote Is Nothing) Then Exit Sub
  16412.      
  16413. 'the following are some changes we make regardless of the action being performed
  16414.      orgnote.StartDateTime = note.StartDateTime
  16415.      orgnote.EndDateTime = note.EndDateTime
  16416.      orgnote.Room = note.Room
  16417.      orgnote.StartDate = note.StartDate
  16418.      
  16419.      If IsWebClient Then 
  16420.           tmpFrom = notice.From
  16421.      Else
  16422.           tmpFrom = session.Username
  16423.           Call MarkTempFields(orgnote)
  16424.      End If
  16425.      
  16426.      Select Case note.tmpAction(0)
  16427.      Case "Accept","AddCalendar","PencilIn"
  16428. 'we are acceptring an invitation -> mark the document as an appointment
  16429.           orgnote.Form = "Appointment"
  16430.           Set trdr = session.CreateDateRange
  16431.           Set startdt = New NotesDateTime(note.StartDateTime(0))
  16432.           Set enddt = New NotesDateTime(note.EndDateTime(0))
  16433.           Set trdr.StartDateTime = startdt
  16434.           Set trdr.EndDateTime = enddt
  16435.           Set orgnote.TimeRange = trdr
  16436.           orgnote.CalendarDateTime = note.StartDateTime
  16437.           orgnote.StartDate = note.StartDate
  16438.           If (note.tmpAction(0) = "PencilIn") Then
  16439.                Call orgnote.ReplaceItemValue("$BusyPriority","2")
  16440.                orgnote.BookFreeTime = "1"
  16441.           Else            
  16442.                Call orgnote.ReplaceItemValue("$BusyPriority","1")
  16443.           End If
  16444.           orgnote.OrgTable = ORS_ITEM_CALENDAR
  16445.           orgnote.NoticeType = ORS_MSGTYPE_ACCEPT  
  16446.           Call orgnote.ReplaceItemValue("_ViewIcon",158)
  16447.           If Not(orgnote.HasItem("RepeatDates") And orgnote.HasItem("OrgRepeat")) Then Call orgnote.ReplaceItemValue("$BusyName",Owner)
  16448.           orgnote.Subject = note.Topic
  16449. 'check to see if we should automatically set an alarm
  16450.           If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") And (profile.SetAlarmAppointment(0) = "1") Then
  16451.                Call orgnote.ReplaceItemValue("$Alarm",1)
  16452.                Call orgnote.ReplaceItemValue("$AlarmDescription",note.Topic)
  16453.                Call orgnote.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  16454.                If Not(orgnote.HasItem("RepeatIds")) Then Call orgnote.PutInFolder("$Alarms")
  16455.           Else
  16456.                Call orgnote.RemoveItem("$Alarm")
  16457.                Call orgnote.RemoveItem("$AlarmDescription")
  16458.                Call orgnote.RemoveItem("$AlarmOffset")               
  16459.           End If
  16460. 'if the autoprocessing agent is running, then we need to remove some fields
  16461.           If (IsAgentProcessing Or "AddCalendar" = note.tmpAction(0)) Then
  16462.                Call orgnote.RemoveItem("MailOptions")
  16463.                Call orgnote.RemoveItem("SendTo")
  16464.           End If
  16465. 'if the profile says we shouldn't double book, then update the OrgDontDoubleBook item
  16466.           If (profile.CheckMeeting(0) = "1") Then orgnote.OrgDontDoubleBook = "1"
  16467. 'if the profile says hide new entries from public viewing, then remove the $PublicAccess bit
  16468.           If (profile.CalEntryHide(0) = "1") Then Call orgnote.RemoveItem("$PublicAccess")
  16469.           Call orgnote.ReplaceItemValue("$NoPurge",orgnote.EndDateTime(0))
  16470. 'update the original invitation only if this is a response document
  16471.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  16472.           Call orgnote.RemoveItem( "CopyTo" )
  16473.           If ("AddCalendar" = note.tmpAction(0)) Then 
  16474.                Call orgnote.RemoveItem( "SendTo" )
  16475.           Else
  16476.                Call orgnote.Save(True,True,True)
  16477.           End If
  16478.      Case "Decline"
  16479.           orgnote.Form = "Notice"
  16480.           orgnote.Subject = "Appointment Declined - " & note.Topic(0)          
  16481.           Call orgnote.ReplaceItemValue("_ViewIcon",84)
  16482.           orgnote.NoticeType = ORS_MSGTYPE_REJECT
  16483.           orgnote.From = tmpFrom
  16484.           orgnote.Principal = Owner
  16485.           orgnote.OrgTable = ""
  16486. 'the invitee might have accepted, so remove the calendar and update busy items
  16487.           Call orgnote.RemoveItem("CalendarDateTime")
  16488.           Call orgnote.ReplaceItemValue("$BusyPriority","2")
  16489. 'update the original invitation only if this is a response document
  16490.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  16491.           Call orgnote.RemoveItem( "CopyTo" )
  16492.           Call orgnote.Save(True,True,True)        
  16493.      Case "Delegate"
  16494.           orgnote.Form = "Notice"
  16495.           orgnote.Subject = "Appointment Delegated - " & note.Topic(0)
  16496.           Call orgnote.ReplaceItemValue("_ViewIcon",84)
  16497.           orgnote.NoticeType = ORS_MSGTYPE_DELEGATING
  16498.           orgnote.From = tmpFrom
  16499.           orgnote.Principal = Owner
  16500.           orgnote.OrgTable = ""          
  16501.           Call orgnote.RemoveItem("OrgState")
  16502. 'the invitee might have accepted, so remove the calendar and update busy items
  16503.           Call orgnote.RemoveItem("CalendarDateTime")
  16504.           Call orgnote.ReplaceItemValue("$BusyPriority","2")
  16505. 'update the original invitation only if this is a response document
  16506.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  16507.           Call orgnote.Save(True,True,True)       
  16508.      Case "CounterPropose"
  16509.           orgnote.NoticeType = ORS_MSGTYPE_COUNTER
  16510.           orgnote.Subject = "Appointment Change Proposal - " & note.Topic(0)
  16511.           orgnote.From = tmpFrom
  16512.           orgnote.Principal = Owner
  16513.           orgnote.ProposalSent = True
  16514.           Call orgnote.ReplaceItemValue("_ViewIcon",39)
  16515. 'update the original invitation only if this is a response document
  16516.           If Not (parentnote Is Nothing) Then orgnote.SequenceNum = note.SequenceNum
  16517.           Call orgnote.Save(True,True,True)
  16518.      Case "AcceptCounterProposal"
  16519.           orgnote.StartDate = note.NewDate          
  16520.           Set trdr = session.CreateDateRange
  16521.           trdr.Text = uidoc.FieldGetText("NewTimeRange")
  16522.           
  16523.           Set startdt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.StartDateTime.TimeOnly)
  16524.           Set enddt = New NotesDateTime(uidoc.FieldGetText("NewDate") & " " & trdr.EndDateTime.TimeOnly)
  16525.           
  16526.           Set orgnote.StartDateTime = startdt
  16527.           Set orgnote.EndDateTime = enddt
  16528.           Set orgnote.TimeRange = trdr
  16529.           If (note.NewRoom(0) <> "") Then orgnote.Room = note.NewRoom          
  16530.           orgnote.CalendarDateTime = orgnote.StartDateTime
  16531.           orgnote.SequenceNum = orgnote.SequenceNum(0) + 1
  16532.           Call orgnote.ReplaceItemValue("$NoPurge",orgnote.EndDateTime(0))
  16533.           Call orgnote.Save(True,True,True)
  16534.      End Select
  16535.      Exit Sub
  16536.      
  16537. ErrorRoutine:
  16538.      wNotifyUser Error & " (xUpdateOriginalInvitation)"
  16539.      Exit Sub
  16540. End Sub
  16541. T    T    T    T    
  16542. )d    [<
  16543. )d    [<
  16544. }h    #1
  16545. )d    ]T    #
  16546. $}h    #1
  16547. }L%#K
  16548. owner
  16549.     0S0E
  16550. chair
  16551.     0S0E
  16552. tmpOwner
  16553.     0S0E
  16554. chair
  16555.     0S0E
  16556. O=Lotus Notes
  16557. O=Lotus Notes
  16558. PURSAFO
  16559. |.:#U
  16560. O=Lotus Notes
  16561. CN=Lotus Notes Template Development/O=Lotus Notes
  16562. PURSAFO
  16563. Fde!f^^
  16564. $TITLE
  16565. $AssistType
  16566. $AssistLastRun
  16567. $AssistDocCount
  16568. $AssistFlags
  16569. $AssistTrigger
  16570. $AssistInfo
  16571. $AssistQuery
  16572. $AssistAction
  16573. $AssistAction_Ex
  16574. "Small Fonts
  16575. New Calendar Entry
  16576. Subject
  16577. '++LotusScript Development Environment:2:5:(Options):0:74
  16578. '++LotusScript Development Environment:2:5:(Forward):0:1
  16579. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16580.  Appointment'++LotusScript Development Environment:2:5:(Options):0:66
  16581. '++LotusScript Development Environment:2:5:(Forward):0:1
  16582. Declare Sub Postopen(Source As Notesuidocument)
  16583. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  16584. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  16585. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  16586. Declare Sub Postrecalc(Source As Notesuidocument)
  16587. Declare Sub Postmodechange(Source As Notesuidocument)
  16588. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  16589. Declare Sub Initialize
  16590. Declare Sub Terminate
  16591. '++LotusScript Development Environment:2:5:(Declarations):0:2
  16592. '++LotusScript Development Environment:2:2:BindEvents:1:129
  16593. Private Sub BindEvents(Byval Objectname_ As String)
  16594.      Static Source As NOTESUIDOCUMENT
  16595.      Set Source = Bind(Objectname_)
  16596.      On Event Postopen From Source Call Postopen
  16597.      On Event Querysave From Source Call Querysave
  16598.      On Event Queryopen From Source Call Queryopen
  16599.      On Event Queryclose From Source Call Queryclose
  16600.      On Event Postrecalc From Source Call Postrecalc
  16601.      On Event Postmodechange From Source Call Postmodechange
  16602.      On Event Querymodechange From Source Call Querymodechange
  16603. End Sub
  16604. '++LotusScript Development Environment:2:2:Postopen:1:12
  16605. Sub Postopen(Source As Notesuidocument)
  16606.      
  16607. End Sub
  16608. '++LotusScript Development Environment:2:2:Querysave:1:12
  16609. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  16610.      
  16611. End Sub
  16612. '++LotusScript Development Environment:2:2:Queryopen:1:12
  16613. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  16614.      
  16615. End Sub
  16616. '++LotusScript Development Environment:2:2:Queryclose:1:12
  16617. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  16618.      
  16619. End Sub
  16620. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  16621. Sub Postrecalc(Source As Notesuidocument)
  16622.      
  16623. End Sub
  16624. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  16625. Sub Postmodechange(Source As Notesuidocument)
  16626.      
  16627. End Sub
  16628. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  16629. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  16630.      
  16631. End Sub
  16632. '++LotusScript Development Environment:2:2:Initialize:1:10
  16633. Sub Initialize
  16634.      
  16635. End Sub
  16636. '++LotusScript Development Environment:2:2:Terminate:1:10
  16637. Sub Terminate
  16638.      
  16639. End Sub
  16640.     Hidden Fields: 
  16641. tmpFrom
  16642. Appointment
  16643. $ExpandGroups
  16644. _ViewIcon
  16645. wAppointmentOpen
  16646. $$QueryOpenAgent
  16647. wAppointmentSave
  16648. $$QuerySaveAgentdomino server agent hook
  16649. MailOptions
  16650. SaveOptions
  16651. Query_StringCGI variable for LS
  16652. Path_Info
  16653. appType
  16654. NewDoc
  16655. OldSubject
  16656. tmpConfirmMsg
  16657. IsFindTime
  16658.     1S2S3S4S5S6S
  16659. [<b>  <b>]
  16660. tmpConfirmMsg
  16661. IsFindTime
  16662.     1S2S
  16663. [<b>  <b>]
  16664. tmpDispAppType
  16665. dispAppType
  16666. CalendarProfile
  16667. Owner
  16668.     6S9S10S
  16669.     The owner of this mail file is "
  16670. CalendarProfile
  16671. Owner
  16672. tmpCurrentOwner
  16673.     You are logged in as "
  16674. tmpCurrentUser
  16675. $HideMailHeader
  16676. IsFindTime
  16677. Principal
  16678. Principal
  16679. Principal
  16680. Principal
  16681. Principal
  16682.     4S5S6S7S8S9S13S14S15S16S17S18S23S24S28S30S31S35S37S38S41S42S44S45S49S51S52S56S
  16683.     Sent by:
  16684. FromDomain
  16685. FromDomain
  16686. FromDomain
  16687. FromDomain
  16688.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  16689. FromName
  16690.     0RR1S2S6S
  16691. FromStops
  16692.     0R1S2S6S
  16693. FromName
  16694. FromStops
  16695. FromStops
  16696. FromStops
  16697.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  16698.     0S0E
  16699.     Submit
  16700. IsFindTime
  16701. HasFoundTime
  16702.     1S2S3S4S5S6S
  16703.     Entry Types: 
  16704. tmpOpenForm
  16705. OpenForm
  16706.     1S2S
  16707. tmpEditDocument
  16708. EditDocument
  16709.     0R1S2S
  16710. tmpOpenFormLen
  16711. tmpOpenForm
  16712.     0R1S2S
  16713. tmpEditDocumentLen
  16714. tmpEditDocument
  16715.     0R1S2S
  16716. tmpQuery_StringLen
  16717. Query_String
  16718.     0R1S2S
  16719. tmpViewArguments1
  16720. Query_String
  16721. tmpOpenFormLen_
  16722. tmpOpenForm
  16723. Query_String
  16724. tmpQuery_StringLen
  16725. tmpOpenFormLen#
  16726. Query_String
  16727. tmpEditDocumentLen_
  16728. tmpEditDocument
  16729. Query_String
  16730. tmpQuery_StringLen
  16731. tmpEditDocumentLen#
  16732.     0RR1S2S3S4S8S10S11S13RS4E17S18S19S22RS4E23S24S28S30S31S33RS8E37S38S39S42RS8E44S
  16733. tmpEntryType
  16734. &EntryType=
  16735.     0RR1S2S
  16736. tmpEntryTypeLen
  16737. tmpEntryType
  16738.     0R1S2S
  16739. tmpViewArguments
  16740. tmpViewArguments1
  16741. tmpEntryTypeLen
  16742. tmpEntryType
  16743. tmpViewArguments1
  16744. tmpViewArguments1
  16745. tmpEntryTypeLen
  16746.     0R1S2S3S4S8S10S11S13RS4E17S21S22S23S24S27RS4E
  16747.     0RR1S2S8S12S14S
  16748. First arg could be a doc or view ref
  16749.     0RR1S
  16750. Path_Info
  16751. Path_Info
  16752.     0R1S2S6S10S11S15S16S
  16753. arg1a
  16754.     0R1S2S3S10S14S18S21S
  16755. arg1b
  16756. arg1a
  16757. arg1a
  16758. arg1a
  16759.     0R1S2S3S10S14S18S21S
  16760. If second arg exists, it's the doc ref
  16761.     0RR1S
  16762. arg1b
  16763.     0R1S2S3S10S14S18S22S23S27S28S31S
  16764. arg2a
  16765.     0R1S2S3S10S14S18S21S
  16766. openForm
  16767. OpenForm
  16768.     0RR1S2S
  16769. editDoc
  16770. EditDocument
  16771.     0R1S2S
  16772. Determine the command that was issued
  16773.     0RR1S
  16774. isOpenForm
  16775. Query_String
  16776. openForm
  16777. openForma
  16778.     0R1S2S8S14S15S
  16779. isEditDoc
  16780. Query_String
  16781. editDoc
  16782. editDoc
  16783.     0R1S2E2S5E8S14S15S
  16784. newCmd
  16785. isOpenForm
  16786. openForm
  16787. isEditDoc
  16788. editDoc
  16789.     0R1S2S3S6S8S12S14S
  16790. Build the base URL
  16791.     0RR1S
  16792. path"
  16793. arg1b
  16794. isEditDoc
  16795. arg2a
  16796. newCmd"
  16797. tmpEntryType"
  16798.     0R1S2S3S4S5S6S7S8S9S10S14S15S16S18S20S21S22S23S24S25S
  16799. ahead
  16800. <a href="
  16801.     0RR1S2S3S4S
  16802. amiddle
  16803. tmpViewArguments
  16804.     0R1S2S3S4S
  16805. atail
  16806. </a>   
  16807.     0R2S
  16808. typea
  16809. ahead
  16810. amiddle
  16811. Appointment
  16812. atail
  16813.     0RR1S2S3S4S5S6S7S8S9S10S
  16814. typeb
  16815. ahead
  16816. amiddle
  16817. Invitation"
  16818. atail
  16819.     0R1S2S3S4S5S6S7S8S9S10S
  16820. typec
  16821. ahead
  16822. amiddle
  16823. Event
  16824. atail
  16825.     0R1S2S3S4S5S6S7S8S9S10S
  16826. typed
  16827. ahead
  16828. amiddle
  16829. Reminder"
  16830. atail
  16831.     0R1S2S3S4S5S6S7S8S9S10S
  16832. typee
  16833. ahead
  16834. amiddle
  16835. Anniversary
  16836.     0R1S2S3S4S5S6S7S8S
  16837. typea
  16838. typeb
  16839. typec
  16840. typed
  16841. typee
  16842. </a><BR>]
  16843.     0RR1S2S3S4S5S6S7S8S9S10S11S12S
  16844. EntryTypes
  16845.     Brief description:
  16846. Subject[<size=55>]
  16847.     Date:
  16848. StartDateTime
  16849.     4S6S
  16850. newDateTime
  16851.     0RR1S2S
  16852. minutes
  16853. newDateTime
  16854.     0R1S2S
  16855. seconds
  16856. newDateTime
  16857.     0R1S2S3S4S
  16858. adjust time to the next 15 minute interval
  16859.     0RR1S
  16860. StartDateTime
  16861. minutes
  16862. newDateTime
  16863. minutes
  16864. seconds
  16865. minutes
  16866. newDateTime
  16867. minutes
  16868. seconds
  16869. minutes
  16870. newDateTime
  16871. minutes
  16872. seconds
  16873. minutes
  16874. newDateTime
  16875. minutes
  16876. seconds
  16877. newDateTime
  16878. seconds
  16879.     0R1S2S3S6S7S9S13S15S17S19S21S22S23S25S28S29S30S32S36S38S40S42S44S45S46S48S51S52S53S55S59S61S63S65S67S68S69S71S74S75S76S78S82S84S86S88S90S91S92S94S97S101S103S105S107S109S111S
  16880. MinuteDur
  16881. CalendarProfile
  16882. DefaultDuration
  16883.     0RR1S2S6S
  16884. MinuteDuration
  16885. MinuteDur
  16886. MinuteDur
  16887. MinuteDur
  16888.     0R1S2S4S6S7S9S10S12S13S16S17S18S
  16889. EndDateTime
  16890. StartDateTime
  16891. MinuteDuration
  16892.     0RR1S2S3S7S9S11S13S15S17S
  16893. StartDateTime
  16894.     0RRN
  16895. StartDate
  16896. StartDate
  16897.     3S4S5S6S8S
  16898. StartDate[<size=11>]
  16899. AppointmentType
  16900. IsFindTime
  16901.     1S2S3S4S5S6S7S8S9S10S
  16902.     Time:
  16903. StartDateTime
  16904.     0S0E
  16905. StartTime[<size=11>]
  16906. AppointmentType
  16907. IsFindTime
  16908.     2S3S4S5S6S7S9S10S11S12S
  16909.     Duration ( hr : min ):
  16910. tmpProfileValue
  16911. CalendarProfile
  16912. DefaultDuration
  16913.     1S2S6S
  16914. tmpProfileValue
  16915. tmpProfileValue
  16916. tmpProfileValue
  16917.     0R3S8S10S11S13RS4E15RS4E18S19S21S22S24S25S
  16918. AppointmentType
  16919. Duration
  16920. You must enter a duration of at least 1 day.{
  16921.     3S4S5S6S7S8S10SDurationMin/
  16922. 0:15|150:30|300:45|451:00|601:15|751:30|901:45|1052:00|1202:15|1352:30|1502:45|1653:00|1803:15|1953:30|2103:45|2254:00|2404:15|2554:30|2704:45|2855:00|3005:15|4155:30|4305:45|4456:00|4606:15|4756:30|4906:45|5057:00|5207:15|5357:30|5507:45|5658:00|5808:15|5958:30|6108:45|6259:00|6409:15|6559:30|6709:45|68510:00|70010:15|71510:30|73010:45|74511:00|76011:15|77511:30|79011:45|805
  16923. AppointmentType
  16924.     1S2S
  16925.     Duration (in days):
  16926. AppointmentType
  16927. Duration
  16928. You must enter a duration of at least 1 day.{
  16929.     3S4S5S6S7S8S10SDuration[<size=11>]
  16930. BookFreeTime
  16931. AppointmentType
  16932. IsFindTime
  16933.     1S2S3S4S5S6S7S8S9S10S
  16934.     Penciled In
  16935. CalendarProfile
  16936. CalEntryHide
  16937.     0S0E
  16938. OrgConfidential
  16939. Not for public viewing|1
  16940.     Detailed description:
  16941. Body[<ROWS="6" COLS="61"  WRAP=VIRTUAL>]
  16942. AppointmentType
  16943. tmpOwner
  16944. Chair
  16945. IsFindTime
  16946.     1S2S3S2E4S5S6S7S8S9S10S
  16947. [<b>  </b>]
  16948. Attendees
  16949. CalendarProfile
  16950. wEnableNABs
  16951.     1S6S8S9S11S16S
  16952. CalendarProfile
  16953. wNAB1
  16954.     0RR1S2S6S
  16955. CalendarProfile
  16956. wNAB2
  16957.     0R1S2S6S
  16958. CalendarProfile
  16959. wNAB3
  16960.     0R1S2S6S
  16961. CalendarProfile
  16962. wNAB4
  16963.     0R1S2S6S
  16964. NABurl1
  16965. CalendarProfile
  16966. wNABurl1
  16967.     0R1S2S6S
  16968. NABurl2
  16969. CalendarProfile
  16970. wNABurl2
  16971.     0R1S2S6S
  16972. NABurl3
  16973. CalendarProfile
  16974. wNABurl3
  16975.     0R1S2S6S
  16976. NABurl4
  16977. CalendarProfile
  16978. wNABurl4
  16979.     0R1S2S6S
  16980. anchorHead
  16981. <a href="
  16982.     0RR1S2S
  16983. anchorMid
  16984. "><font size=2><b>
  16985.     0R1S2S
  16986. anchorTail
  16987. </b></font></a>
  16988.     0R1S2S
  16989. spaces
  16990.     
  16991.     0R1S2S
  16992. Link1
  16993. anchorHead
  16994. NABurl1
  16995. anchorMid
  16996. NAB1"
  16997. anchorTail"
  16998. spaces"
  16999.     0RR1S2S3S4S5S6S7S8S9S10S11S12S
  17000. Link2
  17001. anchorHead
  17002. NABurl2
  17003. anchorMid
  17004. NAB2"
  17005. anchorTail"
  17006. spaces"
  17007.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  17008. Link3
  17009. anchorHead
  17010. NABurl3
  17011. anchorMid
  17012. NAB3"
  17013. anchorTail"
  17014. spaces"
  17015.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  17016. Link4
  17017. anchorHead
  17018. NABurl4
  17019. anchorMid
  17020. NAB4"
  17021. anchorTail"
  17022.     0R1S2S3S4S5S6S7S8S9S10S
  17023. Link1
  17024. Link2
  17025. Link3
  17026. Link4
  17027.     0RR1S2S3S4S5S6S7S8S9S10S
  17028. tmpCustomAddressLinks
  17029.     Send invitations to:
  17030. SendTo[<size=55>]
  17031.     Optional invitees:
  17032. CopyTo[<size=55>]
  17033. AppointmentType
  17034. tmpOwner
  17035. Chair
  17036. Broadcast
  17037. IsFindTime
  17038.     1S2S3S2E4S5S6S7S8S9S10S11S12S13S14S15S16S
  17039. Broadcast
  17040. I don't want responses from the Invitees|1
  17041. AppointmentType
  17042. tmpOwner
  17043. Chair
  17044. Broadcast
  17045.     1S2S3S2E4S5S6S7S8S9S10S11S12S
  17046. AppointmentType
  17047. tmpOwner
  17048. Chair
  17049. Broadcast
  17050. IsFindTime
  17051.     1S2S3S2E4S5S6S7S8S9S10S11S12S13S14S15S16S
  17052.     Invitees are not required to respond.
  17053. AppointmentType
  17054. RequiredAttendees
  17055. IsFindTime
  17056.     1S2S3S4S5S6S7S8S9S10S
  17057.     Invitations have been sent to:
  17058. RequiredAttendees
  17059. tmpSendTo
  17060. AppointmentType
  17061. OptionalAttendees
  17062. IsFindTime
  17063.     1S2S3S4S8S9S10S11S12S13S
  17064.     Optional invitees:
  17065. OptionalAttendees
  17066. tmpCopyTo
  17067. AppointmentType
  17068. IsFindTime
  17069.     1S2S3S4S5S6S7S8S9S10S
  17070.     Meeting location:
  17071. tmpRoom
  17072. AppointmentType
  17073. chair
  17074. IsFindTime
  17075.     1S2S3S4S5S6S7S8S9S10S11S12S
  17076.     Chairperson:
  17077. Chair
  17078.     2S4S
  17079. tmpChairperson
  17080. AppointmentType
  17081. tmpOwner
  17082. Chair
  17083. Broadcast
  17084. IsFindTime
  17085.     1S2S3S4S5S6S7S8S9S10S11S12S13S14S
  17086. /wInviteeResponses?OpenForm&UNID=
  17087.     3S4S10S14S16S18S19S20S21S28S30S
  17088. StartDateTime
  17089. y with Text
  17090. EG Image
  17091. *.JPG
  17092. PCX Image
  17093. Display Invitee Responses
  17094. IncludeComment
  17095. IsFindTime
  17096.     1S2S3S4S5S6S
  17097.     Comments:
  17098. Comments
  17099. tmpComments
  17100.     [<BR>]File Attachments:
  17101. [<b>  </b>]Mail Options[<BR>]
  17102. Importance
  17103. High|1Normal|2Low|3
  17104.     Importance
  17105. DeliveryReport
  17106. On failure|BConfirm delivery|CTrace entire path|TNone|N
  17107.     DeliveryReport
  17108. DeliveryPriority
  17109. High|HNormal|NLow|L
  17110.     Delivery Priority
  17111.     0S0E
  17112.     Submit
  17113. IsFindTime
  17114.     1S2S
  17115. [<b>  </b>]Free Time Finder
  17116. [</b>
  17117. tmpGridField
  17118. tmpGridField
  17119. <BR>]
  17120. Recommended Times:
  17121. [</b>
  17122. tmpMessages
  17123. tmpMessages
  17124. tmpMeetingTimesCtrl
  17125. tmpMeetingTimesCtrl
  17126. </b>]
  17127. [<BR><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  17128. IsFindTime
  17129.     1S2S3S
  17130. parse the suggestion selection (which may have not been made)
  17131.     0RR1S
  17132. tmpList
  17133. tmpMeetingTimesCtrl
  17134.     0R1S2S8S
  17135. tmpIsEmptySelection
  17136. tmpList
  17137.     0R1S2S8S
  17138. tmpDateSugg
  17139. tmpDate
  17140. tmpDateRef
  17141. tmpList
  17142. tmpDate
  17143.     0R1S2S5S6S8S14S18S
  17144. tmpTimeSugg
  17145. tmpTime
  17146. tmpTimeRef
  17147. tmpList
  17148. tmpTime
  17149.     0R1S2S5S6S8S16S19S24S
  17150. tmpDurationSugg
  17151. tmpDuration
  17152. tmpDurationRef
  17153. tmpList
  17154. tmpDuration
  17155.     0R1S2S5S6S8S14S19S
  17156. update the real values
  17157.     0RR1S
  17158. StartDate
  17159. tmpIsEmptySelection
  17160. tmpMeetingTimesCtrl
  17161. tmpDate
  17162. tmpDateSugg
  17163.     0R1S2S3S4S6S7S8S9S10S11S13S15S
  17164. StartTime
  17165. tmpIsEmptySelection
  17166. tmpMeetingTimesCtrl
  17167. tmpTime
  17168. tmpTimeSugg
  17169.     0R1S2S3S4S6S7S8S9S10S11S13S15S
  17170. DurationMin
  17171. tmpIsEmptySelection
  17172. tmpMeetingTimesCtrl
  17173. tmpDuration
  17174. tmpDurationSugg
  17175.     0R1S2S3S4S6S7S8S9S10S11S13S15S
  17176. Subject
  17177. tmpSubject^
  17178.     0RR1S2S3S
  17179. tmpBody
  17180.     0R1S2S3S
  17181. SendTo
  17182. tmpSendTo2
  17183.     0R1S2S3S9S
  17184. CopyTo
  17185. tmpCopyTo2
  17186.     0R1S2S3S9S
  17187. tmpSendTo
  17188. tmpSendTo3
  17189.     0R1S2S3S9S
  17190. tmpCopyTo
  17191. tmpCopyTo3
  17192.     0R1S2S3S9S
  17193. tmpRoom
  17194. tmpRoom2^
  17195.     0R1S2S3S
  17196. BookFreeTime
  17197. tmpBookFreeTime
  17198.     0RR1S2S3S
  17199. OrgConfidential
  17200. tmpOrgConfidential
  17201.     0R1S2S3S
  17202. Broadcast
  17203. tmpBroadcast
  17204.     0R1S2S3S
  17205. Importance
  17206. tmpImportance
  17207.     0R1S2S3S
  17208. DeliveryPriority
  17209. tmpDeliveryPriority
  17210.     0R1S2S3S
  17211. DeliveryReport
  17212. tmpDeliveryReport
  17213.     0R1S2S3S
  17214. dispAppType
  17215. tmpDispAppType
  17216.     0RR1S2S3S
  17217. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn010.gif">
  17218. </TD><TD WIDTH="99%">Return with time and date selections</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  17219. IsFindTime
  17220.     1S2S3S
  17221. StartDate
  17222. tmpDateOrg
  17223.     0RR1S2S3S
  17224. StartTime
  17225. tmpTimeOrg
  17226.     0R1S2S3S
  17227. DurationMin
  17228. tmpDurationOrg
  17229.     0R1S2S3S
  17230. Subject
  17231. tmpSubject^
  17232.     0RR1S2S3S
  17233. tmpBody
  17234.     0R1S2S3S
  17235. SendTo
  17236. tmpSendTo2^
  17237.     0R1S2S3S
  17238. CopyTo
  17239. tmpCopyTo2^
  17240.     0R1S2S3S
  17241. tmpSendTo
  17242. tmpSendTo3^
  17243.     0R1S2S3S
  17244. tmpCopyTo
  17245. tmpCopyTo3^
  17246.     0R1S2S3S
  17247. tmpRoom
  17248. tmpRoom2^
  17249.     0R1S2S3S
  17250. BookFreeTime
  17251. tmpBookFreeTime
  17252.     0RR1S2S3S
  17253. OrgConfidential
  17254. tmpOrgConfidential
  17255.     0R1S2S3S
  17256. Broadcast
  17257. tmpBroadcast
  17258.     0R1S2S3S
  17259. Importance
  17260. tmpImportance
  17261.     0R1S2S3S
  17262. DeliveryPriority
  17263. tmpDeliveryPriority
  17264.     0R1S2S3S
  17265. DeliveryReport
  17266. tmpDeliveryReport
  17267.     0R1S2S3S
  17268. dispAppType
  17269. tmpDispAppType
  17270.     0RR1S2S3S
  17271. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn011.gif">
  17272. </TD><TD WIDTH="99%">Cancel time and date selections</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  17273. tmpChair
  17274. Chair
  17275.     1S2S6S
  17276. prep attendee list
  17277.     0RR1S
  17278. tmpST2
  17279. tmpSendTo2
  17280.     0R1S2S8S
  17281. tmpCT2
  17282. tmpCopyTo2
  17283.     0R1S2S8S
  17284. tmpSendToArg
  17285. tmpSendTo3^
  17286. tmpST2
  17287. tmpST2
  17288. tmpSendTo3
  17289.     0R1S2S5S6S11S13S14S15S21S24S
  17290. tmpCopyToArg
  17291. tmpCopyTo3^
  17292. tmpCT2
  17293. tmpCT2
  17294. tmpCopyTo3
  17295.     0R1S2S5S6S11S13S14S15S21S24S
  17296. parse the suggestion selection (which may not be made)
  17297.     0RR1S
  17298. tmpList
  17299. tmpMeetingTimesCtrl
  17300.     0R1S2S6S
  17301. tmpIsEmptySelection
  17302. tmpList
  17303.     0R1S2S8S
  17304. tmpDateSugg
  17305. tmpDate
  17306. tmpDateRef
  17307. tmpIsEmptySelection
  17308. tmpList
  17309. tmpDate
  17310.     0R1S2S5S6S7S8S9S10S12S18S22S
  17311. tmpTimeSugg
  17312. tmpTime
  17313. tmpTimeRef
  17314. tmpIsEmptySelection
  17315. tmpList
  17316. tmpTime
  17317.     0R1S2S5S6S7S8S9S10S12S20S23S28S
  17318. tmpDurationSugg
  17319. tmpDuration
  17320. tmpDurationRef
  17321. tmpIsEmptySelection
  17322. tmpList
  17323. tmpDuration
  17324.     0R1S2S5S6S7S8S9S10S12S18S23S
  17325. perform the freetime search
  17326.     0RR1S
  17327. tmpIsEmptySelection
  17328. tmpMeetingTimesCtrl
  17329. Domino
  17330. RefreshFreeTimeGrid
  17331. tmpGridField
  17332. tmpMeetingTimesCtrl
  17333. tmpMessages
  17334. tmpDate
  17335. tmpTime
  17336. tmpDuration
  17337. tmpGridFormat
  17338. tmpChair
  17339. tmpSendToArg
  17340. tmpCopyToArg
  17341. Domino
  17342. RefreshFreeTimeGrid
  17343. tmpGridField
  17344. tmpMeetingTimesCtrl
  17345. tmpMessages
  17346. tmpDateSugg
  17347. tmpTimeSugg
  17348. tmpDurationSugg
  17349. tmpGridFormat
  17350. tmpChair
  17351. tmpSendToArg
  17352. tmpCopyToArg
  17353.     0R1S3S4S5S6S7S8S10R14S16S18S20S22S24S26S28S30S32S34S36S39R43S45S47S49S51S53S55S57S59S61S63S65S67S
  17354. update the manual input fields
  17355.     0RR1S
  17356. tmpDate
  17357. tmpIsEmptySelection
  17358. tmpMeetingTimesCtrl
  17359. tmpDate
  17360. tmpDateSugg
  17361.     0R1S2S3S4S6S7S8S9S10S11S13S15S
  17362. tmpTime
  17363. tmpIsEmptySelection
  17364. tmpMeetingTimesCtrl
  17365. tmpTime
  17366. tmpTimeSugg
  17367.     0R1S2S3S4S6S7S8S9S10S11S13S15S
  17368. tmpDuration
  17369. tmpIsEmptySelection
  17370. tmpMeetingTimesCtrl
  17371. tmpDuration
  17372. tmpDurationSugg
  17373.     0R1S2S3S4S6S7S8S9S10S11S13S15S
  17374. remember what the new reference values so we can compare them with the suggestion selections
  17375.     0RR1S
  17376. tmpDateRef
  17377. tmpDate
  17378.     0R1S2S3S
  17379. tmpTimeRef
  17380. tmpTime
  17381.     0R1S2S3S
  17382. tmpDurationRef
  17383. tmpDuration
  17384.     0R1S2S3S
  17385. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn022.gif">
  17386. </TD><TD WIDTH="99%">Refresh the display with the current selections</TD></TR></TABLE><TABLE WIDTH="100%"><TR><TD>
  17387. tmpGridFormat
  17388. by day|0by person|1
  17389. </TD><TD></TABLE><TABLE WIDTH="100%"><TR VALIGN=bottom><TD WIDTH="1%">
  17390. tmpDate[<size=11>]
  17391. </TD><TD WIDTH="99%">Date</TD></TR><TR VALIGN=bottom><TD WIDTH="1%">
  17392. tmpTime[<size=11>]
  17393. </TD><TD WIDTH="99%">Time</TD></TR><TR VALIGN=bottom><TD WIDTH="1%">
  17394. tmpDuration/
  17395. 0:15|150:30|300:45|451:00|601:15|751:30|901:45|1052:00|1202:15|1352:30|1502:45|1653:00|1803:15|1953:30|2103:45|2254:00|2404:15|2554:30|2704:45|2855:00|3005:15|4155:30|4305:45|4456:00|4606:15|4756:30|4906:45|5057:00|5207:15|5357:30|5507:45|5658:00|5808:15|5958:30|6108:45|6259:00|6409:15|6559:30|6709:45|68510:00|70010:15|71510:30|73010:45|74511:00|76011:15|77511:30|79011:45|805
  17396. </TD><TD WIDTH="99%">Duration ( hours : minutes )</TD></TR></TABLE>]
  17397. [<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0><TR><TD><IMG SRC="/icons/ftb4.gif"><IMG SRC="/icons/ftbv.gif"></TD><TD> = Busy   </TD><TD><IMG SRC="/icons/ftf4.gif"><IMG SRC="/icons/ftbv.gif"></TD><TD> = Free   </TD><TD><IMG SRC="/icons/ftf4a.gif"><IMG SRC="/icons/ftbv.gif"></TD><TD> = OK   </TD><TD><IMG SRC="/icons/ftb4a.gif"><IMG SRC="/icons/ftbv.gif"></TD><TD> = Conflict   </TD><TD><IMG SRC="/icons/ftn4.gif"><IMG SRC="/icons/ftbv.gif"></TD><TD> = No Information</TD></TR><TR><TD><IMG SRC="/icons/ftbh.gif"></TD><TD></TD><TD><IMG SRC="/icons/ftbh.gif"></TD><TD></TD><TD><IMG SRC="/icons/ftbh.gif"></TD><TD></TD><TD><IMG SRC="/icons/ftbh.gif"></TD><TD></TD><TD><IMG SRC="/icons/ftbh.gif"></TD></TR></TABLE><BR>]
  17398. [<b>  </b>]Tips
  17399.     Click on 
  17400.     the "
  17401.     Return with ...
  17402.     button to save the time, date and duration selections to the Calendar Entry currently being editted.
  17403.     Click on the "
  17404.     Cancel time ...
  17405.     " button to return to the Calendar Entry without the time, date and duration selections.
  17406.     Click on the "
  17407.     Refresh ...
  17408.     " button to update the free time grid and suggestion list according to the current time, date and duration selections.
  17409.     Select "
  17410.     by day
  17411.     " to display an entire week in the free time grid.
  17412.     Select "
  17413.     by person
  17414.     " to display each attendee's free time schedule in the grid.
  17415.     When there is a schedule conflict the "
  17416.     Recommended Times
  17417.     " list provides meeting times 
  17418.     suggestions
  17419.     . Select a suggested meeting time, or modify the meeting's date, time and duration from the other controls. A recommended meeting time suggestion and changes to the date, time, or duration controls can be combined.
  17420.     Hidden w/ HTML tag in help description field:
  17421. IsFindTime[<TYPE=hidden >]
  17422. HasFoundTime[<TYPE=hidden >]
  17423. IsAddressing[<TYPE=hidden >]
  17424. IsNewDoc[<TYPE=hidden >]
  17425. Chair[<TYPE=hidden >]
  17426. tmpOwner[<TYPE=hidden >]
  17427. AppointmentType[<TYPE=hidden >]
  17428. tmpDispAppType[<TYPE=hidden >]
  17429. tmpSubject[<TYPE=hidden >]
  17430. tmpBody[<TYPE=hidden >]
  17431. tmpSendTo2[<TYPE=hidden >]
  17432. tmpCopyTo2[<TYPE=hidden >]
  17433. tmpSendTo3[<TYPE=hidden >]
  17434. tmpCopyTo3[<TYPE=hidden >]
  17435. tmpRoom2[<TYPE=hidden >]
  17436. tmpDateOrg[<TYPE=hidden >]
  17437. tmpTimeOrg[<TYPE=hidden >]
  17438. tmpDurationOrg[<TYPE=hidden >]
  17439. tmpBookFreeTime[<TYPE=hidden >]
  17440. tmpOrgConfidential[<TYPE=hidden >]
  17441. tmpBroadcast[<TYPE=hidden >]
  17442. tmpImportance[<TYPE=hidden >]
  17443. tmpDeliveryPriority[<TYPE=hidden >]
  17444. tmpDeliveryReport[<TYPE=hidden >]
  17445. tmpDateRef[<TYPE=hidden >]
  17446. tmpTimeRef[<TYPE=hidden >]
  17447. tmpDurationRef[<TYPE=hidden >]
  17448. _Forward
  17449. _Move to Folder...
  17450. _Edit Document
  17451. Attendees
  17452. Principal
  17453. RepeatIds
  17454.     4S5S6S7R11S12S13S14S15S17S18S
  17455. Categori_zep
  17456. Send Docu_ment
  17457. _Remove from Folder...
  17458. Meeting
  17459.     1S2S8S12S14S
  17460. path"
  17461. /Appointment?OpenForm
  17462.     0R3S4S5S6S
  17463. Addressi
  17464. OldSubject
  17465. Subject
  17466. Subject
  17467. IN TRASH - TEMPORARY DOCUMENT
  17468. Subject
  17469.     0R1S2S3S
  17470. IsAddressing
  17471.     0R1S
  17472.     0R1S10S14S16S23S
  17473.     0RR4S
  17474. path"
  17475. /wAddressInvite?OpenForm&
  17476.     0R3S4S5S6S7S8S15S17S18Sr
  17477. AppointmentType
  17478. IsFindTime
  17479. tmpOwner
  17480. Chair
  17481.     1S2S3S4S5S6S7S8S9S10S
  17482. Find Free Time(
  17483. tmpChair
  17484. Chair
  17485.     1S2S6S
  17486. Domino
  17487. RefreshFreeTimeGrid
  17488. tmpGridField
  17489. tmpMeetingTimesCtrl
  17490. tmpMessages
  17491. StartDate
  17492. StartTime
  17493. DurationMin
  17494. tmpChair
  17495. SendTo
  17496. tmpSendTo
  17497. CopyTo
  17498. tmpCopyTo
  17499.     0R4S6S8S10S12S14S16S18S20S22S24S28S
  17500. IsFindTime
  17501.     0RR1S2S3S
  17502. HasFoundTime
  17503.     0R1S2S3S
  17504. tmpGridFormat
  17505.     0R1S2S3S
  17506. tmpDate
  17507. StartDate
  17508.     0RR1S2S3S
  17509. tmpTime
  17510. StartTime
  17511.     0R1S2S3S
  17512. tmpDuration
  17513. DurationMin
  17514.     0R1S2S3S
  17515. tmpDateRef
  17516. StartDate
  17517.     0RR1S2S3S
  17518. tmpTimeRef
  17519. StartTime
  17520.     0R1S2S3S
  17521. tmpDurationRef
  17522. DurationMin
  17523.     0R1S2S3S
  17524. tmpSendTo2
  17525. SendTo^
  17526.     0RR1S2S3S
  17527. tmpCopyTo2
  17528. CopyTo^
  17529.     0R1S2S3S
  17530. tmpSendTo3
  17531. tmpSendTo
  17532.     0R1S2S3S
  17533. tmpCopyTo3
  17534. tmpCopyTo
  17535.     0R1S2S3S
  17536. tmpDateOrg
  17537. StartDate
  17538.     0RR1S2S3S
  17539. tmpTimeOrg
  17540. StartTime
  17541.     0R1S2S3S
  17542. tmpDurationOrg
  17543. DurationMin
  17544.     0R1S2S3S
  17545. tmpSubject
  17546. Subject
  17547.     0R1S2S3S
  17548. tmpBody
  17549.     0R1S2S3S
  17550. tmpRoom2
  17551. tmpRoom
  17552.     0R1S2S3S
  17553. tmpBookFreeTime
  17554. BookFreeTime
  17555.     0R1S2S3S
  17556. tmpOrgConfidential
  17557. OrgConfidential
  17558.     0R1S2S3S
  17559. tmpBroadcast
  17560. Broadcast
  17561.     0R1S2S3S
  17562. tmpImportance
  17563. Importance
  17564.     0R1S2S3S
  17565. tmpDeliveryPriority
  17566. DeliveryPriority
  17567.     0R1S2S3S
  17568. tmpDeliveryReport
  17569. DeliveryReport
  17570.     0R1S2S3S
  17571.     0RRr
  17572. AppointmentType
  17573. IsFindTime
  17574. tmpOwner
  17575. Chair
  17576.     1S2S3S4S5S6S7S8S9S10S
  17577. Edit 
  17578.     0S0E
  17579. tmpOwner
  17580. Chair
  17581.     1S2S
  17582. Trashe
  17583.     1S2S8S12S14S
  17584. /wCommand?OpenAgent&ToTrash=
  17585. &From="
  17586.     0R1S2S3S4S11S13S15S16S
  17587. Path_Info
  17588. Path_Info
  17589.     0R1S2S6S10S11S15S
  17590. view1
  17591.     0R1S2S3S10S14S18S21S
  17592. view2
  17593. view1
  17594. view1
  17595. view1
  17596.     0R1S2S3S10S14S18S21S
  17597. path"
  17598. view2
  17599.     0RR3S4S5S6S7S8S
  17600.     1S2S8S12S14S
  17601. /wFolders?OpenForm&UNID=
  17602. &View="
  17603.     0R1S2S3S4S11S13S15S16S
  17604. Path_Info
  17605. Path_Info
  17606.     0R1S2S6S10S11S15S
  17607. view1
  17608.     0R1S2S3S10S14S18S21S
  17609. view2
  17610. view1
  17611. view1
  17612. view1
  17613.     0R1S2S3S10S14S18S21S
  17614. path"
  17615. view2
  17616.     0RR3S4S5S6S7S8S
  17617. In Box*
  17618. ($InBox)
  17619. IsFindTime
  17620.     1S2S
  17621. Calendar
  17622.     1S2S8S12S14S
  17623. &Grid=
  17624. CalendarProfile
  17625. wCalGridType
  17626.     0R1S2S3S4S8S
  17627. path"
  17628. /($Calendar)?OpenView
  17629. args"
  17630.     0R3S4S5S6S7S8S
  17631. IsFindTime
  17632.     1S2S
  17633. Meetings.
  17634. ($Meetings)
  17635. IsFindTime
  17636.     1S2S
  17637. All Views
  17638. IsFindTime
  17639.     1S2S
  17640. O=Lotus Notes
  17641. O=Lotus Notes
  17642. PURSAFO
  17643. |.:#U
  17644. O=Lotus Notes
  17645. CN=Lotus Notes Template Development/O=Lotus Notes
  17646. PURSAFO
  17647. Fde!f^^
  17648. CompletedOn
  17649. EndDate
  17650. CalendarDate_Time___Start
  17651. CalendarDate_Time___End
  17652. CalendarDates
  17653. CalendarDate
  17654. RepeatDates
  17655. CalendarDateTime
  17656. EndDateTime
  17657. $NoPurge
  17658. EndTime
  17659. StartEndTime
  17660. StartDateTime
  17661. $FormPublicAccess
  17662. TimeRange
  17663. WebCalEntryTypeChanged
  17664. ReminderTime
  17665. $TITLE
  17666. $INFO
  17667. $WINDOWTITLE
  17668. $Script
  17669. $$Script_O
  17670. $$ScriptName
  17671. $$FormScript
  17672. $$$FormScript_O
  17673. _ViewIcon
  17674. Duration
  17675. $BODY
  17676. $ACTIONS
  17677. $PublicAccess
  17678. Times New Roman
  17679. VersionOpt|
  17680.     6S7S9S14S
  17681. $VersionOpt
  17682.     0R1S2S3S
  17683. SavedOnce
  17684.     0R1S2S3S
  17685. PostedDate(
  17686.     0R1S2S3S
  17687. DeliveredDate
  17688.     0R1S2S3S
  17689. $AutoEditMode
  17690.     0R1S2S3S
  17691. MailSaveOptions
  17692.     0R1S2S3S
  17693. VersionOpt
  17694.     0R4S
  17695. New Memo
  17696. Subject
  17697. Subject
  17698. Subject
  17699.     4S6S12S13S14S15S17S21S23S25S26S28S
  17700. '++LotusScript Development Environment:2:5:(Options):0:74
  17701. Option Public
  17702. '++LotusScript Development Environment:2:5:(Forward):0:1
  17703. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17704.  Memo'++LotusScript Development Environment:2:5:(Options):0:66
  17705. '++LotusScript Development Environment:2:5:(Forward):0:1
  17706. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  17707. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  17708. Declare Sub Postmodechange(Source As Notesuidocument)
  17709. Declare Sub Postopen(Source As Notesuidocument)
  17710. Declare Sub Initialize
  17711. '++LotusScript Development Environment:2:5:(Declarations):0:2
  17712. '++LotusScript Development Environment:2:2:BindEvents:1:129
  17713. Private Sub BindEvents(Byval Objectname_ As String)
  17714.      Static Source As NOTESUIDOCUMENT
  17715.      Set Source = Bind(Objectname_)
  17716.      On Event Querysave From Source Call Querysave
  17717.      On Event Queryclose From Source Call Queryclose
  17718.      On Event Postmodechange From Source Call Postmodechange
  17719.      On Event Postopen From Source Call Postopen
  17720. End Sub
  17721. '++LotusScript Development Environment:2:2:Querysave:1:12
  17722. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  17723.      
  17724. End Sub
  17725. '++LotusScript Development Environment:2:2:Queryclose:1:12
  17726. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  17727.      
  17728. End Sub
  17729. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  17730. Sub Postmodechange(Source As Notesuidocument)
  17731.      
  17732. End Sub
  17733. '++LotusScript Development Environment:2:2:Postopen:1:12
  17734. Sub Postopen(Source As Notesuidocument)
  17735.      
  17736. End Sub
  17737. '++LotusScript Development Environment:2:2:Initialize:1:10
  17738. Sub Initialize
  17739.      
  17740. End Sub
  17741.     Hidden: 
  17742. tmpFrom
  17743. CalendarProfile
  17744. Owner
  17745. Principal
  17746.     0S0E
  17747.     0S0E
  17748. Encrypt
  17749. MailSaveOptions
  17750.     1S2S3S
  17751. MailSaveOptions
  17752. DefaultMailSaveOptions
  17753. $KeepPrivate
  17754. $KeepPrivate
  17755. $KeepPrivate
  17756.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  17757. wMemo
  17758. $$QuerySaveAgent
  17759. Path_Info
  17760. Path_Info
  17761. MailOptions
  17762. SaveOptions
  17763. OldSubject
  17764. [<b> 
  17765.  
  17766. </b>]
  17767. [<b>  </b>]-
  17768. [<b>  </b>]From:
  17769. [<b> </b>]
  17770. Principal
  17771. Principal
  17772.     1S2S5S6S8S10S
  17773.     0R1S2S8S
  17774.     0R1S2S5S6S8S14S18S
  17775.     0R1S2S5S6S8S14S18S
  17776. SentBy
  17777.     0R1S2S5S6S8S10S11S12S13S14S
  17778. SentBy
  17779. FromDomain
  17780. FromDomain
  17781. FromDomain
  17782. FromDomain
  17783.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  17784. FromName
  17785. Principal
  17786. Principal
  17787.     0RR1S2S9S11S15S
  17788. FromStops
  17789.     0R1S2S6S
  17790. FromName
  17791. FromStops
  17792. FromStops
  17793. FromStops
  17794.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_NoLogo
  17795. PostedDateh
  17796. PostedDate
  17797.     7S9S
  17798. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  17799. CalendarProfile
  17800. Owner
  17801.     6S9S10S
  17802.     The owner of this mail file is "
  17803. tmpCurOwner
  17804. CalendarProfile
  17805. Owner
  17806.     1S2S6S
  17807. tmpCurOwner
  17808. (set this value from the Preferences page)
  17809. tmpCurOwner
  17810.     0R1S3S4S6S8S
  17811. tmpCurrentOwner
  17812.     You are logged in as "
  17813. tmpCurrentUser
  17814. $HideMailHeader
  17815. Principal
  17816. Principal
  17817. Principal
  17818. Principal
  17819. Principal
  17820. tmpAddressIsOn
  17821.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S55S56S57S58S
  17822.     Sent by:
  17823. FromDomain
  17824. FromDomain
  17825. FromDomain
  17826. FromDomain
  17827.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  17828. FromName
  17829.     0RR1S2S6S
  17830. FromStops
  17831.     0R1S2S6S
  17832. FromName
  17833. FromStops
  17834. FromStops
  17835. FromStops
  17836.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  17837.     0S0E
  17838.     Submit
  17839.     [<b>     </b>]
  17840. CalendarProfile
  17841. wDefaultMailOpt
  17842. tmpSendOptions
  17843. Send Only|1Send and Save|2Save as Draft|3
  17844. ReplyDate
  17845. ReplyTo
  17846. $HideMailHeader
  17847.     2S3S4S5S6S7S9S10S
  17848. Please respond
  17849. ReplyTo
  17850. ReplyTo
  17851. ReplyDate
  17852. ReplyDate
  17853.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  17854. CalendarProfile
  17855. wEnableNABs
  17856. tmpAddressIsOn
  17857.     4S6S7S8S9S10S11S
  17858. CalendarProfile
  17859. wEnableNABs
  17860.     1S6S8S9S11S16S
  17861. CalendarProfile
  17862. wNAB1
  17863.     0RR1S2S6S
  17864. CalendarProfile
  17865. wNAB2
  17866.     0R1S2S6S
  17867. CalendarProfile
  17868. wNAB3
  17869.     0R1S2S6S
  17870. CalendarProfile
  17871. wNAB4
  17872.     0R1S2S6S
  17873. NABurl1
  17874. CalendarProfile
  17875. wNABurl1
  17876.     0R1S2S6S
  17877. NABurl2
  17878. CalendarProfile
  17879. wNABurl2
  17880.     0R1S2S6S
  17881. NABurl3
  17882. CalendarProfile
  17883. wNABurl3
  17884.     0R1S2S6S
  17885. NABurl4
  17886. CalendarProfile
  17887. wNABurl4
  17888.     0R1S2S6S
  17889. anchorHead
  17890. <a href="
  17891.     0RR1S2S
  17892. anchorMid
  17893. "><font size=2><b>
  17894.     0R1S2S
  17895. anchorTail
  17896. </b></font></a>
  17897.     0R1S2S
  17898. spaces
  17899.     
  17900.     0R1S2S
  17901. Link1
  17902. anchorHead
  17903. NABurl1
  17904. anchorMid
  17905. NAB1"
  17906. anchorTail"
  17907. spaces"
  17908.     0RR1S2S3S4S5S6S7S8S9S10S11S12S
  17909. Link2
  17910. anchorHead
  17911. NABurl2
  17912. anchorMid
  17913. NAB2"
  17914. anchorTail"
  17915. spaces"
  17916.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  17917. Link3
  17918. anchorHead
  17919. NABurl3
  17920. anchorMid
  17921. NAB3"
  17922. anchorTail"
  17923. spaces"
  17924.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  17925. Link4
  17926. anchorHead
  17927. NABurl4
  17928. anchorMid
  17929. NAB4"
  17930. anchorTail"
  17931.     0R1S2S3S4S5S6S7S8S9S10S
  17932. Link1
  17933. Link2
  17934. Link3
  17935. Link4
  17936.     0RR1S2S3S4S5S6S7S8S9S10S
  17937. tmpCustomAddressLinks
  17938. $HideMailHeader
  17939.     0S0E
  17940. SendTo[<size=58>]
  17941. CopyTo[<size=58>]
  17942. DeliveredDate
  17943. BlindCopyTo
  17944. (bcc: 
  17945. BlindCopyTo
  17946.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  17947.     bcc:
  17948. BlindCopyTo[<size=58>]
  17949.     Subject:
  17950. Subject[<size=58>]
  17951. Body[<ROWS="10" COLS="60"  WRAP=VIRTUAL>]
  17952.     [<BR>]File Attachments:
  17953. tmpAddressIsOn
  17954.     1S2S
  17955. [<b>  </b>]Mail Options[<BR>]
  17956. Importance
  17957. High|1Normal|2Low|3
  17958.     Importance
  17959. DeliveryReport
  17960. On failure|BConfirm delivery|CTrace entire path|TNone|N
  17961.     DeliveryReport
  17962. DeliveryPriority
  17963. High|HNormal|NLow|L
  17964.     Delivery Priority
  17965.     0S0E
  17966.     Submit
  17967.     [<BR><BR><BR>]
  17968. [<b>  </b>]Tips
  17969.     Click on the 
  17970.     Address
  17971.      button to search through your address books.
  17972.     The 
  17973.     Trash
  17974.      button will move this document into the Trash folder.
  17975.     Some web browsers do not support adding 
  17976.     file attachments
  17977.      to documents. In such cases, the file attachment control may appear as an edit control. Any text entered in that edit control will not be included in your mail message.
  17978. Hidden w/ HTML tag in help description field:
  17979. Path_Info
  17980. tmpPath_Info[<TYPE=hidden >]
  17981. Edit Document
  17982. Memo&
  17983. Edit 
  17984.     0S0E
  17985. Reply
  17986. Reply
  17987. Address
  17988. OldSubject
  17989. Subject
  17990. Subject
  17991. IN TRASH - TEMPORARY DOCUMENT
  17992. Subject
  17993.     0R1S2S3S
  17994. tmpSendOptions
  17995.     0R1S
  17996.     0R1S10S14S16S23S
  17997.     0R4S
  17998. path"
  17999. /wAddress?OpenForm&
  18000.     0R3S4S5S6S7S8S15S17S18S
  18001. TrashP
  18002.     1S2S8S12S14S
  18003. /wCommand?OpenAgent&ToTrash=
  18004. &From="
  18005.     0R1S2S3S4S11S13S15S16S
  18006. Path_Info
  18007. Path_Info
  18008.     0R1S2S6S10S11S15S
  18009. view1
  18010.     0R1S2S3S10S14S18S21S
  18011. view2
  18012. view1
  18013. view1
  18014. view1
  18015.     0R1S2S3S10S14S18S21S
  18016. path"
  18017. view2
  18018.     0RR3S4S5S6S7S8S.
  18019. tmpAddressIsOn
  18020.     1S2S
  18021.     1S2S8S12S14S
  18022. /wFolders?OpenForm&UNID=
  18023. &View="
  18024.     0R1S2S3S4S11S13S15S16S
  18025. Path_Info
  18026. Path_Info
  18027.     0R1S2S6S10S11S15S
  18028. view1
  18029.     0R1S2S3S10S14S18S21S
  18030. view2
  18031. view1
  18032. view1
  18033. view1
  18034.     0R1S2S3S10S14S18S21S
  18035. path"
  18036. view2
  18037.     0RR3S4S5S6S7S8S
  18038. In Box*
  18039. ($InBox)
  18040. tmpAddressIsOn
  18041.     1S2S
  18042. Calendar
  18043.     1S2S8S12S14S
  18044. path"
  18045. /($Calendar)?OpenView&Grid=
  18046. CalendarProfile
  18047. wCalGridType
  18048.     0R3S4S5S6S7S8S12S.
  18049. tmpAddressIsOn
  18050.     1S2S
  18051. Meetings.
  18052. ($Meetings)
  18053. tmpAddressIsOn
  18054.     1S2S
  18055. To Do
  18056. ($ToDo)
  18057. tmpAddressIsOn
  18058.     1S2S
  18059. All Views
  18060. tmpAddressIsOn
  18061.     1S2S
  18062. _Move To Folder...
  18063. _Forward
  18064. _Remove From Folder...
  18065. Categori_ze
  18066. SSend
  18067. O=Lotus Notes
  18068. O=Lotus Notes
  18069. PURSAFO
  18070. |.:#U
  18071. O=Lotus Notes
  18072. CN=Lotus Notes Template Development/O=Lotus Notes
  18073. PURSAFO
  18074. Fde!f^^
  18075. $$FormPostOpenAction
  18076. $TypeIcon
  18077. ExpireDate
  18078. ReplyDate
  18079. ComposedDate
  18080. $SCRIPTOBJ_25
  18081. $TITLE
  18082. $INFO
  18083. $WINDOWTITLE
  18084. $Script
  18085. $$Script_O
  18086. $$ScriptName
  18087. $$FormScript
  18088. $$$FormScript_O
  18089. $BODY
  18090. $ACTIONS
  18091. 240EF0A853564D840009D6BA233719491EA45AEDDCEA2E8B54BB76CCC29BC123
  18092. (web wAddress)wAddressCDn
  18093. CN=Harry Peebles/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################################################
  18094. Periodic Archive
  18095. 1SfL3
  18096. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################################################
  18097. Mail Tools\Create Stationery... | CreateStationery303
  18098. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  18099. ###################
  18100. _Calendar Tools\Delete Repeating Appointment(s)... | DeleteRepeatingFormula
  18101. E4fL3
  18102. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  18103. ########################################################
  18104. 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#########################################################
  18105. Update Tasks
  18106. 1SfL3
  18107. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  18108. ##########################################################
  18109. _Calendar Tools\Open Another Calendar... | Open Another Calendar
  18110. E41f3
  18111. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  18112. ###########################################
  18113. ProcessOutOfOffice
  18114. 1SfL3
  18115. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################################
  18116. Mail Tools\Choose Letterhead... | Select Letterhead303
  18117. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes1
  18118. ##################
  18119. VersionOpt|
  18120.     6S7S9S14S
  18121. $VersionOpt
  18122.     0R1S2S3S
  18123. SavedOnce
  18124.     0R1S2S3S
  18125. PostedDate(
  18126.     0R1S2S3S
  18127. DeliveredDate
  18128.     0R1S2S3S
  18129. $AutoEditMode
  18130.     0R1S2S3S
  18131. MailSaveOptions
  18132.     0R1S2S3S
  18133. VersionOpt
  18134.     0R4S
  18135. New Phone Message
  18136. Subject
  18137. Subject
  18138. Subject
  18139.     4S6S12S13S14S15S17S21S23S25S26S28S
  18140. Times New Roman
  18141. '++LotusScript Development Environment:2:5:(Options):0:74
  18142. '++LotusScript Development Environment:2:5:(Forward):0:1
  18143. '++LotusScript Development Environment:2:5:(Declarations):0:2
  18144.  Phone Message'++LotusScript Development Environment:2:5:(Options):0:66
  18145. '++LotusScript Development Environment:2:5:(Forward):0:1
  18146. Declare Sub Postopen(Source As Notesuidocument)
  18147. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  18148. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  18149. Declare Sub Postmodechange(Source As Notesuidocument)
  18150. '++LotusScript Development Environment:2:5:(Declarations):0:2
  18151. '++LotusScript Development Environment:2:2:BindEvents:1:129
  18152. Private Sub BindEvents(Byval Objectname_ As String)
  18153.      Static Source As NOTESUIDOCUMENT
  18154.      Set Source = Bind(Objectname_)
  18155.      On Event Postopen From Source Call Postopen
  18156.      On Event Querysave From Source Call Querysave
  18157.      On Event Queryclose From Source Call Queryclose
  18158.      On Event Postmodechange From Source Call Postmodechange
  18159. End Sub
  18160. '++LotusScript Development Environment:2:2:Postopen:1:12
  18161. Sub Postopen(Source As Notesuidocument)
  18162.      
  18163. End Sub
  18164. '++LotusScript Development Environment:2:2:Querysave:1:12
  18165. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  18166.      
  18167. End Sub
  18168. '++LotusScript Development Environment:2:2:Queryclose:1:12
  18169. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  18170.      
  18171. End Sub
  18172. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  18173. Sub Postmodechange(Source As Notesuidocument)
  18174.      
  18175. End Sub
  18176.     Always Hidden: 
  18177. Principal
  18178. Principal
  18179.     3S4S6S8S
  18180. FromPerson memo is from.
  18181. tmpFrom
  18182. CalendarProfile
  18183. Owner
  18184. Principal
  18185.     0S0E
  18186.     0S0E
  18187. Encrypt
  18188.     0S0E
  18189. DefaultMailSaveOptions
  18190. $KeepPrivate
  18191. $KeepPrivate
  18192. $KeepPrivate
  18193.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  18194. Path_Info
  18195. Path_Info
  18196. MailOptions
  18197. SaveOptions
  18198. wMemo
  18199. $$QuerySaveAgent
  18200. OldSubject
  18201. [<b>  </b>]
  18202. Phone Message[<b>  </b>]-[<b>  </b>]From:[<b> </b>]
  18203. Principal
  18204. Principal
  18205. FromDomain
  18206. FromDomain
  18207. FromDomain
  18208. FromDomain
  18209.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  18210. FromName
  18211. Principal
  18212. Principal
  18213.     0RR1S2S9S11S15S
  18214. FromStops
  18215.     0R1S2S6S
  18216. FromName
  18217. FromStops
  18218. FromStops
  18219. FromStops
  18220.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  18221. PostedDateh
  18222. PostedDate
  18223.     7S9S
  18224. tmpDisplayDateTime/date memo was created or mailed.
  18225. CalendarProfile
  18226. Owner
  18227.     6S9S10S
  18228.     The owner of this mail file is "
  18229. tmpCurOwner
  18230. CalendarProfile
  18231. Owner
  18232.     1S2S6S
  18233. tmpCurOwner
  18234. (set this value from the Preferences page)
  18235. tmpCurOwner
  18236.     0R1S3S4S6S8S
  18237. tmpCurrentOwner
  18238.     You are logged in as "
  18239. tmpCurrentUser
  18240. $HideMailHeader
  18241. Principal
  18242. Principal
  18243. Principal
  18244. Principal
  18245. Principal
  18246.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  18247.     Sent by:
  18248. FromDomain
  18249. FromDomain
  18250. FromDomain
  18251. FromDomain
  18252.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  18253. FromName
  18254.     0RR1S2S6S
  18255. FromStops
  18256.     0R1S2S6S
  18257. FromName
  18258. FromStops
  18259. FromStops
  18260. FromStops
  18261.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  18262.     0S0E
  18263.     Submit
  18264.     [<b>     </b>]
  18265. CalendarProfile
  18266. wDefaultMailOpt
  18267. tmpSendOptions
  18268. Send Only|1Send and Save|2Save as Draft|3
  18269. ReplyDate
  18270. ReplyTo
  18271.     1S2S3S4S5S6S
  18272. Please respond
  18273. ReplyTo
  18274. ReplyTo
  18275. ReplyDate
  18276. ReplyDate
  18277.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  18278. CalendarProfile
  18279. wEnableNABs
  18280.     4S6S7S
  18281. CalendarProfile
  18282. wEnableNABs
  18283.     1S6S8S9S11S16S
  18284. CalendarProfile
  18285. wNAB1
  18286.     0RR1S2S6S
  18287. CalendarProfile
  18288. wNAB2
  18289.     0R1S2S6S
  18290. CalendarProfile
  18291. wNAB3
  18292.     0R1S2S6S
  18293. CalendarProfile
  18294. wNAB4
  18295.     0R1S2S6S
  18296. NABurl1
  18297. CalendarProfile
  18298. wNABurl1
  18299.     0R1S2S6S
  18300. NABurl2
  18301. CalendarProfile
  18302. wNABurl2
  18303.     0R1S2S6S
  18304. NABurl3
  18305. CalendarProfile
  18306. wNABurl3
  18307.     0R1S2S6S
  18308. NABurl4
  18309. CalendarProfile
  18310. wNABurl4
  18311.     0R1S2S6S
  18312. anchorHead
  18313. <a href="
  18314.     0RR1S2S
  18315. anchorMid
  18316. "><font size=2><b>
  18317.     0R1S2S
  18318. anchorTail
  18319. </b></font></a>
  18320.     0R1S2S
  18321. spaces
  18322.     
  18323.     0R1S2S
  18324. Link1
  18325. anchorHead
  18326. NABurl1
  18327. anchorMid
  18328. NAB1"
  18329. anchorTail"
  18330. spaces"
  18331.     0RR1S2S3S4S5S6S7S8S9S10S11S12S
  18332. Link2
  18333. anchorHead
  18334. NABurl2
  18335. anchorMid
  18336. NAB2"
  18337. anchorTail"
  18338. spaces"
  18339.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  18340. Link3
  18341. anchorHead
  18342. NABurl3
  18343. anchorMid
  18344. NAB3"
  18345. anchorTail"
  18346. spaces"
  18347.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  18348. Link4
  18349. anchorHead
  18350. NABurl4
  18351. anchorMid
  18352. NAB4"
  18353. anchorTail"
  18354.     0R1S2S3S4S5S6S7S8S9S10S
  18355. Link1
  18356. Link2
  18357. Link3
  18358. Link4
  18359.     0RR1S2S3S4S5S6S7S8S9S10S
  18360. tmpCustomAddressLinks
  18361. SendTo}
  18362.     0S0E
  18363. SendTo[<size=58>]
  18364. CopyTo}
  18365.     0S0E
  18366. CopyTo[<size=58>]
  18367. DeliveredDate
  18368. BlindCopyTo
  18369. (bcc: 
  18370. BlindCopyTo
  18371.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  18372.     bcc:
  18373. BlindCopyTo
  18374.     0S0E
  18375. BlindCopyTo[<size=58>]
  18376. [<b>  </b>]
  18377. While You Were Out
  18378. Contact:
  18379. PhoneCaller[<size=58>]
  18380. CompanyName[<size=58>]
  18381. Phone:
  18382. PhoneNumber[<size=58>]
  18383. FAXNumber[<size=58>]
  18384. PhoneReason    
  18385. Telephoned|TPlease Call|PWill Call Again|WReturned Call|RWas In|IWill Return|LLeft Package|KPlease See Me|MUrgent|N
  18386.     Message:
  18387. Body[<ROWS="5" COLS="60"  WRAP=VIRTUAL>]
  18388. Phone Message from 
  18389. PhoneCaller
  18390.     1S2S
  18391. Subject
  18392.     [<BR>]File Attachments:
  18393.     0S0E
  18394. [<b>  </b>]Mail Options[<BR>]
  18395. Importance
  18396. High|1Normal|2Low|3
  18397.     Importance
  18398. DeliveryReport
  18399. On failure|BConfirm delivery|CTrace entire path|TNone|N
  18400.     DeliveryReport
  18401. DeliveryPriority
  18402. High|HNormal|NLow|L
  18403.     Delivery Priority
  18404.     0S0E
  18405.     Submit
  18406.     [<BR><BR><BR>]
  18407. [<b>  </b>]Tips
  18408.     Click on the 
  18409.     Address
  18410.      button to search through your address books.
  18411.     The 
  18412.     Trash
  18413.      button will move this document into the Trash folder.
  18414.     Some web browsers do not support adding 
  18415.     file attachments
  18416.      to documents. In such cases, the file attachment control may appear as an edit control. Any text entered in that edit control will not be included in your mail message.
  18417.     Hidden w/ HTML tag in help description field:
  18418. Path_Info
  18419. tmpPath_Info[<TYPE=hidden >]
  18420. Edit Document
  18421. Edit 
  18422.     0S0E
  18423. Reply0(
  18424. Reply
  18425. Address
  18426. OldSubject
  18427. Subject
  18428. Subject
  18429. IN TRASH - TEMPORARY DOCUMENT
  18430. Subject
  18431.     0R1S2S3S
  18432. tmpSendOptions
  18433.     0R1S
  18434.     0R1S10S14S16S23S
  18435.     0R4S
  18436. path"
  18437. /wAddress?OpenForm&
  18438.     0R3S4S5S6S7S8S15S17S18S
  18439. Trash
  18440.     1S2S8S12S14S
  18441. /wCommand?OpenAgent&ToTrash=
  18442. &From="
  18443.     0R1S2S3S4S11S13S15S16S
  18444. Path_Info
  18445. Path_Info
  18446.     0R1S2S6S10S11S15S
  18447. view1
  18448.     0R1S2S3S10S14S18S21S
  18449. view2
  18450. view1
  18451. view1
  18452. view1
  18453.     0R1S2S3S10S14S18S21S
  18454. path"
  18455. view2
  18456.     0RR3S4S5S6S7S8S
  18457.     1S2S8S12S14S
  18458. /wFolders?OpenForm&UNID=
  18459. &View="
  18460.     0R1S2S3S4S11S13S15S16S
  18461. Path_Info
  18462. Path_Info
  18463.     0R1S2S6S10S11S15S
  18464. view1
  18465.     0R1S2S3S10S14S18S21S
  18466. view2
  18467. view1
  18468. view1
  18469. view1
  18470.     0R1S2S3S10S14S18S21S
  18471. path"
  18472. view2
  18473.     0RR3S4S5S6S7S8S
  18474. _Move To Folder...    
  18475. _Forward
  18476. _Remove From Folder...
  18477. Categori_ze
  18478. SSend
  18479. In Box*
  18480. ($Inbox)
  18481. Calendar
  18482.     1S2S8S12S14S
  18483. path"
  18484. /($Calendar)?OpenView&Grid=
  18485. CalendarProfile
  18486. wCalGridType
  18487.     0R3S4S5S6S7S8S12S
  18488. Meetings.
  18489. ($Meetings)
  18490. To Do
  18491. ($ToDo)
  18492. All ViewsS"
  18493. O=Lotus Notes
  18494. O=Lotus Notes
  18495. PURSAFO
  18496. |.:#U
  18497. O=Lotus Notes
  18498. CN=Lotus Notes Template Development/O=Lotus Notes
  18499. PURSAFO
  18500. Fde!f^^
  18501. ?k`a<
  18502. $$FormPostOpenAction
  18503. $TypeIcon
  18504. ExpireDate
  18505. ReplyDate
  18506. ComposedDate
  18507. $TITLE
  18508. $INFO
  18509. $WINDOWTITLE
  18510. $Script
  18511. $$Script_O
  18512. $$ScriptName
  18513. $$FormScript
  18514. $$$FormScript_O
  18515. $BODY
  18516. $ACTIONS
  18517. Times New Roman
  18518. VersionOpt|
  18519.     6S7S9S14S
  18520. $VersionOpt
  18521.     0R1S2S3S
  18522. SavedOnce
  18523.     0R1S2S3S
  18524. PostedDate(
  18525.     0R1S2S3S
  18526. DeliveredDate
  18527.     0R1S2S3S
  18528. $AutoEditMode
  18529.     0R1S2S3S
  18530. MailSaveOptions
  18531.     0R1S2S3S
  18532. VersionOpt
  18533.     0R4S
  18534. InheritedBody
  18535. New Reply
  18536. Subject
  18537. Subject
  18538. Subject
  18539.     4S6S12S13S14S15S17S21S23S25S26S28S
  18540. '++LotusScript Development Environment:2:5:(Options):0:74
  18541. '++LotusScript Development Environment:2:5:(Forward):0:1
  18542. '++LotusScript Development Environment:2:5:(Declarations):0:2
  18543.  Reply'++LotusScript Development Environment:2:5:(Options):0:66
  18544. '++LotusScript Development Environment:2:5:(Forward):0:1
  18545. Declare Sub Postopen(Source As Notesuidocument)
  18546. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  18547. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  18548. Declare Sub Postmodechange(Source As Notesuidocument)
  18549. '++LotusScript Development Environment:2:5:(Declarations):0:2
  18550. '++LotusScript Development Environment:2:2:BindEvents:1:129
  18551. Private Sub BindEvents(Byval Objectname_ As String)
  18552.      Static Source As NOTESUIDOCUMENT
  18553.      Set Source = Bind(Objectname_)
  18554.      On Event Postopen From Source Call Postopen
  18555.      On Event Querysave From Source Call Querysave
  18556.      On Event Queryclose From Source Call Queryclose
  18557.      On Event Postmodechange From Source Call Postmodechange
  18558. End Sub
  18559. '++LotusScript Development Environment:2:2:Postopen:1:12
  18560. Sub Postopen(Source As Notesuidocument)
  18561.      
  18562. End Sub
  18563. '++LotusScript Development Environment:2:2:Querysave:1:12
  18564. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  18565.      
  18566. End Sub
  18567. '++LotusScript Development Environment:2:2:Queryclose:1:12
  18568. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  18569.      
  18570. End Sub
  18571. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  18572. Sub Postmodechange(Source As Notesuidocument)
  18573.      
  18574. End Sub
  18575.     Always hidden: 
  18576. SendTo
  18577. CopyTo
  18578.     1S2S
  18579. InheritedSendTo
  18580. ReplyTo
  18581. InheritedReplyTo
  18582. Principal
  18583. Principal
  18584. Fromh
  18585.     1S2S9S11S16S18S
  18586. FromDomainh
  18587. FromDomain"
  18588.     0R7S8S9S10S11S13SInheritedFrom
  18589. FromDomain
  18590. InheritedFromDomain
  18591. FromPerson memo is from.
  18592. tmpFrom
  18593. CalendarProfile
  18594. Owner
  18595. Principal
  18596.     0S0E
  18597.     0S0E
  18598. Encrypt
  18599.     0S0E
  18600. DefaultMailSaveOptions
  18601. $KeepPrivate
  18602. $KeepPrivate
  18603. $KeepPrivate
  18604.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  18605. wMemo
  18606. $$QuerySaveAgent
  18607. Path_Info
  18608. Path_Info
  18609. MailOptions
  18610. SaveOptions
  18611. OldSubject
  18612. [<b>  </b>]
  18613. Reply
  18614. [<b>  </b>]-[<b>  </b>]From:[<b> </b>]
  18615. Principal
  18616. Principal
  18617.     1S2S5S6S8S10S
  18618.     0R1S2S8S
  18619.     0R1S2S5S6S8S14S18S
  18620.     0R1S2S5S6S8S14S18S
  18621. SentBy
  18622.     0R1S2S5S6S8S10S11S12S13S14S
  18623. SentBy
  18624. FromDomain
  18625. FromDomain
  18626. FromDomain
  18627. FromDomain
  18628.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  18629. FromName
  18630. Principal
  18631. Principal
  18632.     0RR1S2S9S11S15S
  18633. FromStops
  18634.     0R1S2S6S
  18635. FromName
  18636. FromStops
  18637. FromStops
  18638. FromStops
  18639.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_NoLogo
  18640. PostedDateh
  18641. PostedDate
  18642.     7S9S
  18643. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  18644. CalendarProfile
  18645. Owner
  18646.     6S9S10S
  18647.     The owner of this mail file is "
  18648. tmpCurOwner
  18649. CalendarProfile
  18650. Owner
  18651.     1S2S6S
  18652. tmpCurOwner
  18653. (set this value from the Preferences page)
  18654. tmpCurOwner
  18655.     0R1S3S4S6S8S
  18656. tmpCurrentOwner
  18657.     You are logged in as "
  18658. tmpCurrentUser
  18659. $HideMailHeader
  18660. Principal
  18661. Principal
  18662. Principal
  18663. Principal
  18664. Principal
  18665.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  18666.     Sent by:
  18667. FromDomain
  18668. FromDomain
  18669. FromDomain
  18670. FromDomain
  18671.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  18672. FromName
  18673.     0RR1S2S6S
  18674. FromStops
  18675.     0R1S2S6S
  18676. FromName
  18677. FromStops
  18678. FromStops
  18679. FromStops
  18680.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  18681. tmpBackToTask
  18682.     1S2S
  18683.     0S0E
  18684.     Submit
  18685. tmpBackToTask
  18686.     1S2S
  18687.     0S0E
  18688.     Submit
  18689.     [<b>     </b>]
  18690. CalendarProfile
  18691. wDefaultMailOpt
  18692. tmpSendOptions
  18693. Send Only|1Send and Save|2Save as Draft|3
  18694. ReplyDate
  18695. ReplyTo
  18696. $HideMailHeader
  18697.     2S3S4S5S6S7S9S10S
  18698. Please respond
  18699. ReplyTo
  18700. ReplyTo
  18701. ReplyDate
  18702. ReplyDate
  18703.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  18704. CalendarProfile
  18705. wEnableNABs
  18706.     4S6S7S
  18707. CalendarProfile
  18708. wEnableNABs
  18709.     1S6S8S9S11S16S
  18710. CalendarProfile
  18711. wNAB1
  18712.     0RR1S2S6S
  18713. CalendarProfile
  18714. wNAB2
  18715.     0R1S2S6S
  18716. CalendarProfile
  18717. wNAB3
  18718.     0R1S2S6S
  18719. CalendarProfile
  18720. wNAB4
  18721.     0R1S2S6S
  18722. NABurl1
  18723. CalendarProfile
  18724. wNABurl1
  18725.     0R1S2S6S
  18726. NABurl2
  18727. CalendarProfile
  18728. wNABurl2
  18729.     0R1S2S6S
  18730. NABurl3
  18731. CalendarProfile
  18732. wNABurl3
  18733.     0R1S2S6S
  18734. NABurl4
  18735. CalendarProfile
  18736. wNABurl4
  18737.     0R1S2S6S
  18738. anchorHead
  18739. <a href="
  18740.     0RR1S2S
  18741. anchorMid
  18742. "><font size=2><b>
  18743.     0R1S2S
  18744. anchorTail
  18745. </b></font></a>
  18746.     0R1S2S
  18747. spaces
  18748.     
  18749.     0R1S2S
  18750. Link1
  18751. anchorHead
  18752. NABurl1
  18753. anchorMid
  18754. NAB1"
  18755. anchorTail"
  18756. spaces"
  18757.     0RR1S2S3S4S5S6S7S8S9S10S11S12S
  18758. Link2
  18759. anchorHead
  18760. NABurl2
  18761. anchorMid
  18762. NAB2"
  18763. anchorTail"
  18764. spaces"
  18765.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  18766. Link3
  18767. anchorHead
  18768. NABurl3
  18769. anchorMid
  18770. NAB3"
  18771. anchorTail"
  18772. spaces"
  18773.     0R1S2S3S4S5S6S7S8S9S10S11S12S
  18774. Link4
  18775. anchorHead
  18776. NABurl4
  18777. anchorMid
  18778. NAB4"
  18779. anchorTail"
  18780.     0R1S2S3S4S5S6S7S8S9S10S
  18781. Link1
  18782. Link2
  18783. Link3
  18784. Link4
  18785.     0RR1S2S3S4S5S6S7S8S9S10S
  18786. tmpCustomAddressLinks
  18787. $HideMailHeader
  18788.     0S0E
  18789. MailAddress
  18790. InheritedReplyToh
  18791. InheritedReplyTo
  18792. InheritedReplyTo
  18793. InheritedFrom
  18794.     1S2S8S9S10S11S13S15S
  18795. MailAddress
  18796.     0RR4SSendTo[<size=58>]
  18797. CopyTo[<size=58>]
  18798. DeliveredDate
  18799. BlindCopyTo
  18800.   (bcc: 
  18801. BlindCopyTo
  18802.     4S5S6S7S8S9S10S11S13S14S15S19S21S22S24StmpBlindCopyTo
  18803.     bcc:
  18804. BlindCopyTo[<size=58>]
  18805.     Subject:
  18806. ReplyText
  18807. MailStEd|
  18808.     1S2S
  18809. Prefix
  18810. ReplyText
  18811.     0R1S2S8S9S11S13S
  18812. Prefix
  18813. ReplyText
  18814. Subject
  18815. Topic
  18816. Subject
  18817.     0R1S2S5S6S8S10S11S12S14S16S
  18818. Prefix
  18819. Subj"
  18820.     0R10S12S16S17S19S21S22S23S
  18821. Subject[<size=58>]
  18822.     Subject:
  18823. Subject
  18824. tmpDisplaySubject
  18825. tmpDisplayLink
  18826. Body[<ROWS="10" COLS="60"  WRAP=VIRTUAL>]
  18827.     [<BR>]File Attachments:
  18828. [<b>  </b>]Mail Options[<BR>]
  18829. Importance
  18830. High|1Normal|2Low|3
  18831.     Importance
  18832. DeliveryReport
  18833. On failure|BConfirm delivery|CTrace entire path|TNone|N
  18834.     DeliveryReport
  18835. DeliveryPriority
  18836. High|HNormal|NLow|L
  18837.     Delivery Priority
  18838.     0S0E
  18839.     Submit
  18840.     [<BR><BR><BR>]
  18841. [<b>  </b>]Tips
  18842.     Click on the 
  18843.     Address
  18844.      button to search through your address books.
  18845.     The 
  18846.     Trash
  18847.      button will move this document into the Trash folder.
  18848.     Some web browsers do not support adding 
  18849.     file attachments
  18850.      to documents. In such cases, the file attachment control may appear as an edit control. Any text entered in that edit control will not be included in your mail message.
  18851.     Hidden w/ HTML tag in help description field:
  18852. tmpAssign
  18853. &Assign
  18854.     1S2S
  18855. Path_Info
  18856. tmpAssign
  18857. tmpAssign
  18858.     0R1S6S11S12S14S16S
  18859. tmpAssignTask[<TYPE=hidden >]
  18860. Path_Info
  18861. tmpPath_Info[<TYPE=hidden >]
  18862. tmpTask
  18863. &Task
  18864.     1S2S
  18865. Path_Info
  18866. tmpTask
  18867. tmpTask
  18868.     0R1S6S11S12S14S16S
  18869. tmpBackToTask[<TYPE=hidden >]
  18870. Edit Document
  18871. Memo&
  18872. Edit 
  18873.     0S0E
  18874. Reply
  18875. Reply
  18876. Address
  18877. OldSubject
  18878. Subject
  18879. Subject
  18880. IN TRASH - TEMPORARY DOCUMENT
  18881. Subject
  18882.     0R1S2S3S
  18883. tmpSendOptions
  18884.     0R1S
  18885.     0R1S10S14S16S23S
  18886.     0R4S
  18887. path"
  18888. /wAddress?OpenForm&
  18889.     0R3S4S5S6S7S8S15S17S18S
  18890. Trashi
  18891.     1S2S8S12S14S
  18892. /wCommand?OpenAgent&ToTrash=
  18893. &From="
  18894.     0R1S2S3S4S11S13S15S16S
  18895. Path_Info
  18896. Path_Info
  18897.     0R1S2S6S10S11S15S
  18898. view1
  18899.     0R1S2S3S10S14S18S21S
  18900. view2
  18901. view1
  18902. view1
  18903. view1
  18904.     0R1S2S3S10S14S18S21S
  18905. path"
  18906. view2
  18907.     0RR3S4S5S6S7S8S
  18908.     1S2S8S12S14S
  18909. /wFolders?OpenForm&UNID=
  18910. &View="
  18911.     0R1S2S3S4S11S13S15S16S
  18912. Path_Info
  18913. Path_Info
  18914.     0R1S2S6S10S11S15S
  18915. view1
  18916.     0R1S2S3S10S14S18S21S
  18917. view2
  18918. view1
  18919. view1
  18920. view1
  18921.     0R1S2S3S10S14S18S21S
  18922. path"
  18923. view2
  18924.     0RR3S4S5S6S7S8S
  18925. _Move To Folder...
  18926. _Forward
  18927. _Remove From Folder...
  18928. Categori_ze
  18929. SSend
  18930. In Box*
  18931. ($InBox)
  18932. Calendar
  18933.     1S2S8S12S14S
  18934. path"
  18935. /($Calendar)?OpenView&Grid=
  18936. CalendarProfile
  18937. wCalGridType
  18938.     0R3S4S5S6S7S8S12S
  18939. Meetings.
  18940. ($Meetings)
  18941. To Do
  18942. ($ToDo)
  18943. All Views
  18944. O=Lotus Notes
  18945. O=Lotus Notes
  18946. PURSAFO
  18947. |.:#U
  18948. O=Lotus Notes
  18949. CN=Lotus Notes Template Development/O=Lotus Notes
  18950. PURSAFO
  18951. Fde!f^^
  18952. $$FormPostOpenAction
  18953. ExpireDate
  18954. ReplyDate
  18955. $TypeIcon
  18956. ReplyNumber
  18957. ComposedDate
  18958. $SCRIPTOBJ_25
  18959. $TITLE
  18960. $AUTOLAUNCH
  18961. $INFO
  18962. $WINDOWTITLE
  18963. $Script
  18964. $$Script_O
  18965. $$ScriptName
  18966. $$FormScript
  18967. $$$FormScript_O
  18968. $BODY
  18969. $ACTIONS
  18970.  wGuide
  18971. Hidden: 
  18972. SaveOptions
  18973. Work around for bug in $$Return related to @DbName
  18974.     0R6S10S12S
  18975. PathAndName
  18976. PathAndName
  18977. /($Inbox)]"
  18978.     1S2S3S4S
  18979. $$Return
  18980. [<b> </b>]
  18981. [<b>   </b>]Guide
  18982. Security
  18983. CGM Image
  18984. When accessing your mail file from a public workstation, always quit the web browser when you are done. This will clear your authentication with the Domino server and prevent unauthorized access to your mail file.
  18985. Preferences
  18986. owner of the mail file must be specified
  18987.  before the Memo, Reply, Phone Message, Task, Calendar Entry and RSVP documents will work correctly. 
  18988. Main Views
  18989. All views in your mail file have a similar format. The left column of the view includes links to common actions. Click these links to create new documents, navigate to different views, or access the preference page.
  18990. The right side of each view contains the list of documents in that view. Click on a document link to display that document.
  18991. Use the Begin and End links to move to the beginning or end of the current view. Use the Previous and Next links to display the previous or next page of documents in the view. 
  18992. Action Bar
  18993. Most documents have an Action Bar of buttons at the top of the page. When displaying a document, use the up and down arrows to navigate to the next document in the current view without returning to that view. 
  18994. A Memo is the basic email document. You can create and edit Memos, and then choose to save them as drafts, send them, or send and save a copy. 
  18995. Before you send a message you must fill in the following information:
  18996.  - The primary recipients of the message. The content of the message is directed to them or they must take action on this message.
  18997.  - Recipients who will receive a copy of the message, but are not usually required to take action on it. Filling in this field is optional.
  18998.  - Recipients who will receive a blind copy of this message. Filling in this field is optional.
  18999. Reply
  19000. Use this form to reply to a message that you have received.[<BR><BR>]
  19001. Meeting (Calendar Entry)
  19002. There are five flavors of Meeting documents. Appointments, Events, Reminders and Anniversaries are personal calendar entries, while Invitations are meetings that include other people.
  19003. By saving an Invitation that has required or optional attendees, those attendees will receive a mailed Invitation. The originator of an Invitation is considered the chairperson for that meeting.
  19004. The attendees may accept or decline an Invitation by selecting the "RSVP" button on their Invitation. 
  19005. If the chairperson changes the date or beginning time of the meeting, all people invited will receive a reschedule notice.
  19006. The chairperson may choose to add additional attendees by editing the original meeting document and adding their names.
  19007. The chairperson has the option to display the RSVP status of invitees, send a confirmation notice or cancel the meeting.
  19008. Tasks
  19009. Use this form to remind yourself of something that you need to do, or to ask another person to do something for you. If you send a Task to another Mail user, or to several users, they will be able to notify you when they have completed the Task.  A special view (see To Do view below) has been provided to help you organize your Tasks and the Tasks that you have assigned to other people.
  19010. Folders
  19011. Views
  19012. The following views and folders are provided for you:
  19013. Inbox
  19014.  - Messages that have been sent to you by another Mail user will appear here.
  19015. Calendar
  19016.  - This view looks like a desktop calendar.  Appointments you have scheduled will be displayed in two day, one week, two week, or one month calendar pages.
  19017. Drafts
  19018.  - Messages that you have created and saved, but have not yet sent, will appear here.
  19019.  - Messages will appear here after you have sent them. You can choose to have messages saved here automatically if you like.
  19020. Trash
  19021.  - Messages that you have marked for deletion will appear here.
  19022. To Do
  19023.  - Tasks that you have created for yourself and Tasks that you have assigned to other people will appear here. This view will also help you keep track of which Tasks have been completed and when. Make sure that each Task is categorized correctly by clicking on the Update link in this view. 
  19024. Meetings
  19025.  - Invitations to meetings and responses that people have returned to you will appear here.
  19026. Folders -
  19027.  Folders are special types of views. Documents can be moved in and out of any folder. Views, on the other hand, include documents according to a view selection formula. For example, the Calendar view will only display documents that are calendar entries and never display other kinds of documents. The Inbox and trash folders are special predefined folders.
  19028. File Utilities
  19029. Create and destroy folders, move and copy documents in and out of folders, and copy documents out of views by clicking on the File button at the top of each document.
  19030. Trash Button
  19031. Move a document into the Trash folder by clicking its action bar "Trash" button. Delete all documents in the Trash folder by clicking on a view's "Empty Trash" link.
  19032. To Do View
  19033. Click on the Update link in the top left corner to ensure that the status of each Task is up-to-date. The start date and due dates are compared to determine each Tasks' status.
  19034. Phone Message
  19035. Use this form to record a phone message for another Mail users.
  19036. File Attachments
  19037. Some web browsers do not support adding file attachments to documents. In such cases, the file attachment control may appear as an edit control. Any text entered in that edit control will not be included in your mail message.
  19038. [<br> <br>]
  19039.     0S0E
  19040.     Return to the In Box
  19041. Categori_ze
  19042. _Edit Document
  19043. Send Docu_ment
  19044. _Forward
  19045. _Move To Folder...
  19046. _Remove From Folder
  19047. In Box*
  19048. ($InBox)
  19049. Calendar
  19050.     1S2S8S12S14S
  19051. path"
  19052. /($Calendar)?OpenView&Grid=
  19053. CalendarProfile
  19054. wCalGridType
  19055.     0R3S4S5S6S7S8S12S
  19056. Meetings.
  19057. ($Meetings)
  19058. To Do
  19059. ($ToDo)
  19060. All Views
  19061. O=Lotus Notes
  19062. O=Lotus Notes
  19063. PURSAFO
  19064. |.:#U
  19065. O=Lotus Notes
  19066. CN=Lotus Notes Template Development/O=Lotus Notes
  19067. PURSAFO
  19068. Fde!f^^
  19069. $TITLE
  19070. $INFO
  19071. $$ScriptName
  19072. $BODY
  19073. $ACTIONS
  19074. Started running agent '_Calendar Tools\Calendar Profile... | Calendar Profile' on 03/10/97 11:01:08 AM
  19075. 1 document(s) were modified by formula
  19076. Done running agent '_Calendar Tools\Calendar Profile... | Calendar Profile' on 03/10/97 11:01:08 AM
  19077. CalendarProfile
  19078. O=Lotus Notes
  19079. O=Lotus Notes
  19080. PURSAFO
  19081. |.:#U
  19082. O=Lotus Notes
  19083. CN=Lotus Notes Template Development/O=Lotus Notes
  19084. PURSAFO
  19085. Fde!f^^
  19086. #>9Wf
  19087. $TITLE
  19088. $AssistType
  19089. $AssistLastRun
  19090. $AssistDocCount
  19091. $AssistFlags
  19092. $AssistTrigger
  19093. $AssistInfo
  19094. $AssistQuery
  19095. $AssistAction
  19096. $AssistAction_Ex
  19097. $PublicAccess
  19098. Started running agent 'Mail Tools\Create Stationery... | CreateStationery' on 03/10/97 10:55:04 AM
  19099. 1 document(s) were modified by formula
  19100. Done running agent 'Mail Tools\Create Stationery... | CreateStationery' on 03/10/97 10:55:06 AM
  19101. TheForm
  19102. Create Stationery
  19103. Which Form would you like to use to create this Stationery message?
  19104. Personal Stationery
  19105.     1S2S6S8S10S12S13S14S
  19106. MailStEd
  19107.     0R1S2S3S
  19108. TheForm
  19109.     0RR4S
  19110. O=Lotus Notes
  19111. O=Lotus Notes
  19112. PURSAFO
  19113. |.:#U
  19114. O=Lotus Notes
  19115. CN=Lotus Notes Template Development/O=Lotus Notes
  19116. PURSAFO
  19117. Fde!f^^
  19118. $TITLE
  19119. $Formula
  19120. $TYPE
  19121. $Operation
  19122. $Scan
  19123. &Arial
  19124. '++LotusScript Development Environment:2:5:(Options):0:66
  19125. '++LotusScript Development Environment:2:5:(Forward):0:1
  19126. Declare Sub Exiting(Source As Field)
  19127. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19128. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19129. Private Sub BindEvents(Byval Objectname_ As String)
  19130.      Static Source As FIELD
  19131.      Set Source = Bind(Objectname_)
  19132.      On Event Exiting From Source Call Exiting
  19133. End Sub
  19134. '++LotusScript Development Environment:2:2:Exiting:1:12
  19135. Sub Exiting(Source As Field)
  19136.      
  19137. End Sub
  19138. '++LotusScript Development Environment:2:5:(Options):0:66
  19139. '++LotusScript Development Environment:2:5:(Forward):0:1
  19140. Declare Sub Exiting(Source As Field)
  19141. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19142. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19143. Private Sub BindEvents(Byval Objectname_ As String)
  19144.      Static Source As FIELD
  19145.      Set Source = Bind(Objectname_)
  19146.      On Event Exiting From Source Call Exiting
  19147. End Sub
  19148. '++LotusScript Development Environment:2:2:Exiting:1:12
  19149. Sub Exiting(Source As Field)
  19150.      
  19151. End Sub
  19152. '++LotusScript Development Environment:2:5:(Options):0:66
  19153. '++LotusScript Development Environment:2:5:(Forward):0:1
  19154. Declare Sub Exiting(Source As Field)
  19155. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19156. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19157. Private Sub BindEvents(Byval Objectname_ As String)
  19158.      Static Source As FIELD
  19159.      Set Source = Bind(Objectname_)
  19160.      On Event Exiting From Source Call Exiting
  19161. End Sub
  19162. '++LotusScript Development Environment:2:2:Exiting:1:12
  19163. Sub Exiting(Source As Field)
  19164.      
  19165. End Sub
  19166. '++LotusScript Development Environment:2:5:(Options):0:66
  19167. '++LotusScript Development Environment:2:5:(Forward):0:1
  19168. Declare Sub Exiting(Source As Field)
  19169. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19170. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19171. Private Sub BindEvents(Byval Objectname_ As String)
  19172.      Static Source As FIELD
  19173.      Set Source = Bind(Objectname_)
  19174.      On Event Exiting From Source Call Exiting
  19175. End Sub
  19176. '++LotusScript Development Environment:2:2:Exiting:1:12
  19177. Sub Exiting(Source As Field)
  19178.      
  19179. End Sub
  19180. '++LotusScript Development Environment:2:5:(Options):0:66
  19181. '++LotusScript Development Environment:2:5:(Forward):0:1
  19182. Declare Sub Exiting(Source As Field)
  19183. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19184. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19185. Private Sub BindEvents(Byval Objectname_ As String)
  19186.      Static Source As FIELD
  19187.      Set Source = Bind(Objectname_)
  19188.      On Event Exiting From Source Call Exiting
  19189. End Sub
  19190. '++LotusScript Development Environment:2:2:Exiting:1:12
  19191. Sub Exiting(Source As Field)
  19192.      
  19193. End Sub
  19194. '++LotusScript Development Environment:2:5:(Options):0:66
  19195. '++LotusScript Development Environment:2:5:(Forward):0:1
  19196. Declare Sub Exiting(Source As Field)
  19197. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19198. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19199. Private Sub BindEvents(Byval Objectname_ As String)
  19200.      Static Source As FIELD
  19201.      Set Source = Bind(Objectname_)
  19202.      On Event Exiting From Source Call Exiting
  19203. End Sub
  19204. '++LotusScript Development Environment:2:2:Exiting:1:12
  19205. Sub Exiting(Source As Field)
  19206.      
  19207. End Sub
  19208. '++LotusScript Development Environment:2:5:(Options):0:66
  19209. '++LotusScript Development Environment:2:5:(Forward):0:1
  19210. Declare Sub Exiting(Source As Field)
  19211. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19212. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19213. Private Sub BindEvents(Byval Objectname_ As String)
  19214.      Static Source As FIELD
  19215.      Set Source = Bind(Objectname_)
  19216.      On Event Exiting From Source Call Exiting
  19217. End Sub
  19218. '++LotusScript Development Environment:2:2:Exiting:1:12
  19219. Sub Exiting(Source As Field)
  19220.      
  19221. End Sub
  19222. '++LotusScript Development Environment:2:5:(Options):0:66
  19223. '++LotusScript Development Environment:2:5:(Forward):0:1
  19224. Declare Sub Exiting(Source As Field)
  19225. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19226. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19227. Private Sub BindEvents(Byval Objectname_ As String)
  19228.      Static Source As FIELD
  19229.      Set Source = Bind(Objectname_)
  19230.      On Event Exiting From Source Call Exiting
  19231. End Sub
  19232. '++LotusScript Development Environment:2:2:Exiting:1:12
  19233. Sub Exiting(Source As Field)
  19234.      
  19235. End Sub
  19236. '++LotusScript Development Environment:2:5:(Options):0:66
  19237. '++LotusScript Development Environment:2:5:(Forward):0:1
  19238. Declare Sub Exiting(Source As Field)
  19239. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19240. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19241. Private Sub BindEvents(Byval Objectname_ As String)
  19242.      Static Source As FIELD
  19243.      Set Source = Bind(Objectname_)
  19244.      On Event Exiting From Source Call Exiting
  19245. End Sub
  19246. '++LotusScript Development Environment:2:2:Exiting:1:12
  19247. Sub Exiting(Source As Field)
  19248.      
  19249. End Sub
  19250. '++LotusScript Development Environment:2:5:(Options):0:66
  19251. '++LotusScript Development Environment:2:5:(Forward):0:1
  19252. Declare Sub Exiting(Source As Field)
  19253. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19254. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19255. Private Sub BindEvents(Byval Objectname_ As String)
  19256.      Static Source As FIELD
  19257.      Set Source = Bind(Objectname_)
  19258.      On Event Exiting From Source Call Exiting
  19259. End Sub
  19260. '++LotusScript Development Environment:2:2:Exiting:1:12
  19261. Sub Exiting(Source As Field)
  19262.      
  19263. End Sub
  19264. '++LotusScript Development Environment:2:5:(Options):0:66
  19265. '++LotusScript Development Environment:2:5:(Forward):0:1
  19266. Declare Sub Exiting(Source As Field)
  19267. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19268. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19269. Private Sub BindEvents(Byval Objectname_ As String)
  19270.      Static Source As FIELD
  19271.      Set Source = Bind(Objectname_)
  19272.      On Event Exiting From Source Call Exiting
  19273. End Sub
  19274. '++LotusScript Development Environment:2:2:Exiting:1:12
  19275. Sub Exiting(Source As Field)
  19276.      
  19277. End Sub
  19278. '++LotusScript Development Environment:2:5:(Options):0:66
  19279. '++LotusScript Development Environment:2:5:(Forward):0:1
  19280. Declare Sub Exiting(Source As Field)
  19281. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19282. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19283. Private Sub BindEvents(Byval Objectname_ As String)
  19284.      Static Source As FIELD
  19285.      Set Source = Bind(Objectname_)
  19286.      On Event Exiting From Source Call Exiting
  19287. End Sub
  19288. '++LotusScript Development Environment:2:2:Exiting:1:12
  19289. Sub Exiting(Source As Field)
  19290.      
  19291. End Sub
  19292. '++LotusScript Development Environment:2:5:(Options):0:66
  19293. '++LotusScript Development Environment:2:5:(Forward):0:1
  19294. Declare Sub Exiting(Source As Field)
  19295. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19296. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19297. Private Sub BindEvents(Byval Objectname_ As String)
  19298.      Static Source As FIELD
  19299.      Set Source = Bind(Objectname_)
  19300.      On Event Exiting From Source Call Exiting
  19301. End Sub
  19302. '++LotusScript Development Environment:2:2:Exiting:1:12
  19303. Sub Exiting(Source As Field)
  19304.      
  19305. End Sub
  19306. '++LotusScript Development Environment:2:5:(Options):0:66
  19307. '++LotusScript Development Environment:2:5:(Forward):0:1
  19308. Declare Sub Exiting(Source As Field)
  19309. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19310. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19311. Private Sub BindEvents(Byval Objectname_ As String)
  19312.      Static Source As FIELD
  19313.      Set Source = Bind(Objectname_)
  19314.      On Event Exiting From Source Call Exiting
  19315. End Sub
  19316. '++LotusScript Development Environment:2:2:Exiting:1:12
  19317. Sub Exiting(Source As Field)
  19318.      
  19319. End Sub
  19320. '++LotusScript Development Environment:2:5:(Options):0:66
  19321. '++LotusScript Development Environment:2:5:(Forward):0:1
  19322. Declare Sub Exiting(Source As Field)
  19323. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19324. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19325. Private Sub BindEvents(Byval Objectname_ As String)
  19326.      Static Source As FIELD
  19327.      Set Source = Bind(Objectname_)
  19328.      On Event Exiting From Source Call Exiting
  19329. End Sub
  19330. '++LotusScript Development Environment:2:2:Exiting:1:12
  19331. Sub Exiting(Source As Field)
  19332.      
  19333. End Sub
  19334. Owner
  19335. Calendar Profile
  19336. Calendar Profile for 
  19337. Owner
  19338.     3S4S5S6S7S8S9S10S'++LotusScript Development Environment:2:5:(Options):0:74
  19339. Option Public
  19340. '++LotusScript Development Environment:2:5:(Forward):0:1
  19341. Declare Sub Terminate
  19342. Declare Function IsValidDateRange(FieldName As String) As Integer
  19343. '++LotusScript Development Environment:2:5:(Declarations):0:10
  19344. Dim uidoc As NotesUIDocument
  19345. Dim session As NotesSession
  19346. Dim trdr As NotesDateRange
  19347. Dim note As NotesDocument
  19348. Dim db As NotesDatabase
  19349. Dim acl As NotesAcl
  19350. Dim aclentry As NotesAclEntry
  19351. Dim namelookup As NotesName
  19352. Dim DoNotEdit As Integer
  19353. '++LotusScript Development Environment:2:2:Terminate:1:10
  19354. Sub Terminate
  19355.      
  19356. End Sub
  19357. '++LotusScript Development Environment:2:1:IsValidDateRange:1:8
  19358. Function IsValidDateRange(FieldName As String) As Integer
  19359. 'returns true if the given date range is valid, false otherwise
  19360.      Dim datetime As String
  19361.      
  19362.      On Error Goto ErrorRoutine
  19363.      
  19364.      IsValidDateRange = True
  19365.      datetime = uidoc.FieldGetText(FieldName)
  19366.      trdr.Text = datetime
  19367.      Exit Function
  19368.      
  19369. ErrorRoutine:
  19370.      IsValidDateRange = False
  19371.      Exit Function
  19372. End Function
  19373.  wPreferences'++LotusScript Development Environment:2:5:(Options):0:66
  19374. '++LotusScript Development Environment:2:5:(Forward):0:1
  19375. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  19376. Declare Sub Postopen(Source As Notesuidocument)
  19377. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  19378. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19379. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19380. Private Sub BindEvents(Byval Objectname_ As String)
  19381.      Static Source As NOTESUIDOCUMENT
  19382.      Set Source = Bind(Objectname_)
  19383.      On Event Querysave From Source Call Querysave
  19384.      On Event Postopen From Source Call Postopen
  19385.      On Event Querymodechange From Source Call Querymodechange
  19386. End Sub
  19387. '++LotusScript Development Environment:2:2:Querysave:1:12
  19388. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  19389.      
  19390. End Sub
  19391. '++LotusScript Development Environment:2:2:Postopen:1:12
  19392. Sub Postopen(Source As Notesuidocument)
  19393.      
  19394.      Set note = source.Document
  19395.      Set session = New NotesSession
  19396.      Set trdr  = session.CreateDateRange
  19397.      Set uidoc = source
  19398.      Set db = session.CurrentDatabase
  19399.      
  19400. 'if you are less than an Author you cannot edit
  19401.      If db.CurrentAccessLevel < ACLLEVEL_AUTHOR Then
  19402.           DoNotEdit = True
  19403.           source.EditMode = False
  19404.      End If
  19405.      
  19406.      If source.EditMode Then Call source.Refresh
  19407.      
  19408. End Sub
  19409. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  19410. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  19411.      If DoNotEdit And source.EditMode = False Then continue = False
  19412. End Sub
  19413. UserAccess
  19414.     1S2S11S
  19415. AutoProcessMeetings
  19416. AutoProcessMeetings
  19417.     0RR1S2S3S
  19418. AutoProcessMeetings
  19419. AutoProcessNotices
  19420. UserAccess
  19421. AutoProcessMeetings
  19422. Autoprocess
  19423. You are not authorized to enable the Autoprocessing agent.  Please contact a designer or manager of this database.
  19424. AutoProcessNotices
  19425. AutoProcessMeetings
  19426. AutoProcessMeetings
  19427. AutoProcessNotices
  19428. UserAccess
  19429. AutoProcessMeetings
  19430. Autoprocess
  19431. You are not authorized to disable the Autoprocessing agent.  Please contact a designer or manager of this database.
  19432. AutoProcessNotices
  19433. AutoProcessMeetings
  19434.     0R3S4S5S6S12RS6E15S16S18RS12E20RS21E27RS21E32RS21E38S40S43RS21E45RS6E59RS12E61RS21E68RS21E72RS21E74RS12E78R79S80S81S82S87RS6E90S91S93RS12E95RS21E102RS21E107RS21E113S115S118RS21E120RS6E134RS12E136RS21E143RS21E147RS21E149RS12E153R
  19435. '++LotusScript Development Environment:2:5:(Options):0:66
  19436. '++LotusScript Development Environment:2:5:(Forward):0:1
  19437. Declare Sub Exiting(Source As Field)
  19438. '++LotusScript Development Environment:2:5:(Declarations):0:2
  19439. '++LotusScript Development Environment:2:2:BindEvents:1:129
  19440. Private Sub BindEvents(Byval Objectname_ As String)
  19441.      Static Source As FIELD
  19442.      Set Source = Bind(Objectname_)
  19443.      On Event Exiting From Source Call Exiting
  19444. End Sub
  19445. '++LotusScript Development Environment:2:2:Exiting:1:12
  19446. Sub Exiting(Source As Field)
  19447.      
  19448. End Sub
  19449. [<b> </b>]
  19450. *.PCX
  19451. TIFF 5.0 
  19452. .0/6.1
  19453. *.WPD;*.W
  19454. _ITIFF
  19455. [<b>   </b>]User Preferences
  19456.     [<BR>]
  19457.     0S0E
  19458. Save Preferences
  19459.     [<BR><BR>]Mail File Owner: 
  19460. Owner[<size=50>]
  19461.     You are currently logged in as "
  19462. CurrentAcount
  19463.     If you are the mail file owner, you can copy your account name as it appears here into the Mail File Owner field.
  19464.     The Mail File Owner name must be entered in Notes canonical format. Please refer to the "Tips" section below if you should be listed as the owner of this file, but are not.
  19465.     Default Mail setting: 
  19466. DefaultMailOpt
  19467. Send Only|1Send and Save|2Save as Draft|3
  19468. EnableTrashIcon
  19469. Tag documents that have been moved to the trash folder.|1
  19470.     [<BR><BR>]
  19471. AutoProcessMeetings
  19472. Meetings|1
  19473.     Autoprocess Meetings only from the following people: 
  19474. MeetingsPeople[<size=50>]
  19475.     [<BR>][<BR>]
  19476. [<b> </b>]Scheduling Options
  19477.     [<BR>]Default meeting duration:
  19478. DefaultDuration[<size=3>]
  19479.      minutes[<BR><BR>]
  19480. CalEntryType
  19481. Appointment|0Invitation|3Event|2Reminder|4Anniversary|1
  19482.     Default Calendar Entry type[<BR><BR>]
  19483. CalGridType
  19484. Two Days|1One Week|2Two Weeks|3One Month|4One Year|5
  19485.     Default Calendar Grid type[<BR><BR>]
  19486. CalEntryHide
  19487. Hide new Calendar Entries from public viewing|1
  19488.     [<BR>]
  19489. AutoRemoveFromInbox
  19490. Remove Invitations from the In Box after responding to them.|1
  19491.     [<BR><BR>]
  19492. [<b> </b>]Notes Directory Lookup Address Books
  19493.     Book 1: 
  19494. NotesNab1[<size=50>]
  19495.     Book 2: 
  19496. NotesNab2[<size=50>]
  19497.     Book 3: 
  19498. NotesNab3[<size=50>]
  19499.     Book 4: 
  19500. NotesNab4[<size=50>]
  19501.     [<BR><BR>]
  19502. [<b> </b>]Freetime Options
  19503.     Only the following users can read my Freetime Schedule:
  19504. AllowBusyAccess
  19505. AllowBusyAccess
  19506. Owner
  19507.     6S7S8S9S12S13S16SAllowBusyAccess[<size=30>]
  19508. [<BR><BR>]
  19509.     Allowable free times:
  19510. Sunday
  19511. Sunday:|1
  19512.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  19513. $Times1
  19514. $Times1
  19515.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  19516. textdate
  19517. $Times1
  19518.     0S0E
  19519. list1
  19520. textdate
  19521. list2
  19522. textdate
  19523. date1
  19524. list1
  19525. date2
  19526. list2
  19527. result
  19528. date2
  19529. date1
  19530. result
  19531. result
  19532. Invalid time range for Sunday.  Ranges may not span days.
  19533.     0R4S5S7S8S10S11S
  19534. $Times1[<size=70>]
  19535. Monday
  19536. Monday:|2
  19537.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  19538. $Times2
  19539. $Times2
  19540.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  19541. textdate
  19542. $Times2
  19543.     0S0E
  19544. list1
  19545. textdate
  19546. list2
  19547. textdate
  19548. date1
  19549. list1
  19550. date2
  19551. list2
  19552. result
  19553. date2
  19554. date1
  19555. result
  19556. result
  19557. Invalid time range for Monday.  Ranges may not span days.
  19558.     0R4S5S7S8S10S11S
  19559. $Times2[<size=70>]
  19560. Tuesday
  19561. Tuesday:|3
  19562.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  19563. $Times3
  19564. $Times3
  19565.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  19566. textdate
  19567. $Times3
  19568.     0S0E
  19569. list1
  19570. textdate
  19571. list2
  19572. textdate
  19573. date1
  19574. list1
  19575. date2
  19576. list2
  19577. result
  19578. date2
  19579. date1
  19580. result
  19581. result
  19582. Invalid time range for Tuesday.  Ranges may not span days.{
  19583.     0R4S5S7S8S10S11S
  19584. $Times3[<size=70>]
  19585. Wednesday
  19586. Wednesday:|4
  19587.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  19588. $Times4
  19589. $Times4
  19590.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  19591. textdate
  19592. $Times4
  19593.     0S0E
  19594. list1
  19595. textdate
  19596. list2
  19597. textdate
  19598. date1
  19599. list1
  19600. date2
  19601. list2
  19602. result
  19603. date2
  19604. date1
  19605. result
  19606. result
  19607. Invalid time range for Wednesday.  Ranges may not span days.{
  19608.     0R4S5S7S8S10S11S
  19609. $Times4[<size=70>]
  19610. Thursday
  19611. Thursday:|5
  19612.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  19613. $Times5
  19614. $Times5
  19615.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  19616. textdate
  19617. $Times5
  19618.     0S0E
  19619. list1
  19620. textdate
  19621. list2
  19622. textdate
  19623. date1
  19624. list1
  19625. date2
  19626. list2
  19627. result
  19628. date2
  19629. date1
  19630. result
  19631. result
  19632. Invalid time range for Thursday.  Ranges may not span days.
  19633.     0R4S5S7S8S10S11S
  19634. $Times5[<size=70>]
  19635. Friday
  19636. Friday:|6
  19637.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  19638. $Times6
  19639. $Times6
  19640.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  19641. textdate
  19642. $Times6
  19643.     0S0E
  19644. list1
  19645. textdate
  19646. list2
  19647. textdate
  19648. date1
  19649. list1
  19650. date2
  19651. list2
  19652. result
  19653. date2
  19654. date1
  19655. result
  19656. result
  19657. Invalid time range for Friday.  Ranges may not span days.
  19658.     0R4S5S7S8S10S11S
  19659. $Times6[<size=70>]
  19660. Saturday
  19661. Saturday:|7
  19662.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  19663. $Times7
  19664. $Times7
  19665.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  19666. textdate
  19667. $Times7
  19668.     0S0E
  19669. list1
  19670. textdate
  19671. list2
  19672. textdate
  19673. date1
  19674. list1
  19675. date2
  19676. list2
  19677. result
  19678. date2
  19679. date1
  19680. result
  19681. result
  19682. Invalid time range for Saturday.  Ranges may not span days.
  19683.     0R4S5S7S8S10S11S
  19684. $Times7[<size=70>]
  19685.     [<BR><BR>]
  19686. [<b> </b>]Custom Address Book Links
  19687. EnableNABLinks
  19688. Enable Custom Address Book Links|1
  19689.     Link name 1: 
  19690. LinkName1[<size=14>]
  19691.     [<b>   </b>]URL 1: 
  19692. URL1[<size=50>]
  19693.     Link name 2: 
  19694. LinkName2[<size=14>]
  19695.     [<b>   </b>]URL 2: 
  19696. URL2[<size=50>]
  19697.     Link name 3: 
  19698. LinkName3[<size=14>]
  19699.     [<b>   </b>]URL 3: 
  19700. URL3[<size=50>]
  19701.     Link name 4: 
  19702. LinkName4[<size=14>]
  19703.     [<b>   </b>]URL 4: 
  19704. URL4[<size=50>]
  19705.     [<BR><BR>]
  19706. [<b> </b>]Favorite Links
  19707. EnableFavoriteLinks
  19708. Enable Favorite Links|1
  19709. IsFolder1
  19710. Folder|1URL|0
  19711.     [<b>     </b>]Name 1: 
  19712. FolderName1[<size=14>]
  19713.     [<b>   </b>]URL 1: 
  19714. fURL1[<size=40>]
  19715. IsFolder2
  19716. Folder|1URL|0
  19717.     [<b>     </b>]Name 2: 
  19718. FolderName2[<size=14>]
  19719.     [<b>   </b>]URL 2: 
  19720. fURL2[<size=40>]
  19721. IsFolder3
  19722. Folder|1URL|0
  19723.     [<b>     </b>]Name 3: 
  19724. FolderName3[<size=14>]
  19725.     [<b>   </b>]URL 3: 
  19726. fURL3[<size=40>]
  19727. IsFolder4
  19728. Folder|1URL|0
  19729.     [<b>     </b>]Name 4: 
  19730. FolderName4[<size=14>]
  19731.     [<b>   </b>]URL 4: 
  19732. fURL4[<size=40>]
  19733. IsFolder5
  19734. Folder|1URL|0
  19735.     [<b>     </b>]Name 5: 
  19736. FolderName5[<size=14>]
  19737.     [<b>   </b>]URL 5: 
  19738. fURL5[<size=40>]
  19739. IsFolder6
  19740. Folder|1URL|0
  19741.     [<b>     </b>]Name 6: 
  19742. FolderName6[<size=14>]
  19743.     [<b>   </b>]URL 6: 
  19744. fURL6[<size=40>]
  19745.     [<BR>]
  19746.     0S0E
  19747. Save Preferences
  19748. [<BR><BR>]
  19749. [<b> </b>]
  19750. [<b>   </b>]Tips
  19751.     The 
  19752.     Mail File Owner
  19753.      must be set correctly so that your mail messages are signed correctly. The Mail File Owner must be specified in Notes canonical format, where:
  19754.     [<b>   </b>]"CN=" proceeds the Common Name component of a hierarchical name,
  19755.     [<b>   </b>]"OU=" proceeds every Organizational Unit component of a hierarchical name.
  19756.     [<b>   </b>]"O=" proceeds the Organization component of a hierarchical name, and 
  19757.     [<b>   </b>]"C=" proceeds the Country component of a hierarchical name,
  19758.     [<b>   </b>]For example: "CN=Jeanne Employee/OU=Research/O=Acme/C=Country".
  19759.     [<b>   </b>]Many Notes installations use a subset of the hierarchical name components to identify users.
  19760.     Notes Directory Lookup Address Books
  19761.      can be any Notes address book file. The default address book is 
  19762.     usually 
  19763.     named "names.nsf" and appears as the first entry. Use the additional entries to reference other address book files.
  19764.     Freetime Options
  19765.      allow y
  19766.     ou to limit your free time schedule to only particular users. Enter their names in the field provided.
  19767.     Under 
  19768.     Allowable free times
  19769.     , select each day that you normally work and specify the hours that you normally work each day.
  19770. For example, if you work on Saturdays from 7:00 A.M. to 11:00 A.M. and from 12:00 P.M. to 3:00 P.M., select Saturday and 
  19771.     enter 7:00 AM - 11:00 AM, 12:00 PM - 3:00 PM.
  19772.     Custom Address Book Links
  19773.      can be any URL you like. These URLs will appear whenever editing a 
  19774.     document 
  19775.     which needs to be addressed. 
  19776.     Be sure to use the full URL of the target page. (e.g. http://www.lotus.com).
  19777.     When enabled, 
  19778.     Favorite Links
  19779.      will be included while displaying any view. Favorite Links can reference folders in this 
  19780.     mail file, or any URL you like. If a Favorite Link entry is marked as a folder, any value in the URL field is ignored.
  19781. Hidden:
  19782. Owner
  19783. $BusyName
  19784. $NoPurge
  19785. $NoPurge
  19786. Sunday
  19787. Monday
  19788. Tuesday
  19789. Wednesday
  19790. Thursday
  19791. Friday
  19792. Saturday
  19793.     0S0E
  19794. $AvailableDays
  19795. $PublicAccess
  19796. wPreferencesOpen
  19797. $$QueryOpenAgent
  19798. wPreferencesSave
  19799. $$QuerySaveAgent
  19800. SaveOptions
  19801. Path_Info
  19802. Path_Info
  19803. _Edit Document
  19804. _Forward
  19805. Categori_ze
  19806. Send Docu_ment
  19807. _Move To Folder...
  19808. _Remove From Folder
  19809. In Box*
  19810. ($InBox)
  19811. Calendar
  19812.     1S2S8S12S14S
  19813. path"
  19814. /($Calendar)?OpenView&Grid=
  19815. CalendarProfile
  19816. wCalGridType
  19817.     0R3S4S5S6S7S8S12S
  19818. Meetings.
  19819. ($Meetings)
  19820. To Do
  19821. ($ToDo)
  19822. All Views
  19823. O=Lotus Notes
  19824. O=Lotus Notes
  19825. PURSAFO
  19826. |.:#U
  19827. O=Lotus Notes
  19828. CN=Lotus Notes Template Development/O=Lotus Notes
  19829. PURSAFO
  19830. Fde!f^^
  19831. SundayStart_1
  19832. SundayEnd_1
  19833. SundayStart_2
  19834. SundayEnd_2
  19835. SundayStart_3
  19836. SundayEnd_3
  19837. SundayStart_4
  19838. SundayEnd_4
  19839. SundayStart_5
  19840. SundayEnd_5
  19841. SundayStart_6
  19842. SundayEnd_6
  19843. TaskLead
  19844. TimeSlotStart
  19845. TimeSlotEnd
  19846. TimeSlotInterval
  19847. SundayStart
  19848. SundayEnd
  19849. MondayStart
  19850. MondayEnd
  19851. TuesdayStart
  19852. TuesdayEnd
  19853. WednesdayStart
  19854. WednesdayEnd
  19855. ThursdayStart
  19856. ThursdayEnd
  19857. FridayStart
  19858. FridayEnd
  19859. SaturdayStart
  19860. SaturdayEnd
  19861. $SundayTimes
  19862. $MondayTimes
  19863. $TuesdayTimes
  19864. $WednesdayTimes
  19865. $ThursdayTimes
  19866. $FridayTimes
  19867. $SaturdayTimes
  19868. $1Times
  19869. $2Times
  19870. $3Times
  19871. $4Times
  19872. $5Times
  19873. $6Times
  19874. $7Times
  19875. $FormPublicAccess
  19876. AppointmentLead
  19877. ReminderLead
  19878. EventLead
  19879. AnniversaryLead
  19880. $$MonStart
  19881. $MonStart_O
  19882. $$Timess
  19883. $Timess_O
  19884. Timess
  19885. $$Times1s
  19886. $Times1s_O
  19887. $$Times1e
  19888. $Times1e_O
  19889. $$Times2e
  19890. $Times2e_O
  19891. $$Times3s
  19892. $Times3s_O
  19893. $$Times3e
  19894. $Times3e_O
  19895. $$Times4s
  19896. $Times4s_O
  19897. $$Times4e
  19898. $Times4e_O
  19899. $$Times5s
  19900. $Times5s_O
  19901. $$Times5e
  19902. $Times5e_O
  19903. $$Times6s
  19904. $Times6s_O
  19905. $$Times6e
  19906. $Times6e_O
  19907. $$Times7s
  19908. $Times7s_O
  19909. $$Times7e
  19910. $Times7e_O
  19911. Times1s
  19912. Times1e
  19913. Times2e
  19914. Times3e
  19915. Times4s
  19916. Times4e
  19917. Times5s
  19918. Times5e
  19919. Times6s
  19920. Times6e
  19921. Times7s
  19922. Times7e
  19923. $TITLE
  19924. $INFO
  19925. $WINDOWTITLE
  19926. $Script
  19927. $$Script_O
  19928. $$ScriptName
  19929. $$FormScript
  19930. $$$FormScript_O
  19931. $$FormAction2
  19932. $$$Times1
  19933. $$Times1_O
  19934. DefaultDuration
  19935. $Times1
  19936. $Times2
  19937. $Times3
  19938. $Times4
  19939. $Times5
  19940. $Times6
  19941. $Times7
  19942. $NoPurge
  19943. $BODY
  19944. $ACTIONS
  19945. $PublicAccess
  19946. Squiggly LineStdNotesLtr23CU3
  19947. CN=Paul DiCristina/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  19948. ##########################################################
  19949. Geometry 1StdNotesLtr9CU3
  19950. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##
  19951. Triangle with Dots 2StdNotesLtr30CU3
  19952. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################################
  19953. (Advanced Options)UC31
  19954. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################################
  19955. 1(RepeatForm)UC31
  19956. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###################
  19957. D3F729BC2029D7188AE991E3D4201966CN=Michael Clark/O=Iris
  19958. _Special\Phone MessagePhone Messagew
  19959. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################
  19960. Wild ConfettiStdNotesLtr32CU3
  19961. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########
  19962. !X%`P
  19963. First InitialStdNotesLtr6CU3
  19964. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######
  19965. Falling SpheresStdNotesLtr5CU3
  19966. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##
  19967. Slashed Lines with GlobeStdNotesLtr21CU3
  19968. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  19969. ##########################################################
  19970. (Delivery Info)DeliveryInfo1CDU
  19971. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#############
  19972. Pony ExpressStdNotesLtr17CU3
  19973. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########
  19974. ##########################################################
  19975. ##########################################################
  19976. &Arial
  19977.  StdNotesLtr23
  19978. tmpDisplayFrom_Preview
  19979. tmpFrom
  19980. tmpDisplayDate_Preview
  19981. tmpDate
  19982. O=Lotus Notes
  19983. O=Lotus Notes
  19984. PURSAFO
  19985. |.:#U
  19986. O=Lotus Notes
  19987. CN=Lotus Notes Template Development/O=Lotus Notes
  19988. PURSAFO
  19989. Fde!f^^
  19990. $TITLE
  19991. $INFO
  19992. $Header
  19993. $$ScriptName
  19994. $BODY
  19995. Times New Roman
  19996. VersionOpt|
  19997.     6S7S9S14S
  19998. $VersionOpt
  19999.     0R1S2S3S
  20000. SavedOnce
  20001.     0R1S2S3S
  20002. PostedDate(
  20003.     0R1S2S3S
  20004. DeliveredDate
  20005.     0R1S2S3S
  20006. $AutoEditMode
  20007.     0R1S2S3S
  20008. MailSaveOptions
  20009.     0R1S2S3S
  20010. VersionOpt
  20011.     0R4S
  20012. Address Finder
  20013. '++LotusScript Development Environment:2:5:(Options):0:74
  20014. Option Public
  20015. '++LotusScript Development Environment:2:5:(Forward):0:1
  20016. '++LotusScript Development Environment:2:5:(Declarations):0:2
  20017.  wAddressInvite'++LotusScript Development Environment:2:5:(Options):0:66
  20018. '++LotusScript Development Environment:2:5:(Forward):0:1
  20019. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  20020. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  20021. Declare Sub Postmodechange(Source As Notesuidocument)
  20022. Declare Sub Postopen(Source As Notesuidocument)
  20023. Declare Sub Initialize
  20024. '++LotusScript Development Environment:2:5:(Declarations):0:2
  20025. '++LotusScript Development Environment:2:2:BindEvents:1:129
  20026. Private Sub BindEvents(Byval Objectname_ As String)
  20027.      Static Source As NOTESUIDOCUMENT
  20028.      Set Source = Bind(Objectname_)
  20029.      On Event Querysave From Source Call Querysave
  20030.      On Event Queryclose From Source Call Queryclose
  20031.      On Event Postmodechange From Source Call Postmodechange
  20032.      On Event Postopen From Source Call Postopen
  20033. End Sub
  20034. '++LotusScript Development Environment:2:2:Querysave:1:12
  20035. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  20036.      
  20037. End Sub
  20038. '++LotusScript Development Environment:2:2:Queryclose:1:12
  20039. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  20040.      
  20041. End Sub
  20042. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  20043. Sub Postmodechange(Source As Notesuidocument)
  20044.      
  20045. End Sub
  20046. '++LotusScript Development Environment:2:2:Postopen:1:12
  20047. Sub Postopen(Source As Notesuidocument)
  20048.      
  20049. End Sub
  20050. '++LotusScript Development Environment:2:2:Initialize:1:10
  20051. Sub Initialize
  20052.      
  20053. End Sub
  20054.     Hidden:
  20055. wAddressOpen
  20056. $$QueryOpenAgent
  20057. wAddressSave
  20058. $$QuerySaveAgent
  20059. SaveOptions
  20060. Path_Info
  20061. Path_Info
  20062. Query_string
  20063. Query_string[<TYPE=hidden >]
  20064. AbortGracefully
  20065.     1S2S
  20066. [<b>   </b>]Address Finder
  20067. [<!-- #1 --><TABLE WIDTH="100%"><TR><TD WIDTH="1%"><!-- #1.0 spacer --><TABLE WIDTH="100%"><TR><TD>
  20068. Address Book:<BR>
  20069. names.nsf
  20070. TargetNAB
  20071. AddressBooks
  20072. </TD></TR></TABLE><!-- end #1.0 spacer -->
  20073. </TD><TD WIDTH="99%"><!-- #1.a spacer --><TABLE WIDTH="100%"><TR><TD WIDTH="1%">Target Name:<BR>
  20074. tmpSearchString
  20075. </TD><TD WIDTH="99%">  Maximum Entries:<BR> 
  20076. tmpMaxListed
  20077. 1050100250500
  20078. </TD></TR></TABLE><!-- end #1.a spacer --></TD></TR><TR><TD WIDTH="1%"> Address List:</TD><TD WIDTH="99%"></TD></TR><TR VALIGN=top><TD WIDTH="1%"> 
  20079. tmpAddressList
  20080. tmpAddressList
  20081. </TD><TD WIDTH="99%"><!-- #1.1 refresh buttons spacing --><TABLE WIDTH="100%"><TR VALIGN=top><TD><!-- #1.1.1 refresh buttons --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20082.     0S0E
  20083.     0S0E
  20084. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn010.gif">
  20085. </TD><TD WIDTH="99%">Return with address selections</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20086. tmpSendTo
  20087. origSendTo
  20088. tmpcopyTo
  20089. origCopyTo
  20090.     0R1S
  20091. tmpBlindCopyTo
  20092. origBlindCopyTo
  20093.     0R1S
  20094. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn011.gif">
  20095. </TD><TD WIDTH="99%">Cancel new address selections</TD></TR>
  20096. <TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20097. tmpCurIndex
  20098. Domino
  20099. LoadAddressListByName
  20100. TargetNAB
  20101. tmpAddressList
  20102. tmpMaxListed
  20103. tmpSearchString
  20104.     1S2S3S7S9S11S13S15S
  20105. tmpNextIndex
  20106. tmpCurIndex
  20107. tmpMaxListedX
  20108.     0R1S2S3S5S9S10S14S
  20109. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn023.gif">
  20110. </TD><TD WIDTH="99%">Search for Target Name</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20111. tmpMax
  20112. tmpMaxListedX
  20113.     1S2S
  20114. tmpIndexStr
  20115. tmpCurIndex
  20116. tmpMax#
  20117.     0R1S2S8S9S
  20118. tmpCurIndex
  20119. Domino
  20120. LoadAddressListByIndex
  20121. TargetNAB
  20122. tmpAddressList
  20123. tmpMaxListed
  20124. tmpIndexStr
  20125.     0R1S2S3S7S9S11S13S15S
  20126. tmpNextIndex
  20127. tmpCurIndex
  20128. tmpMax"
  20129.     0R1S2S3S5S9S10S11S
  20130. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn095.gif">
  20131. </TD><TD WIDTH="99%">Display Previous Entries</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20132. tmpCurIndex
  20133. Domino
  20134. LoadAddressListByIndex
  20135. TargetNAB
  20136. tmpAddressList
  20137. tmpMaxListed
  20138. tmpNextIndex
  20139.     1S2S3S7S9S11S13S15S
  20140. tmpNextIndex
  20141. tmpCurIndex
  20142. tmpMaxListedX
  20143.     0R1S2S3S5S9S10S14S
  20144. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn094.gif">
  20145. </TD><TD WIDTH="99%">Display Next Entries</TD></TR>
  20146. </TABLE><!-- end #1.1.1 refresh buttons --></TD></TR></TABLE><!-- end #1.1 refresh buttons spacing --><BR><!-- #1.2 copy to buttons --><TABLE WIDTH="100%"><TR><TD WIDTH="1%"><!-- #1.2.1 --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20147. tmpNewList
  20148. tmpAddressList
  20149.     1S2S12S16S
  20150. tmpSendTo
  20151. tmpSendTo
  20152. tmpNewList
  20153. tmpSendTo
  20154. tmpNewList
  20155.     0R1S2S3S2E9S10S12S14S18S22S25S26S27S
  20156. tmpSearchString
  20157. tmpCurIndex
  20158. Domino
  20159. LoadAddressListByIndex
  20160. TargetNAB
  20161. tmpAddressList
  20162. tmpMaxListed
  20163. tmpCurIndex
  20164. tmpCurIndex
  20165. Domino
  20166. LoadAddressListByName
  20167. TargetNAB
  20168. tmpAddressList
  20169. tmpMaxListed
  20170. tmpSearchString
  20171.     0R3S4S6RS4E10S14S16S18S20S22S26RS4E30S34S36S38S40S42S
  20172. tmpNextIndex
  20173. tmpCurIndex
  20174. tmpMaxListedX
  20175.     0R1S2S3S5S9S10S14S
  20176. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn019.gif">
  20177. </TD><TD WIDTH="99%">Send Invitations To:</TD></TR></TABLE><!-- end #1.2.1 --></TD><TD WIDTH="99%">
  20178. tmpSendTo
  20179. dispSendTo
  20180. </TD></TR><TR VALIGN=top><TD WIDTH="1%"><!-- #1.2.2 --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20181. tmpNewList
  20182. tmpAddressList
  20183.     1S2S12S16S
  20184. tmpCopyTo
  20185. tmpCopyTo
  20186. tmpNewList
  20187. tmpCopyTo
  20188. tmpNewList
  20189.     0R1S2S3S2E9S10S12S14S18S22S25S26S27S
  20190. tmpSearchString
  20191. tmpCurIndex
  20192. Domino
  20193. LoadAddressListByIndex
  20194. TargetNAB
  20195. tmpAddressList
  20196. tmpMaxListed
  20197. tmpCurIndex
  20198. tmpCurIndex
  20199. Domino
  20200. LoadAddressListByName
  20201. TargetNAB
  20202. tmpAddressList
  20203. tmpMaxListed
  20204. tmpSearchString
  20205.     0R3S4S6RS4E10S14S16S18S20S22S26RS4E30S34S36S38S40S42S
  20206. tmpNextIndex
  20207. tmpCurIndex
  20208. tmpMaxListedX
  20209.     0R1S2S3S5S9S10S14S
  20210. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn019.gif">
  20211. </TD><TD WIDTH="99%">Optional Invitees Are:</TD></TR></TABLE><!-- end #1.2.2 --></TD><TD WIDTH="99%">
  20212. tmpCopyTo
  20213. dispCopyTo
  20214. </TD></TR><TR VALIGN=top><TD WIDTH="1%"><!-- #1.2.3 --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20215. </TD><TD WIDTH="99%"></TD></TR></TABLE><!-- end #1.2.3 ... spacer gif to follow -->
  20216. !!!)))111999BBBJJJRRRZZZccckkksss
  20217. ssc11
  20218. B9{1)
  20219. cR1skZ
  20220. {sc11)
  20221. {sBsk9cZ!
  20222. 11)ccR
  20223. kskZcZ
  20224. !1k)B
  20225. 99RZZ
  20226. 91kB1
  20227. RJsB9k
  20228. 1.26    0.22    Ella
  20229. </TD><TD WIDTH="99%">
  20230. </TD></TR></TABLE><!-- end #1.2 copy to buttons --></TD></TR></TABLE><!-- end #1 -->]
  20231. [<b>  </b>]Tips
  20232.     Select the target 
  20233.     Address Book
  20234.      to be searched. You may add to the list of available address books from the Preference page.
  20235.     Enter the 
  20236.     Target Name
  20237.      to search for, or just the first few letters of a name. Then click on the 
  20238.     Search for Target Name
  20239.      button to initiate the search.
  20240.     Select one or more person or group names from the 
  20241.     Address List
  20242.     . Then click on the 
  20243.     Send Invitations To
  20244.     Optional Invitees Are 
  20245.     buttons to add to the list of recipients for the current mail message.
  20246.     The 
  20247.     Maximum Entries
  20248.      control allows you to select the maximum number of entries to be displayed in the Address List.
  20249.     Use the 
  20250.     Display Previous Entries
  20251.      and the 
  20252.     Display Next Entries
  20253.      buttons to reload the Address List with the previous or next "maximum entries" worth of addresses.
  20254.     Return your selection to the current mail message by clicking on the 
  20255.     Return with address selections
  20256.      button.
  20257.     Return to the current mail message without these selections by clicking on the 
  20258.     Cancel new address selections
  20259.      button.
  20260. AbortGracefully
  20261.     1S2S
  20262. Sorry, but the Address Finder does not understand that action.
  20263. Hidden w/ HTML tag in help description field:
  20264. Domino
  20265. LoadAddressListByIndex
  20266. TargetNAB
  20267. tmpAddressList
  20268. tmpMaxListed
  20269.     4S6S8S10S12S
  20270. tmpCurIndex[<TYPE=hidden >]
  20271. tmpCurIndex
  20272. tmpMaxListedX
  20273.     2S6S7S11StmpNextIndex[<TYPE=hidden >]
  20274. tmpSendTo
  20275.     0S0E
  20276. tmpSendTo[<TYPE=hidden >]
  20277. tmpCopyTo[<TYPE=hidden >]
  20278. tmpBlindCopyTo[<TYPE=hidden >]
  20279. memounid[<TYPE=hidden >]
  20280. AddressBooks[<TYPE=hidden >]
  20281. OrigSendTo[<TYPE=hidden >]
  20282. OrigCopyTo[<TYPE=hidden >]
  20283. OrigBlindCopyTo[<TYPE=hidden >]
  20284. AbortGracefully[<TYPE=hidden >]
  20285. Edit Document
  20286. _Forward
  20287. _Remove From Folder...
  20288. Categori_zel
  20289. SSend
  20290. In Box*
  20291. ($InBox)
  20292. AbortGracefully
  20293.     1S2S
  20294. Calendar
  20295.     1S2S8S12S14S
  20296. path"
  20297. /($Calendar)?OpenView&Grid=
  20298. CalendarProfile
  20299. wCalGridType
  20300.     0R3S4S5S6S7S8S12S0
  20301. AbortGracefully
  20302.     1S2S
  20303. Meetings.
  20304. ($Meetings)
  20305. AbortGracefully
  20306.     1S2S
  20307. To DoC*
  20308. ($ToDo)
  20309. AbortGracefully
  20310.     1S2S
  20311. All Views
  20312. AbortGracefully
  20313.     1S2S
  20314. O=Lotus Notes
  20315. O=Lotus Notes
  20316. PURSAFO
  20317. |.:#U
  20318. O=Lotus Notes
  20319. CN=Lotus Notes Template Development/O=Lotus Notes
  20320. PURSAFO
  20321. Fde!f^^
  20322. $$FormPostOpenAction
  20323. $TypeIcon
  20324. ExpireDate
  20325. ReplyDate
  20326. ComposedDate
  20327. $SCRIPTOBJ_25
  20328. $TITLE
  20329. $INFO
  20330. $WINDOWTITLE
  20331. $Script
  20332. $$Script_O
  20333. $$ScriptName
  20334. $$FormScript
  20335. $$$FormScript_O
  20336. $BODY
  20337. $ACTIONS
  20338. Times New Roman
  20339. VersionOpt|
  20340.     6S7S9S14S
  20341. $VersionOpt
  20342.     0R1S2S3S
  20343. SavedOnce
  20344.     0R1S2S3S
  20345. PostedDate(
  20346.     0R1S2S3S
  20347. DeliveredDate
  20348.     0R1S2S3S
  20349. $AutoEditMode
  20350.     0R1S2S3S
  20351. MailSaveOptions
  20352.     0R1S2S3S
  20353. VersionOpt
  20354.     0R4S
  20355. Address Finder
  20356. '++LotusScript Development Environment:2:5:(Options):0:74
  20357. Option Public
  20358. '++LotusScript Development Environment:2:5:(Forward):0:1
  20359. '++LotusScript Development Environment:2:5:(Declarations):0:2
  20360.  wAddressTask'++LotusScript Development Environment:2:5:(Options):0:66
  20361. '++LotusScript Development Environment:2:5:(Forward):0:1
  20362. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  20363. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  20364. Declare Sub Postmodechange(Source As Notesuidocument)
  20365. Declare Sub Postopen(Source As Notesuidocument)
  20366. Declare Sub Initialize
  20367. '++LotusScript Development Environment:2:5:(Declarations):0:2
  20368. '++LotusScript Development Environment:2:2:BindEvents:1:129
  20369. Private Sub BindEvents(Byval Objectname_ As String)
  20370.      Static Source As NOTESUIDOCUMENT
  20371.      Set Source = Bind(Objectname_)
  20372.      On Event Querysave From Source Call Querysave
  20373.      On Event Queryclose From Source Call Queryclose
  20374.      On Event Postmodechange From Source Call Postmodechange
  20375.      On Event Postopen From Source Call Postopen
  20376. End Sub
  20377. '++LotusScript Development Environment:2:2:Querysave:1:12
  20378. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  20379.      
  20380. End Sub
  20381. '++LotusScript Development Environment:2:2:Queryclose:1:12
  20382. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  20383.      
  20384. End Sub
  20385. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  20386. Sub Postmodechange(Source As Notesuidocument)
  20387.      
  20388. End Sub
  20389. '++LotusScript Development Environment:2:2:Postopen:1:12
  20390. Sub Postopen(Source As Notesuidocument)
  20391.      
  20392. End Sub
  20393. '++LotusScript Development Environment:2:2:Initialize:1:10
  20394. Sub Initialize
  20395.      
  20396. End Sub
  20397.     Hidden:
  20398. wAddressOpen
  20399. $$QueryOpenAgent
  20400. wAddressSave
  20401. $$QuerySaveAgent
  20402. SaveOptions
  20403. Path_Info
  20404. Path_Info
  20405. Query_string
  20406. Query_string[<TYPE=hidden >]
  20407. AbortGracefully
  20408.     1S2S
  20409. [<b>   </b>]Address Finder
  20410. [<!-- #1 --><TABLE WIDTH="100%"><TR><TD WIDTH="1%"><!-- #1.0 spacer --><TABLE WIDTH="100%"><TR><TD>
  20411. Address Book:<BR>
  20412. names.nsf
  20413. TargetNAB
  20414. AddressBooks
  20415. </TD></TR></TABLE><!-- end #1.0 spacer -->
  20416. </TD><TD WIDTH="99%"><!-- #1.a spacer --><TABLE WIDTH="100%"><TR><TD WIDTH="1%">Target Name:<BR>
  20417. tmpSearchString
  20418. </TD><TD WIDTH="99%">  Maximum Entries:<BR> 
  20419. tmpMaxListed
  20420. 1050100250500
  20421. </TD></TR></TABLE><!-- end #1.a spacer --></TD></TR><TR><TD WIDTH="1%"> Address List:</TD><TD WIDTH="99%"></TD></TR><TR VALIGN=top><TD WIDTH="1%"> 
  20422. tmpAddressList
  20423. tmpAddressList
  20424. </TD><TD WIDTH="99%"><!-- #1.1 refresh buttons spacing --><TABLE WIDTH="100%"><TR VALIGN=top><TD><!-- #1.1.1 refresh buttons --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20425.     0S0E
  20426.     0S0E
  20427. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn010.gif">
  20428. </TD><TD WIDTH="99%">Return with address selections</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20429. tmpSendTo
  20430. origSendTo
  20431. tmpcopyTo
  20432. origCopyTo
  20433.     0R1S
  20434. tmpBlindCopyTo
  20435. origBlindCopyTo
  20436.     0R1S
  20437. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn011.gif">
  20438. </TD><TD WIDTH="99%">Cancel new address selections</TD></TR>
  20439. <TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20440. tmpCurIndex
  20441. Domino
  20442. LoadAddressListByName
  20443. TargetNAB
  20444. tmpAddressList
  20445. tmpMaxListed
  20446. tmpSearchString
  20447.     1S2S3S7S9S11S13S15S
  20448. tmpNextIndex
  20449. tmpCurIndex
  20450. tmpMaxListedX
  20451.     0R1S2S3S5S9S10S14S
  20452. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn023.gif">
  20453. </TD><TD WIDTH="99%">Search for Target Name</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20454. tmpMax
  20455. tmpMaxListedX
  20456.     1S2S
  20457. tmpIndexStr
  20458. tmpCurIndex
  20459. tmpMax#
  20460.     0R1S2S8S9S
  20461. tmpCurIndex
  20462. Domino
  20463. LoadAddressListByIndex
  20464. TargetNAB
  20465. tmpAddressList
  20466. tmpMaxListed
  20467. tmpIndexStr
  20468.     0R1S2S3S7S9S11S13S15S
  20469. tmpNextIndex
  20470. tmpCurIndex
  20471. tmpMax"
  20472.     0R1S2S3S5S9S10S11S
  20473. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn095.gif">
  20474. </TD><TD WIDTH="99%">Display Previous Entries</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20475. tmpCurIndex
  20476. Domino
  20477. LoadAddressListByIndex
  20478. TargetNAB
  20479. tmpAddressList
  20480. tmpMaxListed
  20481. tmpNextIndex
  20482.     1S2S3S7S9S11S13S15S
  20483. tmpNextIndex
  20484. tmpCurIndex
  20485. tmpMaxListedX
  20486.     0R1S2S3S5S9S10S14S
  20487. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn094.gif">
  20488. </TD><TD WIDTH="99%">Display Next Entries</TD></TR>
  20489. </TABLE><!-- end #1.1.1 refresh buttons --></TD></TR></TABLE><!-- end #1.1 refresh buttons spacing --><BR><!-- #1.2 copy to buttons --><TABLE WIDTH="100%"><TR><TD WIDTH="1%"><!-- #1.2.1 --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20490. tmpNewList
  20491. tmpAddressList
  20492.     1S2S12S16S
  20493. tmpSendTo
  20494. tmpSendTo
  20495. tmpNewList
  20496. tmpSendTo
  20497. tmpNewList
  20498.     0R1S2S3S2E9S10S12S14S18S22S25S26S27S
  20499. tmpSearchString
  20500. tmpCurIndex
  20501. Domino
  20502. LoadAddressListByIndex
  20503. TargetNAB
  20504. tmpAddressList
  20505. tmpMaxListed
  20506. tmpCurIndex
  20507. tmpCurIndex
  20508. Domino
  20509. LoadAddressListByName
  20510. TargetNAB
  20511. tmpAddressList
  20512. tmpMaxListed
  20513. tmpSearchString
  20514.     0R3S4S6RS4E10S14S16S18S20S22S26RS4E30S34S36S38S40S42S
  20515. tmpNextIndex
  20516. tmpCurIndex
  20517. tmpMaxListedX
  20518.     0R1S2S3S5S9S10S14S
  20519. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn019.gif">
  20520. </TD><TD WIDTH="99%">Assign To:</TD></TR></TABLE><!-- end #1.2.1 --></TD><TD WIDTH="99%">
  20521. tmpSendTo
  20522. dispSendTo
  20523. </TD></TR><TR VALIGN=top><TD WIDTH="1%"><!-- #1.2.2 --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20524. tmpNewList
  20525. tmpAddressList
  20526.     1S2S12S16S
  20527. tmpCopyTo
  20528. tmpCopyTo
  20529. tmpNewList
  20530. tmpCopyTo
  20531. tmpNewList
  20532.     0R1S2S3S2E9S10S12S14S18S22S25S26S27S
  20533. tmpSearchString
  20534. tmpCurIndex
  20535. Domino
  20536. LoadAddressListByIndex
  20537. TargetNAB
  20538. tmpAddressList
  20539. tmpMaxListed
  20540. tmpCurIndex
  20541. tmpCurIndex
  20542. Domino
  20543. LoadAddressListByName
  20544. TargetNAB
  20545. tmpAddressList
  20546. tmpMaxListed
  20547. tmpSearchString
  20548.     0R3S4S6RS4E10S14S16S18S20S22S26RS4E30S34S36S38S40S42S
  20549. tmpNextIndex
  20550. tmpCurIndex
  20551. tmpMaxListedX
  20552.     0R1S2S3S5S9S10S14S
  20553. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn019.gif">
  20554. </TD><TD WIDTH="99%">Copy To: </TD></TR></TABLE><!-- end #1.2.2 --></TD><TD WIDTH="99%">
  20555. tmpCopyTo
  20556. dispCopyTo
  20557. </TD></TR><TR VALIGN=top><TD WIDTH="1%"><!-- #1.2.3 --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20558. </TD><TD WIDTH="99%"></TD></TR></TABLE><!-- end #1.2.3 ... spacer gif to follow -->
  20559. !!!)))111999BBBJJJRRRZZZccckkksss
  20560. ssc11
  20561. B9{1)
  20562. cR1skZ
  20563. {sc11)
  20564. {sBsk9cZ!
  20565. 11)ccR
  20566. kskZcZ
  20567. !1k)B
  20568. 99RZZ
  20569. 91kB1
  20570. RJsB9k
  20571. 1.26    0.22    Ella
  20572. </TD><TD WIDTH="99%">
  20573. </TD></TR></TABLE><!-- end #1.2 copy to buttons --></TD></TR></TABLE><!-- end #1 -->]
  20574. [<b>  </b>]Tips
  20575.     Select the target 
  20576.     Address Book
  20577.      to be searched. You may add to the list of available address books from the Preference page.
  20578.     Enter the 
  20579.     Target Name
  20580.      to search for, or just the first few letters of a name. Then click on the 
  20581.     Search for Target Name
  20582.      button to initiate the search.
  20583.     Select one or more person or group names from the 
  20584.     Address List
  20585.     . Then click on the 
  20586.     Assign To
  20587.      or 
  20588.     Copy To 
  20589.     buttons to add to the list of recipients for the current mail message.
  20590.     The 
  20591.     Maximum Entries
  20592.      control allows you to select the maximum number of entries to be displayed in the Address List.
  20593.     Use the 
  20594.     Display Previous Entries
  20595.      and the 
  20596.     Display Next Entries
  20597.      buttons to reload the Address List with the previous or next "maximum entries" worth of addresses.
  20598.     Return your selection to the current mail message by clicking on the 
  20599.     Return with address selections
  20600.      button.
  20601.     Return to the current mail message without these selections by clicking on the 
  20602.     Cancel new address selections
  20603.      button.
  20604. AbortGracefully
  20605.     1S2S
  20606. Sorry, but the Address Finder does not understand that action.
  20607. Hidden w/ HTML tag in help description field:
  20608. Domino
  20609. LoadAddressListByIndex
  20610. TargetNAB
  20611. tmpAddressList
  20612. tmpMaxListed
  20613.     4S6S8S10S12S
  20614. tmpCurIndex[<TYPE=hidden >]
  20615. tmpCurIndex
  20616. tmpMaxListedX
  20617.     2S6S7S11StmpNextIndex[<TYPE=hidden >]
  20618. tmpSendTo
  20619.     0S0E
  20620. tmpSendTo[<TYPE=hidden >]
  20621. tmpCopyTo[<TYPE=hidden >]
  20622. tmpBlindCopyTo[<TYPE=hidden >]
  20623. memounid[<TYPE=hidden >]
  20624. AddressBooks[<TYPE=hidden >]
  20625. OrigSendTo[<TYPE=hidden >]
  20626. OrigCopyTo[<TYPE=hidden >]
  20627. OrigBlindCopyTo[<TYPE=hidden >]
  20628. AbortGracefully[<TYPE=hidden >]
  20629. Edit Document
  20630. _Forward
  20631. _Remove From Folder...
  20632. Categori_zel
  20633. SSendm
  20634. In Box*
  20635. ($InBox)
  20636. AbortGracefully
  20637.     1S2S
  20638. Calendar
  20639.     1S2S8S12S14S
  20640. path"
  20641. /($Calendar)?OpenView&Grid=
  20642. CalendarProfile
  20643. wCalGridType
  20644.     0R3S4S5S6S7S8S12S0
  20645. AbortGracefully
  20646.     1S2S
  20647. Meetings.
  20648. ($Meetings)
  20649. AbortGracefully
  20650.     1S2S
  20651. To Do
  20652. ($ToDo)
  20653. AbortGracefully
  20654.     1S2S
  20655. All Views
  20656. AbortGracefully
  20657.     1S2S
  20658. O=Lotus Notes
  20659. O=Lotus Notes
  20660. PURSAFO
  20661. |.:#U
  20662. O=Lotus Notes
  20663. CN=Lotus Notes Template Development/O=Lotus Notes
  20664. PURSAFO
  20665. Fde!f^^
  20666. $$FormPostOpenAction
  20667. $TypeIcon
  20668. ExpireDate
  20669. ReplyDate
  20670. ComposedDate
  20671. $SCRIPTOBJ_25
  20672. $TITLE
  20673. $INFO
  20674. $WINDOWTITLE
  20675. $Script
  20676. $$Script_O
  20677. $$ScriptName
  20678. $$FormScript
  20679. $$$FormScript_O
  20680. $BODY
  20681. $ACTIONS
  20682. Times New Roman
  20683. VersionOpt|
  20684.     6S7S9S14S
  20685. $VersionOpt
  20686.     0R1S2S3S
  20687. SavedOnce
  20688.     0R1S2S3S
  20689. PostedDate(
  20690.     0R1S2S3S
  20691. DeliveredDate
  20692.     0R1S2S3S
  20693. $AutoEditMode
  20694.     0R1S2S3S
  20695. MailSaveOptions
  20696.     0R1S2S3S
  20697. VersionOpt
  20698.     0R4S
  20699. Address Finder
  20700. '++LotusScript Development Environment:2:5:(Options):0:74
  20701. Option Public
  20702. '++LotusScript Development Environment:2:5:(Forward):0:1
  20703. '++LotusScript Development Environment:2:5:(Declarations):0:2
  20704.  wAddress'++LotusScript Development Environment:2:5:(Options):0:66
  20705. '++LotusScript Development Environment:2:5:(Forward):0:1
  20706. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  20707. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  20708. Declare Sub Postmodechange(Source As Notesuidocument)
  20709. Declare Sub Postopen(Source As Notesuidocument)
  20710. Declare Sub Initialize
  20711. '++LotusScript Development Environment:2:5:(Declarations):0:2
  20712. '++LotusScript Development Environment:2:2:BindEvents:1:129
  20713. Private Sub BindEvents(Byval Objectname_ As String)
  20714.      Static Source As NOTESUIDOCUMENT
  20715.      Set Source = Bind(Objectname_)
  20716.      On Event Querysave From Source Call Querysave
  20717.      On Event Queryclose From Source Call Queryclose
  20718.      On Event Postmodechange From Source Call Postmodechange
  20719.      On Event Postopen From Source Call Postopen
  20720. End Sub
  20721. '++LotusScript Development Environment:2:2:Querysave:1:12
  20722. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  20723.      
  20724. End Sub
  20725. '++LotusScript Development Environment:2:2:Queryclose:1:12
  20726. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  20727.      
  20728. End Sub
  20729. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  20730. Sub Postmodechange(Source As Notesuidocument)
  20731.      
  20732. End Sub
  20733. '++LotusScript Development Environment:2:2:Postopen:1:12
  20734. Sub Postopen(Source As Notesuidocument)
  20735.      
  20736. End Sub
  20737. '++LotusScript Development Environment:2:2:Initialize:1:10
  20738. Sub Initialize
  20739.      
  20740. End Sub
  20741.     Hidden:
  20742. wAddressOpen
  20743. $$QueryOpenAgent
  20744. wAddressSave
  20745. $$QuerySaveAgent
  20746. SaveOptions
  20747. Path_Info
  20748. Path_Info
  20749. Query_string
  20750. Query_string[<TYPE=hidden >]
  20751. AbortGracefully
  20752.     1S2S
  20753. [<b>   </b>]Address Finder
  20754. [<!-- #1 --><TABLE WIDTH="100%"><TR><TD WIDTH="1%"><!-- #1.0 spacer --><TABLE WIDTH="100%"><TR><TD>
  20755. Address Book:<BR>
  20756. names.nsf
  20757. TargetNAB
  20758. AddressBooks
  20759. </TD></TR></TABLE><!-- end #1.0 spacer -->
  20760. </TD><TD WIDTH="99%"><!-- #1.a spacer --><TABLE WIDTH="100%"><TR><TD WIDTH="1%">Target Name:<BR>
  20761. tmpSearchString
  20762. </TD><TD WIDTH="99%">  Maximum Entries:<BR> 
  20763. tmpMaxListed
  20764. 1050100250500
  20765. </TD></TR></TABLE><!-- end #1.a spacer --></TD></TR><TR><TD WIDTH="1%"> Address List:</TD><TD WIDTH="99%"></TD></TR><TR VALIGN=top><TD WIDTH="1%"> 
  20766. tmpAddressList
  20767. tmpAddressList
  20768. </TD><TD WIDTH="99%"><!-- #1.1 refresh buttons spacing --><TABLE WIDTH="100%"><TR VALIGN=top><TD><!-- #1.1.1 refresh buttons --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20769.     0S0E
  20770.     0S0E
  20771. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn010.gif">
  20772. </TD><TD WIDTH="99%">Return with address selections</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20773. tmpSendTo
  20774. origSendTo
  20775. tmpcopyTo
  20776. origCopyTo
  20777.     0R1S
  20778. tmpBlindCopyTo
  20779. origBlindCopyTo
  20780.     0R1S
  20781. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn011.gif">
  20782. </TD><TD WIDTH="99%">Cancel new address selections</TD></TR>
  20783. <TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20784. tmpCurIndex
  20785. Domino
  20786. LoadAddressListByName
  20787. TargetNAB
  20788. tmpAddressList
  20789. tmpMaxListed
  20790. tmpSearchString
  20791.     1S2S3S7S9S11S13S15S
  20792. tmpNextIndex
  20793. tmpCurIndex
  20794. tmpMaxListedX
  20795.     0R1S2S3S5S9S10S14S
  20796. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn023.gif">
  20797. </TD><TD WIDTH="99%">Search for Target Name</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20798. tmpMax
  20799. tmpMaxListedX
  20800.     1S2S
  20801. tmpIndexStr
  20802. tmpCurIndex
  20803. tmpMax#
  20804.     0R1S2S8S9S
  20805. tmpCurIndex
  20806. Domino
  20807. LoadAddressListByIndex
  20808. TargetNAB
  20809. tmpAddressList
  20810. tmpMaxListed
  20811. tmpIndexStr
  20812.     0R1S2S3S7S9S11S13S15S
  20813. tmpNextIndex
  20814. tmpCurIndex
  20815. tmpMax"
  20816.     0R1S2S3S5S9S10S11S
  20817. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn095.gif">
  20818. </TD><TD WIDTH="99%">Display Previous Entries</TD></TR><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20819. tmpCurIndex
  20820. Domino
  20821. LoadAddressListByIndex
  20822. TargetNAB
  20823. tmpAddressList
  20824. tmpMaxListed
  20825. tmpNextIndex
  20826.     1S2S3S7S9S11S13S15S
  20827. tmpNextIndex
  20828. tmpCurIndex
  20829. tmpMaxListedX
  20830.     0R1S2S3S5S9S10S14S
  20831. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn094.gif">
  20832. </TD><TD WIDTH="99%">Display Next Entries</TD></TR>
  20833. </TABLE><!-- end #1.1.1 refresh buttons --></TD></TR></TABLE><!-- end #1.1 refresh buttons spacing --><BR><!-- #1.2 copy to buttons --><TABLE WIDTH="100%"><TR><TD WIDTH="1%"><!-- #1.2.1 --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20834. tmpNewList
  20835. tmpAddressList
  20836.     1S2S12S16S
  20837. tmpSendTo
  20838. tmpSendTo
  20839. tmpNewList
  20840. tmpSendTo
  20841. tmpNewList
  20842.     0R1S2S3S2E9S10S12S14S18S22S25S26S27S
  20843. tmpSearchString
  20844. tmpCurIndex
  20845. Domino
  20846. LoadAddressListByIndex
  20847. TargetNAB
  20848. tmpAddressList
  20849. tmpMaxListed
  20850. tmpCurIndex
  20851. tmpCurIndex
  20852. Domino
  20853. LoadAddressListByName
  20854. TargetNAB
  20855. tmpAddressList
  20856. tmpMaxListed
  20857. tmpSearchString
  20858.     0R3S4S6RS4E10S14S16S18S20S22S26RS4E30S34S36S38S40S42S
  20859. tmpNextIndex
  20860. tmpCurIndex
  20861. tmpMaxListedX
  20862.     0R1S2S3S5S9S10S14S
  20863. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn019.gif">
  20864. </TD><TD WIDTH="99%">Send To:</TD></TR></TABLE><!-- end #1.2.1 --></TD><TD WIDTH="99%">
  20865. tmpSendTo
  20866. dispSendTo
  20867. </TD></TR><TR VALIGN=top><TD WIDTH="1%"><!-- #1.2.2 --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20868. tmpNewList
  20869. tmpAddressList
  20870.     1S2S12S16S
  20871. tmpCopyTo
  20872. tmpCopyTo
  20873. tmpNewList
  20874. tmpCopyTo
  20875. tmpNewList
  20876.     0R1S2S3S2E9S10S12S14S18S22S25S26S27S
  20877. tmpSearchString
  20878. tmpCurIndex
  20879. Domino
  20880. LoadAddressListByIndex
  20881. TargetNAB
  20882. tmpAddressList
  20883. tmpMaxListed
  20884. tmpCurIndex
  20885. tmpCurIndex
  20886. Domino
  20887. LoadAddressListByName
  20888. TargetNAB
  20889. tmpAddressList
  20890. tmpMaxListed
  20891. tmpSearchString
  20892.     0R3S4S6RS4E10S14S16S18S20S22S26RS4E30S34S36S38S40S42S
  20893. tmpNextIndex
  20894. tmpCurIndex
  20895. tmpMaxListedX
  20896.     0R1S2S3S5S9S10S14S
  20897. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn019.gif">
  20898. </TD><TD WIDTH="99%">Copy To:</TD></TR></TABLE><!-- end #1.2.2 --></TD><TD WIDTH="99%">
  20899. tmpCopyTo
  20900. dispCopyTo
  20901. </TD></TR><TR VALIGN=top><TD WIDTH="1%"><!-- #1.2.3 --><TABLE WIDTH="100%"><TR VALIGN=top><TD WIDTH="1%" BGCOLOR="c0c0c0">
  20902. tmpNewList
  20903. tmpAddressList
  20904.     1S2S12S16S
  20905. tmpBlindCopyTo
  20906. tmpBlindCopyTo^
  20907. tmpNewList
  20908. tmpBlindCopyTo
  20909. tmpNewList
  20910.     0R1S2S3S2E9S10S12S14S18S22S25S26S27S
  20911. tmpSearchString
  20912. tmpCurIndex
  20913. Domino
  20914. LoadAddressListByIndex
  20915. TargetNAB
  20916. tmpAddressList
  20917. tmpMaxListed
  20918. tmpCurIndex
  20919. tmpCurIndex
  20920. Domino
  20921. LoadAddressListByName
  20922. TargetNAB
  20923. tmpAddressList
  20924. tmpMaxListed
  20925. tmpSearchString
  20926.     0R3S4S6RS4E10S14S16S18S20S22S26RS4E30S34S36S38S40S42S
  20927. tmpNextIndex
  20928. tmpCurIndex
  20929. tmpMaxListedX
  20930.     0R1S2S3S5S9S10S14S
  20931. <IMG BORDER=0 WIDTH=21 HEIGHT=21 SRC="/icons/actn019.gif">
  20932. </TD><TD WIDTH="99%">Blind Copy To:</TD></TR></TABLE><!-- end #1.2.3 ... spacer gif to follow -->
  20933. !!!)))111999BBBJJJRRRZZZccckkksss
  20934. ssc11
  20935. B9{1)
  20936. cR1skZ
  20937. {sc11)
  20938. {sBsk9cZ!
  20939. 11)ccR
  20940. kskZcZ
  20941. !1k)B
  20942. 99RZZ
  20943. 91kB1
  20944. RJsB9k
  20945. 1.26    0.22    Ella
  20946. </TD><TD WIDTH="99%">
  20947. tmpBlindCopyTo
  20948. dispBlindCopyTo
  20949. </TD></TR></TABLE><!-- end #1.2 copy to buttons --></TD></TR></TABLE><!-- end #1 -->]
  20950. [<b>  </b>]Tips
  20951.     Select the target 
  20952.     Address Book
  20953.      to be searched. You may add to the list of available address books from the Preference page.
  20954.     Enter the 
  20955.     Target Name
  20956.      to search for, or just the first few letters of a name. Then click on the 
  20957.     Search for Target Name
  20958.      button to initiate the search.
  20959.     Select one or more person or group names from the 
  20960.     Address List
  20961.     . Then click on the 
  20962.     Send To
  20963.     Copy To 
  20964.     Blind Copy To 
  20965.     buttons to add to the list of recipients for the current mail message.
  20966.     The 
  20967.     Maximum Entries
  20968.      control allows you to select the maximum number of entries to be 
  20969.     displayed 
  20970.     in the Address List.
  20971.     Use the 
  20972.     Display Previous Entries
  20973.      and the 
  20974.     Display Next Entries
  20975.      buttons to reload the Address List with the previous or next "maximum entries" worth of addresses.
  20976.     Return your selection to the current mail message by clicking on the 
  20977.     Return with address selections
  20978.      button.
  20979.     Return to the current mail message without these selections by clicking on the 
  20980.     Cancel new address selections
  20981.      button.
  20982. AbortGracefully
  20983.     1S2S
  20984. Sorry, but the Address Finder does not understand that action.
  20985. Hidden w/ HTML tag in help description field:
  20986. Domino
  20987. LoadAddressListByIndex
  20988. TargetNAB
  20989. tmpAddressList
  20990. tmpMaxListed
  20991.     4S6S8S10S12S
  20992. tmpCurIndex[<TYPE=hidden >]
  20993. tmpCurIndex
  20994. tmpMaxListedX
  20995.     2S6S7S11StmpNextIndex[<TYPE=hidden >]
  20996. tmpSendTo
  20997.     0S0E
  20998. tmpSendTo[<TYPE=hidden >]
  20999. tmpCopyTo[<TYPE=hidden >]
  21000. tmpBlindCopyTo[<TYPE=hidden >]
  21001. memounid[<TYPE=hidden >]
  21002. AddressBooks[<TYPE=hidden >]
  21003. OrigSendTo[<TYPE=hidden >]
  21004. OrigCopyTo[<TYPE=hidden >]
  21005. OrigBlindCopyTo[<TYPE=hidden >]
  21006. AbortGracefully[<TYPE=hidden >]
  21007. Edit Document
  21008. _Forward
  21009. _Remove From Folder...
  21010. Categori_zet
  21011. SSendt
  21012. In Box*
  21013. ($InBox)
  21014. AbortGracefully
  21015.     1S2S
  21016. Calendar
  21017.     1S2S8S12S14S
  21018. path"
  21019. /($Calendar)?OpenView&Grid=
  21020. CalendarProfile
  21021. wCalGridType
  21022.     0R3S4S5S6S7S8S12S0
  21023. AbortGracefully
  21024.     1S2S
  21025. Meetings.
  21026. ($Meetings)
  21027. AbortGracefully
  21028.     1S2S
  21029. To Do
  21030. ($ToDo)
  21031. AbortGracefully
  21032.     1S2S
  21033. All Views
  21034. AbortGracefully
  21035.     1S2S
  21036. O=Lotus Notes
  21037. O=Lotus Notes
  21038. PURSAFO
  21039. |.:#U
  21040. O=Lotus Notes
  21041. CN=Lotus Notes Template Development/O=Lotus Notes
  21042. PURSAFO
  21043. Fde!f^^
  21044. $$FormPostOpenAction
  21045. $TypeIcon
  21046. ExpireDate
  21047. ReplyDate
  21048. ComposedDate
  21049. $SCRIPTOBJ_25
  21050. $TITLE
  21051. $INFO
  21052. $WINDOWTITLE
  21053. $Script
  21054. $$Script_O
  21055. $$ScriptName
  21056. $$FormScript
  21057. $$$FormScript_O
  21058. $BODY
  21059. $ACTIONS
  21060. '++LotusScript Development Environment:2:5:(Options):0:66
  21061. '++LotusScript Development Environment:2:5:(Forward):0:1
  21062. Declare Sub Initialize
  21063. Declare Sub Terminate
  21064. Declare Sub Main
  21065. Declare Sub GetProfileSettings
  21066. Declare Sub CreateLogDocument
  21067. Declare Sub ProcessDocuments
  21068. Declare Sub EvaluateDocument
  21069. Declare Sub ArchiveDocument
  21070. Declare Sub FixReaderNames
  21071. Declare Sub AddDocumentToLog
  21072. Declare Sub CloseLogDocument
  21073. Declare Sub MarkLogDocuments
  21074. '++LotusScript Development Environment:2:5:(Declarations):0:10
  21075. '%INCLUDE "lserr.lss"
  21076. '%INCLUDE "lsxbeerr.lss"
  21077. Const MAXARCHIVEITEMS = 50
  21078. Dim session As NotesSession
  21079. Dim dbSource As NotesDatabase
  21080. Dim dbArchive As NotesDatabase
  21081. Dim docSource As NotesDocument
  21082. Dim docArchive As NotesDocument
  21083. Dim docLog As NotesDocument
  21084. Dim docProfile As NotesDocument
  21085. Dim viewArchive As NotesView
  21086. Dim dtNow As NotesDateTime
  21087. Dim dtExpired As NotesDateTime
  21088. Dim dtDocument As NotesDateTime
  21089. Dim dtCompare As NotesDateTime
  21090. Dim docsCollection As NotesDocumentCollection
  21091. Dim rtitem As NotesRichTextItem
  21092. Dim item As NotesItem
  21093. Dim nidArray() As String
  21094. Dim SourcePath As String
  21095. Dim SourceServer As String
  21096. Dim ArchiveServer As String
  21097. Dim ArchivePath As String
  21098. Dim ArchiveLog As String
  21099. Dim IncludeDocLinks As String
  21100. Dim ArchiveExpired As String
  21101. Dim ArchiveInactive As String
  21102. Dim ExpiredLife As Integer
  21103. Dim DocumentLife As Integer
  21104. Dim nLogItems As Integer
  21105. Dim numDocs As Integer
  21106. Dim numDocsArchived As Integer
  21107. Dim i As Integer
  21108. Dim DoNotRun As Variant
  21109. Dim DocCanBeArchived As Variant
  21110. '++LotusScript Development Environment:2:2:Initialize:1:10
  21111. Sub Initialize
  21112.      'initialize some variables
  21113.      Set session = New NotesSession
  21114.      Set dbSource = session.CurrentDatabase
  21115.      Redim nidArray(5)
  21116.      nLogItems = 0
  21117.      numDocsArchived = 0
  21118.      'call the main entry point
  21119.      Main     
  21120. End Sub
  21121. '++LotusScript Development Environment:2:2:Terminate:1:10
  21122. Sub Terminate
  21123.      
  21124. End Sub
  21125. '++LotusScript Development Environment:2:2:Main:1:8
  21126. Sub Main
  21127. 'Read the profile document to see what options are enabled and where databases are located
  21128.      GetProfileSettings
  21129.      If DoNotRun Then Exit Sub
  21130.      
  21131. 'setup the date/time structures
  21132.      Set dtNow = New NotesDateTime("")
  21133.      Set dtExpired = New NotesDateTime("")
  21134.      Set dtDocument = New NotesDateTime("")
  21135.      Set dtCompare = New NotesDateTime("")
  21136.      dtNow.SetNow
  21137.      dtExpired.SetNow
  21138.      dtDocument.SetNow
  21139.      dtCompare.SetNow
  21140.      If ArchiveExpired = "Yes" Then dtExpired.AdjustDay(ExpiredLife * -1)
  21141.      If ArchiveInactive = "Yes" Then dtDocument.AdjustDay(DocumentLife * -1)     
  21142.      
  21143. 'open the archive database
  21144.      
  21145.      On Error Resume Next
  21146.      Set dbArchive = New NotesDatabase(ArchiveServer,ArchivePath)
  21147.      If Err = 4060 Then Goto ErrNoDBAccess
  21148.      
  21149.      If Not (dbArchive.IsOpen) Then
  21150.           Messagebox "Unable to open archive database.",16,"Error"
  21151.           Exit Sub
  21152.      End If
  21153.      
  21154.      'see if we are logging documents, if we are, then create the first one
  21155.      If ArchiveLog = "Yes" Then CreateLogDocument
  21156.      'process the documents in the database
  21157.      'this finds all documents that needs to be archived, archives them, logs them (if necessary), and removes them from this database
  21158.      ProcessDocuments
  21159.      'mark the log documents in terms of x out of y
  21160.      If ArchiveLog = "Yes" Then MarkLogDocuments
  21161.      Exit Sub
  21162.      
  21163. ErrNoDBAccess:
  21164.      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"
  21165.      Exit Sub
  21166. End Sub
  21167. '++LotusScript Development Environment:2:2:GetProfileSettings:1:8
  21168. Sub GetProfileSettings
  21169.      'reads the profile document
  21170.      Set view = dbSource.GetView("Archiving")
  21171.      key = "Archive Profile"
  21172.      Set docProfile = view.GetDocumentByKey(key,False)
  21173.      If docProfile Is Nothing Then
  21174.           'there is no profile document so exit
  21175.           DoNotRun = True
  21176.      Elseif docProfile.ArchivePath(0) = "" Then
  21177.           'there is no archive database
  21178.           Msgbox "You need to specify a location for the archive database.",16,"Error"          
  21179.           DoNotRun = True
  21180.      Else
  21181.           DoNotRun = False
  21182.           ArchiveExpired = docProfile.ArchiveExpired(0)
  21183.           ArchiveInactive = docProfile.ArchiveInactive(0)
  21184.           DocumentLife = docProfile.DocumentLife(0)
  21185.           ExpiredLife = docProfile.ExpiredLife(0)
  21186.           ArchiveServer = docProfile.ArchiveServer(0)
  21187.           ArchivePath = docProfile.ArchivePath(0)
  21188.           ArchiveLog = docProfile.ArchiveLog(0)
  21189.           IncludeDocLinks = docProfile.IncludeDocLinks(0)
  21190.      End If
  21191. End Sub
  21192. '++LotusScript Development Environment:2:2:CreateLogDocument:1:8
  21193. Sub CreateLogDocument
  21194.      'creates a new log document, incrementing the counter
  21195.      Set docLog = New NotesDocument(dbSource)
  21196.      Set rtitem = New NotesRichTextItem(docLog, "Body")
  21197.      docLog.Form = "Archive Log"
  21198.      dtNow.SetNow
  21199.      docLog.ArchiveDate = dtNow.LSLocalTime
  21200.      docLog.ProtectFromArchive = 1
  21201.      docLog.ExcludeFromView = "D"
  21202.      docLog.From = "Archiving"
  21203.      docLog.Categories = "(Archive)"
  21204.      docLog.ReplaceItemValue "_ViewIcon", 22
  21205.      nLogItems = nLogItems + 1
  21206.      'see if we need to redim the array
  21207.      If nLogItems Mod 6 = 0 Then Redim Preserve nidArray(nLogItems + 4)     
  21208. End Sub
  21209. '++LotusScript Development Environment:2:2:ProcessDocuments:1:8
  21210. Sub ProcessDocuments
  21211.      'get a handle to all of the documents in the database
  21212.      Set docsCollection = dbSource.AllDocuments
  21213.      numDocs = docsCollection.Count
  21214.      For i =1 To numDocs
  21215.           Set docSource = docsCollection.GetNthDocument(i)
  21216.           'see if this document can be archived
  21217.           EvaluateDocument
  21218.           If DocCanBeArchived Then
  21219.                'archive this document
  21220.                ArchiveDocument
  21221.                If ArchiveLog = "Yes" Then AddDocumentToLog
  21222.                docSource.Remove True
  21223.           End If
  21224.           '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
  21225.           If (numDocsArchived Mod MAXARCHIVEITEMS = 0) And (numDocsArchived > 0) Then 
  21226.                If ArchiveLog = "Yes" Then
  21227.                     CloseLogDocument
  21228.                     CreateLogDocument                  
  21229.                End If
  21230.           End If               
  21231.      Next
  21232.      'we are done processing all of the documents, close the last log document (if necessary)
  21233.      If ArchiveLog = "Yes" Then CloseLogDocument
  21234. End Sub
  21235. '++LotusScript Development Environment:2:2:EvaluateDocument:1:8
  21236. Sub EvaluateDocument
  21237.      'checks to see if a document should be archived or not
  21238.      DocCanBeArchived = False
  21239.      'see if this document is protected from archiving
  21240.      If docSource.HasItem("ProtectFromArchive") Then
  21241.           If docSource.ProtectFromArchive(0) = 1 Then Exit Sub        
  21242.      End If
  21243.      
  21244. 'look for a $NoPurge item; if it is a date, compare it to today;
  21245.      If (docSource.HasItem("$NoPurge")) Then
  21246.           Set Purge = docSource.GetFirstItem("$NoPurge")
  21247.           If (Purge.Type = DATETIMES) Then
  21248.                Set enddt = New NotesDateTime("")
  21249.                Set enddt = Purge.DateTimeValue
  21250.                Set nowdt = New NotesDateTime("")
  21251.                nowdt.SetNow
  21252.                If enddt.TimeDifference(nowdt) >= 0 Then Exit Sub
  21253.           Else
  21254.                Exit Sub
  21255.           End If
  21256.      End If
  21257.      
  21258.      'see if we should archive documents that expire
  21259.      If ArchiveExpired = "Yes" Then
  21260.           If docSource.HasItem("ExpireDate") Then
  21261.                Set item = docSource.GetFirstItem("ExpireDate")
  21262.                Set dtCompare = item.DateTimeValue
  21263.                If dtCompare Is Nothing Then
  21264.                     Set dtCompare = New NotesDateTime("")
  21265.                     dtCompare.SetNow
  21266.                Else
  21267.                     If dtExpired.TimeDifference(dtCompare) >= 0 Then
  21268.                          DocCanBeArchived = True
  21269.                          Exit Sub ' we exit here so that we don't archive this document again
  21270.                     End If
  21271.                End If                    
  21272.           End If
  21273.      End If
  21274.      'see if we should archive documents that are inactive
  21275.      If ArchiveInactive = "Yes" Then
  21276.           dtCompare.LSLocalTime = docSource.LastAccessed
  21277.           If dtDocument.TimeDifference(dtCompare) >= 0 Then DocCanBeArchived = True
  21278.      End If
  21279. End Sub
  21280. '++LotusScript Development Environment:2:2:ArchiveDocument:1:8
  21281. Sub ArchiveDocument
  21282.      'copies the source document into the archive database
  21283. $Archived and DateArchived might already be present, if this agent failed the last
  21284. time it was run.  None of these fields should be on the archived copy, because we 
  21285. don't want the archive database to inadvertantly archive these documents (it can
  21286. archive, but it needs to use its own criteria)
  21287. %END REM
  21288.      
  21289.      If docSource.HasItem("$Archived") Then docSource.RemoveItem("$Archived")
  21290.      If docSource.HasItem("DateArchived") Then docSource.RemoveItem("DateArchived")
  21291.      If docSource.HasItem("ExpireDate") Then docSource.RemoveItem("ExpireDate")
  21292.      FixReaderNames
  21293.      docSource.Save True, True
  21294.      Set docArchive = docSource.CopyToDatabase(dbArchive)
  21295.      docSource.DateArchived = dtNow.LSLocalTime    
  21296.      Call docSource.AppendItemValue("$Archived", True)
  21297.      docSource.Save True, True
  21298.      numDocsArchived = numDocsArchived + 1
  21299. End Sub
  21300. '++LotusScript Development Environment:2:2:FixReaderNames:1:8
  21301. Sub FixReaderNames
  21302.      'if the reader access fields are blank, remove them
  21303.      If docSource.HasItem("Readers") Then
  21304.           If docSource.Readers(0) = "" Then docSource.RemoveItem("Readers")
  21305.      End If
  21306.      If docSource.HasItem("DocumentReaders") Then
  21307.           If docSource.DocumentReaders(0) = "" Then docSource.RemoveItem("DocumentReaders")
  21308.      End If
  21309.      
  21310. End Sub
  21311. '++LotusScript Development Environment:2:2:AddDocumentToLog:1:8
  21312. Sub AddDocumentToLog
  21313.      'only called if a document was archived and logging was enabled
  21314.      If IncludeDocLinks = "Yes" Then
  21315.           'the user wants a doclink to the new archived document
  21316.           Call rtitem.AppendDocLink(docArchive, "DocLink to " & docSource.Subject(0))
  21317.           Call rtitem.AddTab(1)
  21318.      End If
  21319.      Call rtitem.AppendText("     " & docSource.Subject(0) & " (created by " & docSource.From(0) &   " on " &_
  21320.      Format(docSource.Created, "Short Date") & ")")
  21321.      Call rtitem.AddNewLine(2)
  21322. End Sub
  21323. '++LotusScript Development Environment:2:2:CloseLogDocument:1:8
  21324. Sub CloseLogDocument
  21325.      'saves the log document, adds the note id to the array,
  21326.      docLog.Save True, True
  21327.      nidArray(nLogItems) = docLog.NoteID
  21328. End Sub
  21329. '++LotusScript Development Environment:2:2:MarkLogDocuments:1:8
  21330. Sub MarkLogDocuments
  21331.      'finds all of the log documents just created and marks them in terms of x out of y
  21332.      For i = 1 To nLogItems
  21333.           Set docLog = dbSource.GetDocumentByID(nidArray(i))
  21334.           If Not (docLog Is Nothing) Then
  21335.                docLog.Subject = "Log Document " &Cstr(i) & " of " & Cstr(nLogItems) & " (" & Format(docLog.Created, "General Date") & ")"
  21336.                docLog.LogCount = Cstr(i)
  21337.                docLog.LogTotal = Cstr(nLogItems)
  21338.                docLog.ArchiveTrailer = "Archive log " & Cstr(i) & "of " & Cstr(nLogItems) & " for documents on server " & _
  21339.                ArchiveServer & " from " & dbSource.Title & " (" & dbSource.FilePath & ") to " & dbArchive.Title & _
  21340.                " (" & ArchivePath & ") completed sucessfully on " & _
  21341.                Format(dtNow.LSLocalTime, "Short Date") & " at " & _
  21342.                Format(dtNow.LSLocalTime, "Long Time") & _
  21343.                ".  Expired documents are archived after " & ExpiredLife & _
  21344.                " days.  All other documents are archived after " & DocumentLife & " days of inactivity."
  21345.                docLog.Save True,True
  21346.                Call docLog.CopyToDatabase(dbArchive)
  21347.           End If
  21348.      Next
  21349. End Sub
  21350. O=Lotus Notes
  21351. O=Lotus Notes
  21352. PURSAFO
  21353. |.:#U
  21354. O=Lotus Notes
  21355. CN=Lotus Notes Template Development/O=Lotus Notes
  21356. PURSAFO
  21357. Fde!f^^
  21358. 7oQ,#
  21359. $TITLE
  21360. $AssistType
  21361. $AssistLastRun
  21362. $AssistDocCount
  21363. $AssistFlags
  21364. $AssistTrigger
  21365. $AssistInfo
  21366. $AssistQuery
  21367. $AssistAction
  21368. $AssistAction_Ex
  21369. '++LotusScript Development Environment:2:5:(Options):0:74
  21370. Option Public
  21371. Use "RepeatProcessing"
  21372. '++LotusScript Development Environment:2:5:(Forward):0:1
  21373. Declare Sub Initialize
  21374. '++LotusScript Development Environment:2:5:(Declarations):0:10
  21375. Dim acl As NotesAcl
  21376. Dim aclentry As NotesAclEntry
  21377. '++LotusScript Development Environment:2:2:Initialize:1:10
  21378. Sub Initialize
  21379.      
  21380.      Set ws = New NotesUIWorkspace
  21381.      Set uidoc = ws.CurrentDocument
  21382.      If Not(uidoc Is Nothing) Then
  21383.           Messagebox "You must close all documents before running the ""Delete Repeating..."" action.", 0, "Delete Repeating"
  21384.           Exit Sub
  21385.      End If
  21386.      
  21387.      Set session = New NotesSession
  21388.      Set db = session.CurrentDatabase
  21389.      
  21390.      Set acl = db.ACL
  21391.      
  21392.      Set aclentry = acl.GetEntry(session.Username)
  21393. 'if not found using distinquished name try with common name     
  21394.      If aclentry Is Nothing Then
  21395.           Set namelookup = New NotesName(session.Username)
  21396.           Set aclentry = acl.GetEntry(namelookup.Common)
  21397. 'if the name is still not found get the default entry          
  21398.           If aclentry Is Nothing Then Set aclentry = acl.GetFirstEntry
  21399.      End If
  21400.      
  21401. 'you must either be a public user or have Can Delete turn on     
  21402.      If Not(aclentry.CanDeleteDocuments) And Not(aclentry.IsPublicWriter) Then
  21403.           Messagebox "You are not authorized to delete documents in this database.", 0, "Delete Repeating"
  21404.           Exit Sub
  21405.      End If
  21406.      
  21407.      Set documents = db.UnprocessedDocuments
  21408.      
  21409. 'we can only realistically do this on one doc at a time.  otherwise how does the user know which we are prompting about.
  21410.      Set note = documents.GetFirstDocument
  21411.      
  21412. 'If no doc is selected we don't want to continue     
  21413.      If note Is Nothing Then 
  21414.           Messagebox "There is no document selected.", 0, "Delete Repeating Error"
  21415.           Exit Sub
  21416.      End If
  21417.      
  21418.      If note.HasItem("OrgRepeat") Then
  21419.           If aclentry.Level = ACLLEVEL_AUTHOR And Not(aclentry.IsPublicWriter) Then
  21420.                AuthorList = note.Authors
  21421.                IsAuthor = False
  21422.                Forall a In AuthorList
  21423.                     If a = session.Username Then IsAuthor = True
  21424.                End Forall
  21425.                If Not(IsAuthor) Then
  21426.                     Messagebox "You did not create this repeat set and therefore you can not delete its appointments.", 0, "Delete Repeating"
  21427.                     Exit Sub
  21428.                End If
  21429.           End If
  21430.           Action = "Delete"
  21431.           Call RepeatSave
  21432.      Else
  21433.           Messagebox "The selected document is not a repeating appointment.", 0, "Delete Repeating Appointment"
  21434.      End If
  21435.      
  21436. End Sub
  21437.     #~H    
  21438. O=Lotus Notes
  21439. O=Lotus Notes
  21440. PURSAFO
  21441. |.:#U
  21442. O=Lotus Notes
  21443. CN=Lotus Notes Template Development/O=Lotus Notes
  21444. PURSAFO
  21445. Fde!f^^
  21446. b6ylc^
  21447. 4i(R\
  21448. $TITLE
  21449. $AssistType
  21450. $AssistLastRun
  21451. $AssistDocCount
  21452. $AssistFlags
  21453. $AssistTrigger
  21454. $AssistInfo
  21455. $AssistQuery
  21456. $AssistAction
  21457. $AssistAction_Ex
  21458. '++LotusScript Development Environment:2:5:(Options):0:66
  21459. '++LotusScript Development Environment:2:5:(Forward):0:1
  21460. Declare Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
  21461. Declare Sub Postdocumentdelete(Source As Notesuidatabase)
  21462. '++LotusScript Development Environment:2:5:(Declarations):0:2
  21463. '++LotusScript Development Environment:2:2:BindEvents:1:129
  21464. Private Sub BindEvents(Byval Objectname_ As String)
  21465.      Static Source As NOTESUIDATABASE
  21466.      Set Source = Bind(Objectname_)
  21467.      On Event Querydocumentdelete From Source Call Querydocumentdelete
  21468.      On Event Postdocumentdelete From Source Call Postdocumentdelete
  21469. End Sub
  21470. '++LotusScript Development Environment:2:2:Querydocumentdelete:1:12
  21471. Sub Querydocumentdelete(Source As Notesuidatabase, Continue As Variant)
  21472.      
  21473. End Sub
  21474. '++LotusScript Development Environment:2:2:Postdocumentdelete:1:12
  21475. Sub Postdocumentdelete(Source As Notesuidatabase)
  21476.      
  21477. End Sub
  21478. O=Lotus Notes
  21479. O=Lotus Notes
  21480. PURSAFO
  21481. |.:#U
  21482. O=Lotus Notes
  21483. CN=Lotus Notes Template Development/O=Lotus Notes
  21484. PURSAFO
  21485. Fde!f^^
  21486. $DBScript
  21487. $DBScript_O
  21488. $TITLE
  21489. $Flags
  21490. $PublicAccess
  21491. '++LotusScript Development Environment:2:5:(Options):0:74
  21492. Option Public
  21493. Use "SharedTaskLibrary"
  21494. '++LotusScript Development Environment:2:5:(Forward):0:1
  21495. Declare Sub Initialize
  21496. '++LotusScript Development Environment:2:5:(Declarations):0:2
  21497. '++LotusScript Development Environment:2:2:Initialize:1:10
  21498. Sub Initialize
  21499.      Call UpdateTasks
  21500. End Sub
  21501. O=Lotus Notes
  21502. O=Lotus Notes
  21503. PURSAFO
  21504. |.:#U
  21505. O=Lotus Notes
  21506. CN=Lotus Notes Template Development/O=Lotus Notes
  21507. PURSAFO
  21508. Fde!f^^
  21509. $TITLE
  21510. $AssistType
  21511. $AssistLastRun
  21512. $AssistDocCount
  21513. $AssistFlags
  21514. $AssistTrigger
  21515. $AssistInfo
  21516. $AssistQuery
  21517. $AssistAction
  21518. $AssistAction_Ex
  21519.     0S0E
  21520. O=Lotus Notes
  21521. O=Lotus Notes
  21522. PURSAFO
  21523. |.:#U
  21524. O=Lotus Notes
  21525. CN=Lotus Notes Template Development/O=Lotus Notes
  21526. PURSAFO
  21527. Fde!f^^
  21528. $TITLE
  21529. $AssistType
  21530. $AssistLastRun
  21531. $AssistDocCount
  21532. $AssistFlags
  21533. $AssistTrigger
  21534. $AssistInfo
  21535. $AssistQuery
  21536. $AssistAction
  21537. $AssistAction_Ex
  21538. $PublicAccess
  21539. '++LotusScript Development Environment:2:5:(Options):0:66
  21540. Option Public
  21541. '++LotusScript Development Environment:2:5:(Forward):0:1
  21542. Declare Sub NotifySender
  21543. Declare Sub Initialize
  21544. Declare Sub GetProfile
  21545. Declare Sub CheckName
  21546. '++LotusScript Development Environment:2:5:(Declarations):0:10
  21547. %INCLUDE "lsconst.lss"
  21548. Dim s As NotesSession
  21549. Dim db As NotesDatabase
  21550. Dim view As NotesView
  21551. Dim note As NotesDocument
  21552. Dim profile As NotesDocument
  21553. Dim maildoc As NotesDocument
  21554. Dim notifieditem As NotesItem
  21555. Dim startdate As NotesItem
  21556. Dim enddate As NotesItem
  21557. Dim rtitem As NotesRichTextItem
  21558. Dim documents As NotesDocumentCollection
  21559. Dim dtToday As NotesDateTime
  21560. Dim dtCompare As NotesDateTime
  21561. Dim deliveredDate As NotesItem
  21562. Dim dtStart As NotesDateTime
  21563. Dim nam As NotesName
  21564. Dim FormName As Variant
  21565. Dim AdminType As Variant
  21566. Dim ProfileUser As Variant
  21567. Dim FirstDayOut As Variant
  21568. Dim FirstDayBack As Variant
  21569. Dim DaysOut As Variant
  21570. Dim GeneralSubject As Variant
  21571. Dim GeneralMessage As Variant
  21572. Dim SpecialSubject As Variant
  21573. Dim SpecialMessage As Variant
  21574. Dim SpecialPeople As Variant
  21575. Dim IgnorePeople As Variant
  21576. Dim AlreadyNotified As Variant
  21577. Dim SenderIsSpecial As Variant
  21578. Dim Sender As Variant
  21579. Dim DoNotRun As Variant
  21580. Dim DoNotSend As Variant
  21581. Dim domainItem As Variant
  21582. '++LotusScript Development Environment:2:2:NotifySender:1:8
  21583. Sub NotifySender
  21584.      
  21585. 'Set object variables for email
  21586.      
  21587.      Set maildoc = New NotesDocument(db)
  21588.      Set rtitem = New NotesRichTextItem(maildoc, "Body")
  21589.      
  21590. 'Check to see if this person is on the SpecialPeople list
  21591.      SenderIsSpecial = False
  21592.      Forall i In SpecialPeople
  21593.           If Sender(0) = i Then
  21594.                SenderIsSpecial = True
  21595.                Exit Forall
  21596.           End If
  21597.      End Forall
  21598.      
  21599. 'Build and send the email
  21600.      maildoc.Form = "Memo"
  21601.      domainItem = note.FromDomain
  21602.      maildoc.SendTo = Sender(0)
  21603.      If Not (Isempty(domainItem)) And domainItem(0) <> "" Then
  21604.           maildoc.SendTo = mailDoc.SendTo(0) & " @ " & domainItem(0)
  21605.      End If
  21606.      rtitem.AppendText(DaysOut(0))
  21607.      rtitem.AddNewLine(2)
  21608.      If SenderIsSpecial Then
  21609.           maildoc.Subject = SpecialSubject(0)
  21610.           rtitem.AppendText(SpecialMessage(0))
  21611.      Else
  21612.           maildoc.Subject = GeneralSubject(0)
  21613.           rtitem.AppendText(GeneralMessage(0))
  21614.      End If
  21615.      Call maildoc.AppendItemvalue("$AutoForward", True)
  21616.      
  21617. 'Don't add this person to the Notified list if the message cannot be sent.
  21618. 'Send may fail if an ambiguous name is supplied
  21619.      On Error Goto SendError
  21620.      maildoc.Send(False)
  21621.      
  21622. 'Add this sender to AlreadyNotified list on profile
  21623.      notifieditem.AppendToTextList(Sender(0))
  21624.      profile.Save True, True
  21625.      
  21626. SendError:
  21627.      ' Maybe keep track of the people that we couldn't send to?
  21628.      Exit Sub
  21629.      
  21630. End Sub
  21631. '++LotusScript Development Environment:2:2:Initialize:1:10
  21632. Sub Initialize
  21633.      
  21634. 'Set Object Variables
  21635.      Set dtToday = New NotesDateTime("")    
  21636.      dtToday.SetNow
  21637.      Set s = New NotesSession
  21638.      Set db = s.CurrentDatabase
  21639.      Set documents = db.UnprocessedDocuments
  21640.      Set view = db.GetView("($Profiles)")
  21641.      Set profile = db.GetProfileDocument("OutOfOfficeProfile")
  21642.      
  21643. 'Get the profile data and be sure that this agent should run today
  21644.      DoNotRun = False
  21645.      GetProfile
  21646.      If DoNotRun Then Exit Sub
  21647.      
  21648.      Set dtStart = startdate.DateTimeValue
  21649.      
  21650. 'Get each doc, check if sender has been notified yet, if not then notify them     
  21651.      For n = 1 To documents.Count
  21652.           Set note = documents.GetNthDocument(n)
  21653.           Sender = note.From
  21654. 'Make sure that we received this message (DeliveredDate) and that it was not automatically generated by someone else' agent ($AutoForward)
  21655.           If note.HasItem("DeliveredDate")  And (Not note.HasItem("$AutoForward")) And (Not note.SentByAgent) Then
  21656.                Set deliveredDate = note.GetFirstItem("DeliveredDate")
  21657.                If deliveredDate.Values(0) <> "" Then
  21658.                     Set dtCompare = deliveredDate.DateTimeValue
  21659.                     If dtStart.TimeDifference(dtCompare) <= 0 Then
  21660.                          CheckName
  21661.                          If Not DoNotSend Then
  21662.                               NotifySender
  21663.                          End If
  21664.                     End If
  21665.                End If
  21666.           End If
  21667.           Call s.UpdateProcessedDoc(note)
  21668.      Next
  21669.      
  21670. End Sub
  21671. '++LotusScript Development Environment:2:2:GetProfile:1:8
  21672. Sub GetProfile
  21673. '    
  21674. 'Get profile document and field values.  If no Profile, inform the user and exit.  We have to check on the existance
  21675. 'of a couple of fields(we'll choose datein/dateout because of their importance), because if the profile isn't setup, a 
  21676. 'blank default document is created with 3 fields; but not the 2 listed below...
  21677.      If (profile Is Nothing) Or (profile.HasItem("dateFirstDayOut") = False) Or (profile.HasItem("dateFirstDayBack") = False) Then
  21678.           Set maildoc = New NotesDocument(db)
  21679.           maildoc.Form = "Memo"
  21680.           maildoc.SendTo = "Email User"
  21681.           maildoc.From = "Your Out of Office Agent"
  21682.           maildoc.Subject = "Out of Office Agent failed"
  21683.           maildoc.Body = "The Out of Office Agent cannot run unless you have created an Out of Office Profile.  " & _
  21684.           "Choose ""Actions, Mail Tools, Out of Office"" from the Action menu and fill in the appropriate information."
  21685.           maildoc.PostedDate = dtToday.LSLocalTime
  21686.           maildoc.DeliveredDate = dtToday.LSLocalTime
  21687.           maildoc.Save True, True
  21688.           maildoc.PutInFolder("($InBox)")
  21689.           DoNotRun = True
  21690.           Exit Sub
  21691.      Else
  21692.           ProfileUser = profile.Sender
  21693.      End If
  21694.      
  21695. 'Be sure the agent is supposed to be running today     
  21696.      FirstDay = Datevalue(profile.dateFirstDayOut(0))
  21697.      LastDay = Datevalue(profile.dateFirstDayBack(0))
  21698.      LastTime = Timevalue(profile.dateFirstDayBack(0))
  21699.      CurrentDay = Today
  21700.      CurrentTime = Time
  21701.      
  21702. 'If this is the day before you return and within 6 hours of the return time (12AM of the day your return)
  21703. 'then we consider you back.  This accounts for people who run this agent hourly or daily between 6PM and midnight.
  21704. 'If this is the day you return or any day after then you are also back.
  21705.      If (CurrentDay = LastDay - 1 And _
  21706.      CurrentTime >= Timenumber(Hour(LastTime - 6), Minute(LastTime), Second(LastTime))) Or _
  21707.      CurrentDay => LastDay Then
  21708.           Set maildoc = New NotesDocument(db)          
  21709.           Set rtitem = New NotesRichTextItem(maildoc, "Body")
  21710.           maildoc.Form = "Memo"
  21711.           maildoc.SendTo = ProfileUser(0)
  21712. 'if the profile has this item, we have already sent you a Welcome Back notice.
  21713. 'but we still need to remind you to turn off your Out of Office agent          
  21714.           If profile.HasItem("BackInOffice") Then
  21715. 'we only want to send one reminder per day               
  21716.                If Datevalue(profile.BackInOffice(0)) < CurrentDay Then
  21717.                     maildoc.Subject = "Please disable your OutOfOffice agent"
  21718.                     rtitem.AppendText("Please select Actions, Mail Tools, Out Of Office and click " & _
  21719.                     "the button entitled ""I Have Returned To The Office"" to disable your Out of Office Agent.")
  21720.                     profile.BackInOffice = Today
  21721.                     profile.save True, True
  21722.                     maildoc.Send(False)
  21723.                End If
  21724.           Else
  21725.                maildoc.Subject = "Welcome Back!"
  21726.                rtitem.AppendText("Please select Actions, Mail Tools, Out Of Office and click " & _
  21727.                "the button entitled ""I Have Returned To The Office"" to disable your Out of Office Agent.")
  21728.                rtitem.AddNewLine(2)
  21729.                AlreadyNotified = profile.AlreadyNotified
  21730.                If AlreadyNotified(0) <> "" Then
  21731.                     rtitem.AppendText("While you were out, your Out of Office Agent " & _
  21732.                     "notified the following people of your absence:")
  21733.                     rtitem.AddNewLine(2)
  21734.                     For i = 0 To Ubound(AlreadyNotified)
  21735.                          Set nam = New NotesName(AlreadyNotified(i))
  21736.                          rtitem.AppendText(nam.Abbreviated)
  21737.                          rtitem.AddNewLine(1)
  21738.                     Next
  21739.                End If
  21740.                maildoc.BackInOffice = True
  21741.                profile.BackInOffice = Today
  21742.                profile.save True, True
  21743.                maildoc.Send(False)
  21744.           End If
  21745.           DoNotRun = True
  21746.           Exit Sub
  21747.      End If
  21748.      
  21749.      If CurrentDay >= FirstDay Then
  21750. 'if the agent has been run before we want to remove the Notified list          
  21751.           If profile.HasItem("BackInOffice") Then
  21752.                profile.RemoveItem("BackInOffice")
  21753.                profile.RemoveItem("AlreadyNotified")
  21754.                profile.save True, True
  21755.           End If
  21756.      Else
  21757. 'if today is ealier that FirstDayOut then we don't want to run the agent
  21758.           DoNotRun = True
  21759.           Exit Sub
  21760.      End If
  21761.      
  21762.      If profile.HasItem("AlreadyNotified") Then
  21763.           Set notifieditem = profile.GetFirstItem("AlreadyNotified")
  21764.      Else
  21765.           Set notifieditem = New NotesItem(profile, "AlreadyNotified", "")
  21766.      End If
  21767.      Set startdate = profile.GetFirstItem("dateFirstDayOut")
  21768.      Set enddate = profile.GetFirstItem("dateFirstDayBack")
  21769.      DaysOut = profile.DaysOut         
  21770.      GeneralSubject = profile.GeneralSubject
  21771.      GeneralMessage = Profile.GeneralMessage
  21772.      SpecialSubject = profile.SpecialSubject
  21773.      SpecialMessage = profile.SpecialMessage
  21774.      SpecialPeople = profile.SpecialPeople
  21775.      IgnorePeople = profile.IgnorePeople
  21776.      
  21777. End Sub
  21778. '++LotusScript Development Environment:2:2:CheckName:1:8
  21779. Sub CheckName
  21780.      DoNotSend = False
  21781.      
  21782. 'If the email is from yourself, don't notify sender     
  21783.      If Sender(0) = ProfileUser(0) Then
  21784.           DoNotSend = True
  21785.           Exit Sub          
  21786.      End If
  21787.      
  21788. 'See if sender was already notified
  21789.      AlreadyNotified = profile.AlreadyNotified     
  21790.      Forall a In AlreadyNotified
  21791.           If Sender(0) = a Then
  21792.                DoNotSend = True
  21793.                Exit Sub          
  21794.           End If
  21795.      End Forall
  21796.      
  21797. 'See if sender should be ignored
  21798.      Forall i In IgnorePeople
  21799.           If Sender(0) = i Then
  21800.                DoNotSend = True
  21801.                Exit Sub          
  21802.           End If
  21803.      End Forall
  21804.      
  21805. End Sub
  21806. O=Lotus Notes
  21807. O=Lotus Notes
  21808. PURSAFO
  21809. |.:#U
  21810. O=Lotus Notes
  21811. CN=Lotus Notes Template Development/O=Lotus Notes
  21812. PURSAFO
  21813. Fde!f^^
  21814. $TITLE
  21815. $AssistType
  21816. $AssistLastRun
  21817. $AssistDocCount
  21818. $AssistFlags
  21819. $AssistTrigger
  21820. $AssistInfo
  21821. $AssistQuery
  21822. $AssistAction
  21823. $AssistAction_Ex
  21824. Mail Tools\Archive Selected Documents
  21825. E4fL3
  21826. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################
  21827. Mail Tools\Delegation Profile... | EditDelegationProfile
  21828. E4fL3
  21829. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes$
  21830. ##########################################################
  21831. Mail Tools\Out of Office... | Out Of Office303
  21832. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesO
  21833. ##########################
  21834. Empty Trash | Empty Trash303
  21835. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  21836. Mail Tools\Add Sender to Address Book | AddToAddressBook
  21837. E4fL3
  21838. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################
  21839. _Archiving|Archiving
  21840. Archive Logs
  21841. Archive Profile
  21842.     6S9S11S
  21843. $75$74Subject$Conflict
  21844. Archive
  21845.     L1S5S1(
  21846. $75$74Subject
  21847. Archive Logs
  21848. Archive Profile
  21849.     6S9S11S$74
  21850. SubjectDescription&
  21851. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################
  21852. Bouncy EarthStdNotesLtr1CU3A
  21853. Mary LambCN=Lotus Notes Template Development/O=Lotus Notes####################
  21854. D3F729BC2029D7188AE991E3D4201966CN=Michael Clark/O=Iris
  21855. (Personal Stationery)Personal Stationeryw
  21856. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################
  21857. (ProcessExistingDbDlg)1DCU
  21858. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################
  21859. ##########################################################
  21860. '++LotusScript Development Environment:2:5:(Options):0:74
  21861. Option Public
  21862. '++LotusScript Development Environment:2:5:(Forward):0:1
  21863. Declare Sub Initialize
  21864. Declare Sub ArchiveDocument
  21865. Declare Sub ProcessDocuments
  21866. Declare Sub Terminate
  21867. '++LotusScript Development Environment:2:5:(Declarations):0:10
  21868. %INCLUDE "lserr.lss"
  21869. %INCLUDE "lsxbeerr.lss"
  21870. %INCLUDE "lsconst.lss"
  21871. Dim w As NotesUIWorkspace
  21872. Dim s As NotesSession
  21873. Dim sourcedb As NotesDatabase
  21874. Dim archivedb As NotesDatabase
  21875. Dim note As NotesDocument
  21876. Dim newnote As NotesDocument
  21877. Dim lognote As NotesDocument
  21878. Dim profile As NotesDocument
  21879. Dim documents As NotesDocumentCollection
  21880. Dim responses As NotesDocumentCollection
  21881. Dim view As NotesView
  21882. Dim dtNow As NotesDateTime
  21883. Dim dtExpired As NotesDateTime
  21884. Dim dtDocument As NotesDateTime
  21885. Dim dtCompare As NotesDateTime
  21886. Dim item As NotesItem
  21887. Dim rtitem As NotesRichTextItem
  21888. Dim CurrentServer As String
  21889. Dim ArchiveExpired As Variant
  21890. Dim ExpiredLife As Variant
  21891. Dim ArchiveInactive As Variant
  21892. Dim DocumentLife As Variant
  21893. Dim ArchivePath As Variant
  21894. Dim ArchiveLog As Variant
  21895. Dim IncludeDocLinks As Variant
  21896. Dim Archive As Variant
  21897. Dim ManualArchive As String
  21898. Dim goAgain As Variant
  21899. Dim DoNotRun As Variant
  21900. '++LotusScript Development Environment:2:2:Initialize:1:10
  21901. Sub Initialize
  21902.      
  21903. 'IF YOU CHANGE THIS AGENT - CHANGE *Periodic Archive* TO MATCH - THEY ARE NEARLY IDENTICAL
  21904.      On Error Goto ErrorRoutine
  21905.      On Error 4060 Goto ErrNoDBAccess        'this handles the case where a delegee was added after the creation of the archive database
  21906.      On Error ErrObjectVariableNotSet Resume Next 
  21907.      
  21908.      Dim calprofile As NotesDocument
  21909.      
  21910.      Set s = New NotesSession
  21911.      Set w = New NotesUIWorkspace
  21912.      Set sourcedb = s.CurrentDatabase
  21913.      Set view = sourcedb.GetView("Archiving")
  21914.      key  = "Archive Profile"
  21915.      Set profile = view.GetDocumentByKey(key)
  21916.      
  21917.      If profile Is Nothing Then
  21918.           If Messagebox("You must set up an archive database before you can archive " &_
  21919.           "selected documents.  Would you like to set up an archive database now?",_
  21920.           MB_YesNo + MB_IconQuestion, "Archive") = IDYES Then
  21921.                Call w.ComposeDocument("", "", "ArchiveProfile")
  21922.           End If
  21923.           DoNotRun = True
  21924.           Exit Sub       
  21925.      End If
  21926.      
  21927.      If Messagebox("Are you sure you want to move these documents to your archive database now?", _
  21928.      MB_YesNo + MB_IconQuestion, "Archiving") = IDNo Then
  21929.           Messagebox "No documents were archived.", MB_OK, "Archiving"
  21930.           DoNotRun = True
  21931.           Exit Sub
  21932.      End If
  21933.      
  21934.      ArchivePath = profile.ArchivePath
  21935.      ArchiveServer = Evaluate("@Name([Abbreviate]; ArchiveServer)", profile)
  21936.      ArchiveLog = profile.ArchiveLog
  21937.      IncludeDocLinks = profile.IncludeDocLinks
  21938.      
  21939.      Set dtNow = New NotesDateTime("")
  21940.      dtNow.SetNow
  21941.      
  21942.      If ArchiveLog(0) = "Yes" Then
  21943.           Set lognote = New NotesDocument(sourcedb)
  21944.           Set rtitem = New NotesRichTextItem(lognote, "Body")
  21945.           lognote.Form = "Archive Log"
  21946.           lognote.ArchiveDate = dtNow.LSLocalTime
  21947.           lognote.ProtectFromArchive = 1
  21948.           lognote.ExcludeFromView = "D"
  21949.           lognote.From = "Archiving"
  21950.           Call lognote.ReplaceItemValue("_ViewIcon", 22)
  21951.      End If
  21952.      
  21953.      On Error Resume Next     
  21954.      Set archivedb = New NotesDatabase(ArchiveServer(0), ArchivePath(0))
  21955.      If Err = 4060 Then Goto ErrNoDBAccess
  21956.      
  21957.      If archivedb.IsOpen = False Then
  21958.           If ArchiveServer(0) = "" Then
  21959.                ArchiveFile = ArchivePath(0)
  21960.           Else
  21961.                ArchiveFile = ArchiveServer(0) & "!!" & ArchivePath(0)
  21962.           End If
  21963.           Messagebox "The Archive agent was unable to open your archive file - " & ArchiveFile &_
  21964.           ".  Please verify that the file exists.", MB_IconStop, "Archiving"
  21965.           DoNotRun = True
  21966.           Err = 0
  21967.           Exit Sub
  21968.      End If        
  21969.      On Error Goto ErrorRoutine
  21970.      
  21971.      ProcessDocuments
  21972.      
  21973.      Exit Sub
  21974.      
  21975. ErrorRoutine:
  21976.      Messagebox "Unexpected condition: " & Err & " - " & Error, 0, "Archiving"
  21977.      Exit Sub
  21978. ErrNoDBAccess:
  21979.      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"
  21980.      Exit Sub
  21981. End Sub
  21982. '++LotusScript Development Environment:2:2:ArchiveDocument:1:8
  21983. Sub ArchiveDocument
  21984.      
  21985.      On Error Goto ErrorRoutine
  21986.      On Error ErrObjectVariableNotSet Resume Next 
  21987.      Dim Purge As NotesItem
  21988.      
  21989. $Archived and DateArchived might already be present, if this agent failed the last
  21990. time it was run.  None of these fields should be on the archived copy, because we 
  21991. don't want the archive database to inadvertantly archive these documents (it can
  21992. archive, but it needs to use its own criteria)
  21993. %END REM
  21994.      
  21995. 'If this type of form does not get archived then exit
  21996.      If note.HasItem("ProtectFromArchive") Then
  21997.           ProtectFromArchive = note.ProtectFromArchive
  21998.           If ProtectFromArchive(0) = 1 Then Exit Sub
  21999.      End If
  22000.      
  22001. 'look for a $NoPurge item; if it is a date, compare it to today;
  22002.      If (note.HasItem("$NoPurge")) Then
  22003.           Set Purge = note.GetFirstItem("$NoPurge")
  22004.           If (Purge.Type = DATETIMES) Then
  22005.                Set enddt = New NotesDateTime("")
  22006.                Set enddt = Purge.DateTimeValue
  22007.                Set nowdt = New NotesDateTime("")
  22008.                nowdt.SetNow
  22009.                If enddt.TimeDifference(nowdt) >= 0 Then 
  22010.                     Messagebox |The document "| & note.Subject(0) & |" could not be archived since the end date has not passed.|,0,"Status"                     
  22011.                     Exit Sub
  22012.                End If
  22013.           Else
  22014.                Exit Sub
  22015.           End If
  22016.      End If
  22017.      
  22018.      If note.HasItem("$Archived") Then note.RemoveItem("$Archived")
  22019.      If note.HasItem("DateArchived") Then note.RemoveItem("DateArchived")
  22020.      If note.HasItem("ExpireDate") Then note.RemoveItem("ExpireDate")
  22021.      note.Save True, True
  22022.      Set newnote = note.CopyToDatabase(archivedb)
  22023.      note.DateArchived = dtNow.LSLocalTime    
  22024.      Call note.AppendItemValue("$Archived", True)
  22025.      note.Save True, True
  22026.      
  22027.      Subject = note.Subject
  22028.      CreatedBy = Evaluate("@Name([Abbreviate]; From)", note)
  22029.      CreatedDate = note.Created
  22030.      
  22031.      If ArchiveLog(0) = "Yes" Then
  22032.           If IncludeDocLinks(0) = "Yes" Then
  22033.                Call rtitem.AppendDocLink(newnote, "DocLink to " & Subject(0))
  22034.                Call rtitem.AddTab(1)
  22035.           End If
  22036.           Call rtitem.AppendText(Subject(0) & " (created by " & CreatedBy(0) & " on " &_
  22037.           Format(CreatedDate, "Short Date") & ")")
  22038.           Call rtitem.AddNewLine(2)
  22039.           lognote.Save True, True
  22040.      End If
  22041.      
  22042.      Exit Sub
  22043.      
  22044. ErrorRoutine:
  22045.      Messagebox "Unexpected condition: " & Err & " - " & Error
  22046.      Exit Sub
  22047.      
  22048. End Sub 
  22049. '++LotusScript Development Environment:2:2:ProcessDocuments:1:8
  22050. Sub ProcessDocuments
  22051.      
  22052.      On Error Resume Next
  22053.      
  22054.      Print "Archiving selected documents..."
  22055.      
  22056.      Set documents = sourcedb.UnprocessedDocuments
  22057.      If documents.Count > 0 Then
  22058.           For n = 1 To documents.Count
  22059.                Set note = documents.GetNthDocument(n)
  22060.                ArchiveDocument
  22061.           Next
  22062.      End If
  22063.      
  22064. 'Loop through all the documents that we archived and archive their reponses
  22065.      Do
  22066.           Set documents = sourcedb.Search("@IsAvailable($Archived)", Nothing, 0)
  22067.           goAgain = False
  22068.           For n = 1 To documents.count
  22069.                Set note = documents.GetNthDocument(n)
  22070.                Call note.RemoveItem("$Archived")              
  22071.                If Err = 0 Then
  22072.                     note.Save True, True
  22073.                     Set responses = note.Responses
  22074.                     If responses.Count > 0 Then
  22075.                          For i = 1 To responses.Count
  22076.                               Set note = responses.GetNthDocument(i)
  22077.                               If Not note.HasItem("$Archived") Then ArchiveDocument
  22078. 'Since we just archived a response, we have to loop back through in order to archive all of its reponses
  22079.                               goAgain = True
  22080.                          Next
  22081.                     End If
  22082.                Else
  22083.                     Err = 0
  22084.                End If
  22085.           Next
  22086.      Loop While goAgain
  22087.      
  22088. End Sub
  22089. '++LotusScript Development Environment:2:2:Terminate:1:10
  22090. Sub Terminate
  22091.      
  22092.      If DoNotRun Then Exit Sub
  22093.      
  22094.      On Error Goto ErrorRoutine
  22095.      On Error ErrObjectVariableNotSet Resume Next
  22096.      On Error lsERR_NOTES_CANTREMOVE Resume Next
  22097.      
  22098.      Set documents = sourcedb.Search("@IsAvailable(DateArchived)", Nothing, 0)
  22099.      ArchiveCount = documents.Count
  22100.      For n = 1 To ArchiveCount
  22101.           Set note = documents.GetNthDocument(n)         
  22102.           note.Remove(True)
  22103.      Next
  22104.      If Err = 4241 Then
  22105.           Err = 0
  22106.           Messagebox "The open document was copied to the archive database, but it could not be deleted.  " &_
  22107.           "Please delete it manually.", 0, "Could not delete"
  22108.      End If
  22109.      
  22110.      If ArchiveLog(0) = "" Then Exit Sub
  22111.      
  22112.      ArchiveTitle = archivedb.Title
  22113.      dtNow.SetNow
  22114.      If CurrentServer = "" Then CurrentServer = "Local"
  22115.      lognote.Subject = "Archive Log for " & Format(dtNow.LSLocalTime, "General Date")
  22116.      
  22117.      lognote.ArchiveTrailer = "Archive of " & ArchiveCount & " documents on server " & _
  22118.      CurrentServer & " from " & sourcedb.Title & " (" & sourcedb.FilePath & ") to " & ArchiveTitle & _
  22119.      " (" & ArchivePath(0) & ") completed sucessfully on " & _
  22120.      Format(dtNow.LSLocalTime, "Short Date") & " at " & _
  22121.      Format(dtNow.LSLocalTime, "Long Time") & "."
  22122.      lognote.Save True, True
  22123.      Call lognote.CopyToDatabase(archivedb)
  22124.      
  22125.      w.ViewRefresh
  22126.      
  22127.      If ArchiveCount = 1 Then
  22128.           Messagebox ArchiveCount & " document was archived.", MB_OK, "Archiving"
  22129.      Else
  22130.           Messagebox ArchiveCount & " documents were archived.", MB_OK, "Archiving"
  22131.      End If
  22132.      Print
  22133.      
  22134.      Exit Sub
  22135.      
  22136. ErrorRoutine:
  22137.      Messagebox "Unexpected condition: " & Err & " - " & Error
  22138.      Exit Sub
  22139.      
  22140. End Sub
  22141. W4Y4Y
  22142. YLZX[
  22143. h"h"8,
  22144. #H$T-
  22145. $H%8/
  22146. ($(&p/
  22147. $('d0
  22148. %h&<2
  22149. 'H)86
  22150. )h),8
  22151. (*(*,:
  22152. *h/<;
  22153. ,h1p=
  22154. ,H.P>
  22155. -h.H@
  22156. H/H0@C
  22157. /H6 D
  22158. 1H1pF
  22159. 1h3TG
  22160. 2h2HH
  22161. (2(2xH
  22162. H4H4pL
  22163. 5(6HO
  22164. h6(7$P
  22165. 7(;\R
  22166. (8(9PS
  22167. 8H90T
  22168. H9H=XU
  22169. 9h:<V
  22170. <(=TZ
  22171. =(>L]
  22172. >h?p_
  22173. ?(AHa
  22174. @HA(c
  22175. A(Bdc
  22176. (C(C`g
  22177. C(D8h
  22178. E(G j
  22179. (EhE4j
  22180. EhF|j
  22181. F(Hlk
  22182. G(Ill
  22183. H(J(m
  22184. HHIHm
  22185. IhR0n
  22186. KhL8o
  22187. LHM8q
  22188. M(MTq
  22189. MXR$r
  22190. ]$[$[
  22191. YD]dY
  22192. hZp{a
  22193. N+4N$
  22194. V}$w#
  22195. N,LW}
  22196. S,PX#
  22197. QQ|X}
  22198. Q,dY}\
  22199. Q,dY}
  22200. ZKTY-(Z#
  22201. NLZT\Z'
  22202. ZShZ^LZ%
  22203. Q,dY}
  22204. Q,dY}H
  22205. Q,dY}h
  22206. Q,$[}
  22207. P-t\#
  22208. QKXR,
  22209. QKXR,
  22210. Q-D]#
  22211. ^x]48
  22212. QKhR,
  22213. Q,dY}
  22214. ]KXR-
  22215. QKXR,
  22216. S,PX#
  22217. QQtZ}
  22218. QQ<^}l
  22219. P-H^#
  22220. N,l^#
  22221. ArchiveServer
  22222. O=Lotus Notes
  22223. O=Lotus Notes
  22224. PURSAFO
  22225. |.:#U
  22226. O=Lotus Notes
  22227. CN=Lotus Notes Template Development/O=Lotus Notes
  22228. PURSAFO
  22229. Fde!f^^
  22230. $TITLE
  22231. $AssistType
  22232. $AssistLastRun
  22233. $AssistDocCount
  22234. $AssistFlags
  22235. $AssistTrigger
  22236. $AssistInfo
  22237. $AssistQuery
  22238. $AssistAction
  22239. $AssistAction_Ex
  22240. Started running agent 'Mail Tools\Delegation Profile...' on 05/23/96 09:30:02 AM
  22241. 0 document(s) were modified by formula
  22242. Done running agent 'Mail Tools\Delegation Profile...' on 05/23/96 09:30:03 AM
  22243. '++LotusScript Development Environment:2:5:(Options):0:74
  22244. Option Public
  22245. '++LotusScript Development Environment:2:5:(Forward):0:1
  22246. Declare Sub Initialize
  22247. Declare Sub GetAclEntries
  22248. '++LotusScript Development Environment:2:5:(Declarations):0:10
  22249. Dim acl As NotesACL
  22250. Dim aclentry As NotesAclEntry
  22251. Dim nextaclentry As NotesAclEntry
  22252. Dim profile As NotesDocument
  22253. Dim db As NotesDatabase
  22254. Dim session As NotesSession
  22255. Dim ws As NotesUIWorkspace
  22256. Dim ReadCal() As Variant
  22257. Dim WriteCal() As Variant
  22258. Dim ReadMail() As Variant
  22259. Dim WriteMail() As Variant
  22260. Dim EditMail() As Variant
  22261. Dim DeleteMail() As Variant
  22262. Dim OtherUsers() As Variant
  22263. '++LotusScript Development Environment:2:2:Initialize:1:10
  22264. Sub Initialize
  22265.      
  22266.      Set session = New NotesSession
  22267.      Set db = session.CurrentDatabase
  22268.      Set acl = db.ACL
  22269.      Set profile = db.GetProfileDocument("DelegationProfile")
  22270.      Set ws = New NotesUIWorkspace
  22271.      
  22272.      GetAclEntries
  22273.      
  22274.      profile.save True, True, True
  22275.      
  22276.      ws.EditProfile("DelegationProfile")
  22277.      
  22278. End Sub
  22279. '++LotusScript Development Environment:2:2:GetAclEntries:1:8
  22280. Sub GetAclEntries
  22281.      
  22282.      profile.ReadCalendar = ""
  22283.      profile.WriteCalendar = ""
  22284.      profile.ReadMail = ""
  22285.      profile.WriteMail = ""
  22286.      profile.EditMail = ""
  22287.      profile.DeleteMail = ""
  22288.      
  22289.      Redim ReadCal(0)
  22290.      Redim WriteCal(0)
  22291.      Redim ReadMail(0)
  22292.      Redim WriteMail(0)
  22293.      Redim EditMail(0)
  22294.      Redim DeleteMail(0)
  22295.      Redim OtherUsers(0)
  22296.      
  22297.      Set aclentry = acl.GetFirstEntry
  22298.      Do Until aclentry Is Nothing
  22299.           Select Case aclentry.Level
  22300.           Case ACLLEVEL_NOACCESS
  22301.                If aclentry.Name = "-Default-" Then
  22302.                     If aclentry.IsPublicReader Then
  22303.                          profile.PublicRead = "1"
  22304.                     Else
  22305.                          profile.PublicRead = ""
  22306.                     End If
  22307.                     If aclentry.IsPublicWriter Then
  22308.                          profile.PublicWrite = "1"
  22309.                     Else
  22310.                          profile.PublicWrite = ""
  22311.                     End If
  22312.                Else
  22313.                     If aclentry.IsPublicReader Or aclentry.IsPublicWriter Then
  22314.                          If aclentry.IsPublicReader Then
  22315.                               x = Ubound(ReadCal)
  22316.                               ReadCal(x) = aclentry.Name
  22317.                               Redim Preserve ReadCal(x + 1)
  22318.                          End If
  22319.                          Gosub CheckPublicWriter
  22320.                     Else
  22321. 'These are other NoAccess people and we don't want to change them
  22322.                          x = Ubound(OtherUsers)
  22323.                          OtherUsers(x) = aclentry.Name
  22324.                          Redim Preserve OtherUsers(x + 1)
  22325.                     End If
  22326.                End If
  22327.           Case ACLLEVEL_READER
  22328.                x = Ubound(ReadMail)
  22329.                ReadMail(x) = aclentry.Name
  22330.                Redim Preserve ReadMail(x + 1)
  22331.                Gosub CheckPublicWriter
  22332.           Case ACLLEVEL_AUTHOR
  22333.                If aclentry.CanCreateDocuments Then
  22334.                     x = Ubound(WriteMail)
  22335.                     WriteMail(x) = aclentry.Name
  22336.                     Redim Preserve WriteMail(x + 1)
  22337.                End If
  22338.                If aclentry.CanDeleteDocuments Then
  22339.                     x = Ubound(DeleteMail)
  22340.                     DeleteMail(x) = aclentry.Name
  22341.                     Redim Preserve DeleteMail(x + 1)
  22342.                End If
  22343.                Gosub CheckPublicWriter
  22344.           Case ACLLEVEL_EDITOR
  22345.                x = Ubound(EditMail)
  22346.                EditMail(x) = aclentry.Name
  22347.                Redim Preserve EditMail(x + 1)
  22348.                If aclentry.CanDeleteDocuments Then
  22349.                     x = Ubound(DeleteMail)
  22350.                     DeleteMail(x) = aclentry.Name
  22351.                     Redim Preserve DeleteMail(x + 1)
  22352.                End If
  22353.                Gosub CheckPublicWriter
  22354.           Case Else
  22355. 'These are Manager and Designers and we don't want to change them
  22356.                x = Ubound(OtherUsers)
  22357.                OtherUsers(x) = aclentry.Name
  22358.                Redim Preserve OtherUsers(x + 1)
  22359.           End Select
  22360.           Set aclentry = acl.GetNextEntry(aclentry)
  22361.      Loop
  22362.      
  22363.      profile.ReadCalendar = ReadCal
  22364.      profile.WriteCalendar = WriteCal
  22365.      profile.ReadMail = ReadMail
  22366.      profile.WriteMail = WriteMail
  22367.      profile.EditMail = EditMail
  22368.      profile.DeleteMail = DeleteMail
  22369.      
  22370.      Exit Sub
  22371.      
  22372. CheckPublicWriter:
  22373.      If aclentry.IsPublicWriter Then
  22374.           x = Ubound(WriteCal)
  22375.           WriteCal(x) = aclentry.Name
  22376.           Redim Preserve WriteCal(x + 1)
  22377.      End If
  22378.      Return
  22379.      
  22380. End Sub
  22381. O=Lotus Notes
  22382. O=Lotus Notes
  22383. PURSAFO
  22384. |.:#U
  22385. O=Lotus Notes
  22386. CN=Lotus Notes Template Development/O=Lotus Notes
  22387. PURSAFO
  22388. Fde!f^^
  22389. _g`V}b
  22390. $TITLE
  22391. $AssistType
  22392. $AssistLastRun
  22393. $AssistDocCount
  22394. $AssistFlags
  22395. $AssistTrigger
  22396. $AssistInfo
  22397. $AssistQuery
  22398. $AssistAction
  22399. $AssistAction_Ex
  22400. GOLAu
  22401. Started running agent 'Mail Tools\Choose Letterhead... | Select Letterhead' on 03/11/97 09:55:15 AM
  22402. 1 document(s) were modified by formula
  22403. Done running agent 'Mail Tools\Choose Letterhead... | Select Letterhead' on 03/11/97 09:55:16 AM
  22404. (LetterHeadChooser)
  22405. O=Lotus Notes
  22406. O=Lotus Notes
  22407. PURSAFO
  22408. |.:#U
  22409. O=Lotus Notes
  22410. CN=Lotus Notes Template Development/O=Lotus Notes
  22411. PURSAFO
  22412. Fde!f^^
  22413. $TITLE
  22414. $Formula
  22415. $TYPE
  22416. $Operation
  22417. $Scan
  22418. OutOfOfficeProfile
  22419. O=Lotus Notes
  22420. O=Lotus Notes
  22421. PURSAFO
  22422. |.:#U
  22423. O=Lotus Notes
  22424. CN=Lotus Notes Template Development/O=Lotus Notes
  22425. PURSAFO
  22426. Fde!f^^
  22427. >F-v{
  22428. $TITLE
  22429. $Formula
  22430. $TYPE
  22431. $Operation
  22432. $Scan
  22433. DontShowTrash
  22434.     6S7S9S11S
  22435. O=Lotus Notes
  22436. O=Lotus Notes
  22437. PURSAFO
  22438. |.:#U
  22439. O=Lotus Notes
  22440. CN=Lotus Notes Template Development/O=Lotus Notes
  22441. PURSAFO
  22442. Fde!f^^
  22443. $TITLE
  22444. $Formula
  22445. $TYPE
  22446. $Operation
  22447. $Scan
  22448. '++LotusScript Development Environment:2:5:(Options):0:74
  22449. Option Public
  22450. '++LotusScript Development Environment:2:5:(Forward):0:1
  22451. Declare Sub Initialize
  22452. Declare Function IsInternetAddress(address As String) As Integer
  22453. Declare Function Deflate(s As String) As String
  22454. Declare Function FixFullName(full As String) As String
  22455. Declare Function GetInternetFullName(fromString As String) As String
  22456. Declare Function GetFirst(full As String) As String
  22457. Declare Function GetLast(full As String) As String
  22458. Declare Function Abbreviate(fromString As String, full As String) As String
  22459. Declare Function GetAttribute(theString As String, theAttribute As String) As String
  22460. '++LotusScript Development Environment:2:5:(Declarations):0:10
  22461. '-----------------------------------------------------------------------------
  22462. ' MsgBox parameters
  22463. '-----------------------------------------------------------------------------
  22464. Public Const MB_OK = 0                         ' OK button only
  22465. Public Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  22466. Public Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  22467. Public Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  22468. Public Const MB_YESNO = 4              ' Yes and No buttons
  22469. Public Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  22470. Public Const MB_ICONSTOP = 16          ' Critical message
  22471. Public Const MB_ICONQUESTION = 32      ' Warning query
  22472. Public Const MB_ICONEXCLAMATION = 48   ' Warning message
  22473. Public Const MB_ICONINFORMATION = 64   ' Information message
  22474. Public Const MB_APPLMODAL = 0         ' Application Modal Message Box
  22475. Public Const MB_DEFBUTTON1 = 0       ' First button is default
  22476. Public Const MB_DEFBUTTON2 = 256       ' Second button is default
  22477. Public Const MB_DEFBUTTON3 = 512       ' Third button is default
  22478. Public Const MB_SYSTEMMODAL = 4096     ' System Modal
  22479. '-----------------------------------------------------------------------------
  22480. ' MsgBox return values
  22481. '-----------------------------------------------------------------------------
  22482. Public Const IDOK = 1                  ' OK button pressed
  22483. Public Const IDCANCEL = 2              ' Cancel button pressed
  22484. Public Const IDABORT = 3               ' Abort button pressed
  22485. Public Const IDRETRY = 4               ' Retry button pressed
  22486. Public Const IDIGNORE = 5              ' Ignore button pressed
  22487. Public Const IDYES = 6                 ' Yes button pressed
  22488. Public Const IDNO = 7                  ' No button pressed
  22489. Const NOTES = "1" 
  22490. Const CCMAIL = "2"
  22491. Const INTERNET = "5"
  22492. Const X400 = "4"
  22493. '++LotusScript Development Environment:2:2:Initialize:1:10
  22494. Sub Initialize
  22495.      
  22496.      Dim session As New NotesSession 
  22497.      Dim db As NotesDatabase    
  22498.      Dim docCount, actualCount As Integer
  22499.      Dim noteList As NotesDocumentCollection
  22500.      
  22501.      AddressBook = session.GetEnvironmentString("NAMES", True)
  22502.      If AddressBook = "" Then AddressBook = "names.nsf"
  22503.      
  22504.      CommaLocation = Instr(AddressBook, ",")
  22505.      If CommaLocation > 0 Then AddressBook = Left(AddressBook, CommaLocation-1)
  22506.      Dim addressDb As New NotesDatabase( "", AddressBook )
  22507.      If Not addressDB.IsOpen Then
  22508.           Messagebox "Unable to locate your Name & Address Book.  Name not added.", MB_ICONSTOP, "Add Sender to Address Book"
  22509.           Exit Sub
  22510.      End If
  22511.      
  22512.      actualCount = 0
  22513.      
  22514.      Set db = session.CurrentDatabase
  22515.      Set noteList = db.UnprocessedDocuments
  22516.      
  22517.      docCount = noteList.Count
  22518.      If docCount > 1 Then
  22519.           Dim alreadyAdded List As String
  22520.      End If
  22521.      
  22522.      Dim i As Integer
  22523.      i = 0
  22524.      
  22525.      Dim note As NotesDocument
  22526.      
  22527.      Set note = noteList.GetFirstDocument
  22528.      
  22529.      Do While Not (note Is Nothing)
  22530.           
  22531.           i = i + 1
  22532.           Print "Processing document " + Str(i) + " of " + Str(docCount)
  22533.           
  22534.           Dim fromItem, domainItem As Variant
  22535.           
  22536.           fromItem = note.From
  22537.           domainItem = note.FromDomain
  22538.           
  22539.           Dim first, last, full As String
  22540.           Dim mailAddress As String
  22541.           
  22542.           Dim addressType As String
  22543.           Dim pos As Integer
  22544.           
  22545.           last = ""
  22546.           mailAddress = fromItem(0)
  22547.           addressType = ""
  22548.           
  22549.      ' Is it a cc:Mail address?
  22550.           pos = Instr(fromItem(0), " at ")
  22551.           If pos <> 0 Then
  22552.                addressType = CCMAIL
  22553.                full = Left(fromItem(0), pos - 1)
  22554.                Goto gotFullName
  22555.           End If
  22556.           
  22557.           ' Guess whether this is an internet address or and X.400/Notes address
  22558.           
  22559.           If IsInternetAddress(fromItem(0)) Then
  22560.                ' It's an Internet address
  22561.                full = GetInternetFullName(fromItem(0))
  22562.                addressType = INTERNET
  22563.           Else
  22564.                ' See if there are any slashes at all in the address
  22565.                pos = Instr(fromItem(0), "/")
  22566.                
  22567.                If pos = 0 Then
  22568.                     full = fromItem(0)
  22569.                     addressType = NOTES
  22570.                Else
  22571.                     
  22572.                    ' Check to see if this is a canonical name
  22573.                     full = GetAttribute(fromItem(0), "CN")   
  22574.                     
  22575.                    ' If there are no /P and /A attributes, guess that this is a Notes address
  22576.                     If pos = 0 Or (full <> "" And GetAttribute(fromItem(0), "/P") = "" And GetAttribute(fromItem(0), "/A") = "") Then
  22577.                    ' It's a Notes address
  22578.                          addressType = NOTES
  22579.                     Else
  22580.                          addressType = X400
  22581.                          first = GetAttribute(fromItem(0), "/G")
  22582.                          last = GetAttribute(fromItem(0), "/S")
  22583.                          
  22584.                ' try to get the common name, if it isn't there, make it from first and last name
  22585.                          full = GetAttribute(fromItem(0), "/CN")
  22586.                          If full = "" Then
  22587.                               If first <> "" Then
  22588.                                    full = first + " " + last
  22589.                               Else
  22590.                                    full = last
  22591.                               End If
  22592.                          End If
  22593.                     End If
  22594.                End If
  22595.           End If
  22596.           
  22597.           
  22598. gotFullName:
  22599.           
  22600.           ' if last is not empty then the name has already been parsed
  22601.           If last = "" Then
  22602.                full = Deflate(full)
  22603.                full = FixFullName(full)
  22604.                
  22605.                first = GetFirst(full)
  22606.                last = GetLast(full)
  22607.           End If ' last <> ""
  22608.           
  22609.           If addressType = NOTES Then
  22610.                full = fromItem(0)
  22611.                mailAddress = full
  22612.           End If
  22613.           
  22614.           ' If this person has already been added or it's you, skip it
  22615.           If Iselement(alreadyAdded(full)) Goto nextDocument
  22616.           
  22617.           Dim fullname As New notesname(full)               
  22618.           
  22619.           If Not addressDB.IsOpen Then Call addressDB.Open( "", AddressBook )
  22620.           If addressDB.IsOpen Then
  22621.                
  22622.                Dim view As NotesView
  22623.                
  22624.                Set view = addressDb.GetView("($People)")
  22625.                If view Is Nothing Then
  22626.                ' tell them you cannot check
  22627.                Else
  22628.                     Dim tempDoc As NotesDocument
  22629.                     Dim searchKeys As String
  22630.                     searchKeys = Left(last, 1)
  22631.                     Set tempDoc = view.GetDocumentByKey(searchKeys)
  22632.                     NameFound = False
  22633.                     Do Until tempdoc Is Nothing
  22634.                          If tempDoc.FullName(0) = fullname.Canonical Then
  22635.                               NameFound = True
  22636.                               Exit Do
  22637.                          Else
  22638.                               Set tempDoc = view.GetNextDocument(tempDoc)
  22639.                               If tempDoc Is Nothing Then Exit Do
  22640.                               If Left(tempDoc.LastName(0), 1) <> searchKeys Then Exit Do
  22641.                          End If
  22642.                     Loop                              
  22643.                     
  22644.                     If NameFound Then
  22645.                          ' Don't prompt if we are doing 10 people or more, chances are that this will be an unattended operation. Default to no.                              
  22646.                          If docCount > 10 Goto nextDocument
  22647.                          If Messagebox (first & " " & last + " is already in your personal address book. Are you sure you want to add this address?", MB_YESNO+MB_ICONQUESTION, _
  22648.                          "Name already exists") = IDNO Then
  22649.                               alreadyAdded(full) = "1'"
  22650.                               Goto nextDocument
  22651.                          End If
  22652.                          
  22653.                     End  If ' NameFound
  22654.                     
  22655.                End If ' not view is nothing
  22656.                Dim newnote As New NotesDocument(addressDB)
  22657.                newnote.Form = "Person"
  22658.                newnote.Type = "Person"
  22659.                newnote.FirstName = first
  22660.                newnote.LastName = last
  22661.                
  22662.                newnote.FullName = fullname.Canonical
  22663.                newnote.MailAddress = mailAddress
  22664.                
  22665.                If domainItem(0) <> "" Then
  22666.                     newnote.MailAddress = newnote.MailAddress(0)  + " @ " + domainItem(0)
  22667.                End If
  22668.                newnote.MailSystem = addressType
  22669.                
  22670.                'newnote.MailDomain = domainItem(0)
  22671.                'Select Case addressType
  22672.                'Case CCMAIL
  22673.                     'newNote.ccMailAddress = mailAddress
  22674.                     'newNote.ccMailDomain = domainItem(0)
  22675.                'Case INTERNET
  22676.                     'newNote.InternetAddress = mailAddress
  22677.                     'newNote.InternetDomain = domainItem(0)
  22678.                'Case X400
  22679.                     'newNote.X400Address = mailAddress
  22680.                     'newNote.X400Domain = domainItem(0)
  22681.                'End Select
  22682.                
  22683.                If newnote.save(True, True) Then
  22684.                ' If we are only doing one document, tell them who we added
  22685.                     If docCount = 1 Then Messagebox first & " " & last + " has been added to your personal address book.", MB_OK, "Name added"
  22686.                     actualCount = actualCount + 1
  22687.                     alreadyAdded(full) = "1"
  22688.                Else
  22689.                     Messagebox "Cannot save "+first & " " & last+" in personal address book " & AddressBook & ".", MB_ICONSTOP, "Name not added"
  22690.                     Exit Do
  22691.                End If
  22692.           Else ' addressDb.IsOpen
  22693.                Messagebox "Cannot open personal address book " & AddressBook & ".", MB_ICONSTOP, "Name not added"
  22694.                Exit Sub
  22695.           End If
  22696. nextDocument:
  22697.           Set note = noteList.GetNextDocument(note)
  22698.      Loop
  22699.      If docCount > 1 Then
  22700.           Dim tempString As String
  22701.           If actualCount = 1 Then tempString = " person was" Else tempString = " people were"
  22702.           Messagebox Str(actualCount) + tempString + " added to your personal address book.", MB_OK, "Names added"
  22703.      End If
  22704. End Sub
  22705. '++LotusScript Development Environment:2:1:IsInternetAddress:1:8
  22706. Function IsInternetAddress(address As String) As Integer
  22707.      ' Return 0 through n, depending on how sure we are this is an Internet address
  22708.      IsInternetAddress = 0
  22709.      If address Like "*@*[! ].[! ]*" Then IsInternetAddress = IsInternetAddress + 1
  22710. End Function
  22711. '++LotusScript Development Environment:2:1:Deflate:1:8
  22712. Function Deflate(s As String) As String
  22713.      ' Remove all excess spaces from the string s
  22714.      Dim newString As String
  22715.      newString = ""
  22716.      s = Trim(s)
  22717.      Do While s <> ""
  22718.           If Left(s, 1) <> " " Then
  22719.                newString = newString + Left(s, 1)
  22720.                s = Mid(s, 2)
  22721.           Else
  22722.                newString = newString + " "
  22723.                ' Eat all the spaces
  22724.                Do While Left(s, 1) = " "
  22725.                     s = Mid(s, 2)
  22726.                Loop
  22727.           End If
  22728.      Loop
  22729.      Deflate = newString    
  22730. End Function
  22731. '++LotusScript Development Environment:2:1:FixFullName:1:8
  22732. Function FixFullName(full As String) As String
  22733.      ' Put a name string in the format: FIRST [MIDDLE] LAST [, SUFFIX]
  22734.      ' Assume that the string has no excess spaces
  22735.      
  22736.      Dim after As String
  22737.      Dim pos As Integer
  22738.      
  22739.      pos = Instr(full, ",")
  22740.      If pos <> 0 Then
  22741.           after = Trim(Mid(full, pos + 1))
  22742.           ' Is the string after the comma not a last namesuffix?
  22743.           If Not (Lcase(after) Like "jr*,sr*, II*") Then
  22744.                full = Trim(Left(full, pos - 1))
  22745.                full = after + " " + full
  22746.           End If
  22747.      Else
  22748.           pos = Instr(full, ".")
  22749.           If pos <> 0 Then
  22750.                after = Trim(Mid(full,pos+1))
  22751.                full = Left$(full, pos-1) + " " + after
  22752.           Else
  22753.                pos = Instr(full, "_")
  22754.                If pos <> 0 Then
  22755.                     after = Trim(Mid(full,pos+1))
  22756.                     full = Left$(full,pos-1) + " " + after
  22757.                End If
  22758.           End If
  22759.      End If
  22760.      
  22761.      FixFullName = full
  22762.      
  22763. End Function
  22764. '++LotusScript Development Environment:2:1:GetInternetFullName:1:8
  22765. Function GetInternetFullName(fromString As String) As String
  22766.      Dim pos As Integer
  22767.      Dim full As String
  22768.      
  22769.      Const QUOTE = """"
  22770.      
  22771.      ' Look for parenthesis e.g. poleary@iris.com ("Peter O'Leary")
  22772.      pos = Instr(fromString, "(")
  22773.      If pos = 0 Then
  22774.           ' no parens, just get the username
  22775.           pos = Instr(fromString, "@")
  22776.           full = Trim(Left(fromString, pos - 1))
  22777.           pos = Instr(full, "<")
  22778.           If pos>0 Then
  22779.                If Trim(Left(full, pos-1)) <> "" Then 
  22780.                     full = Trim(Left(full, pos-1))
  22781.                Else
  22782.                     full = Right(full,Len(full)-1)
  22783.                End If
  22784.                
  22785.                If Left(full,1) = QUOTE And Right(full,1) = QUOTE Then
  22786.                     full = Right(full,Len(full)-1)
  22787.                     full = Left(full,Len(full)-1)
  22788.                End If
  22789.           End If
  22790.      Else
  22791.           full = Mid(fromString, pos + 1)
  22792.           
  22793.           ' If the string is quoted, get everything in the quotes
  22794.           If Left(full, 1) = """" Then
  22795.                full = Mid(full, 2)
  22796.                pos = Instr(full, """")
  22797.           Else
  22798.                pos = Instr(full, ")")
  22799.           End If
  22800.           
  22801.           full = Left(full, pos - 1)
  22802.      End If
  22803.      GetInternetFullName = full
  22804. End Function
  22805. '++LotusScript Development Environment:2:1:GetFirst:1:8
  22806. Function GetFirst(full As String) As String
  22807.      Dim spacePos As Integer
  22808.      spacePos = Instr(full, " ")
  22809.      If spacePos <> 0 Then
  22810.           GetFirst = Trim(Left(full, spacePos))
  22811.      Else
  22812.           GetFirst = ""
  22813.      End If
  22814. End Function
  22815. '++LotusScript Development Environment:2:1:GetLast:1:8
  22816. Function GetLast(full As String) As String
  22817.      
  22818.      ' Get the lastname from a string
  22819.      ' Assume that the string is already formated as: FIRST [MIDDLE] LAST [, SUFFIX]
  22820.      
  22821.      Dim spacePos As Integer
  22822.      
  22823.      ' If there is a comma, chop off everything after it
  22824.      spacePos = Instr(full, ",")
  22825.      If spacePos <> 0 Then
  22826.           full = Left(full, spacePos - 1)
  22827.      End If
  22828.      
  22829.      spacePos = Instr(full, " ")
  22830.      
  22831.      ' If there are no spaces, get the whole string
  22832.      If spacePos = 0 Then
  22833.           spacePos = 1
  22834.      Else
  22835.           ' Make sure we have the last space in the string, assume that there is only one space between words
  22836.           Dim nextSpace As Integer
  22837.           nextSpace = Instr(spacePos + 1, full," " )
  22838.           Do While nextSpace <> 0
  22839.                spacePos = nextSpace
  22840.                nextSpace = Instr(spacePos + 1, full," " )
  22841.           Loop
  22842.      End If
  22843.      
  22844.      Last = Trim(Mid(full, spacePos))     
  22845.      
  22846. 'if there are any / in the name, get what comes before it     
  22847.      spacePos = Instr(Last, "/")
  22848.      If spacePos > 0 Then
  22849.           Last = Trim(Left(Last, spacePos - 1))
  22850.      End If
  22851.      
  22852.      GetLast = Last
  22853.      
  22854. End Function
  22855. '++LotusScript Development Environment:2:1:Abbreviate:1:8
  22856. Function Abbreviate(fromString As String, full As String) As String
  22857.      Dim ou, o As String        
  22858.      ou = GetAttribute(fromString, "/OU")
  22859.      o = GetAttribute(fromString, "/O")
  22860.      
  22861.      If ou <> "" Then
  22862.           full = full + "/" + ou
  22863.      End If
  22864.      If o <> "" Then
  22865.           full = full + "/" + o
  22866.      End If
  22867.      
  22868.      Abbreviate = full
  22869. End Function
  22870. '++LotusScript Development Environment:2:1:GetAttribute:1:8
  22871. Function GetAttribute(theString As String, theAttribute As String) As String
  22872.      Dim startpos, endpos As Integer
  22873.      startpos = Instr(theString, theAttribute+"=")
  22874.      If (startpos<>0) Then
  22875.           startpos = startpos + Len(theAttribute+"=")
  22876.           endpos = Instr(startpos, theString, "/")
  22877.           If endpos = 0 Then
  22878.                endpos = Len(theString) + 1
  22879.           End If
  22880.           GetAttribute = Trim(Mid(theString, startpos, endpos - startpos))
  22881.      Else
  22882.           GetAttribute = ""
  22883.      End If
  22884. End Function
  22885. @    `    d
  22886. }|    #}
  22887. O=Lotus Notes
  22888. O=Lotus Notes
  22889. PURSAFO
  22890. |.:#U
  22891. O=Lotus Notes
  22892. CN=Lotus Notes Template Development/O=Lotus Notes
  22893. PURSAFO
  22894. Fde!f^^
  22895. $TITLE
  22896. $AssistType
  22897. $AssistLastRun
  22898. $AssistDocCount
  22899. $AssistFlags
  22900. $AssistTrigger
  22901. $AssistInfo
  22902. $AssistQuery
  22903. $AssistAction
  22904. $AssistAction_Ex
  22905. _Forward
  22906. Categori_zeK
  22907. Edit Document
  22908. _Move to Folder...
  22909. _Remove from Folder...
  22910. Setup Archive...L
  22911. ArchiveProfile
  22912. Server
  22913.     1S2S6S
  22914.     0R1S2S6S
  22915. Server
  22916.     0R7S8S11S13S14S15S16S
  22917. Archive NowK
  22918. Archive Profile
  22919.     1S2S
  22920. AllDocs
  22921. NoCache
  22922. ($Profiles)
  22923. ArchivePath
  22924.     0R1S2S8S10S12S14S
  22925. AllDocs
  22926. Error
  22927. You must specify a location for the archive database
  22928.     0R3S4S5S6S14S15S
  22929. AllDocs2
  22930. NoCache
  22931. ($Profiles)
  22932. ArchivePath
  22933. Archive Now
  22934. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  22935.     0RR1S2S12S14S16S18S28S30S34S
  22936. Archiving
  22937. Are you sure you want to move documents to the archive database now?
  22938.     0R6S8S11S13S
  22939. AlreadyArchived
  22940. MailArchived|
  22941. Archiving
  22942. Since this is the first time you have requested an archive, it may take several minutes.  Do you want to proceed?
  22943. Archiving
  22944. No documents were archived
  22945.     0RR1S2S8S9S11S13S19S21S24S26S32S34S
  22946. MailArchived
  22947.     0RR1S2S3S
  22948. Periodic Archive
  22949.     0R4S
  22950. Server
  22951.     1S2S6S
  22952.     0R1S2S6S
  22953. Server
  22954.     0R7S8S11S13S14S15S16S
  22955. Enable Scheduled Archivingf
  22956. AllDocs
  22957. Archiving
  22958. Archive Profile
  22959. Archive Now
  22960. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  22961.     1S2S10S12S14S16S20S26S28S32S
  22962. Periodic Archive
  22963.     0RR4S
  22964. Server
  22965.     1S2S6S
  22966.     0R1S2S6S
  22967. Periodic Archive
  22968. Server
  22969.     0R4S5R12S13S16S18S19S20S21S
  22970. Disable Scheduled ArchivingKf
  22971. AllDocs
  22972. Archiving
  22973. Archive Profile
  22974. Archive Now
  22975. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  22976.     1S2S10S12S14S16S20S26S28S32S
  22977. Periodic Archive
  22978.     0RR4S
  22979. Server
  22980.     1S2S6S
  22981.     0R1S2S6S
  22982. Periodic Archive
  22983. Server
  22984.     0R7S8R15S16S19S21S22S23S24S
  22985. Open Archive Db...'++LotusScript Development Environment:2:5:(Options):0:66
  22986. '++LotusScript Development Environment:2:5:(Forward):0:1
  22987. Declare Sub Click(Source As Button)
  22988. '++LotusScript Development Environment:2:5:(Declarations):0:10
  22989. Dim s As NotesSession
  22990. Dim w As NotesUIWorkspace
  22991. Dim sourcedb As NotesDatabase
  22992. Dim view As NotesView
  22993. Dim profile As NotesDocument
  22994. Dim server As String
  22995. '++LotusScript Development Environment:2:2:BindEvents:1:129
  22996. Private Sub BindEvents(Byval Objectname_ As String)
  22997.      Static Source As BUTTON
  22998.      Set Source = Bind(Objectname_)
  22999.      On Event Click From Source Call Click
  23000. End Sub
  23001. '++LotusScript Development Environment:2:2:Click:1:12
  23002. Sub Click(Source As Button)
  23003.      
  23004.      On Error Goto ErrorRoutine
  23005. '91 is Object Variable Not Set     
  23006.      On Error 91 Resume Next 
  23007. '4412 is the notes database does not exist     
  23008.      On Error 4412 Goto DatabaseNotExistError
  23009.      
  23010.      Set s = New NotesSession
  23011.      Set sourcedb = s.CurrentDatabase
  23012.      Set view = sourcedb.GetView("($Profiles)")
  23013.      key = "Archive Profile"
  23014.      Set profile = view.GetDocumentByKey(key)
  23015.      
  23016.      If profile Is Nothing Then
  23017.           Messagebox "There is no Archive Db for this database.", 0 + 64, "Archive"
  23018.           Exit Sub
  23019.      End If
  23020.      
  23021.      ArchivePath = profile.ArchivePath
  23022.      ArchiveServer = profile.ArchiveServer
  23023.      If (ArchivePath(0) = "") Then
  23024.           Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  23025.           Exit Sub              
  23026.      End If
  23027.      
  23028.      Set w = New NotesUIWorkspace
  23029.      
  23030.      Call w.OpenDatabase(ArchiveServer(0), ArchivePath(0), "", "", "1")
  23031.      
  23032.      Exit Sub
  23033.      
  23034. ErrorRoutine:
  23035.      Messagebox "Unexpected condition: " & Err & " - " & Error
  23036.      Exit Sub
  23037. DatabaseNotExistError:
  23038.      Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  23039.      Exit Sub     
  23040. End Sub
  23041. O=Lotus Notes
  23042. O=Lotus Notes
  23043. PURSAFO
  23044. |.:#U
  23045. O=Lotus Notes
  23046. CN=Lotus Notes Template Development/O=Lotus Notes
  23047. PURSAFO
  23048. Fde!f^^
  23049. ulSNh
  23050. yi#_9m
  23051. $SCRIPTOBJ_11
  23052. $TITLE
  23053. $Index
  23054. $Formula
  23055. $FormulaClass
  23056. $VIEWFORMAT
  23057. $Comment
  23058. $ACTIONS
  23059. $SCRIPTOBJ_10
  23060. $ViewGlobalScript_O
  23061. &Arial
  23062.  StdNotesLtr1
  23063. tmpDisplayFrom_Preview
  23064. tmpFrom
  23065. tmpDisplayDate_Preview
  23066. tmpDate
  23067. O=Lotus Notes
  23068. O=Lotus Notes
  23069. PURSAFO
  23070. |.:#U
  23071. O=Lotus Notes
  23072. CN=Lotus Notes Template Development/O=Lotus Notes
  23073. PURSAFO
  23074. Fde!f^^
  23075. $TITLE
  23076. $INFO
  23077. $$ScriptName
  23078. $BODY
  23079. Times New Roman
  23080. VersionOpt|
  23081.     6S7S9S14S
  23082. $VersionOpt
  23083.     0R1S2S3S
  23084. SavedOnce
  23085.     0R1S2S3S
  23086. PostedDate(
  23087.     0R1S2S3S
  23088. DeliveredDate
  23089.     0R1S2S3S
  23090. $AutoEditMode
  23091.     0R1S2S3S
  23092. MailSaveOptions
  23093.     0R1S2S3S
  23094. VersionOpt
  23095.     0R4S
  23096. Personal Stationery
  23097. Subject
  23098. Subject
  23099. Subject
  23100.     4S6S12S13S14S15S17S21S23S25S26S28S
  23101. '++LotusScript Development Environment:2:5:(Options):0:74
  23102. Option Public
  23103. Use "EmailProcessing"
  23104. Use "DocumentConversions"
  23105. '++LotusScript Development Environment:2:5:(Forward):0:1
  23106. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23107.  Personal Stationery'++LotusScript Development Environment:2:5:(Options):0:66
  23108. '++LotusScript Development Environment:2:5:(Forward):0:1
  23109. Declare Sub Postopen(Source As Notesuidocument)
  23110. Declare Sub Postmodechange(Source As Notesuidocument)
  23111. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  23112. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  23113. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23114. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23115. Private Sub BindEvents(Byval Objectname_ As String)
  23116.      Static Source As NOTESUIDOCUMENT
  23117.      Set Source = Bind(Objectname_)
  23118.      On Event Postopen From Source Call Postopen
  23119.      On Event Postmodechange From Source Call Postmodechange
  23120.      On Event Querysave From Source Call Querysave
  23121.      On Event Queryclose From Source Call Queryclose
  23122. End Sub
  23123. '++LotusScript Development Environment:2:2:Postopen:1:12
  23124. Sub Postopen(Source As Notesuidocument)
  23125.      
  23126.      Set ws = New NotesUIWorkSpace
  23127.      Set uidoc = source
  23128.      
  23129.      Call EmailOpen
  23130.      
  23131. End Sub
  23132. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  23133. Sub Postmodechange(Source As Notesuidocument)
  23134.      
  23135.      Call EmailModeChange
  23136.      
  23137. End Sub
  23138. '++LotusScript Development Environment:2:2:Querysave:1:12
  23139. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  23140.      
  23141.      Call EmailSave(Continue)
  23142.      
  23143. End Sub
  23144. '++LotusScript Development Environment:2:2:Queryclose:1:12
  23145. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  23146.      
  23147.      Call EmailClose(Continue)
  23148.      
  23149. End Sub
  23150.     Always Hidden: 
  23151. Principal
  23152. CalendarProfile
  23153. Owner
  23154.     1S2S3S7S
  23155. FromPerson memo is from.
  23156.     0S0E
  23157.     0S0E
  23158. Encrypt
  23159.     0S0E
  23160. DefaultMailSaveOptions
  23161. $KeepPrivate
  23162. $KeepPrivate
  23163. $KeepPrivate
  23164.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  23165. Header
  23166.     From:    
  23167. Principal
  23168. Principal
  23169. FromDomain
  23170. FromDomain
  23171. FromDomain
  23172. FromDomain
  23173.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  23174. FromName
  23175. Principal
  23176. Principal
  23177.     0RR1S2S9S11S15S
  23178. FromStops
  23179.     0R1S2S6S
  23180. FromName
  23181. FromStops
  23182. FromStops
  23183. FromStops
  23184.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  23185.      on 
  23186. PostedDateh
  23187. PostedDate
  23188.     7S9S
  23189. tmpDisplayDateTime/date memo was created or mailed.
  23190. ReplyDate
  23191. ReplyTo
  23192.     1S2S3S4S5S6S
  23193. Please respond
  23194. ReplyTo
  23195. ReplyTo
  23196. ReplyDate
  23197. ReplyDate
  23198.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  23199. $HideMailHeader
  23200. Principal
  23201. Principal
  23202. Principal
  23203. Principal
  23204. Principal
  23205.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  23206.     Sent by:    
  23207. FromDomain
  23208. FromDomain
  23209. FromDomain
  23210. FromDomain
  23211.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  23212. FromName
  23213.     0RR1S2S6S
  23214. FromStops
  23215.     0R1S2S6S
  23216. FromName
  23217. FromStops
  23218. FromStops
  23219. FromStops
  23220.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  23221. SendTo
  23222. CopyTo
  23223.   cc:  
  23224. CopyTo
  23225.     1S2S8S13S14S2E17S18S21S22S28S31S
  23226.     To:    
  23227. SendTo}
  23228.     0S0E
  23229. SendTo^
  23230. No names found to send mail.{
  23231.     1S6S7S8S9S11S16S
  23232. SendToList of primary people to send memo.
  23233.     cc:    
  23234. CopyTo}
  23235.     0S0E
  23236. CopyToList of people to send a copy of the memo.
  23237. DeliveredDate
  23238. BlindCopyTo
  23239. (bcc: 
  23240. BlindCopyTo
  23241.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  23242.     bcc:    
  23243. BlindCopyTo
  23244.     0S0E
  23245. BlindCopyToList of undisclosed people to send copies of memo.
  23246.     Subject:    
  23247. PhoneCaller
  23248. Phone Call: 
  23249. PhoneCaller
  23250. Subject
  23251.     7S8S9S11SSubjectSubject of memo.
  23252. $HideMailHeader
  23253.     0S0E
  23254. $HideMailHeader
  23255. Moods
  23256. PostedDate
  23257. SenderTag
  23258. Moods
  23259.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  23260. Footer
  23261. Edit Document
  23262. ForwardK 
  23263.     0S0E
  23264. New Memo.
  23265.     0S0E
  23266. Delete 
  23267.     0S0E
  23268. _Move To Folder...
  23269. Delivery Information...Kz
  23270. DeliveryInfo
  23271. Delivery Information
  23272.     4S5S6S7S8S9S10S12S
  23273. _Forward
  23274. Reply
  23275. Reply
  23276.     0S0E
  23277. Reply With History
  23278. Reply with History
  23279. This document is truncated.
  23280.     4S8S10S13S
  23281. Reply with history
  23282. Address... 
  23283.     0S0E
  23284. PostedDateh
  23285.     5S6S7S8S
  23286. Close
  23287.     0S0E
  23288. IsMailStationeryh
  23289. PostedDateh
  23290.     6S7S
  23291. Save As Draft
  23292. tmpAction
  23293. SaveAsDraft
  23294.     1S2S3S
  23295. IsMailStationeryh
  23296. PostedDateh
  23297.     4S5S
  23298. Save and File
  23299.     7S9S
  23300. tmpAction
  23301. SaveAndFile
  23302.     0R1S2S3S
  23303. IsMailStationeryh
  23304. PostedDateY
  23305. PostedDateh
  23306.     4S5S9S10S16S17S18S19S
  23307. PromptValue
  23308. DefaultMailSaveOptions
  23309. Save when sent
  23310. Do you wish to save a copy of this Memo?
  23311. DefaultMailSaveOptions
  23312.     1S2S5S6S8S14S17S
  23313. SaveOptions
  23314. PromptValue
  23315. SaveOptions
  23316. PromptValue
  23317.     0RR1S2S5S6S9S14S
  23318. tmpAction
  23319. DefaultMailSaveOptions
  23320. Mailing
  23321.     0RR1S2S3S6S7S9S11S
  23322. MailOptions
  23323.     0R1S2S3S
  23324.     0R7S9S
  23325. tmpAction
  23326. SaveOptions
  23327. SendAndFile
  23328.     0RR1S2S3S6S7S9S11S
  23329.     0R7S9S
  23330. PostedDateh
  23331. IsMailStationeryh
  23332.     5S6S7S8S10S11S
  23333. Send And File...
  23334. tmpAction
  23335. DefaultMailSaveOptions
  23336. Mailing
  23337.     1S2S3S6S7S9S11S
  23338. MailOptions
  23339.     0R1S2S3S
  23340.     0RR7S9S
  23341. tmpAction
  23342. SendAndFile
  23343.     0RR1S2S3S
  23344.     0R7S9S
  23345.     0R7S9S
  23346. PostedDateh
  23347. IsMailStationeryh
  23348.     5S6S7S8S10S11S
  23349. Delivery Options...K
  23350. DeliveryOptions
  23351. Delivery Options
  23352.     4S8S
  23353. _ViewIcon
  23354. SenderTag
  23355. SenderTag
  23356. SenderTag
  23357. SenderTag
  23358. SenderTag
  23359. SenderTag
  23360. SenderTag
  23361. SenderTag
  23362. SenderTag
  23363. SenderTag
  23364. SenderTag
  23365.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  23366. PostedDateh
  23367.     5S6S7S8S
  23368. Special Options...6
  23369. ReplyDate
  23370. ReplyDate
  23371.     1S2S3S
  23372. ReplyTo
  23373. ReplyTo
  23374.     0R1S2S3S
  23375. (Advanced Options)
  23376. Special Options
  23377.     0R6S10S13S15S
  23378. tmpDisplayReplyInfo
  23379. Please respond
  23380. ReplyTo
  23381. ReplyTo
  23382. ReplyDate
  23383. ReplyDate
  23384.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  23385. DueDateTime
  23386. ReplyDate
  23387. ReplyDate
  23388.     0R1S2S3S6S7S9S11S
  23389. PostedDateh
  23390.     5S6S7S8S
  23391. Save As Stationery...
  23392. tmpAction
  23393. SaveAsStationery
  23394.     1S2S3S
  23395. IsMailStationeryh
  23396.     0S0E
  23397. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  23398. '++LotusScript Development Environment:2:5:(Forward):0:1
  23399. Declare Sub Click(Source As Button)
  23400. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23401. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23402. Private Sub BindEvents(Byval Objectname_ As String)
  23403.      Static Source As BUTTON
  23404.      Set Source = Bind(Objectname_)
  23405.      On Event Click From Source Call Click
  23406. End Sub
  23407. '++LotusScript Development Environment:2:2:Click:1:12
  23408. Sub Click(Source As Button)
  23409.      Call CreateNewDoc(NEW_MEMO)
  23410. End Sub
  23411. tmpNewDoc
  23412.     1S2S
  23413. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  23414. '++LotusScript Development Environment:2:5:(Forward):0:1
  23415. Declare Sub Click(Source As Button)
  23416. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23417. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23418. Private Sub BindEvents(Byval Objectname_ As String)
  23419.      Static Source As BUTTON
  23420.      Set Source = Bind(Objectname_)
  23421.      On Event Click From Source Call Click
  23422. End Sub
  23423. '++LotusScript Development Environment:2:2:Click:1:12
  23424. Sub Click(Source As Button)
  23425.      Call CreateNewDoc(NEW_CALENDAR)
  23426. End Sub
  23427. tmpNewDoc
  23428.     1S2S
  23429. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  23430. '++LotusScript Development Environment:2:5:(Forward):0:1
  23431. Declare Sub Click(Source As Button)
  23432. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23433. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23434. Private Sub BindEvents(Byval Objectname_ As String)
  23435.      Static Source As BUTTON
  23436.      Set Source = Bind(Objectname_)
  23437.      On Event Click From Source Call Click
  23438. End Sub
  23439. '++LotusScript Development Environment:2:2:Click:1:12
  23440. Sub Click(Source As Button)
  23441.      Call CreateNewDoc(NEW_TASK)
  23442. End Sub
  23443. tmpNewDoc
  23444.     1S2S
  23445. Copy into\New GroupK,
  23446. NewGroup
  23447.     0S0E
  23448. tmpNewDoc
  23449.     1S2S
  23450. _Remove From Folder...
  23451. Categori_zeK
  23452. SSend
  23453. O=Lotus Notes
  23454. O=Lotus Notes
  23455. PURSAFO
  23456. |.:#U
  23457. O=Lotus Notes
  23458. CN=Lotus Notes Template Development/O=Lotus Notes
  23459. PURSAFO
  23460. Fde!f^^
  23461. $$FormPostOpenAction
  23462. $TypeIcon
  23463. ExpireDate
  23464. ReplyDate
  23465. ComposedDate
  23466. $TITLE
  23467. $INFO
  23468. $WINDOWTITLE
  23469. $Script
  23470. $$Script_O
  23471. $$ScriptName
  23472. $$FormScript
  23473. $$$FormScript_O
  23474. $BODY
  23475. $ACTIONS
  23476. $SCRIPTOBJ_18
  23477. $SCRIPTOBJ_19
  23478. $SCRIPTOBJ_20
  23479. (ProcessExistingDbDlg)'++LotusScript Development Environment:2:5:(Options):0:66
  23480. '++LotusScript Development Environment:2:5:(Forward):0:1
  23481. Declare Sub Postopen(Source As Notesuidocument)
  23482. '++LotusScript Development Environment:2:5:(Declarations):0:2
  23483. '++LotusScript Development Environment:2:2:BindEvents:1:129
  23484. Private Sub BindEvents(Byval Objectname_ As String)
  23485.      Static Source As NOTESUIDOCUMENT
  23486.      Set Source = Bind(Objectname_)
  23487.      On Event Postopen From Source Call Postopen
  23488. End Sub
  23489. '++LotusScript Development Environment:2:2:Postopen:1:12
  23490. Sub Postopen(Source As Notesuidocument)
  23491.      source.RefreshHideFormulas
  23492. End Sub
  23493. DeleteOptions
  23494. Delete the original database|1
  23495.     Documents are archived:
  23496. ArchiveLocation
  23497. Local
  23498.     1S2S
  23499.     Archive database is on server:
  23500.     Archive file:
  23501. Local
  23502. ArchiveLocation
  23503. Locally | LocalOn Server | Server
  23504.     0S0E
  23505. ArchiveServer
  23506. ArchiveLocation
  23507. Local
  23508. ArchiveServer
  23509. ArchiveServer
  23510.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  23511. ArchiveServer
  23512. CurrentPath
  23513.     1S2S6S
  23514. CurrentFile
  23515. CurrentPath
  23516.     0R1S2S6S
  23517. FileOnly
  23518. CurrentPath
  23519. CurrentFile
  23520. Macintosh
  23521. CurrentPath
  23522. CurrentFile
  23523. CurrentPath
  23524. CurrentFile
  23525. CurrentFile
  23526.     0R1S2S8S11S15S18S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  23527. DirOnly
  23528. CurrentPath
  23529. CurrentFile
  23530. Macintosh
  23531. CurrentPath
  23532. CurrentFile
  23533. CurrentPath
  23534. CurrentFile
  23535.     0R1S2S8S11S15S17S18S20S21S22S23S24S28S31S35S37S38S40S41S42S43S44S48S51S55S57S58S60S
  23536. DirOnly
  23537. FileOnly"
  23538. CurrentPath
  23539.     0RR1S2S5S6S8S10S11S15S
  23540. ArchivePath
  23541. Please specify the filename of the archive database
  23542.     3S4S6S11SArchivePath
  23543.     After creating the new archive db:
  23544. servers
  23545. names.nsf
  23546. ($ServersLookup)
  23547.     1S2S
  23548. selectedserver
  23549. Server
  23550. Please select a server to create your archive database on.
  23551. ArchiveServer
  23552. servers
  23553.     0R1S2S
  23554. ArchiveServer
  23555. selectedServer
  23556.     0R1S2S3S
  23557. ?_?__
  23558. `!b`1
  23559. 7`^///?
  23560. ?b___
  23561. `bOOO
  23562. `<b!R
  23563. @If(@IsN
  23564. CopyOptions
  23565. Copy documents from the original archive to the new one|1
  23566. O=Lotus Notes
  23567. O=Lotus Notes
  23568. PURSAFO
  23569. |.:#U
  23570. O=Lotus Notes
  23571. CN=Lotus Notes Template Development/O=Lotus Notes
  23572. PURSAFO
  23573. Fde!f^^
  23574. $TITLE
  23575. $INFO
  23576. $$Script_O
  23577. $$ScriptName
  23578. $$FormScript
  23579. $$$FormScript_O
  23580. $BODY
  23581. $PublicAccess
  23582. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  23583. (Archive Log)Archive LogArchiveLog
  23584. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCDw###############################################
  23585. Reversed TealStdNotesLtr20CU3
  23586. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  23587. ##########################################################
  23588. Pencil and GridStdNotesLtr16CU3
  23589. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  23590. ##########################################################
  23591. 1(AlarmDialog)DCU31
  23592. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################
  23593. Purple StairsStdNotesLtr18CU3
  23594. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########
  23595. Gray Gradient and LinesStdNotesLtr13CU3
  23596. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################################################
  23597. $MoodsMoodsCU3
  23598. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################
  23599. 1(RepeatInfo)CDU31
  23600. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################
  23601. (Delivery Options)DeliveryOptionsCDU31
  23602. CN=Don Hatch/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#
  23603. _Special\Serial Route MemoRoutew
  23604. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####
  23605. CenteredStdNotesLtr3CU3
  23606. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####
  23607. Archive Log
  23608. Times New Roman
  23609.  ArchiveLog
  23610. $MessageType
  23611. %12-/H
  23612. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  23613. WC9iB.xC-iF8wH8jT>zR<rd?
  23614. 2L3;FK=Dj=C:FQ8Qp<b
  23615. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  23616. Archive Log 
  23617. LogCount
  23618. LogTotal
  23619.  for 
  23620. ArchiveDate
  23621. ArchiveTrailer
  23622. ArchiveTrailer
  23623.     Hidden:  
  23624. Archive Log for 
  23625. ArchiveDate
  23626.     1S2S
  23627. Subject
  23628. (Archive)
  23629. Categories
  23630. Close
  23631.     0S0E
  23632. Categori_ze
  23633. _Edit Document
  23634. Send Docu_ment
  23635. _Forward
  23636. _Move to Folder...
  23637. _Remove from Folder
  23638. O=Lotus Notes
  23639. O=Lotus Notes
  23640. PURSAFO
  23641. |.:#U
  23642. O=Lotus Notes
  23643. CN=Lotus Notes Template Development/O=Lotus Notes
  23644. PURSAFO
  23645. Fde!f^^
  23646. $6).%MS
  23647. DocLife
  23648. $ManualArchivers_O
  23649. ObsoleteLife
  23650. DocumentLife
  23651. $TITLE
  23652. $INFO
  23653. $WINDOWTITLE
  23654. $$Script_O
  23655. $$ScriptName
  23656. ArchiveDate
  23657. $BODY
  23658. $ACTIONS
  23659. &Arial
  23660.  StdNotesLtr20
  23661. tmpDisplayFrom_Previewb
  23662.     2S3S
  23663. TMPFROM
  23664. tmpDisplayDate_Preview
  23665. tmpDate
  23666. O=Lotus Notes
  23667. O=Lotus Notes
  23668. PURSAFO
  23669. |.:#U
  23670. O=Lotus Notes
  23671. CN=Lotus Notes Template Development/O=Lotus Notes
  23672. PURSAFO
  23673. Fde!f^^
  23674. $TITLE
  23675. $INFO
  23676. $Header
  23677. $$ScriptName
  23678. $BODY
  23679. &Arial
  23680.  StdNotesLtr16
  23681. tmpDisplayFrom_Preview
  23682. tmpFrom
  23683. tmpDisplayDate_Preview
  23684. tmpDate
  23685. O=Lotus Notes
  23686. O=Lotus Notes
  23687. PURSAFO
  23688. |.:#U
  23689. O=Lotus Notes
  23690. CN=Lotus Notes Template Development/O=Lotus Notes
  23691. PURSAFO
  23692. Fde!f^^
  23693. $TITLE
  23694. $INFO
  23695. $Header
  23696. $$ScriptName
  23697. $BODY
  23698. '++LotusScript Development Environment:2:5:(Options):0:74
  23699. Option Public
  23700. '++LotusScript Development Environment:2:5:(Forward):0:1
  23701. '++LotusScript Development Environment:2:5:(Declarations):0:10
  23702. Dim AlarmDt As NotesDateTime
  23703. (AlarmDialog)
  23704. tmpBeforeOrAfter
  23705. AppointmentType
  23706.     3S4S5S6S7S8S9S10S
  23707.     Date:
  23708. $AlarmTimeh
  23709. $AlarmTimeK
  23710.     0S0E
  23711. AutoSetAdjust
  23712. AppointmentType
  23713. CalendarProfile
  23714. AppointmentLead
  23715. AppointmentType
  23716. CalendarProfile
  23717. AnniversaryLead
  23718. AppointmentType
  23719. CalendarProfile
  23720. EventLead
  23721. AppointmentType
  23722. CalendarProfile
  23723. ReminderLead
  23724.     0RR1S2S5S6S10S13S14S17S18S19S20S21S28R29S30S31S32S39S40S41S42S43S50S
  23725. AutoNewAdjust
  23726. AutoSetAdjust
  23727. AutoSetAdjust
  23728. AppointmentType
  23729. AppointmentType
  23730.     0RR1S2S5S6S7S8S10S11S12S18S19S20S23S24S26S
  23731. AppointmentType
  23732. StartDateTime
  23733. AutoNewAdjust
  23734. AppointmentType
  23735. StartDateTime
  23736. AutoNewAdjust
  23737. StartDateTime
  23738.     0RR10R33R39R62RtmpAlarmOnDate
  23739. StartDateTime
  23740. StartDateTime
  23741.     When:
  23742. AppointmentType
  23743.     1S2S3S4S5S6S
  23744. $AlarmTimeh
  23745. $AlarmOffseth
  23746. $AlarmOffset
  23747.     20S21S23S
  23748. AppointmentType
  23749.     0R3S4S5S6S8S10StmpBeforeOrAfter
  23750. Before|1After|2On|3
  23751. tmpBeforeOrAfter
  23752. AppointmentType
  23753.     3S4S5S6S7S8S9S10S
  23754. AutoLead
  23755. CalendarProfile
  23756. AppointmentLead
  23757.     1S2S5S6S
  23758. $AlarmOffset[
  23759. $AlarmOffset
  23760. AutoLead
  23761. AutoLead
  23762.     0R1S2S9S14S15S16S17S18S
  23763. Init[
  23764. Init$
  23765.     0R7S10S11S13S15S16S18S21StmpAlarmOffset
  23766.     Minutes
  23767.     Alarm Message:
  23768. $AlarmDescription
  23769. Subject
  23770. $AlarmDescription
  23771.     3S4S6S8S
  23772. $AlarmDescription
  23773. tmpAlarmOff
  23774. Turn Alarm Off|1
  23775. $AlarmTimeh
  23776. $AlarmTimeL
  23777.     0S0E
  23778. AutoSetAdjust
  23779. AppointmentType
  23780. CalendarProfile
  23781. AppointmentLead
  23782. AppointmentType
  23783. CalendarProfile
  23784. AnniversaryLead
  23785. AppointmentType
  23786. CalendarProfile
  23787. EventLead
  23788. AppointmentType
  23789. CalendarProfile
  23790. ReminderLead
  23791.     0RR1S2S5S6S10S13S14S17S18S19S20S21S28R29S30S31S32S39S40S41S42S43S50S
  23792. AutoNewAdjust
  23793. AutoSetAdjust
  23794. AutoSetAdjust
  23795. AppointmentType
  23796. AppointmentType
  23797.     0RR1S2S5S6S7S8S10S11S12S18S19S20S23S24S26S
  23798. AppointmentType
  23799. StartDateTime
  23800. AutoNewAdjust
  23801. AppointmentType
  23802. StartDateTime
  23803. AutoNewAdjust
  23804. StartDateTime
  23805.     0RR10R33R39R62RtmpAlarmOnTime
  23806.     Time:
  23807. AppointmentType
  23808.     1S2S3S4S
  23809.     Set Alarm On:
  23810. O=Lotus Notes
  23811. O=Lotus Notes
  23812. PURSAFO
  23813. |.:#U
  23814. O=Lotus Notes
  23815. CN=Lotus Notes Template Development/O=Lotus Notes
  23816. PURSAFO
  23817. Fde!f^^
  23818. jXVlubA
  23819. $AlarmOffest
  23820. tmpAlarmOffest
  23821. $Alarm
  23822. AlarmTime
  23823. $AlarmTime
  23824. AlarmOn
  23825. AlarmOnTime
  23826. $AlarmOffset
  23827. $FormPublicAccess
  23828. $TITLE
  23829. $INFO
  23830. $Script
  23831. $$Script_O
  23832. $$ScriptName
  23833. tmpAlarmOnDate
  23834. tmpAlarmOffset
  23835. tmpAlarmOnTime
  23836. $BODY
  23837. $PublicAccess
  23838. &Arial
  23839.  StdNotesLtr18
  23840. tmpDisplayFrom_Preview
  23841. tmpFrom
  23842. tmpDisplayDate_Preview
  23843. tmpDate
  23844. O=Lotus Notes
  23845. O=Lotus Notes
  23846. PURSAFO
  23847. |.:#U
  23848. O=Lotus Notes
  23849. CN=Lotus Notes Template Development/O=Lotus Notes
  23850. PURSAFO
  23851. Fde!f^^
  23852. $TITLE
  23853. $INFO
  23854. $$ScriptName
  23855. $BODY
  23856. &Arial
  23857.  StdNotesLtr13
  23858.                                 
  23859. tmpDisplayFrom_Preview
  23860. tmpFrom
  23861.                                 
  23862. tmpDisplayDate_Preview
  23863. tmpDate
  23864.                                 
  23865. O=Lotus Notes
  23866. O=Lotus Notes
  23867. PURSAFO
  23868. |.:#U
  23869. O=Lotus Notes
  23870. CN=Lotus Notes Template Development/O=Lotus Notes
  23871. PURSAFO
  23872. Fde!f^^
  23873. $TITLE
  23874. $INFO
  23875. $Header
  23876. $$ScriptName
  23877. $BODY
  23878. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  23879. Out Of Office ProfileOutOfOfficeProfile
  23880. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCDw#########################
  23881. Green and Yellow DiamondStdNotesLtr14CU3
  23882. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  23883. ##########################################################
  23884. Plain TextStdNotesLtr0CU3
  23885. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######
  23886. 1(NamesPrompt)1
  23887. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCDU########################################################
  23888. Triangle with Dots 1StdNotesLtr29CU3
  23889. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################################
  23890. Three Dimensional ReliefStdNotesLtr27CU3
  23891. CN=Paul DiCristina/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################################################
  23892. 1(NoticeOptionsDlg)CDU31
  23893. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############################################
  23894. 1(InviteeResponses)UC31
  23895. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################
  23896. 1(PeopleListDlg)1U
  23897. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################################################
  23898. (NonDelivery Report)DeliveryReportNonDelivery Report
  23899. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Irisw##################################################
  23900. Torn PaperStdNotesLtr28CU3
  23901. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################
  23902. ##########################################################
  23903. ##########################################################
  23904. Times New Roman
  23905.  StdNotesLtr3
  23906. tmpDisplayFrom_Previewb
  23907. tmpFromFirst
  23908. tmpDisplayFrom_Previewb
  23909. tmpFromLast
  23910.        
  23911. tmpDisplayDate_Preview
  23912. tmpDate
  23913. O=Lotus Notes
  23914. O=Lotus Notes
  23915. PURSAFO
  23916. |.:#U
  23917. O=Lotus Notes
  23918. CN=Lotus Notes Template Development/O=Lotus Notes
  23919. PURSAFO
  23920. Fde!f^^
  23921. $TITLE
  23922. $INFO
  23923. $Header
  23924. $$ScriptName
  23925. $BODY
  23926.  StdNotesLtr0
  23927. $HideMailHeader
  23928.     0S0E
  23929.     From:    
  23930. tmpDisplayFrom_Preview
  23931. tmpFrom
  23932.      on 
  23933. tmpDisplayDate_Preview
  23934. tmpDateTime/date memo was created or mailed.
  23935. O=Lotus Notes
  23936. O=Lotus Notes
  23937. PURSAFO
  23938. |.:#U
  23939. O=Lotus Notes
  23940. CN=Lotus Notes Template Development/O=Lotus Notes
  23941. PURSAFO
  23942. Fde!f^^
  23943. I)/H1
  23944. $TITLE
  23945. $INFO
  23946. $$Script_O
  23947. $$ScriptName
  23948. $BODY
  23949.  Moods
  23950.     Always Hidden 
  23951. SenderTag
  23952. SenderTag
  23953. SenderTag
  23954.     1S2S3S4S5S6S
  23955. SenderTag
  23956.     0S0E
  23957. @___@
  23958. <a>7`^
  23959. `!bb!R
  23960. SenderTag
  23961.     0S0E
  23962. @___@
  23963. <a>7`^
  23964. `!bb!R
  23965. SenderTag
  23966.     0S0E
  23967. @___@
  23968. <a>7`^
  23969. `!bb!R
  23970. SenderTag
  23971.     0S0E
  23972. @___@
  23973. <a>7`^
  23974. `!bb!R
  23975. SenderTag
  23976.     0S0E
  23977. @___@
  23978. <a>7`^
  23979. `!bb!R
  23980. SenderTag
  23981.     0S0E
  23982. %12-/H
  23983. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  23984. WC9iB.xC-iF8wH8jT>zR<rd?
  23985. 2L3;FK=Dj=C:FQ8Qp<b
  23986. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  23987. SenderTag
  23988.     0S0E
  23989. SenderTag
  23990.     0S0E
  23991. @___@
  23992. <a>7`^
  23993. `!bb!R
  23994. SenderTag
  23995.     0S0E
  23996. SenderTag
  23997.     0S0E
  23998. SenderTag
  23999. SenderTag
  24000. SenderTag
  24001.     4S5S8S9S10S11S
  24002. @___@
  24003. <a>7`^
  24004. `!bb!R
  24005. O=Lotus Notes
  24006. O=Lotus Notes
  24007. PURSAFO
  24008. |.:#U
  24009. O=Lotus Notes
  24010. CN=Lotus Notes Template Development/O=Lotus Notes
  24011. PURSAFO
  24012. Fde!f^^
  24013. $TITLE
  24014. $INFO
  24015. $$ScriptName
  24016. $BODY
  24017. New Appointment
  24018. Subject
  24019. "Small Fonts
  24020. '++LotusScript Development Environment:2:5:(Options):0:74
  24021. Option Public 
  24022. '++LotusScript Development Environment:2:5:(Forward):0:1
  24023. Declare Sub Postopen(Source As Notesuidocument)
  24024. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  24025. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  24026. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  24027. Declare Sub Postrecalc(Source As Notesuidocument)
  24028. Declare Sub Postmodechange(Source As Notesuidocument)
  24029. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  24030. '++LotusScript Development Environment:2:5:(Declarations):0:2
  24031. '++LotusScript Development Environment:2:2:Postopen:1:8
  24032. Sub Postopen(Source As Notesuidocument)
  24033.      
  24034. End Sub
  24035. '++LotusScript Development Environment:2:2:Querysave:1:8
  24036. Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  24037.      
  24038. End Sub
  24039. '++LotusScript Development Environment:2:2:Queryopen:1:8
  24040. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  24041.      
  24042. End Sub
  24043. '++LotusScript Development Environment:2:2:Queryclose:1:8
  24044. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  24045.      
  24046. End Sub
  24047. '++LotusScript Development Environment:2:2:Postrecalc:1:8
  24048. Sub Postrecalc(Source As Notesuidocument)
  24049.      
  24050. End Sub
  24051. '++LotusScript Development Environment:2:2:Postmodechange:1:8
  24052. Sub Postmodechange(Source As Notesuidocument)
  24053.      
  24054. End Sub
  24055. '++LotusScript Development Environment:2:2:Querymodechange:1:8
  24056. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  24057.      
  24058. End Sub
  24059. (RepeatInfo)'++LotusScript Development Environment:2:5:(Options):0:66
  24060. '++LotusScript Development Environment:2:5:(Forward):0:1
  24061. Declare Sub Postopen(Source As Notesuidocument)
  24062. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  24063. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  24064. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  24065. Declare Sub Postrecalc(Source As Notesuidocument)
  24066. Declare Sub Postmodechange(Source As Notesuidocument)
  24067. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  24068. '++LotusScript Development Environment:2:5:(Declarations):0:2
  24069. '++LotusScript Development Environment:2:2:BindEvents:1:129
  24070. Private Sub BindEvents(Byval Objectname_ As String)
  24071.      Static Source As NOTESUIDOCUMENT
  24072.      Set Source = Bind(Objectname_)
  24073.      On Event Postopen From Source Call Postopen
  24074.      On Event Querysave From Source Call Querysave
  24075.      On Event Queryopen From Source Call Queryopen
  24076.      On Event Queryclose From Source Call Queryclose
  24077.      On Event Postrecalc From Source Call Postrecalc
  24078.      On Event Postmodechange From Source Call Postmodechange
  24079.      On Event Querymodechange From Source Call Querymodechange
  24080. End Sub
  24081. '++LotusScript Development Environment:2:2:Postopen:1:12
  24082. Sub Postopen(Source As Notesuidocument)
  24083.      
  24084. End Sub
  24085. '++LotusScript Development Environment:2:2:Querysave:1:12
  24086. Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  24087.      
  24088. End Sub
  24089. '++LotusScript Development Environment:2:2:Queryopen:1:12
  24090. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  24091.      
  24092. End Sub
  24093. '++LotusScript Development Environment:2:2:Queryclose:1:12
  24094. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  24095.      
  24096. End Sub
  24097. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  24098. Sub Postrecalc(Source As Notesuidocument)
  24099.      
  24100. End Sub
  24101. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  24102. Sub Postmodechange(Source As Notesuidocument)
  24103.      
  24104. End Sub
  24105. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  24106. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  24107.      
  24108. End Sub
  24109. tmpRealDate
  24110.     0S0E
  24111. Repeat Info
  24112. AppointmentType
  24113.     0S0E
  24114.     Detailed description:
  24115. AppointmentType
  24116.     1S2S
  24117. AppointmentType
  24118. RequiredAttendees
  24119.     1S2S3S4S5S6S
  24120.     Invitations have been sent to:    
  24121. RequiredAttendees
  24122.     0S0E
  24123. tmpSendTo
  24124. AppointmentType
  24125. OptionalAttendees
  24126.     1S2S3S4S8S9S
  24127.     Optional invitees:
  24128. OptionalAttendees
  24129.     0S0E
  24130. tmpCopyTo
  24131. AppointmentType
  24132.     1S2S3S4S5S6S
  24133.     Meeting location:    
  24134. tmpRoom
  24135. AppointmentType
  24136. RequiredResources
  24137.     1S2S3S4S5S6S
  24138.     Resources:    
  24139. Resources
  24140. RequiredResources
  24141.     0S0E
  24142. tmpResources
  24143. AppointmentType
  24144. chair
  24145.     1S2S3S4S5S6S
  24146.     Chairperson:    
  24147. Chair
  24148. tmpChairperson
  24149. AppointmentType
  24150. Principal
  24151.     1S2S3S4S5S6S7S8S
  24152.     Sent by:    
  24153. Principal
  24154. Principal
  24155.     3S4S
  24156. tmpSentBy
  24157. RepeatIDs
  24158.     0S0E
  24159. Repeating meeting information:
  24160. RepeatUnit
  24161.     1S2S
  24162.     This meeting repeats 
  24163. RepeatInterval
  24164. tmpRepeatInterval
  24165. 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
  24166. RepeatUnit
  24167. tmpRepeatUnit
  24168. day|Dweek|Wmonth|MDmonth|MPyear|YDcustom|C
  24169. RepeatAdjust
  24170. tmpRepeatAdjust
  24171. RepeatUnit
  24172.  on Sunday|0
  24173.  on Monday|1
  24174.  on Tuesday|2
  24175.  on Wednesday|3
  24176.  on Thursday|4
  24177.  on Friday|5
  24178.  on Saturday|6
  24179. RepeatUnit
  24180.  on the 1st Sunday|1.0
  24181.  on the 1st Monday|1.1
  24182.  on the 1st Tuesday|1.2
  24183.  on the 1st Wednesday|1.3
  24184.  on the 1st Thursday|1.4
  24185.  on the 1st Friday|1.5
  24186.  on the 1st Saturday|1.6
  24187.  on the 2nd Sunday|2.0
  24188.  on the 2nd Monday|2.1
  24189.  on the 2nd Tuesday|2.2
  24190.  on the 2nd Wednesday|2.3
  24191.  on the 2nd Thursday|2.4
  24192.  on the 2nd Friday|2.5
  24193.  on the 2nd Saturday|2.6
  24194.  on the 3rd Sunday|3.0
  24195.  on the 3rd Monday|3.1
  24196.  on the 3rd Tuesday|3.2
  24197.  on the 3rd Wednesday|3.3
  24198.  on the 3rd Thursday|3.4
  24199.  on the 3rd Friday|3.5
  24200.  on the 3rd Saturday|3.6
  24201.  on the 4th Sunday|4.0
  24202.  on the 4th Monday|4.1
  24203.  on the 4th Tuesday|4.2
  24204.  on the 4th Wednesday|4.3
  24205.  on the 4th Thursday|4.4
  24206.  on the 4th Friday|4.5
  24207.  on the 4th Saturday|4.6
  24208.  on the Last Sunday|5.0
  24209.  on the Last Monday|5.1
  24210.  on the Last Tuesday|5.2
  24211.  on the Last Wednesday|5.3
  24212.  on the Last Thursday|5.4
  24213.  on the Last Friday|5.5
  24214.  on the Last Saturday|5.6
  24215. RepeatUnit
  24216.  on the 1st day|1
  24217.  on the 2nd day|2
  24218.  on the 3rd day|3
  24219.  on the 4th day|4
  24220.  on the 5th day|5
  24221.  on the 6th day|6
  24222.  on the 7th day|7
  24223.  on the 8th day|8
  24224.  on the 9th day|9
  24225.  on the 10th day|10
  24226.  on the 11th day|11
  24227.  on the 12th day|12
  24228.  on the 13th day|13
  24229.  on the 14th day|14
  24230.  on the 15th day|15
  24231.  on the 16th day|16
  24232.  on the 17th day|17
  24233.  on the 18th day|18
  24234.  on the 19th day|19
  24235.  on the 20th day|20
  24236.  on the 21st day|21
  24237.  on the 22nd day|22
  24238.  on the 23rd day|23
  24239.  on the 24th day|24
  24240.  on the 25th day|25
  24241.  on the 26th day|26
  24242.  on the 27th day|27
  24243.  on the 28th day|28
  24244.  on the 29th day|29
  24245.  on the 30th day|30
  24246.  on the 31st day|31
  24247.     3S4S6R8R10R12R14R16R18R20RS5E21S22S24R26R28R30R32R34R36R38R40R42R44R46R48R50R52R54R56R58R60R62R64R66R68R70R72R74R76R78R80R82R84R86R88R90R92R94RS5E95S96S98R100R102R104R106R108R110R112R114R116R118R120R122R124R126R128R130R132R134R136R138R140R142R144R146R148R150R152R154R156R158R160S
  24248.      starting on 
  24249. RepeatStartDate
  24250. tmpRepeatStartDate
  24251. RepeatHow
  24252. tmpRepeatHow
  24253. until|Ufor|F
  24254. RepeatFor
  24255. tmpRepeatUnit
  24256.     7S9S
  24257. RepeatHow
  24258. RepeatUntil
  24259. RepeatFor
  24260. RepeatForUnit
  24261. RepeatFor
  24262. RepeatForUnit
  24263. RepeatFor
  24264. RepeatForUnit
  24265. RepeatFor
  24266. month
  24267. RepeatForUnit
  24268. RepeatFor
  24269. RepeatFor
  24270. RepeatForUnit
  24271. RepeatFor
  24272. RepeatForUnit
  24273. weeks
  24274. RepeatFor
  24275. RepeatForUnit
  24276. months
  24277. RepeatFor
  24278. RepeatForUnit
  24279. years
  24280.     0R3S4S6S10S13S17S18S19S20S23S24S25S26S27S28S30S32S33S34S35S36S37S38S40S42S43S44S45S46S47S48S50S52S53S54S55S56S57S58S60S62S64S65S68S69S70S71S72S73S75S77S78S79S80S81S82S83S85S87S88S89S90S91S92S93S95S97S98S99S100S101S102S103S105S107S
  24281. tmpRepeatUntil
  24282. RepeatUnit
  24283.  (if the date occurs on a weekend the meeting 
  24284. RepeatWeekends
  24285. occurs anyway
  24286. RepeatWeekends
  24287. is moved to Friday
  24288. RepeatWeekends
  24289. is moved to Monday
  24290. RepeatWeekends
  24291. is moved to Nearest Weekday
  24292. RepeatWeekends
  24293. is deleted
  24294.     3S4S5S6S7S8S10S12S13S14R17S18S20S22S23S24S26S28S29S30S32S34S35S36S38S40S41S42S44S46S48S49S
  24295. tmpRepeatWeekends
  24296. RepeatIds
  24297.     0S0E
  24298.     Meeting Dates: 
  24299. RepeatDates
  24300. tmpRepeatDates
  24301. RepeatDates
  24302.     0S0E
  24303. O=Lotus Notes
  24304. O=Lotus Notes
  24305. PURSAFO
  24306. |.:#U
  24307. O=Lotus Notes
  24308. CN=Lotus Notes Template Development/O=Lotus Notes
  24309. PURSAFO
  24310. Fde!f^^
  24311. CompletedOn
  24312. EndDate
  24313. CalendarDate_Time___Start
  24314. CalendarDate_Time___End
  24315. CalendarDates
  24316. CalendarDate
  24317. RepeatDates
  24318. CalendarDateTime
  24319. EndDateTime
  24320. $NoPurge
  24321. StartTime
  24322. EndTime
  24323. StartEndTime
  24324. StartDateTime
  24325. $FormPublicAccess
  24326. $SCRIPTOBJ_23
  24327. Duration
  24328. StartDate
  24329. ReminderTime
  24330. TimeRange
  24331. _ViewIcon
  24332. $SCRIPTOBJ_6
  24333. $SCRIPTOBJ_8
  24334. $SCRIPTOBJ_9
  24335. $SCRIPTOBJ_11
  24336. $SCRIPTOBJ_13
  24337. $SCRIPTOBJ_21
  24338. $SCRIPTOBJ_22
  24339. $TITLE
  24340. $INFO
  24341. $WINDOWTITLE
  24342. $Script
  24343. $$Script_O
  24344. $$ScriptName
  24345. $$FormScript
  24346. $$$FormScript_O
  24347. $BODY
  24348. $PublicAccess
  24349.  DeliveryOptions'++LotusScript Development Environment:2:5:(Options):0:66
  24350. '++LotusScript Development Environment:2:5:(Forward):0:1
  24351. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  24352. '++LotusScript Development Environment:2:5:(Declarations):0:2
  24353. '++LotusScript Development Environment:2:2:BindEvents:1:129
  24354. Private Sub BindEvents(Byval Objectname_ As String)
  24355.      Static Source As NOTESUIDOCUMENT
  24356.      Set Source = Bind(Objectname_)
  24357.      On Event Queryclose From Source Call Queryclose
  24358. End Sub
  24359. '++LotusScript Development Environment:2:2:Queryclose:1:12
  24360. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  24361.      SenderTag = source.document.tmpSenderTag(0)
  24362.      If  SenderTag <> "" And SenderTag <> "N" Then source.document.SenderTag = SenderTag
  24363. End Sub
  24364. Importance:
  24365. Delivery report:
  24366. Delivery priority:
  24367. SenderTag
  24368.     0S0E
  24369. Mood stamp:
  24370. Importance
  24371. Normal|2High|1Low|3
  24372. DeliveryReport
  24373. Only on failure|BConfirm delivery|CTrace entire path|TNone|N
  24374. SenderTag
  24375. tmpSenderTag
  24376. Normal|NPersonal|PConfidential|CPrivate|RThank You!|TFlame|FGood Job!|GJoke|JFYI|YQuestion|QReminder|M
  24377. DeliveryPriority
  24378. High|HNormal|NLow|L
  24379. SecureMail
  24380.     1S2S
  24381.     3S4S6S8S
  24382. Sign|1
  24383. ReturnReceipt
  24384. Return receipt|1
  24385. Encrypt
  24386. Encrypt
  24387.     3S4S6S8S
  24388. Encrypt
  24389. Encrypt|1
  24390. $KeepPrivate
  24391. Prevent copying|1
  24392. O=Lotus Notes
  24393. O=Lotus Notes
  24394. PURSAFO
  24395. |.:#U
  24396. O=Lotus Notes
  24397. CN=Lotus Notes Template Development/O=Lotus Notes
  24398. PURSAFO
  24399. Fde!f^^
  24400. ExpireDate
  24401. ReplyDate
  24402. $TITLE
  24403. $INFO
  24404. $$Script_O
  24405. $$ScriptName
  24406. $$FormScript
  24407. $$$FormScript_O
  24408. $BODY
  24409. $PublicAccess
  24410. Times New Roman
  24411. VersionOpt|
  24412.     6S7S9S14S
  24413. $VersionOpt
  24414.     0R1S2S3S
  24415. SavedOnce
  24416.     0R1S2S3S
  24417. PostedDate(
  24418.     0R1S2S3S
  24419. DeliveredDate
  24420.     0R1S2S3S
  24421. $AutoEditMode
  24422.     0R1S2S3S
  24423. MailSaveOptions
  24424.     0R1S2S3S
  24425. VersionOpt
  24426.     0R4S
  24427. New Serial Route Memo
  24428. Subject
  24429. Subject
  24430. Subject
  24431.     4S6S12S13S14S15S17S21S23S25S26S28S
  24432. '++LotusScript Development Environment:2:5:(Options):0:74
  24433. Option Public
  24434. '++LotusScript Development Environment:2:5:(Forward):0:1
  24435. Declare Sub InstantiateObjectVariables(source)
  24436. Declare Sub SaveDialog(SavedDoc)
  24437. Declare Function SendToNext(source) As Variant
  24438. Declare Sub CheckSecureMail
  24439. '++LotusScript Development Environment:2:5:(Declarations):0:10
  24440. %INCLUDE "lsconst.lss"
  24441. Dim w As NotesUIWorkspace
  24442. Dim s As NotesSession
  24443. Dim db As NotesDatabase
  24444. Dim note As NotesDocument
  24445. Dim newnote As NotesDocument
  24446. Dim Action As Variant
  24447. Dim DocWasSaved
  24448. Dim DoNotClose As Variant
  24449. Dim ContinueSave As Variant
  24450. Dim NewDocument As Variant
  24451. '++LotusScript Development Environment:2:2:InstantiateObjectVariables:1:8
  24452. Sub InstantiateObjectVariables(source)
  24453.      
  24454.      Set w = New NotesUIWorkspace
  24455.      Set s = New NotesSession
  24456.      Set db = s.CurrentDatabase
  24457.      Set note = source.document
  24458.      source.AutoReload = False
  24459.      
  24460. End Sub
  24461. '++LotusScript Development Environment:2:2:SaveDialog:1:8
  24462. Sub SaveDialog(SavedDoc)
  24463.      
  24464.      SavePrompt = Messagebox("Do you wish to save this " & SavedDoc & "?", MB_YESNOCANCEL, "Save " & SavedDoc) 
  24465.      Select Case SavePrompt
  24466.      Case IDCANCEL
  24467.           note.MailOptions = "0"
  24468.           DoNotClose = True
  24469.           ContinueSave = False
  24470.           Exit Sub
  24471.      Case IDNO
  24472.           note.SaveOptions = "0"
  24473.           Exit Sub
  24474.      Case IDYES
  24475.           note.SaveOptions = "1"
  24476.      End Select
  24477.      
  24478. End Sub
  24479. '++LotusScript Development Environment:2:1:SendToNext:1:8
  24480. Function SendToNext(source) As Variant
  24481.      
  24482.      CurrentUser = s.UserName
  24483.      Originator = note.Originator
  24484.      FromName = note.From
  24485.      RouteList = note.OriginalRouteList
  24486.      
  24487.      If Originator(0) = CurrentUser Then
  24488.           note.CurrentSendTo = 0
  24489.      Else
  24490.           CurrentSendTo = note.CurrentSendTo  
  24491.           note.CurrentSendTo = CurrentSendTo(0) + 1
  24492.      End If
  24493.      
  24494.      CurrentSendTo = note.CurrentSendTo
  24495.      ListMax = Ubound(RouteList)
  24496.      
  24497.      Select Case CurrentSendTo(0)
  24498.      Case Is < ListMax
  24499.           Remaining = ListMax - (CurrentSendTo(0) + 1)
  24500.           Redim tmpList(Remaining)
  24501.           x = 0
  24502.           For i = (CurrentSendTo(0) + 1) To ListMax
  24503.                tmpList(x) = RouteList(i)
  24504.                x = x + 1
  24505.           Next
  24506.           note.RemainingRouteList = tmpList
  24507.           note.SendTo = RouteList(CurrentSendTo(0))
  24508.      Case Is > ListMax
  24509.           note.RemainingRouteList = "None"
  24510.           note.SendTo = Originator(0)         
  24511.      Case ListMax
  24512.           note.RemainingRouteList = "None"         
  24513.           note.SendTo = RouteList(CurrentSendTo(0))
  24514.      End Select
  24515.      
  24516.      Notify = note.Notify
  24517.      If Notify(0) = "1" Then note.CopyTo = Originator(0)
  24518.      
  24519.      note.tmpAction = "Mailing"
  24520.      
  24521.      source.Reload
  24522.      
  24523.      On Error Goto NotSent    
  24524.      source.Send
  24525.      
  24526.      SendToNext = True
  24527.      Exit Function
  24528.      
  24529. NotSent:
  24530.      Messagebox "Unable to send this document.  Please try later.", MB_OK, "Send Error"
  24531.      SendToNext = False
  24532.      Exit Function
  24533.      
  24534. End Function
  24535. '++LotusScript Development Environment:2:2:CheckSecureMail:1:8
  24536. Sub CheckSecureMail
  24537.      
  24538. 'If SecureMail = 1 in notes.ini all mail gets Signed and Encrypted and the user is unable to override it
  24539.      note.SecureMail = Cstr(s.GetEnvironmentValue("SecureMail", True))
  24540.      If note.SecureMail(0) = "1" Then
  24541.           Call note.ReplaceItemValue("Sign", "1")
  24542.           Call note.ReplaceItemValue("Encrypt", "1")
  24543.      End If     
  24544.      
  24545. End Sub
  24546.  Route'++LotusScript Development Environment:2:5:(Options):0:66
  24547. '++LotusScript Development Environment:2:5:(Forward):0:1
  24548. Declare Sub Postopen(Source As Notesuidocument)
  24549. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  24550. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  24551. '++LotusScript Development Environment:2:5:(Declarations):0:2
  24552. '++LotusScript Development Environment:2:2:BindEvents:1:129
  24553. Private Sub BindEvents(Byval Objectname_ As String)
  24554.      Static Source As NOTESUIDOCUMENT
  24555.      Set Source = Bind(Objectname_)
  24556.      On Event Postopen From Source Call Postopen
  24557.      On Event Querysave From Source Call Querysave
  24558.      On Event Queryclose From Source Call Queryclose
  24559. End Sub
  24560. '++LotusScript Development Environment:2:2:Postopen:1:12
  24561. Sub Postopen(Source As Notesuidocument)
  24562.      
  24563.      Dim cnName As Variant
  24564.      
  24565.      If source.InPreviewPane Then Exit Sub
  24566.      If note Is Nothing Then Call InstantiateObjectVariables(source)
  24567.      
  24568.      cnName = Evaluate("@Name([CN];@Username)")
  24569.      If (note.HasItem("PostedDate") Or note.HasItem("DeliveredDate")) And source.EditMode = False And  Instr(Lcase(note.SendTo(0)), Lcase(cnName(0))) = 0 Then
  24570.           Exit Sub  
  24571.      Else
  24572.           source.EditMode = True
  24573.      End If
  24574.      
  24575.      If note.From(0) = s.UserName Or source.IsNewDoc Then
  24576.           If Not(note.HasItem("SecureMail")) Then
  24577.                CheckSecureMail
  24578.                source.reload
  24579.           End If
  24580.      End If
  24581.      
  24582.      EditType = s.GetEnvironmentValue("MailStEd")
  24583.      If EditType = "5" Then 
  24584.           Call note.ReplaceItemValue("$VersionOpt", "6")
  24585.           note.tmpAction = "ConvertNewDoc"
  24586.           Call s.SetEnvironmentVar("MailStEd", "0")
  24587.           source.reload
  24588.           source.save
  24589.      End If
  24590.      
  24591. End Sub
  24592. '++LotusScript Development Environment:2:2:Querysave:1:12
  24593. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  24594.      
  24595.      If note Is Nothing Then Call InstantiateObjectVariables(source)
  24596.      
  24597.      note.RemoveItem("MailOptions")
  24598.      note.RemoveItem("SaveOptions")
  24599.      
  24600.      Action = note.tmpAction
  24601.      Select Case Action(0)
  24602.      Case "SaveAsDraft"
  24603.           note.MailOptions = "0"
  24604.           note.SaveOptions = "1"
  24605.      Case "SendAndFile"
  24606.           If SendToNext(source) = False Then Continue = False         
  24607.           note.SaveOptions = "1"
  24608.      Case "Send"
  24609.           If SendToNext(source) = False Then Continue = False         
  24610.           note.SaveOptions = "0"
  24611.      Case "Mailing"
  24612. 'We do not want to do anything if mailing is in process (like from the Send button)
  24613.      Case Else
  24614. 'If this is a message that was not written by you we do not present the mail dialog          
  24615.           If note.From(0) <> s.UserName Then
  24616.                note.MailOptions = "0"
  24617.                note.SaveOptions = "1"
  24618.                ContinueSave = True
  24619.                Call SaveDialog("Document")
  24620.                If ContinueSave = False Then
  24621.                     Continue = False
  24622.                     Exit Sub
  24623.                End If
  24624.           End If
  24625.      End Select
  24626.      
  24627.      note.RemoveItem("tmpAction")
  24628.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  24629.      
  24630.      source.Reload
  24631.      
  24632. End Sub
  24633. '++LotusScript Development Environment:2:2:Queryclose:1:12
  24634. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  24635.      
  24636.      If DoNotClose Then
  24637.           DoNotClose = False
  24638.           Continue = False
  24639.      End If
  24640.      
  24641. End Sub
  24642. ,`    }<
  24643.     0S0E
  24644.     Always Hidden: 
  24645. Principal
  24646. CalendarProfile
  24647. Owner
  24648.     1S2S3S7S
  24649. Principal
  24650. Principal
  24651.     0R3S4S6S8S
  24652. FromPerson memo is from.
  24653. DefaultLogo
  24654. Gateway
  24655.     4S9S13S16S18SLogoPerson memo is from.
  24656.     0S0E
  24657.     0S0E
  24658. Encrypt
  24659.     0S0E
  24660. DefaultMailSaveOptions
  24661. origDomain
  24662. ReplyTo
  24663. ReplyDate
  24664. Please respond
  24665. ReplyTo
  24666. ReplyTo
  24667. ReplyDate
  24668. ReplyDate
  24669.     3S4S5S6S7S8S10S12S13S14S17S18S20S22S23S24S26S27S30S31S33S35S36S37S
  24670. tmpDisplayReplyInfo
  24671.     From:    
  24672. Principal
  24673. Originator
  24674. Originator
  24675.     1S2S
  24676.     Route to (individuals, not groups):
  24677. OriginalRouteList
  24678.     0S0E
  24679. CurrentUser
  24680.     1S2S6S
  24681. Originator
  24682. Originator
  24683.     0R1S2S6S
  24684. CurrentUser
  24685. Originator
  24686. OriginalRouteList
  24687. CurrentUser
  24688. You cannot include yourself in the Route List.{
  24689.     0R3S4S5S6S12S15S18S23S
  24690. OriginalRouteList
  24691.     Remaining route list:
  24692. RemainingRouteList
  24693. RemainingRouteList
  24694.     Current person in route:
  24695. SendTo
  24696. SendTo
  24697. EnRoute
  24698.     1S2S
  24699.     Subject:
  24700. SubjectSubject of memo.
  24701. $HideMailHeader
  24702.     0S0E
  24703. $HideMailHeader
  24704. Moods
  24705. PostedDate
  24706. SenderTag
  24707. Moods
  24708.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  24709. Notify
  24710. Notify sender at each stop | 1
  24711. Edit Document
  24712. PostedDateh
  24713.     4S5S6S7S
  24714. ForwardK 
  24715.     0S0E
  24716. New Memo.
  24717.     0S0E
  24718. Delete 
  24719.     0S0E
  24720. _Move To Folder...
  24721. Delivery Information...Kz
  24722. DeliveryInfo
  24723. Delivery Information
  24724.     4S5S6S7S8S9S10S12S
  24725. _Forward
  24726. Address...
  24727. NewNames
  24728.     1S2S4S5S
  24729. OriginalRouteList
  24730. OriginalRouteList
  24731. NewNames
  24732.     0R1S2S3S8S9S
  24733. PostedDateh
  24734.     5S6S7S8S
  24735. Close
  24736.     0S0E
  24737. PostedDateY
  24738.     0S0E
  24739. Save As Draft
  24740. tmpAction
  24741. SaveAsDraft
  24742.     1S2S3S
  24743. PostedDateh
  24744.     0S0E
  24745. Save and File
  24746.     7S9S
  24747. tmpAction
  24748. SaveAndFile
  24749.     0R1S2S3S
  24750. PostedDateY
  24751. PostedDateh
  24752.     4S5S11S12S13S14S
  24753. Send to Next PersonKl
  24754.     0R7S9S
  24755. PromptValue
  24756. DefaultMailSaveOptions
  24757. Save when sent
  24758. Do you wish to save a copy of this Memo?
  24759. DefaultMailSaveOptions
  24760.     0RR1S2S5S6S8S14S17S
  24761. SaveOptions
  24762. PromptValue
  24763. SaveOptions
  24764. PromptValue
  24765.     0R1S2S5S6S9S14S
  24766. tmpAction
  24767. SaveOptions
  24768. SendAndFile
  24769.     0RR1S2S3S6S7S9S11S
  24770.     0R7S9S
  24771. PostedDateh
  24772.     5S6S7S8S
  24773. Send And File...V
  24774.     4S11S13S19S
  24775.     0R7S9S
  24776.     0RR7S9S
  24777. tmpAction
  24778. SendAndFile
  24779.     0RR1S2S3S
  24780.     0R7S9S
  24781. PostedDateh
  24782.     5S6S7S8S
  24783. Delivery Options...K
  24784. DeliveryOptions
  24785. Delivery Options
  24786.     4S8S
  24787. _ViewIcon
  24788. SenderTag
  24789. SenderTag
  24790. SenderTag
  24791. SenderTag
  24792. SenderTag
  24793. SenderTag
  24794. SenderTag
  24795. SenderTag
  24796. SenderTag
  24797. SenderTag
  24798. SenderTag
  24799.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  24800. PostedDateh
  24801.     5S6S7S8S
  24802. Special Options...r
  24803. (Advanced Options)
  24804. Special Options
  24805.     4S8S
  24806. PostedDateh
  24807.     5S6S7S8S
  24808. _Remove From Folder...
  24809. Categori_zeK
  24810. SSend
  24811. O=Lotus Notes
  24812. O=Lotus Notes
  24813. PURSAFO
  24814. |.:#U
  24815. O=Lotus Notes
  24816. CN=Lotus Notes Template Development/O=Lotus Notes
  24817. PURSAFO
  24818. Fde!f^^
  24819. $$FormPostOpenAction
  24820. $TypeIcon
  24821. ExpireDate
  24822. ReplyDate
  24823. ComposedDate
  24824. $TITLE
  24825. $INFO
  24826. $WINDOWTITLE
  24827. $Script
  24828. $$Script_O
  24829. $$ScriptName
  24830. $$FormScript
  24831. $$$FormScript_O
  24832. $BODY
  24833. $ACTIONS
  24834. &Arial
  24835.  StdNotesLtr9
  24836.                                 
  24837. tmpDisplayFrom_Preview
  24838. tmpFrom
  24839. tmpDisplayDate_Preview
  24840. tmpDate
  24841. O=Lotus Notes
  24842. O=Lotus Notes
  24843. PURSAFO
  24844. |.:#U
  24845. O=Lotus Notes
  24846. CN=Lotus Notes Template Development/O=Lotus Notes
  24847. PURSAFO
  24848. Fde!f^^
  24849. &Q`'ph
  24850. 5sx<w)
  24851. Q}.1xo
  24852. $TITLE
  24853. $INFO
  24854. $Header
  24855. $$ScriptName
  24856. $BODY
  24857. &Arial
  24858.  StdNotesLtr30
  24859. tmpDisplayFrom_Preview
  24860. tmpFrom
  24861. tmpDisplayDate_Preview
  24862. tmpDate
  24863. O=Lotus Notes
  24864. O=Lotus Notes
  24865. PURSAFO
  24866. |.:#U
  24867. O=Lotus Notes
  24868. CN=Lotus Notes Template Development/O=Lotus Notes
  24869. PURSAFO
  24870. Fde!f^^
  24871. $TITLE
  24872. $INFO
  24873. $Header
  24874. $$ScriptName
  24875. $BODY
  24876. (Advanced Options)
  24877.     Replies to this memo should be addressed to:
  24878. Stamp message with a "Please reply by" date:
  24879. Expiration date  (after this date it is safe to archive or delete this document):
  24880. ReplyTo
  24881.     1S2S3S
  24882. ExpireDate
  24883.     3S4S6S11S
  24884. pcDate
  24885. ExpireDatea
  24886.     0R1S2S
  24887. TodayInt,
  24888.     0R1S2S
  24889. ConNext
  24890. pcDate
  24891.     0R1S2S13S15S
  24892. AdjustAmount
  24893. pcDate
  24894. pcDate
  24895. pcDate
  24896. pcDate
  24897. pcDate
  24898. pcDate
  24899. pcDate
  24900.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  24901. AdjustAmount
  24902. pcDateW
  24903.     0R6S17S
  24904. AdjustAmount
  24905. ConNext
  24906. TodayInt#
  24907. ExpireDate
  24908. ReplyDate
  24909.     3S4S6S11S
  24910. pcDate
  24911. ReplyDate
  24912.     0R1S2S
  24913. TodayInt,
  24914.     0R1S2S
  24915. ConNext
  24916. pcDate
  24917.     0R1S2S13S15S
  24918. AdjustAmount
  24919. pcDate
  24920. pcDate
  24921. pcDate
  24922. pcDate
  24923. pcDate
  24924. pcDate
  24925. pcDate
  24926.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  24927. AdjustAmount
  24928. pcDateW
  24929.     0R6S17S
  24930. AdjustAmount
  24931. ConNext
  24932. TodayInt#
  24933. ReplyDate
  24934. ReplyTo
  24935. ReplyTo
  24936. MailFormat
  24937.     1S2S
  24938.     Encoding method for Internet Mail attachments:
  24939. MailFormat
  24940. SMTPEncoding
  24941.     3S4S6S8S
  24942. SMTPEncoding
  24943. Accept Administrator's default|MIME (Base64)|BQuoted Printable|QUUencode|U
  24944. MailFormat
  24945. Sending this Notes document to other Notes mail user(s) through the Internet|E
  24946. O=Lotus Notes
  24947. O=Lotus Notes
  24948. PURSAFO
  24949. |.:#U
  24950. O=Lotus Notes
  24951. CN=Lotus Notes Template Development/O=Lotus Notes
  24952. PURSAFO
  24953. Fde!f^^
  24954. $TITLE
  24955. $INFO
  24956. $$Script_O
  24957. $$ScriptName
  24958. $BODY
  24959. $PublicAccess
  24960. '++LotusScript Development Environment:2:5:(Options):0:66
  24961. Option Public
  24962. '++LotusScript Development Environment:2:5:(Forward):0:1
  24963. '++LotusScript Development Environment:2:5:(Declarations):0:10
  24964. Dim note1 As NotesDocument
  24965. Dim dt1 As NotesDateTime
  24966. Dim uidoc As NotesUIDocument
  24967. Dim OldStartDate As Variant
  24968. Dim OldRepeatUnit As String
  24969. Dim OldInterval As Integer
  24970. (RepeatForm)'++LotusScript Development Environment:2:5:(Options):0:66
  24971. '++LotusScript Development Environment:2:5:(Forward):0:1
  24972. Declare Sub Postopen(Source As Notesuidocument)
  24973. Declare Sub Postrecalc(Source As Notesuidocument)
  24974. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  24975. '++LotusScript Development Environment:2:5:(Declarations):0:2
  24976. '++LotusScript Development Environment:2:2:BindEvents:1:129
  24977. Private Sub BindEvents(Byval Objectname_ As String)
  24978.      Static Source As NOTESUIDOCUMENT
  24979.      Set Source = Bind(Objectname_)
  24980.      On Event Postopen From Source Call Postopen
  24981.      On Event Postrecalc From Source Call Postrecalc
  24982.      On Event Queryclose From Source Call Queryclose
  24983. End Sub
  24984. '++LotusScript Development Environment:2:2:Postopen:1:12
  24985. Sub Postopen(Source As Notesuidocument)
  24986.      Set uidoc = source
  24987.      Set note1 = source.document
  24988.      RepeatUnit = Left(note1.RepeatUnit(0), 1)
  24989.      OldRepeatUnit = RepeatUnit
  24990.      OldStartDate = note1.RepeatStartDate(0)
  24991.      note1.RepeatStartDate = note1.StartDate
  24992.      
  24993. 'we need to initialize OldInterval and OldRepeatUnit so postrecalc won't recalc values
  24994.      Select Case RepeatUnit
  24995.      Case "W"
  24996.           OldInterval = Cint(note1.RepeatInterval_W(0)) * 2
  24997.      Case "M"
  24998.           OldInterval = Cint(note1.RepeatInterval_MDMP(0)) * 2
  24999.      Case "D"
  25000.           OldInterval = Cint(note1.RepeatInterval_D(0)) * 2
  25001.      Case "Y"
  25002.           OldInterval = Cint(note1.RepeatInterval_YD(0)) * 2
  25003.      End Select
  25004.      
  25005. End Sub
  25006. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  25007. Sub Postrecalc(Source As Notesuidocument)
  25008.      
  25009. 'this recalcs RepeatUntil - but we only want to do it if RepeatUnit or RepeatInterval has changed
  25010.      
  25011.      Set dt1 = New NotesDateTime(note1.RepeatStartDate(0))
  25012.      RepeatUnit = Left(note1.RepeatUnit(0), 1)
  25013.      
  25014.      If RepeatUnit = "" Then
  25015.           note1.RepeatForUnit = "W"
  25016.           dt1.AdjustMonth(1)
  25017.      Elseif RepeatUnit = "C" Then
  25018.           If Not(Isdate(note1.RepeatAdjust_C(0))) Then note1.RepeatAdjust_C = note1.RepeatStartDate
  25019.      Else
  25020.           Select Case RepeatUnit
  25021.           Case "W"
  25022.                Interval = Cint(note1.RepeatInterval_W(0)) * 2
  25023.                Gosub CheckPreviousValues
  25024.                note1.RepeatForUnit = "W"
  25025.                note1.RepeatFor = Interval
  25026.                dt1.AdjustDay(Interval * 7)
  25027.           Case "M"
  25028.                Interval = Cint(note1.RepeatInterval_MDMP(0)) * 2
  25029.                Gosub CheckPreviousValues
  25030.                note1.RepeatForUnit = "M"
  25031.                note1.RepeatFor = Interval
  25032.                dt1.AdjustMonth(Interval)
  25033.           Case "D"
  25034.                Interval = Cint(note1.RepeatInterval_D(0)) * 2
  25035.                Gosub CheckPreviousValues
  25036.                note1.RepeatForUnit = "D"
  25037.                note1.RepeatFor = Interval               
  25038.                dt1.AdjustDay(Interval)
  25039.           Case "Y"
  25040.                Interval = Cint(note1.RepeatInterval_YD(0)) * 2
  25041.                Gosub CheckPreviousValues
  25042.                note1.RepeatForUnit = "Y"
  25043.                note1.RepeatFor = Interval                              
  25044.                dt1.AdjustYear(Interval)
  25045.           End Select
  25046.      End If
  25047.      
  25048.      OldInterval = Interval
  25049.      OldRepeatUnit = RepeatUnit
  25050.      OldStartDate = note1.RepeatStartDate(0)
  25051.      note1.RepeatUntil = dt1.LSLocalTime
  25052.      uidoc.reload
  25053.      
  25054.      Exit Sub
  25055.      
  25056. CheckPreviousValues:
  25057. 'This just checks to see if we should continue with the recalc
  25058.      If Interval = OldInterval And RepeatUnit = OldRepeatUnit And _
  25059.      note1.RepeatStartDate(0) = OldStartDate Then Exit Sub
  25060.      
  25061.      Return
  25062.      
  25063. End Sub
  25064. '++LotusScript Development Environment:2:2:Queryclose:1:12
  25065. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  25066.      
  25067.      If uidoc.DialogBoxCanceled Then Exit Sub
  25068.      
  25069.      Dim MessageText As String
  25070.      
  25071.      If note1.RepeatHow(0) = "U" Then
  25072.           StartDate = note1.RepeatStartDate(0)
  25073.           UntilDate = note1.RepeatUntil(0)
  25074.           If StartDate > UntilDate Then
  25075.                MessageText = "The Until Date must be greater than the Starting Date."
  25076.                FieldName = "RepeatUntil"
  25077.                Gosub ValidationFailed
  25078.           End If
  25079.      End If
  25080.      
  25081.      Select Case note1.RepeatUnit(0)
  25082.      Case "W"
  25083.           If note1.RepeatAdjust_W(0) = "" Then
  25084.                MessageText = "You must select at least one day to repeat."
  25085.                FieldName = "RepeatAdjust_W"
  25086.                Gosub ValidationFailed
  25087.           End If
  25088.           If note1.RepeatHow(0) = "F" Then
  25089.                Select Case note1.RepeatForUnit(0)
  25090.                Case "D" 
  25091.                     CompareInterval = Cint(note1.RepeatInterval_W(0)) * 7
  25092.                Case "W" 
  25093.                     CompareInterval = Cint(note1.RepeatInterval_W(0))
  25094.                Case "M" 
  25095.                     CompareInterval = Cint(note1.RepeatInterval_W(0)) / 4
  25096.                Case "Y" 
  25097.                     CompareInterval = 0
  25098.                End Select
  25099.           End If
  25100.      Case "MP", "MD"
  25101.           If note1.RepeatUnit(0) = "MP" And note1.RepeatAdjust_MP(0) = "" Then
  25102.                MessageText = "You must select at least one day to repeat."
  25103.                FieldName = "RepeatAdjust_MP"
  25104.                Gosub ValidationFailed
  25105.           End If
  25106.           If note1.RepeatUnit(0) = "MD" And note1.RepeatAdjust_MD(0) = "" Then
  25107.                MessageText = "You must select at least one day to repeat."
  25108.                FieldName = "RepeatAdjust_MD"
  25109.                Gosub ValidationFailed
  25110.           End If
  25111.           If note1.RepeatHow(0) = "F" Then
  25112.                Select Case note1.RepeatForUnit(0)
  25113.                Case "D" 
  25114.                     CompareInterval = Cint(note1.RepeatInterval_MDMP(0)) * 30
  25115.                Case "W" 
  25116.                     CompareInterval = Cint(note1.RepeatInterval_MDMP(0)) * 4
  25117.                Case "M" 
  25118.                     CompareInterval = Cint(note1.RepeatInterval_MDMP(0))
  25119.                Case "Y" 
  25120.                     CompareInterval = 0
  25121.                End Select
  25122.           End If
  25123.      Case "YD"
  25124.           If note1.RepeatHow(0) = "F" Then
  25125.                Select Case note1.RepeatForUnit(0)
  25126.                Case "D" 
  25127.                     CompareInterval = Cint(note1.RepeatInterval_YD(0)) * 365
  25128.                Case "W" 
  25129.                     CompareInterval = Cint(note1.RepeatInterval_YD(0)) * 52
  25130.                Case "M" 
  25131.                     CompareInterval = Cint(note1.RepeatInterval_YD(0)) * 12
  25132.                Case "Y" 
  25133.                     CompareInterval = Cint(note1.RepeatInterval_YD(0))
  25134.                End Select
  25135.           End If
  25136.      Case "C"
  25137.           If note1.RepeatAdjust_C(0) = "" Then
  25138.                MessageText = "You must enter at least one date to repeat."
  25139.                FieldName = "RepeatAdjust_C"
  25140.                Gosub ValidationFailed
  25141.           End If
  25142.      End Select
  25143.      
  25144.      If note1.RepeatHow(0) = "F" Then
  25145.           Select Case note1.RepeatForUnit(0)
  25146.           Case "D" 
  25147.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  25148.                MessageText = "The number of days is inconsistent with the frequency."
  25149.           Case "W" 
  25150.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  25151.                MessageText = "The number of weeks is inconsistent with the frequency."
  25152.           Case "M" 
  25153.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  25154.                MessageText = "The number of months is inconsistent with the frequency."
  25155.           Case "Y" 
  25156.                If Cint(note1.RepeatFor(0)) < CompareInterval Then _
  25157.                MessageText = "The number of years is inconsistent with the frequency."
  25158.           End Select
  25159.           If MessageText <> "" Then
  25160.                FieldName = "RepeatFor"
  25161.                Gosub ValidationFailed
  25162.           End If
  25163.      End If
  25164.      
  25165.      Exit Sub
  25166.      
  25167. ValidationFailed:
  25168.      Messagebox MessageText, 0, "Validation Error"
  25169.      uidoc.GoToField(FieldName)
  25170.      continue = False
  25171.      Exit Sub
  25172.      
  25173. End Sub
  25174. OrgRepeat
  25175. RepeatDates
  25176. RepeatUnit
  25177.     1S2S
  25178. RepeatUnit
  25179. RepeatDates
  25180. StartDateTime
  25181. RepeatDates
  25182. RepeatAdjust_C
  25183.     3S4S6S9S10S12S17S20S
  25184. RepeatAdjust_CK
  25185.     0S0E
  25186. RepeatAdjust_C
  25187. RepeatUnit
  25188.     1S2S
  25189. RepeatUnit
  25190. RepeatAdjust
  25191. RepeatAdjust
  25192. RepeatAdjust_MD
  25193.     3S4S5S6S7S8S10S12S
  25194. RepeatAdjust_MD
  25195. 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
  25196. RepeatUnit
  25197.     1S2S
  25198. RepeatUnit
  25199. RepeatAdjust
  25200. RepeatAdjust
  25201. RepeatAdjust_MP
  25202.     3S4S5S6S7S8S10S12S
  25203. RepeatAdjust_MP#
  25204. 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
  25205. RepeatUnit
  25206.     1S2S
  25207. RepeatUnit
  25208. RepeatAdjust
  25209. RepeatAdjust
  25210. StartDateTime
  25211.     3S4S5S6S7S8S10S12S
  25212. RepeatAdjust_W
  25213. Sunday|0Monday|1Tuesday|2Wednesday|3Thursday|4Friday|5Saturday|6
  25214. RepeatUnit
  25215. AppointmentType
  25216. RepeatUnit
  25217.     3S4S6S9S10S12S14S17S
  25218. RepeatUnit
  25219. Daily|DWeekly|WMonthly by Date|MDMonthly by Day|MPYearly|YDCustom|C
  25220. RepeatUnit
  25221.     3S4S5S6S
  25222. RepeatUnit
  25223. RepeatInterval
  25224. RepeatInterval
  25225. RepeatInterval_MDMP
  25226. RepeatInterval_MDMP
  25227.     3S4S5S6S7S8S9S10S12S14S15S16S18S20SRepeatInterval_MDMP
  25228. 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
  25229. RepeatUnit
  25230.     1S2S
  25231. StartDate
  25232.     0S0E
  25233. RepeatStartDate
  25234. RepeatHow
  25235. RepeatHow
  25236.     3S4S6S8S
  25237. RepeatHow
  25238. Until|UFor|F
  25239. RepeatHow
  25240. RepeatUnit
  25241.     3S4S5S6S
  25242. RepeatUntil
  25243. RepeatUntil
  25244.     3S4S6S8S
  25245. StartDate
  25246. RepeatStartDate
  25247.     0R1S2S
  25248. RepeatUnit
  25249. StartDate
  25250. RepeatUnit
  25251. StartDate
  25252. RepeatUnit
  25253. StartDate
  25254. RepeatUnit
  25255. StartDate
  25256. StartDate
  25257.     0R3S4S6S10S12S14S16S18S20S23S24S25S27S31S33S35S37S39S41S44S48S50S51S53S57S59S61S63S65S67S70S74S76S77S79S83S85S87S89S91S93S96SRepeatUntil
  25258. RepeatUnit
  25259.     1S2S3S4S5S6S
  25260. RepeatWeekends
  25261. RepeatWeekends
  25262.     3S4S6S8S
  25263. RepeatUnit
  25264. RepeatWeekends
  25265.     3S4S5S6S7S8S10S12S
  25266. RepeatWeekends
  25267. Don't Move|DMove to Friday|FMove to Monday|MMove to Nearest Weekday|NDelete|X
  25268. RepeatHow
  25269. RepeatUnit
  25270.     3S4S5S6S
  25271. RepeatForUnit
  25272. RepeatUnit
  25273. RepeatForUnit
  25274.     3S4S6S10S13S
  25275. RepeatForUnit
  25276. RepeatFor
  25277. Day|D
  25278. Week|W
  25279. Month|M
  25280. Year|Y
  25281. Days|D
  25282. Weeks|W
  25283. Months|M
  25284. Years|Y
  25285.     3S4S6S7S8S9S10S11S12S14S15S16S17S18S19S20S
  25286. RepeatFor
  25287. RepeatFor
  25288.     3S4S6S8S
  25289. RepeatFor
  25290. RepeatUnit
  25291.     1S2S
  25292. RepeatUnit
  25293. RepeatInterval
  25294. RepeatInterval
  25295. RepeatInterval_YD
  25296. RepeatInterval_YD
  25297.     3S4S5S6S7S8S10S12S13S14S16S18S
  25298. RepeatInterval_YD
  25299. 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
  25300. RepeatUnit
  25301.     1S2S
  25302. RepeatUnit
  25303. RepeatInterval
  25304. RepeatInterval
  25305. RepeatInterval_D
  25306. RepeatInterval_D
  25307.     3S4S5S6S7S8S10S12S13S14S16S18S
  25308. RepeatInterval_D
  25309. 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
  25310. Starting date
  25311. Repeat
  25312. At weekends
  25313. RepeatUnit
  25314. RepeatInterval
  25315. RepeatInterval
  25316. RepeatInterval_W
  25317. RepeatInterval_W
  25318.     3S4S5S6S7S8S10S12S13S14S16S18S
  25319. RepeatInterval_W
  25320. Every|1Every 2nd|2Every 3rd|3Every 4th|4Every 5th|5Every 6th|6Every 7th|7Every 8th|8
  25321.     Enter dates below (no times):
  25322. O=Lotus Notes
  25323. O=Lotus Notes
  25324. PURSAFO
  25325. |.:#U
  25326. O=Lotus Notes
  25327. CN=Lotus Notes Template Development/O=Lotus Notes
  25328. PURSAFO
  25329. Fde!f^^
  25330. RepeatEnd
  25331. RepeatStart
  25332. StartDate
  25333. $FormPublicAccess
  25334. $TITLE
  25335. $INFO
  25336. $Script
  25337. $$Script_O
  25338. $$ScriptName
  25339. $$FormScript
  25340. $$$FormScript_O
  25341. RepeatDates
  25342. RepeatAdjust_C
  25343. RepeatStartDate
  25344. RepeatUntil
  25345. RepeatFor
  25346. $BODY
  25347. $PublicAccess
  25348. VersionOpt|
  25349.     6S7S9S14S
  25350. $VersionOpt
  25351.     0R1S2S3S
  25352. SavedOnce
  25353.     0R1S2S3S
  25354. PostedDate(
  25355.     0R1S2S3S
  25356. DeliveredDate
  25357.     0R1S2S3S
  25358. $AutoEditMode
  25359.     0R1S2S3S
  25360. MailSaveOptions
  25361.     0R1S2S3S
  25362. VersionOpt
  25363.     0R4S
  25364. Phone Message
  25365. Subject
  25366. Subject
  25367. Subject
  25368.     4S6S12S13S14S15S17S21S23S25S26S28S
  25369. Times New Roman
  25370. '++LotusScript Development Environment:2:5:(Options):0:74
  25371. Option Public
  25372. Use "EmailProcessing"
  25373. Use "DocumentConversions"
  25374. '++LotusScript Development Environment:2:5:(Forward):0:1
  25375. '++LotusScript Development Environment:2:5:(Declarations):0:2
  25376.  Phone Message'++LotusScript Development Environment:2:5:(Options):0:66
  25377. '++LotusScript Development Environment:2:5:(Forward):0:1
  25378. Declare Sub Postopen(Source As Notesuidocument)
  25379. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  25380. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  25381. Declare Sub Postmodechange(Source As Notesuidocument)
  25382. '++LotusScript Development Environment:2:5:(Declarations):0:2
  25383. '++LotusScript Development Environment:2:2:BindEvents:1:129
  25384. Private Sub BindEvents(Byval Objectname_ As String)
  25385.      Static Source As NOTESUIDOCUMENT
  25386.      Set Source = Bind(Objectname_)
  25387.      On Event Postopen From Source Call Postopen
  25388.      On Event Querysave From Source Call Querysave
  25389.      On Event Queryclose From Source Call Queryclose
  25390.      On Event Postmodechange From Source Call Postmodechange
  25391. End Sub
  25392. '++LotusScript Development Environment:2:2:Postopen:1:12
  25393. Sub Postopen(Source As Notesuidocument)
  25394.      
  25395.      Set ws = New NotesUIWorkSpace
  25396.      Set uidoc = source
  25397.      
  25398.      Call EmailOpen
  25399.      
  25400. End Sub
  25401. '++LotusScript Development Environment:2:2:Querysave:1:12
  25402. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  25403.      
  25404.      Call EmailSave(Continue)
  25405.      
  25406. End Sub
  25407. '++LotusScript Development Environment:2:2:Queryclose:1:12
  25408. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  25409.      
  25410.      Call EmailClose(Continue)
  25411.      
  25412. End Sub
  25413. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  25414. Sub Postmodechange(Source As Notesuidocument)
  25415.      
  25416.      Call EmailModeChange
  25417.      
  25418. End Sub
  25419.     Always Hidden: 
  25420. Principal
  25421. CalendarProfile
  25422. Owner
  25423.     1S2S3S7S
  25424. Principal
  25425. Principal
  25426.     0R3S4S6S8S
  25427. FromPerson memo is from.
  25428.     0S0E
  25429.     0S0E
  25430. Encrypt
  25431.     0S0E
  25432. DefaultMailSaveOptions
  25433. $KeepPrivate
  25434. $KeepPrivate
  25435. $KeepPrivate
  25436.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  25437.     From:    
  25438. Principal
  25439. Principal
  25440. FromDomain
  25441. FromDomain
  25442. FromDomain
  25443. FromDomain
  25444.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  25445. FromName
  25446. Principal
  25447. Principal
  25448.     0RR1S2S9S11S15S
  25449. FromStops
  25450.     0R1S2S6S
  25451. FromName
  25452. FromStops
  25453. FromStops
  25454. FromStops
  25455.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  25456.      on 
  25457. PostedDateh
  25458. PostedDate
  25459.     7S9S
  25460. tmpDisplayDateTime/date memo was created or mailed.
  25461. ReplyDate
  25462. ReplyTo
  25463.     1S2S3S4S5S6S
  25464. Please respond
  25465. ReplyTo
  25466. ReplyTo
  25467. ReplyDate
  25468. ReplyDate
  25469.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  25470. $HideMailHeader
  25471. Principal
  25472. Principal
  25473. Principal
  25474. Principal
  25475. Principal
  25476.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  25477.     Sent by:    
  25478. FromDomain
  25479. FromDomain
  25480. FromDomain
  25481. FromDomain
  25482.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  25483. FromName
  25484.     0RR1S2S6S
  25485. FromStops
  25486.     0R1S2S6S
  25487. FromName
  25488. FromStops
  25489. FromStops
  25490. FromStops
  25491.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  25492. SendTo
  25493. CopyTo
  25494.   cc:  
  25495. CopyTo
  25496.     1S8S13S14S2E17S18S21S28S31S
  25497. SendTo}
  25498.     0S0E
  25499. SendToList of primary people to send memo.
  25500. CopyTo}
  25501.     0S0E
  25502. CopyToList of people to send a copy of the memo.
  25503. DeliveredDate
  25504. BlindCopyTo
  25505. (bcc: 
  25506. BlindCopyTo
  25507.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  25508.     bcc:
  25509. BlindCopyTo
  25510.     0S0E
  25511. BlindCopyToList of undisclosed people to send copies of memo.
  25512. While You Were Out
  25513. Contact:
  25514. Phone:
  25515. PhoneCaller
  25516. tmpPhoneCaller
  25517. CompanyName
  25518. tmpCompanyName
  25519. PhoneNumber
  25520. tmpPhoneNumber
  25521. FaxNumber
  25522. tmpFaxNumber
  25523. PhoneCaller
  25524. CompanyName
  25525. PhoneNumber
  25526. FAXNumber
  25527. PhoneReason
  25528. PhoneReason    
  25529. Telephoned|TPlease Call|PWill Call Again|WReturned Call|RWas In|IWill Return|LLeft Package|KPlease See Me|MUrgent|N
  25530.     Message:
  25531. Phone Message from 
  25532. PhoneCaller
  25533.     1S2S
  25534. Subject
  25535. Edit Document
  25536. ForwardK 
  25537.     0S0E
  25538. New Memo.
  25539.     0S0E
  25540. Delete 
  25541.     0S0E
  25542. _Move To Folder...
  25543. Delivery Information...Kz
  25544. DeliveryInfo
  25545. Delivery Information
  25546.     4S5S6S7S8S9S10S12S
  25547. _Forward
  25548. Reply
  25549. Reply
  25550.     0S0E
  25551. Reply With History
  25552. Reply with History
  25553. This document is truncated.
  25554.     4S8S10S13S
  25555. Reply with history
  25556. Address... 
  25557.     0S0E
  25558. PostedDateh
  25559.     5S6S7S8S
  25560. Close
  25561.     0S0E
  25562. IsMailStationeryh
  25563. PostedDateh
  25564.     6S7S
  25565. Save As Draft
  25566. tmpAction
  25567. SaveAsDraft
  25568.     1S2S3S
  25569. IsMailStationeryh
  25570. PostedDateh
  25571.     4S5S
  25572. PromptValue
  25573. DefaultMailSaveOptions
  25574. Save when sent
  25575. Do you wish to save a copy of this Memo?
  25576. DefaultMailSaveOptions
  25577.     1S2S5S6S8S14S17S
  25578. SaveOptions
  25579. PromptValue
  25580. SaveOptions
  25581. PromptValue
  25582.     0RR1S2S5S6S9S14S
  25583. tmpAction
  25584. DefaultMailSaveOptions
  25585. Mailing
  25586.     0RR1S2S3S6S7S9S11S
  25587. MailOptions
  25588.     0R1S2S3S
  25589.     0R7S9S
  25590. tmpAction
  25591. SaveOptions
  25592. SendAndFile
  25593.     0RR1S2S3S6S7S9S11S
  25594.     0R7S9S
  25595. PostedDateh
  25596. IsMailStationeryh
  25597.     5S6S7S8S10S11S
  25598. Send And File...
  25599.     4S11S13S19S
  25600.     0RR7S9S
  25601. tmpAction
  25602. DefaultMailSaveOptions
  25603. Mailing
  25604.     0RR1S2S3S6S7S9S11S
  25605. MailOptions
  25606.     0R1S2S3S
  25607.     0R7S9S
  25608. tmpAction
  25609. SendAndFile
  25610.     0RR1S2S3S
  25611.     0R7S9S
  25612. PostedDateh
  25613. IsMailStationeryh
  25614.     5S6S7S8S10S11S
  25615. Delivery Options...K
  25616. DeliveryOptions
  25617. Delivery Options
  25618.     4S8S
  25619. _ViewIcon
  25620. SenderTag
  25621. SenderTag
  25622. SenderTag
  25623. SenderTag
  25624. SenderTag
  25625. SenderTag
  25626. SenderTag
  25627. SenderTag
  25628. SenderTag
  25629. SenderTag
  25630. SenderTag
  25631.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  25632. PostedDateh
  25633.     5S6S7S8S
  25634. Special Options...
  25635. ReplyDate
  25636. ReplyDate
  25637.     1S2S3S
  25638. ReplyTo
  25639. ReplyTo
  25640.     0R1S2S3S
  25641. (Advanced Options)
  25642. Special Options
  25643.     0R6S10S13S15S
  25644. tmpDisplayReplyInfo
  25645. Please respond
  25646. ReplyTo
  25647. ReplyTo
  25648. ReplyDate
  25649. ReplyDate
  25650.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  25651. DueDateTime
  25652. ReplyDate
  25653.     0R1S2S3S
  25654. PostedDateh
  25655.     5S6S7S8S
  25656. _Remove From Folder...
  25657. Categori_zeK
  25658. SSend
  25659. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  25660. '++LotusScript Development Environment:2:5:(Forward):0:1
  25661. Declare Sub Click(Source As Button)
  25662. '++LotusScript Development Environment:2:5:(Declarations):0:2
  25663. '++LotusScript Development Environment:2:2:BindEvents:1:129
  25664. Private Sub BindEvents(Byval Objectname_ As String)
  25665.      Static Source As BUTTON
  25666.      Set Source = Bind(Objectname_)
  25667.      On Event Click From Source Call Click
  25668. End Sub
  25669. '++LotusScript Development Environment:2:2:Click:1:12
  25670. Sub Click(Source As Button)
  25671.      Call CreateNewDoc(NEW_MEMO)
  25672. End Sub
  25673. tmpnewdoc
  25674.     1S2S
  25675. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  25676. '++LotusScript Development Environment:2:5:(Forward):0:1
  25677. Declare Sub Click(Source As Button)
  25678. '++LotusScript Development Environment:2:5:(Declarations):0:2
  25679. '++LotusScript Development Environment:2:2:BindEvents:1:129
  25680. Private Sub BindEvents(Byval Objectname_ As String)
  25681.      Static Source As BUTTON
  25682.      Set Source = Bind(Objectname_)
  25683.      On Event Click From Source Call Click
  25684. End Sub
  25685. '++LotusScript Development Environment:2:2:Click:1:12
  25686. Sub Click(Source As Button)
  25687.      Call CreateNewDoc(NEW_CALENDAR)
  25688. End Sub
  25689. tmpnewdoc
  25690.     1S2S
  25691. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  25692. '++LotusScript Development Environment:2:5:(Forward):0:1
  25693. Declare Sub Click(Source As Button)
  25694. '++LotusScript Development Environment:2:5:(Declarations):0:2
  25695. '++LotusScript Development Environment:2:2:BindEvents:1:129
  25696. Private Sub BindEvents(Byval Objectname_ As String)
  25697.      Static Source As BUTTON
  25698.      Set Source = Bind(Objectname_)
  25699.      On Event Click From Source Call Click
  25700. End Sub
  25701. '++LotusScript Development Environment:2:2:Click:1:12
  25702. Sub Click(Source As Button)
  25703.      Call CreateNewDoc(NEW_TASK)
  25704. End Sub
  25705. tmpnewdoc
  25706.     1S2S
  25707. Copy into\New GroupK,
  25708. NewGroup
  25709.     0S0E
  25710. tmpnewdoc
  25711.     1S2S
  25712. O=Lotus Notes
  25713. O=Lotus Notes
  25714. PURSAFO
  25715. |.:#U
  25716. O=Lotus Notes
  25717. CN=Lotus Notes Template Development/O=Lotus Notes
  25718. PURSAFO
  25719. Fde!f^^
  25720. $$FormPostOpenAction
  25721. $TypeIcon
  25722. ExpireDate
  25723. ReplyDate
  25724. ComposedDate
  25725. $TITLE
  25726. $INFO
  25727. $WINDOWTITLE
  25728. $Script
  25729. $$Script_O
  25730. $$ScriptName
  25731. $$FormScript
  25732. $$$FormScript_O
  25733. $BODY
  25734. $ACTIONS
  25735. $SCRIPTOBJ_19
  25736. $SCRIPTOBJ_20
  25737. $SCRIPTOBJ_21
  25738. Times New Roman
  25739.  StdNotesLtr32
  25740. tmpDisplayFrom_Preview
  25741. tmpFrom
  25742. tmpDisplayDate_Preview
  25743. tmpDate
  25744. O=Lotus Notes
  25745. O=Lotus Notes
  25746. PURSAFO
  25747. |.:#U
  25748. O=Lotus Notes
  25749. CN=Lotus Notes Template Development/O=Lotus Notes
  25750. PURSAFO
  25751. Fde!f^^
  25752. b TDC-
  25753. $TITLE
  25754. $INFO
  25755. $$ScriptName
  25756. $BODY
  25757. &Arial Narrow
  25758. "Helvetica
  25759.  StdNotesLtr6
  25760. @___@
  25761. <a>7`^
  25762. `!bb!R
  25763.     6S9S
  25764. tmpFrom1stInitial
  25765. tmpDisplayFrom_Preview
  25766.     6S9S
  25767. tmpFromRestOfName
  25768. @___@
  25769. <a>7`^
  25770. `!bb!R
  25771. tmpDisplayDate_Preview
  25772. tmpDate
  25773. @___@
  25774. <a>7`^
  25775. `!bb!R
  25776. O=Lotus Notes
  25777. O=Lotus Notes
  25778. PURSAFO
  25779. |.:#U
  25780. O=Lotus Notes
  25781. CN=Lotus Notes Template Development/O=Lotus Notes
  25782. PURSAFO
  25783. Fde!f^^
  25784. $TITLE
  25785. $INFO
  25786. $$ScriptName
  25787. $BODY
  25788. &Arial
  25789.  StdNotesLtr5
  25790. tmpDisplayFrom_Preview
  25791. tmpFrom
  25792.                 
  25793. tmpDisplayDate_Preview
  25794. tmpDate
  25795. O=Lotus Notes
  25796. O=Lotus Notes
  25797. PURSAFO
  25798. |.:#U
  25799. O=Lotus Notes
  25800. CN=Lotus Notes Template Development/O=Lotus Notes
  25801. PURSAFO
  25802. Fde!f^^
  25803. $TITLE
  25804. $INFO
  25805. $$ScriptName
  25806. $BODY
  25807. Times New Roman
  25808.  StdNotesLtr21
  25809. tmpDisplayFrom_Preview
  25810. tmpFrom
  25811. tmpDisplayDate_Preview
  25812. tmpDate
  25813. O=Lotus Notes
  25814. O=Lotus Notes
  25815. PURSAFO
  25816. |.:#U
  25817. O=Lotus Notes
  25818. CN=Lotus Notes Template Development/O=Lotus Notes
  25819. PURSAFO
  25820. Fde!f^^
  25821. $TITLE
  25822. $INFO
  25823. $$ScriptName
  25824. $BODY
  25825.  DeliveryInfo
  25826. Importance:
  25827. Importance
  25828. Importance
  25829. Normal
  25830.     3S4S6S8S9S10S12S14StmpImportanceInfo
  25831. Signed:
  25832. Encrypted:
  25833. Return receipt:
  25834.     3S4S6S8S
  25835. tmpSignedInfo
  25836. Encrypt
  25837.     3S4S6S8S
  25838. tmpEncryptInfo
  25839. $KeepPrivate
  25840. Do not forward, copy or print!
  25841.     3S4S6S8S
  25842. tmpKeepPrivateInfo
  25843. ReturnReceipt
  25844.     3S4S6S8S
  25845. tmpReceiptInfo
  25846. PostedDate
  25847. Not sent yet
  25848. PostedDate
  25849. D1T1V
  25850.  Sent
  25851. DeliveredDate
  25852. DeliveredDate
  25853. D1T1V
  25854.  Delivered"
  25855. $AdditionalHeaders
  25856. -------- Additional  Header  ------
  25857. $AdditionalHeaders
  25858. SMTPHeaders
  25859. -------- Additional  Header  ------
  25860. SMTPHeaders
  25861. DeliveredDate
  25862. -------- Routing Information ------
  25863. DeliveredDate
  25864. RouteTimes
  25865. D1T1V
  25866.  at server 
  25867. RouteServers
  25868.     2R5S6S7S8RS8E10S16S17S20R23S24S26RS8E28S34S35S38R41S42S44RS8E46S49R50S51R54S55S57RS8E59S62R63S64R67S68S70RS8E72S75R78S79S81RS7E83S91S99S2E101RStmpPostedDateInfo
  25869. Delivery information:
  25870. FromDomain
  25871. FromDomain"
  25872.     1S2S5S6S8S10S11S12StmpFromInfo
  25873. From:
  25874. Categori_ze
  25875. _Edit Document
  25876. Send Docu_ment
  25877. _Forward
  25878. _Move to Folder...
  25879. _Remove from Folder...
  25880. O=Lotus Notes
  25881. O=Lotus Notes
  25882. PURSAFO
  25883. |.:#U
  25884. O=Lotus Notes
  25885. CN=Lotus Notes Template Development/O=Lotus Notes
  25886. PURSAFO
  25887. Fde!f^^
  25888. ExpireDate
  25889. ReplyDate
  25890. $Phone_O
  25891. $TITLE
  25892. $INFO
  25893. $$Script_O
  25894. $$ScriptName
  25895. $BODY
  25896. $ACTIONS
  25897. $PublicAccess
  25898. (OLEMailFields)
  25899. SendTo
  25900. CopyTo
  25901. BlindCopyTo
  25902. Subject
  25903.     Bcc:
  25904.     Subject:
  25905.     0S0E
  25906.     0S0E
  25907.     0S0E
  25908. O=Lotus Notes
  25909. O=Lotus Notes
  25910. PURSAFO
  25911. |.:#U
  25912. O=Lotus Notes
  25913. CN=Lotus Notes Template Development/O=Lotus Notes
  25914. PURSAFO
  25915. Fde!f^^
  25916. $TITLE
  25917. $INFO
  25918. $$Script_O
  25919. $$ScriptName
  25920. $BODY
  25921. 07/15/97 03:01:47 PM Don Hatch/Iris added [OtherDomainServers]
  25922. 07/15/97 03:01:47 PM Don Hatch/Iris deleted [-OtherDomainServers-]
  25923. 07/15/97 03:01:20 PM Don Hatch/Iris added [LocalDomainServers]
  25924. 07/15/97 03:01:20 PM Don Hatch/Iris deleted [-LocalDomainServers-]
  25925. 06/21/97 02:15:13 PM Ryan Jansen/Iris updated -Default-
  25926. 06/21/97 02:13:13 PM Ryan Jansen/Iris updated [-OtherDomainServers-]
  25927. 06/21/97 02:13:09 PM Ryan Jansen/Iris added [-OtherDomainServers-]
  25928. 06/21/97 02:13:04 PM Ryan Jansen/Iris updated [-Default-]
  25929. 06/21/97 02:13:00 PM Ryan Jansen/Iris updated [-LocalDomainServers-]
  25930. 06/21/97 02:12:56 PM Ryan Jansen/Iris added [-LocalDomainServers-]
  25931. 06/21/97 02:12:50 PM Ryan Jansen/Iris updated [-Default-]
  25932. 06/21/97 02:12:47 PM Ryan Jansen/Iris added [-Default-]
  25933. 06/21/97 02:12:42 PM Ryan Jansen/Iris updated LocalDomainServers
  25934. 06/21/97 02:12:38 PM Ryan Jansen/Iris added LocalDomainServers
  25935. 06/21/97 02:12:30 PM Ryan Jansen/Iris deleted Harry Peebles/Iris
  25936. 06/21/97 02:12:30 PM Ryan Jansen/Iris updated -Default-
  25937. 06/11/97 03:23:22 PM Harry Peebles/Iris updated Harry Peebles/Iris
  25938. 06/11/97 03:23:22 PM Harry Peebles/Iris added Harry Peebles/Iris
  25939. -Default-
  25940. LocalDomainServers
  25941. [-Default-]
  25942. [LocalDomainServers]
  25943. [OtherDomainServers]
  25944. Out of Office Profile
  25945. Times New Roman
  25946. '++LotusScript Development Environment:2:5:(Options):0:66
  25947. Option Public
  25948. '++LotusScript Development Environment:2:5:(Forward):0:1
  25949. '++LotusScript Development Environment:2:5:(Declarations):0:10
  25950. Dim uidoc As NotesUIDocument
  25951.  OutOfOfficeProfile'++LotusScript Development Environment:2:5:(Options):0:66
  25952. '++LotusScript Development Environment:2:5:(Forward):0:1
  25953. Declare Sub Postopen(Source As Notesuidocument)
  25954. '++LotusScript Development Environment:2:5:(Declarations):0:2
  25955. '++LotusScript Development Environment:2:2:BindEvents:1:129
  25956. Private Sub BindEvents(Byval Objectname_ As String)
  25957.      Static Source As NOTESUIDOCUMENT
  25958.      Set Source = Bind(Objectname_)
  25959.      On Event Postopen From Source Call Postopen
  25960. End Sub
  25961. '++LotusScript Development Environment:2:2:Postopen:1:12
  25962. Sub Postopen(Source As Notesuidocument)
  25963.      Set uidoc = source
  25964. End Sub
  25965. '++LotusScript Development Environment:2:5:(Options):0:66
  25966. '++LotusScript Development Environment:2:5:(Forward):0:1
  25967. Declare Sub Exiting(Source As Field)
  25968. '++LotusScript Development Environment:2:5:(Declarations):0:2
  25969. '++LotusScript Development Environment:2:2:BindEvents:1:129
  25970. Private Sub BindEvents(Byval Objectname_ As String)
  25971.      Static Source As FIELD
  25972.      Set Source = Bind(Objectname_)
  25973.      On Event Exiting From Source Call Exiting
  25974. End Sub
  25975. '++LotusScript Development Environment:2:2:Exiting:1:12
  25976. Sub Exiting(Source As Field)
  25977.      uidoc.refresh
  25978. End Sub
  25979. '++LotusScript Development Environment:2:5:(Options):0:66
  25980. '++LotusScript Development Environment:2:5:(Forward):0:1
  25981. Declare Sub Exiting(Source As Field)
  25982. '++LotusScript Development Environment:2:5:(Declarations):0:2
  25983. '++LotusScript Development Environment:2:2:BindEvents:1:129
  25984. Private Sub BindEvents(Byval Objectname_ As String)
  25985.      Static Source As FIELD
  25986.      Set Source = Bind(Objectname_)
  25987.      On Event Exiting From Source Call Exiting
  25988. End Sub
  25989. '++LotusScript Development Environment:2:2:Exiting:1:12
  25990. Sub Exiting(Source As Field)
  25991.      uidoc.refresh 
  25992. End Sub
  25993. Normal
  25994. Action
  25995. Profile
  25996.     1S2S
  25997.     Always Hidden: 
  25998. AlreadyNotified
  25999. AlreadyNotified
  26000. Princ
  26001. CalendarProfile
  26002. Owner
  26003.     1S2S6S
  26004. Princ
  26005. Princ
  26006.     0R3S4S6S8S
  26007. Sender
  26008. System
  26009. Please do not delete - Out of Office Profile
  26010. Subject
  26011. ExcludeFromView
  26012. _ViewIcon
  26013. Out Of Office Profile 
  26014.     I will be out of the office on the following dates:
  26015.       
  26016. Leaving:
  26017. Returning:
  26018. FirstDayOut
  26019. pcDate
  26020. FirstDayOut
  26021.     1S2S
  26022. TodayInt,
  26023.     0R1S2S
  26024. ConNext
  26025. pcDate
  26026. nextG
  26027.     0R1S2S8S11S13S
  26028. AdjustAmount
  26029. pcDate
  26030. pcDate
  26031. pcDate
  26032. pcDate
  26033. pcDate
  26034. pcDate
  26035. pcDate
  26036.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  26037. AdjustAmount
  26038. pcDateW
  26039. AdjustAmount
  26040. ConNext
  26041. TodayInt#
  26042.     0R3S4S6S14R20S22S24S27S28S30S31S34S36S38SFirstDayOut
  26043. FirstDayBack
  26044. pcDate
  26045. FirstDayBacka
  26046.     1S2S
  26047. TodayInt,
  26048.     0R1S2S
  26049. ConNext
  26050. pcDate
  26051. nextG
  26052.     0R1S2S8S11S13S
  26053. AdjustAmount
  26054. pcDate
  26055. pcDate
  26056. pcDate
  26057. pcDate
  26058. pcDate
  26059. pcDate
  26060. pcDate
  26061.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  26062. AdjustAmount
  26063. pcDateW
  26064. AdjustAmount
  26065. ConNext
  26066. TodayInt#
  26067.     0R3S4S6S14R20S22S24S27S28S30S31S34S36S38SFirstDayBack
  26068.     My Out of The Office message for most people/groups:
  26069.     Whomever
  26070.     Subject:
  26071.  is out of the office."
  26072.     1S2S
  26073. GeneralSubject
  26074. FirstDayOut
  26075. FirstDayBack
  26076. I will be out of the office from 
  26077. FirstDayOut
  26078.  until 
  26079. FirstDayBackV
  26080.     3S4S5S6S7S8S10S12S13S14S18S19S20S21S25S26S
  26081. DaysOut
  26082. I will respond to your message when I return.
  26083. GeneralMessage
  26084.     People/groups who should receive a special message:
  26085. SpecialPeople
  26086. SpecialPeople
  26087.     My Out of The Office message for special people/groups:
  26088.     Whomever
  26089.     Subject:
  26090.  is out of the office."
  26091.     1S2S
  26092. SpecialSubject
  26093. DaysOut
  26094. dispDaysOut
  26095. SpecialMessage
  26096. SpecialMessage
  26097.     People/groups who should not receive any messages:
  26098. IgnorePeople
  26099. IgnorePeople
  26100. FirstDayOut can be entered as a date or a day of the week.
  26101. It is then converted to a text string containing a date, which 
  26102.     0R1S
  26103. @TextToTime does not always recognize as Text so it is 
  26104.     0R1S
  26105. converted to Text then to Time
  26106.     0R1S
  26107. DateValue
  26108. FirstDayOut
  26109.     0R1S2S
  26110. DateValue
  26111. DateValue
  26112. DateValue
  26113.     0R7S12S17S19S21S
  26114. dateFirstDayOut
  26115. FirstDayBack can be entered as a date or a day of the week.
  26116. It is then converted to a text string containing a date, which 
  26117.     0R1S
  26118. @TextToTime does not always recognize as Text so it is 
  26119.     0R1S
  26120. converted to Text then to Time
  26121.     0R1S
  26122. DateValue
  26123. FirstDayBackV
  26124.     0R1S2S
  26125. DateValue
  26126. DateValue
  26127. DateValue
  26128.     0R7S12S17S19S21S
  26129. dateFirstDayBack
  26130. Closed 
  26131.     0S0E
  26132. _Edit Document
  26133. _Forward
  26134. Enable Out of Office Agentn
  26135.     0S0E
  26136. FirstDayOut
  26137. FirstDayBack
  26138. Validation Error
  26139. You must indicate when you are leaving and when you will be back.
  26140.     0RR3S4S5S6S8S14S16S20S
  26141. FirstDayBackW
  26142. Validation Error
  26143. Your First Day Back is in the Past.  The Out of Office agent will not be enabled.
  26144.     0RR6S7S8S9S11S17S19S23S
  26145. ProcessOutOfOffice
  26146. Out of Office Agent
  26147. Please ask a Manager or Designer of this database to enable the agent for you.
  26148. The Out of Office agent was not enabled.
  26149.     0RR6S8S11S13S19S21S29S30S31S32S35S37S
  26150. Agent Enabled
  26151. The Out of Office agent is now enabled.  When people send you mail between 
  26152. FirstDayOut
  26153.  and 
  26154. FirstDayBackV
  26155.  it will inform them of your absence.
  26156.     0RR4S6S7S8S12S13S14S15S19S20S
  26157. AlreadyNotified
  26158.     0RR1S2S3S2E
  26159. ProcessOutOfOffice
  26160.     0S0E
  26161. I Have Returned To The Office
  26162. ProcessOutOfOffice
  26163. Welcome Back
  26164. No more "Out of Office" messages will be sent.
  26165. Out of Office Agent
  26166. Please ask a Manager or Designer of this database to disable the agent for you.
  26167. The Out of Office agent is still enabled.
  26168.     6S8S11S15S17S20S26S28S36S37S38S39S42S44S
  26169. ProcessOutOfOffice
  26170.     0S0E
  26171. Categori_ze
  26172. Send Docu_ment
  26173. _Move to Folder...
  26174. _Remove from Folder...    
  26175. O=Lotus Notes
  26176. O=Lotus Notes
  26177. PURSAFO
  26178. |.:#U
  26179. O=Lotus Notes
  26180. CN=Lotus Notes Template Development/O=Lotus Notes
  26181. PURSAFO
  26182. Fde!f^^
  26183. DocLife
  26184. ArchiveDate
  26185. $ManualArchivers_O
  26186. ObsoleteLife
  26187. DocumentLife
  26188. $$FirstDayOut1
  26189. $FirstDayOut1_O
  26190. $$FirstDayBack1
  26191. $FirstDayBack1_O
  26192. $TITLE
  26193. $INFO
  26194. $WINDOWTITLE
  26195. $Script
  26196. $$Script_O
  26197. $$ScriptName
  26198. $$FormScript
  26199. $$$FormScript_O
  26200. $$FirstDayOut
  26201. $FirstDayOut_O
  26202. $$FirstDayBack
  26203. $FirstDayBack_O
  26204. $$GeneralMessage
  26205. $GeneralMessage_O
  26206. _ViewIcon
  26207. dateFirstDayOut
  26208. dateFirstDayBack
  26209. $BODY
  26210. $ACTIONS
  26211. &Arial
  26212.  StdNotesLtr17
  26213. tmpDisplayFrom_Preview
  26214. tmpFrom
  26215. tmpDisplayDate_Preview
  26216. tmpDate
  26217. O=Lotus Notes
  26218. O=Lotus Notes
  26219. PURSAFO
  26220. |.:#U
  26221. O=Lotus Notes
  26222. CN=Lotus Notes Template Development/O=Lotus Notes
  26223. PURSAFO
  26224. Fde!f^^
  26225. $TITLE
  26226. $INFO
  26227. $$ScriptName
  26228. $BODY
  26229. &Arial
  26230.  StdNotesLtr14
  26231. tmpDisplayFrom_Preview
  26232. tmpFrom
  26233. tmpDisplayDate_Preview
  26234. tmpDate
  26235. O=Lotus Notes
  26236. O=Lotus Notes
  26237. PURSAFO
  26238. |.:#U
  26239. O=Lotus Notes
  26240. CN=Lotus Notes Template Development/O=Lotus Notes
  26241. PURSAFO
  26242. Fde!f^^
  26243. $TITLE
  26244. $INFO
  26245. $$ScriptName
  26246. $BODY
  26247. (NamesPrompt)
  26248.     Delegate to:
  26249. SendTo
  26250. SendTo
  26251.     1S2S3S7S
  26252. O=Lotus Notes
  26253. O=Lotus Notes
  26254. PURSAFO
  26255. |.:#U
  26256. O=Lotus Notes
  26257. CN=Lotus Notes Template Development/O=Lotus Notes
  26258. PURSAFO
  26259. Fde!f^^
  26260. $FormPublicAccess
  26261. $TITLE
  26262. $INFO
  26263. $$Script_O
  26264. $$ScriptName
  26265. $BODY
  26266. $PublicAccess
  26267. &Arial
  26268.  StdNotesLtr29
  26269. tmpDisplayFrom_Preview
  26270. tmpFrom
  26271. tmpDisplayDate_Preview
  26272. tmpDate
  26273. O=Lotus Notes
  26274. O=Lotus Notes
  26275. PURSAFO
  26276. |.:#U
  26277. O=Lotus Notes
  26278. CN=Lotus Notes Template Development/O=Lotus Notes
  26279. PURSAFO
  26280. Fde!f^^
  26281. $TITLE
  26282. $INFO
  26283. $Header
  26284. $$ScriptName
  26285. $BODY
  26286. &Arial
  26287.  StdNotesLtr27
  26288. tmpDisplayDate_Preview
  26289. tmpDate_2
  26290. tmpDisplayFrom_Preview
  26291. tmpFrom_2
  26292. tmpDisplayFrom_Preview
  26293. tmpFrom_1
  26294. tmpDisplayFrom_Preview
  26295. tmpFrom_
  26296. tmpDisplayDate_Preview
  26297. tmpDate_1
  26298. tmpDisplayDate_Preview
  26299. tmpDate_
  26300. O=Lotus Notes
  26301. O=Lotus Notes
  26302. PURSAFO
  26303. |.:#U
  26304. O=Lotus Notes
  26305. CN=Lotus Notes Template Development/O=Lotus Notes
  26306. PURSAFO
  26307. Fde!f^^
  26308. $TITLE
  26309. $INFO
  26310. $Header
  26311. $$ScriptName
  26312. $BODY
  26313. (NoticeOptionsDlg)
  26314. CanAccept
  26315. NoticeType
  26316. chair
  26317. tmpowner
  26318. DoNotProcessh
  26319. BroadCast
  26320.     1S2S20S21S23S24S26S27S31S32S34S35S38S39S40S
  26321. CanDecline
  26322. NoticeType
  26323. chair
  26324. tmpowner
  26325. DoNotProcessh
  26326. tmpNoParent
  26327. Broadcast
  26328.     0R1S2S20S21S23S24S26S27S32S33S38S39S41S42S45S46S47S
  26329. CanDelegate
  26330. NoticeType
  26331. chair
  26332. tmpowner
  26333. DoNotProcessh
  26334. BroadCast
  26335.     0R1S2S20S21S23S24S26S27S31S32S34S35S38S39S40S
  26336. CanPropose
  26337. NoticeType
  26338. chair
  26339. tmpowner
  26340. DoNotProcessh
  26341. BroadCast
  26342. OrgRepeat
  26343.     0R1S2S22S23S25S26S28S29S33S34S36S37S38S39S45S46S47S
  26344. CanPencilIn
  26345. NoticeType
  26346. Chair
  26347. tmpOwner
  26348. DoNotProcessh
  26349. Broadcast
  26350.     0R1S2S8S9S10S11S12S13S14S15S16S20S2E21S23S24S26S27S31S32S34S35S39S40S
  26351. SemiList
  26352. CanAccept
  26353. CanDecline
  26354. CanDelegate
  26355. CanPropose
  26356. CanPencilIn
  26357.     0R1S2S7S8S9S10S11S12S13S16S
  26358. SemiList
  26359. Accept|0
  26360. Decline|1
  26361. Delegate|2
  26362. Propose Alternative Time/Location|3
  26363. Pencil In|4
  26364.     0R5S6S7S8S9S10S11S14S15S16S17S18S19S20S21S22StmpUserActions
  26365. ResponseType
  26366. tmpUserActions
  26367. Comments
  26368.     Action to take:
  26369.     Comments to include:
  26370. O=Lotus Notes
  26371. O=Lotus Notes
  26372. PURSAFO
  26373. |.:#U
  26374. O=Lotus Notes
  26375. CN=Lotus Notes Template Development/O=Lotus Notes
  26376. PURSAFO
  26377. Fde!f^^
  26378. $FormPublicAccess
  26379. $TITLE
  26380. $INFO
  26381. $$Script_O
  26382. $$ScriptName
  26383. $BODY
  26384. $PublicAccess
  26385. '++LotusScript Development Environment:2:5:(Options):0:74
  26386. Option Public
  26387. Use "AppointmentResponses"
  26388. '++LotusScript Development Environment:2:5:(Forward):0:1
  26389. Declare Sub Initialize
  26390. Declare Sub SendConfirmation
  26391. '++LotusScript Development Environment:2:5:(Declarations):0:2
  26392. '++LotusScript Development Environment:2:2:Initialize:1:10
  26393. Sub Initialize
  26394.      
  26395. End Sub
  26396. '++LotusScript Development Environment:2:2:SendConfirmation:1:8
  26397. Sub SendConfirmation
  26398.      Dim sendto() As Variant
  26399.      Dim names() As Variant   
  26400.      Dim dummydoc As New NotesDocument(db)
  26401.      Dim CanMail As Integer
  26402.      
  26403. 'first, create the notice document
  26404.      Call CreateNoticeDocument("Confirmed -",ORS_MSGTYPE_CONFIRMATION,10,1)
  26405. 'we need to change the $REF item
  26406.      dummydoc.UniversalID = note.RealDocUNID(0)
  26407.      Call notice.MakeResponse(dummydoc)
  26408.      notice.ApptUNID = dummydoc.UniversalID
  26409.      
  26410. 'next, add the invitee responses
  26411.      Dim rtitem  As New NotesRichTextItem(notice,"StatusUpdate")
  26412.      
  26413. 'add all of the invitee status's to the rich text item     
  26414.      If (note.tmpAccepted(0) <> "") Then
  26415.           Forall people In note.tmpAccepted
  26416.                Call rtitem.AppendText(Cstr(people) & " -> Accepted")
  26417.                Call rtitem.AddNewLine(1)          
  26418.           End Forall                         
  26419.      End If
  26420.      If (note.tmpDeclined(0) <> "") Then
  26421.           Forall people In note.tmpDeclined
  26422.                Call rtitem.AppendText(Cstr(people) & " -> Declined")
  26423.                Call rtitem.AddNewLine(1)          
  26424.           End Forall               
  26425.      End If
  26426.      If (note.tmpCounter(0) <> "") Then
  26427.           Forall people In note.tmpCounter
  26428.                Call rtitem.AppendText(Cstr(people) & " -> Counter Proposed")
  26429.                Call rtitem.AddNewLine(1)          
  26430.           End Forall               
  26431.      End If
  26432.      If (note.tmpDelegated(0) <> "") Then
  26433.           x = 0
  26434.           Forall people In note.tmpDelegated
  26435.                Call rtitem.AppendText(Cstr(people) & " -> Delegated to " & note.tmpDelegee(x))
  26436.                x= x+1
  26437.                Call rtitem.AddNewLine(1)          
  26438.           End Forall               
  26439.      End If
  26440.      Call rtitem.AddNewLine(1)               
  26441. 'now, include the people who did not respond
  26442.      If (note.tmpWaiting(0) <> "") Then          
  26443.           Call rtitem.AppendText("Waiting for reply:")
  26444.           Call rtitem.AddNewLine(1)
  26445.           Forall people In note.tmpWaiting
  26446.                Call rtitem.AppendText(Cstr(people))
  26447.                Call rtitem.AddNewLine(1)
  26448.           End Forall
  26449.      End If
  26450. 'include the people who were uninvited
  26451.      If (note.tmpUninvited(0) <> "") Then
  26452.           Call rtitem.AppendText("Uninvited:")          
  26453.           Call rtitem.AddNewLine(1)
  26454.           Forall  people In note.tmpUninvited
  26455.                Call rtitem.AppendText(Cstr(people))
  26456.                Call rtitem.AddNewLine(1)
  26457.           End Forall          
  26458.      End If
  26459.      
  26460.      i = 0     
  26461.      NamesToSend = Evaluate("@Trim(tmpAccepted:tmpWaiting)",note)
  26462.      If (NamesToSend(0) <> "") Then          
  26463.           CanMail = True
  26464.           Redim sendto(Ubound(NamesToSend))
  26465.           For i = 0 To Ubound(NamesToSend)
  26466.                sendto(i) = NamesToSend(i)
  26467.           Next
  26468.           i = i + 1          
  26469.      End If
  26470.      
  26471.      DelegeesToSend = Evaluate("@Trim(@Replace(tmpDelegee;tmpDeclined:tmpDelegated;""""))",note)
  26472.      If (DelegeesToSend(0) <> "") Then    
  26473.           CanMail = True          
  26474.           Redim Preserve sendto(i + Ubound(DelegeesToSend))
  26475.           For x = 0 To Ubound(DelegeesToSend)
  26476.                sendto(i) = DelegeesToSend(x)
  26477.                i = i + 1
  26478.           Next
  26479.      End If
  26480.      
  26481.      If CanMail Then
  26482.           Redim names(Ubound(sendto))
  26483.           For i = 0 To Ubound(sendto)
  26484.                names(i) = GetInviteeMailAddress(Cstr(sendto(i)))
  26485.           Next
  26486.           notice.SendTo = names
  26487.           Call notice.Send(False)
  26488.           Messagebox "A confirmation notice has been sent to the invitees.",0,"Status"
  26489.      End If
  26490. End Sub
  26491. tmpAccepted
  26492. tmpWaiting
  26493.     0S0E
  26494. tmpDelegee
  26495. tmpDeclined
  26496. tmpDelegated
  26497.     0S0E
  26498. (InviteeResponses)'++LotusScript Development Environment:2:5:(Options):0:66
  26499. '++LotusScript Development Environment:2:5:(Forward):0:1
  26500. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  26501. Declare Sub Postopen(Source As Notesuidocument)
  26502. '++LotusScript Development Environment:2:5:(Declarations):0:2
  26503. '++LotusScript Development Environment:2:2:BindEvents:1:129
  26504. Private Sub BindEvents(Byval Objectname_ As String)
  26505.      Static Source As NOTESUIDOCUMENT
  26506.      Set Source = Bind(Objectname_)
  26507.      On Event Queryopen From Source Call Queryopen
  26508.      On Event Postopen From Source Call Postopen
  26509. End Sub
  26510. '++LotusScript Development Environment:2:2:Queryopen:1:12
  26511. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  26512.      
  26513. End Sub
  26514. '++LotusScript Development Environment:2:2:Postopen:1:12
  26515. Sub Postopen(Source As Notesuidocument)
  26516.      Set uidoc = source
  26517.      Call InstantiateObjectVariables
  26518.      Call CreateInviteeTable(note)
  26519. End Sub
  26520.     0S0E
  26521.     Print
  26522. NoticeType
  26523.     1S2S
  26524. '++LotusScript Development Environment:2:5:(Options):0:66
  26525. '++LotusScript Development Environment:2:5:(Forward):0:1
  26526. Declare Sub Click(Source As Button)
  26527. '++LotusScript Development Environment:2:5:(Declarations):0:2
  26528. '++LotusScript Development Environment:2:2:BindEvents:1:129
  26529. Private Sub BindEvents(Byval Objectname_ As String)
  26530.      Static Source As BUTTON
  26531.      Set Source = Bind(Objectname_)
  26532.      On Event Click From Source Call Click
  26533. End Sub
  26534. '++LotusScript Development Environment:2:2:Click:1:12
  26535. Sub Click(Source As Button)
  26536.      Call SendConfirmation
  26537. End Sub
  26538. New Button
  26539. Need a newer version of Notes to execute this button.
  26540.     0S0E
  26541.     Send Confirmation
  26542. Broadcast
  26543.     1S2S
  26544.  Accepted
  26545. Counter proposed
  26546. tmpAccepted
  26547.     0S0E
  26548. dispAccepted
  26549. tmpCounterc
  26550.     0S0E
  26551. dispCounter
  26552.  Delegated
  26553. Declined
  26554. tmpDelegated^
  26555. tmpDelegated
  26556.  -> "
  26557. tmpDelegee
  26558.     6S7S8S9S10S11S23S24S25S26S
  26559. dispDelegated
  26560. tmpDeclined
  26561.     0S0E
  26562. dispDeclined
  26563.  No response
  26564. Removed
  26565. tmpWaiting
  26566.     0S0E
  26567. dispWaiting
  26568. tmpUninvited
  26569.     0S0E
  26570. dispUnivited
  26571. tmpResAccepted
  26572.     1S2S
  26573. tmpResAccepted^
  26574. tmpResDeclined^
  26575. tmpResWaiting
  26576.     4S5S6S7S11S12S13S14S18S19S
  26577. Rooms/Resources
  26578.  Reserved
  26579. Unavailable
  26580. tmpResAccepted
  26581. dispResAccepted
  26582. tmpResDeclined
  26583. dispResDeclined
  26584.  No response
  26585. tmpResWaiting
  26586. dispResWaiting
  26587. O=Lotus Notes
  26588. O=Lotus Notes
  26589. PURSAFO
  26590. |.:#U
  26591. O=Lotus Notes
  26592. CN=Lotus Notes Template Development/O=Lotus Notes
  26593. PURSAFO
  26594. Fde!f^^
  26595. $SCRIPTOBJ_6
  26596. $FormPublicAccess
  26597. $TITLE
  26598. $INFO
  26599. $Script
  26600. $$Script_O
  26601. $$ScriptName
  26602. $$FormScript
  26603. $$$FormScript_O
  26604. $BODY
  26605. $PublicAccess
  26606. (PeopleListDlg)
  26607. tmpPeopleList
  26608. tmpPeopleSelected
  26609. tmpPeopleList
  26610.     0S0E
  26611. tmpHeader
  26612. tmpHeader
  26613. O=Lotus Notes
  26614. O=Lotus Notes
  26615. PURSAFO
  26616. |.:#U
  26617. O=Lotus Notes
  26618. CN=Lotus Notes Template Development/O=Lotus Notes
  26619. PURSAFO
  26620. Fde!f^^
  26621. %%3Y~
  26622. $FormPublicAccess
  26623. $TITLE
  26624. $INFO
  26625. $$Script_O
  26626. $$ScriptName
  26627. $BODY
  26628. $PublicAccess
  26629. *** Message Not Delivered ***
  26630.  NonDelivery Report
  26631. Delivery Failure Report
  26632.     Your document:
  26633. Subject
  26634. OriginalSubject
  26635.     was not delivered to
  26636. IntendedRecipient
  26637. IntendedRecipient
  26638.     0S0E
  26639. IntendedRecipient
  26640.     because:
  26641. FailureReason
  26642. FailureReason
  26643. $HideMailHeader
  26644.     0S0E
  26645.     What should you do?
  26646.     You can resend the undeliverable document to the recipients listed above by choosing the Resend button or the Resend command on the Actions menu.  
  26647.     Once you have resent the document you may delete this Delivery Failure Report.
  26648.     If resending the document is not successful you will receive a new failure report
  26649.     Unless you receive other Delivery Failure Reports, the document was successfully delivered to all other recipients.
  26650. Routing path
  26651. RouteServers
  26652. RouteServersServers along route.
  26653.     ________________________
  26654.     To:    
  26655. SendTo
  26656. SendToList of people to send document.
  26657.     cc:    
  26658. CopyTo
  26659. CopyToList of people to send copies of document.
  26660.     From:    
  26661. FromPerson document is from.
  26662.     Date:    
  26663. PostedDateY
  26664. PostedDateJ
  26665. DateTime/date memo was created or mailed.
  26666.     Subject:    
  26667. Subject
  26668. SubjectSubject of document.
  26669. BodyBody of document.
  26670. Categori_ze
  26671. Closee 
  26672.     0S0E
  26673. Edit Document
  26674. Resend
  26675. Resend|
  26676.     7S9S
  26677. SaveOptions
  26678.     0R1S2S3S
  26679. _Forward
  26680. _Move to Folder...
  26681. _Remove from Folder...    
  26682. O=Lotus Notes
  26683. O=Lotus Notes
  26684. PURSAFO
  26685. |.:#U
  26686. O=Lotus Notes
  26687. CN=Lotus Notes Template Development/O=Lotus Notes
  26688. PURSAFO
  26689. Fde!f^^
  26690. $TITLE
  26691. $INFO
  26692. $WINDOWTITLE
  26693. $$ScriptName
  26694. $BODY
  26695. $ACTIONS
  26696.  StdNotesLtr28
  26697. tmpDisplayFrom_Preview
  26698. tmpFrom
  26699. tmpDisplayDate_Preview
  26700. tmpDate
  26701. O=Lotus Notes
  26702. O=Lotus Notes
  26703. PURSAFO
  26704. |.:#U
  26705. O=Lotus Notes
  26706. CN=Lotus Notes Template Development/O=Lotus Notes
  26707. PURSAFO
  26708. Fde!f^^
  26709. $TITLE
  26710. $INFO
  26711. $$ScriptName
  26712. $BODY
  26713. Frank LloydStdNotesLtr7CU3
  26714. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############
  26715. 1(ChangeRepeating)1
  26716. 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###########################
  26717. Teal and Yellow LinesStdNotesLtr26CU3
  26718. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################################################
  26719. Metal PlateStdNotesLtr15CU3
  26720. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########
  26721. 1(CalendarHelp)1U
  26722. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###########
  26723. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  26724. Archive ProfileArchiveProfileArchive Profile
  26725. CN=Catherine Duffy/O=IrisCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCDw#############
  26726. (ArchiveInstructions)(ArchiveInstructions)1CU
  26727. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################
  26728. DeccoStdNotesLtr4CU3
  26729. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################
  26730. _Special\Temporary Export CertificateTemporary Export Certificate
  26731. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Irisw###############
  26732. Squiggle with BackdropStdNotesLtr22CU3
  26733. CN=Paul DiCristina/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##################################################
  26734. MarqueeStdNotesLtr34CU3
  26735. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###############
  26736. From The DeskStdNotesLtr8CU3
  26737. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################
  26738. ##########################################################
  26739. ##########################################################
  26740. ##########################################################
  26741. &Arial
  26742.  StdNotesLtr7
  26743. tmpDisplayFrom_Preview
  26744. tmpFrom
  26745. tmpDisplayDate_Preview
  26746. tmpDate
  26747. O=Lotus Notes
  26748. O=Lotus Notes
  26749. PURSAFO
  26750. |.:#U
  26751. O=Lotus Notes
  26752. CN=Lotus Notes Template Development/O=Lotus Notes
  26753. PURSAFO
  26754. Fde!f^^
  26755. QJ/|S6
  26756. $TITLE
  26757. $INFO
  26758. $$ScriptName
  26759. $BODY
  26760. (ChangeRepeating)
  26761. ChangeWhich
  26762. Just this one|0All|1All previous|2All future|3
  26763. Change:
  26764. O=Lotus Notes
  26765. O=Lotus Notes
  26766. PURSAFO
  26767. |.:#U
  26768. O=Lotus Notes
  26769. CN=Lotus Notes Template Development/O=Lotus Notes
  26770. PURSAFO
  26771. Fde!f^^
  26772. A    ATP
  26773. $FormPublicAccess
  26774. $TITLE
  26775. $INFO
  26776. $$Script_O
  26777. $$ScriptName
  26778. $BODY
  26779. $PublicAccess
  26780. &Arial
  26781.  StdNotesLtr26
  26782. tmpDisplayFrom_Preview
  26783. tmpFrom
  26784. tmpDisplayDate_Preview
  26785. tmpDate
  26786. O=Lotus Notes
  26787. O=Lotus Notes
  26788. PURSAFO
  26789. |.:#U
  26790. O=Lotus Notes
  26791. CN=Lotus Notes Template Development/O=Lotus Notes
  26792. PURSAFO
  26793. Fde!f^^
  26794. O}\Pq
  26795. $TITLE
  26796. $INFO
  26797. $Header
  26798. $$ScriptName
  26799. $BODY
  26800. Times New Roman
  26801.  StdNotesLtr15
  26802. tmpDisplayFrom_Preview
  26803. tmpFrom
  26804. tmpDisplayDate_Preview
  26805. tmpDate
  26806. O=Lotus Notes
  26807. O=Lotus Notes
  26808. PURSAFO
  26809. |.:#U
  26810. O=Lotus Notes
  26811. CN=Lotus Notes Template Development/O=Lotus Notes
  26812. PURSAFO
  26813. Fde!f^^
  26814. LD|cH
  26815. $TITLE
  26816. $INFO
  26817. $$ScriptName
  26818. $BODY
  26819. (CalendarHelp)
  26820.     Calendar entry--new ->tmpContext = 0
  26821. tmpContext
  26822.     1S2S
  26823.     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. 
  26824.     To specify the type of calendar entry, click a
  26825.     type at the top of the document. Notes displays different
  26826.     fields depending on
  26827.     the calendar type
  26828.     you select.
  26829.     Enter information in the calendar entry
  26830.     fields Notes displays.  
  26831.     set an alarm that reminds you about
  26832.     the calendar entry,
  26833.     click Alarm options and specify information about the alarm.
  26834.     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.
  26835.     To check your calendar as you are entering information, click Check Calendar. To return to the document, press ESC.
  26836.     Click Save and Close when you finish entering information
  26837.     for the calendar entry.
  26838.     If you created a meeting invitation, click Yes to send
  26839.     invitations to the invitees.
  26840.     For information on
  26841.     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.
  26842.     Calendar entry--existing -> tmpContext = 1
  26843. tmpContext
  26844.     1S2S
  26845.     You can make changes to an appointment, event, reminder, or anniversary.
  26846.     If you have not already done so, click Edit Document.
  26847.     Make changes in 
  26848.     any of
  26849.     the calendar entry
  26850.     fields Notes displays.
  26851.     To set an alarm that reminds you about the calendar entry, click Alarm options and specify information about the alarm.
  26852.     To check your calendar as you are making changes, click Check Calendar. To return to the document, press ESC.
  26853.     Click Save and Close.
  26854.     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.
  26855.     Invitation--existing entry (chair) -> tmpContext = "2"
  26856. tmpContext
  26857.     1S2S
  26858.     After you create a meeting invitation, you can make changes to the document by clicking Edit Document and doing the following:
  26859.     Display responses to a meeting invitation by clicking "Display invitee responses."
  26860.     Change the date, time, or location of the meeting by clicking Edit Document and changing the date or time fields or the reservation section. 
  26861.     Remove an invitee from the invitation list by clicking Edit Document
  26862.     and choosing Actions - Remove - Invitees.
  26863.     Cancel a room or resource reservation by clicking Edit Document and choosing Actions - Remove - Rooms & Resources.
  26864.     Send a confirmation to the invitees by clicking Send Confirmation.
  26865.     Cancel a meeting by choosing Actions - Cancel Meeting.
  26866.     Accept a meeting invitation for an invitee by choosing Actions - Change Status to Accepted.
  26867.     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.
  26868.     Invitation (invitee--action already taken) -> tmpContext = "3"
  26869. tmpContext
  26870.     1S2S
  26871.     You can make changes to a meeting invitation if necessary.
  26872.     If you have not already done so, click Edit Document.
  26873.     Make changes in 
  26874.     any of
  26875.     the calendar entry
  26876.     fields Notes displays.
  26877.     change your response to the meeting invitation, choose Actions - Other and select
  26878.     a different response
  26879.     Click Save and Close.
  26880.     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.
  26881.     Invitation (invitee - no action taken yet) -> tmpContext = "4"
  26882. tmpContext
  26883.     1S2S
  26884.     When you receive a meeting invitation, you can:
  26885.     Accept the meeting invitation by clicking Accept.
  26886.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In.
  26887.     Decline the meeting invitation by clicking Decline.
  26888.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  26889.     Propose a different time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  26890.     When you receive a broadcast meeting invitation, you can add the broadcast meeting to your calendar by clicking Add to Calendar.
  26891.     You can also accept meeting invitations from all or from selected people
  26892.     automatically by using the Meetings option under Autoprocessing Options
  26893.     in your Calendar Profile.
  26894.     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.
  26895.     Declined -> tmpContext = "5"
  26896. tmpContext
  26897.     1S2S
  26898.     The person you invited to the meeting declined your meeting invitation.
  26899.     To view a list of invitee responses, open the meeting invitation in the Calendar view and click "Display invitee responses."
  26900.     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.
  26901.     Change proposal ->tmpContext = "6"
  26902. tmpContext
  26903.     1S2S
  26904.     Someone you invited to the meeting proposed an alternative time or location for your meeting. You can accept or decline the proposal. 
  26905.     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.
  26906.     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.
  26907.     Reschedule ->tmpContext = "7"
  26908. tmpContext
  26909.     1S2S
  26910.     The meeting chairperson rescheduled this meeting. You can respond to the rescheduled meeting invitation in one of the following ways:
  26911.     Accept the meeting invitation by clicking Accept.
  26912.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In. 
  26913.     Decline the meeting invitation by clicking Decline.
  26914.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  26915.     Propose a different time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  26916.     When you receive a broadcast meeting invitation, you can add the broadcast meeting to your calendar by clicking Add to Calendar.
  26917.     You can also accept meeting invitations automatically from all or selected people by using the Meetings option under Autoprocessing Options in your Calendar Profile.
  26918.     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.
  26919.     Acceptance ->tmpContext = "8"
  26920. tmpContext
  26921.     1S2S
  26922.     The person you invited to the meeting accepted your meeting invitation. 
  26923.     To view a list of invitee responses, open the meeting invitation in the Calendar view and click "Display invitee responses."
  26924.     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.
  26925.     Counter proposal declined ->tmpContext = "9"
  26926. tmpContext
  26927.     1S2S
  26928.     The meeting chairperson declined the alternative time or location you proposed. You can respond to the meeting invitation in one of the following ways:
  26929.     Accept the meeting invitation by clicking Accept.
  26930.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In. 
  26931.     Decline the meeting invitation by clicking Decline.
  26932.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  26933.     Propose another time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  26934.     You can also accept meeting invitations automatically from all or selected people by using the Meetings option under Autoprocessing Options in your Calendar Profile.
  26935.     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.
  26936.     Cancelled ->tmpContext = "10"
  26937. tmpContext
  26938.     1S2S
  26939.     The chairperson cancelled this meeting. You do not need to respond to this message. Notes automatically removed the meeting from your calendar.
  26940.     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.
  26941.     Status update - Uninvite -> tmpContext = "11"
  26942. tmpContext
  26943.     1S2S
  26944.     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.
  26945.     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.
  26946.     Status update - Change Status to Accepted -> tmpContext = "12"
  26947. tmpContext
  26948.     1S2S
  26949.     You are required to attend this meeting. You do not need to respond to this message. Notes automatically added the meeting to your calendar.
  26950.     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.
  26951.     Confirmation -> tmpContext = "13"
  26952. tmpContext
  26953.     1S2S
  26954.     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.
  26955.     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.
  26956.     Delegation -> tmpContext = "14"
  26957. tmpContext
  26958.     1S2S
  26959.     Someone delegated this meeting invitation to you. You can respond to the meeting invitation in one of the following ways:
  26960.     Accept the meeting invitation by clicking Accept.
  26961.     Accept the meeting invitation tentatively by clicking Other and selecting Pencil In. 
  26962.     Decline the meeting invitation by clicking Decline.
  26963.     Ask someone to attend the meeting in your place by clicking Other and selecting Delegate.
  26964.     Propose a different time or location for the meeting by clicking Other and selecting "Propose Alternative Time/Location."
  26965.     You can also accept meeting invitations automatically from all or selected people by using the Meetings option under Autoprocessing Options in your Calendar Profile.
  26966.     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.
  26967.     Delegated Invitation -> tmpContext = "15"
  26968. tmpContext
  26969.     1S2S
  26970.     The person you invited to this meeting delegated the invitation to someone else. 
  26971.     To view a list of invitee responses, open the meeting invitation in the Calendar view and click "Display invitee responses."
  26972.     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.
  26973.     Invitation (invitee--action already taken) -> tmpContext = "16"
  26974. tmpContext
  26975.     1S2S
  26976.     You can make changes to a meeting invitation if necessary.
  26977.     If you have not already done so, click Edit Document.
  26978.     Make changes in any of
  26979.     the calendar entry
  26980.     fields Notes displays.
  26981.     change your response to the meeting invitation, choose Actions - Other and select
  26982.     a different response.
  26983.     Click Save and Close.
  26984.     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.
  26985.     Propose alternative time/location -> tmpContext = "17"
  26986. tmpContext
  26987.     1S2S
  26988.     You proposed a different time or location for the meeting. Notes sends this counter-proposal to the meeting chairperson.
  26989.     When the chairperson accepts or declines the proposal, Notes sends you the chairperson's response.
  26990. Categori_zeK
  26991. _Edit Document
  26992. Send Docu_ment
  26993. _Forward
  26994. _Move To Folder...
  26995. _Remove From FolderK
  26996. O=Lotus Notes
  26997. O=Lotus Notes
  26998. PURSAFO
  26999. |.:#U
  27000. O=Lotus Notes
  27001. CN=Lotus Notes Template Development/O=Lotus Notes
  27002. PURSAFO
  27003. Fde!f^^
  27004. B@BuW8
  27005. Uo-xO
  27006. $FormPublicAccess
  27007. $TITLE
  27008. $INFO
  27009. $$ScriptName
  27010. $BODY
  27011. $ACTIONS
  27012. $PublicAccess
  27013. Archive Profile
  27014. Times New Roman
  27015. '++LotusScript Development Environment:2:5:(Options):0:66
  27016. Option Public
  27017. '++LotusScript Development Environment:2:5:(Forward):0:1
  27018. Declare Sub Initialize
  27019. Declare Sub ProcessExistingArchiveDB
  27020. Declare Sub ProcessNonExistingArchiveDB 
  27021. Declare Sub ProcessArchiveDbExists
  27022. Declare Sub CreateNewArchiveDB
  27023. '++LotusScript Development Environment:2:5:(Declarations):0:10
  27024. %INCLUDE "lsconst.lss"
  27025. Dim s As NotesSession
  27026. Dim w As NotesUIWorkspace
  27027. Dim db As NotesDatabase
  27028. Dim existingdb As NotesDatabase
  27029. Dim archivedb As NotesDatabase
  27030. Dim view As NotesView
  27031. Dim note As NotesDocument
  27032. Dim profile As NotesDocument
  27033. Dim archivedoc As NotesDocument
  27034. Dim doc As NotesUIDocument
  27035. Dim DocWasSaved As Integer
  27036. Dim DoNotClose As Variant
  27037. Dim ExistingServer As String
  27038. Dim ExistingPath As String
  27039. '++LotusScript Development Environment:2:2:Initialize:1:10
  27040. Sub Initialize
  27041.      
  27042. End Sub
  27043. '++LotusScript Development Environment:2:2:ProcessExistingArchiveDB:1:12
  27044. Sub ProcessExistingArchiveDB
  27045. an existing archive already exists and the user has choosen to create a new one
  27046. this function gets called on one of two occasions
  27047. either the document has a value in the tmpArchivePath field
  27048. or the user entered a server and path that has an existing database
  27049. we need to handle both cases
  27050. %END REM
  27051.      
  27052. End Sub
  27053. '++LotusScript Development Environment:2:2:ProcessNonExistingArchiveDB:1:8
  27054. Sub ProcessNonExistingArchiveDB 
  27055.      On Error Goto ProcessError         
  27056.      On Error 4005 Goto DbCreateError
  27057.      'render the dialog box to get the location of the archive database
  27058.      If (w.DialogBox("(ArchiveProfileDlg)",True,True,"Specify New Location")) Then
  27059.           'see if the archive database exists
  27060.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  27061.           If (archivedb.IsOpen) Then
  27062.                Msgbox "Database already exists. Enter a new location"
  27063.                ProcessNonExistingArchiveDB          
  27064.           Else
  27065.                Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  27066.                archivedb.Title = db.Title & " (Archive)"
  27067.           End If
  27068.           Call doc.Reload
  27069.           Call doc.Refresh
  27070.      Else
  27071.           note.ArchiveServer = ""
  27072.           note.ArchivePath = ""
  27073.      End If
  27074.      Exit Sub
  27075. DbCreateError:
  27076.      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")
  27077.      Case 6
  27078.           ProcessNonExistingArchiveDb
  27079.      End Select
  27080.      Exit Sub        
  27081. ProcessError:
  27082.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  27083.      Exit Sub
  27084. End Sub
  27085. '++LotusScript Development Environment:2:2:ProcessArchiveDbExists:1:8
  27086. Sub ProcessArchiveDbExists
  27087.      'this function gets called if a database already exists in the tmpArchiveServer field
  27088.      'render the dialog box to get the location of the archive database
  27089.      On Error 4005 Goto DbCreateError
  27090.      If (w.DialogBox("(ProcessExistingDbDlg)",True,True,"Specify New Location")) Then
  27091.           On Error Resume Next          
  27092.           'see if the archive database exists
  27093.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  27094.           If (archivedb.IsOpen) Then
  27095.                Msgbox "Database already exists. Enter a new location"
  27096.                ProcessArchiveDbExists          
  27097.           Else
  27098.                Call CreateNewArchiveDB
  27099.                archivedb.Title = db.Title & " (Archive)"
  27100.           End If
  27101.           Call doc.reload
  27102.           Call doc.refresh
  27103.      End If        
  27104.      Exit Sub
  27105. DbCreateError:
  27106.      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")
  27107.      Case 6
  27108.           ProcessNonExistingArchiveDb
  27109.      End Select
  27110.      Exit Sub        
  27111. End Sub
  27112. '++LotusScript Development Environment:2:2:CreateNewArchiveDB:1:8
  27113. Sub CreateNewArchiveDB
  27114.      On Error 4005 Goto DbCreateError
  27115.      On Error Goto ProcessError
  27116.      
  27117. 'first, create the archive database     
  27118.      Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  27119.      
  27120. 'if the profile says to copy new documents, then copy them now
  27121.      If (note.CopyOptions(0) = "1") Then
  27122.           Set allDocs = existingdb.AllDocuments
  27123.           For i = 1 To allDocs.Count          
  27124.                Set archivedoc = allDocs.GetNthDocument(i)     
  27125.                Call archivedoc.CopyToDatabase(archivedb)
  27126.           Next
  27127.      End If
  27128.      
  27129. 'if the profile says we should delete the original archive database, then remove it
  27130.      If (note.DeleteOptions(0) = "1") Then Call existingdb.Remove
  27131.      
  27132.      Exit Sub
  27133. DbCreateError:
  27134.      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")
  27135.      Case 6
  27136.           ProcessNonExistingArchiveDb
  27137.      End Select
  27138.      Exit Sub        
  27139. ProcessError:
  27140.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  27141.      Exit Sub
  27142. End Sub
  27143.  Archive Profile'++LotusScript Development Environment:2:5:(Options):0:66
  27144. '++LotusScript Development Environment:2:5:(Forward):0:1
  27145. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  27146. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  27147. Declare Sub Postopen(Source As Notesuidocument)
  27148. '++LotusScript Development Environment:2:5:(Declarations):0:2
  27149. '++LotusScript Development Environment:2:2:BindEvents:1:129
  27150. Private Sub BindEvents(Byval Objectname_ As String)
  27151.      Static Source As NOTESUIDOCUMENT
  27152.      Set Source = Bind(Objectname_)
  27153.      On Event Queryclose From Source Call Queryclose
  27154.      On Event Querysave From Source Call Querysave
  27155.      On Event Postopen From Source Call Postopen
  27156. End Sub
  27157. '++LotusScript Development Environment:2:2:Queryclose:1:12
  27158. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  27159.      
  27160.      If (DocWasSaved = False) Or (profile Is Nothing) Or DoNotClose Then Exit Sub
  27161.      
  27162.      ItemList = profile.Items
  27163.      Forall n In ItemList
  27164.           profile.RemoveItem(n.Name)    
  27165.      End Forall
  27166.      note.CopyAllItems profile
  27167.      profile.SaveOptions = "1"
  27168.      profile.save True, True
  27169.      
  27170. End Sub
  27171. '++LotusScript Development Environment:2:2:Querysave:1:12
  27172. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  27173.      
  27174.      DocWasSaved = True
  27175.      DoNotClose = False     
  27176.      If Not(profile Is Nothing) Then note.SaveOptions = "0"
  27177.      If (note.ArchivePath(0) = "") Then Msgbox "You will need to specify a location of the archive database before you can archive documents.",16     
  27178.      source.Reload
  27179.      source.RefreshHideFormulas  
  27180. End Sub
  27181. '++LotusScript Development Environment:2:2:Postopen:1:12
  27182. Sub Postopen(Source As Notesuidocument)
  27183.      'initialize global variables
  27184.      Set note = source.Document
  27185.      Set w = New NotesUIWorkspace
  27186.      Set s = New NotesSession
  27187.      Set db = s.CurrentDatabase
  27188.      Set view = db.GetView("Archiving")
  27189.      Set doc = source
  27190.      'turn off auto reload to make processing faster
  27191.      source.AutoReload = False
  27192.      'if this is not a new doc, we don't need to continue
  27193.      If Not (source.IsNewDoc) Then Exit Sub
  27194.      'get the existing profile
  27195.      key = "Archive Profile"
  27196.      Set profile = view.GetDocumentByKey(key,False)
  27197.      If profile Is Nothing Then
  27198.           'an existing profile was not found
  27199.           note.ProtectFromArchive = 1
  27200.           note.ExcludeFromView = "D"
  27201.           note.From = "Archiving"
  27202.           note.Subject = "Archive Profile"
  27203.           note.Categories = "(Archive)"
  27204.           Call note.ReplaceItemValue("_ViewIcon", 11)
  27205.           source.reload
  27206.      Else
  27207.           'copy the profile fields to this document
  27208.           ItemList = note.Items
  27209.           Forall n In ItemList
  27210.                note.RemoveItem(n.Name)    
  27211.           End Forall
  27212.           profile.CopyAllItems note
  27213.           source.Reload
  27214.           If source.EditMode Then source.Refresh
  27215.      End If
  27216.      
  27217.      DocWasSaved = False
  27218.      
  27219. End Sub
  27220. K     ,`
  27221. Archive Profile 
  27222. ArchiveExpired
  27223. Archive Expired documents | Yes
  27224.     after
  27225. ExpiredLife
  27226. Number cannot be negative.{
  27227.     3S4S6S11SExpiredLife
  27228.     days
  27229. ArchiveInactive
  27230. Archive documents which have no activity | Yes
  27231.     after
  27232. DocumentLife
  27233. Number cannot be negative.{
  27234.     3S4S6S11SDocumentLife
  27235.     days
  27236. ArchiveLog
  27237. Generate an Archive Log each time an archive occurs | Yes
  27238. IncludeDoclinks
  27239. Include document links | Yes
  27240.     Archive Profile editors:
  27241. ProfileEditors
  27242.     Archive Server:
  27243. ArchivePath
  27244. ArchiveServer
  27245. Local
  27246. ArchiveServer
  27247.     3S4S9S10S12S14StmpArchiveServer
  27248.     Archive Path:
  27249. ArchivePath
  27250. tmpArchivePath
  27251. Categori_ze
  27252. _Edit Document
  27253. Send Docu_ment
  27254. _Forward
  27255. Close
  27256.     0S0E
  27257. Save Profile 
  27258.     0S0E
  27259. Specify Archive Location'++LotusScript Development Environment:2:5:(Options):0:66
  27260. '++LotusScript Development Environment:2:5:(Forward):0:1
  27261. Declare Sub Click(Source As Button)
  27262. '++LotusScript Development Environment:2:5:(Declarations):0:2
  27263. '++LotusScript Development Environment:2:2:BindEvents:1:129
  27264. Private Sub BindEvents(Byval Objectname_ As String)
  27265.      Static Source As BUTTON
  27266.      Set Source = Bind(Objectname_)
  27267.      On Event Click From Source Call Click
  27268. End Sub
  27269. '++LotusScript Development Environment:2:2:Click:1:12
  27270. Sub Click(Source As Button)
  27271.      
  27272. 'see if an archive database already exists based upon some field values
  27273.      If (Len(note.tmpArchivePath(0)) >0) Then
  27274.           If (note.tmpArchiveServer(0) = "Local") Then
  27275.                Fullpath$ = note.tmpArchivePath(0)
  27276.                ExistingServer = ""
  27277.           Else
  27278.                Fullpath$ = note.tmpArchiveServer(0) + "!!" + note.tmpArchivePath(0)
  27279.                ExistingServer = note.tmpArchiveServer(0)
  27280.           End If
  27281.           ExistingPath = note.tmpArchivePath(0)
  27282.           Set existingdb = New NotesDatabase(ExistingServer,ExistingPath)
  27283.           If (existingdb.IsOpen) Then
  27284.                Select Case Msgbox("The database (" + Fullpath$ + ") already exists. To create a new database, select OK, otherwise click Cancel",33,"Database already exists")
  27285.                Case IDOK: ProcessArchiveDBExists
  27286.                End Select
  27287.           Else
  27288.                ProcessNonExistingArchiveDB
  27289.           End If
  27290.      Else
  27291.           ProcessNonExistingArchiveDB
  27292.      End If
  27293. End Sub
  27294. InstructionsF
  27295. (ArchiveInstructions)
  27296.     2S4S
  27297. _Move to Folder...    
  27298. _Remove from Folderr
  27299. O=Lotus Notes
  27300. O=Lotus Notes
  27301. PURSAFO
  27302. |.:#U
  27303. O=Lotus Notes
  27304. CN=Lotus Notes Template Development/O=Lotus Notes
  27305. PURSAFO
  27306. Fde!f^^
  27307. 0I'X"
  27308. DocLife
  27309. ArchiveDate
  27310. ObsoleteLife
  27311. $ManualArchivers_O
  27312. $TITLE
  27313. $INFO
  27314. $WINDOWTITLE
  27315. $Script
  27316. $$Script_O
  27317. $$ScriptName
  27318. $$FormScript
  27319. $$$FormScript_O
  27320. ExpiredLife
  27321. DocumentLife
  27322. $BODY
  27323. $ACTIONS
  27324. $SCRIPTOBJ_6
  27325. Times New Roman
  27326.  (ArchiveInstructions)
  27327. Archive Profile Help
  27328. 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.  
  27329. You can choose the following in your ArchiveProfile:
  27330.     Archive expired documents
  27331.         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.
  27332.     Archive documents which have no activity
  27333.         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.    
  27334.     Generate an Archive Log each time an archive occurs
  27335.         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.
  27336.     Specify Archive Location:
  27337.         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.
  27338. Categori_ze
  27339. _Edit Document
  27340. Send Docu_ment
  27341. _Forward
  27342. _Move To Folder...
  27343. _Remove From Folderm
  27344. O=Lotus Notes
  27345. O=Lotus Notes
  27346. PURSAFO
  27347. |.:#U
  27348. O=Lotus Notes
  27349. CN=Lotus Notes Template Development/O=Lotus Notes
  27350. PURSAFO
  27351. Fde!f^^
  27352. $TITLE
  27353. $INFO
  27354. $$ScriptName
  27355. $BODY
  27356. $ACTIONS
  27357. $PublicAccess
  27358. &Arial
  27359.  StdNotesLtr4
  27360. tmpDisplayFrom_Preview
  27361. tmpFrom
  27362. tmpDisplayDate_Preview
  27363. tmpDate
  27364. O=Lotus Notes
  27365. O=Lotus Notes
  27366. PURSAFO
  27367. |.:#U
  27368. O=Lotus Notes
  27369. CN=Lotus Notes Template Development/O=Lotus Notes
  27370. PURSAFO
  27371. Fde!f^^
  27372. OMz{u
  27373. $TITLE
  27374. $INFO
  27375. $$ScriptName
  27376. $BODY
  27377. Temporary Export Certificate
  27378. "Helvetica
  27379.  Temporary Export Certificate'++LotusScript Development Environment:2:5:(Options):0:66
  27380. '++LotusScript Development Environment:2:5:(Forward):0:1
  27381. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  27382. '++LotusScript Development Environment:2:5:(Declarations):0:2
  27383. '++LotusScript Development Environment:2:2:BindEvents:1:129
  27384. Private Sub BindEvents(Byval Objectname_ As String)
  27385.      Static Source As NOTESUIDOCUMENT
  27386.      Set Source = Bind(Objectname_)
  27387.      On Event Queryclose From Source Call Queryclose
  27388. End Sub
  27389. '++LotusScript Development Environment:2:2:Queryclose:1:12
  27390. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  27391.      
  27392.      On Error Resume Next
  27393.      source.Document.PutInFolder("Temporary Export Certificates")
  27394.      
  27395. End Sub
  27396. FieldCle
  27397. MicrosoftWord R
  27398. .WPD;*.WPT;*.DOC
  27399. Certificate for Temporary Export of 
  27400.               
  27401. Lotus Notes, North American version
  27402.     Personal information:
  27403.     Name:    
  27404.     Company name:    
  27405. CompanyName
  27406.     Travel information:
  27407.     Destination(s):    
  27408. Agreement
  27409. Destination
  27410. You must enter a destination.
  27411.     3S4S5S6S7S8S10S15S
  27412. Destination
  27413.     Product(s)
  27414. Lotus Notes (North American version)
  27415. Agreement
  27416. Product
  27417. You must enter a product.
  27418.     3S4S5S6S7S8S10S15S
  27419. Product
  27420.     U.S. departure date:    
  27421. Only do translation if not already in time format.
  27422. DepartureDate
  27423. DepartureDate
  27424.     0R7S15S
  27425. pcDate
  27426. DepartureDate
  27427.     0RR1S2S
  27428. TodayInt,
  27429.     0RR1S2S
  27430. ConNext
  27431. pcDate
  27432. nextG
  27433.     0R1S2S8S11S13S
  27434. AdjustAmount
  27435. pcDate
  27436. pcDate
  27437. pcDate
  27438. pcDate
  27439. pcDate
  27440. pcDate
  27441. pcDate
  27442.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  27443. AdjustAmount
  27444. ConNext
  27445. pcDateW
  27446.     0RR3S4S5S6S8S19S
  27447. AdjustAmount
  27448. ConNext
  27449. TodayInt#
  27450.     0R6S8S10S20S22S24S
  27451. Agreement
  27452. DepartureDate
  27453. You must enter a departure date.{
  27454.     3S4S5S6S7S8S10S15S
  27455. DepartureDate
  27456.     U.S. return date:    
  27457. Only do translation if not already in time format.
  27458. ReturnDate]
  27459. ReturnDateK
  27460.     0R7S15S
  27461. pcDate
  27462. ReturnDatea
  27463.     0RR1S2S
  27464. TodayInt,
  27465.     0RR1S2S
  27466. ConNext
  27467. pcDate
  27468. nextG
  27469.     0R1S2S8S11S13S
  27470. AdjustAmount
  27471. pcDate
  27472. pcDate
  27473. pcDate
  27474. pcDate
  27475. pcDate
  27476. pcDate
  27477. pcDate
  27478.     0R1S2S4RS8E11RS13E13RS9E20RS13E22RS8E29RS13E31RS8E38RS13E40RS8E47RS13E49RS8E56RS13E58RS8E65RS13E67RS8E
  27479. AdjustAmount
  27480. ConNext
  27481. pcDateW
  27482.     0RR3S4S5S6S8S19S
  27483. AdjustAmount
  27484. ConNext
  27485. TodayInt#
  27486.     0R6S8S10S20S22S24S
  27487. ReturnDate
  27488. Agreement
  27489. I hereby certify|Yes
  27490.     , 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.
  27491.     I certify that:
  27492.     the use of the product identified above was solely for personal use and not for sales, demonstration or marketing purposes;
  27493.     only one copy of the product identified above was exported and it remained in my possession (and was not sent separately) during this travel;
  27494.     I did not travel to a country to which exports are prohibited (countries on which a "ban or embargo" has been 
  27495.     imposed
  27496.      by the U.S. government or United Nations); and
  27497.     I have no knowledge or reason to believe the products were copied, transferred, stolen, or compromised while abroad.
  27498.    .   .   
  27499.    .   .  
  27500.     Explanation of law: 
  27501.     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.
  27502.     Requirements:
  27503.     - Use of the cryptographic items must be for personal use and not for sales, marketing, or demonstration purposes 
  27504.     - 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.
  27505.     - 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.
  27506.     - 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.
  27507.     - 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. 
  27508.     - 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.)
  27509. Temporary Export Certificate - 
  27510. Destination
  27511. DepartureDate
  27512.     1S2S3S4S5S6S
  27513. Subject
  27514. _ViewIcon
  27515. ExcludeFromView
  27516. Closeo 
  27517.     0S0E
  27518. _Edit Document
  27519. Categori_ze
  27520. Send Docu_ment
  27521. _Forward
  27522. _Move To Folder...
  27523. _Remove From Folder
  27524. O=Lotus Notes
  27525. O=Lotus Notes
  27526. PURSAFO
  27527. |.:#U
  27528. O=Lotus Notes
  27529. CN=Lotus Notes Template Development/O=Lotus Notes
  27530. PURSAFO
  27531. Fde!f^^
  27532. $TITLE
  27533. $INFO
  27534. $WINDOWTITLE
  27535. $$Script_O
  27536. $$ScriptName
  27537. $$FormScript
  27538. $$$FormScript_O
  27539. $BODY
  27540. $ACTIONS
  27541. &Arial
  27542.  StdNotesLtr22
  27543.                                 
  27544. tmpDisplayFrom_Preview
  27545. tmpFrom
  27546. tmpDisplayDate_Preview
  27547. tmpDate
  27548. O=Lotus Notes
  27549. O=Lotus Notes
  27550. PURSAFO
  27551. |.:#U
  27552. O=Lotus Notes
  27553. CN=Lotus Notes Template Development/O=Lotus Notes
  27554. PURSAFO
  27555. Fde!f^^
  27556. )RF~E
  27557. $TITLE
  27558. $INFO
  27559. $Header
  27560. $$ScriptName
  27561. $BODY
  27562. &Arial
  27563.  StdNotesLtr34
  27564. tmpDisplayFrom_Preview
  27565. tmpFrom
  27566. tmpDisplayDate_Preview
  27567. tmpDate
  27568. O=Lotus Notes
  27569. O=Lotus Notes
  27570. PURSAFO
  27571. |.:#U
  27572. O=Lotus Notes
  27573. CN=Lotus Notes Template Development/O=Lotus Notes
  27574. PURSAFO
  27575. Fde!f^^
  27576. Ct"AMy
  27577. $TITLE
  27578. $INFO
  27579. $$ScriptName
  27580. $BODY
  27581.  StdNotesLtr8
  27582. tmpDisplayFrom_Preview
  27583. tmpFrom
  27584. tmpDisplayDate_Preview
  27585. tmpDate
  27586. O=Lotus Notes
  27587. O=Lotus Notes
  27588. PURSAFO
  27589. |.:#U
  27590. O=Lotus Notes
  27591. CN=Lotus Notes Template Development/O=Lotus Notes
  27592. PURSAFO
  27593. Fde!f^^
  27594. $TITLE
  27595. $INFO
  27596. $$ScriptName
  27597. $BODY
  27598. $FORWARDSEPCU3
  27599. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################
  27600. TapeStdNotesLtr25CU3
  27601. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################
  27602. Yellow GradientStdNotesLtr33CU3
  27603. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  27604. ##########################################################
  27605. Buck Rogers MailStdNotesLtr2CU3
  27606. CN=Mussie Shore/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  27607. ##########################################################
  27608. TacksStdNotesLtr24CU3
  27609. CN=Don Hatch/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################
  27610. (ArchiveProfileDlg)1CDU
  27611. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes    
  27612. ##########################################################
  27613. _Special\_Memo To Database ManagerMemow
  27614. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################################
  27615. (LetterHeadChooser)
  27616. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCDw###########
  27617. GatewayStdNotesLtrGatewayCU3
  27618. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  27619. ##########################################################
  27620. P5~K-!W
  27621. AutoProcessNotices
  27622. 5SfL3
  27623. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################################
  27624. (Delegation Profile)DelegationProfile1
  27625. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Irisw#################
  27626. (OLEMailFields)CUA3
  27627. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################################################
  27628. ----------------------
  27629.  Forwarded by 
  27630. ForwardedFrom
  27631. ForwardedDate
  27632. ---------------
  27633. --------
  27634. O=Lotus Notes
  27635. O=Lotus Notes
  27636. PURSAFO
  27637. |.:#U
  27638. O=Lotus Notes
  27639. CN=Lotus Notes Template Development/O=Lotus Notes
  27640. PURSAFO
  27641. Fde!f^^
  27642. 6/Jd-
  27643. $TITLE
  27644. $INFO
  27645. $Header
  27646. ForwardedDate
  27647. $BODY
  27648.  StdNotesLtr25
  27649. tmpDisplayFrom_Preview
  27650. tmpFrom
  27651. tmpDisplayDate_Preview
  27652. tmpDate
  27653. O=Lotus Notes
  27654. O=Lotus Notes
  27655. PURSAFO
  27656. |.:#U
  27657. O=Lotus Notes
  27658. CN=Lotus Notes Template Development/O=Lotus Notes
  27659. PURSAFO
  27660. Fde!f^^
  27661. $TITLE
  27662. $INFO
  27663. $$ScriptName
  27664. $BODY
  27665.  StdNotesLtr33
  27666. tmpDisplayFrom_Preview
  27667. tmpFrom
  27668. tmpDisplayDate_Preview
  27669. tmpDate
  27670. O=Lotus Notes
  27671. O=Lotus Notes
  27672. PURSAFO
  27673. |.:#U
  27674. O=Lotus Notes
  27675. CN=Lotus Notes Template Development/O=Lotus Notes
  27676. PURSAFO
  27677. Fde!f^^
  27678. $TITLE
  27679. $INFO
  27680. $Header
  27681. $$Script_O
  27682. $$ScriptName
  27683. $BODY
  27684. &Arial
  27685.  StdNotesLtr2
  27686. tmpDisplayFrom_Preview
  27687. tmpFrom
  27688. tmpDisplayDate_Preview
  27689. tmpDate
  27690. O=Lotus Notes
  27691. O=Lotus Notes
  27692. PURSAFO
  27693. |.:#U
  27694. O=Lotus Notes
  27695. CN=Lotus Notes Template Development/O=Lotus Notes
  27696. PURSAFO
  27697. Fde!f^^
  27698. $TITLE
  27699. $INFO
  27700. $Header
  27701. $$ScriptName
  27702. $BODY
  27703.  StdNotesLtr24
  27704. tmpDisplayFrom_Preview
  27705. tmpFrom
  27706. tmpDisplayDate_Preview
  27707. tmpDate
  27708. O=Lotus Notes
  27709. O=Lotus Notes
  27710. PURSAFO
  27711. |.:#U
  27712. O=Lotus Notes
  27713. CN=Lotus Notes Template Development/O=Lotus Notes
  27714. PURSAFO
  27715. Fde!f^^
  27716.  P0'}4
  27717. 9,VlV
  27718. $TITLE
  27719. $INFO
  27720. $$ScriptName
  27721. $BODY
  27722. (ArchiveProfileDlg)
  27723. Local
  27724. ArchiveLocation
  27725. Locally | LocalOn Server | Server
  27726. ArchiveLocation
  27727. Local
  27728.     1S2S
  27729.     0S0E
  27730. ArchiveServer
  27731. ArchiveLocation
  27732. Local
  27733. ArchiveServer
  27734. ArchiveServer
  27735.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  27736. ArchiveServer
  27737. CurrentPath
  27738.     1S2S6S
  27739. CurrentFile
  27740. CurrentPath
  27741.     0R1S2S6S
  27742. FileOnly
  27743. CurrentPath
  27744. CurrentFile
  27745. Macintosh
  27746. CurrentPath
  27747. CurrentFile
  27748. CurrentPath
  27749. CurrentFile
  27750. CurrentFile
  27751.     0R1S2S8S11S15S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  27752. DirOnly
  27753. CurrentPath
  27754. Macintosh
  27755. CurrentFile
  27756. CurrentFile
  27757. CurrentFile
  27758. Macintosh
  27759. CurrentPath
  27760. CurrentFile
  27761. CurrentPath
  27762. CurrentFile
  27763.     0R1S2S8S11S14S15S16S21S23S2E24S27S28S34S36S37S39S43S45S46S49S50S51S52S53S57S60S64S66S67S69S70S71S72S73S77S80S84S86S87S89S
  27764. dftvalue
  27765. DirOnly
  27766. FileOnly"
  27767. CurrentPath
  27768.     0RR1S2S3S4S7S8S10S12S13S17S
  27769. Macintosh
  27770. dftvalue
  27771. dftvalue
  27772. dftvalue
  27773. dftvalue
  27774. dftvalue
  27775.     0R3S4S5S6S21S22S23S24S25S26S
  27776. ArchivePath
  27777. Please specify the filename of the archive database
  27778.     3S4S6S11SArchivePath
  27779.     Documents are archived:
  27780.     Archive database is on server:
  27781.     Archive file:
  27782. servers
  27783. names.nsf
  27784. ($ServersLookup)
  27785.     1S2S
  27786. selectedserver
  27787. Server
  27788. Please select a server to create your archive database on.
  27789. ArchiveServer
  27790. servers
  27791.     0R1S2S
  27792. ArchiveServer
  27793. selectedServer
  27794.     0R1S2S3S
  27795. ?_?__
  27796. `!b`1
  27797. 7`^///?
  27798. ?b___
  27799. `bOOO
  27800. `<b!R
  27801. @If(@IsN
  27802. O=Lotus Notes
  27803. O=Lotus Notes
  27804. PURSAFO
  27805. |.:#U
  27806. O=Lotus Notes
  27807. CN=Lotus Notes Template Development/O=Lotus Notes
  27808. PURSAFO
  27809. Fde!f^^
  27810. $TITLE
  27811. $INFO
  27812. $$ScriptName
  27813. $BODY
  27814. $PublicAccess
  27815. Times New Roman
  27816. VersionOpt|
  27817.     6S7S9S14S
  27818. $VersionOpt
  27819.     0R1S2S3S
  27820. SavedOnce
  27821.     0R1S2S3S
  27822. PostedDate(
  27823.     0R1S2S3S
  27824. DeliveredDate
  27825.     0R1S2S3S
  27826. $AutoEditMode
  27827.     0R1S2S3S
  27828. MailSaveOptions
  27829.     0R1S2S3S
  27830. VersionOpt
  27831.     0R4S
  27832. Memo To Database Manager
  27833. Subject
  27834. Subject
  27835. Subject
  27836.     4S6S12S13S14S15S17S21S23S25S26S28S
  27837. '++LotusScript Development Environment:2:5:(Options):0:74
  27838. Option Public
  27839. Use "EmailProcessing"
  27840. Use "DocumentConversions"
  27841. '++LotusScript Development Environment:2:5:(Forward):0:1
  27842. '++LotusScript Development Environment:2:5:(Declarations):0:2
  27843.  Memo'++LotusScript Development Environment:2:5:(Options):0:66
  27844. '++LotusScript Development Environment:2:5:(Forward):0:1
  27845. Declare Sub Postopen(Source As Notesuidocument)
  27846. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  27847. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  27848. Declare Sub Postmodechange(Source As Notesuidocument)
  27849. '++LotusScript Development Environment:2:5:(Declarations):0:2
  27850. '++LotusScript Development Environment:2:2:BindEvents:1:129
  27851. Private Sub BindEvents(Byval Objectname_ As String)
  27852.      Static Source As NOTESUIDOCUMENT
  27853.      Set Source = Bind(Objectname_)
  27854.      On Event Postopen From Source Call Postopen
  27855.      On Event Querysave From Source Call Querysave
  27856.      On Event Queryclose From Source Call Queryclose
  27857.      On Event Postmodechange From Source Call Postmodechange
  27858. End Sub
  27859. '++LotusScript Development Environment:2:2:Postopen:1:12
  27860. Sub Postopen(Source As Notesuidocument)
  27861.      
  27862.      Set ws = New NotesUIWorkSpace
  27863.      Set uidoc = source
  27864.      
  27865.      Call EmailOpen
  27866.      
  27867. End Sub
  27868. '++LotusScript Development Environment:2:2:Querysave:1:12
  27869. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  27870.      
  27871.      Call EmailSave(Continue)
  27872.      
  27873. End Sub
  27874. '++LotusScript Development Environment:2:2:Queryclose:1:12
  27875. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  27876.      
  27877.      Call EmailClose(Continue)
  27878.      
  27879. End Sub
  27880. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  27881. Sub Postmodechange(Source As Notesuidocument)
  27882.      
  27883.      Call EmailModeChange
  27884.      
  27885. End Sub
  27886.     Always hidden: 
  27887. Principal
  27888. CalendarProfile
  27889. Owner
  27890.     1S2S3S7S
  27891. Principal
  27892. Principal
  27893.     0R3S4S6S8S
  27894. FromPerson memo is from.
  27895.     0S0E
  27896.     0S0E
  27897. Encrypt
  27898.     0S0E
  27899. DefaultMailSaveOptions
  27900. $KeepPrivate
  27901. $KeepPrivate
  27902. $KeepPrivate
  27903.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  27904.     From:    
  27905. Principal
  27906. Principal
  27907. FromDomain
  27908. FromDomain
  27909. FromDomain
  27910. FromDomain
  27911.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  27912. FromName
  27913. Principal
  27914. Principal
  27915.     0RR1S2S9S11S15S
  27916. FromStops
  27917.     0R1S2S6S
  27918. FromName
  27919. FromStops
  27920. FromStops
  27921. FromStops
  27922.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  27923.      on 
  27924. PostedDateh
  27925. PostedDate
  27926.     4S5S10S12S
  27927. tmpDisplayDateTime/date memo was created or mailed.
  27928. ReplyDate
  27929. ReplyTo
  27930.     1S2S3S4S5S6S
  27931. Please respond
  27932. ReplyTo
  27933. ReplyTo
  27934. ReplyDate
  27935. ReplyDate
  27936.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  27937. $HideMailHeader
  27938. Principal
  27939. Principal
  27940. Principal
  27941. Principal
  27942. Principal
  27943.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  27944.     Sent by:    
  27945. FromDomain
  27946. FromDomain
  27947. FromDomain
  27948. FromDomain
  27949.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  27950. FromName
  27951.     0RR1S2S6S
  27952. FromStops
  27953.     0R1S2S6S
  27954. FromName
  27955. FromStops
  27956. FromStops
  27957. FromStops
  27958.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  27959. SendTo
  27960. CopyTo
  27961.   cc:  
  27962. CopyTo
  27963.     1S8S13S14S2E17S18S21S28S31S
  27964. SendTo}
  27965.     0S0E
  27966. SendToList of primary people to send memo.
  27967.     cc:    
  27968. CopyTo}
  27969.     0S0E
  27970. CopyToList of people to send a copy of the memo.
  27971. DeliveredDate
  27972. BlindCopyTo
  27973. (bcc: 
  27974. BlindCopyTo
  27975.     3S4S5S6S7S8S10S11S12S16S18S19S21SDisplayBlindCopyTo
  27976.     bcc:
  27977. BlindCopyTo
  27978.     0S0E
  27979. BlindCopyToList of undisclosed people to send copies of memo.
  27980.     Subject:    
  27981. PhoneCaller
  27982. Phone Call: 
  27983. PhoneCaller
  27984. Subject
  27985.     7S8S9S11S:
  27986. Subject
  27987.     0S0E
  27988. SubjectSubject of memo.
  27989. Edit Document
  27990. ForwardK 
  27991.     0S0E
  27992. New Memo.
  27993.     0S0E
  27994. Delete 
  27995.     0S0E
  27996. _Move To Folder...
  27997. Delivery Information...Kz
  27998. DeliveryInfo
  27999. Delivery Information
  28000.     4S5S6S7S8S9S10S12S
  28001. _Forward
  28002. Reply
  28003. Reply
  28004.     0S0E
  28005. Reply With History
  28006. Reply with History
  28007. This document is truncated.
  28008.     4S8S10S13S
  28009. Reply with history
  28010. Address... 
  28011.     0S0E
  28012. PostedDateh
  28013.     5S6S7S8S
  28014. Close
  28015.     0S0E
  28016. IsMailStationeryh
  28017. PostedDateh
  28018.     6S7S
  28019. Save As Draft
  28020. tmpAction
  28021. SaveAsDraft
  28022.     1S2S3S
  28023. IsMailStationeryh
  28024. PostedDateh
  28025.     4S5S
  28026. Save and File
  28027.     7S9S
  28028. tmpAction
  28029. SaveAndFile
  28030.     0R1S2S3S
  28031. IsMailStationeryh
  28032. PostedDateY
  28033. PostedDateh
  28034.     4S5S9S10S16S17S18S19S
  28035. PromptValue
  28036. DefaultMailSaveOptions
  28037. Save when sent
  28038. Do you wish to save a copy of this Memo?
  28039. DefaultMailSaveOptions
  28040.     1S2S5S6S8S14S17S
  28041. SaveOptions
  28042. PromptValue
  28043. SaveOptions
  28044. PromptValue
  28045.     0RR1S2S5S6S9S14S
  28046. tmpAction
  28047. DefaultMailSaveOptions
  28048. Mailing
  28049.     0RR1S2S3S6S7S9S11S
  28050. MailOptions
  28051.     0R1S2S3S
  28052.     0R7S9S
  28053. tmpAction
  28054. SaveOptions
  28055. SendAndFile
  28056.     0RR1S2S3S6S7S9S11S
  28057.     0R7S9S
  28058. PostedDateh
  28059. IsMailStationeryh
  28060.     5S6S7S8S10S11S
  28061. Send And File...
  28062.     4S11S13S19S
  28063.     0RR7S9S
  28064. tmpAction
  28065. DefaultMailSaveOptions
  28066. Mailing
  28067.     0RR1S2S3S6S7S9S11S
  28068. MailOptions
  28069.     0R1S2S3S
  28070.     0R7S9S
  28071. tmpAction
  28072. SendAndFile
  28073.     0RR1S2S3S
  28074.     0R7S9S
  28075. PostedDateh
  28076. IsMailStationeryh
  28077.     5S6S7S8S10S11S
  28078. Delivery Options...K
  28079. DeliveryOptions
  28080. Delivery Options
  28081.     4S8S
  28082. _ViewIcon
  28083. SenderTag
  28084. SenderTag
  28085. SenderTag
  28086. SenderTag
  28087. SenderTag
  28088. SenderTag
  28089. SenderTag
  28090. SenderTag
  28091. SenderTag
  28092. SenderTag
  28093. SenderTag
  28094.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  28095. PostedDateh
  28096.     5S6S7S8S
  28097. Special Options...
  28098. ReplyDate
  28099. ReplyDate
  28100.     1S2S3S
  28101. ReplyTo
  28102. ReplyTo
  28103.     0R1S2S3S
  28104. (Advanced Options)
  28105. Special Options
  28106.     0R6S10S13S15S
  28107. tmpDisplayReplyInfo
  28108. Please respond
  28109. ReplyTo
  28110. ReplyTo
  28111. ReplyDate
  28112. ReplyDate
  28113.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  28114. DueDateTime
  28115. ReplyDate
  28116.     0R1S2S3S
  28117. PostedDateh
  28118.     5S6S7S8S
  28119. _Remove From Folder...
  28120. Categori_zeK
  28121. SSend
  28122. PostedDateY
  28123.     0S0E
  28124. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  28125. '++LotusScript Development Environment:2:5:(Forward):0:1
  28126. Declare Sub Click(Source As Button)
  28127. '++LotusScript Development Environment:2:5:(Declarations):0:2
  28128. '++LotusScript Development Environment:2:2:BindEvents:1:129
  28129. Private Sub BindEvents(Byval Objectname_ As String)
  28130.      Static Source As BUTTON
  28131.      Set Source = Bind(Objectname_)
  28132.      On Event Click From Source Call Click
  28133. End Sub
  28134. '++LotusScript Development Environment:2:2:Click:1:12
  28135. Sub Click(Source As Button)
  28136.      Call CreateNewDoc(NEW_MEMO)
  28137. End Sub
  28138. tmpNewDoc
  28139.     1S2S
  28140. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  28141. '++LotusScript Development Environment:2:5:(Forward):0:1
  28142. Declare Sub Click(Source As Button)
  28143. '++LotusScript Development Environment:2:5:(Declarations):0:2
  28144. '++LotusScript Development Environment:2:2:BindEvents:1:129
  28145. Private Sub BindEvents(Byval Objectname_ As String)
  28146.      Static Source As BUTTON
  28147.      Set Source = Bind(Objectname_)
  28148.      On Event Click From Source Call Click
  28149. End Sub
  28150. '++LotusScript Development Environment:2:2:Click:1:12
  28151. Sub Click(Source As Button)
  28152.      Call CreateNewDoc(NEW_CALENDAR)
  28153. End Sub
  28154. tmpnewdoc
  28155.     1S2S
  28156. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  28157. '++LotusScript Development Environment:2:5:(Forward):0:1
  28158. Declare Sub Click(Source As Button)
  28159. '++LotusScript Development Environment:2:5:(Declarations):0:2
  28160. '++LotusScript Development Environment:2:2:BindEvents:1:129
  28161. Private Sub BindEvents(Byval Objectname_ As String)
  28162.      Static Source As BUTTON
  28163.      Set Source = Bind(Objectname_)
  28164.      On Event Click From Source Call Click
  28165. End Sub
  28166. '++LotusScript Development Environment:2:2:Click:1:12
  28167. Sub Click(Source As Button)
  28168.      Call CreateNewDoc(NEW_TASK)
  28169. End Sub
  28170. tmpnewdoc
  28171.     1S2S
  28172. Copy into\New GroupK,
  28173. NewGroup
  28174.     0S0E
  28175. tmpnewdoc
  28176.     1S2S
  28177. O=Lotus Notes
  28178. O=Lotus Notes
  28179. PURSAFO
  28180. |.:#U
  28181. O=Lotus Notes
  28182. CN=Lotus Notes Template Development/O=Lotus Notes
  28183. PURSAFO
  28184. Fde!f^^
  28185. {|Fun
  28186. $$FormPostOpenAction
  28187. $TypeIcon
  28188. ExpireDate
  28189. ReplyDate
  28190. ComposedDate
  28191. $TITLE
  28192. $AUTOLAUNCH
  28193. $INFO
  28194. $WINDOWTITLE
  28195. $Script
  28196. $$Script_O
  28197. $$ScriptName
  28198. $$FormScript
  28199. $$$FormScript_O
  28200. $BODY
  28201. $ACTIONS
  28202. $SCRIPTOBJ_20
  28203. $SCRIPTOBJ_21
  28204. $SCRIPTOBJ_22
  28205. Choose Letterhead
  28206. (LetterHeadChooser)'++LotusScript Development Environment:2:5:(Options):0:66
  28207. '++LotusScript Development Environment:2:5:(Forward):0:1
  28208. Declare Sub Postrecalc(Source As Notesuidocument)
  28209. '++LotusScript Development Environment:2:5:(Declarations):0:2
  28210. '++LotusScript Development Environment:2:2:BindEvents:1:129
  28211. Private Sub BindEvents(Byval Objectname_ As String)
  28212.      Static Source As NOTESUIDOCUMENT
  28213.      Set Source = Bind(Objectname_)
  28214.      On Event Postrecalc From Source Call Postrecalc
  28215. End Sub
  28216. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  28217. Sub Postrecalc(Source As Notesuidocument)
  28218.      Dim s As New notesSession    
  28219.      Dim w As New notesuiworkspace
  28220.      Dim doc As notesuidocument
  28221.      Set doc=w.currentdocument
  28222.      
  28223.      Dim Note As NotesDocument
  28224.      Set Note = Doc.Document
  28225.      
  28226.      s.SetEnvironmentVar "DefaultLogo", Note.LetterHeadChoices(0)
  28227.      Doc.Close
  28228.      w.ComposeDocument "","","(LetterHeadChooser)"
  28229. End Sub
  28230. SaveOptions
  28231. FromPerson memo is from.
  28232. DefaultLogo
  28233. stdNotesLtr0
  28234. DefaultLogo
  28235.     From:    
  28236. FromDomain
  28237. FromDomain
  28238. FromDomain
  28239. FromDomain
  28240.     7S10S18S19S23S25S28S29S31S33S34S35S41S44S48S51S57S
  28241. FromName
  28242.     0RR1S2S6S
  28243. FromStops
  28244.     0R1S2S6S
  28245. FromName
  28246. FromStops
  28247.     0RR1S2S3S4S8StmpDisplayFrom_Preview
  28248.      on 
  28249. PostedDateh
  28250. PostedDate
  28251.     7S9S
  28252. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  28253.     Preview  letterheads for new Memos and Replies in the list below.  
  28254.     When you find one you like, press Done. 
  28255. LetterHeadChoices
  28256. 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
  28257. DefaultLogo
  28258.     0S0E
  28259. Categori_ze
  28260. _Edit Document
  28261. Send Docu_ment
  28262. _Forward
  28263. _Move To Folder...
  28264. _Remove From Foldert
  28265. Choose New Letter Head
  28266. DefaultLogo
  28267. DefaultLogo
  28268.     1S2S
  28269. Logos
  28270.     0RR1S2S
  28271. The following list should be translated. It is presented to user in list box
  28272.     0R1S
  28273. LogoNames
  28274. Three
  28275. Buck Rogers
  28276. Centered Rich
  28277. Confetti
  28278. Falling Balls
  28279. Frank Lloyde
  28280.     0R1S2S
  28281. Select a Letterhead
  28282. Select the Letterhead which will appear at the top of all new Memos and Replys
  28283. DefaultLogo
  28284. Logos
  28285. LogoNames
  28286. LogoNames
  28287.     0R1S2S14S16S19S
  28288. DefaultLogo
  28289. LogoNames
  28290. Logos
  28291.     0RR4S8S10S
  28292. preview
  28293. Done 
  28294.     0S0E
  28295. O=Lotus Notes
  28296. O=Lotus Notes
  28297. PURSAFO
  28298. |.:#U
  28299. O=Lotus Notes
  28300. CN=Lotus Notes Template Development/O=Lotus Notes
  28301. PURSAFO
  28302. Fde!f^^
  28303. $TITLE
  28304. $INFO
  28305. $WINDOWTITLE
  28306. $$Script_O
  28307. $$ScriptName
  28308. $$FormScript
  28309. $BODY
  28310. $ACTIONS
  28311. &Arial Narrow
  28312. &Arial
  28313.  StdNotesLtrGateway
  28314.     Hidden: 
  28315. tmpDisplayDate_Preview
  28316. tmpDate
  28317. tmpDisplayFrom_Preview
  28318.  on "
  28319. tmpDisplayDate_Preview
  28320. D0S2V
  28321.     3S4S5S6S10StmpFrom
  28322. O=Lotus Notes
  28323. O=Lotus Notes
  28324. PURSAFO
  28325. |.:#U
  28326. O=Lotus Notes
  28327. CN=Lotus Notes Template Development/O=Lotus Notes
  28328. PURSAFO
  28329. Fde!f^^
  28330. $TITLE
  28331. $INFO
  28332. $$Script_O
  28333. $$ScriptName
  28334. $BODY
  28335. '++LotusScript Development Environment:2:5:(Options):0:74
  28336. Option Public
  28337. Use "NoticeProcessing"
  28338. Use "NoticeResponses"
  28339. Use "RepeatProcessing"
  28340. '++LotusScript Development Environment:2:5:(Forward):0:1
  28341. Declare Sub Initialize
  28342. Declare Function CanAutoProcess As Integer
  28343. '++LotusScript Development Environment:2:5:(Declarations):0:10
  28344. Dim FromList As Variant
  28345. Dim autodocs As NotesDocumentCollection
  28346. '++LotusScript Development Environment:2:2:Initialize:1:10
  28347. Sub Initialize
  28348.      Dim context As Integer
  28349.      
  28350.      On Error 4005 Resume Next ' handle the case if the parent document cannot be found
  28351.      
  28352.      Set session = New NotesSession
  28353.      Set db = session.CurrentDatabase
  28354.      Set autodocs = db.UnprocessedDocuments
  28355.      IsAgentProcessing = True
  28356. 'if we don't have any documents to process, we can exit now
  28357.      If (autodocs.count = 0) Then Exit Sub
  28358.      
  28359.      Set profile = db.GetProfileDocument("CalendarProfile")
  28360.      FromList = profile.MeetingsPeople
  28361.      Owner = profile.Owner(0)
  28362.      If (Owner = "") Then Owner = session.UserName
  28363.      
  28364.      Set note = autodocs.GetFirstDocument
  28365.      While Not (note Is Nothing)
  28366. 'we only need to process meeting invitations from other people; do not process meeting responses back from invitees          
  28367.           If (note.Form(0) = "Notice") And (note.Chair(0) <> Owner) Then
  28368. 'make sure we can process this notice
  28369.                If (CanAutoProcess) Then
  28370. 'determine the type of notice being sent to us
  28371.                     Select Case note.NoticeType(0)
  28372.                     Case ORS_MSGTYPE_INVITE,ORS_MSGTYPE_DELEGATE
  28373. 'check for notice updates; if we have any, then do not process this note
  28374.                          Call GetMostRecentUpdateNotice(context)
  28375.                          If (UpdateResponses(0).misc2 = "") Then                                                 'we didn't find any update notices that we care about
  28376. 'we are receiving an invitation
  28377.                               If (note.HasItem("RepeatIds")) Then
  28378. 'this is a repeating meeting; determine if this is a broadcast notice or not
  28379.                                    If (note.Broadcast(0) <> "1") Then 
  28380.                                         note.tmpAction = "Accept"
  28381.                                         Call AcceptInvitation
  28382.                                    Else
  28383.                                         note.tmpAction = "AddCalendar"
  28384.                                         Call UpdateOriginalInvitation(note)
  28385. 'see if we should remove this from the inbox
  28386.                                         If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  28387.                                    End If                                   
  28388.                                    Action = "Accept"
  28389.                                    InstancesCreated = False
  28390.                                    Call RepeatSave
  28391.                               Else
  28392. 'this is a standard invitation                              
  28393.                                    If Not (CheckIfConflictExists) Then
  28394.                                         If (note.Broadcast(0) = "1") Then
  28395.                                              note.tmpAction = "AddCalendar"
  28396.                                              Call UpdateOriginalInvitation(note)
  28397.                                         Else
  28398.                                              note.tmpAction = "Accept"                                        
  28399.                                              Call AcceptInvitation                                    
  28400.                                         End If
  28401.                                    Else
  28402.                                         note.Subject = "(Time Conflict) " & note.Subject(0)
  28403.                                         Call MarkTempFields(note)
  28404.                                         Call note.Save(True,True)
  28405.                                    End If
  28406.                               End If
  28407.                          End If
  28408.                     Case ORS_MSGTYPE_RESCHEDULE
  28409. 'the meeting is being rescheduled          
  28410.                          Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  28411.                          If (parentnote Is Nothing) Then
  28412.                               note.Subject = "(Missing Parent Document) " & note.Subject(0)
  28413.                               Call MarkTempFields(note)
  28414.                               Call note.Save(True,True)
  28415.                          Else
  28416. 'get the most recent update notice and see if this note is the most recent one; we only process the most recent update notice
  28417.                               Call GetMostRecentUpdateNotice(context)
  28418.                               If (note.UniversalID = UpdateResponses(0).misc2) Then
  28419. 'we will only process the reschedule if the SequenceNum of the reschedule is greater than the parent SequenceNum                    
  28420.                                    If (note.SequenceNum(0) > parentnote.SequenceNum(0)) Then                 
  28421. 'if this is a repeating meeting, then handle this differently
  28422.                                         If (note.HasItem("OrgRepeat")) Then
  28423.                                              Call SaveOriginalValues
  28424.                                              note.tmpAction = "AddCalendar"
  28425.                                              Call UpdateOriginalInvitation(parentnote)
  28426.                                              Action = ""
  28427.                                              Call RepeatSave
  28428.                                         Else
  28429.                                              If Not (CheckIfConflictExists) Then
  28430.                                                   If (note.Broadcast(0) = "1") Then
  28431.                                                        note.tmpAction = "AddCalendar"
  28432.                                                        Call UpdateOriginalInvitation(parentnote)
  28433.                                                   Else
  28434.                                                        note.tmpAction = "Accept"                                             
  28435.                                                        Call AcceptInvitation                                    
  28436.                                                   End If
  28437.                                              Else
  28438.                                                   note.Subject = "(Time Conflict) " & note.Subject(0)
  28439.                                                   Call MarkTempFields(note)
  28440.                                                   Call note.Save(True,True)
  28441.                                              End If
  28442.                                         End If                                        
  28443.                                    End If       
  28444.                               End If
  28445.                          End If
  28446.                     Case ORS_MSGTYPE_CANCEL,ORS_MSGTYPE_STATUSUPDATE
  28447. 'if the orgstatus <> ORS_STATUS_REMOVED, then the chair is requiring us to attend
  28448. 'we only want to look for a parent if this document is a response; the original invitation might be stamped as a cancel
  28449.                          If (note.IsResponse) Then
  28450.                               Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  28451.                               If (parentnote Is Nothing) Then
  28452.                                    note.Subject = "(Missing Parent Document) " & note.Subject(0)
  28453.                                    Call MarkTempFields(note)
  28454.                                    Call note.Save(True,True)
  28455.                               Else                         
  28456.                                    If (note.OrgStatus(0) <> ORS_STATUS_REMOVED) And (note.NoticeType(0) = ORS_MSGTYPE_STATUSUPDATE) Then
  28457. 'currently, we do nothing -> you could call CommitAppointment passing it (parentnote)                              
  28458.                                    Else
  28459. 'get the most recent update notice and see if this note is the most recent one; we only process the most recent update notice
  28460.                                         Call GetMostRecentUpdateNotice(context)
  28461.                                         If (note.UniversalID = UpdateResponses(0).misc2) Then                                            
  28462. 'decommit the parent document if the SequenceNum on the note is >= the parent SequenceNum
  28463.                                              If (note.SequenceNum(0) >= parentnote.SequenceNum(0)) Then 
  28464.                                                   Call DeCommitAppointment(parentnote)
  28465.                                                   'we need to do this here since this is not handled in QuerySave          
  28466.                                                   If note.HasItem("OrgRepeat") Then
  28467.                                                        Action = "Cancel"
  28468.                                                        Call RepeatSave
  28469.                                                   End If
  28470.                                              End If
  28471.                                         End If
  28472.                                    End If
  28473.                               End If  
  28474.                          End If
  28475.                     End Select
  28476.                End If        
  28477.           End If
  28478.           Call session.UpdateProcessedDoc(note)
  28479.           Set note = autodocs.GetNextDocument(note)     
  28480.      Wend
  28481. End Sub
  28482. '++LotusScript Development Environment:2:1:CanAutoProcess:1:8
  28483. Function CanAutoProcess As Integer
  28484.      Dim namAllowed As NotesName
  28485.      Dim namPrincipal As NotesName
  28486.      
  28487. 'returns true if the given invitation can be autoprocessed or false if it can't
  28488.      CanAutoProcess = False
  28489. 'if there are no items in the fromlist, then we can process this
  28490.      If (FromList(0) = "") Or (FromList(0) = "*") Then
  28491.           CanAutoProcess = True
  28492.           Exit Function
  28493.      End If
  28494.      
  28495.      Set namPrincipal = New NotesName(note.Principal(0))
  28496.      
  28497.      Forall f In FromList
  28498.           Set namAllowed = New NotesName(f)
  28499.           
  28500.           If Lcase(namPrincipal.Canonical) = Lcase(namAllowed.Canonical) Then
  28501.                CanAutoProcess = True
  28502.                Exit Forall
  28503.           End If
  28504.           
  28505.           If Lcase(namPrincipal.Common) = Lcase(namAllowed.Common) Then
  28506.                CanAutoProcess = True
  28507.                Exit Forall
  28508.           End If
  28509.      End Forall
  28510. End Function
  28511. O=Lotus Notes
  28512. O=Lotus Notes
  28513. PURSAFO
  28514. |.:#U
  28515. O=Lotus Notes
  28516. CN=Lotus Notes Template Development/O=Lotus Notes
  28517. PURSAFO
  28518. Fde!f^^
  28519. $TITLE
  28520. $AssistType
  28521. $AssistLastRun
  28522. $AssistDocCount
  28523. $AssistFlags
  28524. $AssistTrigger
  28525. $AssistInfo
  28526. $AssistQuery
  28527. $AssistAction
  28528. $AssistAction_Ex
  28529. Delegation Profile
  28530. &Arial
  28531. '++LotusScript Development Environment:2:5:(Options):0:74
  28532. Option Public
  28533. '++LotusScript Development Environment:2:5:(Forward):0:1
  28534. Declare Sub GetAclEntries
  28535. '++LotusScript Development Environment:2:5:(Declarations):0:10
  28536. Dim acl As NotesACL
  28537. Dim aclentry As NotesAclEntry
  28538. Dim nextaclentry As NotesAclEntry
  28539. Dim note As NotesDocument
  28540. Dim db As NotesDatabase
  28541. Dim nam As NotesName
  28542. Dim session As NotesSession
  28543. Dim ReadCal() As Variant
  28544. Dim WriteCal() As Variant
  28545. Dim ReadMail() As Variant
  28546. Dim WriteMail() As Variant
  28547. Dim EditMail() As Variant
  28548. Dim DeleteMail() As Variant
  28549. Dim OtherUsers() As Variant
  28550. Dim DoNotEdit As Integer
  28551. '++LotusScript Development Environment:2:2:GetAclEntries:1:8
  28552. Sub GetAclEntries
  28553.      
  28554.      note.ReadCalendar = ""
  28555.      note.WriteCalendar = ""
  28556.      note.ReadMail = ""
  28557.      note.WriteMail = ""
  28558.      note.EditMail = ""
  28559.      note.DeleteMail = ""
  28560.      
  28561.      Redim ReadCal(0)
  28562.      Redim WriteCal(0)
  28563.      Redim ReadMail(0)
  28564.      Redim WriteMail(0)
  28565.      Redim EditMail(0)
  28566.      Redim DeleteMail(0)
  28567.      Redim OtherUsers(0)
  28568.      
  28569.      Set aclentry = acl.GetFirstEntry
  28570.      Do Until aclentry Is Nothing
  28571.           Select Case aclentry.Level
  28572.           Case ACLLEVEL_NOACCESS
  28573.                If aclentry.Name = "-Default-" Then
  28574.                     If aclentry.IsPublicReader Then
  28575.                          note.PublicRead = "1"
  28576.                     Else
  28577.                          note.PublicRead = ""
  28578.                     End If
  28579.                     If aclentry.IsPublicWriter Then
  28580.                          note.PublicWrite = "1"
  28581.                     Else
  28582.                          note.PublicWrite = ""
  28583.                     End If
  28584.                Else
  28585.                     If aclentry.IsPublicReader Or aclentry.IsPublicWriter Then
  28586.                          If aclentry.IsPublicReader Then
  28587.                               x = Ubound(ReadCal)
  28588.                               ReadCal(x) = aclentry.Name
  28589.                               Redim Preserve ReadCal(x + 1)
  28590.                          End If
  28591.                          Gosub CheckPublicWriter
  28592.                     Else
  28593. 'These are other NoAccess people and we don't want to change them
  28594.                          x = Ubound(OtherUsers)
  28595.                          OtherUsers(x) = aclentry.Name
  28596.                          Redim Preserve OtherUsers(x + 1)
  28597.                     End If
  28598.                End If
  28599.           Case ACLLEVEL_READER
  28600.                x = Ubound(ReadMail)
  28601.                ReadMail(x) = aclentry.Name
  28602.                Redim Preserve ReadMail(x + 1)
  28603.                Gosub CheckPublicWriter
  28604.           Case ACLLEVEL_AUTHOR
  28605.                If aclentry.CanCreateDocuments Then
  28606.                     x = Ubound(WriteMail)
  28607.                     WriteMail(x) = aclentry.Name
  28608.                     Redim Preserve WriteMail(x + 1)
  28609.                End If
  28610.                If aclentry.CanDeleteDocuments Then
  28611.                     x = Ubound(DeleteMail)
  28612.                     DeleteMail(x) = aclentry.Name
  28613.                     Redim Preserve DeleteMail(x + 1)
  28614.                End If
  28615.                Gosub CheckPublicWriter
  28616.           Case ACLLEVEL_EDITOR
  28617.                x = Ubound(EditMail)
  28618.                EditMail(x) = aclentry.Name
  28619.                Redim Preserve EditMail(x + 1)
  28620.                If aclentry.CanDeleteDocuments Then
  28621.                     x = Ubound(DeleteMail)
  28622.                     DeleteMail(x) = aclentry.Name
  28623.                     Redim Preserve DeleteMail(x + 1)
  28624.                End If
  28625.                Gosub CheckPublicWriter
  28626.           Case Else
  28627. 'These are Manager and Designers and we don't want to change them
  28628.                x = Ubound(OtherUsers)
  28629.                OtherUsers(x) = aclentry.Name
  28630.                Redim Preserve OtherUsers(x + 1)
  28631.           End Select
  28632.           Set aclentry = acl.GetNextEntry(aclentry)
  28633.      Loop
  28634.      
  28635.      note.ReadCalendar = ReadCal
  28636.      note.WriteCalendar = WriteCal
  28637.      note.ReadMail = ReadMail
  28638.      note.WriteMail = WriteMail
  28639.      note.EditMail = EditMail
  28640.      note.DeleteMail = DeleteMail
  28641.      
  28642.      Exit Sub
  28643.      
  28644. CheckPublicWriter:
  28645.      If aclentry.IsPublicWriter Then
  28646.           x = Ubound(WriteCal)
  28647.           WriteCal(x) = aclentry.Name
  28648.           Redim Preserve WriteCal(x + 1)
  28649.      End If
  28650.      Return
  28651.      
  28652. End Sub
  28653.  DelegationProfile'++LotusScript Development Environment:2:5:(Options):0:66
  28654. '++LotusScript Development Environment:2:5:(Forward):0:1
  28655. Declare Sub Postopen(Source As Notesuidocument)
  28656. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  28657. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  28658. '++LotusScript Development Environment:2:5:(Declarations):0:2
  28659. '++LotusScript Development Environment:2:2:BindEvents:1:129
  28660. Private Sub BindEvents(Byval Objectname_ As String)
  28661.      Static Source As NOTESUIDOCUMENT
  28662.      Set Source = Bind(Objectname_)
  28663.      On Event Postopen From Source Call Postopen
  28664.      On Event Querysave From Source Call Querysave
  28665.      On Event Querymodechange From Source Call Querymodechange
  28666. End Sub
  28667. '++LotusScript Development Environment:2:2:Postopen:1:12
  28668. Sub Postopen(Source As Notesuidocument)
  28669.      
  28670.      Set session = New NotesSession
  28671.      Set note = source.document
  28672.      Set db = note.ParentDatabase
  28673.      Set acl = db.ACL
  28674.      
  28675.      Set aclentry = acl.GetEntry(session.Username)
  28676.      If aclentry Is Nothing Then
  28677.           Set nam = New NotesName(session.Username)
  28678.           Set aclentry = acl.GetEntry(nam.Common)
  28679.      End If
  28680.      
  28681.      If aclentry Is Nothing Then
  28682.           source.EditMode = False
  28683.      Elseif aclentry.level < ACLLEVEL_MANAGER Then
  28684. 'You need to be a manager to edit the ACL
  28685.           DoNotEdit = True
  28686.           source.EditMode = False
  28687.      End If     
  28688.      
  28689. 'setting reload = false because these updates were already done in the preceeding agent
  28690. '(we needed to populate the fields before loading the profile in case we had to use read mode)     
  28691.      source.AutoReload = False
  28692. 'executing GetAclEntries in order to initialize the arrays     
  28693.      GetAclEntries
  28694.      
  28695.      source.RefreshHideFormulas
  28696.      
  28697. End Sub
  28698. '++LotusScript Development Environment:2:2:Querysave:1:12
  28699. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  28700.      
  28701.      On Error Goto ErrorRoutine
  28702.      
  28703. 'We are replacing existing ACL with the new values entered here (with the exception of OtherUsers)     
  28704.      
  28705.      NewReadCal = note.ReadCalendar
  28706.      NewWriteCal = note.WriteCalendar
  28707.      NewReadMail = note.ReadMail
  28708.      NewWriteMail = note.WriteMail
  28709.      NewEditMail = note.EditMail
  28710.      NewDeleteMail = note.DeleteMail
  28711.      ListSize = Ubound(OtherUsers)
  28712.      
  28713. 'For each list, see if they are already in the acl.
  28714. 'If they are then change them - otherwise add them     
  28715.      
  28716.      If note.PublicRead(0) = "1" Then
  28717.           note.ReadCal = ""
  28718.           NewReadCal = note.ReadCal
  28719.           EntryName = "-Default-"
  28720.           AccessLevel = ACLLEVEL_NOACCESS
  28721.           Gosub PostNewAccess              
  28722.           aclentry.IsPublicReader = True     
  28723.           aclentry.IsPublicWriter = False
  28724.      Else
  28725.           EntryName = "-Default-"
  28726.           AccessLevel = ACLLEVEL_NOACCESS
  28727.           Gosub PostNewAccess              
  28728.           aclentry.IsPublicReader = False
  28729.           aclentry.IsPublicWriter = False
  28730.      End If
  28731.      
  28732.      If note.PublicWrite(0) = "1" Then
  28733.           note.WriteCal = ""
  28734.           NewWriteCal = note.WriteCal
  28735.           EntryName = "-Default-"
  28736.           AccessLevel = ACLLEVEL_NOACCESS
  28737.           Gosub PostNewAccess              
  28738.           aclentry.IsPublicWriter = True     
  28739. 'If you can manage the calendar, you need to be able to read it as well
  28740.           aclentry.IsPublicReader = True     
  28741.      Else
  28742.           EntryName = "-Default-"
  28743.           AccessLevel = ACLLEVEL_NOACCESS
  28744.           Gosub PostNewAccess              
  28745.           aclentry.IsPublicWriter = False
  28746.      End If
  28747.      
  28748.      Forall x In NewReadCal
  28749.           If x <> "" Then
  28750.                EntryName = x
  28751.                AccessLevel = ACLLEVEL_NOACCESS
  28752.                Gosub PostNewAccess              
  28753.                If aclentry.Level = ACLLEVEL_NOACCESS Then
  28754.                     aclentry.IsPublicReader = True
  28755.                     aclentry.IsPublicWriter = False
  28756.                End If
  28757.           End If
  28758.      End Forall
  28759.      
  28760.      Forall x In NewWriteCal
  28761.           If x <> "" Then
  28762.                EntryName = x
  28763.                AccessLevel = ACLLEVEL_NOACCESS
  28764.                Gosub PostNewAccess              
  28765.                If aclentry.Level = ACLLEVEL_NOACCESS Then
  28766.                     aclentry.IsPublicWriter = True
  28767. 'If you can manage the calendar, you need to be able to read it as well
  28768.                     aclentry.IsPublicReader = True     
  28769.                End If
  28770.           End If
  28771.      End Forall
  28772.      
  28773.      Forall x In NewReadMail
  28774.           If x <> "" Then          
  28775.                EntryName = x
  28776.                AccessLevel = ACLLEVEL_READER
  28777.                Gosub PostNewAccess
  28778.                If aclentry.Level = ACLLEVEL_READER Then
  28779.                     Gosub CheckPublicWrite
  28780.                End If
  28781.           End If          
  28782.      End Forall
  28783.      
  28784.      Forall x In NewWriteMail
  28785.           If x <> "" Then          
  28786.                EntryName = x
  28787.                AccessLevel = ACLLEVEL_AUTHOR
  28788.                Gosub PostNewAccess              
  28789.                If aclentry.Level = ACLLEVEL_AUTHOR Then
  28790.                     aclentry.CanCreateDocuments = True               
  28791.                     aclentry.CanDeleteDocuments = False
  28792.                     Gosub CheckPublicWrite
  28793.                End If
  28794.           End If          
  28795.      End Forall
  28796.      
  28797.      Forall x In NewEditMail
  28798.           If x <> "" Then          
  28799.                EntryName = x
  28800.                AccessLevel = ACLLEVEL_EDITOR
  28801.                Gosub PostNewAccess              
  28802.                If aclentry.Level = ACLLEVEL_EDITOR Then
  28803.                     aclentry.CanDeleteDocuments = False
  28804.                End If
  28805.           End If          
  28806.      End Forall
  28807.      
  28808. 'now remove entries which have not been accounted for
  28809.      Set aclentry = acl.GetFirstEntry
  28810.      If OtherUsers(ListSize) = "" Then Redim Preserve OtherUsers(ListSize - 1)
  28811.      Do Until aclentry Is Nothing
  28812.           Set nextaclentry = acl.GetNextEntry(aclentry)
  28813.           NotFound = True
  28814.           Forall x In OtherUsers
  28815.                If x = aclentry.Name Then NotFound = False
  28816.           End Forall
  28817.           If NotFound Then aclentry.Remove
  28818.           Set aclentry = nextaclentry
  28819.      Loop
  28820.      
  28821.      ListSize = Ubound(OtherUsers) + 1
  28822.      Redim Preserve OtherUsers(ListSize)                    
  28823.      
  28824.      Forall x In NewDeleteMail
  28825.           If x <> "" Then          
  28826.                Set aclentry = acl.GetEntry(x)
  28827.                Set nam = New NotesName(x)
  28828.                If aclentry Is Nothing Then
  28829.                     Messagebox "You must add " & nam.Common & _
  28830.                     " to either the ""Read and send"" or the ""Read, send, and edit"" list before adding them to the ""Delete"" list.", 0, "Error"
  28831.                     continue = False
  28832.                     Exit Sub
  28833.                Elseif aclentry.Level < ACLLEVEL_AUTHOR Then
  28834.                     Messagebox "You must add " & nam.Common & _
  28835.                     " to either the ""Read and send"" or the ""Read, send, and edit"" list before adding them to the ""Delete"" list.", 0, "Error"
  28836.                     continue = False
  28837.                     Exit Sub
  28838.                Elseif aclentry.Level > ACLLEVEL_EDITOR Then
  28839.                     EntryName = nam.Common
  28840.                     Gosub CannotChange
  28841.                     Messagebox nam.Common & " is currently a " & CurrentLevel & " of this database.  " &_
  28842.                     "Managers and Designers cannot be modified using the Delegation Profile.", 0, "Cannot Change " & CurrentLevel
  28843.                End If
  28844.                If aclentry.Level < ACLLEVEL_DESIGNER Then
  28845.                     aclentry.CanDeleteDocuments = True               
  28846.                     OtherUsers(ListSize) = x     
  28847.                     ListSize = ListSize + 1
  28848.                     Redim Preserve OtherUsers(ListSize)
  28849.                End If
  28850.           End If          
  28851.      End Forall
  28852.      
  28853. '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
  28854.      'acl.save
  28855.      'Delete acl
  28856.      'Set acl= db.ACL
  28857.      
  28858.      
  28859.      
  28860.      acl.save
  28861.      
  28862.      GetAclEntries
  28863.      
  28864.      source.Reload
  28865.      source.RefreshHideFormulas
  28866.      
  28867.      Exit Sub
  28868.      
  28869. PostNewAccess:
  28870.      Set aclentry = acl.GetEntry(EntryName)
  28871.      If aclentry Is Nothing Then
  28872.           Set aclentry = New NotesAclEntry(acl, EntryName, AccessLevel)
  28873.      Else
  28874. 'we don't want to downgrade designers and managers, but we may want to downgrade editors or authors          
  28875.           If aclentry.Level < ACLLEVEL_DESIGNER Then
  28876.                aclentry.Level = AccessLevel
  28877.           Else
  28878.                Gosub CannotChange
  28879.                Messagebox nam.Common & " is currently a " & CurrentLevel & " of this database and can already " &_
  28880.                NewLevel & ".  Managers and Designers cannot be modified using the Delegation Profile.", 0, "Cannot Change " & CurrentLevel
  28881.           End If
  28882.      End If
  28883.      OtherUsers(ListSize) = EntryName     
  28884.      ListSize = ListSize + 1
  28885.      Redim Preserve OtherUsers(ListSize)
  28886.      
  28887.      Return
  28888.      
  28889. CannotChange:
  28890.      Set nam = New NotesName(EntryName)
  28891.      If aclentry.Level = ACLLEVEL_DESIGNER Then
  28892.           CurrentLevel = "Designer"
  28893.      Else
  28894.           CurrentLevel = "Manager"
  28895.      End If
  28896.      Select Case AccessLevel
  28897.      Case ACLLEVEL_READER
  28898.           NewLevel = "read mail"
  28899.      Case ACLLEVEL_AUTHOR
  28900.           NewLevel = "send mail"
  28901.      Case ACLLEVEL_EDITOR
  28902.           NewLevel = "edit documents"
  28903.      Case Else
  28904.           NewLevel = "manage the calendar"
  28905.      End Select
  28906.      
  28907.      Return
  28908.      
  28909. CheckPublicWrite:
  28910. 'If a reader or author is found in the NewWriteCal list then turn on public access write, else turn it off     
  28911.      NameFound = False
  28912.      Forall y In NewWriteCal
  28913.           If y = EntryName Then
  28914.                NameFound = True
  28915.                Exit Forall
  28916.           End If
  28917.      End Forall
  28918.      If NameFound Then
  28919.           aclentry.IsPublicWriter = True     
  28920.      Else
  28921.           aclentry.IsPublicWriter = False
  28922.      End If
  28923.      Return
  28924.      
  28925. ErrorRoutine:
  28926.      Messagebox Error & " (Save Delegation)"
  28927.      Exit Sub
  28928.      
  28929. End Sub
  28930. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  28931. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  28932.      If DoNotEdit And source.EditMode = False Then continue = False
  28933. End Sub
  28934. .WK1;*.WR1;*
  28935. TIFF 5.0 Imag
  28936. =    o0ah
  28937. e    G0e    
  28938. Delegation Profile
  28939. CalendarProfile
  28940. Owner
  28941.     4S6S7S
  28942. Owner of Mail File:
  28943. Owner
  28944. CalendarProfile
  28945. Owner
  28946.     1S2S6S
  28947. Owner
  28948. Owner
  28949.     0R3S4S6S8S
  28950. Owner
  28951. CalendarProfile
  28952. Owner
  28953.     4S6S7S
  28954. Owner of Mail File:
  28955. Owner
  28956. CalendarProfile
  28957. Owner
  28958.     1S2S6S
  28959. Owner
  28960. Owner
  28961.     0R3S4S6S8S
  28962. Owner_1
  28963.     Calendar Access
  28964. PublicRead
  28965. Everyone can read my Calendar|1
  28966. PublicRead
  28967.     1S2S
  28968.     Only the following people/groups can read my Calendar: 
  28969. ReadCalendar
  28970. PublicWrite
  28971. Everyone can manage my Calendar|1
  28972. PublicWrite
  28973.     1S2S
  28974.     Only the following people/groups can manage my Calendar: 
  28975. WriteCalendar
  28976.     Email Access
  28977.      (anyone with Email Access can also read Calendar entries)
  28978.     The following people/groups can
  28979.     1. Read my mail: 
  28980. ReadMail
  28981.     2. Read and send mail on my behalf: 
  28982. WriteMail
  28983.     3. Read, send, and edit any document in my mail file: 
  28984. EditMail
  28985.     4. Delete mail (allowed for those who can send or edit mail): 
  28986. DeleteMail
  28987. $NoPurge
  28988. $NoPurge
  28989. _Edit Document
  28990. _Forward
  28991.     0S0E
  28992. CancelF
  28993. SaveOptions
  28994.     1S2S3S
  28995. _Move To Folder...
  28996. _Remove From Folder
  28997. Categori_ze
  28998. Send Docu_ment
  28999. O=Lotus Notes
  29000. O=Lotus Notes
  29001. PURSAFO
  29002. |.:#U
  29003. O=Lotus Notes
  29004. CN=Lotus Notes Template Development/O=Lotus Notes
  29005. PURSAFO
  29006. Fde!f^^
  29007. $FormPublicAccess
  29008. $TITLE
  29009. $INFO
  29010. $WINDOWTITLE
  29011. $Script
  29012. $$Script_O
  29013. $$ScriptName
  29014. $$FormScript
  29015. $$$FormScript_O
  29016. $NoPurge
  29017. $BODY
  29018. $ACTIONS
  29019. $PublicAccess
  29020. TaskTaskDw
  29021. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##########################
  29022. (Calendar Profile)CalendarProfile1
  29023. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=Irisw    
  29024. ##########################################################
  29025. (Notice)Noticew1
  29026. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes###################################################
  29027. _Calendar EntryAppointmentw1
  29028. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  29029. ##########################################################
  29030. (Copy into\New Group) | NewGroup
  29031. E4fL3
  29032. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#######################################
  29033. ReplyReplyw
  29034. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#################################
  29035. ##########################################################
  29036. ##########################################################
  29037. ##########################################################
  29038. ##########################################################
  29039. ##########################################################
  29040. VersionOpt|
  29041.     6S7S9S14S
  29042. $VersionOpt
  29043.     0R1S2S3S
  29044. SavedOnce
  29045.     0R1S2S3S
  29046. PostedDate(
  29047.     0R1S2S3S
  29048. DeliveredDate
  29049.     0R1S2S3S
  29050. $AutoEditMode
  29051.     0R1S2S3S
  29052. MailSaveOptions
  29053.     0R1S2S3S
  29054. VersionOpt
  29055.     0R4S
  29056. New Task
  29057. Subject
  29058. Subject
  29059. Subject
  29060.     4S6S12S13S14S15S17S21S23S25S26S28S
  29061. "Small Fonts
  29062. '++LotusScript Development Environment:2:5:(Options):0:74
  29063. Option Public
  29064. Use "EmailProcessing"
  29065. Use "DocumentConversions"
  29066. '++LotusScript Development Environment:2:5:(Forward):0:1
  29067. Declare Sub CheckDueDate
  29068. Declare Sub CheckStartDate
  29069. Declare Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  29070. '++LotusScript Development Environment:2:5:(Declarations):0:10
  29071. Dim maildoc As NotesDocument
  29072. Dim rtitem As NotesRichTextItem
  29073. Dim dt As NotesDateTime
  29074. Dim dt2 As NotesDateTime
  29075. Dim Action As Variant
  29076. Dim DocWasSaved As Variant
  29077. Dim FinalSave As Variant
  29078. Dim CommentQuery As Variant
  29079. Dim StartDate As Variant
  29080. Dim DueDate As Variant
  29081. Dim Subject As Variant
  29082. Dim NewSubject As String
  29083. Dim ComposeReply As Variant
  29084. Dim ConvertedTask As Variant
  29085. '++LotusScript Development Environment:2:2:CheckDueDate:1:8
  29086. Sub CheckDueDate
  29087.      
  29088. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  29089.      Set dt2 = New NotesDateTime(DueDate(0))
  29090.      If dt.TimeDifference(dt2) > 0 Then 
  29091.           note.DueState = 0
  29092.      Else
  29093.           note.DueState = 1
  29094.      End If
  29095.      
  29096. End Sub
  29097. '++LotusScript Development Environment:2:2:CheckStartDate:1:8
  29098. Sub CheckStartDate
  29099.      
  29100. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future               
  29101.      Set dt2 = New NotesDateTime(StartDate(0))
  29102.      If dt.TimeDifference(dt2) < 0 Then 
  29103.           note.DueState = 2
  29104.      Else
  29105.           note.DueState = 1
  29106.      End If
  29107.      
  29108. End Sub
  29109. '++LotusScript Development Environment:2:1:SendNotification:1:8
  29110. Function SendNotification(ReplyType, MessageText, NewState, ViewIcon) As Variant
  29111.      
  29112.      SendNotification = True
  29113.      
  29114.      FromCommonName = Evaluate("@Name([CN]; Principal)", note)
  29115.      If FromCommonName(0) = "" Then FromCommonName = Evaluate("@Name([CN]; From)", note)
  29116.      
  29117.      CommentQuery = Messagebox("A " & ReplyType & " notice will be sent to " & FromCommonName(0) &_
  29118.      ".  Do you wish to send additional comments?", MB_YESNOCANCEL, "Task " & Action)
  29119.      Select Case CommentQuery
  29120.      Case IDYES
  29121.           Call session.SetEnvironmentVar("MailStEd", Cstr(NewSubject))
  29122.           ComposeReply = True
  29123.      Case IDNO
  29124.           Set maildoc = New NotesDocument(db)
  29125.           Set rtitem = New NotesRichTextItem(maildoc, "Body")
  29126.           If note.HasItem("Principal") Then
  29127.                maildoc.SendTo = note.Principal(0) & " @ " & note.FromDomain(0)
  29128.           Else
  29129.                maildoc.SendTo = note.From(0) & " @ " & note.FromDomain(0)
  29130.           End If
  29131.           maildoc.Subject = NewSubject
  29132.           rtitem.AppendText(MessageText & Subject & ".  ")
  29133.           maildoc.Form = "Reply"
  29134.           maildoc.Principal = Owner
  29135.           maildoc.AssignState = NewState
  29136.           maildoc.DueState = NewState
  29137.           Call maildoc.AppendItemValue("_ViewIcon", ViewIcon)
  29138.           Call maildoc.Save (True, True, True)
  29139.           Call maildoc.MakeResponse(note)
  29140.           On Error Goto SendError
  29141.           Call maildoc.Send (False)
  29142.           Call maildoc.Save (True, True, True)
  29143.           ws.ViewRefresh
  29144.      Case IDCANCEL
  29145.           note.SaveOptions = "0"
  29146.           note.MailOptions = "0"
  29147.           CommentQuery = "Cancel"
  29148.           SendNotification = False
  29149.           Exit Function
  29150.      End Select
  29151.      
  29152.      note.SaveOptions = "1"          
  29153.      note.AssignState = NewState
  29154.      note.DueState = NewState
  29155.      Call note.ReplaceItemValue("_ViewIcon", ViewIcon)
  29156.      
  29157.      Exit Function
  29158.      
  29159. SendError:
  29160.      Messagebox ReplyType & " reply document could not be sent to " & FromCommonName(0) & " at this time.  Please retry", MB_OK, "Task Completion"
  29161.      SendNotification = False
  29162.      maildoc.Remove(True)
  29163.      Exit Function
  29164.      
  29165. End Function
  29166.  Task'++LotusScript Development Environment:2:5:(Options):0:66
  29167. '++LotusScript Development Environment:2:5:(Forward):0:1
  29168. Declare Sub Postopen(Source As Notesuidocument)
  29169. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  29170. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  29171. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  29172. Declare Sub Postrecalc(Source As Notesuidocument)
  29173. '++LotusScript Development Environment:2:5:(Declarations):0:2
  29174. '++LotusScript Development Environment:2:2:BindEvents:1:129
  29175. Private Sub BindEvents(Byval Objectname_ As String)
  29176.      Static Source As NOTESUIDOCUMENT
  29177.      Set Source = Bind(Objectname_)
  29178.      On Event Postopen From Source Call Postopen
  29179.      On Event Querysave From Source Call Querysave
  29180.      On Event Queryclose From Source Call Queryclose
  29181.      On Event Querymodechange From Source Call Querymodechange
  29182.      On Event Postrecalc From Source Call Postrecalc
  29183. End Sub
  29184. '++LotusScript Development Environment:2:2:Postopen:1:12
  29185. Sub Postopen(Source As Notesuidocument)
  29186.      
  29187.      If source.InPreviewPane Then Exit Sub
  29188.      
  29189.      DocWasSaved = False
  29190.      FinalSave = False
  29191.      
  29192.      Set ws = New NotesUIWorkSpace
  29193.      Set uidoc = source
  29194.      
  29195.      If note Is Nothing Then Call InstantiateObjectVariables
  29196.      
  29197.      If source.IsNewDoc Then
  29198.           Call note.ReplaceItemValue("_ViewIcon", 168)
  29199.           note.AssignState = 0
  29200.           note.ExcludeFromView = "D"
  29201.           note.OrgTable = "T0"
  29202.      Else
  29203.           FormName = note.Form
  29204.           If FormName(0) = "Task" Then
  29205.                EditType = session.GetEnvironmentValue("MailStEd")
  29206. 'EditType 5 = EditNewCopy               
  29207.                If EditType = "5" Then 
  29208.                     Call note.ReplaceItemValue("$VersionOpt", "6")
  29209.                     note.tmpAction = "ConvertNewDoc"
  29210.                     Call session.SetEnvironmentVar("MailStEd", "0")
  29211.                     source.reload
  29212.                     source.save
  29213.                End If
  29214.           End If
  29215.      End If
  29216.      
  29217.      note.RemoveItem("MailOptions")
  29218.      note.RemoveItem("SaveOptions")
  29219.      
  29220.      If note.tmpAction(0) = "Converting" Then ConvertedTask = True
  29221.      
  29222. 'default DueState to 1 (current)     
  29223.      If Not(note.HasItem("DueState")) Then note.DueState = 1
  29224.      
  29225.      If source.EditMode Then
  29226.           If Not(note.HasItem("SecureMail")) Then CheckSecureMail
  29227.           source.Reload
  29228.           source.RefreshHideFormulas 
  29229.      End If
  29230.      
  29231. End Sub
  29232. '++LotusScript Development Environment:2:2:Querysave:1:12
  29233. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  29234.      
  29235.      If Source.InPreviewPane Then Exit Sub
  29236.      Dim sendToList As Variant
  29237.      Dim cnName As Variant
  29238.      Dim foundName As Integer
  29239.      
  29240.      If FinalSave Then Exit Sub
  29241.      
  29242.      On Error 4412 Resume Next
  29243.      source.Refresh
  29244. '4412 = field did not pass validation     
  29245.      If Err = 4412 Then
  29246.           Err = 0
  29247.           continue = False
  29248.           Exit Sub
  29249.      End If
  29250.      
  29251.      Set dt = New NotesDateTime("")
  29252.      dt.SetNow         
  29253.      
  29254.      Action = note.tmpAction(0)
  29255.      Select Case Action
  29256.      Case "Complete"
  29257. 'AssignState = 0 if assigned to self, 1 if assigned to others but not sent, 2 if assigned and sent, and 9 if complete.                    
  29258.           If note.HasItem("Principal") Then
  29259.                FromName = note.Principal(0)
  29260.           Else
  29261.                FromName = note.From(0)
  29262.           End If          
  29263.           oldAssignState = note.AssignState(0)
  29264.           Subject = note.Subject(0)
  29265.           NewSubject = "Task:  " & Subject & " is complete as of " & dt.LSLocalTime
  29266.           Select Case oldAssignState
  29267.           Case 0, 1 '0=assigned to yourself.  1=assigned to someone else but not sent
  29268.                Gosub CompleteThisTask
  29269.           Case 8, 9 '9=complete
  29270.                Messagebox Subject & " is already closed.", 0, "Task Completion"
  29271.           Case Else ' make sure current user is in the assignTo list
  29272.                sendToList = note.SendTo
  29273.                cnName = Evaluate("@Name([CN]; @Username )")
  29274.                foundName = False
  29275.                Forall a In sendToList
  29276.                     If Instr(Lcase(a), Lcase(cnName(0))) > 0 Then
  29277.                          foundName = True
  29278.                          Exit Forall
  29279.                     End If
  29280.                End Forall
  29281.                
  29282.                If Not foundName Then
  29283.                     Messagebox "The task '" & Subject & "' is not assigned to you. You cannot complete a task that is assigned to someone else.", 0, "Task Completion"
  29284.                Else
  29285.                     If SendNotification("completion", "I have completed task: ", 9, 82) = False Then
  29286.                          source.Reload
  29287.                          continue = False
  29288.                          Exit Sub
  29289.                     Else
  29290.                          Gosub CompleteThisTask
  29291.                     End If
  29292.                End If
  29293.           End Select
  29294.           CloseDoc = True
  29295.      Case "Reassign"
  29296.           Subject = note.Subject(0)
  29297.           NewSubject = "Please reassign Task:  " & Subject
  29298.           If SendNotification("reassignment", "Please reassign this task: ", 8, 81) = False Then
  29299.                source.Reload
  29300.                continue = False
  29301.                Exit Sub
  29302.           End If
  29303.           CloseDoc = True
  29304.      Case "Reply"
  29305.           ComposeReply = True
  29306.           CloseDoc = True
  29307.      Case "ConvertNewDoc"
  29308.           note.From = Owner
  29309.           note.AssignState = 1
  29310.           note.MailOptions = "0"
  29311.           note.SaveOptions = "1"
  29312.      Case Else
  29313.           If Action = "Send" Then
  29314.                note.SaveOptions = "1"
  29315.                note.MailOptions = "0"
  29316.           End If
  29317. 'DueState causes the view to sort correctly:  0=Overdue, 1=Current, 2=Future, 8=Rejected, 9=Complete
  29318. 'If it is complete we do not want to change it's DueState          
  29319.           If note.DueState(0) <> 9 Then
  29320.                DueDate = note.DueDateTime
  29321.                StartDate = note.StartDateTime
  29322.                If StartDate(0) = "" Then
  29323.                     If DueDate(0) = "" Then
  29324.                          note.DueState = 1
  29325.                     Else
  29326.                          CheckDueDate
  29327.                     End If
  29328.                Else
  29329.                     CheckStartDate
  29330.                     DueState = note.DueState
  29331.                     If DueDate(0) <> "" And DueState(0) <> 2 Then CheckDueDate
  29332.                End If
  29333.           End If
  29334.      End Select
  29335.      
  29336.      AssignState = note.AssignState
  29337.      SendTo = note.SendTo
  29338.      If AssignState(0) = 1 And SendTo(0) = "" Then note.AssignState = 0
  29339.      
  29340.      DocWasSaved = True
  29341.      
  29342.      note.RemoveItem("tmpAction")
  29343.      note.RemoveItem("tmpSenderTag")
  29344.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  29345.      'If Not(note.HasItem("DocAuthors")) Then Set item = New NotesItem(note, "DocAuthors", note.From, AUTHORS)
  29346.      
  29347.      source.Reload
  29348.      
  29349.      If CloseDoc Then source.Close
  29350.      
  29351.      Exit Sub
  29352.      
  29353. CompleteThisTask:
  29354.      note.DueState = 9
  29355.      note.AssignState = 9
  29356.      note.CompletedDateTime = dt.LSLocalTime
  29357.      Call note.ReplaceItemValue("_ViewIcon", 82)
  29358.      note.SaveOptions = "1"
  29359.      Return
  29360.      
  29361. End Sub
  29362. '++LotusScript Development Environment:2:2:Queryclose:1:12
  29363. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  29364.      
  29365.      If source.InPreviewPane Then Exit Sub
  29366.      
  29367.      If CommentQuery = "Cancel" Then
  29368.           CommentQuery = ""         
  29369.           Continue = False
  29370.           Exit Sub
  29371.      End If
  29372.      
  29373.      If DocWasSaved = False And source.EditMode Then 
  29374. 'this forces a save prompt for converted tasks         
  29375.           If ConvertedTask And ContinueSave = "" Then
  29376.                Call SaveDialog("Task")
  29377.                Select Case ContinueSave
  29378.                Case IDYES
  29379.                     source.Save
  29380.                Case IDCANCEL
  29381.                     Continue = False
  29382.                     Exit Sub
  29383.                Case Else
  29384.                     Exit Sub
  29385.                End Select
  29386.           Else
  29387.                Exit Sub
  29388.           End If
  29389.      End If
  29390.      
  29391.      If ConvertedTask Then
  29392.           note.RemoveFromFolder("($Inbox)")
  29393.           ws.ViewRefresh
  29394.      End If
  29395.      
  29396.      AssignState = note.AssignState
  29397.      If AssignState(0) = 1 Then
  29398.           SendPrompt = Messagebox("Do you wish to send this Task to the Assignee?", _
  29399.           MB_YESNOCANCEL, "Close Task") 
  29400.           Select Case SendPrompt
  29401.           Case IDCANCEL
  29402.                Continue = False
  29403.                Exit Sub
  29404.           Case IDNO
  29405.                Exit Sub
  29406.           Case IDYES
  29407.                note.AssignState = 2
  29408.                source.Reload
  29409. 'front end send will put up the ambiguious names dialog if necessary               
  29410.                On Error Resume Next
  29411.                source.Send
  29412.                If Err > 0 Then
  29413.                     Err = 0
  29414.                     note.AssignState = 1
  29415.                     continue = False
  29416.                     Exit Sub
  29417.                End If
  29418.                note.SaveOptions = "1"
  29419.                note.AssignedTo = note.SendTo
  29420.                source.Reload
  29421.                source.Save
  29422.                FinalSave = True
  29423.           End Select
  29424.      End If
  29425.      
  29426.      If ComposeReply Then Call ws.ComposeDocument("", "", "Reply") 
  29427.      
  29428. End Sub
  29429. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  29430. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  29431.      
  29432.      If (source.InPreviewPane) Then 
  29433.           continue = False
  29434.           Exit Sub
  29435.      End If          
  29436.      If note Is Nothing Then Call InstantiateObjectVariables
  29437.      note.RemoveItem("MailOptions")
  29438.      note.RemoveItem("SaveOptions")
  29439.      
  29440. End Sub
  29441. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  29442. Sub Postrecalc(Source As Notesuidocument)
  29443.      If (source.InPreviewPane) Then Exit Sub
  29444. 'Make sure DueDate > StartDate
  29445.      
  29446.      If note.StartDateTime(0) = "" Or note.DueDateTime(0) = "" Then Exit Sub
  29447.      
  29448.      Set dt = New NotesDateTime(note.StartDateTime(0))
  29449.      Set dt2 = New NotesDateTime(note.DueDateTime(0))
  29450.      
  29451.      If dt.TimeDifference(dt2) > 0 Then 
  29452.           Messagebox "Due Date must be greater than Start Date.", 0, "Validation Error"
  29453.           Err = 4412
  29454.           note.AssignState = 1
  29455.           source.RefreshHideFormulas
  29456.           source.GoToField("DueDateTime")
  29457.      End If
  29458.      
  29459. End Sub
  29460.     Always Hidden: 
  29461. Principal
  29462. CalendarProfile
  29463. Owner
  29464.     1S2S3S7S
  29465. FromPerson memo is from.
  29466.     0S0E
  29467.     0S0E
  29468. Encrypt
  29469.     0S0E
  29470. DefaultMailSaveOptions
  29471. $KeepPrivate
  29472. $KeepPrivate
  29473. $KeepPrivate
  29474.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  29475.     1S2S
  29476.     From:    
  29477. Principal
  29478. Principal
  29479. FromDomain
  29480. FromDomain
  29481. FromDomain
  29482. FromDomain
  29483.     7S10S15S16S18S22S25S29S32S33S37S39S42S43S45S47S48S49S55S58S62S65S71S
  29484. FromName
  29485. Principal
  29486. Principal
  29487.     0RR1S2S9S11S15S
  29488. FromStops
  29489.     0R1S2S6S
  29490. FromName
  29491. FromStops
  29492. FromStops
  29493. FromStops
  29494.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom
  29495.      on 
  29496. PostedDateh
  29497. PostedDate
  29498.     7S9S
  29499. tmpDisplayDateTime/date memo was created or mailed.
  29500. $HideMailHeader
  29501. Principal
  29502. Principal
  29503. Principal
  29504. Principal
  29505. Principal
  29506.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  29507.     Sent by:    
  29508. FromDomain
  29509. FromDomain
  29510. FromDomain
  29511. FromDomain
  29512.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  29513. FromName
  29514.     0RR1S2S6S
  29515. FromStops
  29516.     0R1S2S6S
  29517. FromName
  29518. FromStops
  29519. FromStops
  29520. FromStops
  29521.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  29522. ReplyTo
  29523.     1S2S
  29524.     Reply to:    
  29525. ReplyTo
  29526.     0S0E
  29527. tmpDisplayReplyTo
  29528.     Subject
  29529. Subject
  29530.     Priority:
  29531.     Due Date:
  29532.     Start Date:
  29533. Importance
  29534. None|99High (1)|1Medium (2)|2Low (3)|3
  29535. DueDateTime
  29536. Invalid Due Date.
  29537. DueDateTime
  29538. DueDateTime
  29539. Invalid Due Date.
  29540.     7S12S17S19S20S21S23S25SDueDateTime
  29541. StartDateTime
  29542. Invalid Start Date.
  29543. StartDateTime
  29544. StartDateTime
  29545. Invalid Start Date.
  29546.     7S12S17S19S20S21S23S25SStartDateTime
  29547. AssignState
  29548.     1S2S3S4S6S7S
  29549.     Assign to:    
  29550. AssignState
  29551. SendTo}
  29552.     3S4S6S8S
  29553. SendToList of people to assign to this task
  29554.     Assigned to:    
  29555. AssignState
  29556. Principal
  29557. Principal
  29558. AssignState
  29559. SendTo
  29560. AssignedTo
  29561.     3S4S6S9S10S12S14S17S18S19S20S21S23S25S
  29562. AssignedToList of primary people to invite to the meeting.
  29563. CopyToList of people to send a copy of the memo.
  29564.     Additional information:
  29565. Close
  29566. MailOptions
  29567.     1S2S3S
  29568. SaveOptions
  29569.     0R1S2S3S
  29570. Edit Task
  29571. Principal
  29572. AssignState
  29573.     3S4S5S6S8S9S10S11S
  29574. _Forward
  29575. _Move To Folder...
  29576. Delivery Information...Kz
  29577. DeliveryInfo
  29578. Delivery Information
  29579.     4S5S6S7S8S9S10S12S
  29580. DeliveredDate
  29581.     0S0E
  29582. Completed n
  29583. tmpAction
  29584. Complete
  29585.     0R1S2S3S
  29586. AssignState
  29587. AssignState
  29588. AssignState
  29589. Principal
  29590.     3S4R5S6S7S8R9S10S11S12R14S15S16S17S18S19S20S21S
  29591. Assign To Others...Kr
  29592. AssignState
  29593.     1S2S3S
  29594. SendTo
  29595.     0R4S
  29596. AssignState
  29597.     1S2S3S4S
  29598. Reassign...K
  29599. AssignState
  29600.     0R1S2S3S
  29601. SendTo
  29602.     0R4S
  29603. AssignState
  29604. DeliveredDate
  29605.     1S2S3S4S
  29606. Address... 
  29607.     0S0E
  29608. AssignState
  29609.     1S2S
  29610. Delete 
  29611.     0S0E
  29612. Principal
  29613.     3S4S5S6S
  29614. SendTo
  29615. Send Task
  29616. You must assign this task before sending it.
  29617.     3S4S6S12S14S18S
  29618. AssignState
  29619.     0RR1S2S3S
  29620. tmpAction
  29621.     0R1S2S3S
  29622.     0R7S9S
  29623. SaveOptions
  29624.     0RR1S2S3S
  29625. MailOptions
  29626.     0R1S2S3S
  29627.     0R7S9S
  29628. MailOptions
  29629.     0R1S2S3S
  29630. AssignState
  29631.     1S2S
  29632. Reply
  29633. tmpAction
  29634. Reply
  29635.     0R1S2S3S
  29636.     0RRZ
  29637. AssignState
  29638. Principal
  29639.     1S2S3S4S5S6S7S8S
  29640. Please Reassign...n
  29641. tmpAction
  29642. Reassign
  29643.     0R1S2S3S
  29644.     0RRZ
  29645. AssignState
  29646. Principal
  29647.     1S2S3S4S5S6S7S8S
  29648. Delivery Options...K
  29649. DeliveryOptions
  29650. Delivery Options
  29651.     4S8S
  29652. _ViewIcon
  29653. SenderTag
  29654. SenderTag
  29655. SenderTag
  29656. SenderTag
  29657. SenderTag
  29658. SenderTag
  29659. SenderTag
  29660. SenderTag
  29661. SenderTag
  29662. SenderTag
  29663. SenderTag
  29664.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E0
  29665. AssignState
  29666.     1S2S
  29667. Special Options...F
  29668. ReplyDate
  29669. ReplyDate
  29670.     1S2S3S
  29671. ReplyTo
  29672. ReplyTo
  29673.     0R1S2S3S
  29674. (Advanced Options)
  29675. Special Options
  29676.     0R6S10S13S15S
  29677. tmpDisplayReplyInfo
  29678. Please respond
  29679. ReplyTo
  29680. ReplyTo
  29681. ReplyDate
  29682. ReplyDate
  29683.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  29684. DueDateTime
  29685. DueDateTime
  29686. ReplyDate
  29687. DueDateTime
  29688.     0R1S2S3S6S7S9S11S
  29689. AssignState
  29690.     1S2S
  29691. Move To Folder 
  29692.     0S0E
  29693. Principal
  29694.     3S4S5S6S
  29695. Display Task on My CalendarK
  29696. StartDateTime
  29697. DueDateTime
  29698. Date Required
  29699. In order to display this task on your Calendar, you must enter a Start Date and/or a Due Date.
  29700.     3S4S5S6S7S8S10S16S18S22S
  29701. tmpDate
  29702. StartDateTime
  29703. DueDateTime
  29704. StartDateTime
  29705.     0RR1S2S5S6S8S10S
  29706. CalendarDateTime
  29707. tmpDate
  29708. tmpDate
  29709. tmpDate
  29710.     0R1S2S3S10S15S20S22S24S
  29711. CalendarDateTimeh
  29712.     0S0E
  29713. Remove From Calendar View
  29714. CalendarDateTime
  29715.     1S2S3S
  29716. CalendarDateTimeY
  29717.     0S0E
  29718. Categori_zeK
  29719. SSend
  29720. _Remove From Folder...
  29721. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  29722. '++LotusScript Development Environment:2:5:(Forward):0:1
  29723. Declare Sub Click(Source As Button)
  29724. '++LotusScript Development Environment:2:5:(Declarations):0:2
  29725. '++LotusScript Development Environment:2:2:BindEvents:1:129
  29726. Private Sub BindEvents(Byval Objectname_ As String)
  29727.      Static Source As BUTTON
  29728.      Set Source = Bind(Objectname_)
  29729.      On Event Click From Source Call Click
  29730. End Sub
  29731. '++LotusScript Development Environment:2:2:Click:1:12
  29732. Sub Click(Source As Button)
  29733.      Call CreateNewDoc(NEW_MEMO)
  29734. End Sub
  29735. tmpnewdoc
  29736.     1S2S
  29737. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  29738. '++LotusScript Development Environment:2:5:(Forward):0:1
  29739. Declare Sub Click(Source As Button)
  29740. '++LotusScript Development Environment:2:5:(Declarations):0:2
  29741. '++LotusScript Development Environment:2:2:BindEvents:1:129
  29742. Private Sub BindEvents(Byval Objectname_ As String)
  29743.      Static Source As BUTTON
  29744.      Set Source = Bind(Objectname_)
  29745.      On Event Click From Source Call Click
  29746. End Sub
  29747. '++LotusScript Development Environment:2:2:Click:1:12
  29748. Sub Click(Source As Button)
  29749.      Call CreateNewDoc(NEW_CALENDAR)
  29750. End Sub
  29751. tmpnewdoc
  29752.     1S2S
  29753. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  29754. '++LotusScript Development Environment:2:5:(Forward):0:1
  29755. Declare Sub Click(Source As Button)
  29756. '++LotusScript Development Environment:2:5:(Declarations):0:2
  29757. '++LotusScript Development Environment:2:2:BindEvents:1:129
  29758. Private Sub BindEvents(Byval Objectname_ As String)
  29759.      Static Source As BUTTON
  29760.      Set Source = Bind(Objectname_)
  29761.      On Event Click From Source Call Click
  29762. End Sub
  29763. '++LotusScript Development Environment:2:2:Click:1:12
  29764. Sub Click(Source As Button)
  29765.      Call CreateNewDoc(NEW_TASK)
  29766. End Sub
  29767. tmpnewdoc
  29768.     1S2S
  29769. Copy into\New GroupK,
  29770. NewGroup
  29771.     0S0E
  29772. tmpnewdoc
  29773.     1S2S
  29774. O=Lotus Notes
  29775. O=Lotus Notes
  29776. PURSAFO
  29777. |.:#U
  29778. O=Lotus Notes
  29779. CN=Lotus Notes Template Development/O=Lotus Notes
  29780. PURSAFO
  29781. Fde!f^^
  29782. *]Vbl
  29783. DelegateAlert
  29784. AssigneeAlert
  29785. $$FormPostOpenAction
  29786. ExpireDate
  29787. ReplyDate
  29788. CompletedOn
  29789. ComposedDate
  29790. SelfAssigned
  29791. $TypeIcon
  29792. $TITLE
  29793. $AUTOLAUNCH
  29794. $INFO
  29795. $WINDOWTITLE
  29796. $Script
  29797. $$Script_O
  29798. $$ScriptName
  29799. $$FormScript
  29800. $$$FormScript_O
  29801. DueDateTime
  29802. StartDateTime
  29803. $BODY
  29804. $ACTIONS
  29805. $SCRIPTOBJ_21
  29806. $SCRIPTOBJ_22
  29807. $SCRIPTOBJ_23
  29808. Fo$INFO$Fonts$BODY$Flags$Signature$UpdatedBy$TemplateModTime$TemplateServerName$TemplateFileName$FlagsNoRefresh$TITLEIconBitmap$ACLDigest$WINDOWTITLE$$ScriptNameSubjectDeliveryDateBodyPath_Info$ACTIONS$$Script_O$$FormPostOpenActionExpireDateReplyDate$TypeIconReplyNumberComposedDateDueDate$AUTOLAUNCH$Script$$FormScript$$$FormScript_OFromSignEncryptDefaultMailSaveOptions$KeepPrivateSendToCopyToBlindCopyToInheritedDBTitleInheritedSubjectFlowStatusDueDateTime$SCRIPTOBJ_16$SCRIPTOBJ_17$SCRIPTOBJ_18$Index$Formula$FormulaClass$Collation$Collation1$Collation2$VIEWFORMAT$Comment$SCRIPTOBJ_11$SCRIPTOBJ_12$SCRIPTOBJ_13$ViewGlobalScript$ViewGlobalScript_O$TYPE$TABLEFORMAT$SCRIPTOBJ_14$PublicAccess$CalendarFormat$ViewScript$ViewScript_O$FormFormula$Name$SCRIPTOBJ_7$SCRIPTOBJ_8$SCRIPTOBJ_9$SCRIPTOBJ_10$SCRIPTOBJ_6$Author$FolderObject$FolderIDTable$ScriptLib$ScriptLib_O$DBScript$DBScript_OCompletedOnEndDateCalendarDate_Time___StartCalendarDate_Time___EndCalendarDatesCalendarDateRepeatDatesCalendarDateTimeEndDateTime$NoPurgeStartTimeEndTimeStartEndTimeStartDateTime$FormPublicAccessTimeRangeWebCalEntryTypeChangedReminderTimeMaxListedStartDateDurationtmpFromForm$ExpandGroups_ViewIconQuery_StringappTypetmpGridFormulaGridFormatDatePickerTimePickerDurationPickerViewArgumentsViewArguments_1$SubFormsViewNameurlViewNameFavorites$$ViewBodySaveOptions$$QueryOpenAgent$$QuerySaveAgenttmpFoldertmpSelectedDocumentdispSelectedFoldertmpSelectedFoldertmpRemFromFoldertmpNewFoldertmpNewFolderOptionsdispFolderListtmpUNIDnotetmpViewNametmpCurFolderIsViewIntendedRecipienttmpCustomAddressLinksdispSubjectdispBodyImportanceDeliveryReportDeliveryPriorityMailOptionsMessageStringSEQUENCENUMROOMBroadcastREQUIREDATTENDEESOPTIONALATTENDEEStmpDocUNIDtmpAcceptedtmpCountertmpDelegatedTMPDELEGEEtmpDeclinedtmpWaitingtmpUnivitedtmpNoticeTypedispAccepteddispCounterdispDelegateddispDeclineddispWaitingdispUniviteddispResAccepteddispResDeclineddispResWaiting$AssistType$AssistLastRun$AssistDocCount$AssistFlags$AssistTrigger$AssistInfo$AssistQuery$AssistAction$AssistAction_Ex$AssistRunInfo$AssistVersion$LeftToDotmpConfirmMsgtmpCurrentOwnertmpCurrentUsertmpRSVPActiontmpOutOfInBoxtmpOutOfInBox_1NewDateNewTimeRangeReasonNewRoomStatusUpdateCommentstmpNewStarttmpNewEndDelegateAlertAssigneeAlertSelfAssignedASSIGNSTATEPrincipalOldSubjectSoloTaskActionReassignTaskAssignedTaskActionAssignedTotmpAssignTasktmpQuery_StringdispAssignedTo$$ViewList$NoBackgroundOverrideNewDocdispAppTypeDurationMinOrgConfidentialtmpRoomtmpGridFormattmpDatetmpTimetmpDurationIsFindTimeHasFoundTimeIsAddressingIsNewDocCHAIRTMPOWNERAppointmentTypetmpDispAppTypetmpSubjecttmpBodytmpSendTo2tmpCopyTo2tmpSendTo3tmpCopyTo3tmpRoom2tmpDateOrgtmpTimeOrgtmpDurationOrgtmpBookFreeTimetmpOrgConfidentialtmpBroadcasttmpImportancetmpDeliveryPrioritytmpDeliveryReporttmpDateReftmpTimeReftmpDurationRef$$XMB_2$$XMB_3$SCRIPTOBJ_25tmpSendOptionstmpPath_Info$$XMB$LicenseePhoneCallerCompanyNamePhoneNumberFAXNumberPhoneReasonInheritedSendToInheritedReplyToInheritedFromInheritedFromDomaintmpBackToTaskPathAndName$$ReturnSundayStart_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$7TimesAppointmentLeadReminderLeadEventLeadAnniversaryLead$$MonStart$MonStart_O$$Timess$Timess_OTimess$$Times1s$Times1s_O$$Times1e$Times1e_O$$Times2e$Times2e_O$$Times3s$Times3s_O$$Times3e$Times3e_O$$Times4s$Times4s_O$$Times4e$Times4e_O$$Times5s$Times5s_O$$Times5e$Times5e_O$$Times6s$Times6s_O$$Times6e$Times6e_O$$Times7s$Times7s_O$$Times7e$Times7e_OTimes1sTimes1eTimes2eTimes3eTimes4sTimes4eTimes5sTimes5eTimes6sTimes6eTimes7sTimes7e$$FormAction2$$$Times1$$Times1_OOwnerDefaultMailOptEnableTrashIconAutoProcessMeetingsMeetingsPeopleDefaultDurationCalEntryTypeCalGridTypeCalEntryHideAutoRemoveFromInboxNotesNab1NotesNab2NotesNab3NotesNab4AllowBusyAccessSunday$Times1Monday$Times2Tuesday$Times3Wednesday$Times4Thursday$Times5Friday$Times6Saturday$Times7EnableNABLinksLinkName1URL1LinkName2URL2LinkName3URL3LinkName4URL4EnableFavoriteLinksIsFolder1FolderName1fURL1IsFolder2FolderName2fURL2IsFolder3FolderName3fURL3IsFolder4FolderName4fURL4IsFolder5FolderName5fURL5IsFolder6FolderName6fURL6$BusyName$AvailableDaysTargetNABtmpSearchStringtmpMaxListedtmpAddressListdispSendTodispCopyTotmpCurIndextmpNextIndextmpSendTotmpCopyTotmpBlindCopyTomemounidAddressBooksOrigSendToOrigCopyToOrigBlindCopyToAbortGracefullytesttesttest1test2test3test4dispBlindCopyTo$Operation$ScanHeaderFooter$SCRIPTOBJ_19$SCRIPTOBJ_20DeleteOptionsArchiveLocationArchiveServerArchivePathCopyOptionsDocLife$ManualArchivers_OObsoleteLifeDocumentLife$MessageTypeLogCountLogTotalArchiveDateArchiveTrailerCategories$Header$AlarmOffesttmpAlarmOffest$AlarmAlarmTime$AlarmTimeAlarmOnAlarmOnTime$AlarmOffsettmpAlarmOnDatetmpBeforeOrAftertmpAlarmOffset$AlarmDescriptiontmpAlarmOfftmpAlarmOnTimeSenderTag$SCRIPTOBJ_23$SCRIPTOBJ_21$SCRIPTOBJ_22tmpResourcestmpChairpersontmpSentBytmpSenderTagReturnReceiptLogoOriginatorOriginalRouteListRemainingRouteListNotifyorigDomainReplyToSMTPEncodingMailFormatRepeatEndRepeatStartOrgRepeatRepeatAdjust_CRepeatAdjust_MDRepeatAdjust_MPRepeatAdjust_WRepeatUnitRepeatInterval_MDMPRepeatStartDateRepeatHowRepeatUntilRepeatWeekendsRepeatForUnitRepeatForRepeatInterval_YDRepeatInterval_DRepeatInterval_W$Phone_OtmpPostedDateInfotmpFromInfo$$FirstDayOut1$FirstDayOut1_O$$FirstDayBack1$FirstDayBack1_O$$FirstDayOut$FirstDayOut_O$$FirstDayBack$FirstDayBack_O$$GeneralMessage$GeneralMessage_OAlreadyNotifiedSenderExcludeFromViewFirstDayOutFirstDayBackGeneralSubjectDaysOutGeneralMessageSpecialPeopleSpecialSubjectSpecialMessageIgnorePeopledateFirstDayOutdateFirstDayBacktmpUserActionsResponseTypetmpPeopleListtmpPeopleSelectedChangeWhichArchiveExpiredExpiredLifeArchiveInactiveArchiveLogIncludeDoclinksProfileEditorsDestinationProductDepartureDateReturnDateAgreementForwardedFromForwardedDateLetterHeadChoicesPublicReadReadCalendarPublicWriteWriteCalendarReadMailWriteMailEditMailDeleteMailEnableAlarmsAutoSetAlarmsSetAlarmAppointmentSetAlarmReminderSetAlarmEventSetAlarmAnniversaryConflictMeetingConflictAnnivConflictEventtmpStartDatetmpEndDate$SCRIPTOBJ_4$SCRIPTOBJ_5$SCRIPTOBJ_15BookFreeTime$SCRIPTOBJ_24$OLEObjField$OLEObjRichTextFieldOLEBody
  29809. &Arial
  29810. Owner
  29811. Calendar Profile
  29812. Calendar Profile for 
  29813. Owner
  29814.     3S4S5S6S7S8S9S10S'++LotusScript Development Environment:2:5:(Options):0:74
  29815. Option Public
  29816. '++LotusScript Development Environment:2:5:(Forward):0:1
  29817. Declare Sub Terminate
  29818. Declare Function IsValidDateRange(FieldName As String) As Integer
  29819. '++LotusScript Development Environment:2:5:(Declarations):0:10
  29820. Dim uidoc As NotesUIDocument
  29821. Dim session As NotesSession
  29822. Dim trdr As NotesDateRange
  29823. Dim note As NotesDocument
  29824. Dim db As NotesDatabase
  29825. Dim acl As NotesAcl
  29826. Dim aclentry As NotesAclEntry
  29827. Dim namelookup As NotesName
  29828. Dim DoNotEdit As Integer
  29829. '++LotusScript Development Environment:2:2:Terminate:1:10
  29830. Sub Terminate
  29831.      
  29832. End Sub
  29833. '++LotusScript Development Environment:2:1:IsValidDateRange:1:8
  29834. Function IsValidDateRange(FieldName As String) As Integer
  29835. 'returns true if the given date range is valid, false otherwise
  29836.      Dim datetime As String
  29837.      
  29838.      On Error Goto ErrorRoutine
  29839.      
  29840.      IsValidDateRange = True
  29841.      datetime = uidoc.FieldGetText(FieldName)
  29842.      trdr.Text = datetime
  29843.      Exit Function
  29844.      
  29845. ErrorRoutine:
  29846.      IsValidDateRange = False
  29847.      Exit Function
  29848. End Function
  29849.  CalendarProfile'++LotusScript Development Environment:2:5:(Options):0:66
  29850. '++LotusScript Development Environment:2:5:(Forward):0:1
  29851. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  29852. Declare Sub Postopen(Source As Notesuidocument)
  29853. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  29854. '++LotusScript Development Environment:2:5:(Declarations):0:2
  29855. '++LotusScript Development Environment:2:2:BindEvents:1:129
  29856. Private Sub BindEvents(Byval Objectname_ As String)
  29857.      Static Source As NOTESUIDOCUMENT
  29858.      Set Source = Bind(Objectname_)
  29859.      On Event Querysave From Source Call Querysave
  29860.      On Event Postopen From Source Call Postopen
  29861.      On Event Querymodechange From Source Call Querymodechange
  29862. End Sub
  29863. '++LotusScript Development Environment:2:2:Querysave:1:12
  29864. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  29865.      
  29866.      If (note.Sunday(0) = "1") Then
  29867.           If Not (IsValidDateRange("$Times1")) Then
  29868.                Messagebox "You must enter a valid date-range for Sunday.",0,"Error"
  29869.                continue = False
  29870.                Exit Sub      
  29871.           End If
  29872.      End If
  29873.      
  29874.      If (note.monday(0) = "2") Then
  29875.           If Not (IsValidDateRange("$Times2")) Then
  29876.                Messagebox "You must enter a valid date-range for Monday.",0,"Error"
  29877.                continue = False
  29878.                Exit Sub      
  29879.           End If
  29880.      End If
  29881.      
  29882.      If (note.tuesday(0) = "3") Then
  29883.           If Not (IsValidDateRange("$Times3")) Then
  29884.                Messagebox "You must enter a valid date-range for Tuesday.",0,"Error"
  29885.                continue = False
  29886.                Exit Sub      
  29887.           End If
  29888.      End If
  29889.      
  29890.      If (note.Wednesday(0) = "4") Then
  29891.           If Not (IsValidDateRange("$Times4")) Then
  29892.                Messagebox "You must enter a valid date-range for Wednesday.",0,"Error"
  29893.                continue = False
  29894.                Exit Sub      
  29895.           End If
  29896.      End If
  29897.      
  29898.      If (note.Thursday(0) = "5") Then
  29899.           If Not (IsValidDateRange("$Times5")) Then
  29900.                Messagebox "You must enter a valid date-range for Thursday.",0,"Error"
  29901.                continue = False
  29902.                Exit Sub      
  29903.           End If
  29904.      End If
  29905.      
  29906.      If (note.Friday(0) = "6") Then
  29907.           If Not (IsValidDateRange("$Times6")) Then
  29908.                Messagebox "You must enter a valid date-range for Friday.",0,"Error"
  29909.                continue = False
  29910.                Exit Sub      
  29911.           End If
  29912.      End If
  29913.      
  29914.      If (note.Saturday(0) = "7") Then
  29915.           If Not (IsValidDateRange("$Times7")) Then
  29916.                Messagebox "You must enter a valid date-range for Saturday.",0,"Error"
  29917.                continue = False
  29918.                Exit Sub      
  29919.           End If
  29920.      End If
  29921.      
  29922.      
  29923. End Sub
  29924. '++LotusScript Development Environment:2:2:Postopen:1:12
  29925. Sub Postopen(Source As Notesuidocument)
  29926.      
  29927.      Set note = source.Document
  29928.      Set session = New NotesSession
  29929.      Set trdr  = session.CreateDateRange
  29930.      Set uidoc = source
  29931.      Set db = session.CurrentDatabase
  29932.      
  29933. 'if you are less than an Author you cannot edit
  29934.      If db.CurrentAccessLevel < ACLLEVEL_AUTHOR Then
  29935.           DoNotEdit = True
  29936.           source.EditMode = False
  29937.      End If
  29938.      
  29939.      If source.EditMode Then Call source.Refresh
  29940.      
  29941. End Sub
  29942. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  29943. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  29944.      If DoNotEdit And source.EditMode = False Then continue = False
  29945. End Sub
  29946. UserAccess
  29947.     1S2S11S
  29948. EnableAlarms
  29949.     0R3S4S6S11S
  29950. AutoProcessMeetings
  29951. AutoProcessMeetings
  29952.     0R1S2S3S
  29953. AutoProcessMeetings
  29954. AutoProcessNotices
  29955. UserAccess
  29956. AutoProcessMeetings
  29957. Autoprocess
  29958. You are not authorized to enable the Autoprocessing agent.  Please contact a designer or manager of this database.
  29959. AutoProcessNotices
  29960. AutoProcessMeetings
  29961. AutoProcessMeetings
  29962. AutoProcessNotices
  29963. UserAccess
  29964. AutoProcessMeetings
  29965. Autoprocess
  29966. You are not authorized to disable the Autoprocessing agent.  Please contact a designer or manager of this database.
  29967. AutoProcessNotices
  29968. AutoProcessMeetings
  29969.     0R3S4S5S6S12RS6E15S16S18RS12E20RS21E27RS21E32RS21E38S40S43RS21E45RS6E59RS12E61RS21E68RS21E72RS21E74RS12E78R79S80S81S82S87RS6E90S91S93RS12E95RS21E102RS21E107RS21E113S115S118RS21E120RS6E134RS12E136RS21E143RS21E147RS21E149RS12E153R
  29970. '++LotusScript Development Environment:2:5:(Options):0:66
  29971. '++LotusScript Development Environment:2:5:(Forward):0:1
  29972. Declare Sub Exiting(Source As Field)
  29973. '++LotusScript Development Environment:2:5:(Declarations):0:2
  29974. '++LotusScript Development Environment:2:2:BindEvents:1:129
  29975. Private Sub BindEvents(Byval Objectname_ As String)
  29976.      Static Source As FIELD
  29977.      Set Source = Bind(Objectname_)
  29978.      On Event Exiting From Source Call Exiting
  29979. End Sub
  29980. '++LotusScript Development Environment:2:2:Exiting:1:12
  29981. Sub Exiting(Source As Field)
  29982.      
  29983. End Sub
  29984. *.PCX
  29985. TIFF 5.0 
  29986. .0/6.1
  29987. *.WPD;*.W
  29988. _ITIFF
  29989. Calendar Profile
  29990. Mail File Owner: 
  29991. OwnerEnter the name of the person who owns this mail file.
  29992. Delegation Profile
  29993. You are not authorized to access the Delegation Profile.
  29994. EditDelegationProfile
  29995.     11S14S15S17S23S25S29R33S
  29996.     Allow other users to view your calendar...
  29997. Scheduling Options
  29998.     Default appointment/meeting duration:
  29999. DefaultDuration
  30000. EnableAlarms
  30001. Enable alarm notifications|1
  30002. EnableAlarms
  30003.     1S2S
  30004. AutoSetAlarms
  30005. Automatically set alarm(s) for:|1
  30006. AutoSetAlarms
  30007. EnableAlarms
  30008.     1S2S3S4S5S6S
  30009. SetAlarmAppointment
  30010. Appointments/Meetings|1
  30011. AppointmentLead
  30012.     minute(s) in advance
  30013. SetAlarmReminder
  30014. Reminders|1
  30015. ReminderLead
  30016.      minute(s) in advance
  30017. SetAlarmEvent
  30018. Events|1
  30019. EventLead
  30020.     day(s) in advance
  30021. SetAlarmAnniversary
  30022. Anniversaries|1
  30023. AnniversaryLead
  30024.     day(s) in advance
  30025. Freetime Options
  30026.     Only the following users can
  30027.     read my Freetime Schedule:    
  30028. AllowBusyAccess
  30029. AllowBusyAccess
  30030. Owner
  30031.     6S7S8S9S12S13S16SAllowBusyAccessEnter the names of users who can read your freetime schedule; leave this field blank to give everyone access.
  30032.     Allowable free times:
  30033. Sunday
  30034. Sunday:|1
  30035. Sunday
  30036.     1S2S
  30037.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  30038. $Times1
  30039. $Times1
  30040.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  30041. textdate
  30042. $Times1
  30043.     0S0E
  30044. list1
  30045. textdate
  30046. list2
  30047. textdate
  30048. date1
  30049. list1
  30050. date2
  30051. list2
  30052. result
  30053. date2
  30054. date1
  30055. result
  30056. result
  30057. Invalid time range for Sunday.  Ranges may not span days.
  30058.     0R4S5S7S8S10S11S
  30059. $Times1
  30060. Monday
  30061. Monday:|2
  30062. Monday
  30063.     1S2S
  30064.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  30065. $Times2
  30066. $Times2
  30067.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  30068. textdate
  30069. $Times2
  30070.     0S0E
  30071. list1
  30072. textdate
  30073. list2
  30074. textdate
  30075. date1
  30076. list1
  30077. date2
  30078. list2
  30079. result
  30080. date2
  30081. date1
  30082. result
  30083. result
  30084. Invalid time range for Monday.  Ranges may not span days.
  30085.     0R4S5S7S8S10S11S
  30086. $Times2
  30087. Tuesday
  30088. Tuesday:|3
  30089. Tuesday
  30090.     1S2S
  30091.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  30092. $Times3
  30093. $Times3
  30094.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  30095. textdate
  30096. $Times3
  30097.     0S0E
  30098. list1
  30099. textdate
  30100. list2
  30101. textdate
  30102. date1
  30103. list1
  30104. date2
  30105. list2
  30106. result
  30107. date2
  30108. date1
  30109. result
  30110. result
  30111. Invalid time range for Tuesday.  Ranges may not span days.{
  30112.     0R4S5S7S8S10S11S
  30113. $Times3
  30114. Wednesday
  30115. Wednesday:|4
  30116. Wednesday
  30117.     1S2S
  30118.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  30119. $Times4
  30120. $Times4
  30121.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  30122. textdate
  30123. $Times4
  30124.     0S0E
  30125. list1
  30126. textdate
  30127. list2
  30128. textdate
  30129. date1
  30130. list1
  30131. date2
  30132. list2
  30133. result
  30134. date2
  30135. date1
  30136. result
  30137. result
  30138. Invalid time range for Wednesday.  Ranges may not span days.{
  30139.     0R4S5S7S8S10S11S
  30140. $Times4
  30141. Thursday
  30142. Thursday:|5
  30143. Thursday
  30144.     1S2S
  30145.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  30146. $Times5
  30147. $Times5
  30148.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  30149. textdate
  30150. $Times5
  30151.     0S0E
  30152. list1
  30153. textdate
  30154. list2
  30155. textdate
  30156. date1
  30157. list1
  30158. date2
  30159. list2
  30160. result
  30161. date2
  30162. date1
  30163. result
  30164. result
  30165. Invalid time range for Thursday.  Ranges may not span days.
  30166.     0R4S5S7S8S10S11S
  30167. $Times5
  30168. Friday
  30169. Friday:|6
  30170. Friday
  30171.     1S2E2S
  30172.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  30173. $Times6
  30174. $Times6
  30175.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  30176. textdate
  30177. $Times6
  30178.     0S0E
  30179. list1
  30180. textdate
  30181. list2
  30182. textdate
  30183. date1
  30184. list1
  30185. date2
  30186. list2
  30187. result
  30188. date2
  30189. date1
  30190. result
  30191. result
  30192. Invalid time range for Friday.  Ranges may not span days.
  30193.     0R4S5S7S8S10S11S
  30194. $Times6
  30195. Saturday
  30196. Saturday:|7
  30197. Saturday
  30198.     1S2E2S
  30199.     8S10S12S14S16S18S21S22S23S24S30S32S34S36S38S40S44S45S53S55S57S59S61S63S66S67S68S69S75S77S79S81S83S85S
  30200. $Times7
  30201. $Times7
  30202.     15S17S19S21S23S25S28S29S30S31S37S39S41S43S45S47S51S52S60S62S64S66S68S70S73S74S75S76S82S84S86S88S90S92S
  30203. textdate
  30204. $Times7
  30205.     0S0E
  30206. list1
  30207. textdate
  30208. list2
  30209. textdate
  30210. date1
  30211. list1
  30212. date2
  30213. list2
  30214. result
  30215. date2
  30216. date1
  30217. result
  30218. result
  30219. Invalid time range for Saturday.  Ranges may not span days.
  30220.     0R4S5S7S8S10S11S
  30221. $Times7
  30222. Advanced Calendar Options
  30223. Autoprocessing Options
  30224. AutoProcessMeetings
  30225. Meetings|1
  30226. AutoRemoveFromInbox
  30227. Remove Invitations from my Inbox after I respond to them|1
  30228. AutoProcessMeetings
  30229.     0S0E
  30230.     Autoprocess Meetings only from the following people:
  30231. MeetingsPeople
  30232. Calendar Entry Options
  30233.     Default settings:
  30234.     Calendar entry type:
  30235. CalEntryType
  30236. Appointment|0Invitation|3Event|2Reminder|4Anniversary|1
  30237. CalEntryHide
  30238. Hide new Calendar Entries from public viewing|1
  30239.     Enable conflict checking for:
  30240. ConflictMeeting
  30241. Appointments/Meetings|1
  30242. ConflictAnniv
  30243. Anniversaries|1
  30244. ConflictEvent
  30245. Events|1
  30246. Owner
  30247. $BusyName
  30248. $NoPurge
  30249. $NoPurge
  30250. Sunday
  30251. Monday
  30252. Tuesday
  30253. Wednesday
  30254. Thursday
  30255. Friday
  30256. Saturday
  30257.     0S0E
  30258. $AvailableDays
  30259. $PublicAccess
  30260. _Edit Document
  30261. _Forward
  30262.     0S0E
  30263. CancelF
  30264. SaveOptions
  30265.     1S2S3S
  30266. Categori_ze
  30267. Send Docu_ment
  30268. _Move To Folder...
  30269. _Remove From Folder
  30270. O=Lotus Notes
  30271. O=Lotus Notes
  30272. PURSAFO
  30273. |.:#U
  30274. O=Lotus Notes
  30275. CN=Lotus Notes Template Development/O=Lotus Notes
  30276. PURSAFO
  30277. Fde!f^^
  30278. SundayStart_1
  30279. SundayEnd_1
  30280. SundayStart_2
  30281. SundayEnd_2
  30282. SundayStart_3
  30283. SundayEnd_3
  30284. SundayStart_4
  30285. SundayEnd_4
  30286. SundayStart_5
  30287. SundayEnd_5
  30288. SundayStart_6
  30289. SundayEnd_6
  30290. TaskLead
  30291. TimeSlotStart
  30292. TimeSlotEnd
  30293. TimeSlotInterval
  30294. SundayStart
  30295. SundayEnd
  30296. MondayStart
  30297. MondayEnd
  30298. TuesdayStart
  30299. TuesdayEnd
  30300. WednesdayStart
  30301. WednesdayEnd
  30302. ThursdayStart
  30303. ThursdayEnd
  30304. FridayStart
  30305. FridayEnd
  30306. SaturdayStart
  30307. SaturdayEnd
  30308. $SundayTimes
  30309. $MondayTimes
  30310. $TuesdayTimes
  30311. $WednesdayTimes
  30312. $ThursdayTimes
  30313. $FridayTimes
  30314. $SaturdayTimes
  30315. $1Times
  30316. $2Times
  30317. $3Times
  30318. $4Times
  30319. $5Times
  30320. $6Times
  30321. $7Times
  30322. $FormPublicAccess
  30323. $TITLE
  30324. $INFO
  30325. $WINDOWTITLE
  30326. $Script
  30327. $$Script_O
  30328. $$ScriptName
  30329. $$FormScript
  30330. $$$FormScript_O
  30331. $$FormAction2
  30332. $$$Times1
  30333. $$Times1_O
  30334. DefaultDuration
  30335. AppointmentLead
  30336. ReminderLead
  30337. EventLead
  30338. AnniversaryLead
  30339. $Times1
  30340. $Times2
  30341. $Times3
  30342. $Times4
  30343. $Times5
  30344. $Times6
  30345. $Times7
  30346. $NoPurge
  30347. $BODY
  30348. $ACTIONS
  30349. $PublicAccess
  30350. Invitation from 
  30351. Principal
  30352.     1S2S6S
  30353. "Small Fonts
  30354. '++LotusScript Development Environment:2:5:(Options):0:74
  30355. Option Public  
  30356. Use "NoticeProcessing"
  30357. Use "NoticeResponses"
  30358. Use "RepeatProcessing"
  30359. Use "DocumentConversions"
  30360. '++LotusScript Development Environment:2:5:(Forward):0:1
  30361. Declare Sub Postopen(Source As Notesuidocument)
  30362. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  30363. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  30364. Declare Sub Postmodechange(Source As Notesuidocument)
  30365. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  30366. Declare Sub Click(Source As Button)
  30367. '++LotusScript Development Environment:2:5:(Declarations):0:10
  30368. Dim collection As NotesDocumentCollection
  30369. Dim nam As NotesName
  30370. Dim DocWasSaved As Integer
  30371. Dim NewForm As String
  30372. Dim ErrorStatus As Integer
  30373. '++LotusScript Development Environment:2:2:Postopen:1:8
  30374. Sub Postopen(Source As Notesuidocument)
  30375.      
  30376. End Sub
  30377. '++LotusScript Development Environment:2:2:Querysave:1:8
  30378. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  30379.      
  30380.      Call MarkTempFields(note)
  30381.      
  30382.      Select Case note.tmpAction(0)
  30383.      Case "Accept","PencilIn"
  30384.           AcceptInvitation
  30385.      Case "Decline"
  30386.           DeclineInvitation
  30387.      Case "Delegate"
  30388.           ErrorStatus = DelegateInvitation
  30389.      Case "CounterPropose"
  30390.           CounterPropose
  30391.      Case "AddCalendar"
  30392. '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
  30393.           Call UpdateOriginalInvitation(note)
  30394.           If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  30395.      Case "AcceptCounterProposal"
  30396.           AcceptCounterProposal
  30397.      Case "DeclineCounterProposal"
  30398.           DeclineCounterProposal
  30399.      End Select
  30400.      
  30401. '#############################     
  30402. 'If this should repeat then we need create the repeat instances
  30403.      Action = note.tmpAction(0)     
  30404.      If note.HasItem("OrgRepeat") Then Call RepeatSave
  30405. '#############################          
  30406.      
  30407.      source.Reload
  30408.      
  30409. End Sub
  30410. '++LotusScript Development Environment:2:2:Queryopen:1:8
  30411. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  30412.      On Error 4005 Resume Next   'we want to trap whenever the parentnote is nothing
  30413. 'notice documents always exist when opening them
  30414.      Set ws = New NotesUIWorkspace
  30415.      Set uidoc = Source
  30416.      InstantiateObjectVariables
  30417.      
  30418.      note.RemoveItem("MailOptions")
  30419. 'if the user is in the preview pane, exit
  30420.      If (uidoc.InPreviewPane) Then Exit Sub
  30421.      
  30422. 'if this is a response document, get the parent
  30423. 'we do this for both the chair and the invitee so we can detect missing parent documents    
  30424.      If (note.IsResponse) Then 
  30425.           Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  30426.           If (parentnote Is Nothing) Then
  30427. 'if this is a non-repeating note, see if we should re-create the document
  30428.                If Not(note.hasitem("OrgRepeat")) Then
  30429.                     If (Msgbox("The appointment document has been deleted from your calendar, do you want to re-create it?",52) = 6) Then 
  30430.                          Call ResurrectParentDoc                        
  30431.                     Else
  30432.                          note.tmpNoParent = True
  30433.                          note.DoNotProcess = True
  30434.                     End If                         
  30435.                Else
  30436.                     Msgbox "This deleted appointment was part of a repeat set but is being recreated as a single appointment.",48 
  30437.                     Call ResurrectParentDoc
  30438.                End If                         
  30439.           End If 
  30440.      End If
  30441. 'remove any sendto items
  30442.      note.RemoveItem "SendTo"
  30443.      note.tmpOwner = Owner    
  30444. 'get any update items if we are not the chair
  30445.      If Not (note.tmpOwner(0) = note.Chair(0)) Then CheckForNoticeUpdates
  30446. End Sub
  30447. '++LotusScript Development Environment:2:2:Postmodechange:1:8
  30448. Sub Postmodechange(Source As Notesuidocument)
  30449.      
  30450. End Sub
  30451. '++LotusScript Development Environment:2:2:Queryclose:1:8
  30452. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  30453.      If (ErrorStatus > 0) Then 
  30454.           continue = False
  30455.           ErrorStatus = 0
  30456.      End If
  30457.      If ((Action = "Accept") Or (Action = "AddCalendar")) And note.HasItem("RepeatFor") Then note.Subject = "Repeat parent for " & note.Subject(0) & " - do not delete"
  30458.      ws.ViewRefresh
  30459. End Sub
  30460. '++LotusScript Development Environment:2:2:Click:1:8
  30461. Sub Click(Source As Button)
  30462.      Call ResurrectParentDoc
  30463.      Call note.RemoveItem("tmpNoParent")
  30464.      Call note.RemoveItem("DoNotProcess")
  30465.      Call uidoc.Refresh
  30466. End Sub
  30467. K|    -t
  30468. %K|    S
  30469. K|    Qp
  30470. K|    Sp
  30471.  Notice'++LotusScript Development Environment:2:5:(Options):0:66
  30472. '++LotusScript Development Environment:2:5:(Forward):0:1
  30473. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  30474. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  30475. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  30476. Declare Sub Postopen(Source As Notesuidocument)
  30477. Declare Sub Postrecalc(Source As Notesuidocument)
  30478. '++LotusScript Development Environment:2:5:(Declarations):0:2
  30479. '++LotusScript Development Environment:2:2:BindEvents:1:129
  30480. Private Sub BindEvents(Byval Objectname_ As String)
  30481.      Static Source As NOTESUIDOCUMENT
  30482.      Set Source = Bind(Objectname_)
  30483.      On Event Queryopen From Source Call Queryopen
  30484.      On Event Querysave From Source Call Querysave
  30485.      On Event Queryclose From Source Call Queryclose
  30486.      On Event Postopen From Source Call Postopen
  30487.      On Event Postrecalc From Source Call Postrecalc
  30488. End Sub
  30489. '++LotusScript Development Environment:2:2:Queryopen:1:12
  30490. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  30491.      On Error 4005 Resume Next   'we want to trap whenever the parentnote is nothing
  30492. 'notice documents always exist when opening them
  30493.      Set ws = New NotesUIWorkspace
  30494.      Set uidoc = Source
  30495.      InstantiateObjectVariables
  30496.      
  30497.      note.RemoveItem("MailOptions")
  30498. 'if the user is in the preview pane, exit
  30499.      If (uidoc.InPreviewPane) Then Exit Sub
  30500.      
  30501. 'if this is a response document, get the parent
  30502. 'we do this for both the chair and the invitee so we can detect missing parent documents    
  30503.      If (note.IsResponse) Then 
  30504.           Call GetParentDocument
  30505. 'if the user did not create a parent, exit sub
  30506.           If (parentnote Is Nothing) Then Exit Sub
  30507.      End If
  30508.      
  30509.      If Not(parentnote Is Nothing) Then
  30510.           If(note.HasItem("RescheduleWhich")) Then parentnote.RescheduleWhich = note.RescheduleWhich
  30511.           If(note.HasItem("OriginalStartDate")) Then parentnote.OriginalStartDate = note.OriginalStartDate
  30512.      End If
  30513. 'remove any sendto items
  30514.      note.RemoveItem "SendTo"
  30515.      note.tmpOwner = Owner    
  30516. 'get any update items if we are not the chair
  30517.      If Not (note.tmpOwner(0) = note.Chair(0)) Then CheckForNoticeUpdates
  30518.      
  30519. End Sub
  30520. '++LotusScript Development Environment:2:2:Querysave:1:12
  30521. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  30522.      ErrorStatus = 0
  30523.      
  30524.      'if we had to open the repeat parent, then make sure the user actually processsed the parent     
  30525.      If (OpenRepeatParent) Then 
  30526.           If Not(GetParentDocument()) Then
  30527.                continue = False
  30528.                Exit Sub
  30529.           End If
  30530.      End If
  30531.      
  30532. 'if the user had delegated the meeting invitation and is now trying to take a different action ,warn them
  30533.      If (note.NoticeType(0) = ORS_MSGTYPE_DELEGATING) Or (note.HasItem("tmpDidDelegate")) Then
  30534.           Select Case note.tmpAction(0)
  30535.           Case "Accept","PencilIn","Decline","CounterPropose"
  30536.                Set nam = New NotesName(note.Delegee(0))
  30537.                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. " _
  30538.                & "You may also have missed important change notifications (reschedule, cancellation) that were sent to the delegee by the Chairperson.  Continue?",36,"Warning") = 7) Then 
  30539.                     note.NoticeType = ORS_MSGTYPE_DELEGATING
  30540.                     note.RemoveItem("tmpDidDelegate")
  30541.                     note.RemoveItem("tmpUserActions")
  30542.                     source.Reload
  30543.                     source.Refresh
  30544.                     ErrorStatus = 1
  30545.                     continue = False
  30546.                     Exit Sub
  30547.                End If
  30548.           End Select
  30549.      End If
  30550.      
  30551.      If note.HasItem("OrgRepeat") Then Call SaveOriginalValues    
  30552.      
  30553.      If(note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then
  30554.           If (note.SequenceNum(0) <= parentnote.sequencenum(0)) Then
  30555.                Messagebox "This reschedule notice cannot be processed since it has a lower sequence than the parent document."
  30556.                continue = False
  30557.                ErrorStatus = 1
  30558.                Exit Sub
  30559.           End If
  30560.      End If
  30561.      DocWasSaved = True
  30562.      source.Reload
  30563.      
  30564. End Sub
  30565. '++LotusScript Development Environment:2:2:Queryclose:1:12
  30566. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  30567.      If Not(DocWasSaved) Then Exit Sub     
  30568.      Select Case note.tmpAction(0)
  30569.      Case "Accept","PencilIn"
  30570.           AcceptInvitation
  30571.      Case "Decline"
  30572.           DeclineInvitation
  30573.      Case "Delegate"
  30574.           ErrorStatus = DelegateInvitation
  30575.           If (ErrorStatus <> 0) Then
  30576.                note.RemoveItem "tmpUserActions"
  30577.                note.RemoveItem "tmpAction"
  30578.                continue = False
  30579.                ErrorStatus = 0
  30580.                Exit Sub
  30581.           End If
  30582.      Case "CounterPropose"
  30583.           CounterPropose
  30584.      Case "AddCalendar"
  30585. '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
  30586.           Context = GetContext
  30587.           Select Case Context
  30588.           Case 1,3
  30589.                Call UpdateOriginalInvitation(parentnote)
  30590.           Case 2,4
  30591.                Call UpdateOriginalInvitation(note)
  30592.           End Select
  30593.           If (profile.AutoRemoveFromInbox(0) = "1") Then note.RemoveFromFolder("($Inbox)")
  30594.      Case "AcceptCounterProposal"
  30595.           AcceptCounterProposal
  30596.      Case "DeclineCounterProposal"
  30597.           DeclineCounterProposal
  30598.      End Select
  30599.      
  30600. '#############################     
  30601. 'If this should repeat then we need create the repeat instances
  30602.      Action = note.tmpAction(0)     
  30603.      If (Action = "AddCalendar") Then Action = "Accept"
  30604.      If note.HasItem("OrgRepeat") Then 
  30605.           If (note.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE) Then Action = ""          
  30606.           Call RepeatSave      
  30607.      End If
  30608. '#############################          
  30609.      
  30610.      If (ErrorStatus > 0) Then 
  30611.           continue = False
  30612.           ErrorStatus = 0
  30613.           Exit Sub
  30614.      End If
  30615.      If ((Action = "Accept") Or (Action = "AddCalendar")) And note.HasItem("RepeatIds") Then note.Subject = "Do Not Delete - Repeat parent for " & note.Subject(0)
  30616.      Call MarkTempFields(note)
  30617.      Call note.Save(True,True,True)
  30618.      ws.ViewRefresh
  30619. End Sub
  30620. '++LotusScript Development Environment:2:2:Postopen:1:12
  30621. Sub Postopen(Source As Notesuidocument)
  30622.      If (OpenReschedule) Then
  30623.           Set TmpNote = db.GetDocumentByUNID(UpdateResponses(0).misc2)    
  30624.           Call ws.EditDocument(False,TmpNote)
  30625.      Elseif (OpenRepeatParent) Then
  30626.           Call ws.editdocument(False,parentnote)
  30627.      End If
  30628.      DocWasSaved = False
  30629. End Sub
  30630. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  30631. Sub Postrecalc(Source As Notesuidocument)
  30632.      If (note.NoticeType(0) = ORS_MSGTYPE_COUNTER) Then
  30633.           Set trdr = session.CreateDateRange
  30634.           trdr.Text = uidoc.FieldGetText("NewTimeRange")
  30635.           Set startdt = New NotesDateTime(uidoc.FieldGetText("Newdate") & " " & trdr.StartDateTime.TimeOnly)
  30636.           Set enddt = New NotesDateTime(uidoc.FieldGetText("Newdate") & " " & trdr.EndDateTime.TimeOnly)
  30637.           
  30638.           Set note.tmpNewStart = startdt
  30639.           Set note.tmpNewEnd = enddt
  30640.           Call uidoc.Reload
  30641.      End If
  30642. End Sub
  30643. X    X    p
  30644. ,X    }`
  30645. %KH    S
  30646. tmpRealDate
  30647.     0S0E
  30648. tmpRealDate
  30649. The invitation from 
  30650. chair
  30651.  for 
  30652. tmpRealDate
  30653. S0D0V
  30654. tmpRealTime
  30655. S1T1V
  30656.  has been confirmed."
  30657.     8S15S16S17S18S24S25S26S27S33S34S
  30658. tmpConfirmMsg
  30659. NoticeType
  30660. Invitation
  30661. NoticeType
  30662. Reschedule
  30663. NoticeType
  30664. Cancelled
  30665. NoticeType
  30666. Delegated Invitation
  30667. NoticeType
  30668. Status Update
  30669. NoticeType
  30670. Confirmation
  30671. NoticeType
  30672. Counter Proposal Declined
  30673. NoticeType
  30674. Acceptance
  30675. NoticeType
  30676. Declined
  30677. NoticeType
  30678. Delegation
  30679. NoticeType
  30680. Original Meeting
  30681. NoticeType
  30682. Pencilled In
  30683. tmpNoticeHeader
  30684.     3S4S6S8RS8E9S10S12S14RS8E15S16S18S20RS8E21S22S24S26RS8E27S28S30S32RS8E33S34S36S38RS8E39S40S42S44RS8E45S46S48S50RS8E51S52S54S56RS8E57S58S60S62RS8E63S64S66S68RS8E69S70S72S74R
  30685. tmpLabel
  30686. NoticeType
  30687.     1S2S3S4S5S6S
  30688. NoticeType
  30689. Accepted by:
  30690. NoticeType
  30691. Declined by:
  30692. NoticeType
  30693. tmpOwner
  30694. chair
  30695. Delegated to:
  30696. Delegated by:
  30697. NoticeType
  30698. Delegated by:
  30699. NoticeType
  30700. Counter proposal by:
  30701. tmpWhoLabel
  30702.     4RS8E7S8S10S12RS16E13S14S16S18RS16E19S20S25S26S28S30S33RS16E34S35S36S37S39RS16E40S41S43S45RS10E48R
  30703. tmpWhoLabel
  30704. NoticeType
  30705. Principal
  30706. Principal
  30707. NoticeType
  30708. tmpOwner
  30709. chair
  30710. Delegee
  30711. Principal
  30712.  (to 
  30713. Delegee
  30714. NoticeType
  30715. Principal
  30716. tmpWho
  30717.     4RS16E7S8S9S10S12S14RS34E21RS52E28RS34E32S36RS21E37S38S44S47S48S50S52S58S59S60S61S67S68S72RS21E73S74S75S76S83RS21E86RS9E
  30718. tmpWho
  30719.     Chairperson:    
  30720. Chair
  30721.     0S0E
  30722. tmpOriginator
  30723. NoticeType
  30724. chair
  30725. NoticeType
  30726. Principal
  30727. OrgStateh
  30728. OrgState
  30729.     2S3S12S14S15S16S17S19S20S22S23S28S29S30S31S32S33S34S35S36S37S39S40S45S46S47S48S
  30730.     Sent by:
  30731.     0S0E
  30732. tmpFrom
  30733.     Start:    
  30734. StartDateTime
  30735. tmpStartDate
  30736.     End:    
  30737. EndDateTime
  30738. tmpEndDate
  30739.     1S2S
  30740.     Room:    
  30741. tmpRoom
  30742.     Description:    
  30743. topic
  30744. tmpTopic
  30745. NoticeType
  30746.     1S2S
  30747. Proposed Change
  30748.     Reason for change:
  30749.     Proposed date:
  30750. AppointmentType
  30751.     1S2S3S4S
  30752.     Proposed time:
  30753. StartDate
  30754. StartDate
  30755. StartDateTime
  30756.     0S0E
  30757. NewDate
  30758. AppointmentType
  30759.     1S2S3S4S5S
  30760. StartDateTime
  30761. EndDateTime
  30762.     6S7S8S9S
  30763. NewTimeRange
  30764. Reason
  30765.     Proposed location:
  30766. NoticeType
  30767. chair
  30768. tmpOwner
  30769.     1S2S3S4S5S6S
  30770. NewRoom
  30771. NoticeType
  30772. chair
  30773. tmpOwner
  30774.     1S2S3S4S5S6S
  30775. CurrentServer
  30776.     1S2S
  30777. CurrentServer
  30778. Invalid Home Server
  30779. Please edit your current location document and specify a home/mail server.
  30780.     0R3S4S5S6S12S13S14S
  30781. RoomAvailable
  30782. CurrentServer
  30783. names.nsf
  30784. ($Rooms)
  30785. Select a room to reserve for this meeting.
  30786.     0R1S2S
  30787. NewRoom
  30788. RoomAvailable
  30789. RoomAvailable
  30790.     0R1S2S3S9S10S11S
  30791. RoomAvailable
  30792. Error
  30793. RoomAvailable
  30794.     0R6S7S18S19S23S24S
  30795.     Propose Specific Room...
  30796. CurrentServer
  30797.     1S2S
  30798. CurrentServer
  30799. Invalid Home Server
  30800. Please edit your current location document and specify a home/mail server.
  30801.     0R3S4S5S6S12S13S14S
  30802. Sites
  30803. CurrentServer
  30804. names.nsf
  30805. ($Rooms)
  30806.     0R1S2S
  30807. Select the site to search for a room.
  30808. Sites
  30809.     0R1S2S7S8S
  30810. SiteKey
  30811. CN=*/O=
  30812. Site"
  30813.     0R1S2S3S4S
  30814. Capacity
  30815. RequiredAttendees
  30816. OptionalAttendees
  30817.     0R1S2S
  30818. RoomAvailable
  30819. SiteKey
  30820. tmpNewStart
  30821. tmpNewEnd
  30822. Capacity
  30823.     0R1S2S
  30824. RoomAvailable
  30825. No Room Found
  30826. No room was found during the specified time.
  30827.     0R3S4S5S6S11S12S14S15S
  30828. NewRoom
  30829. RoomAvailable
  30830. RoomAvailable
  30831.     0RR1S2S3S
  30832. RoomAvailable
  30833. Error
  30834. RoomAvailable
  30835.     0R6S7S18S19S23S24S
  30836.     Find Available Room...
  30837. CurrentServer
  30838.     1S2S
  30839. CurrentServer
  30840. Error
  30841. This operation cannot be performed locally.
  30842.     0R3S4S5S6S14S15S
  30843. Sites
  30844. CurrentServer
  30845. names.nsf
  30846. ($Rooms)
  30847.     0R1S2S
  30848. Select the site to search for a room.
  30849. Sites
  30850.     0R1S2S7S8S
  30851. SiteKey
  30852. CN=*/O=
  30853. Site"
  30854.     0R1S2S3S4S
  30855. Capacity
  30856. RequiredAttendees
  30857. OptionalAttendees
  30858.     0R1S2S
  30859. RoomAvailable
  30860. SiteKey
  30861. tmpNewStart
  30862. tmpNewEnd
  30863. Capacity
  30864.     0R1S2S
  30865. RoomAvailable
  30866. No Room Found
  30867. No room was found during the specified time.
  30868.     0R3S4S5S6S11S12S14S15S
  30869. NewRoom
  30870. RoomAvailable
  30871.     0R1S2S3S
  30872. ProposeRoom
  30873.     0R1S2S3S
  30874. SelectRoom
  30875.     0R1S2S3S
  30876.          
  30877. NewRoom
  30878. tmpNewRoom
  30879. RepeatIDs
  30880. NoticeType
  30881.     4S5S6S7S
  30882. Repeating meeting information:
  30883. RepeatUnit
  30884. NoticeType
  30885.     1S2S3S4S5S6S
  30886.     This meeting repeats 
  30887. RepeatInterval
  30888. RepeatInterval
  30889. 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
  30890. RepeatUnit
  30891. RepeatUnit
  30892. day|Dweek|Wmonth|MDmonth|MPyear|YDcustom|C
  30893. RepeatAdjust
  30894. RepeatAdjust
  30895. RepeatUnit
  30896.  on Sunday|0
  30897.  on Monday|1
  30898.  on Tuesday|2
  30899.  on Wednesday|3
  30900.  on Thursday|4
  30901.  on Friday|5
  30902.  on Saturday|6
  30903. RepeatUnit
  30904.  on the 1st Sunday|1.0
  30905.  on the 1st Monday|1.1
  30906.  on the 1st Tuesday|1.2
  30907.  on the 1st Wednesday|1.3
  30908.  on the 1st Thursday|1.4
  30909.  on the 1st Friday|1.5
  30910.  on the 1st Saturday|1.6
  30911.  on the 2nd Sunday|2.0
  30912.  on the 2nd Monday|2.1
  30913.  on the 2nd Tuesday|2.2
  30914.  on the 2nd Wednesday|2.3
  30915.  on the 2nd Thursday|2.4
  30916.  on the 2nd Friday|2.5
  30917.  on the 2nd Saturday|2.6
  30918.  on the 3rd Sunday|3.0
  30919.  on the 3rd Monday|3.1
  30920.  on the 3rd Tuesday|3.2
  30921.  on the 3rd Wednesday|3.3
  30922.  on the 3rd Thursday|3.4
  30923.  on the 3rd Friday|3.5
  30924.  on the 3rd Saturday|3.6
  30925.  on the 4th Sunday|4.0
  30926.  on the 4th Monday|4.1
  30927.  on the 4th Tuesday|4.2
  30928.  on the 4th Wednesday|4.3
  30929.  on the 4th Thursday|4.4
  30930.  on the 4th Friday|4.5
  30931.  on the 4th Saturday|4.6
  30932.  on the Last Sunday|5.0
  30933.  on the Last Monday|5.1
  30934.  on the Last Tuesday|5.2
  30935.  on the Last Wednesday|5.3
  30936.  on the Last Thursday|5.4
  30937.  on the Last Friday|5.5
  30938.  on the Last Saturday|5.6
  30939. RepeatUnit
  30940.  on the 1st day|1
  30941.  on the 2nd day|2
  30942.  on the 3rd day|3
  30943.  on the 4th day|4
  30944.  on the 5th day|5
  30945.  on the 6th day|6
  30946.  on the 7th day|7
  30947.  on the 8th day|8
  30948.  on the 9th day|9
  30949.  on the 10th day|10
  30950.  on the 11th day|11
  30951.  on the 12th day|12
  30952.  on the 13th day|13
  30953.  on the 14th day|14
  30954.  on the 15th day|15
  30955.  on the 16th day|16
  30956.  on the 17th day|17
  30957.  on the 18th day|18
  30958.  on the 19th day|19
  30959.  on the 20th day|20
  30960.  on the 21st day|21
  30961.  on the 22nd day|22
  30962.  on the 23rd day|23
  30963.  on the 24th day|24
  30964.  on the 25th day|25
  30965.  on the 26th day|26
  30966.  on the 27th day|27
  30967.  on the 28th day|28
  30968.  on the 29th day|29
  30969.  on the 30th day|30
  30970.  on the 31st day|31
  30971.     3S4S6R8R10R12R14R16R18R20RS5E21S22S24R26R28R30R32R34R36R38R40R42R44R46R48R50R52R54R56R58R60R62R64R66R68R70R72R74R76R78R80R82R84R86R88R90R92R94RS5E95S96S98R100R102R104R106R108R110R112R114R116R118R120R122R124R126R128R130R132R134R136R138R140R142R144R146R148R150R152R154R156R158R160S
  30972.      starting on 
  30973. RepeatStartDate
  30974. RepeatStartDate
  30975. RepeatHow
  30976. RepeatHow
  30977. until|Ufor|F
  30978. RepeatFor
  30979. tmpRepeatUnit
  30980.     7S9S
  30981. RepeatHow
  30982. RepeatUntil
  30983. RepeatFor
  30984. RepeatForUnit
  30985. RepeatFor
  30986. RepeatForUnit
  30987. RepeatFor
  30988. RepeatForUnit
  30989. RepeatFor
  30990. month
  30991. RepeatForUnit
  30992. RepeatFor
  30993. RepeatFor
  30994. RepeatForUnit
  30995. RepeatFor
  30996. RepeatForUnit
  30997. weeks
  30998. RepeatFor
  30999. RepeatForUnit
  31000. months
  31001. RepeatFor
  31002. RepeatForUnit
  31003. years
  31004.     0R3S4S6S10S13S17S18S19S20S23S24S25S26S27S28S30S32S33S34S35S36S37S38S40S42S43S44S45S46S47S48S50S52S53S54S55S56S57S58S60S62S64S65S68S69S70S71S72S73S75S77S78S79S80S81S82S83S85S87S88S89S90S91S92S93S95S97S98S99S100S101S102S103S105S107S
  31005. tmpRepeatUntil
  31006. RepeatUnit
  31007.  (if the date occurs on a weekend the meeting 
  31008. RepeatWeekends
  31009. occurs anyway
  31010. RepeatWeekends
  31011. is moved to Friday
  31012. RepeatWeekends
  31013. is moved to Monday
  31014. RepeatWeekends
  31015. is moved to Nearest Weekday
  31016. RepeatWeekends
  31017. is deleted
  31018.     3S4S5S6S7S8S10S12S13S14R17S18S20S22S23S24S26S28S29S30S32S34S35S36S38S40S41S42S44S46S48S49S
  31019. tmpRepeatWeekends
  31020. NoticeType
  31021.     1S2S
  31022.     Meeting Dates: 
  31023. RepeatDates
  31024. RepeatDates
  31025. RepeatDates
  31026.     0S0E
  31027. NoticeType
  31028.     3S4S5S6S7S8S
  31029. Invitees:
  31030. RequiredAttendees
  31031. OptionalAttendees
  31032.     0S0E
  31033. tmpAttendeeList
  31034.     Detailed description:
  31035. NoticeType
  31036.     1S2S
  31037.     Status update:
  31038. StatusUpdate
  31039. Comments
  31040.     1S2S
  31041.     Comments sent:
  31042. Comments
  31043. Comments
  31044.     Hidden Fields: 
  31045. tmpNewStart
  31046. tmpNewEnd
  31047. _Edit Document
  31048. _Forward
  31049. _Move To Folder...
  31050. Close
  31051.     0S0E
  31052. Accept'++LotusScript Development Environment:2:5:(Options):0:66
  31053. '++LotusScript Development Environment:2:5:(Forward):0:1
  31054. Declare Sub Click(Source As Button)
  31055. '++LotusScript Development Environment:2:5:(Declarations):0:2
  31056. '++LotusScript Development Environment:2:2:BindEvents:1:129
  31057. Private Sub BindEvents(Byval Objectname_ As String)
  31058.      Static Source As BUTTON
  31059.      Set Source = Bind(Objectname_)
  31060.      On Event Click From Source Call Click
  31061. End Sub
  31062. '++LotusScript Development Environment:2:2:Click:1:12
  31063. Sub Click(Source As Button)
  31064.      On Error Resume Next
  31065.      On Error 4412 Goto ErrNoAccess
  31066.      
  31067.      If Not(uidoc.EditMode) Then uidoc.EditMode = True
  31068.      note.tmpAction = "Accept"
  31069.      uidoc.Save
  31070.      If (ErrorStatus = 0) Then uidoc.Close
  31071.      Exit Sub
  31072. ErrNoAccess:
  31073. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  31074. 'if ErrorStatus > 0, then the Save failed     
  31075.      If (ErrorStatus = 0) Then Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  31076.      uidoc.Close
  31077.      Exit Sub
  31078. End Sub
  31079. NoticeType
  31080. Chair
  31081. tmpOwner
  31082. DoNotProcessh
  31083. Broadcast
  31084. OrgRepeat
  31085.     4S5S6S7S8S9S10S11S12S16S2E17S19S20S22S23S27S28S29S30S31S32S
  31086. DeclineK'++LotusScript Development Environment:2:5:(Options):0:66
  31087. '++LotusScript Development Environment:2:5:(Forward):0:1
  31088. Declare Sub Click(Source As Button)
  31089. '++LotusScript Development Environment:2:5:(Declarations):0:2
  31090. '++LotusScript Development Environment:2:2:BindEvents:1:129
  31091. Private Sub BindEvents(Byval Objectname_ As String)
  31092.      Static Source As BUTTON
  31093.      Set Source = Bind(Objectname_)
  31094.      On Event Click From Source Call Click
  31095. End Sub
  31096. '++LotusScript Development Environment:2:2:Click:1:12
  31097. Sub Click(Source As Button)
  31098.      On Error Resume Next
  31099.      On Error 4412 Goto ErrNoAccess
  31100.      
  31101.      If Not(uidoc.EditMode) Then uidoc.EditMode = True
  31102.      note.tmpAction = "Decline"
  31103.      uidoc.Save
  31104.      If (ErrorStatus = 0) Then uidoc.Close
  31105.      Exit Sub
  31106. ErrNoAccess:
  31107. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  31108. 'if ErrorStatus > 0, then the Save failed     
  31109.      If (ErrorStatus = 0) Then Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  31110.      uidoc.Close
  31111.      Exit Sub
  31112. End Sub
  31113. NoticeType
  31114. Chair
  31115. tmpOwner
  31116. DoNotProcessh
  31117. tmpNoParent
  31118. Broadcast
  31119. OrgRepeat
  31120.     4S5S6S7S8S9S10S11S12S16S17S19S20S22S23S27S28S32S33S34S35S36S37S
  31121. Other...'++LotusScript Development Environment:2:5:(Options):0:66
  31122. '++LotusScript Development Environment:2:5:(Forward):0:1
  31123. Declare Sub Click(Source As Button)
  31124. '++LotusScript Development Environment:2:5:(Declarations):0:2
  31125. '++LotusScript Development Environment:2:2:BindEvents:1:129
  31126. Private Sub BindEvents(Byval Objectname_ As String)
  31127.      Static Source As BUTTON
  31128.      Set Source = Bind(Objectname_)
  31129.      On Event Click From Source Call Click
  31130. End Sub
  31131. '++LotusScript Development Environment:2:2:Click:1:12
  31132. Sub Click(Source As Button)
  31133.      On Error Resume Next
  31134.      On Error 4412 Goto ErrNoAccess
  31135.      
  31136.      uidoc.EditMode = True
  31137.      If (ws.DialogBox("(NoticeOptionsDlg)",True,True,,,,,"Options")) Then
  31138. 'the user selected an action and clicked on OK
  31139. 'if the user selected Accept, Decline, we can save and exit
  31140.           If (note.Comments(0) <> "") Then note.IncludeComment = "1"
  31141.           Select Case note.ResponseType(0)
  31142.           Case "0"
  31143. 'this is an acceptance
  31144.                note.tmpAction = "Accept"
  31145.                Call uidoc.Save
  31146.                If (ErrorStatus = 0) Then Call uidoc.Close
  31147.           Case "1"
  31148. 'this is a decline
  31149.                note.tmpAction = "Decline"
  31150.                Call uidoc.Save
  31151.                If (ErrorStatus = 0) Then Call uidoc.Close
  31152.           Case "2"
  31153. 'this is a delegate
  31154.                note.tmpAction = "Delegate"
  31155.                Call uidoc.Save
  31156.                If (ErrorStatus = 0) Then Call uidoc.Close            
  31157.           Case "3"
  31158. 'this is a counter propose
  31159.                note.tmpAction = "CounterPropose"
  31160.                If (note.NoticeType(0) = ORS_MSGTYPE_DELEGATING) Then note.tmpDidDelegate = True
  31161.                note.NoticeType = ORS_MSGTYPE_COUNTER
  31162.                Call uidoc.RefreshHideFormulas
  31163.                Call uidoc.GotoField("Reason")
  31164.           Case "4"
  31165. 'this is a pencil in
  31166.                note.tmpAction = "PencilIn"
  31167.                Call uidoc.Save
  31168.                If (ErrorStatus = 0) Then Call uidoc.Close
  31169.           End Select
  31170.      End If
  31171.      Exit Sub
  31172. ErrNoAccess:
  31173. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  31174. 'if ErrorStatus > 0, then the Save failed     
  31175.      note.RemoveItem("tmpUserActions")     
  31176.      If (ErrorStatus = 0) Then 
  31177.           Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  31178.           uidoc.Close
  31179.      End If     
  31180.      Exit Sub
  31181. End Sub
  31182. chair
  31183. tmpowner
  31184. DoNotProcessh
  31185. Broadcast
  31186. OrgRepeat
  31187. NoticeType
  31188.     2S3S5S6S12S13S14S15S16S17S21S22S23S24S
  31189. Send Counter Proposal
  31190. tmpAction
  31191. CounterPropose
  31192.     0R1S2S3S
  31193.     0R7S12S
  31194. NoticeType
  31195. NoticeType
  31196. Principal
  31197. tmpOwner
  31198. ProposalSenth
  31199. Chair
  31200. tmpOwner
  31201.     2S3S5S6S8S9S10S11S12S13S15S2E16S20S21S23S24S
  31202. Accept Counter ProposalK
  31203. tmpAction
  31204. AcceptCounterProposal
  31205.     0R1S2S3S
  31206. ProposalSent+
  31207.     0R1S2S3S
  31208.     0R7S12S
  31209. NoticeType
  31210. NoticeType
  31211. Chair
  31212. tmpOwner
  31213. ProposalSenth
  31214.     2S3S5S6S8S9S10S11S12S13S15S2E16S
  31215. Decline Counter Proposal
  31216. tmpAction
  31217. DeclineCounterProposal
  31218.     0R1S2S3S
  31219. ProposalSent+
  31220.     0R1S2S3S
  31221.     0R7S12S
  31222. NoticeType
  31223. NoticeType
  31224. Chair
  31225. tmpOwner
  31226. ProposalSenth
  31227.     2S3S5S6S8S9S10S11S12S13S15S16S
  31228. Delivery Information...Kz
  31229. DeliveryInfo
  31230. Delivery Information
  31231.     4S5S6S7S8S9S10S12S
  31232. Add to CalendarK'++LotusScript Development Environment:2:5:(Options):0:66
  31233. '++LotusScript Development Environment:2:5:(Forward):0:1
  31234. Declare Sub Click(Source As Button)
  31235. '++LotusScript Development Environment:2:5:(Declarations):0:2
  31236. '++LotusScript Development Environment:2:2:BindEvents:1:129
  31237. Private Sub BindEvents(Byval Objectname_ As String)
  31238.      Static Source As BUTTON
  31239.      Set Source = Bind(Objectname_)
  31240.      On Event Click From Source Call Click
  31241. End Sub
  31242. '++LotusScript Development Environment:2:2:Click:1:12
  31243. Sub Click(Source As Button)
  31244.      On Error Resume Next
  31245.      On Error 4412 Goto ErrNoAccess
  31246.      
  31247.      If Not(uidoc.EditMode) Then uidoc.EditMode = True
  31248.      note.tmpAction = "AddCalendar"
  31249.      uidoc.Save
  31250.      If (ErrorStatus = 0) Then uidoc.Close
  31251.      Exit Sub
  31252. ErrNoAccess:
  31253. 'make sure ErrorStatus = 0; this means the user does not have rights to edit the document     
  31254. 'if ErrorStatus > 0, then the Save failed     
  31255.      If (ErrorStatus = 0) Then Messagebox "You are not an allowable editor of this invitation.",0,"Warning"
  31256.      uidoc.Close
  31257.      Exit Sub
  31258. End Sub
  31259. Broadcast
  31260. DoNotProcessh
  31261. Chair
  31262. tmpOwner
  31263. NoticeType
  31264.     1S2S3S4S8S9S10S11S12S13S14S15S
  31265. Pencil In
  31266. tmpAction
  31267. PencilIn
  31268.     0R1S2S3S
  31269.     0R7S12S
  31270. NoticeType
  31271. Chair
  31272. tmpOwner
  31273. DoNotProcessh
  31274. Broadcast
  31275.     4S5S6S7S8S9S10S11S12S14S2E15S17S18S20S21S25S26S27S28S
  31276. Check Calendar
  31277. KeyValue
  31278. NoticeType
  31279. NewDate
  31280. StartDate
  31281.     1S2S5S6S7S8S9S10S
  31282. Calendar
  31283. KeyValue
  31284. KeyValue
  31285. tmpOwner
  31286. chair
  31287. NoticeType
  31288.     2S3S5S6S8S9S
  31289. '++LotusScript Development Environment:2:5:(Options):0:66
  31290. '++LotusScript Development Environment:2:5:(Forward):0:1
  31291. Declare Sub Click(Source As Button)
  31292. '++LotusScript Development Environment:2:5:(Declarations):0:2
  31293. '++LotusScript Development Environment:2:2:BindEvents:1:129
  31294. Private Sub BindEvents(Byval Objectname_ As String)
  31295.      Static Source As BUTTON
  31296.      Set Source = Bind(Objectname_)
  31297.      On Event Click From Source Call Click
  31298. End Sub
  31299. '++LotusScript Development Environment:2:2:Click:1:12
  31300. Sub Click(Source As Button)
  31301.      Set helpdoc = New NotesDocument(db)
  31302.      
  31303. 'get the context the user is in
  31304.      If (note.Chair(0) = note.tmpOwner(0)) Then
  31305. 'the chair is looking at this
  31306.           Select Case note.NoticeType(0)
  31307.           Case ORS_MSGTYPE_REJECT
  31308.                helpdoc.tmpContext = "5"       'chair is reading a decline notice
  31309.           Case ORS_MSGTYPE_COUNTER
  31310.                helpdoc.tmpContext = "6"       'chair is reading a counter notice
  31311.           Case ORS_MSGTYPE_ACCEPT
  31312.                helpdoc.tmpContext = "8"      'chair is reading an acceptance
  31313.           Case ORS_MSGTYPE_DELEGATING
  31314.                helpdoc.tmpContext = "15"    'chair is reading a delegation notice
  31315.           End Select
  31316.      Else
  31317. 'the invitee is looking at this
  31318.           Select Case note.NoticeType(0)
  31319.           Case ORS_MSGTYPE_INVITE
  31320.                helpdoc.tmpContext = "4"       'invitee is looking at an invitation
  31321.           Case ORS_MSGTYPE_RESCHEDULE
  31322.                helpdoc.tmpContext = "7"       'invitee is reading a reschedule notice
  31323.           Case ORS_MSGTYPE_COUNTERREJECT
  31324.                helpdoc.tmpContext = "9"       'invitee is reading a counter-decline notice
  31325.           Case ORS_MSGTYPE_CANCEL
  31326.                helpdoc.tmpContext = "10"     'invitee is reading a cancel notice
  31327.           Case ORS_MSGTYPE_STATUSUPDATE
  31328.                If (note.OrgStatus(0)) = ORS_STATUS_REMOVED Then
  31329.                     helpdoc.tmpContext = "11"    'invitee is reading a removal notice
  31330.                Else
  31331.                     helpdoc.tmpContext = "12"    'invitee is reading a mest attend notice
  31332.                End If
  31333.           Case ORS_MSGTYPE_CONFIRMATION
  31334.                helpdoc.tmpContext = "13"      'invitee is reading a confirmation notice
  31335.           Case ORS_MSGTYPE_DELEGATE
  31336.                If (note.OrgState(0) = ORS_STATE_DELEGATE) Then helpdoc.tmpContext = "14"  'delegatee opens an invitation notice
  31337.           Case ORS_MSGTYPE_REJECT,ORS_MSGTYPE_DELEGATING
  31338.                helpdoc.tmpContext = "16"     'invitee is looking at a notice they declined/delegated
  31339.           Case ORS_MSGTYPE_COUNTER
  31340.                helpdoc.tmpContext = "17"    'invitee is looking at notice they counter proposed               
  31341.           End Select
  31342.      End If
  31343.      Call ws.DialogBox("(CalendarHelp)",True,True,True,True,True,True,"C&S Workflow Help",helpdoc)
  31344. End Sub
  31345. NoticeType
  31346. OrgStateY
  31347.     2S3S4S5S
  31348. Recreate Appointment'++LotusScript Development Environment:2:5:(Options):0:66
  31349. '++LotusScript Development Environment:2:5:(Forward):0:1
  31350. Declare Sub Click(Source As Button)
  31351. '++LotusScript Development Environment:2:5:(Declarations):0:2
  31352. '++LotusScript Development Environment:2:2:BindEvents:1:129
  31353. Private Sub BindEvents(Byval Objectname_ As String)
  31354.      Static Source As BUTTON
  31355.      Set Source = Bind(Objectname_)
  31356.      On Event Click From Source Call Click
  31357. End Sub
  31358. '++LotusScript Development Environment:2:2:Click:1:12
  31359. Sub Click(Source As Button)
  31360.      If (uidoc.EditMode = False) Then uidoc.EditMode = True
  31361.      Call ResurrectParentDoc
  31362.      Call note.RemoveItem("tmpNoParent")
  31363.   '   Call note.RemoveItem("DoNotProcess")
  31364.      Call uidoc.Refresh
  31365. End Sub
  31366. tmpNoParent
  31367.     0S0E
  31368. Categori_zeK
  31369. Send Docu_ment
  31370. _Remove From FolderK
  31371. Copy into\New Memo,
  31372. NewMemo
  31373.     0S0E
  31374. tmpnewdoc
  31375.     1S2S
  31376. Copy into\New Calendar Entry4
  31377. NewCalendarEntry
  31378.     0S0E
  31379. tmpnewdoc
  31380.     1S2S
  31381. Copy into\New Task,
  31382. NewTask
  31383.     0S0E
  31384. tmpnewdoc
  31385.     1S2S
  31386. Copy into\New GroupK,
  31387. NewGroup
  31388.     0S0E
  31389. tmpnewdoc
  31390.     1S2S
  31391. O=Lotus Notes
  31392. O=Lotus Notes
  31393. PURSAFO
  31394. |.:#U
  31395. O=Lotus Notes
  31396. CN=Lotus Notes Template Development/O=Lotus Notes
  31397. PURSAFO
  31398. Fde!f^^
  31399. StartDate
  31400. TimeRange
  31401. $FormPublicAccess
  31402. tmpStartDate
  31403. tmpEndDate
  31404. $TITLE
  31405. $INFO
  31406. $WINDOWTITLE
  31407. $Script
  31408. $$Script_O
  31409. $$ScriptName
  31410. $$FormScript
  31411. $$$FormScript_O
  31412. NewDate
  31413. NewTimeRange
  31414. tmpNewStart
  31415. tmpNewEnd
  31416. $BODY
  31417. $ACTIONS
  31418. $SCRIPTOBJ_4
  31419. $SCRIPTOBJ_5
  31420. $SCRIPTOBJ_6
  31421. $SCRIPTOBJ_11
  31422. $SCRIPTOBJ_14
  31423. $SCRIPTOBJ_15
  31424. $PublicAccess
  31425. New Calendar Entry
  31426. Subject
  31427. "Small Fonts
  31428. '++LotusScript Development Environment:2:5:(Options):0:74
  31429. Option Public  
  31430. Use "AppointmentProcessing" 'includes NoticeProcessing and AppointmentResponses
  31431. Use "NoticeResponses"
  31432. Use "ResourceProcessing" 'includes RepeatProcessing 
  31433. Use "DocumentConversions"
  31434. '++LotusScript Development Environment:2:5:(Forward):0:1
  31435. '++LotusScript Development Environment:2:5:(Declarations):0:10
  31436. '(Globals): 
  31437. Dim startdt As NotesDateTime
  31438. Dim enddt As NotesDateTime
  31439. Dim remdt As NotesDateTime
  31440. Dim trdr As NotesDateRange
  31441. Dim Intl As NotesInternational
  31442. Dim tmpList() As Variant
  31443. Dim SelectedDate As Variant
  31444. Dim AppointmentAlarms As Integer
  31445. Dim AnniversaryAlarms As Integer
  31446. Dim EventAlarms As Integer
  31447. Dim DocWasSaved As Integer
  31448. Dim ErrorStatus As Integer
  31449. Dim AlarmSet As Integer
  31450. Dim InAlarmFolder As Integer 
  31451.  Appointment'++LotusScript Development Environment:2:5:(Options):0:66
  31452. '++LotusScript Development Environment:2:5:(Forward):0:1
  31453. Declare Sub Postopen(Source As Notesuidocument)
  31454. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  31455. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  31456. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  31457. Declare Sub Postrecalc(Source As Notesuidocument)
  31458. Declare Sub Postmodechange(Source As Notesuidocument)
  31459. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  31460. '++LotusScript Development Environment:2:5:(Declarations):0:2
  31461. '++LotusScript Development Environment:2:2:BindEvents:1:129
  31462. Private Sub BindEvents(Byval Objectname_ As String)
  31463.      Static Source As NOTESUIDOCUMENT
  31464.      Set Source = Bind(Objectname_)
  31465.      On Event Postopen From Source Call Postopen
  31466.      On Event Querysave From Source Call Querysave
  31467.      On Event Queryopen From Source Call Queryopen
  31468.      On Event Queryclose From Source Call Queryclose
  31469.      On Event Postrecalc From Source Call Postrecalc
  31470.      On Event Postmodechange From Source Call Postmodechange
  31471.      On Event Querymodechange From Source Call Querymodechange
  31472. End Sub
  31473. '++LotusScript Development Environment:2:2:Postopen:1:12
  31474. Sub Postopen(Source As Notesuidocument)
  31475.      If (source.InPreviewPane) Then Exit Sub     
  31476.      source.AutoReload = False
  31477.      
  31478.      On Error Goto ErrorRoutine
  31479. 'if the user wants to open the reschedule notice, go for it!     
  31480.      If (OpenReschedule) Then
  31481.           Set note = db.GetDocumentByUNID(UpdateResponses(0).misc2)
  31482.     '      Call uidoc.Close          
  31483.           Set uidoc = ws.EditDocument(False,note)
  31484.      End If     
  31485.      
  31486. 'if this is a new document we need to set up some defaults
  31487.      If source.IsNewDoc Then
  31488.           Set uidoc = source
  31489.           Set note = uidoc.Document
  31490.           Call GetCalendarOwner
  31491.           If (note.AppointmentType(0) = "3") Then Call CreateInviteeTable(note)
  31492.           Set trdr = session.CreateDateRange
  31493.           If (Hour(SelectedDate) > 0) Then 
  31494. 'the user selected a date and time               
  31495.                note.StartDate = SelectedDate
  31496.                note.StartDateTime = SelectedDate
  31497.                PreferredDuration = profile.DefaultDuration(0)
  31498.                Set enddt = New NotesDateTime(note.StartDateTime(0))
  31499.                enddt.AdjustMinute(PreferredDuration)
  31500.                Set note.EndDateTime = enddt
  31501. 'set thet ime range value
  31502.                Set trdr.StartDateTime = startdt
  31503.                Set trdr.EndDateTime = enddt
  31504.                Set note.TimeRange = trdr
  31505.           Elseif (SelectedDate <> "") Then
  31506. 'the user selected a date but now time
  31507.                note.StartDate = SelectedDate           
  31508.           End If
  31509.           note.ReminderTime = note.StartDateTime
  31510.           note.From = session.UserName
  31511.           note.Principal = Owner
  31512.           note.ExcludeFromView = "D"
  31513.           AlarmSet = 0
  31514.           If (profile.EnableAlarms(0) = "1") And (profile.AutoSetAlarms(0) = "1") Then
  31515.                Select Case note.AppointmentType(0)
  31516.                Case "0","3"
  31517.                     If profile.SetAlarmAppointment(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  31518.                Case "1"
  31519.                     If profile.SetAlarmAnniversary(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  31520.                Case "2"
  31521.                     If profile.SetAlarmEvent(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  31522.                Case "4"
  31523.                     If (profile.SetAlarmReminder(0)) = "1" Then Call note.ReplaceItemValue("$Alarm",1)
  31524.                End Select 
  31525.           End If
  31526.           note.Chair = Owner
  31527.           note.tmpOwner = Owner
  31528.           If (profile.CalEntryType(0) = "1") Then note.BookFreeTime = "1"
  31529.             'note.EndDateTime = note.StartDateTime
  31530.           source.Reload
  31531.           If (session.UserName = Owner) Then
  31532.                source.RefreshHideFormulas
  31533.           Else
  31534.                source.refresh
  31535.           End If
  31536.           
  31537.           NewDocument = True
  31538.      Else
  31539. 'DO NOT SET NewDocument = FALSE
  31540. 'In some cases, we set it to true in QueryOpen!!!          
  31541.           If source.InPreviewPane Then Exit Sub
  31542.           If source.EditMode And note.HasItem("OrgRepeat") Then
  31543.                If note.HasItem("RepeatIds") Then
  31544.                     source.EditMode = False
  31545.                Else
  31546.                     Call SaveOriginalValues
  31547.                End If
  31548.           End If
  31549.      End If
  31550.      
  31551.      note.tmpApptFlags = note.AppointmentType
  31552.      note.tmpOwner = Owner
  31553.      DocWasSaved = False
  31554.      
  31555.      Exit Sub
  31556.      
  31557. ErrorRoutine:
  31558.      Messagebox Error & " (PostOpen)"
  31559.      Exit Sub
  31560.      
  31561. End Sub
  31562. '++LotusScript Development Environment:2:2:Querysave:1:12
  31563. Sub Querysave(Source As Notesuidocument, Continue As Variant)   
  31564. 'refresh the document to get any updated values
  31565.      ErrorStatus = 0
  31566.      source.reload     
  31567.      source.refresh     
  31568.      
  31569. 'the first thing we do is make sure the document can be saved
  31570.      
  31571. 'if the current user is not the owner, and the HideEntries is set, warn the user     
  31572.      If (db.CurrentAccessLevel < ACLLEVEL_AUTHOR) And (note.OrgConfidential(0) = "1") Then
  31573.           Messagebox "You have indicated that you want this document hidden from public viewing, but since you are considered a public viewer, " & _
  31574.           "you will not be able to save this document. This option will be de-selected.",0,"Warning"
  31575.           note.OrgConfidential = ""
  31576.           source.Reload
  31577.           source.Refresh
  31578.      End If
  31579.      
  31580. 'if this is not a new document, and the originaltype was an invitation but no longer is, make sure they want to proceed
  31581.      If Not(NewDocument) And (Owner = note.Chair(0))Then
  31582.           If ((OriginalType = "3") And (note.AppointmentType(0) <> "3")) Then
  31583.                If Messagebox("Changing this entry from an Invitation will cancel this meeting. Continue?",36,"Cancel Invitation") = 6 Then
  31584.                     If Not(note.IsResponse) Then
  31585.                          If (note.HasItem("PostedDate")) Then Call CancelAppointment
  31586.                     Else
  31587.                          If (parentnote.HasItem("PostedDate")) Then Call CancelAppointment
  31588.                     End If
  31589.                Else
  31590.                     Continue = False
  31591.                     DocWasSaved = False
  31592.                     Exit Sub
  31593.                End If
  31594.           End If
  31595.      End If
  31596.      
  31597. 'see if we are creating a document in the past
  31598.      If (Owner = note.Chair(0)) And ((note.AppointmentType(0) <> "1") And (note.AppointmentType(0) <> "2")) And (NewDocument) And Not(note.HasItem("RepeatFor")) Then     
  31599.           Set nowdt = New NotesDateTime("")
  31600.           Call nowdt.SetNow
  31601.           Set apptdt = New NotesDateTime(note.StartDateTime(0))
  31602.           If nowdt.TimeDifference(apptdt) > 0 Then
  31603.                If(Msgbox("This appointment is being created in the past. Continue?",36,"Continue") <> 6) Then
  31604.                     Continue = False
  31605.                     ErrorStatus = 2
  31606.                     DocWasSaved = False
  31607.                     Exit Sub
  31608.                Else
  31609.                     ErrorStatus = 0
  31610.                End If
  31611.           End If
  31612.      End If
  31613.      
  31614. 'check for any conflicts if this is not a reminder and the Warn for Conflicts button is selected 
  31615.      If (note.OrgDontDoubleBook(0) = "1") And (note.BookFreeTime(0) <> "1") And Not(note.HasItem("RepeatFor")) Then
  31616.           If Isarray(OriginalStartDate) Then
  31617.                If (OriginalStartDate(0) <> note.StartDateTime(0)) Then
  31618.                     If (CheckIfConflictExists) Then 
  31619.                          Continue = False    
  31620.                          DocWasSaved = False
  31621.                          Exit Sub
  31622.                     End If                    
  31623.                End If
  31624.           Else
  31625.                If (CheckIfConflictExists) Then 
  31626.                     Continue = False      
  31627.                     DocWasSaved = False
  31628.                     Exit Sub
  31629.                End If
  31630.           End If
  31631.      End If     
  31632.      
  31633.      If (NewDocument) And (note.hasitem("RepeatFor")) And (note.AppointmentType(0) = "3") Then note.Broadcast = "1"
  31634.      
  31635. 'if the invitee is modifying the date/time, see if they want to proceed
  31636.      If (Owner <> note.Chair(0)) Then
  31637.           If (OriginalStartDate(0) <> note.StartDateTime(0)) Or (OriginalEndDate(0) <> note.EndDateTime(0)) Then
  31638.                If(Messagebox("You are not the originator of this entry. Are you sure you want to change the date/time?",36,"Warning") = 7) Then
  31639. 'the user does not want to change the date/time
  31640.                     Set trdr = session.CreateDateRange
  31641.                     Set startdt = New NotesDateTime(OriginalStartDate(0))
  31642.                     Set enddt = New NotesDateTime(OriginalEndDate(0))
  31643.                     Set trdr.StartDateTime = startdt
  31644.                     Set trdr.EndDateTime = enddt 
  31645.                     Set note.StartDate = startdt
  31646.                     Set note.StartDateTime = startdt
  31647.                     Set note.EndDateTime = enddt
  31648.                     Set note.TimeRange = trdr
  31649.                     source.Reload
  31650.                     source.Refresh
  31651.                End If
  31652.           End If
  31653.      End If
  31654.      
  31655.      On Error Goto ErrorRoutine
  31656.      
  31657.      If note.HasItem("$Alarm") Then
  31658.           If Not(note.HasItem("$AlarmOffset") Or note.HasItem("$AlarmTime")) Then
  31659. 'they want it set automatically so default it as shown in calendar profile
  31660.                Select Case note.AppointmentType(0)
  31661.                Case "0","3"
  31662.                     Call note.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  31663.                Case "1"
  31664.                     AdjustMinutes = -1440 * profile.AnniversaryLead(0)
  31665.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  31666.                     alarmtime.AdjustMinute AdjustMinutes
  31667.                     Set note.~$AlarmTime = alarmtime
  31668.                Case "2"
  31669.                     AdjustMinutes = -1440 * profile.EventLead(0)
  31670.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  31671.                     alarmtime.AdjustMinute AdjustMinutes
  31672.                     Set note.~$AlarmTime = alarmtime
  31673.                Case "4"
  31674.                     AdjustMinutes = -1 * profile.ReminderLead(0)
  31675.                     Set alarmtime = New NotesDateTime(remdt.DateOnly & " " & remdt.TimeOnly)
  31676.                     alarmtime.AdjustMinute AdjustMinutes
  31677.                     Set note.~$AlarmTime = alarmtime
  31678.                End Select
  31679.                Call note.ReplaceItemValue("$AlarmDescription", note.Subject(0))
  31680.           Else
  31681.                AlarmDesc = note.GetItemValue("$AlarmDescription")
  31682.                If (AlarmDesc(0) = "") Then Call note.ReplaceItemValue("$AlarmDescription",note.Subject(0))
  31683.           End If
  31684.      Else
  31685.           note.RemoveItem("$AlarmOffset")
  31686.           note.RemoveItem("$AlarmTime")
  31687.           note.RemoveItem("$AlarmDescription")
  31688.      End If
  31689.      
  31690.      
  31691.      
  31692.      If Not(note.HasItem("DocAuthors")) Then Set item = New NotesItem(note, "DocAuthors", note.From, AUTHORS)
  31693.      
  31694.      'if this is a repeating meeting, see if changes need to be copied
  31695.      If Not(NewDocument) And note.HasItem("OrgRepeat") Then
  31696.           Call GetModifiedSettings
  31697.           If (CancelChange) Then 
  31698.                continue = False
  31699.                Exit Sub
  31700.           End If
  31701.      End If     
  31702.      DocWasSaved = True
  31703.      
  31704.      source.Reload
  31705.      
  31706.      Exit Sub
  31707.      
  31708. ErrorRoutine:
  31709.      Messagebox Error & " (QuerySave)"
  31710.      Exit Sub
  31711.      
  31712. End Sub
  31713. '++LotusScript Development Environment:2:2:Queryopen:1:12
  31714. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  31715. 'if this is a new document, get the currently selected time from the Calendar view
  31716.      If IsNewDoc Then
  31717.           Set ws = New NotesUIWorkspace          
  31718.           Set session = New NotesSession
  31719.           Set db = session.CurrentDatabase
  31720.           On Error Resume Next
  31721.           Set profile = db.GetProfileDocument("CalendarProfile")
  31722.           If Err > 0 Then
  31723.                Err = 0
  31724.                Messagebox "This mail file does not have a Calendar Profile. " &_
  31725.                "Please ask the owner of this mail file to select Actions, Calendar Tools, Calendar Profile from the menu to create one.", 0, "Calendar Profile"
  31726.                continue = False
  31727.                Exit Sub
  31728.           End If
  31729.           If (profile.Owner(0) <> "") Then
  31730.                If (db.CurrentAccessLevel < ACLLEVEL_AUTHOR) And (profile.CalEntryHide(0) = "1") Then
  31731.                     Set nam = New NotesName(profile.Owner(0))
  31732.                     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"
  31733.                     continue = False
  31734.                     Exit Sub
  31735.                End If         
  31736.           End If
  31737.           SelectedDate = ws.CurrentCalendarDateTime
  31738.           Set startdt = New NotesDateTime(SelectedDate)
  31739.      End If
  31740. 'if this is a new document, then exit this routine     
  31741.      If Isnewdoc Or source.InPreviewPane Then Exit Sub
  31742.      
  31743.      Set ws = New NotesUIWorkspace
  31744.      Set uidoc = source     
  31745.      InstantiateObjectVariables
  31746.      
  31747.      
  31748.      On Error Goto ErrorRoutine
  31749.      On Error 4005 Resume Next   'this will handle the parentnote not being found
  31750.      
  31751.      Set trdr = session.CreateDateRange
  31752.      
  31753. 'see if this is a document being created from an existing one
  31754.      If (note.HasItem("tmpNewDoc")) Then
  31755.           NewDocument = True
  31756.           Exit Sub
  31757.      End If
  31758.      
  31759.      If (note.HasItem("$Alarm")) Then 
  31760.           AlarmSet = 1
  31761.           InAlarmFolder = True
  31762.      End If
  31763.      
  31764.      note.tmpOwner = Owner
  31765.      If (note.IsResponse) Then 
  31766.           Set parentnote = db.GetDocumentByUNID(note.ParentDocumentUNID)
  31767.           If (parentnote Is Nothing) Then
  31768. '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
  31769. 'we do not need to create the parent document since this was part of a repeat set                
  31770.                If (note.HasItem("OrgRepeat")) Then
  31771.                     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"
  31772.                     note.RemoveItem("$REF")
  31773.                     note.RemoveItem("$REFOPTIONS")
  31774.                     note.RemoveItem("OrgRepeat")
  31775.                     Call note.Save(True,True,True)
  31776.                End If
  31777.           End If
  31778.      End If
  31779.      
  31780. 'we need to get the original start and end date times
  31781.      OriginalStartDate = note.StartDateTime
  31782.      OriginalEndDate = note.EndDateTime
  31783.      OriginalType = note.AppointmentType(0)
  31784.      
  31785.      If (note.AppointmentType(0) <> "3") Then Exit Sub
  31786.      
  31787. 'get any update items if we are not the chair
  31788.      If Not (note.tmpOwner(0) = note.Chair(0)) Then 
  31789.           Call note.RemoveItem("MailOptions")
  31790.           Call note.RemoveItem("SendTo")
  31791.           CheckForNoticeUpdates
  31792.           note.SendTo = ""
  31793.      Else
  31794. 'we are the chair
  31795.           
  31796.           If (note.IsResponse) Then
  31797. 'this is a repeat instance; we need to add our parent's required & optional attendees               
  31798.                OriginalRequired = parentnote.RequiredAttendees
  31799.                OriginalOptional = parentnote.OptionalAttendees
  31800.                OriginalRoom = parentnote.Room(0)
  31801.                Call CreateInviteeTable(parentnote)               
  31802.           Else
  31803.                OriginalRequired = note.RequiredAttendees
  31804.                OriginalOptional = note.OptionalAttendees
  31805.                OriginalRoom = note.Room(0)
  31806.                Call CreateInviteeTable(note)               
  31807.           End If
  31808.      End If
  31809.      Print Now     
  31810.      Exit Sub
  31811.      
  31812. ErrorRoutine:
  31813.      Messagebox Error & " (QueryOpen)"
  31814.      Exit Sub
  31815.      
  31816. End Sub
  31817. '++LotusScript Development Environment:2:2:Queryclose:1:12
  31818. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  31819.      Dim InstanceWarned As Integer
  31820.      
  31821. 'if the document is in read mode, was not saved, or is a conflict, bail     
  31822.      If source.EditMode = False Or DocWasSaved = False Then Exit Sub
  31823. 'we need to make this check here -> if the user is in preview pane, the note object would not be set    
  31824.      If note.HasItem("$Conflict") Then Exit Sub
  31825.      
  31826. 'if this is a parent document, check for PostedDate  
  31827.      If Not(NewDocument) Then     
  31828.           If (note.AppointmentType(0) = "3") Then        
  31829.                If (OriginalStartDate(0) <> note.StartDateTime(0)) Or (OriginalEndDate(0) <> note.EndDateTime(0)) Then
  31830.                     IsDateChange = True
  31831.                Else
  31832.                     IsDateChange = False
  31833.                End If           
  31834. 'see if the room has changed          
  31835.                If (OriginalRoom <> note.Room(0)) And (OriginalRoom <> "") Then
  31836.                     IsRoomChange = True
  31837.                     note.OriginalRoom = OriginalRoom
  31838.                Else
  31839.                     IsRoomChange = False
  31840.                End If
  31841.                If (IsDateChange Or IsRoomChange) And (note.chair(0) = owner) Then
  31842.                     If (note.IsResponse) Then
  31843.                          If (parentnote.HasItem("PostedDate") Or (note.RequiredResources(0) <> "") Or (note.RoomRequired(0) = "1" And note.Room(0) <> "")) Then NeedsReschedule = True
  31844.                     Else
  31845.                          If (note.HasItem("PostedDate")) Or (note.RequiredResources(0) <> "") Or (note.RoomRequired(0) = "1" And note.Room(0) <> "") Then NeedsReschedule = True                  
  31846.                     End If
  31847.                End If
  31848.           End If    
  31849.      End If     
  31850.      
  31851.      If (NeedsReschedule) Then note.SequenceNum = note.SequenceNum(0) + 1     
  31852.      
  31853. 'If they have not indicated that this should repeat then we don't need to do this stuff
  31854.  'If they have not indicated that this should repeat then we don't need to do this stuff
  31855.      If note.HasItem("OrgRepeat") And (note.tmpAction(0) <> "Confirm") Then
  31856.           Action = note.tmpAction(0)          
  31857.           Call RepeatSave
  31858.      End If
  31859.      
  31860.      If (NeedsReschedule) Then Call RescheduleAppointment
  31861.      
  31862.      Select Case note.tmpAction(0)
  31863.      Case "Confirm"
  31864.           ConfirmAppointment
  31865.      Case "Cancel"
  31866.           CancelAppointment
  31867.      Case "Decline"
  31868. 'this gets called if an invitee changes their mind
  31869.           DeclineInvitation
  31870.      Case "Delegate"
  31871. 'the invitee is delegating a meeting that has been accepted
  31872.           DelegateInvitation
  31873.      End Select
  31874.      
  31875.      On Error Goto ErrorRoutine
  31876.      
  31877.      If note.HasItem("$Alarm") Then
  31878.           ws.EnableAlarms(True)
  31879.           If Not(note.HasItem("$AlarmOffset") Or note.HasItem("$AlarmTime")) Then
  31880. 'they want it set automatically so default it as shown in calendar profile
  31881.                Select Case note.AppointmentType(0)
  31882.                Case "0","3"
  31883.                     Call note.ReplaceItemValue("$AlarmOffset", -1 * profile.AppointmentLead(0))
  31884.                Case "1"
  31885.                     AdjustMinutes = -1440 * profile.AnniversaryLead(0)
  31886.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  31887.                     alarmtime.AdjustMinute AdjustMinutes
  31888.                     Set note.~$AlarmTime = alarmtime
  31889.                Case "2"
  31890.                     AdjustMinutes = -1440 * profile.EventLead(0)
  31891.                     Set alarmtime = New NotesDateTime(startdt.DateOnly & " " & "00" & Intl.TimeSep & "00" & Intl.TimeSep & "01")
  31892.                     alarmtime.AdjustMinute AdjustMinutes
  31893.                     Set note.~$AlarmTime = alarmtime
  31894.                Case "4"
  31895.                     AdjustMinutes = -1 * profile.ReminderLead(0)
  31896.                     Set alarmtime = New NotesDateTime(remdt.DateOnly & " " & remdt.TimeOnly)
  31897.                     alarmtime.AdjustMinute AdjustMinutes
  31898.                     Set note.~$AlarmTime = alarmtime
  31899.                End Select
  31900.                Call note.ReplaceItemValue("$AlarmDescription", note.Subject(0))
  31901.           Else
  31902.                AlarmDesc = note.GetItemValue("$AlarmDescription")
  31903.                If (AlarmDesc(0) = "") Then Call note.ReplaceItemValue("$AlarmDescription",note.Subject(0))
  31904.           End If
  31905. 'if the document is not in the Alarms folder, put it in there if it is not the parent document of a repeat set          
  31906.           If Not(InAlarmFolder) Then
  31907.                If Not(note.HasItem("RepeatDates")) Then
  31908.                     If (note.noteid = "0") Then Call note.Save(True,True,True)
  31909.                     Call note.PutInFolder("$Alarms")
  31910.                End If
  31911.           Else
  31912. '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 
  31913. 'we only need to check startdate time, regardless of appointment type since the alarm is based upon the start date time
  31914.                If(OriginalStartDate(0) <> note.StartDateTime(0)) And Not(note.HasItem("RepeatIds"))Then Call note.PutInFolder("$Alarms")
  31915.           End If
  31916.           ws.CheckAlarms
  31917.      End If
  31918.      
  31919. 'check to see if this is a repeating entry and the repeat documents were not created
  31920.      If (NewDocument) And (note.HasItem("OrgRepeat")) And Not(note.HasItem("RepeatIds")) Then Call RepeatSave
  31921.      
  31922. 'see if we should invite the users/resources to this meeting
  31923.      If (note.AppointmentType(0) = "3") And (note.Chair(0) = Owner) And (ErrorStatus = 0) Then     
  31924.           If (note.Resources(0) <> "") Or (note.SendTo(0) <> "") Or (note.CopyTo(0) <> "") Or (note.RoomRequired(0) = "1" And note.RoomToReserve(0) <> "" And OriginalRoom = "") Then
  31925.                If Messagebox("Do you want to send this to the people/resources you invited?", 4 + 32, "Close") = 6 Then
  31926. 'the user wants to send this out
  31927. 'first, invite users
  31928.                     If (note.SendTo(0) <> "") Or (note.CopyTo(0) <> "") Then
  31929.                          If note.HasItem("Body") Then
  31930.                               ErrorStatus = SendInvitation
  31931.                               If (errorstatus > 0) Then
  31932.                                    continue = False
  31933.                                    ErrorStatus = 0
  31934.                                    Exit Sub
  31935.                               End If 
  31936.                          Else
  31937.                               ErrorStatus = SendInvitation
  31938.                               If (errorstatus > 0) Then
  31939.                                    continue = False
  31940.                                    ErrorStatus = 0
  31941.                                    Exit Sub
  31942.                               End If
  31943.                          End If
  31944.                          If (note.HasItem("OrgRepeat")) And (note.IsResponse) And (ChangeWhich <> "0") Then 
  31945.                               Messagebox "The people/resources invited will be for this repeat instance only.",0,"Status"
  31946.                               InstanceWarned =True
  31947.                          End If                               
  31948.                     End If                    
  31949. 'invite any resources -> resources are on a per repeat instance basis, so we only invite resources for this meeting                    
  31950.                     If (note.Resources(0) <> "") Then 
  31951.                          Call InviteResources(note)
  31952.                          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"
  31953.                     End If                         
  31954. 'invite the room -> the user can change the room for multiple repeat instances                   
  31955.                     If (note.RoomRequired(0) = "1") And (note.RoomToReserve(0) <> "") Then
  31956.                          If (note.HasItem("tmpRescheduleWhich")) Then
  31957.                               Call ProcessRepeatingResources(note.tmpreschedulewhich(0),ORS_MSGTYPE_INVITE,ORS_STATE_ROOM)
  31958.                          Else               
  31959.                               Call InviteRoom(note)
  31960.                          End If               
  31961.                     End If               
  31962.                End If     
  31963.           End If
  31964.      End If        
  31965.      If note.HasItem("RepeatFor") And (NewDocument) Then 
  31966.           note.Subject = "Do Not Delete - Repeat parent for " & note.Subject(0)
  31967.      End If
  31968.      
  31969.      If note.HasItem("OrgRepeat") And Not(note.IsResponse) Then note.RemoveItem("CalendarDateTime")
  31970.      
  31971.      Call MarkTempFields(note)
  31972.      Call note.Save(True,True,True)
  31973.      
  31974.      If (note.tmpAction(0) = "CounterPropose") Then     
  31975.           note.NoticeType = ORS_MSGTYPE_COUNTER
  31976.           note.Form = "Notice"               
  31977.           Call uidoc.Reload     
  31978.           noteunid = note.UniversalID
  31979.           Set note = db.GetDocumentByUNID(noteunid)
  31980.           Set uidoc =  ws.EditDocument(True,note) 
  31981.      End If
  31982.      
  31983. '     If notice Is Nothing Then
  31984.           'Call MarkTempFields
  31985.           'note.Save True,True
  31986.      ws.ViewRefresh
  31987.  '         Exit Sub    
  31988.   '   End If     
  31989.      
  31990. %REM     
  31991.      If notice.NoticeType(0) = ORS_MSGTYPE_RESCHEDULE Or _
  31992.      notice.NoticeType(0) = ORS_MSGTYPE_CONFIRMATION Or _
  31993.      notice.NoticeType(0) = ORS_MSGTYPE_CANCEL Or _
  31994.      notice.NoticeType(0) = ORS_MSGTYPE_STATUSUPDATE Then
  31995.           note.OriginalAttendees = OriginalAttendees
  31996.           'Call SendUpdateNotice
  31997.      End If
  31998. %ENDREM  
  31999.      Exit Sub
  32000.      
  32001. ErrorRoutine:
  32002.      Messagebox Error & " (QueryClose)"
  32003.      Exit Sub
  32004.      
  32005. End Sub
  32006. '++LotusScript Development Environment:2:2:Postrecalc:1:12
  32007. Sub Postrecalc(Source As Notesuidocument)
  32008.      Dim startitem As NotesItem
  32009.      Dim enditem As NotesItem
  32010.      
  32011.      If Not (source.EditMode) Then Exit Sub
  32012.      
  32013.      On Error Goto ErrorRoutine
  32014.      
  32015. 'if the user is attempting to change the appointment type of a repeating meeting, don't let them
  32016.      If Not(NewDocument) And (note.HasItem("OrgRepeat")) And (note.IsResponse) And (OriginalType <> note.AppointmentType(0)) Then note.AppointmentType = OriginalType
  32017.      
  32018. 'if there is no chair item and there should be, add it
  32019.      If Not(note.HasItem("Chair")) Then note.Chair = Owner
  32020.      
  32021. 'if the user is changing this from a non-invitation to an invitation, we need to set up the invitee objects
  32022.      If (note.AppointmentType(0) = "3" And OriginalType <> "3") And (note.Chair(0) = Owner) Then Call CreateInviteeTable(note)
  32023.      
  32024. '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
  32025.      If AlarmSet = 0 And note.HasItem("$Alarm") Then
  32026.           Call note.RemoveItem("$Alarm")
  32027.      End If
  32028. 'If $Alarm is not set and $AlarmOffset is not, we check if it should be     
  32029. '(they would both be set if the user set the alarm manually)     
  32030.      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
  32031.           Select Case note.AppointmentType(0)
  32032.           Case "0","3"
  32033.                If profile.SetAlarmAppointment(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  32034.           Case "1"
  32035.                If profile.SetAlarmAnniversary(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  32036.           Case "2"
  32037.                If profile.SetAlarmEvent(0) = "1" Then Call note.ReplaceItemValue("$Alarm", 1)
  32038.           Case "4"
  32039.                If (profile.SetAlarmReminder(0)) = "1" Then Call note.ReplaceItemValue("$Alarm",1)
  32040.           End Select
  32041.      End If
  32042.      
  32043. 'tmpFreeTime is set when you click the FreeTime action
  32044.      Select Case note.tmpFreeTime(0)
  32045. 'The first time through, we are only setting the Attendee list so that the FreeTime dialog can use it          
  32046.      Case "0"
  32047.           OriginalTimeRange = note.TimeRange
  32048.           note.tmpFreeTime = "1"
  32049. 'we need to get the actual text from the time control since LotusScript date/time objects don't work as well as Notes objects
  32050.           trdr.Text = uidoc.FieldGetText("TimeRange") 
  32051.           Set startdt = New NotesDatetime(uidoc.FieldGetText("StartDate") & " " & trdr.StartDateTime.TimeOnly)
  32052.           Set enddt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " " & trdr.EndDateTime.TimeOnly)
  32053.           Set note.StartDateTime = startdt
  32054.           Set note.EndDateTime = enddt
  32055.           note.StartDate = note.StartDateTime          
  32056. 'The second time through, we are recalcing TimeRange from StartDateTime and EndDateTime
  32057.      Case "1"
  32058.           note.RemoveItem("tmpFreeTime")     
  32059.           Set startitem = note.GetFirstItem("StartDateTime")
  32060.           Set enditem = note.GetFirstItem("EndDateTime")
  32061.           Set note.StartDate = startitem.DateTimeValue
  32062.           Set trdr.StartDateTime = startitem.DateTimeValue
  32063.           Set trdr.EndDateTime = enditem.DateTimeValue
  32064.           Set note.TimeRange = trdr
  32065. 'otherwise we are recalcing based on what is on the screen          
  32066.      Case Else
  32067.           If (note.AppointmentType(0) = "0") Or (note.AppointmentType(0) = "3") Then
  32068. 'this is a personal appointment or a meeting               
  32069.                trdr.Text = uidoc.FieldGetText("TimeRange") 
  32070.                Set startdt = New NotesDatetime(uidoc.FieldGetText("StartDate") & " " & trdr.StartDateTime.TimeOnly)
  32071.                Set enddt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " " & trdr.EndDateTime.TimeOnly)
  32072.                Set note.StartDateTime = startdt
  32073.                Set note.EndDateTime = enddt
  32074.                Set note.StartDate = startdt               
  32075.                Set trdr.StartDateTime = startdt
  32076.                Set trdr.EndDateTime = enddt
  32077.                Set note.TimeRange = trdr
  32078.                If startdt.TimeDifference(enddt) > 0 Then
  32079.                     enddt.AdjustDay(1)
  32080.                     Set note.EndDateTime = enddt
  32081.                End If
  32082.                Call note.ReplaceItemValue("$NoPurge",note.EndDateTime(0))
  32083.           Elseif (note.AppointmentType(0) = "4") Then
  32084. 'this is a reminder               
  32085.                Set remdt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " " & uidoc.FieldGetText("ReminderTime"))
  32086.                Set note.StartDateTime = remdt
  32087.                note.ReminderTime = note.StartDateTime
  32088.                note.StartDate = note.StartDateTime
  32089.                Call note.RemoveItem("EndDateTime")
  32090.                Call note.RemoveItem("TimeRange")
  32091.                Call note.ReplaceItemValue("$NoPurge",note.StartDateTime(0))
  32092.           Else
  32093.                Set Intl = session.INternational
  32094.                Set startdt = New NotesDateTime(uidoc.FieldGetText("StartDate") & " 00" & Intl.Timesep & "00" & Intl.Timesep & "01")
  32095.                Set note.StartDateTime = startdt
  32096.                Set enddt = New NotesDateTime(note.StartDateTime(0))
  32097.                'If note.Duration(0) > 1 Then enddt.AdjustDay(note.Duration(0) - 1)
  32098.                enddt.AdjustDay(note.Duration(0) - 1)
  32099.                enddt.AdjustHour(23)
  32100.                enddt.AdjustMinute(59)
  32101.                Set note.EndDateTime = enddt
  32102.                Call note.ReplaceItemValue("$NoPurge",note.EndDateTime(0))
  32103.           End If
  32104.      End Select
  32105.      
  32106. 'Reminder's should always have a $BusyPriority of 2
  32107.      If (note.AppointmentType(0) = "4") Or (note.BookFreeTime(0) = "1") Then
  32108.           Call note.ReplaceItemValue("$BusyPriority","2")
  32109.      Else
  32110.           Call note.ReplaceItemValue("$BusyPriority","1")               
  32111.      End If
  32112. 'if this is a reminder, remove the $BusyName
  32113.      If (note.AppointmentType(0) = "4") Or (note.HasItem("RepeatFor"))Then
  32114.           Call note.removeItem("$BusyName")          
  32115.      Else 
  32116.           Call note.replaceItemValue("$BusyName",Owner)
  32117.      End If
  32118.      note.CalendarDateTime = note.StartDateTime     
  32119. 'add the correct icon to the view, as well as the conflict checking value
  32120.      Select Case note.AppointmentType(0)
  32121.      Case "0" 
  32122.           Call note.ReplaceItemValue("_ViewIcon",160)
  32123.           note.OrgDontDoubleBook = profile.ConflictMeeting(0)
  32124.           note.OrgTable = ORS_ITEM_CALENDAR
  32125.      Case "1" 
  32126.           Call note.ReplaceItemValue("_ViewIcon",63)
  32127.           note.OrgDontDoubleBook = profile.ConflictAnniv(0)
  32128.           note.OrgTable = ORS_ITEM_ANNIVERSARY
  32129.      Case "2" 
  32130.           Call note.ReplaceItemValue("_ViewIcon",9)
  32131.           note.OrgDontDoubleBook = profile.ConflictEvent(0)
  32132.           note.OrgTable = ORS_ITEM_PLANNER          
  32133.      Case "3" 
  32134.           Call note.ReplaceItemValue("_ViewIcon",158)
  32135.           note.OrgDontDoubleBook = profile.ConflictMeeting(0)
  32136.           note.OrgTable = ORS_ITEM_CALENDAR
  32137.           If Not(note.HasItem("SequenceNum")) Then note.SequenceNum = 1          
  32138.      Case "4" 
  32139.           Call note.ReplaceItemValue("_ViewIcon",10)          
  32140.           note.OrgDontDoubleBook = ""
  32141.           note.OrgTable = ORS_ITEM_CALENDAR
  32142.           note.BookFreeTime = "1"
  32143.      End Select
  32144. 'if this is a meeting and the owner != chair, ensure that this is a meeting
  32145.      If (note.HasItem("Chair")) Then
  32146.           If (note.chair(0) <> Owner) Then note.AppointmentType = "3"
  32147.      End If
  32148.      
  32149.      'add the $PublicAccess item if this is a public document
  32150.      If (note.OrgConfidential(0) <> "1") Then 
  32151.           If Not (note.HasItem("$PublicAccess")) Then Call note.ReplaceItemValue("$PublicAccess","1")
  32152.      Else
  32153.           If (note.HasItem("$PublicAccess")) Then Call note.RemoveItem("$PublicAccess")
  32154.      End If
  32155.      
  32156.      Call source.Reload
  32157.      Call source.RefreshHideFormulas
  32158.      Exit Sub
  32159.      
  32160. ErrorRoutine:
  32161.      Messagebox Error & " (PostRecalc)"
  32162.      Exit Sub
  32163.      
  32164. End Sub
  32165. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  32166. Sub Postmodechange(Source As Notesuidocument)
  32167. 'If they have put it in edit mode, we want to save the original values     
  32168.      If Not(source.InPreviewPane) Then If source.EditMode And note.HasItem("OrgRepeat") Then Call SaveOriginalValues
  32169. End Sub
  32170. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  32171. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  32172. 'if the document is in the preview pane, editing is not allowed
  32173.      If (source.InPreviewPane) Then
  32174.           Continue = False
  32175.      Else
  32176.           If note.HasItem("RepeatIds") And Not(source.EditMode) Then continue = False          
  32177.      End If
  32178. End Sub
  32179. p!@    |"(
  32180. 3_    `4%
  32181. $h$h$`
  32182. p%X$-
  32183. K@    ,P    
  32184. [@    K(
  32185. K@    ,p
  32186. K@    ,P    K
  32187. K@    ,P    J
  32188. #}l'&
  32189. #}l'&
  32190. #}d(%
  32191.     Hidden Fields: 
  32192. AppointmentType
  32193.     0S0E
  32194. tmpRealDate
  32195.     0S0E
  32196. tmpRealDate
  32197. The invitation from 
  32198. chair
  32199.  for 
  32200. tmpRealDate
  32201. S0D0V
  32202. tmpRealTime
  32203. S1T1V
  32204.  has been confirmed."
  32205.     8S15S16S17S18S24S25S26S27S33S34S
  32206. tmpConfirmMsg
  32207. $AlarmY
  32208.     0S0E
  32209. TimeDisp
  32210. $AlarmTimeh
  32211. $AlarmTime
  32212. $AlarmOffseth
  32213. $AlarmOffsetA
  32214.  minutes 
  32215. $AlarmOffset
  32216. before
  32217. after
  32218.  the start time of this entry."
  32219.     1S2S10S11S25S32S33S34S35S38S39S43S45S46S
  32220. TimeDisp
  32221. Alarm enabled: an alarm will occur 
  32222. TimeDisp"
  32223.     0R3S4S6S7S8S
  32224. tmpAlarmDisplay
  32225. Calendar Entry
  32226. AppointmentType
  32227. tmpOwner
  32228. Chair
  32229.     1S2S3S2E4S5S6S
  32230. AppointmentType
  32231.     2S3S5S6S8S9S10S11S12S13S14S15S
  32232.     Duration (days):
  32233.     Brief description:
  32234.     Date:
  32235. AppointmentType
  32236.     1S2S3S4S
  32237.     Time:
  32238. CalendarProfile
  32239. CalEntryType
  32240.     1S2S
  32241.     0R3S4S5S6S7S8S
  32242. AppointmentType
  32243. Appointment|0Invitation|3Event|2Reminder|4Anniversary|1
  32244. AppointmentType
  32245. Duration
  32246. You must enter a duration of at least 1 day.{
  32247.     3S4S5S6S7S8S10SDuration
  32248. AppointmentType
  32249.     1S2S5S6S7S
  32250. StartDateTime
  32251.     0S0E
  32252. ReminderTime
  32253. SubjectEnter a brief description for this entry (i.e < 100 characters).
  32254. StartDateTime
  32255.     4S6S
  32256. newDateTime
  32257.     0RR1S2S
  32258. minutes
  32259. newDateTime
  32260.     0R1S2S
  32261. seconds
  32262. newDateTime
  32263.     0R1S2S3S4S
  32264. adjust time to the next 15 minute interval
  32265.     0RR1S
  32266. StartDateTime
  32267. minutes
  32268. newDateTime
  32269. minutes
  32270. seconds
  32271. minutes
  32272. newDateTime
  32273. minutes
  32274. seconds
  32275. minutes
  32276. newDateTime
  32277. minutes
  32278. seconds
  32279. minutes
  32280. newDateTime
  32281. minutes
  32282. seconds
  32283. newDateTime
  32284. seconds
  32285.     0R1S2S3S6S7S9S13S15S17S19S21S22S23S25S28S29S30S32S36S38S40S42S44S45S46S48S51S52S53S55S59S61S63S65S67S68S69S71S74S75S76S78S82S84S86S88S90S91S92S94S97S101S103S105S107S109S111S
  32286. MinuteDur
  32287. CalendarProfile
  32288. DefaultDuration
  32289.     0RR1S2S6S
  32290. MinuteDuration
  32291. MinuteDur
  32292. MinuteDur
  32293. MinuteDur
  32294.     0R1S2S4S6S7S9S10S12S13S16S17S18S
  32295. EndDateTime
  32296. StartDateTime
  32297. MinuteDuration
  32298.     0RR1S2S3S7S9S11S13S15S17S
  32299. StartDateTime
  32300.     0RRL
  32301. StartDate
  32302. StartDate
  32303.     3S4S5S6S
  32304. StartDate
  32305. AppointmentType
  32306.     1S2S3S4S5S
  32307. StartDateTime
  32308. EndDateTime
  32309.     6S7S8S9S
  32310. TimeRange
  32311. AppointmentType
  32312.     1S2S
  32313. tmpApptFlags
  32314. AppointmentType
  32315. tmpApptFlagsY
  32316. AppointmentType
  32317. BookFreeTime
  32318.     3S4S5S6S15S16S17S18S19S
  32319. tmpApptFlags
  32320. AppointmentType
  32321.     0R1S2S3S
  32322. BookFreeTime
  32323. Pencil in|1
  32324. CalendarProfile
  32325. CalEntryHide
  32326.     0S0E
  32327. OrgConfidential
  32328. Not for public viewing|1
  32329.     Detailed description:
  32330. AppointmentType
  32331.     1S2S
  32332. AppointmentType
  32333. tmpOwner
  32334. Chair
  32335.     1S2S3S2E4S5S6S7S8S
  32336.   @  
  32337.  @@ @
  32338.  `@ `
  32339. @ @@ 
  32340. @@@@@
  32341. @`@@`
  32342. ` @` 
  32343. `@@`@
  32344. ``@``
  32345.  Invitations
  32346.     Send invitations to:    
  32347. SendTo
  32348. SendTo
  32349. Principal
  32350.     1S2S10S
  32351. SendTo}
  32352. SendToEnter the names of people who you want to send invitations to.
  32353.     Optional invitees:    
  32354. CopyTo
  32355. CopyTo
  32356. Principal
  32357.     1S2S8S10S
  32358. CopyTo}
  32359. CopyToOptional invitees receive invitations but are not required to attend the meeting.
  32360. Broadcast
  32361. I don't want responses from the Invitees|1
  32362. tmpFreeTime
  32363.     1S2S3S
  32364. tmpApptFlags
  32365. AppointmentType
  32366.     0R1S2S3S
  32367. tmpOwner2
  32368. tmpOwner
  32369.     0R1S2S3S
  32370. tmpOwner2
  32371. SendTo
  32372. RequiredAttendees
  32373. CopyTo
  32374. OptionalAttendees
  32375. Resources
  32376. RequiredResources
  32377. Uninvited
  32378. StartDateTime
  32379. EndDateTime
  32380. tmpOwner2
  32381.     0R1S2S3S
  32382.     Find Free Time...
  32383. AppointmentType
  32384. RequiredAttendees
  32385.     1S2S3S4S8S9S
  32386.     Invitations have been sent to:    
  32387. RequiredAttendees
  32388.     0S0E
  32389. tmpSendTo
  32390. AppointmentType
  32391. OptionalAttendees
  32392.     1S2S3S4S8S9S
  32393.     Optional invitees:
  32394. OptionalAttendees
  32395.     0S0E
  32396. tmpCopyTo
  32397. AppointmentType
  32398.     1S2S3S4S5S6S
  32399.     Meeting location:    
  32400. tmpRoom
  32401. AppointmentType
  32402. tmpOwner
  32403. Chair
  32404.     1S2S3S4S5S6S7S8S
  32405. Reservations
  32406.   @  
  32407.  @@ @
  32408.  `@ `
  32409. @ @@ 
  32410. @@@@@
  32411. @`@@`
  32412. ` @` 
  32413. `@@`@
  32414. ``@``
  32415. Reservations
  32416. HomeServer
  32417.     1S2S
  32418. HomeServer
  32419. Invalid Home Server
  32420. Please edit your current location document and specify a home/mail server.
  32421.     0R3S4S5S6S12S13S14S
  32422. RoomAvailable
  32423. HomeServer
  32424. names.nsf
  32425. ($Rooms)
  32426. Select a room to reserve for this meeting.
  32427.     0R1S2S
  32428. RoomAvailable
  32429. RoomAvailable
  32430.     0RR1S2S3S10S11S
  32431. RoomAvailable
  32432. Error
  32433. RoomAvailable
  32434.     0R6S7S18S19S
  32435. RoomToReserve
  32436.     0R1S2S3S
  32437. RoomRequired
  32438.     0R1S2S3S
  32439. RoomSpecific
  32440.     0R1S2S3S
  32441. RoomAvailable
  32442.     0R1S2S3S
  32443.     Reserve Specific Room...
  32444.     - or -
  32445. HomeServer
  32446.     1S2S
  32447. HomeServer
  32448. Invalid Home Server
  32449. Please edit your current location document and specify a home/mail server.
  32450.     0R3S4S5S6S12S13S14S
  32451. Sites
  32452. HomeServer
  32453. names.nsf
  32454. ($Rooms)
  32455.     0R1S2S
  32456. Select the site to search for a room.
  32457. Sites
  32458.     0R1S2S7S8S
  32459. Invalid Selection
  32460. You didn't select a site.
  32461.     0R3S4S5S6S14S15S
  32462. SiteKey
  32463. CN=*/O=
  32464. Site"
  32465.     0R1S2S3S4S
  32466. Capacity
  32467. SendTo
  32468. CopyTo
  32469. RequiredAttendees
  32470. OptionalAttendees
  32471.     0R1S2S
  32472. RoomAvailable
  32473. SiteKey
  32474. StartDateTime
  32475. EndDateTime
  32476. Capacity
  32477.     0R1S2S
  32478. RoomAvailable
  32479. No Room Found
  32480. No room was found during the specified time.
  32481.     0R3S4S5S6S11S12S14S15S
  32482. RoomAvailable
  32483. RoomAvailable
  32484.     0RRR1S2S3S10S11S
  32485. RoomAvailable
  32486. Error
  32487. RoomAvailable
  32488.     0R6S7S18S19S
  32489. RoomToReserve
  32490.     0R1S2S3S
  32491. RoomRequired
  32492.     0R1S2S3S
  32493. RoomAvailable
  32494.     0R1S2S3S
  32495. RoomSpecific
  32496.     0R1S2S3S
  32497.     Find Available Room...
  32498. tmpRoom1
  32499. HomeServer
  32500.     1S2S
  32501. HomeServer
  32502. Invalid Home Server
  32503. Please edit your current location document and specify a home/mail server.
  32504.     0R3S4S5S6S12S13S14S
  32505. NewResources
  32506. HomeServer
  32507. names.nsf
  32508. ($Resources)
  32509. Resources
  32510. Select resources to reserve for this meeting.
  32511.     0R1S2S
  32512. NewResourcesZ
  32513. Error
  32514. NewResourcesV
  32515.     0R6S7S18S19S
  32516. Resources
  32517. NewResources
  32518. Resources
  32519. RequiredResources
  32520.     0R1S2S3S
  32521.     Reserve Resources...      
  32522. Resources
  32523. RequiredResources
  32524.     0S0E
  32525. tmpResources
  32526. AppointmentType
  32527.     1S2S
  32528.     _________________________________________________________________________
  32529. chair
  32530.     1S2S
  32531.     Chairperson:    
  32532. Chair
  32533. tmpChairperson
  32534. AppointmentType
  32535. Principal
  32536.     1S2S3S4S5S6S7S8S
  32537.     Sent by:    
  32538. Principal
  32539. Principal
  32540.     3S4S
  32541. tmpSentBy
  32542. AppointmentType
  32543. tmpOwner
  32544. Chair
  32545. OrgRepeat
  32546. Broadcast
  32547. RequiredResources
  32548. RoomRequired
  32549. tmpNewDoc
  32550.     1S2S3S4S5S2E6S7S8S9S10S16S17S18S19S21S22S23S24S25S26S27S28S30S31S
  32551. '++LotusScript Development Environment:2:5:(Options):0:66
  32552. '++LotusScript Development Environment:2:5:(Forward):0:1
  32553. Declare Sub Click(Source As Button)
  32554. '++LotusScript Development Environment:2:5:(Declarations):0:2
  32555. '++LotusScript Development Environment:2:2:BindEvents:1:129
  32556. Private Sub BindEvents(Byval Objectname_ As String)
  32557.      Static Source As BUTTON
  32558.      Set Source = Bind(Objectname_)
  32559.      On Event Click From Source Call Click
  32560. End Sub
  32561. '++LotusScript Development Environment:2:2:Click:1:12
  32562. Sub Click(Source As Button)
  32563.      
  32564.      Dim dispnote As NotesDocument
  32565.      
  32566.      
  32567.      If Not(HasInviteeInfo) Then 
  32568.           If (note.HasItem("OrgRepeat") And (note.IsResponse)) Then          
  32569.                Call GetInviteeStatus(parentnote,False)
  32570.                Call GetInviteeStatus(note,True)
  32571.           Else
  32572.                Call GetInviteeStatus(note,False)
  32573.           End If
  32574.      End If
  32575.      
  32576.      If Not(HasBeenProcessed) Then Call ProcessInviteeTable(note)
  32577.      
  32578.      Set dispnote = New NotesDocument(db)
  32579.      dispnote.tmpAccepted = UsersAccepted
  32580.      dispnote.tmpDeclined = UsersDeclined
  32581.      dispnote.tmpDelegated = UsersDelegated
  32582.      dispnote.tmpCounter = UsersCountered     
  32583.      dispnote.tmpDelegee = Delegees
  32584.      dispnote.tmpUninvited = note.Uninvited
  32585.      dispnote.tmpWaiting = UsersWaiting
  32586.      dispnote.tmpResAccepted = ResourcesReserved
  32587.      dispnote.tmpResDeclined = ResourcesDeclined
  32588.      dispnote.tmpResWaiting = ResourcesWaiting
  32589.      dispnote.SequenceNum = note.SequenceNum
  32590.      dispnote.Subject = note.Subject
  32591.      dispnote.Room = note.Room
  32592.      dispnote.Broadcast = note.Broadcast
  32593.      dispnote.StartDate = note.StartDate
  32594.      dispnote.StartDateTime = note.StartDateTime
  32595.      dispnote.EndDateTime = note.EndDateTime
  32596.      dispnote.requiredattendees = note.requiredattendees
  32597.      dispnote.optionalattendees = note.optionalattendees
  32598.      dispnote.RealDocUNID = note.UniversalID
  32599.      dispnote.NoticeType = note.NoticeType
  32600.      
  32601.      Call ws.DialogBox("(InviteeResponses)",False,False,True,,True,,"Invitee Responses",dispnote)    
  32602. End Sub
  32603. New Button
  32604. Need a newer version of Notes to execute this button.
  32605.     0S0E
  32606.     Display invitee responses...
  32607. AppointmentType
  32608. tmpOwner
  32609. Chair
  32610.     1S2S3S4S5S6S
  32611. RepeatIDs
  32612.     0S0E
  32613. Repeating meeting information:
  32614. RepeatUnit
  32615.     1S2S
  32616.     This meeting repeats 
  32617. RepeatInterval
  32618. tmpRepeatInterval
  32619. 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
  32620. RepeatUnit
  32621. tmpRepeatUnit
  32622. day|Dweek|Wmonth|MDmonth|MPyear|YDcustom|C
  32623. RepeatAdjust
  32624. tmpRepeatAdjust
  32625. RepeatUnit
  32626.  on Sunday|0
  32627.  on Monday|1
  32628.  on Tuesday|2
  32629.  on Wednesday|3
  32630.  on Thursday|4
  32631.  on Friday|5
  32632.  on Saturday|6
  32633. RepeatUnit
  32634.  on the 1st Sunday|1.0
  32635.  on the 1st Monday|1.1
  32636.  on the 1st Tuesday|1.2
  32637.  on the 1st Wednesday|1.3
  32638.  on the 1st Thursday|1.4
  32639.  on the 1st Friday|1.5
  32640.  on the 1st Saturday|1.6
  32641.  on the 2nd Sunday|2.0
  32642.  on the 2nd Monday|2.1
  32643.  on the 2nd Tuesday|2.2
  32644.  on the 2nd Wednesday|2.3
  32645.  on the 2nd Thursday|2.4
  32646.  on the 2nd Friday|2.5
  32647.  on the 2nd Saturday|2.6
  32648.  on the 3rd Sunday|3.0
  32649.  on the 3rd Monday|3.1
  32650.  on the 3rd Tuesday|3.2
  32651.  on the 3rd Wednesday|3.3
  32652.  on the 3rd Thursday|3.4
  32653.  on the 3rd Friday|3.5
  32654.  on the 3rd Saturday|3.6
  32655.  on the 4th Sunday|4.0
  32656.  on the 4th Monday|4.1
  32657.  on the 4th Tuesday|4.2
  32658.  on the 4th Wednesday|4.3
  32659.  on the 4th Thursday|4.4
  32660.  on the 4th Friday|4.5
  32661.  on the 4th Saturday|4.6
  32662.  on the Last Sunday|5.0
  32663.  on the Last Monday|5.1
  32664.  on the Last Tuesday|5.2
  32665.  on the Last Wednesday|5.3
  32666.  on the Last Thursday|5.4
  32667.  on the Last Friday|5.5
  32668.  on the Last Saturday|5.6
  32669. RepeatUnit
  32670.  on the 1st day|1
  32671.  on the 2nd day|2
  32672.  on the 3rd day|3
  32673.  on the 4th day|4
  32674.  on the 5th day|5
  32675.  on the 6th day|6
  32676.  on the 7th day|7
  32677.  on the 8th day|8
  32678.  on the 9th day|9
  32679.  on the 10th day|10
  32680.  on the 11th day|11
  32681.  on the 12th day|12
  32682.  on the 13th day|13
  32683.  on the 14th day|14
  32684.  on the 15th day|15
  32685.  on the 16th day|16
  32686.  on the 17th day|17
  32687.  on the 18th day|18
  32688.  on the 19th day|19
  32689.  on the 20th day|20
  32690.  on the 21st day|21
  32691.  on the 22nd day|22
  32692.  on the 23rd day|23
  32693.  on the 24th day|24
  32694.  on the 25th day|25
  32695.  on the 26th day|26
  32696.  on the 27th day|27
  32697.  on the 28th day|28
  32698.  on the 29th day|29
  32699.  on the 30th day|30
  32700.  on the 31st day|31
  32701.     3S4S6R8R10R12R14R16R18R20RS5E21S22S24R26R28R30R32R34R36R38R40R42R44R46R48R50R52R54R56R58R60R62R64R66R68R70R72R74R76R78R80R82R84R86R88R90R92R94RS5E95S96S98R100R102R104R106R108R110R112R114R116R118R120R122R124R126R128R130R132R134R136R138R140R142R144R146R148R150R152R154R156R158R160S
  32702.      starting on 
  32703. RepeatStartDate
  32704. tmpRepeatStartDate
  32705. RepeatHow
  32706. tmpRepeatHow
  32707. until|Ufor|F
  32708. RepeatFor
  32709. tmpRepeatUnit
  32710.     7S9S
  32711. RepeatHow
  32712. RepeatUntil
  32713. RepeatFor
  32714. RepeatForUnit
  32715. RepeatFor
  32716. RepeatForUnit
  32717. RepeatFor
  32718. RepeatForUnit
  32719. RepeatFor
  32720. month
  32721. RepeatForUnit
  32722. RepeatFor
  32723. RepeatFor
  32724. RepeatForUnit
  32725. RepeatFor
  32726. RepeatForUnit
  32727. weeks
  32728. RepeatFor
  32729. RepeatForUnit
  32730. months
  32731. RepeatFor
  32732. RepeatForUnit
  32733. years
  32734.     0R3S4S6S10S13S17S18S19S20S23S24S25S26S27S28S30S32S33S34S35S36S37S38S40S42S43S44S45S46S47S48S50S52S53S54S55S56S57S58S60S62S64S65S68S69S70S71S72S73S75S77S78S79S80S81S82S83S85S87S88S89S90S91S92S93S95S97S98S99S100S101S102S103S105S107S
  32735. tmpRepeatUntil
  32736. RepeatUnit
  32737.  (if the date occurs on a weekend the meeting 
  32738. RepeatWeekends
  32739. occurs anyway
  32740. RepeatWeekends
  32741. is moved to Friday
  32742. RepeatWeekends
  32743. is moved to Monday
  32744. RepeatWeekends
  32745. is moved to Nearest Weekday
  32746. RepeatWeekends
  32747. is deleted
  32748.     3S4S5S6S7S8S10S12S13S14R17S18S20S22S23S24S26S28S29S30S32S34S35S36S38S40S41S42S44S46S48S49S
  32749. tmpRepeatWeekends
  32750. RepeatIds
  32751.     0S0E
  32752.     Meeting Dates: 
  32753. RepeatDates
  32754. tmpRepeatDates
  32755. RepeatDates
  32756.     0S0E
  32757. IncludeComment
  32758.     1S2S
  32759.     My comments:
  32760. Comments
  32761. tmpComments
  32762. _ViewIcon
  32763.     Hidden:
  32764. Appointment
  32765. $ExpandGroups
  32766. Edit Document
  32767. Attendees
  32768. Principal
  32769. RepeatIds
  32770.     4S5S6S7R11S12S13S14S15S17S18S
  32771. _Forward
  32772. _Move to Folder...
  32773. Delivery Information...Kz
  32774. DeliveryInfo
  32775. Delivery Information
  32776.     4S5S6S7S8S9S10S12S
  32777. Close
  32778.     0S0E
  32779. Save and Close@
  32780.     0S7S12S|
  32781. Attendees
  32782. Principal
  32783. RepeatIds
  32784.     4S5S6S7R11S12S13S14S15S17S18S
  32785. _Edit Document
  32786. Attendees
  32787. Principal
  32788. RepeatIds
  32789.     4S5S6S7R11S12S13S14S15S17S18S
  32790. Remove\Invitees...'++LotusScript Development Environment:2:5:(Options):0:66
  32791. '++LotusScript Development Environment:2:5:(Forward):0:1
  32792. Declare Sub Click(Source As Button)
  32793. '++LotusScript Development Environment:2:5:(Declarations):0:2
  32794. '++LotusScript Development Environment:2:2:BindEvents:1:129
  32795. Private Sub BindEvents(Byval Objectname_ As String)
  32796.      Static Source As BUTTON
  32797.      Set Source = Bind(Objectname_)
  32798.      On Event Click From Source Call Click
  32799. End Sub
  32800. '++LotusScript Development Environment:2:2:Click:1:12
  32801. Sub Click(Source As Button)
  32802.      SelectUserToRemove
  32803. End Sub
  32804. AppointmentType
  32805. Principal
  32806. tmpOwner
  32807. OrgRepeat
  32808. NoticeType
  32809. tmpNewDoc
  32810.     1S2S3S4R5S6S7S8S9S2E10S14S15S16S17S18S19S
  32811. Remove\Rooms & Resources...K'++LotusScript Development Environment:2:5:(Options):0:66
  32812. '++LotusScript Development Environment:2:5:(Forward):0:1
  32813. Declare Sub Click(Source As Button)
  32814. '++LotusScript Development Environment:2:5:(Declarations):0:2
  32815. '++LotusScript Development Environment:2:2:BindEvents:1:129
  32816. Private Sub BindEvents(Byval Objectname_ As String)
  32817.      Static Source As BUTTON
  32818.      Set Source = Bind(Objectname_)
  32819.      On Event Click From Source Call Click
  32820. End Sub
  32821. '++LotusScript Development Environment:2:2:Click:1:12
  32822. Sub Click(Source As Button)
  32823.      Call SelectResourcesToRemove
  32824. End Sub
  32825. AppointmentType
  32826. Principal
  32827. tmpOwner
  32828. OrgRepeat
  32829. RequiredResources
  32830. NoticeType
  32831. tmpNewDoc
  32832.     1S2S3S4R5S6S7S8S9S2E10S14S15S17S18S19S20S21S22S24S25S26S27S28S29S
  32833. Send|
  32834. you can't send if there is no SendTo field
  32835. SendTo
  32836. CopyTo
  32837. No SendTo
  32838. You must enter at least one name in the Required or Optional Attendees field.
  32839.     0R7S8S11S12S14S20S22S26S
  32840. if it is a new doc, we need to save before sending in order to send the Body field
  32841.     0RR1S
  32842. this should only happen on @IsNewDoc - doing it always in order to coordinate with subform (should use db lib)
  32843.     0R1S
  32844. tmpAction
  32845. SaveBody
  32846.     0R1S2S3S
  32847. @If(@IsNewDoc; @Command([FileSave]);  ......  );
  32848.     0R1S
  32849. OrgPersonal
  32850. Personal Document
  32851. You cannot sent a personal document.
  32852.     0RR3S4S6S12S14S18S
  32853. tmpAction
  32854.     0RR1S2S3S
  32855.     0R7S12S
  32856. AppointmentType
  32857. PostedDateh
  32858. Principal
  32859. tmpOwner
  32860. RepeatIds
  32861.     1S2S3S4S9S10R11S12S14S15S
  32862. Repeat...
  32863. '++LotusScript Development Environment:2:5:(Options):0:66
  32864. '++LotusScript Development Environment:2:5:(Forward):0:1
  32865. Declare Sub Click(Source As Button)
  32866. '++LotusScript Development Environment:2:5:(Declarations):0:2
  32867. '++LotusScript Development Environment:2:2:BindEvents:1:129
  32868. Private Sub BindEvents(Byval Objectname_ As String)
  32869.      Static Source As BUTTON
  32870.      Set Source = Bind(Objectname_)
  32871.      On Event Click From Source Call Click
  32872. End Sub
  32873. '++LotusScript Development Environment:2:2:Click:1:12
  32874. Sub Click(Source As Button)
  32875.      'the refresh is temporary - until the date/time fields get fixed     
  32876.      uidoc.Refresh
  32877.      
  32878.      If ws.DialogBox("(RepeatForm)", True, True, False, False, False, False, "Repeat Rules") = False Then Exit Sub
  32879.      
  32880.      Select Case note.RepeatUnit(0)
  32881.      Case "D"
  32882.           note.RepeatInterval = note.RepeatInterval_D
  32883.      Case "W"
  32884.           note.RepeatInterval = note.RepeatInterval_W
  32885.           note.RepeatAdjust = note.RepeatAdjust_W
  32886.      Case "MD"
  32887.           note.RepeatInterval = note.RepeatInterval_MDMP
  32888.           note.RepeatAdjust = note.RepeatAdjust_MD
  32889.      Case "MP"
  32890.           note.RepeatInterval = note.RepeatInterval_MDMP
  32891.           note.RepeatAdjust = note.RepeatAdjust_MP
  32892.      Case "YD"
  32893.           note.RepeatInterval = note.RepeatInterval_YD
  32894.      Case "C"
  32895.           note.RepeatDates = note.RepeatAdjust_C
  32896.      End Select
  32897.      
  32898.      note.RemoveItem("RepeatInterval_D")
  32899.      note.RemoveItem("RepeatInterval_W")
  32900.      note.RemoveItem("RepeatInterval_MDMP")
  32901.      note.RemoveItem("RepeatInterval_YD")
  32902.      note.RemoveItem("RepeatAdjust_W")
  32903.      note.RemoveItem("RepeatAdjust_MD")
  32904.      note.RemoveItem("RepeatAdjust_MP")
  32905.      note.RemoveItem("RepeatAdjust_C")
  32906.      note.StartDate = note.RepeatStartDate
  32907.      uidoc.Reload
  32908. End Sub
  32909. tmpNewDoc
  32910.     2S3S
  32911. Alarm options...'++LotusScript Development Environment:2:5:(Options):0:66
  32912. '++LotusScript Development Environment:2:5:(Forward):0:1
  32913. Declare Sub Click(Source As Button)
  32914. '++LotusScript Development Environment:2:5:(Declarations):0:2
  32915. '++LotusScript Development Environment:2:2:BindEvents:1:129
  32916. Private Sub BindEvents(Byval Objectname_ As String)
  32917.      Static Source As BUTTON
  32918.      Set Source = Bind(Objectname_)
  32919.      On Event Click From Source Call Click
  32920. End Sub
  32921. '++LotusScript Development Environment:2:2:Click:1:12
  32922. Sub Click(Source As Button)
  32923.      Dim dateitem As NotesItem
  32924.      Dim timeitem As NotesItem
  32925.      
  32926.    'this causes the StartDateTime field to get rebuilt     
  32927.      note.tmpFreeTime = "2"
  32928.      uidoc.Refresh
  32929.      note.RemoveItem("tmpFreeTime")
  32930.      uidoc.Reload
  32931.      If profile.EnableAlarms(0) <> "1" Then
  32932.           Dim boxType As Long
  32933.           boxType& = MB_YESNO + MB_ICONQUESTION
  32934.           If Messagebox("You have not enabled alarms in your Calendar Profile.  Do you want to enable them now?", boxType&, "Enable Alarms?") = 6 Then
  32935.                ws.EnableAlarms(True)
  32936.                Call profile.ReplaceItemValue("EnableAlarms", "1")
  32937.                Call profile.Save(True,True,True)
  32938.           Else
  32939.                Exit Sub
  32940.           End If
  32941.      End If
  32942.      
  32943.      If ws.DialogBox("(AlarmDialog)", True, True, False, False, False, False, "Set Alarm") = False Then Exit Sub
  32944.      
  32945.      If note.tmpAlarmOff(0) = "1" Then
  32946.           note.RemoveItem("$Alarm")
  32947.           note.RemoveItem("$AlarmOffset")
  32948.           note.RemoveItem("$AlarmTime")
  32949.      Else
  32950.           Call note.ReplaceItemValue("$Alarm", 1)
  32951.           AlarmSet = 1
  32952.           If note.AppointmentType(0) = "0" Or note.AppointmentType(0) = "3" Then
  32953.                Select Case note.tmpBeforeOrAfter(0)
  32954.                Case "1"
  32955.                     Call note.ReplaceItemValue("$AlarmOffset", Cint(note.tmpAlarmOffset(0)) * -1)
  32956.                     Call note.RemoveItem("$AlarmTime")
  32957.                Case "2"
  32958.                     Call note.ReplaceItemValue("$AlarmOffset", Cint(note.tmpAlarmOffset(0)))
  32959.                     Call note.RemoveItem("$AlarmTime")
  32960.                Case "3"
  32961.                     note.RemoveItem("$AlarmOffset")
  32962.                     Set dateitem = note.GetFirstItem("tmpAlarmOnDate")
  32963.                     Set timeitem = note.GetFirstItem("tmpAlarmOnTime")
  32964.                     Set AlarmTime = New NotesDateTime(dateitem.DateTimeValue.DateOnly & " " & timeitem.DateTimeValue.TimeOnly)
  32965.                     Set note.~$AlarmTime = AlarmTime
  32966.                End Select
  32967.           Else
  32968.                note.RemoveItem("$AlarmOffset")
  32969.                Set dateitem = note.GetFirstItem("tmpAlarmOnDate")
  32970.                Set timeitem = note.GetFirstItem("tmpAlarmOnTime")
  32971.                Set AlarmTime = New NotesDateTime(dateitem.DateTimeValue.DateOnly & " " & timeitem.DateTimeValue.TimeOnly)
  32972.                Set note.~$AlarmTime = AlarmTime
  32973.           End If
  32974.      End If
  32975.      
  32976.      uidoc.Refresh
  32977. End Sub
  32978. Send Confirmation
  32979. tmpAction
  32980. Confirm
  32981.     0R1S2S3S
  32982.     0R7S12S
  32983. AppointmentType
  32984. Chair
  32985. tmpOwner
  32986. RepeatIds
  32987. NoticeType
  32988. tmpNewDoc
  32989.     1S2S3S4R5S6S7S8S10S14S15S16S17S19S
  32990. Other...'++LotusScript Development Environment:2:5:(Options):0:66
  32991. '++LotusScript Development Environment:2:5:(Forward):0:1
  32992. Declare Sub Click(Source As Button)
  32993. '++LotusScript Development Environment:2:5:(Declarations):0:2
  32994. '++LotusScript Development Environment:2:2:BindEvents:1:129
  32995. Private Sub BindEvents(Byval Objectname_ As String)
  32996.      Static Source As BUTTON
  32997.      Set Source = Bind(Objectname_)
  32998.      On Event Click From Source Call Click
  32999. End Sub
  33000. '++LotusScript Development Environment:2:2:Click:1:12
  33001. Sub Click(Source As Button)
  33002.      uidoc.EditMode = True 
  33003.      If (ws.DialogBox("(NoticeOptionsDlg)",True,True,,,,,"Options")) Then
  33004. 'the user selected an action and clicked on OK
  33005. 'if the user selected Accept, Decline, we can save and exit
  33006.           If (note.Comments(0) <> "") Then note.IncludeComment = "1"
  33007.           Select Case note.ResponseType(0)
  33008.           Case "0"
  33009. 'this is an acceptance
  33010. 'this will never get called from the calendar entry form since this is already an acceptance               
  33011.           Case "1"
  33012. 'this is a decline
  33013.                note.tmpAction = "Decline"
  33014.                Call uidoc.Save
  33015.                Call uidoc.Close
  33016.           Case "2"
  33017. 'this is a delegate
  33018.                note.tmpAction = "Delegate"
  33019.                Call uidoc.Save
  33020.                Call uidoc.Close            
  33021.           Case "3"
  33022. 'this is a counter propose
  33023.                note.tmpAction = "CounterPropose"
  33024.                Call uidoc.Save
  33025.                Call uidoc.Close
  33026.           End Select
  33027.      End If
  33028. End Sub
  33029. chair
  33030. tmpowner
  33031. DoNotProcessh
  33032. Broadcast
  33033. OrgRepeat
  33034. NoticeType
  33035. tmpNewDoc
  33036.     2S3S5S6S12S13S14S15S16S17S21S22S23S24S25S26S
  33037. Cancel Meeting
  33038. tmpAction
  33039. Cancel
  33040.     0R1S2S3S
  33041.     0R7S12S
  33042. Principal
  33043. tmpOwner
  33044. RepeatIds
  33045. AppointmentType
  33046. NoticeType
  33047. tmpNewDoc
  33048.     1S2R4S5S7S8S12S13S14S15S16S17S18S19S20S21S
  33049. Change Status to Accepted...'++LotusScript Development Environment:2:5:(Options):0:66
  33050. '++LotusScript Development Environment:2:5:(Forward):0:1
  33051. Declare Sub Click(Source As Button)
  33052. '++LotusScript Development Environment:2:5:(Declarations):0:2
  33053. '++LotusScript Development Environment:2:2:BindEvents:1:129
  33054. Private Sub BindEvents(Byval Objectname_ As String)
  33055.      Static Source As BUTTON
  33056.      Set Source = Bind(Objectname_)
  33057.      On Event Click From Source Call Click
  33058. End Sub
  33059. '++LotusScript Development Environment:2:2:Click:1:12
  33060. Sub Click(Source As Button)
  33061.      Call ChangeStatus
  33062. End Sub
  33063. PostedDateh
  33064. Principal
  33065. tmpOwner
  33066. RepeatIds
  33067. AppointmentType
  33068. NoticeType
  33069. tmpNewDoc
  33070.     5S6R7S8S10S11S13S17S18S19S20S21S22S23S24S25S26S27S28S
  33071. I Can No Longer Attend
  33072. tmpAction
  33073. Decline
  33074.     0R1S2S3S
  33075.     0R7S12S|
  33076. Principal
  33077. tmpOwner
  33078. Broadcast
  33079. RepeatIds
  33080. tmpNewDoc
  33081.     1S2S3S4S5S6S8S12S13S
  33082. Check Calendar
  33083. Calendar
  33084. StartDate
  33085.     0S0E
  33086. StartDate
  33087. RepeatIds
  33088. NoticeType
  33089.     2S3S7S8S9S10S
  33090. View Repeat Info'++LotusScript Development Environment:2:5:(Options):0:66
  33091. '++LotusScript Development Environment:2:5:(Forward):0:1
  33092. Declare Sub Click(Source As Button)
  33093. '++LotusScript Development Environment:2:5:(Declarations):0:2
  33094. '++LotusScript Development Environment:2:2:BindEvents:1:129
  33095. Private Sub BindEvents(Byval Objectname_ As String)
  33096.      Static Source As BUTTON
  33097.      Set Source = Bind(Objectname_)
  33098.      On Event Click From Source Call Click
  33099. End Sub
  33100. '++LotusScript Development Environment:2:2:Click:1:12
  33101. Sub Click(Source As Button)
  33102.      If (parentnote Is Nothing) Then
  33103.           Msgbox "The parent document cannot be found."
  33104.           Exit Sub
  33105.      End If
  33106.      Call ws.DialogBox("(RepeatInfo)",False,False,True,True,True,True,"Repeat Info",parentnote)
  33107. End Sub
  33108. OrgRepeat
  33109. OrgRepeat
  33110.     6S7S12S13S
  33111. '++LotusScript Development Environment:2:5:(Options):0:66
  33112. '++LotusScript Development Environment:2:5:(Forward):0:1
  33113. Declare Sub Click(Source As Button)
  33114. '++LotusScript Development Environment:2:5:(Declarations):0:2
  33115. '++LotusScript Development Environment:2:2:BindEvents:1:129
  33116. Private Sub BindEvents(Byval Objectname_ As String)
  33117.      Static Source As BUTTON
  33118.      Set Source = Bind(Objectname_)
  33119.      On Event Click From Source Call Click
  33120. End Sub
  33121. '++LotusScript Development Environment:2:2:Click:1:12
  33122. Sub Click(Source As Button)
  33123.      Set helpdoc = New NotesDocument(db)
  33124. 'determine the context the user is in
  33125.      If (uidoc.IsNewDoc) Then
  33126.           helpdoc.tmpContext = "0"     'user creating brand new document
  33127.      Elseif Not(uidoc.IsNewDoc) And (note.AppointmentType(0) <> "3") Then
  33128.           helpdoc.tmpContext = "1"     'user viewing existing, non-meeting entry    
  33129.      Elseif Not(uidoc.IsNewDoc) And (note.AppointmentType(0) = "3") Then
  33130.           If  (note.Chair(0) = note.tmpowner(0)) Then
  33131.                helpdoc.tmpContext = "2"     'user viewing existing meeting entry when they are the chair
  33132.           Else
  33133.                helpdoc.tmpContext = "3"     'user viewing existing meeting entry when they are the invitee
  33134.           End If
  33135.      End If
  33136.      Call ws.DialogBox("(CalendarHelp)",True,True,True,True,True,True,"C&S Workflow Help",helpdoc)
  33137. End Sub
  33138. Categori_zeK
  33139. Send Docu_ment
  33140. _Remove from Folder...
  33141. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  33142. '++LotusScript Development Environment:2:5:(Forward):0:1
  33143. Declare Sub Click(Source As Button)
  33144. '++LotusScript Development Environment:2:5:(Declarations):0:2
  33145. '++LotusScript Development Environment:2:2:BindEvents:1:129
  33146. Private Sub BindEvents(Byval Objectname_ As String)
  33147.      Static Source As BUTTON
  33148.      Set Source = Bind(Objectname_)
  33149.      On Event Click From Source Call Click
  33150. End Sub
  33151. '++LotusScript Development Environment:2:2:Click:1:12
  33152. Sub Click(Source As Button)
  33153.      Call CreateNewDoc(NEW_MEMO)
  33154. End Sub
  33155. tmpnewdoc
  33156.     1S2S
  33157. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  33158. '++LotusScript Development Environment:2:5:(Forward):0:1
  33159. Declare Sub Click(Source As Button)
  33160. '++LotusScript Development Environment:2:5:(Declarations):0:2
  33161. '++LotusScript Development Environment:2:2:BindEvents:1:129
  33162. Private Sub BindEvents(Byval Objectname_ As String)
  33163.      Static Source As BUTTON
  33164.      Set Source = Bind(Objectname_)
  33165.      On Event Click From Source Call Click
  33166. End Sub
  33167. '++LotusScript Development Environment:2:2:Click:1:12
  33168. Sub Click(Source As Button)
  33169.      Call CreateNewDoc(NEW_CALENDAR)
  33170. End Sub
  33171. tmpnewdoc
  33172.     1S2S
  33173. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  33174. '++LotusScript Development Environment:2:5:(Forward):0:1
  33175. Declare Sub Click(Source As Button)
  33176. '++LotusScript Development Environment:2:5:(Declarations):0:2
  33177. '++LotusScript Development Environment:2:2:BindEvents:1:129
  33178. Private Sub BindEvents(Byval Objectname_ As String)
  33179.      Static Source As BUTTON
  33180.      Set Source = Bind(Objectname_)
  33181.      On Event Click From Source Call Click
  33182. End Sub
  33183. '++LotusScript Development Environment:2:2:Click:1:12
  33184. Sub Click(Source As Button)
  33185.      Call CreateNewDoc(NEW_TASK)
  33186. End Sub
  33187. tmpnewdoc
  33188.     1S2S
  33189. Copy into\New GroupK,
  33190. NewGroup
  33191.     0S0E
  33192. tmpnewdoc
  33193.     1S2S
  33194. (>x    8n
  33195. O=Lotus Notes
  33196. O=Lotus Notes
  33197. PURSAFO
  33198. |.:#U
  33199. O=Lotus Notes
  33200. CN=Lotus Notes Template Development/O=Lotus Notes
  33201. PURSAFO
  33202. Fde!f^^
  33203. CompletedOn
  33204. EndDate
  33205. CalendarDate_Time___Start
  33206. CalendarDate_Time___End
  33207. CalendarDates
  33208. CalendarDate
  33209. RepeatDates
  33210. CalendarDateTime
  33211. EndDateTime
  33212. $NoPurge
  33213. StartTime
  33214. EndTime
  33215. StartEndTime
  33216. StartDateTime
  33217. $FormPublicAccess
  33218. $TITLE
  33219. $INFO
  33220. $WINDOWTITLE
  33221. $Script
  33222. $$Script_O
  33223. $$ScriptName
  33224. $$FormScript
  33225. $$$FormScript_O
  33226. Duration
  33227. ReminderTime
  33228. StartDate
  33229. TimeRange
  33230. _ViewIcon
  33231. $BODY
  33232. $ACTIONS
  33233. $SCRIPTOBJ_7
  33234. $SCRIPTOBJ_8
  33235. $SCRIPTOBJ_10
  33236. $SCRIPTOBJ_11
  33237. $SCRIPTOBJ_13
  33238. $SCRIPTOBJ_15
  33239. $SCRIPTOBJ_18
  33240. $SCRIPTOBJ_19
  33241. $SCRIPTOBJ_23
  33242. $SCRIPTOBJ_24
  33243. $SCRIPTOBJ_25
  33244. $PublicAccess
  33245. '++LotusScript Development Environment:2:5:(Options):0:74
  33246. Option Public
  33247. Use "ObjectVariables"
  33248. '++LotusScript Development Environment:2:5:(Forward):0:1
  33249. Declare Type NamesTable
  33250. Declare Sub Initialize
  33251. Declare Function GetLocalNAB() As NotesDatabase
  33252. Declare Sub CreateGroupDocument(pCollection As NotesDocumentCollection,pdbNAB As NotesDatabase)
  33253. Declare Sub GetDocumentNames(pNote As NotesDocument,pSend As String,pCopy As String,pFrom As String)
  33254. Declare Function FindName(pName As String) As Integer
  33255. Declare Function GetNameComponents(pName As String, pFullName As String, pDomainName As String)
  33256. Declare Sub AddNewName(pCanonicalName As String,pDomainName As String)
  33257. Declare Function GetNamesList() As Variant
  33258. '++LotusScript Development Environment:2:5:(Declarations):0:10
  33259. Type NamesTable
  33260.      Common As String
  33261.      Canonical As String
  33262.      Domain As String
  33263. End Type
  33264. Dim selecteddocs As NotesDocumentCollection
  33265. Dim nabdb As NotesDatabase
  33266. Dim GroupMembers() As NamesTable
  33267. Dim MemberCounter As Integer
  33268. Dim MaxMembers As Integer
  33269. Const TABLESIZE = 20
  33270. '++LotusScript Development Environment:2:2:Initialize:1:10
  33271. Sub Initialize
  33272.      Set session = New NotesSession
  33273.      Set ws = New NotesUIWorkspace
  33274.      Set nabdb = GetLocalNAB()
  33275.      
  33276.      Set selecteddocs = session.CurrentDatabase.UnprocessedDocuments
  33277.      
  33278.      If (selecteddocs.Count = 0) Then 
  33279.           Messagebox "Please select one or more documents before executing this command.",16,"Error"
  33280.           Exit Sub
  33281.      End If
  33282.      
  33283. 'if there is a document currently open, and it is a new document, we cannot proceed
  33284.      Set uidoc = ws.CurrentDocument
  33285.      If Not(uidoc Is Nothing) Then
  33286.           If uidoc.IsNewDoc Then
  33287.                Messagebox "This action cannot be executed on a new document.",16,"Error"
  33288.                Exit Sub
  33289.           End If
  33290.      End If
  33291.      
  33292.      Call CreateGroupDocument(selecteddocs,nabdb)
  33293. End Sub
  33294. '++LotusScript Development Environment:2:1:GetLocalNAB:1:8
  33295. Function GetLocalNAB() As NotesDatabase
  33296.  *Given a session object, gets the local NAB for the local desktop
  33297. %END REM
  33298.      
  33299.      Dim sNamesLine As String
  33300.      Dim nPos As Integer
  33301.      
  33302.      
  33303.      sNamesLine = session.GetEnvironmentString("names",True)
  33304.      
  33305. 'make sure this value was found; if not, assume names.nsf
  33306.      If (sNamesLine = "") Then
  33307.           Set GetLocalNAB = New NotesDatabase("","names.nsf")
  33308.      Else
  33309. 'check to see if multiple NAB's are listed; we use the first one
  33310.           nPos = Instr(sNamesLine,",")
  33311.           If (nPos > 0) Then sNamesLine = Left$(sNamesLine,nPos-1)
  33312.           
  33313. 'open the database
  33314.           Set GetLocalNAB = New NotesDatabase("",sNamesLine)          
  33315.      End If
  33316. End Function
  33317. '++LotusScript Development Environment:2:2:CreateGroupDocument:1:8
  33318. Sub CreateGroupDocument(pCollection As NotesDocumentCollection,pdbNAB As NotesDatabase)
  33319.  *Given a collection of documents and a NAB database, this routine
  33320.   will create a group document in the editor with the 
  33321.   members item filled in
  33322. %END REM
  33323.      Dim groupnote As NotesDocument
  33324.      Dim mailnote As NotesDocument
  33325.      Dim GroupUIDoc As NotesUIDocument
  33326.      Dim sFromItem As String
  33327.      
  33328.      Redim GroupMembers(TABLESIZE)
  33329.      MaxMembers = TABLESIZE
  33330.      MemberCounter = 0
  33331.      
  33332.      Set mailnote = pCollection.GetFirstDocument
  33333.      While Not(mailnote Is Nothing)  
  33334.           Select Case mailnote.Form(0)
  33335.           Case "Memo","Reply"
  33336.                If mailnote.HasItem("Principal") Then
  33337.                     sFromItem = "Principal"
  33338.                Else
  33339.                     sFromItem = "From"
  33340.                End If 
  33341.                Call GetDocumentNames(mailnote,"SendTo","CopyTo",sFromItem)
  33342.           Case "Appointment","Notice"
  33343.                If mailnote.HasItem("Principal") Then
  33344.                     sFromItem = "Principal"
  33345.                Else
  33346.                     sFromItem = "Chair"
  33347.                End If 
  33348.                Call GetDocumentNames(mailnote,"RequiredAttendees","OptionalAttendees",sFromItem)
  33349.           Case Else
  33350. 'not sure what we are dealing with, so assume mail-related item names
  33351.                If mailnote.HasItem("Principal") Then
  33352.                     sFromItem = "Principal"
  33353.                Else
  33354.                     sFromItem = "From"
  33355.                End If 
  33356.                Call GetDocumentNames(mailnote,"SendTo","CopyTo",sFromItem)
  33357.           End Select        
  33358.           
  33359. 'get the next document
  33360.           Set mailnote = pCollection.GetNextDocument(mailnote)
  33361.      Wend
  33362.      
  33363. 'now that we have gone through all documents, create the group document
  33364.      Set groupnote = New NotesDocument(pdbNAB)
  33365.      groupnote.Form = "Group"
  33366.      groupnote.Type = "Group"
  33367.      groupnote.DocumentAccess = session.UserName     
  33368. 'now, iterate through the list of names     
  33369.      groupnote.tmpMembers = GetNamesList()
  33370.      groupnote.Members = Evaluate(|@Trim(@Unique(tmpMembers))|,groupnote)
  33371.      groupnote.RemoveItem "tmpMembers"
  33372.      Call ws.EditDocument(True,groupnote)
  33373. End Sub
  33374. '++LotusScript Development Environment:2:2:GetDocumentNames:1:8
  33375. Sub GetDocumentNames(pNote As NotesDocument,pSend As String,pCopy As String,pFrom As String)
  33376.  *Given a document, retrieve the item names given
  33377.  *Inputs
  33378.   pSend -> item name of SendTo item
  33379.   pCopy -> item name of CopyTo item
  33380.   pFrom -> item name of From item
  33381.  *Return
  33382.   array of names
  33383. %END REM
  33384.      
  33385.      Dim vSendTo As Variant
  33386.      Dim vCopyTo As Variant
  33387.      Dim vFrom As Variant
  33388.      Dim CanonicalName As String
  33389.      Dim DomainName As String
  33390.      
  33391.      
  33392.      vSendTo = pNote.GetItemValue(pSend)
  33393.      vCopyTo = pNote.GetItemValue(pCopy)
  33394.      vFrom = pNote.GetItemValue(pFrom)
  33395.      
  33396.      Forall names In vSendTo
  33397.           If (names <> "") Then          
  33398. 'first, try to locate this person in the namestable
  33399.                Call GetNameComponents(Cstr(names),CanonicalName,DomainName)
  33400.                If (FindName(CanonicalName) = -1) Then
  33401.                     Call AddNewName(CanonicalName,DomainName)
  33402.                End If
  33403.           End If
  33404.      End Forall
  33405.      
  33406.      Forall names In vCopyTo
  33407.           If (names <> "") Then          
  33408. 'first, try to locate this person in the namestable
  33409.                Call GetNameComponents(Cstr(names),CanonicalName,DomainName)
  33410.                If (FindName(CanonicalName) = -1) Then
  33411.                     Call AddNewName(CanonicalName,DomainName)
  33412.                End If
  33413.           End If
  33414.      End Forall
  33415.      
  33416. 'see if the from value already exists
  33417.      If (FindName(vFrom(0)) = -1) Then
  33418.           If (pNote.HasItem("FromDomain")) Then     
  33419.                Call AddNewName(vFrom(0),pNote.FromDomain(0))
  33420.           Else
  33421.                Call AddnewName(vFrom(0),"")
  33422.           End If
  33423.      End If        
  33424.      
  33425. End Sub
  33426. '++LotusScript Development Environment:2:1:FindName:1:8
  33427. Function FindName(pName As String) As Integer
  33428.      Dim key As New NotesName(pName)
  33429.      Dim x As Integer
  33430.      Dim namUser As New NotesName(session.UserName)
  33431.      
  33432.      For x = 0 To (MemberCounter - 1)
  33433. 'do a canonical name comparison
  33434.           If Lcase(key.Canonical) = Lcase(GroupMembers(x).Canonical) Or Lcase(namUser.Canonical) = Lcase(key.Canonical) Then
  33435.                FindInvitee = x 
  33436.                Exit Function
  33437. 'do a common name comparison               
  33438.           Elseif Lcase(key.Common) = Lcase(GroupMembers(x).Common) Or Lcase(namUser.Common) = Lcase(key.Common) Then
  33439.                FindInvitee = x 
  33440.                Exit Function               
  33441.           End If
  33442.      Next
  33443.      
  33444.      FindName = -1
  33445. End Function
  33446. '++LotusScript Development Environment:2:1:GetNameComponents:1:8
  33447. Function GetNameComponents(pName As String, pFullName As String, pDomainName As String)
  33448.      
  33449.      Dim pos As Integer
  33450.      
  33451.      pos = Instr(pName,"@")
  33452.      
  33453.      If(pos > 0) Then
  33454.           Set nam = New NotesName(Left$(pName,pos-1))     
  33455.           pFullName = nam.Canonical
  33456.           pDomainName = Right$(pName,Len(pName)-pos)
  33457.      Else
  33458.           Set nam = New NotesName(pName)     
  33459.           pFullName = nam.Canonical
  33460.           pDomainName = ""
  33461.      End If
  33462. End Function
  33463. '++LotusScript Development Environment:2:2:AddNewName:1:8
  33464. Sub AddNewName(pCanonicalName As String,pDomainName As String)
  33465.      
  33466. 'see if we need to increase the table
  33467.      If (MaxMembers = MemberCounter) Then
  33468.           MaxMembers = MaxMembers + TABLESIZE
  33469.           Redim Preserve GroupMembers(MaxMembers)
  33470.      End If
  33471.      Set nam = New NotesName(pCanonicalName)
  33472.      GroupMembers(MemberCounter).Common = nam.Common
  33473.      GroupMembers(MemberCounter).Canonical = nam.Canonical
  33474.      GroupMembers(MemberCounter).Domain = pDomainName
  33475.      MemberCounter = MemberCounter + 1
  33476. End Sub
  33477. '++LotusScript Development Environment:2:1:GetNamesList:1:8
  33478. Function GetNamesList() As Variant
  33479.      Dim vRetNames() As Variant
  33480.      Dim x As Integer
  33481.      
  33482.      Redim vRetNames(MemberCounter)
  33483.      
  33484.      For x = 0 To (MemberCounter-1)
  33485.           If (GroupMembers(x).Domain <> "") Then
  33486.                vRetNames(x) = GroupMembers(x).Canonical & "@" & GroupMembers(x).Domain
  33487.           Else
  33488.                vRetNames(x) = GroupMembers(x).Canonical                
  33489.           End If
  33490.      Next
  33491.      GetNamesList = vRetNames
  33492. End Function
  33493.     +     $
  33494. tmpMembers
  33495.     0S0E
  33496. O=Lotus Notes
  33497. O=Lotus Notes
  33498. PURSAFO
  33499. |.:#U
  33500. O=Lotus Notes
  33501. CN=Lotus Notes Template Development/O=Lotus Notes
  33502. PURSAFO
  33503. Fde!f^^
  33504. $TITLE
  33505. $AssistType
  33506. $AssistLastRun
  33507. $AssistDocCount
  33508. $AssistFlags
  33509. $AssistTrigger
  33510. $AssistInfo
  33511. $AssistQuery
  33512. $AssistAction
  33513. $AssistAction_Ex
  33514. Times New Roman
  33515. VersionOpt|
  33516.     6S7S9S14S
  33517. $VersionOpt
  33518.     0R1S2S3S
  33519. SavedOnce
  33520.     0R1S2S3S
  33521. PostedDate(
  33522.     0R1S2S3S
  33523. DeliveredDate
  33524.     0R1S2S3S
  33525. $AutoEditMode
  33526.     0R1S2S3S
  33527. MailSaveOptions
  33528.     0R1S2S3S
  33529. VersionOpt
  33530.     0R4S
  33531. InheritedBody
  33532. New Reply
  33533. Subject
  33534. Subject
  33535. Subject
  33536.     4S6S12S13S14S15S17S21S23S25S26S28S
  33537. '++LotusScript Development Environment:2:5:(Options):0:74
  33538. Option Public
  33539. Use "EmailProcessing"
  33540. Use "DocumentConversions"
  33541. '++LotusScript Development Environment:2:5:(Forward):0:1
  33542. '++LotusScript Development Environment:2:5:(Declarations):0:2
  33543.  Reply'++LotusScript Development Environment:2:5:(Options):0:66
  33544. '++LotusScript Development Environment:2:5:(Forward):0:1
  33545. Declare Sub Postopen(Source As Notesuidocument)
  33546. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  33547. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  33548. Declare Sub Postmodechange(Source As Notesuidocument)
  33549. '++LotusScript Development Environment:2:5:(Declarations):0:2
  33550. '++LotusScript Development Environment:2:2:BindEvents:1:129
  33551. Private Sub BindEvents(Byval Objectname_ As String)
  33552.      Static Source As NOTESUIDOCUMENT
  33553.      Set Source = Bind(Objectname_)
  33554.      On Event Postopen From Source Call Postopen
  33555.      On Event Querysave From Source Call Querysave
  33556.      On Event Queryclose From Source Call Queryclose
  33557.      On Event Postmodechange From Source Call Postmodechange
  33558. End Sub
  33559. '++LotusScript Development Environment:2:2:Postopen:1:12
  33560. Sub Postopen(Source As Notesuidocument)
  33561.      
  33562.      Set ws = New NotesUIWorkSpace
  33563.      Set uidoc = source
  33564.      
  33565.      Call EmailOpen
  33566.      
  33567. End Sub
  33568. '++LotusScript Development Environment:2:2:Querysave:1:12
  33569. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  33570.      
  33571.      Call EmailSave(Continue)
  33572.      
  33573. End Sub
  33574. '++LotusScript Development Environment:2:2:Queryclose:1:12
  33575. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  33576.      
  33577.      Call EmailClose(Continue)
  33578.      
  33579. End Sub
  33580. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  33581. Sub Postmodechange(Source As Notesuidocument)
  33582.      
  33583.      Call EmailModeChange
  33584.      
  33585. End Sub
  33586.     Always hidden: 
  33587. SendTo
  33588. CopyTo
  33589.     1S2S
  33590. InheritedSendTo
  33591. ReplyTo
  33592. InheritedReplyTo
  33593. Principal
  33594. Principal
  33595. Principal
  33596. Fromh
  33597.     1S2S8S9S10S11S13S15S20S22S
  33598. FromDomainh
  33599. FromDomain"
  33600.     0R7S8S9S10S11S13SInheritedFrom
  33601. FromDomain
  33602. InheritedFromDomain
  33603. Principal
  33604. CalendarProfile
  33605. Owner
  33606.     1S2S3S7S
  33607. FromPerson memo is from.
  33608. DefaultLogo
  33609. StdNotesLtrGateway
  33610.     4S9S13S16S18SLogo
  33611.     0S0E
  33612.     0S0E
  33613. Encrypt
  33614.     0S0E
  33615. DefaultMailSaveOptions
  33616. $KeepPrivate
  33617. $KeepPrivate
  33618. $KeepPrivate
  33619.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  33620. $HideMailHeader
  33621.     0S0E
  33622.     From:    
  33623. Principal
  33624. Principal
  33625.     1S2S5S6S8S10S
  33626.     0R1S2S8S
  33627.     0R1S2S5S6S8S14S18S
  33628.     0R1S2S5S6S8S14S18S
  33629. SentBy
  33630. X400FreeForm^
  33631.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  33632. SentBy
  33633. FromDomain
  33634. FromDomain
  33635. FromDomain
  33636. FromDomain
  33637.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  33638. FromName
  33639. Principal
  33640. Principal
  33641.     0RR1S2S9S11S15S
  33642. FromStops
  33643.     0R1S2S6S
  33644. FromName
  33645. FromStops
  33646. FromStops
  33647. FromStops
  33648.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  33649.      on 
  33650. PostedDateh
  33651. PostedDate
  33652.     4S5S10S12S
  33653. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  33654. $HideMailHeader
  33655. StdNotesLtr16
  33656.     7S9S10S11S13S15S
  33657. tmpDate
  33658. $HideMailHeader
  33659.     4S5S6S8S10S11S
  33660.     From:    
  33661. tmpDisplayFrom_Preview
  33662. tmpDisplayFrom_NoLogo
  33663.      on 
  33664. PostedDateh
  33665. PostedDate
  33666.     4S5S10S12S
  33667. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  33668. ReplyDate
  33669. ReplyTo
  33670. $HideMailHeader
  33671.     2S3S4S5S6S7S9S10S
  33672. Please respond
  33673. ReplyTo
  33674. ReplyTo
  33675. ReplyDate
  33676. ReplyDate
  33677.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  33678. $HideMailHeader
  33679. Principal
  33680. Principal
  33681. Principal
  33682. Principal
  33683. Principal
  33684.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  33685.     Sent by:    
  33686. FromDomain
  33687. FromDomain
  33688. FromDomain
  33689. FromDomain
  33690.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  33691. FromName
  33692.     0RR1S2S6S
  33693. FromStops
  33694.     0R1S2S6S
  33695. FromName
  33696. FromStops
  33697. FromStops
  33698. FromStops
  33699.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  33700. SendTo
  33701. CopyTo
  33702.   cc:  
  33703. CopyTo
  33704.     1S8S13S14S2E17S18S21S28S31S
  33705. MailAddress
  33706. InheritedReplyToh
  33707. InheritedReplyTo
  33708. InheritedReplyTo
  33709. InheritedFrom
  33710.     1S2S8S9S10S11S13S15S
  33711. MailAddress
  33712.     0RR 
  33713. SendTo}
  33714.     0S0E
  33715. SendTo^
  33716. No names found to send mail.{
  33717.     1S6S7S8S9S11S16S
  33718. SendToList of primary people to send memo.
  33719. CopyTo}
  33720.     0S0E
  33721. CopyToList of people to send a copy of the memo.
  33722. DeliveredDate
  33723. BlindCopyTo
  33724. (bcc: 
  33725. BlindCopyTo
  33726.     4S5S6S7S8S9S10S11S13S14S15S19S21S22S24StmpBlindCopyTo
  33727.     bcc:
  33728. BlindCopyTo
  33729.     0S0E
  33730. BlindCopyToList of undisclosed people to send copies of memo.
  33731.     Subject:
  33732. ReplyText
  33733. MailStEd|
  33734.     1S2S
  33735. Prefix
  33736. ReplyText
  33737.     0R1S2S8S9S11S13S
  33738. Prefix
  33739. ReplyText
  33740. Subject
  33741. Topic
  33742. Subject
  33743.     0R1S2S5S6S8S10S11S12S14S16S
  33744. Prefix
  33745. Subj"
  33746.     0R10S12S16S17S19S21S22S23S
  33747. Subject
  33748.     0S0E
  33749. SubjectSubject of memo.
  33750.     Subject:
  33751. Subject
  33752. tmpDisplaySubjectSubject of memo.
  33753.     0S0E
  33754. tmpDisplayLink
  33755. $HideMailHeader
  33756. Moods
  33757. PostedDate
  33758. SenderTag
  33759. Moods
  33760.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  33761. Edit Document
  33762. ForwardK 
  33763.     0S0E
  33764. New Memo.
  33765.     0S0E
  33766. Delete 
  33767.     0S0E
  33768. _Move To Folder...
  33769. Delivery Information...Kz
  33770. DeliveryInfo
  33771. Delivery Information
  33772.     4S5S6S7S8S9S10S12S
  33773. _Forward
  33774. Reply
  33775. Reply
  33776.     0S0E
  33777. Reply With History
  33778. Reply with History
  33779. This document is truncated.
  33780.     4S8S10S13S
  33781. Reply with history
  33782. Address... 
  33783.     0S0E
  33784. PostedDateh
  33785.     5S6S7S8S
  33786. Close
  33787.     0S0E
  33788. PostedDateY
  33789.     0S0E
  33790. Reply To All
  33791. Owner
  33792. CalendarProfile
  33793. Owner
  33794.     1S2S6S
  33795. CanonicalName
  33796. Owner
  33797. Owner
  33798.     0R1S2S6S9S10S12S14S
  33799. Names
  33800. InheritedSendTo
  33801.     0R1S2S
  33802. Try 4 different ways of removing the current sender from the new recipient list
  33803.     0RR1S
  33804. Names1 compares the original names list with the canonical name plus the domain name and if found replaces with a null - works
  33805.     0R1S
  33806. Names1
  33807. Names
  33808. CanonicalName
  33809. Names
  33810. CanonicalName
  33811.     0R1S2S6S7S8S15S21S
  33812. 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
  33813.     0RR1S
  33814. Names2
  33815. Names1
  33816. CanonicalName
  33817. Names1b
  33818. CanonicalName
  33819.     0R1S2S6S10S12S13S20S26S31S
  33820. Names3 compares the canonical names against the Names 2 list and replaces with a null.
  33821.     0RR1S
  33822. Names3
  33823. Names2
  33824. CanonicalName
  33825. 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.
  33826.     0RR1S
  33827. Names4
  33828. Names3
  33829. CanonicalName
  33830.     0R1S2S10S14S17S
  33831. Names4
  33832.     0R3S4S6S11S
  33833. 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...
  33834.     0RR1S
  33835. Names4a
  33836. Names4
  33837. InheritedFromDomain
  33838.     0R1S2S
  33839. Look for all addresses whose last domain is the same as the sender's domain - tack on the whole FromDomain
  33840.     0RR1S
  33841. Names5
  33842. Names4a
  33843. Names4a
  33844. InheritedFromDomain
  33845. Names4a
  33846. InheritedFromDomain
  33847.     0R1S2S6S10S12S13S14S15S21S25S29S31S32S33S34S
  33848. Find all the addresses without a domain and attach FromDomain
  33849.     0RR1S
  33850. Names6
  33851. Names5
  33852. Names5
  33853. Names5
  33854.     0R1S2S6S10S12S13S14S15S19S22S
  33855. Names7
  33856. Names5
  33857. Names6
  33858. Names6
  33859. InheritedFromDomain
  33860.     0R1S2S6S8S9S10S11S12S
  33861. Find everyone whose domain is the same as yours and strip it off
  33862.     0RR1S
  33863. Names8
  33864. Names7
  33865. Names7
  33866.     0R1S2S8S9S11S13S17S18S19S21S
  33867. Names8a
  33868. Names8
  33869. Names8
  33870.     0R1S2S8S9S11S13S17S18S19S24S
  33871. Names8b
  33872. Names8a
  33873. Names8a
  33874.     0R1S2S8S9S11S13S17S18S19S24S
  33875. Names8c
  33876. Names8b
  33877. Names8b
  33878.     0R1S2S8S9S11S13S17S18S19S24S
  33879. CopyTo
  33880. CopyTo
  33881. InheritedFromDomain
  33882. Names5
  33883. Names5
  33884. Names8c
  33885.     0R1S2S3S10S11S14S15S16S17S18S19S21S23S
  33886. PostedDateh
  33887.     0S0E
  33888. Save As Draft
  33889. MailOptions
  33890.     1S2S3S
  33891. SaveOptions
  33892.     0R1S2S3S
  33893. PostedDateh
  33894.     0S0E
  33895. Save and File
  33896.     7S9S
  33897. tmpAction
  33898. SaveAndFile
  33899.     0R1S2S3S
  33900. IsMailStationeryh
  33901. PostedDateY
  33902. PostedDateh
  33903.     4S5S9S10S16S17S18S19S
  33904. PromptValue
  33905. DefaultMailSaveOptions
  33906. Save when sent
  33907. Do you wish to save a copy of this Memo?
  33908. DefaultMailSaveOptions
  33909.     1S2S5S6S8S14S17S
  33910. SaveOptions
  33911. PromptValue
  33912. SaveOptions
  33913. PromptValue
  33914.     0RR1S2S5S6S9S14S
  33915. tmpAction
  33916. DefaultMailSaveOptions
  33917. Mailing
  33918.     0RR1S2S3S6S7S9S11S
  33919. MailOptions
  33920.     0R1S2S3S
  33921.     0R7S9S
  33922. tmpAction
  33923. SaveOptions
  33924. SendAndFile
  33925.     0RR1S2S3S6S7S9S11S
  33926.     0R7S9S
  33927. PostedDateh
  33928.     5S6S7S8S
  33929. Send And File...
  33930. tmpAction
  33931. DefaultMailSaveOptions
  33932. Mailing
  33933.     1S2S3S6S7S9S11S
  33934. MailOptions
  33935.     0R1S2S3S
  33936.     0RR7S9S
  33937. tmpAction
  33938. SendAndFile
  33939.     0RR1S2S3S
  33940.     0R7S9S
  33941.     0R7S9S
  33942. PostedDateh
  33943.     5S6S7S8S
  33944. Delivery Options...K
  33945. DeliveryOptions
  33946. Delivery Options
  33947.     4S8S
  33948. _ViewIcon
  33949. SenderTag
  33950. SenderTag
  33951. SenderTag
  33952. SenderTag
  33953. SenderTag
  33954. SenderTag
  33955. SenderTag
  33956. SenderTag
  33957. SenderTag
  33958. SenderTag
  33959. SenderTag
  33960.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  33961. PostedDateh
  33962.     5S6S7S8S
  33963. Special Options...
  33964. ReplyDate
  33965. ReplyDate
  33966.     1S2S3S
  33967. ReplyTo
  33968. ReplyTo
  33969.     0R1S2S3S
  33970. (Advanced Options)
  33971. Special Options
  33972.     0R6S10S13S15S
  33973. tmpDisplayReplyInfo
  33974. Please respond
  33975. ReplyTo
  33976. ReplyTo
  33977. ReplyDate
  33978. ReplyDate
  33979.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  33980. DueDateTime
  33981. ReplyDate
  33982.     0R1S2S3S
  33983. PostedDateh
  33984.     5S6S7S8S10S11S15S16S
  33985. Save As Stationery...
  33986. tmpAction
  33987. SaveAsStationery
  33988.     1S2S3S
  33989. IsMailStationeryh
  33990.     0S0E
  33991. _Remove From Folder...
  33992. Categori_zeK
  33993. SSend
  33994. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  33995. '++LotusScript Development Environment:2:5:(Forward):0:1
  33996. Declare Sub Click(Source As Button)
  33997. '++LotusScript Development Environment:2:5:(Declarations):0:2
  33998. '++LotusScript Development Environment:2:2:BindEvents:1:129
  33999. Private Sub BindEvents(Byval Objectname_ As String)
  34000.      Static Source As BUTTON
  34001.      Set Source = Bind(Objectname_)
  34002.      On Event Click From Source Call Click
  34003. End Sub
  34004. '++LotusScript Development Environment:2:2:Click:1:12
  34005. Sub Click(Source As Button)
  34006.      Call CreateNewDoc(NEW_MEMO)
  34007. End Sub
  34008. tmpnewdoc
  34009.     1S2S
  34010. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  34011. '++LotusScript Development Environment:2:5:(Forward):0:1
  34012. Declare Sub Click(Source As Button)
  34013. '++LotusScript Development Environment:2:5:(Declarations):0:2
  34014. '++LotusScript Development Environment:2:2:BindEvents:1:129
  34015. Private Sub BindEvents(Byval Objectname_ As String)
  34016.      Static Source As BUTTON
  34017.      Set Source = Bind(Objectname_)
  34018.      On Event Click From Source Call Click
  34019. End Sub
  34020. '++LotusScript Development Environment:2:2:Click:1:12
  34021. Sub Click(Source As Button)
  34022.      Call CreateNewDoc(NEW_CALENDAR)
  34023. End Sub
  34024. tmpnewdoc
  34025.     1S2S
  34026. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  34027. '++LotusScript Development Environment:2:5:(Forward):0:1
  34028. Declare Sub Click(Source As Button)
  34029. '++LotusScript Development Environment:2:5:(Declarations):0:2
  34030. '++LotusScript Development Environment:2:2:BindEvents:1:129
  34031. Private Sub BindEvents(Byval Objectname_ As String)
  34032.      Static Source As BUTTON
  34033.      Set Source = Bind(Objectname_)
  34034.      On Event Click From Source Call Click
  34035. End Sub
  34036. '++LotusScript Development Environment:2:2:Click:1:12
  34037. Sub Click(Source As Button)
  34038.      Call CreateNewDoc(NEW_TASK)
  34039. End Sub
  34040. tmpnewdoc
  34041.     1S2S
  34042. Copy into\New GroupK,
  34043. NewGroup
  34044.     0S0E
  34045. tmpnewdoc
  34046.     1S2S
  34047. O=Lotus Notes
  34048. O=Lotus Notes
  34049. PURSAFO
  34050. |.:#U
  34051. O=Lotus Notes
  34052. CN=Lotus Notes Template Development/O=Lotus Notes
  34053. PURSAFO
  34054. Fde!f^^
  34055. B|HjT
  34056. $$FormPostOpenAction
  34057. ExpireDate
  34058. ReplyDate
  34059. $TypeIcon
  34060. ReplyNumber
  34061. ComposedDate
  34062. $TITLE
  34063. $AUTOLAUNCH
  34064. $INFO
  34065. $WINDOWTITLE
  34066. $Script
  34067. $$Script_O
  34068. $$ScriptName
  34069. $$FormScript
  34070. $$$FormScript_O
  34071. $BODY
  34072. $ACTIONS
  34073. $SCRIPTOBJ_22
  34074. $SCRIPTOBJ_23
  34075. $SCRIPTOBJ_24
  34076. Reply With HistoryReplyw
  34077. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####################
  34078. 29FB8414250BFCF038F51072FC347194AF5CB9E208931A2E889B51112269D913
  34079. _Document Memo$DocMemoWord.Document$Word MemoWordPro.Document$Word Pro MemoAlternateMemow
  34080. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  34081. ##########################################################
  34082. 29FB8414250BFCF038F51072FC347194AF5CB9E208931A2E889B51112269D913
  34083. MemoDocumentMemow
  34084. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########################################################
  34085. (Default)C40FE120068FD550064FF1200E3104000
  34086. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes40FE120068FD550064FF1200E310400040FE120068FD550064FF1200E3104000CN=Lotus Notes Template Development/O=Lotus Notes#################
  34087. ##########################################################
  34088. ##########################################################
  34089. ##########################################################
  34090. ##########################################################
  34091. ##########################################################
  34092. ##########################################################
  34093. ##########################################################
  34094. ##########################################################
  34095. ##########################################################
  34096. ##########################################################
  34097. ##########################################################
  34098. ##########################################################
  34099. ##########################################################
  34100. ##########################################################
  34101. ##########################################################
  34102. ##########################################################
  34103. ##########################################################
  34104. ##########################################################
  34105. ##########################################################
  34106. ##########################################################
  34107. ##########################################################
  34108. ##########################################################
  34109. ##########################################################
  34110. ##########################################################
  34111. ##########################################################
  34112. ##########################################################
  34113. Times New Roman
  34114. VersionOpt|
  34115.     6S7S9S14S
  34116. $VersionOpt
  34117.     0R1S2S3S
  34118. SavedOnce
  34119.     0R1S2S3S
  34120. PostedDate(
  34121.     0R1S2S3S
  34122. DeliveredDate
  34123.     0R1S2S3S
  34124. $AutoEditMode
  34125.     0R1S2S3S
  34126. MailSaveOptions
  34127.     0R1S2S3S
  34128. VersionOpt
  34129.     0R4S
  34130. New Reply
  34131. Subject
  34132. Subject
  34133. Subject
  34134.     4S6S12S13S14S15S17S21S23S25S26S28S
  34135. '++LotusScript Development Environment:2:5:(Options):0:74
  34136. Option Public
  34137. Use "EmailProcessing"
  34138. Use "DocumentConversions"
  34139. '++LotusScript Development Environment:2:5:(Forward):0:1
  34140. '++LotusScript Development Environment:2:5:(Declarations):0:2
  34141.  Reply'++LotusScript Development Environment:2:5:(Options):0:66
  34142. '++LotusScript Development Environment:2:5:(Forward):0:1
  34143. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  34144. Declare Sub Postopen(Source As Notesuidocument)
  34145. Declare Sub Postmodechange(Source As Notesuidocument)
  34146. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  34147. '++LotusScript Development Environment:2:5:(Declarations):0:2
  34148. '++LotusScript Development Environment:2:2:BindEvents:1:129
  34149. Private Sub BindEvents(Byval Objectname_ As String)
  34150.      Static Source As NOTESUIDOCUMENT
  34151.      Set Source = Bind(Objectname_)
  34152.      On Event Queryclose From Source Call Queryclose
  34153.      On Event Postopen From Source Call Postopen
  34154.      On Event Postmodechange From Source Call Postmodechange
  34155.      On Event Querysave From Source Call Querysave
  34156. End Sub
  34157. '++LotusScript Development Environment:2:2:Queryclose:1:12
  34158. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  34159.      
  34160.      Call EmailClose(Continue)
  34161.      
  34162. End Sub
  34163. '++LotusScript Development Environment:2:2:Postopen:1:12
  34164. Sub Postopen(Source As Notesuidocument)
  34165.      
  34166.      Set ws = New NotesUIWorkSpace
  34167.      Set uidoc = source
  34168.      
  34169.      Call EmailOpen
  34170.      
  34171. End Sub
  34172. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  34173. Sub Postmodechange(Source As Notesuidocument)
  34174.      
  34175.      Call EmailModeChange
  34176.      
  34177. End Sub
  34178. '++LotusScript Development Environment:2:2:Querysave:1:12
  34179. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  34180.      
  34181.      Call EmailSave(Continue)
  34182.      
  34183. End Sub
  34184.     Always hidden: 
  34185. SendTo
  34186. CopyTo
  34187.     1S2S
  34188. InheritedSendTo
  34189. ReplyTo
  34190. InheritedReplyTo
  34191. Principal
  34192. Principal
  34193. Principal
  34194. Fromh
  34195.     1S2S8S9S10S11S13S15S20S22S
  34196. FromDomainh
  34197. FromDomain"
  34198.     0R7S8S9S10S11S13SInheritedFrom
  34199. FromDomain
  34200. InheritedFromDomain
  34201. Principal
  34202. CalendarProfile
  34203. Owner
  34204.     1S2S3S7S
  34205. FromPerson memo is from.
  34206. DefaultLogo
  34207. StdNotesLtrGateway
  34208.     4S9S13S16S18SLogo
  34209.     0S0E
  34210.     0S0E
  34211. Encrypt
  34212.     0S0E
  34213. DefaultMailSaveOptions
  34214. $KeepPrivate
  34215. $KeepPrivate
  34216. $KeepPrivate
  34217.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  34218. $HideMailHeader
  34219.     0S0E
  34220.     From:    
  34221. Principal
  34222. Principal
  34223.     1S2S5S6S8S10S
  34224.     0R1S2S8S
  34225.     0R1S2S5S6S8S14S18S
  34226.     0R1S2S5S6S8S14S18S
  34227. SentBy
  34228. X400FreeForm^
  34229.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  34230. SentBy
  34231. FromDomain
  34232. FromDomain
  34233. FromDomain
  34234. FromDomain
  34235.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  34236. FromName
  34237. Principal
  34238. Principal
  34239.     0RR1S2S9S11S15S
  34240. FromStops
  34241.     0R1S2S6S
  34242. FromName
  34243. FromStops
  34244. FromStops
  34245. FromStops
  34246.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  34247.      on 
  34248. PostedDateh
  34249. PostedDate
  34250.     4S5S10S12S
  34251. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  34252. $HideMailHeader
  34253. StdNotesLtr16
  34254.     7S9S10S11S13S15S
  34255. tmpDate
  34256. $HideMailHeader
  34257.     4S5S6S8S10S11S
  34258.     From:    
  34259. tmpDisplayFrom_Preview
  34260. tmpDisplayFrom_NoLogo
  34261.      on 
  34262. PostedDateh
  34263. PostedDate
  34264.     4S5S10S12S
  34265. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  34266. ReplyDate
  34267. ReplyTo
  34268. $HideMailHeader
  34269.     2S3S4S5S6S7S9S10S
  34270. Please respond
  34271. ReplyTo
  34272. ReplyTo
  34273. ReplyDate
  34274. ReplyDate
  34275.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  34276. $HideMailHeader
  34277. Principal
  34278. Principal
  34279. Principal
  34280. Principal
  34281. Principal
  34282.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  34283.     Sent by:    
  34284. FromDomain
  34285. FromDomain
  34286. FromDomain
  34287. FromDomain
  34288.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  34289. FromName
  34290.     0RR1S2S6S
  34291. FromStops
  34292.     0R1S2S6S
  34293. FromName
  34294. FromStops
  34295. FromStops
  34296. FromStops
  34297.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  34298. SendTo
  34299. CopyTo
  34300.   cc:  
  34301. CopyTo
  34302.     1S8S13S14S2E17S18S21S28S31S
  34303. MailAddress
  34304. InheritedReplyToh
  34305. InheritedReplyTo
  34306. InheritedReplyTo
  34307. InheritedFrom
  34308.     1S2S8S9S10S11S13S15S
  34309. MailAddress
  34310.     0RR 
  34311. SendTo}
  34312.     0S0E
  34313. SendTo^
  34314. No names found to send mail.{
  34315.     1S6S7S8S9S11S16S
  34316. SendToList of primary people to send memo.
  34317. CopyTo}
  34318.     0S0E
  34319. CopyToList of people to send a copy of the memo.
  34320. DeliveredDate
  34321. BlindCopyTo
  34322. (bcc: 
  34323. BlindCopyTo
  34324.     4S5S6S7S8S9S10S11S13S14S15S19S21S22S24StmpBlindCopyTo
  34325.     bcc:
  34326. BlindCopyTo
  34327.     0S0E
  34328. BlindCopyToList of undisclosed people to send copies of memo.
  34329.     Subject:
  34330. Subject
  34331. Topic
  34332. Subject
  34333.     1S2S5S6S8S10S
  34334. Subj"
  34335.     0R10S12S16S17S19S21S22S23S
  34336. Subject
  34337.     0S0E
  34338. SubjectSubject of memo.
  34339.     Subject:
  34340. Subject
  34341. tmpDisplaySubjectSubject of memo.
  34342.     0S0E
  34343. tmpDisplayLink
  34344. $HideMailHeader
  34345. Moods
  34346. PostedDate
  34347. SenderTag
  34348. Moods
  34349.     7S9S11S13S14S15S16S17S19S20S21S22S25S27S
  34350. Edit Document
  34351. ForwardK 
  34352.     0S0E
  34353. New Memo.
  34354.     0S0E
  34355. Delete 
  34356.     0S0E
  34357. _Move To Folder...
  34358. Delivery Information...Kz
  34359. DeliveryInfo
  34360. Delivery Information
  34361.     4S5S6S7S8S9S10S12S
  34362. _Forward
  34363. Reply
  34364. Reply
  34365.     0S0E
  34366. Reply With History
  34367. Reply with History
  34368. This document is truncated.
  34369.     4S8S10S13S
  34370. Reply with history
  34371. Address... 
  34372.     0S0E
  34373. PostedDateh
  34374.     5S6S7S8S
  34375. Close
  34376.     0S0E
  34377. PostedDateY
  34378.     0S0E
  34379. Reply To All
  34380. Owner
  34381. CalendarProfile
  34382. Owner
  34383.     1S2S6S
  34384. CanonicalName
  34385. Owner
  34386. Owner
  34387.     0R1S2S6S9S10S12S14S
  34388. Names
  34389. InheritedSendTo
  34390.     0R1S2S
  34391. Try 4 different ways of removing the current sender from the new recipient list
  34392.     0RR1S
  34393. Names1 compares the original names list with the canonical name plus the domain name and if found replaces with a null - works
  34394.     0R1S
  34395. Names1
  34396. Names
  34397. CanonicalName
  34398. Names
  34399. CanonicalName
  34400.     0R1S2S6S7S8S15S21S
  34401. 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
  34402.     0RR1S
  34403. Names2
  34404. Names1
  34405. CanonicalName
  34406. Names1b
  34407. CanonicalName
  34408.     0R1S2S6S10S12S13S20S26S31S
  34409. Names3 compares the canonical names against the Names 2 list and replaces with a null.
  34410.     0RR1S
  34411. Names3
  34412. Names2
  34413. CanonicalName
  34414. 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.
  34415.     0RR1S
  34416. Names4
  34417. Names3
  34418. CanonicalName
  34419.     0R1S2S10S14S17S
  34420. Names4
  34421.     0R3S4S6S11S
  34422. 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...
  34423.     0RR1S
  34424. Names4a
  34425. Names4
  34426. InheritedFromDomain
  34427.     0R1S2S
  34428. Look for all addresses whose last domain is the same as the sender's domain - tack on the whole FromDomain
  34429.     0RR1S
  34430. Names5
  34431. Names4a
  34432. Names4a
  34433. InheritedFromDomain
  34434. Names4a
  34435. InheritedFromDomain
  34436.     0R1S2S6S10S12S13S14S15S21S25S29S31S32S33S34S
  34437. Find all the addresses without a domain and attach FromDomain
  34438.     0RR1S
  34439. Names6
  34440. Names5
  34441. Names5
  34442. Names5
  34443.     0R1S2S6S10S12S13S14S15S19S22S
  34444. Names7
  34445. Names5
  34446. Names6
  34447. Names6
  34448. InheritedFromDomain
  34449.     0R1S2S6S8S9S10S11S12S
  34450. Find everyone whose domain is the same as yours and strip it off
  34451.     0RR1S
  34452. Names8
  34453. Names7
  34454. Names7
  34455.     0R1S2S8S9S11S13S17S18S19S21S
  34456. Names8a
  34457. Names8
  34458. Names8
  34459.     0R1S2S8S9S11S13S17S18S19S24S
  34460. Names8b
  34461. Names8a
  34462. Names8a
  34463.     0R1S2S8S9S11S13S17S18S19S24S
  34464. Names8c
  34465. Names8b
  34466. Names8b
  34467.     0R1S2S8S9S11S13S17S18S19S24S
  34468. CopyTo
  34469. CopyTo
  34470. InheritedFromDomain
  34471. Names5
  34472. Names5
  34473. Names8c
  34474.     0R1S2S3S10S11S14S15S16S17S18S19S21S23S
  34475. PostedDateh
  34476.     0S0E
  34477. Save As Draft
  34478. MailOptions
  34479.     1S2S3S
  34480. SaveOptions
  34481.     0R1S2S3S
  34482. PostedDateh
  34483.     0S0E
  34484. Save and File
  34485.     7S9S
  34486. tmpAction
  34487. SaveAndFile
  34488.     0R1S2S3S
  34489. IsMailStationeryh
  34490. PostedDateY
  34491. PostedDateh
  34492.     4S5S9S10S16S17S18S19S
  34493. PromptValue
  34494. DefaultMailSaveOptions
  34495. Save when sent
  34496. Do you wish to save a copy of this Memo?
  34497. DefaultMailSaveOptions
  34498.     1S2S5S6S8S14S17S
  34499. SaveOptions
  34500. PromptValue
  34501. SaveOptions
  34502. PromptValue
  34503.     0RR1S2S5S6S9S14S
  34504. tmpAction
  34505. DefaultMailSaveOptions
  34506. Mailing
  34507.     0RR1S2S3S6S7S9S11S
  34508. MailOptions
  34509.     0R1S2S3S
  34510.     0R7S9S
  34511. tmpAction
  34512. SaveOptions
  34513. SendAndFile
  34514.     0RR1S2S3S6S7S9S11S
  34515.     0R7S9S
  34516. PostedDateh
  34517.     5S6S7S8S
  34518. Send And File...
  34519. tmpAction
  34520. DefaultMailSaveOptions
  34521. Mailing
  34522.     1S2S3S6S7S9S11S
  34523. MailOptions
  34524.     0R1S2S3S
  34525.     0RR7S9S
  34526. tmpAction
  34527. SendAndFile
  34528.     0RR1S2S3S
  34529.     0R7S9S
  34530.     0R7S9S
  34531. PostedDateh
  34532.     5S6S7S8S
  34533. Delivery Options...K
  34534. DeliveryOptions
  34535. Delivery Options
  34536.     4S8S
  34537. _ViewIcon
  34538. SenderTag
  34539. SenderTag
  34540. SenderTag
  34541. SenderTag
  34542. SenderTag
  34543. SenderTag
  34544. SenderTag
  34545. SenderTag
  34546. SenderTag
  34547. SenderTag
  34548. SenderTag
  34549.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  34550. PostedDateh
  34551.     5S6S7S8S
  34552. Special Options...
  34553. ReplyDate
  34554. ReplyDate
  34555.     1S2S3S
  34556. ReplyTo
  34557. ReplyTo
  34558.     0R1S2S3S
  34559. (Advanced Options)
  34560. Special Options
  34561.     0R6S10S13S15S
  34562. tmpDisplayReplyInfo
  34563. Please respond
  34564. ReplyTo
  34565. ReplyTo
  34566. ReplyDate
  34567. ReplyDate
  34568.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  34569. DueDateTime
  34570. ReplyDate
  34571.     0R1S2S3S
  34572. PostedDateh
  34573.     5S6S7S8S10S11S15S16S
  34574. Save As Stationery...
  34575. tmpAction
  34576. SaveAsStationery
  34577.     1S2S3S
  34578. IsMailStationeryh
  34579.     0S0E
  34580. _Remove From Folder...
  34581. Categori_zeK
  34582. SSend
  34583. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  34584. '++LotusScript Development Environment:2:5:(Forward):0:1
  34585. Declare Sub Click(Source As Button)
  34586. '++LotusScript Development Environment:2:5:(Declarations):0:2
  34587. '++LotusScript Development Environment:2:2:BindEvents:1:129
  34588. Private Sub BindEvents(Byval Objectname_ As String)
  34589.      Static Source As BUTTON
  34590.      Set Source = Bind(Objectname_)
  34591.      On Event Click From Source Call Click
  34592. End Sub
  34593. '++LotusScript Development Environment:2:2:Click:1:12
  34594. Sub Click(Source As Button)
  34595.      Call CreateNewDoc(NEW_MEMO)
  34596. End Sub
  34597. tmpnewdoc
  34598.     1S2S
  34599. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  34600. '++LotusScript Development Environment:2:5:(Forward):0:1
  34601. Declare Sub Click(Source As Button)
  34602. '++LotusScript Development Environment:2:5:(Declarations):0:2
  34603. '++LotusScript Development Environment:2:2:BindEvents:1:129
  34604. Private Sub BindEvents(Byval Objectname_ As String)
  34605.      Static Source As BUTTON
  34606.      Set Source = Bind(Objectname_)
  34607.      On Event Click From Source Call Click
  34608. End Sub
  34609. '++LotusScript Development Environment:2:2:Click:1:12
  34610. Sub Click(Source As Button)
  34611.      Call CreateNewDoc(NEW_CALENDAR)
  34612. End Sub
  34613. tmpnewdoc
  34614.     1S2S
  34615. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  34616. '++LotusScript Development Environment:2:5:(Forward):0:1
  34617. Declare Sub Click(Source As Button)
  34618. '++LotusScript Development Environment:2:5:(Declarations):0:2
  34619. '++LotusScript Development Environment:2:2:BindEvents:1:129
  34620. Private Sub BindEvents(Byval Objectname_ As String)
  34621.      Static Source As BUTTON
  34622.      Set Source = Bind(Objectname_)
  34623.      On Event Click From Source Call Click
  34624. End Sub
  34625. '++LotusScript Development Environment:2:2:Click:1:12
  34626. Sub Click(Source As Button)
  34627.      Call CreateNewDoc(NEW_TASK)
  34628. End Sub
  34629. tmpnewdoc
  34630.     1S2S
  34631. Copy into\New GroupK,
  34632. NewGroup
  34633.     0S0E
  34634. tmpnewdoc
  34635.     1S2S
  34636. O=Lotus Notes
  34637. O=Lotus Notes
  34638. PURSAFO
  34639. |.:#U
  34640. O=Lotus Notes
  34641. CN=Lotus Notes Template Development/O=Lotus Notes
  34642. PURSAFO
  34643. Fde!f^^
  34644. }sk5VN1S
  34645. $$FormPostOpenAction
  34646. ExpireDate
  34647. ReplyDate
  34648. $TypeIcon
  34649. ReplyNumber
  34650. ComposedDate
  34651. $TITLE
  34652. $AUTOLAUNCH
  34653. $INFO
  34654. $WINDOWTITLE
  34655. $Script
  34656. $$Script_O
  34657. $$ScriptName
  34658. $$FormScript
  34659. $$$FormScript_O
  34660. $BODY
  34661. $ACTIONS
  34662. $SCRIPTOBJ_22
  34663. $SCRIPTOBJ_23
  34664. $SCRIPTOBJ_24
  34665. Times New Roman
  34666. VersionOpt|
  34667.     6S7S9S14S
  34668. $VersionOpt
  34669.     0R1S2S3S
  34670. SavedOnce
  34671.     0R1S2S3S
  34672. PostedDate(
  34673.     0R1S2S3S
  34674. DeliveredDate
  34675.     0R1S2S3S
  34676. $AutoEditMode
  34677.     0R1S2S3S
  34678. MailSaveOptions
  34679.     0R1S2S3S
  34680. VersionOpt
  34681.     0R4S
  34682. New Memo
  34683. Subject
  34684. Subject
  34685. Subject
  34686.     4S6S12S13S14S15S17S21S23S25S26S28S
  34687. '++LotusScript Development Environment:2:5:(Options):0:74
  34688. Option Public
  34689. Use "EmailProcessing"
  34690. Use "DocumentConversions"
  34691. '++LotusScript Development Environment:2:5:(Forward):0:1
  34692. '++LotusScript Development Environment:2:5:(Declarations):0:2
  34693.  AlternateMemo'++LotusScript Development Environment:2:5:(Options):0:66
  34694. '++LotusScript Development Environment:2:5:(Forward):0:1
  34695. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  34696. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  34697. Declare Sub Postmodechange(Source As Notesuidocument)
  34698. Declare Sub Postopen(Source As Notesuidocument)
  34699. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  34700. '++LotusScript Development Environment:2:5:(Declarations):0:2
  34701. '++LotusScript Development Environment:2:2:BindEvents:1:129
  34702. Private Sub BindEvents(Byval Objectname_ As String)
  34703.      Static Source As NOTESUIDOCUMENT
  34704.      Set Source = Bind(Objectname_)
  34705.      On Event Querysave From Source Call Querysave
  34706.      On Event Queryclose From Source Call Queryclose
  34707.      On Event Postmodechange From Source Call Postmodechange
  34708.      On Event Postopen From Source Call Postopen
  34709.      On Event Querymodechange From Source Call Querymodechange
  34710. End Sub
  34711. '++LotusScript Development Environment:2:2:Querysave:1:12
  34712. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  34713.      If Not(source.InPreviewPane) Then
  34714.           Call EmailSave(Continue)
  34715.      End If
  34716. End Sub
  34717. '++LotusScript Development Environment:2:2:Queryclose:1:12
  34718. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  34719.      If Not(source.InPreviewPane) Then
  34720.           Call EmailClose(Continue)
  34721.      End If
  34722. End Sub
  34723. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  34724. Sub Postmodechange(Source As Notesuidocument)
  34725.      
  34726.      Call EmailModeChange
  34727.      
  34728. End Sub
  34729. '++LotusScript Development Environment:2:2:Postopen:1:12
  34730. Sub Postopen(Source As Notesuidocument)
  34731.      Set ws = New NotesUIWorkSpace
  34732.      Set uidoc = source
  34733.      
  34734.      If Not(source.InPreviewPane) Then
  34735.           Call EmailOpen
  34736.           If (note.tmpUseOLE(0) = "1") Then CreateOLEObject
  34737.      End If
  34738. End Sub
  34739. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  34740. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  34741.      If (source.InPreviewPane) Then
  34742.           Continue = False
  34743.      End If
  34744. End Sub
  34745.     Always Hidden: 
  34746. Principal
  34747. CalendarProfile
  34748. Owner
  34749.     1S2S3S7S
  34750. FromPerson memo is from.
  34751. DefaultLogo
  34752. StdNotesLtrGateway
  34753.     4S9S13S16S18SLogo
  34754.     0S0E
  34755.     0S0E
  34756. Encrypt
  34757. MailSaveOptions
  34758.     1S2S3S
  34759. MailSaveOptions
  34760. DefaultMailSaveOptions
  34761. $KeepPrivate
  34762. $KeepPrivate
  34763. $KeepPrivate
  34764.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  34765. MailEditor
  34766. AltEditorProgID
  34767.     1S2S
  34768. OriginalEditorh
  34769. MailEditor
  34770. OriginalEditor
  34771. MailEditor
  34772.     0R7S10S11S13S14S15S18S19S20S
  34773. tmpUseOLE
  34774. OLEBody
  34775. $OLEObjField
  34776. $OLEObjRichTextField
  34777. AltEditorProgID
  34778.     0S0E
  34779. $OLEObjProgID
  34780. $HideMailHeader
  34781.     0S0E
  34782.     From:    
  34783. Principal
  34784. Principal
  34785.     1S2S5S6S8S10S
  34786.     0R1S2S8S
  34787.     0R1S2S5S6S8S14S18S
  34788.     0R1S2S5S6S8S14S18S
  34789. SentBy
  34790. X400FreeForm^
  34791.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  34792. SentBy
  34793. FromDomain
  34794. FromDomain
  34795. FromDomain
  34796. FromDomain
  34797.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  34798. FromName
  34799. Principal
  34800. Principal
  34801.     0RR1S2S9S11S15S
  34802. FromStops
  34803.     0R1S2S6S
  34804. FromName
  34805. FromStops
  34806. FromStops
  34807. FromStops
  34808.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  34809.      on 
  34810. PostedDateh
  34811. PostedDate
  34812.     7S9S
  34813. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  34814. tmpDate
  34815. $HideMailHeader
  34816.     4S5S6S8S10S11S
  34817.     From:    
  34818. tmpDisplayFrom_Preview
  34819. tmpDisplayFrom_NoLogo
  34820.      on 
  34821. PostedDateh
  34822. PostedDate
  34823.     7S9S
  34824. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  34825. ReplyDate
  34826. ReplyTo
  34827. $HideMailHeader
  34828.     2S3S4S5S6S7S9S10S
  34829. Please respond
  34830. ReplyTo
  34831. ReplyTo
  34832. ReplyDate
  34833. ReplyDate
  34834.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  34835. $HideMailHeader
  34836. Principal
  34837. Principal
  34838. Principal
  34839. Principal
  34840. Principal
  34841.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  34842.     Sent by:    
  34843. FromDomain
  34844. FromDomain
  34845. FromDomain
  34846. FromDomain
  34847.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  34848. FromName
  34849.     0RR1S2S6S
  34850. FromStops
  34851.     0R1S2S6S
  34852. FromName
  34853. FromStops
  34854. FromStops
  34855. FromStops
  34856.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  34857.     To:    
  34858. SendTo}
  34859.     0S0E
  34860. SendTo^
  34861. No names found to send mail.{
  34862.     1S6S7S8S9S11S16S
  34863. SendToList of primary people to send memo.
  34864.     cc:    
  34865. CopyTo}
  34866.     0S0E
  34867. CopyToList of people to send a copy of the memo.
  34868. DeliveredDate
  34869. BlindCopyTo
  34870. (bcc: 
  34871. BlindCopyTo
  34872.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  34873.     bcc:    
  34874. BlindCopyTo
  34875.     0S0E
  34876. BlindCopyToList of undisclosed people to send copies of memo.
  34877.     Subject:    
  34878. PhoneCaller
  34879. Phone Call: 
  34880. PhoneCaller
  34881. Subject
  34882.     7S8S9S11SSubjectSubject of memo.
  34883. tmpUseOLE
  34884.     1S2S
  34885. OLEBody
  34886. tmpUseOLE
  34887.     1S2S
  34888. Edit Document
  34889. ForwardK 
  34890.     0S0E
  34891. New Memo.
  34892.     0S0E
  34893. Delete 
  34894.     0S0E
  34895. _Move To Folder...
  34896. Delivery Information...Kz
  34897. DeliveryInfo
  34898. Delivery Information
  34899.     4S5S6S7S8S9S10S12S
  34900. _Forward
  34901. Reply
  34902. Reply
  34903.     0S0E
  34904. Reply With History
  34905. Reply with History
  34906. This document is truncated.
  34907.     4S8S10S13S
  34908. Reply with history
  34909. Close
  34910.     0S0E
  34911. Envelope...K@
  34912. (OLEMailFields)
  34913.     0S0E
  34914. PostedDateh
  34915. tmpUseOLE
  34916.     5S6S7S8S11S12S13S
  34917. Address... 
  34918.     0S0E
  34919. PostedDateh
  34920.     5S6S7S8S
  34921. Save As Draft
  34922. tmpAction
  34923. SaveAsDraft
  34924.     1S2S3S
  34925. IsMailStationeryh
  34926. PostedDateh
  34927.     4S5S
  34928. Save and File
  34929.     7S9S
  34930. tmpAction
  34931. SaveAndFile
  34932.     0R1S2S3S
  34933. IsMailStationeryh
  34934. PostedDateY
  34935. PostedDateh
  34936.     4S5S9S10S16S17S18S19S
  34937. PromptValue
  34938. DefaultMailSaveOptions
  34939. Save when sent
  34940. Do you wish to save a copy of this Memo?
  34941. DefaultMailSaveOptions
  34942.     1S2S5S6S8S14S17S
  34943. SaveOptions
  34944. PromptValue
  34945. SaveOptions
  34946. PromptValue
  34947.     0RR1S2S5S6S9S14S
  34948. SendTo^
  34949. CopyTo^
  34950. BlindCopyTo
  34951. (OLEMailFields)
  34952.     0RR6S7S8S9S13S14S15S16S20S21S22S23S36S37S42S44S
  34953. tmpAction
  34954. DefaultMailSaveOptions
  34955. Mailing
  34956.     0RR1S2S3S6S7S9S11S
  34957. MailOptions
  34958.     0R1S2S3S
  34959.     0R7S9S
  34960. tmpAction
  34961. SaveOptions
  34962. SendAndFile
  34963.     0RR1S2S3S6S7S9S11S
  34964.     0R7S9S
  34965. PostedDateh
  34966. IsMailStationeryh
  34967.     5S6S7S8S10S11S
  34968. Send And File...p
  34969. tmpAction
  34970. DefaultMailSaveOptions
  34971. Mailing
  34972.     1S2S3S6S7S9S11S
  34973. MailOptions
  34974.     0R1S2S3S
  34975. SendTo^
  34976. CopyTo^
  34977. BlindCopyTo
  34978. (OLEMailFields)
  34979.     0RR6S7S8S9S13S14S15S16S20S21S22S23S36S37S42S44S
  34980.     0RR7S9S
  34981. tmpAction
  34982. SendAndFile
  34983.     0RR1S2S3S
  34984.     0R7S9S
  34985.     0R7S9S
  34986. PostedDateh
  34987. IsMailStationeryh
  34988.     5S6S7S8S10S11S
  34989. Delivery Options...K
  34990. DeliveryOptions
  34991. Delivery Options
  34992.     4S8S
  34993. _ViewIcon
  34994. SenderTag
  34995. SenderTag
  34996. SenderTag
  34997. SenderTag
  34998. SenderTag
  34999. SenderTag
  35000. SenderTag
  35001. SenderTag
  35002. SenderTag
  35003. SenderTag
  35004. SenderTag
  35005.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  35006. PostedDateh
  35007.     5S6S7S8S
  35008. Special Options...6
  35009. ReplyDate
  35010. ReplyDate
  35011.     1S2S3S
  35012. ReplyTo
  35013. ReplyTo
  35014.     0R1S2S3S
  35015. (Advanced Options)
  35016. Special Options
  35017.     0R6S10S13S15S
  35018. tmpDisplayReplyInfo
  35019. Please respond
  35020. ReplyTo
  35021. ReplyTo
  35022. ReplyDate
  35023. ReplyDate
  35024.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  35025. DueDateTime
  35026. ReplyDate
  35027. ReplyDate
  35028.     0R1S2S3S6S7S9S11S
  35029. PostedDateh
  35030.     5S6S7S8S
  35031. Save As Stationery...
  35032. tmpAction
  35033. SaveAsStationery
  35034.     1S2S3S
  35035. IsMailStationeryh
  35036.     0S0E
  35037. _Remove From Folder...
  35038. Categori_zeK
  35039. SSend
  35040. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  35041. '++LotusScript Development Environment:2:5:(Forward):0:1
  35042. Declare Sub Click(Source As Button)
  35043. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35044. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35045. Private Sub BindEvents(Byval Objectname_ As String)
  35046.      Static Source As BUTTON
  35047.      Set Source = Bind(Objectname_)
  35048.      On Event Click From Source Call Click
  35049. End Sub
  35050. '++LotusScript Development Environment:2:2:Click:1:12
  35051. Sub Click(Source As Button)
  35052.      Call CreateNewDoc(NEW_MEMO)
  35053. End Sub
  35054. tmpnewdoc
  35055.     1S2S
  35056. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  35057. '++LotusScript Development Environment:2:5:(Forward):0:1
  35058. Declare Sub Click(Source As Button)
  35059. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35060. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35061. Private Sub BindEvents(Byval Objectname_ As String)
  35062.      Static Source As BUTTON
  35063.      Set Source = Bind(Objectname_)
  35064.      On Event Click From Source Call Click
  35065. End Sub
  35066. '++LotusScript Development Environment:2:2:Click:1:12
  35067. Sub Click(Source As Button)
  35068.      Call CreateNewDoc(NEW_CALENDAR)
  35069. End Sub
  35070. tmpnewdoc
  35071.     1S2S
  35072. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  35073. '++LotusScript Development Environment:2:5:(Forward):0:1
  35074. Declare Sub Click(Source As Button)
  35075. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35076. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35077. Private Sub BindEvents(Byval Objectname_ As String)
  35078.      Static Source As BUTTON
  35079.      Set Source = Bind(Objectname_)
  35080.      On Event Click From Source Call Click
  35081. End Sub
  35082. '++LotusScript Development Environment:2:2:Click:1:12
  35083. Sub Click(Source As Button)
  35084.      Call CreateNewDoc(NEW_TASK)
  35085. End Sub
  35086. tmpnewdoc
  35087.     1S2S
  35088. Copy into\New GroupK,
  35089. NewGroup
  35090.     0S0E
  35091. tmpnewdoc
  35092.     1S2S
  35093. O=Lotus Notes
  35094. O=Lotus Notes
  35095. PURSAFO
  35096. |.:#U
  35097. O=Lotus Notes
  35098. CN=Lotus Notes Template Development/O=Lotus Notes
  35099. PURSAFO
  35100. Fde!f^^
  35101. $$FormPostOpenAction
  35102. $TypeIcon
  35103. ExpireDate
  35104. ReplyDate
  35105. ComposedDate
  35106. $TITLE
  35107. $INFO
  35108. $WINDOWTITLE
  35109. $Script
  35110. $$ScriptName
  35111. $$FormScript
  35112. $BODY
  35113. $ACTIONS
  35114. Times New Roman
  35115. VersionOpt|
  35116.     6S7S9S14S
  35117. $VersionOpt
  35118.     0R1S2S3S
  35119. SavedOnce
  35120.     0R1S2S3S
  35121. PostedDate(
  35122.     0R1S2S3S
  35123. DeliveredDate
  35124.     0R1S2S3S
  35125. $AutoEditMode
  35126.     0R1S2S3S
  35127. MailSaveOptions
  35128.     0R1S2S3S
  35129. VersionOpt
  35130.     0R4S
  35131. New Memo
  35132. Subject
  35133. Subject
  35134. Subject
  35135.     4S6S12S13S14S15S17S21S23S25S26S28S
  35136. '++LotusScript Development Environment:2:5:(Options):0:74
  35137. Option Public
  35138. Use "EmailProcessing"
  35139. Use "DocumentConversions"
  35140. '++LotusScript Development Environment:2:5:(Forward):0:1
  35141. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35142.  Memo'++LotusScript Development Environment:2:5:(Options):0:66
  35143. '++LotusScript Development Environment:2:5:(Forward):0:1
  35144. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  35145. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  35146. Declare Sub Postmodechange(Source As Notesuidocument)
  35147. Declare Sub Postopen(Source As Notesuidocument)
  35148. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35149. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35150. Private Sub BindEvents(Byval Objectname_ As String)
  35151.      Static Source As NOTESUIDOCUMENT
  35152.      Set Source = Bind(Objectname_)
  35153.      On Event Querysave From Source Call Querysave
  35154.      On Event Queryclose From Source Call Queryclose
  35155.      On Event Postmodechange From Source Call Postmodechange
  35156.      On Event Postopen From Source Call Postopen
  35157. End Sub
  35158. '++LotusScript Development Environment:2:2:Querysave:1:12
  35159. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  35160.      
  35161.      Call EmailSave(Continue)
  35162.      
  35163. End Sub
  35164. '++LotusScript Development Environment:2:2:Queryclose:1:12
  35165. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  35166.      
  35167.      Call EmailClose(Continue)
  35168.      
  35169. End Sub
  35170. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  35171. Sub Postmodechange(Source As Notesuidocument)
  35172.      
  35173.      Call EmailModeChange
  35174.      
  35175. End Sub
  35176. '++LotusScript Development Environment:2:2:Postopen:1:12
  35177. Sub Postopen(Source As Notesuidocument)
  35178.      
  35179.      Set ws = New NotesUIWorkSpace
  35180.      Set uidoc = source
  35181.      
  35182.      Call EmailOpen
  35183.      
  35184. End Sub
  35185.     Always Hidden: 
  35186. Principal
  35187. CalendarProfile
  35188. Owner
  35189.     1S2S3S7S
  35190. FromPerson memo is from.
  35191. DefaultLogo
  35192. StdNotesLtrGateway
  35193.     4S9S13S16S18SLogo
  35194.     0S0E
  35195.     0S0E
  35196. Encrypt
  35197. MailSaveOptions
  35198.     1S2S3S
  35199. MailSaveOptions
  35200. DefaultMailSaveOptions
  35201. $KeepPrivate
  35202. $KeepPrivate
  35203. $KeepPrivate
  35204.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  35205. $HideMailHeader
  35206.     0S0E
  35207.     From:    
  35208. Principal
  35209. Principal
  35210.     1S2S5S6S8S10S
  35211.     0R1S2S8S
  35212.     0R1S2S5S6S8S14S18S
  35213.     0R1S2S5S6S8S14S18S
  35214. SentBy
  35215. X400FreeForm^
  35216.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  35217. SentBy
  35218. FromDomain
  35219. FromDomain
  35220. FromDomain
  35221. FromDomain
  35222.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  35223. FromName
  35224. Principal
  35225. Principal
  35226.     0RR1S2S9S11S15S
  35227. FromStops
  35228.     0R1S2S6S
  35229. FromName
  35230. FromStops
  35231. FromStops
  35232. FromStops
  35233.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  35234.      on 
  35235. PostedDateh
  35236. PostedDate
  35237.     7S9S
  35238. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  35239. $HideMailHeader
  35240. StdNotesLtr16
  35241.     7S9S10S11S13S15S
  35242. tmpDate
  35243. $HideMailHeader
  35244.     4S5S6S8S10S11S
  35245.     From:    
  35246. tmpDisplayFrom_Preview
  35247. tmpDisplayFrom_NoLogo
  35248.      on 
  35249. PostedDateh
  35250. PostedDate
  35251.     7S9S
  35252. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  35253. ReplyDate
  35254. ReplyTo
  35255. $HideMailHeader
  35256.     2S3S4S5S6S7S9S10S
  35257. Please respond
  35258. ReplyTo
  35259. ReplyTo
  35260. ReplyDate
  35261. ReplyDate
  35262.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  35263. $HideMailHeader
  35264. Principal
  35265. Principal
  35266. Principal
  35267. Principal
  35268. Principal
  35269.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  35270.     Sent by:    
  35271. FromDomain
  35272. FromDomain
  35273. FromDomain
  35274. FromDomain
  35275.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  35276. FromName
  35277.     0RR1S2S6S
  35278. FromStops
  35279.     0R1S2S6S
  35280. FromName
  35281. FromStops
  35282. FromStops
  35283. FromStops
  35284.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  35285. SendTo
  35286. CopyTo
  35287.   cc:  
  35288. CopyTo
  35289.     1S2S8S13S14S2E17S18S21S22S28S31S
  35290.     To:    
  35291. SendTo}
  35292.     0S0E
  35293. SendTo^
  35294. No names found to send mail.{
  35295.     1S6S7S8S9S11S16S
  35296. SendToList of primary people to send memo.
  35297.     cc:    
  35298. CopyTo}
  35299.     0S0E
  35300. CopyToList of people to send a copy of the memo.
  35301. DeliveredDate
  35302. BlindCopyTo
  35303. (bcc: 
  35304. BlindCopyTo
  35305.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  35306.     bcc:    
  35307. BlindCopyTo
  35308.     0S0E
  35309. BlindCopyToList of undisclosed people to send copies of memo.
  35310.     Subject:    
  35311. PhoneCaller
  35312. Phone Call: 
  35313. PhoneCaller
  35314. Subject
  35315.     7S8S9S11SSubjectSubject of memo.
  35316. $HideMailHeader
  35317. PostedDate
  35318. SenderTag
  35319. Moods
  35320.     7S9S10S11S12S13S15S16S17S18S21S23S
  35321. Edit Document
  35322. ForwardK 
  35323.     0S0E
  35324. New Memo.
  35325.     0S0E
  35326. Delete 
  35327.     0S0E
  35328. _Move To Folder...
  35329. Delivery Information...Kz
  35330. DeliveryInfo
  35331. Delivery Information
  35332.     4S5S6S7S8S9S10S12S
  35333. _Forward
  35334. Reply
  35335. Reply
  35336.     0S0E
  35337. Reply With History
  35338. Reply with History
  35339. This document is truncated.
  35340.     4S8S10S13S
  35341. Reply with history
  35342. Address... 
  35343.     0S0E
  35344. PostedDateh
  35345.     5S6S7S8S
  35346. Close
  35347.     0S0E
  35348. IsMailStationeryh
  35349. PostedDateh
  35350.     6S7S
  35351. Save As Draft
  35352. tmpAction
  35353. SaveAsDraft
  35354.     1S2S3S
  35355. IsMailStationeryh
  35356. PostedDateh
  35357.     4S5S
  35358. Save and File
  35359.     7S9S
  35360. tmpAction
  35361. SaveAndFile
  35362.     0R1S2S3S
  35363. IsMailStationeryh
  35364. PostedDateY
  35365. PostedDateh
  35366.     4S5S9S10S16S17S18S19S
  35367. PromptValue
  35368. DefaultMailSaveOptions
  35369. Save when sent
  35370. Do you wish to save a copy of this Memo?
  35371. DefaultMailSaveOptions
  35372.     1S2S5S6S8S14S17S
  35373. SaveOptions
  35374. PromptValue
  35375. SaveOptions
  35376. PromptValue
  35377.     0RR1S2S5S6S9S14S
  35378. tmpAction
  35379. DefaultMailSaveOptions
  35380. Mailing
  35381.     0RR1S2S3S6S7S9S11S
  35382. MailOptions
  35383.     0R1S2S3S
  35384.     0R7S9S
  35385. tmpAction
  35386. SaveOptions
  35387. SendAndFile
  35388.     0RR1S2S3S6S7S9S11S
  35389.     0R7S9S
  35390. PostedDateh
  35391. IsMailStationeryh
  35392.     5S6S7S8S10S11S
  35393. Send And File...
  35394. tmpAction
  35395. DefaultMailSaveOptions
  35396. Mailing
  35397.     1S2S3S6S7S9S11S
  35398. MailOptions
  35399.     0R1S2S3S
  35400.     0RR7S9S
  35401. tmpAction
  35402. SendAndFile
  35403.     0RR1S2S3S
  35404.     0R7S9S
  35405.     0R7S9S
  35406. PostedDateh
  35407. IsMailStationeryh
  35408.     5S6S7S8S10S11S
  35409. Delivery Options...K
  35410. DeliveryOptions
  35411. Delivery Options
  35412.     4S8S
  35413. _ViewIcon
  35414. SenderTag
  35415. SenderTag
  35416. SenderTag
  35417. SenderTag
  35418. SenderTag
  35419. SenderTag
  35420. SenderTag
  35421. SenderTag
  35422. SenderTag
  35423. SenderTag
  35424. SenderTag
  35425.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  35426. PostedDateh
  35427.     5S6S7S8S
  35428. Special Options...6
  35429. ReplyDate
  35430. ReplyDate
  35431.     1S2S3S
  35432. ReplyTo
  35433. ReplyTo
  35434.     0R1S2S3S
  35435. (Advanced Options)
  35436. Special Options
  35437.     0R6S10S13S15S
  35438. tmpDisplayReplyInfo
  35439. Please respond
  35440. ReplyTo
  35441. ReplyTo
  35442. ReplyDate
  35443. ReplyDate
  35444.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  35445. DueDateTime
  35446. ReplyDate
  35447. ReplyDate
  35448.     0R1S2S3S6S7S9S11S
  35449. PostedDateh
  35450.     5S6S7S8S10S11S15S16S
  35451. Save As Stationery...
  35452. tmpAction
  35453. SaveAsStationery
  35454.     1S2S3S
  35455. IsMailStationeryh
  35456.     0S0E
  35457. _Remove From Folder...
  35458. Categori_zeK
  35459. SSend
  35460. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  35461. '++LotusScript Development Environment:2:5:(Forward):0:1
  35462. Declare Sub Click(Source As Button)
  35463. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35464. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35465. Private Sub BindEvents(Byval Objectname_ As String)
  35466.      Static Source As BUTTON
  35467.      Set Source = Bind(Objectname_)
  35468.      On Event Click From Source Call Click
  35469. End Sub
  35470. '++LotusScript Development Environment:2:2:Click:1:12
  35471. Sub Click(Source As Button)
  35472.      Call CreateNewDoc(NEW_MEMO)
  35473. End Sub
  35474. tmpnewdoc
  35475.     1S2S
  35476. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  35477. '++LotusScript Development Environment:2:5:(Forward):0:1
  35478. Declare Sub Click(Source As Button)
  35479. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35480. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35481. Private Sub BindEvents(Byval Objectname_ As String)
  35482.      Static Source As BUTTON
  35483.      Set Source = Bind(Objectname_)
  35484.      On Event Click From Source Call Click
  35485. End Sub
  35486. '++LotusScript Development Environment:2:2:Click:1:12
  35487. Sub Click(Source As Button)
  35488.      Call CreateNewDoc(NEW_CALENDAR)
  35489. End Sub
  35490. tmpnewdoc
  35491.     1S2S
  35492. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  35493. '++LotusScript Development Environment:2:5:(Forward):0:1
  35494. Declare Sub Click(Source As Button)
  35495. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35496. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35497. Private Sub BindEvents(Byval Objectname_ As String)
  35498.      Static Source As BUTTON
  35499.      Set Source = Bind(Objectname_)
  35500.      On Event Click From Source Call Click
  35501. End Sub
  35502. '++LotusScript Development Environment:2:2:Click:1:12
  35503. Sub Click(Source As Button)
  35504.      Call CreateNewDoc(NEW_TASK)
  35505. End Sub
  35506. tmpnewdoc
  35507.     1S2S
  35508. Copy into\New GroupK,
  35509. NewGroup
  35510.     0S0E
  35511. tmpnewdoc
  35512.     1S2S
  35513. O=Lotus Notes
  35514. O=Lotus Notes
  35515. PURSAFO
  35516. |.:#U
  35517. O=Lotus Notes
  35518. CN=Lotus Notes Template Development/O=Lotus Notes
  35519. PURSAFO
  35520. Fde!f^^
  35521. $$FormPostOpenAction
  35522. $TypeIcon
  35523. ExpireDate
  35524. ReplyDate
  35525. ComposedDate
  35526. $TITLE
  35527. $INFO
  35528. $WINDOWTITLE
  35529. $Script
  35530. $$Script_O
  35531. $$ScriptName
  35532. $$FormScript
  35533. $$$FormScript_O
  35534. $BODY
  35535. $ACTIONS
  35536. $SCRIPTOBJ_21
  35537. $SCRIPTOBJ_22
  35538. $SCRIPTOBJ_23
  35539. Times New Roman
  35540. VersionOpt|
  35541.     6S7S9S14S
  35542. $VersionOpt
  35543.     0R1S2S3S
  35544. SavedOnce
  35545.     0R1S2S3S
  35546. PostedDate(
  35547.     0R1S2S3S
  35548. DeliveredDate
  35549.     0R1S2S3S
  35550. $AutoEditMode
  35551.     0R1S2S3S
  35552. MailSaveOptions
  35553.     0R1S2S3S
  35554. VersionOpt
  35555.     0R4S
  35556. New Memo
  35557. Subject
  35558. Subject
  35559. Subject
  35560.     4S6S12S13S14S15S17S21S23S25S26S28S
  35561. '++LotusScript Development Environment:2:5:(Options):0:74
  35562. Option Public
  35563. Use "EmailProcessing"
  35564. Use "DocumentConversions"
  35565. '++LotusScript Development Environment:2:5:(Forward):0:1
  35566. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35567. (Default)'++LotusScript Development Environment:2:5:(Options):0:66
  35568. '++LotusScript Development Environment:2:5:(Forward):0:1
  35569. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  35570. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  35571. Declare Sub Postmodechange(Source As Notesuidocument)
  35572. Declare Sub Postopen(Source As Notesuidocument)
  35573. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35574. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35575. Private Sub BindEvents(Byval Objectname_ As String)
  35576.      Static Source As NOTESUIDOCUMENT
  35577.      Set Source = Bind(Objectname_)
  35578.      On Event Querysave From Source Call Querysave
  35579.      On Event Queryclose From Source Call Queryclose
  35580.      On Event Postmodechange From Source Call Postmodechange
  35581.      On Event Postopen From Source Call Postopen
  35582. End Sub
  35583. '++LotusScript Development Environment:2:2:Querysave:1:12
  35584. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  35585.      
  35586.      Call EmailSave(Continue)
  35587.      
  35588. End Sub
  35589. '++LotusScript Development Environment:2:2:Queryclose:1:12
  35590. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  35591.      
  35592.      Call EmailClose(Continue)
  35593.      
  35594. End Sub
  35595. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  35596. Sub Postmodechange(Source As Notesuidocument)
  35597.      
  35598.      Call EmailModeChange
  35599.      
  35600. End Sub
  35601. '++LotusScript Development Environment:2:2:Postopen:1:12
  35602. Sub Postopen(Source As Notesuidocument)
  35603.      
  35604.      Set ws = New NotesUIWorkSpace
  35605.      Set uidoc = source
  35606.      
  35607.      Call EmailOpen
  35608.      
  35609. End Sub
  35610.     Always Hidden: 
  35611. Principal
  35612. CalendarProfile
  35613. Owner
  35614.     1S2S3S7S
  35615. FromPerson memo is from.
  35616. DefaultLogo
  35617. StdNotesLtrGateway
  35618.     4S9S13S16S18SLogo
  35619.     0S0E
  35620.     0S0E
  35621. Encrypt
  35622. MailSaveOptions
  35623.     1S2S3S
  35624. MailSaveOptions
  35625. DefaultMailSaveOptions
  35626. $KeepPrivate
  35627. $KeepPrivate
  35628. $KeepPrivate
  35629.     3S4S5S6S8S13S15S17S18S19S21S23S$KeepPrivate
  35630. wMemo
  35631. $$QuerySaveAgent
  35632. Path_Info
  35633. Path_Info
  35634. $HideMailHeader
  35635.     0S0E
  35636.     From:    
  35637. Principal
  35638. Principal
  35639.     1S2S5S6S8S10S
  35640.     0R1S2S8S
  35641.     0R1S2S5S6S8S14S18S
  35642.     0R1S2S5S6S8S14S18S
  35643. SentBy
  35644. X400FreeForm^
  35645.     0R1S2S5S6S8S10S11S12S14S15S16S17S18S20S21S22S24S26S
  35646. SentBy
  35647. FromDomain
  35648. FromDomain
  35649. FromDomain
  35650. FromDomain
  35651.     0RR7S10S13S14S18S20S23S24S26S28S29S30S36S39S43S46S52S
  35652. FromName
  35653. Principal
  35654. Principal
  35655.     0RR1S2S9S11S15S
  35656. FromStops
  35657.     0R1S2S6S
  35658. FromName
  35659. FromStops
  35660. FromStops
  35661. FromStops
  35662.     0RR1S2S3S4S10S13S17S20StmpDisplayFrom_Preview
  35663.      on 
  35664. PostedDateh
  35665. PostedDate
  35666.     7S9S
  35667. tmpDisplayDate_PreviewTime/date memo was created or mailed.
  35668. $HideMailHeader
  35669. StdNotesLtr16
  35670.     7S9S10S11S13S15S
  35671. tmpDate
  35672. $HideMailHeader
  35673.     4S5S6S8S10S11S
  35674.     From:    
  35675. tmpDisplayFrom_Preview
  35676. tmpDisplayFrom_NoLogo
  35677.      on 
  35678. PostedDateh
  35679. PostedDate
  35680.     7S9S
  35681. tmpDisplayDate_NoLogoTime/date memo was created or mailed.
  35682. ReplyDate
  35683. ReplyTo
  35684. $HideMailHeader
  35685.     2S3S4S5S6S7S9S10S
  35686. Please respond
  35687. ReplyTo
  35688. ReplyTo
  35689. ReplyDate
  35690. ReplyDate
  35691.     1S2S5S6S8S10S11S12S14S15S18S19S21S23S24S25StmpDisplayReplyInfo
  35692. [<b>  </b>]Message[<b>  </b>]-[<b>  </b>]From:[<b> </b>]
  35693. tmpDisplayFrom_Preview
  35694. tmpDisplayFrom_NoLogo_1
  35695. PostedDateh
  35696. PostedDate
  35697.     7S9S
  35698. tmpDisplayDate_NoLogo_1Time/date memo was created or mailed.
  35699. $HideMailHeader
  35700. Principal
  35701. Principal
  35702. Principal
  35703. Principal
  35704. Principal
  35705.     4S5S9S10S11S12S13S14S19S20S24S26S27S31S33S34S37S38S40S41S45S47S48S52S
  35706.     Sent by:
  35707. FromDomain
  35708. FromDomain
  35709. FromDomain
  35710. FromDomain
  35711.     4S10S14S21S24S32S33S36S37S39S41S42S43S49S52S56S59S64S
  35712. FromName
  35713.     0RR1S2S6S
  35714. FromStops
  35715.     0R1S2S6S
  35716. FromName
  35717. FromStops
  35718. FromStops
  35719. FromStops
  35720.     0RR1S2S3S4S10S13S17S20StmpDisplaySentBy
  35721. SendTo[<size=58>]
  35722. CopyTo[<size=58>]
  35723. DeliveredDate
  35724. BlindCopyTo
  35725. (bcc: 
  35726. BlindCopyTo
  35727.     3S4S5S6S7S8S10S11S12S16S18S19S21StmpDisplayBlindCopyTo
  35728.     bcc:
  35729. BlindCopyTo[<size=58>]
  35730.     Subject:
  35731. Subject[<size=58>]
  35732. $HideMailHeader
  35733. PostedDate
  35734. SenderTag
  35735. Moods
  35736.     7S9S10S11S12S13S15S16S17S18S21S23S
  35737. Edit Document
  35738. Forward
  35739.     0S0E
  35740. New Memo.
  35741.     0S0E
  35742. Delete 
  35743.     0S0E
  35744. _Move To Folder...
  35745. Delivery Information...
  35746. DeliveryInfo
  35747. Delivery Information
  35748.     4S5S6S7S8S9S10S12S
  35749. _Forward
  35750. Replyy4
  35751. Reply
  35752.     0S0E
  35753. Reply With History
  35754. Reply with History
  35755. This document is truncated.
  35756.     4S8S10S13S
  35757. Reply with history
  35758. Address... 
  35759.     0S0E
  35760. PostedDateh
  35761.     5S6S7S8S
  35762. Close
  35763.     0S0E
  35764. IsMailStationeryh
  35765. PostedDateh
  35766.     6S7S
  35767. Save As Draft
  35768. tmpAction
  35769. SaveAsDraft
  35770.     1S2S3S
  35771. IsMailStationeryh
  35772. PostedDateh
  35773.     4S5S
  35774. Save and Filef
  35775.     7S9S
  35776. tmpAction
  35777. SaveAndFile
  35778.     0R1S2S3S
  35779. IsMailStationeryh
  35780. PostedDateY
  35781. PostedDateh
  35782.     4S5S9S10S16S17S18S19S
  35783. PromptValue
  35784. DefaultMailSaveOptions
  35785. Save when sent
  35786. Do you wish to save a copy of this Memo?
  35787. DefaultMailSaveOptions
  35788.     1S2S5S6S8S14S17S
  35789. SaveOptions
  35790. PromptValue
  35791. SaveOptions
  35792. PromptValue
  35793.     0RR1S2S5S6S9S14S
  35794. tmpAction
  35795. DefaultMailSaveOptions
  35796. Mailing
  35797.     0RR1S2S3S6S7S9S11S
  35798. MailOptions
  35799.     0R1S2S3S
  35800.     0R7S9S
  35801. tmpAction
  35802. SaveOptions
  35803. SendAndFile
  35804.     0RR1S2S3S6S7S9S11S
  35805.     0R7S9S
  35806. PostedDateh
  35807. IsMailStationeryh
  35808.     5S6S7S8S10S11S
  35809. Send And File...
  35810. tmpAction
  35811. DefaultMailSaveOptions
  35812. Mailing
  35813.     1S2S3S6S7S9S11S
  35814. MailOptions
  35815.     0R1S2S3S
  35816.     0RR7S9S
  35817. tmpAction
  35818. SendAndFile
  35819.     0RR1S2S3S
  35820.     0R7S9S
  35821.     0R7S9S
  35822. PostedDateh
  35823. IsMailStationeryh
  35824.     5S6S7S8S10S11S
  35825. Delivery Options...
  35826. DeliveryOptions
  35827. Delivery Options
  35828.     4S8S
  35829. _ViewIcon
  35830. SenderTag
  35831. SenderTag
  35832. SenderTag
  35833. SenderTag
  35834. SenderTag
  35835. SenderTag
  35836. SenderTag
  35837. SenderTag
  35838. SenderTag
  35839. SenderTag
  35840. SenderTag
  35841.     0RR1S2S3S5RS3E6S7S8S9S11S13RS3E14S15S17S19RS3E20S21S23S25RS3E26S27S29S31RS3E32S33S35S37RS3E38S39S41S43RS3E44S45S47S49RS3E50S51S53S55RS3E56S57S59S61RS3E62S63S65S67RS3E68S69S71S73RS3E8
  35842. PostedDateh
  35843.     5S6S7S8S
  35844. Special Options...6
  35845. ReplyDate
  35846. ReplyDate
  35847.     1S2S3S
  35848. ReplyTo
  35849. ReplyTo
  35850.     0R1S2S3S
  35851. (Advanced Options)
  35852. Special Options
  35853.     0R6S10S13S15S
  35854. tmpDisplayReplyInfo
  35855. Please respond
  35856. ReplyTo
  35857. ReplyTo
  35858. ReplyDate
  35859. ReplyDate
  35860.     0R1S2S3S4S5S8S9S11S13S14S15S17S18S21S22S24S26S27S28S
  35861. DueDateTime
  35862. ReplyDate
  35863. ReplyDate
  35864.     0R1S2S3S6S7S9S11S
  35865. PostedDateh
  35866.     5S6S7S8S10S11S15S16S
  35867. Save As Stationery...
  35868. tmpAction
  35869. SaveAsStationery
  35870.     1S2S3S
  35871. IsMailStationeryh
  35872.     0S0E
  35873. _Remove From Folder...
  35874. Categori_ze
  35875. SSend
  35876. Copy into\New Memo'++LotusScript Development Environment:2:5:(Options):0:66
  35877. '++LotusScript Development Environment:2:5:(Forward):0:1
  35878. Declare Sub Click(Source As Button)
  35879. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35880. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35881. Private Sub BindEvents(Byval Objectname_ As String)
  35882.      Static Source As BUTTON
  35883.      Set Source = Bind(Objectname_)
  35884.      On Event Click From Source Call Click
  35885. End Sub
  35886. '++LotusScript Development Environment:2:2:Click:1:12
  35887. Sub Click(Source As Button)
  35888.      Call CreateNewDoc(NEW_MEMO)
  35889. End Sub
  35890. tmpnewdoc
  35891.     1S2S
  35892. Copy into\New Calendar Entry'++LotusScript Development Environment:2:5:(Options):0:66
  35893. '++LotusScript Development Environment:2:5:(Forward):0:1
  35894. Declare Sub Click(Source As Button)
  35895. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35896. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35897. Private Sub BindEvents(Byval Objectname_ As String)
  35898.      Static Source As BUTTON
  35899.      Set Source = Bind(Objectname_)
  35900.      On Event Click From Source Call Click
  35901. End Sub
  35902. '++LotusScript Development Environment:2:2:Click:1:12
  35903. Sub Click(Source As Button)
  35904.      Call CreateNewDoc(NEW_CALENDAR)
  35905. End Sub
  35906. tmpnewdoc
  35907.     1S2S
  35908. Copy into\New Task'++LotusScript Development Environment:2:5:(Options):0:66
  35909. '++LotusScript Development Environment:2:5:(Forward):0:1
  35910. Declare Sub Click(Source As Button)
  35911. '++LotusScript Development Environment:2:5:(Declarations):0:2
  35912. '++LotusScript Development Environment:2:2:BindEvents:1:129
  35913. Private Sub BindEvents(Byval Objectname_ As String)
  35914.      Static Source As BUTTON
  35915.      Set Source = Bind(Objectname_)
  35916.      On Event Click From Source Call Click
  35917. End Sub
  35918. '++LotusScript Development Environment:2:2:Click:1:12
  35919. Sub Click(Source As Button)
  35920.      Call CreateNewDoc(NEW_TASK)
  35921. End Sub
  35922. tmpnewdoc
  35923.     1S2S
  35924. Copy into\New Group
  35925. NewGroup
  35926.     0S0E
  35927. tmpnewdoc
  35928.     1S2S
  35929. Memo&
  35930. Reply
  35931. Reply
  35932. Trash 
  35933.     1S2S8S12S14S
  35934. /wCommand?OpenAgent&ToTrash=
  35935. &From="
  35936.     0R1S2S3S4S11S13S15S16S
  35937. Path_Info
  35938. Path_Info
  35939.     0R1S2S6S10S11S15S
  35940. view1
  35941.     0R1S2S3S10S14S18S21S
  35942. view2
  35943. view1
  35944. view1
  35945. view1
  35946.     0R1S2S3S10S14S18S21S
  35947. path"
  35948. view2
  35949.     0RR3S4S5S6S7S8S.
  35950. tmpAddressIsOn
  35951.     1S2S
  35952.     1S2S8S12S14S
  35953. /wFolders?OpenForm&UNID=
  35954. &View="
  35955.     0R1S2S3S4S11S13S15S16S
  35956. Path_Info
  35957. Path_Info
  35958.     0R1S2S6S10S11S15S
  35959. view1
  35960.     0R1S2S3S10S14S18S21S
  35961. view2
  35962. view1
  35963. view1
  35964. view1
  35965.     0R1S2S3S10S14S18S21S
  35966. path"
  35967. view2
  35968.     0RR3S4S5S6S7S8S
  35969. In Box*
  35970. ($InBox)
  35971. tmpAddressIsOn
  35972.     1S2S
  35973. Calendar
  35974.     1S2S8S12S14S
  35975. path"
  35976. /($Calendar)?OpenView&Grid=
  35977. CalendarProfile
  35978. wCalGridType
  35979.     0R3S4S5S6S7S8S12S.
  35980. tmpAddressIsOn
  35981.     1S2S
  35982. Meetings.
  35983. ($Meetings)
  35984. tmpAddressIsOn
  35985.     1S2S
  35986. To Do
  35987. ($ToDo)
  35988. tmpAddressIsOn
  35989.     1S2S
  35990. All Views
  35991. tmpAddressIsOn
  35992.     1S2S
  35993. O=Lotus Notes
  35994. O=Lotus Notes
  35995. PURSAFO
  35996. |.:#U
  35997. O=Lotus Notes
  35998. CN=Lotus Notes Template Development/O=Lotus Notes
  35999. PURSAFO
  36000. Fde!f^^
  36001. $$FormPostOpenAction
  36002. $TypeIcon
  36003. ExpireDate
  36004. ReplyDate
  36005. ComposedDate
  36006. $TITLE
  36007. $INFO
  36008. $WINDOWTITLE
  36009. $Script
  36010. $$Script_O
  36011. $$ScriptName
  36012. $$FormScript
  36013. $$$FormScript_O
  36014. $BODY
  36015. $ACTIONS
  36016. $SCRIPTOBJ_21
  36017. $SCRIPTOBJ_22
  36018. $SCRIPTOBJ_23
  36019.