Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto detatching attachments in R5

Status
Not open for further replies.

Mania

Technical User
Jan 23, 2002
11
US
Can't seem to find anything on auto detaching email attatchments, I know Outlook has this, Anybody else trying to do this?

Charles
 
The only way I know is using the embedded objects property in lotusscript. I have never tried it myself but they say it works. An example has been pasted below - Good Luck!

This script goes through all the file attachments, object links, and embedded objects in the Body item of a document. Each time it finds a file attachment, it detaches the file to the SAMPLES directory on the C drive and removes the attachment from the document. The script has no effect on the object links or embedded objects in the Body item.
Dim doc As NotesDocument
Dim rtitem As Variant
'...set value of doc...
Set rtitem = doc.GetFirstItem( "Body" )
If ( rtitem.Type = RICHTEXT ) Then
Forall o In rtitem.EmbeddedObjects
If ( o.Type = EMBED_ATTACHMENT ) Then
Call o.ExtractFile( "c:\samples\" & o.Source )
Call o.Remove
Call doc.Save( False, True )
End If
End Forall
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top