Some our users use the agent below (they have button in Inbox) to save attachments of selecteted messages to selected location. Maybe it will be usefull for some-body else.
Sub Initialize
<br/>
Dim s As New notessession <br/>
Dim w As New NotesUIWorkspace <br/>
Dim db As NotesDatabase <br/>
Dim col As NotesDocumentCollection <br/>
Dim doc As NotesDocument <br/>
Dim prof As NotesDocument <br/>
Dim path As String <br/>
Set db = s.CurrentDatabase <br/>
Set col = db.UnprocessedDocuments <br/>
If col.Count <> 0 Then <br/>
Set prof = db.GetProfileDocument("Interest Profile",s.UserName) <br/>
If prof.hasitem("path") Then <br/>
If prof.path(0) <> "" Then <br/>
path = prof.path(0) <br/>
Else <br/>
path = "" <br/>
End If <br/>
Else <br/>
path = "" <br/>
End If <br/>
stringArray = w.SaveFileDialog( True , "Save to...", , path ) <br/>
If Isempty(stringArray) Then Exit Sub <br/>
prof.path = stringArray(0) <br/>
Call prof.Save(True , True) <br/>
For i = 1 To col.Count <br/>
Set doc = col.GetNthDocument(i) <br/>
If doc.isvalid Then <br/>
Set rtitem = doc.GetFirstItem("body") <br/>
notesEmbeddedObjectArray = rtitem.EmbeddedObjects <br/>
For j = 0 To Ubound(notesEmbeddedObjectArray) <br/>
Set ee = notesEmbeddedObjectArray(j) <br/>
Call ee.ExtractFile( stringArray(0) &"\" & ee.name ) <br/>
Next <br/>
End If <br/>
Next <br/>
End If <br/>
<br/>
End Sub