Problem solve Get help with specific problems with your technologies, process and projects.

Saving some e-mail attachments modifies date

I am trying to save all e-mail attachments to a local hard drive. If I use the following code, it modifies some attachments' modify date. I don't know why this only happens with some attachments. Can you help me?
Dim db As NotesDatabase 
Dim view As NotesView 
Dim doc As NotesDocument 
Dim object As NotesEmbeddedObject 
Set db = New NotesDatabase( "server", "db" ) Set view = db.GetView( "viewname" )
Set doc = view.GetLastDocument Forall o In doc.EmbeddedObjects Set object = doc.GetAttachment( o ) Call notesEmbeddedObject.ExtractFile( "path to save file to" ) Call
notesEmbeddedObject.Remove End Forall
This issue has been reported in the Notes forum.

It would appear that if the modification date in the file's properties is AFTER the file's creation date (normally due to copying a file to another location using Windows), then the file when detached to disk has these dates reset, as you have indicated in your question.

Another user posted a similar issue when attaching/extracting files from different disk format's (i.e., NTFS/FAT).

I haven't investigated this myself, but I hope this information points you in the right direction.

Dig Deeper on Lotus Notes Domino Administration Tools

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...