Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 4 and 5 Forum

Notes/Domino 4 and 5 Forum

developerWorks

  


RE: Catchall mailbox, ndr notifications
Kevin Pettitt 3.Jul.05 11:36 PM a Web browser
Domino Server -- Other 5.0.8 Windows NT


Code updated to work with Domino 6:

Sub Initialize
On Error Goto processError
Dim session As New NotesSession

Dim dbCurr As NotesDatabase
Dim dbMailBox As NotesDatabase
Set dbCurr = session.CurrentDatabase
Set dbMailBox = New NotesDatabase(dbCurr.Server, "mail.box")

Dim view As NotesView
Set view = dbMailBox.GetView("Mail")

Dim doc As NotesDocument
Set doc = view.GetFirstDocument
Dim item As NotesItem

Do While Not doc Is Nothing
If doc.RoutingState(0) = "HOLD" And Right(doc.FailureReason(0),30)="not listed in Domino Directory" Then
doc.RoutingState = ""
doc.Recipients = "Kevin Pettitt/Org"
Call doc.RemoveItem("SaveOptions")
If Not doc.MailSavedForm(0) = "" Then
doc.Form = doc.MailSavedForm(0)
Else
doc.Form = "Memo"
End If
Set item = doc.ReplaceItemValue( "$Hops", 25 )
Call doc.Save( True, True )
End If
Set doc = view.GetNextDocument(doc)
Loop
ExitOut:
Exit Sub
processError:
Dim ErrorDoc As NotesDocument
Set ErrorDoc = New NotesDocument( dbCurr )
ErrorDoc.Form = "Memo"
ErrorDoc.Subject = session.CurrentAgent.Name & " agent error in " & dbCurr.FilePath
ErrorDoc.Body = "Error " & Err & ": " & Error$ + " at line " & Erl
Msgbox session.CurrentAgent.Name & " agent error in " & dbCurr.FilePath & Chr(13) & "Error " & Err & ": " & Error$ + " at line " & Erl
Call ErrorDoc.Send( False, "Kevin Pettitt/Org" )
Exit Sub
End Sub



Catchall mailbox, ndr notifications... (Kevin Cohn 9.Jul.01)
. . RE: Catchall mailbox, ndr notificat... (David Morlitz 25.Sep.01)
. . . . RE: Catchall mailbox, ndr notificat... (Owen Lillywhite... 14.Oct.03)
. . . . . . RE: Catchall mailbox, ndr notificat... (Kevin Pettitt 3.Jul.05)






  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search


 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

  Lotus Support
Lotus Support
Product support pages index
Search knowledge base (Technotes)
Search support downloads
Lotus Support RSS

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow