home *** CD-ROM | disk | FTP | other *** search
Lotus Notes Storage Facility | 1997-09-15 | 58.5 KB | 217 lines |
- NNTP Cross-Post
- #1StdR46NNTPPostBox
- nV$DesignVersion$Version$Formula$FormulaClass$Collation$UpdatedBy$Flags$FlagsNoRefresh$TITLEIconBitmap$ACLDigest$Signature$AssistType$AssistLastRun$AssistDocCount$AssistFlags$AssistTrigger$AssistInfo$AssistQuery$AssistAction$AssistAction_Ex$AssistRunInfo$AssistVersion$ReplVersion$ReplSrcServers$ReplClassMasks$ReplFormula$ReplView$ReplPrivateFolder$ReplFields$Index$ViewFormat$Comment$Info$$ScriptName$Body$$XMB$$XMB_2$$XMB_3$Licensee
- CN=Lotus Notes Template Development/O=Lotus Notes
- $Modified
- 1S2S3S
- $TITLE$FormPrivs$FormUsers$Body$Flags$Class$Modified$Comment$AssistTrigger$AssistType$AssistFlags$UpdatedBy$$FormScript_O
- $Flags
- 0SL1S4S5S3724
- $TITLE
- CN=Ryan Jansen/O=Iris######################################
- NNTP Cross-Post
- #1StdR46NNTPPostBox
- CN=Ryan Jansen/O=Iris
- ################
- CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notess
- CrossPost Articles
- 1SfL3
- CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################################################
- 30719
- CN=Ryan Jansen/O=Iris#################################################
- CrossPost|($CrossPost)*
- Subject$Conflict
- Subject&
- CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##############
- (Default)DefaultCDB3714272CEA322E6D1E395DD2D5C44E4
- CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesB3714272CEA322E6D1E395DD2D5C44E467843E4301C6054E658E2C2D65E5AC9DCN=Lotus Notes Template Development/O=Lotus Notes#########################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- ##########################################################
- O=Lotus Notes
- O=Lotus Notes
- PURSAFO
- |.:#U
- O=Lotus Notes
- CN=Lotus Notes Template Development/O=Lotus Notes
- PURSAFO
- Fde!f^^
- $ACLDigest
- '++LotusScript Development Environment:2:5:(Options):0:74
- Option Public
- Option Explicit
- '++LotusScript Development Environment:2:5:(Forward):0:1
- Declare Sub Initialize
- Declare Sub CrossPostArticle(note As NotesDocument)
- Declare Sub CopyArticleToNewsGroup(note As NotesDocument, dbPost As NotesDatabase)
- '++LotusScript Development Environment:2:5:(Declarations):0:10
- Const NEWSGROUP_ITEM_NAME = "Newsgroups"
- '++LotusScript Development Environment:2:2:Initialize:1:10
- Sub Initialize
-
- Dim session As NotesSession
- Dim dbThis As NotesDatabase
- Dim articles As NotesDocumentCollection
- Dim note As NotesDocument
- Dim notetemp As NotesDocument
- Dim x As Integer
-
- ' Initialize objects
- Set session = New NotesSession
- Set dbThis = session.CurrentDatabase
- Set articles = dbThis.UnprocessedDocuments
-
- If (articles.Count = 0) Then Exit Sub
-
- ' Enumerate the collection of documents
- Set note = articles.GetFirstDocument
-
- While Not(note Is Nothing)
- Call CrossPostArticle(note)
- Set notetemp = articles.GetNextDocument(note)
- Call note.Remove(True)
- Set note = notetemp
- Wend
- End Sub
- '++LotusScript Development Environment:2:2:CrossPostArticle:1:8
- Sub CrossPostArticle(note As NotesDocument)
- Enumerates the newsgroup item and posts this document to each
- newsgroup database
- %ENDREM
-
- Dim vNewsgroups As Variant
- Dim x As Integer
- Dim session As NotesSession
- Dim sNewsGroupPath As String
- Dim dbPost As NotesDatabase
- Dim sSourceNewsGroup As String
-
- If (note Is Nothing) Then Exit Sub
-
- If Not(note.hasitem(NEWSGROUP_ITEM_NAME)) Then Exit Sub
-
- Set session = New NotesSession
-
- vNewsgroups = note.GetItemValue(NEWSGROUP_ITEM_NAME)
- sSourceNewsGroup = note.SourceNewsGroup(0)
-
- For x = 0 To Ubound(vNewsgroups)
- If (vNewsgroups(x) <> "") Then
- sNewsGroupPath = session.GetNewsGroupPath(vNewsgroups(x))
- If (sNewsGroupPath <> "" And Lcase(sSourceNewsGroup) <> Lcase(vNewsgroups(x))) Then
- Set dbPost = New NotesDatabase("",sNewsGroupPath)
- If (dbPost.IsOpen) Then
- Call CopyArticleToNewsGroup(note, dbPost)
- dbPost.Close
- End If
- End If
- End If
- Next
-
- End Sub
- '++LotusScript Development Environment:2:2:CopyArticleToNewsGroup:1:8
- Sub CopyArticleToNewsGroup(note As NotesDocument, dbPost As NotesDatabase)
-
- Dim responses As NotesDocumentCollection
- Dim child As NotesDocument
-
- ' We need to copy each of the response documents
-
- If (note Is Nothing) Then Exit Sub
-
- If (dbPost Is Nothing) Then Exit Sub
-
- Set responses = note.Responses
-
- Set child = responses.GetFirstDocument
-
- While Not(child Is Nothing)
- Call CopyArticleToNewsgroup(child, dbPost)
- Set child = responses.GetNextDocument(child)
- Wend
-
- On Error Resume Next
- Call note.CopyToDatabase(dbPost)
- End Sub
- O=Lotus Notes
- O=Lotus Notes
- PURSAFO
- |.:#U
- O=Lotus Notes
- CN=Lotus Notes Template Development/O=Lotus Notes
- PURSAFO
- Fde!f^^
- Mm$Rn
- $TITLE
- $AssistType
- $AssistLastRun
- $AssistDocCount
- $AssistFlags
- $AssistTrigger
- $AssistInfo
- $AssistQuery
- $AssistAction
- $AssistAction_Ex
- O=Lotus Notes
- O=Lotus Notes
- PURSAFO
- |.:#U
- O=Lotus Notes
- CN=Lotus Notes Template Development/O=Lotus Notes
- PURSAFO
- Fde!f^^
- $TITLE
- $Index
- $Formula
- $FormulaClass
- $ViewFormat
- $Comment
- Default
- O=Lotus Notes
- O=Lotus Notes
- PURSAFO
- |.:#U
- O=Lotus Notes
- CN=Lotus Notes Template Development/O=Lotus Notes
- PURSAFO
- Fde!f^^
- $TITLE
- $Info
- $$ScriptName
- $Body
- 08/22/97 02:02:14 PM Ryan Jansen/Iris updated LocalDomainServers
- 08/22/97 02:01:59 PM Ryan Jansen/Iris updated [-Default-]
- 08/22/97 12:13:06 PM Ryan Jansen/Iris updated [OtherDomainServers]
- 08/22/97 12:12:52 PM Ryan Jansen/Iris added [OtherDomainServers]
- 08/22/97 12:12:45 PM Ryan Jansen/Iris updated [LocalDomainServers]
- 08/22/97 12:12:34 PM Ryan Jansen/Iris updated [LocalDomainServers]
- 08/22/97 12:12:22 PM Ryan Jansen/Iris added [LocalDomainServers]
- 08/22/97 12:12:17 PM Ryan Jansen/Iris updated [-Default-]
- 08/22/97 12:12:06 PM Ryan Jansen/Iris added [-Default-]
- 08/13/97 01:04:20 PM Ryan Jansen/Iris deleted Ryan Jansen/Iris
- 08/13/97 01:04:18 PM Ryan Jansen/Iris updated -Default-
- 08/13/97 01:04:12 PM Ryan Jansen/Iris updated OtherDomainServers
- 07/09/97 05:45:35 PM Ryan Jansen/Iris added OtherDomainServers
- 07/09/97 05:45:35 PM Ryan Jansen/Iris added LocalDomainServers
- 07/09/97 05:45:35 PM Ryan Jansen/Iris updated Ryan Jansen/Iris
- 07/09/97 05:45:35 PM Ryan Jansen/Iris added Ryan Jansen/Iris
- -Default-
- LocalDomainServers
- OtherDomainServers
- [-Default-]
- [LocalDomainServers]
- [OtherDomainServers]
-