This is how you can add an internet password security settings.
An other way to do the same:
Force a user to change Internet password on next login:
Force more users to change their Internet password on next login:
Source codes, snippets and interesting solution in IBM Lotus Notes and Domino environment.
Use "log"
Call logdb.Openwithfailover(db.Server, profiledoc.logdb(0))
Call logging( db.Server & "!!" & db.Filepath & " ~~ " & ag.Name & " agent started width rights of " & ag.Commonowner )
Call logging("Mail was send:" & Chr(13)_
& dbltab & "From: " & maildoc.from(0) & Chr(13)_
& dbltab & "To: " & Join(maildoc.SendTo , "; ") & Chr(13)_
& dbltab & "Subject: " & maildoc.subject(0))
%REM
Function logging
Created by Robert Takacs-Kral
%END REM
Function logging(eventstr As string)
Dim eventItem As NotesItem
If logview.AllEntries.Count = 1 Then Set logdoc = logview.GetFirstDocument() Else Set logdoc = logview.GetLastDocument()
If Not logdoc Is Nothing Then
If logdoc.Size > 30000 Then
logdoc.FinishTime = Now()
Call logdoc.Save(True, False)
Set logdoc = Nothing
End if
End If
If logdoc Is Nothing Then
Set logdoc = logdb.Createdocument()
logdoc.form = "Events"
logdoc.server = logdb.server
logdoc.StartTime = Now()
Call logdoc.Save(True, False)
End If
Set eventItem = logdoc.getfirstitem("EventList")
If eventItem Is Nothing Then
Set eventItem = New NotesItem(logdoc, "EventList", Now() & " " & eventstr)
Else
Call eventItem.AppendToTextList( Now() & " " & eventstr)
End If
Call logdoc.Save(True, False)
End Function
Settings |
function exportEML As Boolean
On Error GoTo ErrHdl
Dim fileNum As Integer
Dim mime As NotesMIMEEntity
Dim stream As NotesStream
Dim evalstr As String
Dim tmp As Variant
Dim expFileName As String
Dim mimeType As String
Dim mimeBoundAryStart As string
Dim mimeBoundAryEnd As string
ss.Convertmime = False
fileNum% = FreeFile()
Set mime = maildoc.GetMIMEentity
If mime Is Nothing Then
Call maildoc.ConvertToMIME(3)
Set mime = maildoc.GetMIMEentity
End If
If Not mime Is Nothing Then
Set stream = ss.Createstream()
expFileName$ = wDir & "\" & maildoc.Universalid & ".eml" ...
If Dir$(expFileName$) <> "" Then
Kill expFileName$ ...
End If
Call stream.Open(expFileName$, mime.Charset)
...
mimeType = mime.Contenttype
mimeBoundAryStart = mime.Boundarystart
mimeBoundAryEnd = mime.Boundaryend
Call mime.GetEntityAsText(stream)
Set mime = mime.GetNextEntity
While Not mime Is Nothing
Call stream.Writetext("", 3)
Call stream.Writetext(mime.BoundAryStart)
Call mime.DecodeContent()
Call mime.Encodecontent( 1727 )
Call mime.GetentityAsText(stream)
Call stream.Writetext(mime.BoundAryEnd)
Set mime = mime.GetNextEntity
Wend
Call stream.WriteText(mimeBoundAryEnd)
Call stream.Close()
...
exportEML = True
Else
...
exportEML = False
End If
ErrHdl:
If Err Then
Print " Error @ " & db.Filename & " (" & db.Title & ") - " & ag.Name & " - 'function exportEml' (" & Err & ") " & Error & " - line: " & Erl
exportEML = false
Exit Function
End If
End Function
Enabling the sched. local agents |