Solved

Lotus Notes - Auto Saving an attachment from a certain sender

Posted on 2008-10-29
2
276 Views
Last Modified: 2013-12-18
Hi !

is there a way to create a rule / script which will autosave an attachement (csv file) i get from a certain sender?

i dont mind using 3rd party applications

thanks :)
0
Comment
Question by:m0tek
2 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 125 total points
ID: 22830311
0
 
LVL 1

Assisted Solution

by:johnjardin
johnjardin earned 125 total points
ID: 22832474
Create an Agent that runs on selected documents and paste the below code inside the agent.

You can run this from an action menu, or from a button.

You will notice the code is simple enough to change in order to run it on different triggers, ( e.g. automatically when new mail arrives ).

Hope this helps
Sub Initialize

	' CONSTANTS

	Const FILE_PATH = "D:\My Images\"

	

	' VARIABLES

	Dim ss As New NotesSession

	Dim db As NotesDatabase

	Dim col As NotesDocumentCollection

	Dim doc As NotesDocument

	

	Dim myitem As Variant

	Dim index As Integer

	

	' CODE

	Set db = ss.CurrentDatabase

	Set col = db.UnprocessedDocuments

	Set doc = col.GetFirstDocument

	

	index = 0 

	

	While Not( doc Is Nothing )

		Set myitem = doc.GetFirstItem( "Body" )

		

		If ( myitem.Type = RICHTEXT ) Then

			Forall v In myitem.EmbeddedObjects

				index = index + 1

				Call v.ExtractFile( FILE_PATH & v.Name )

				

			End Forall

		End If

		

		Set doc = col.GetNextDocument( doc )

		

	Wend

	

End Sub

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lotus Notes mail can not display in send item after send out 9 317
VBA Lotus notes 2 195
Lotus Domino server 9 7 69
Scan to Email - HP 477 Printer and Lotus Notes 8 71
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now